import "./components/ui/tidal.css"; import { useId, useMemo, useRef, useState } from "react"; import { TidalCallToActionSection, type TidalCallToAction } from "./components/ui/call-to-action-section"; import "./components/ui/call-to-action-section.css"; const tidalExampleStyles = ".tidal-scope .cta-demo,\n.tidal-scope .cta-demo * {\n box-sizing: border-box;\n}\n\n.tidal-scope .cta-demo {\n width: 100%;\n max-width: 1160px;\n min-width: 0;\n overflow: hidden;\n border: 1px solid var(--t-border);\n border-radius: 22px;\n background: var(--t-surface);\n color: var(--t-ink);\n box-shadow: 0 34px 72px -56px #0000008f;\n container: cta-demo / inline-size;\n}\n\n.tidal-scope .cta-demo-kicker {\n display: block;\n color: var(--t-muted);\n font-size: 11px;\n font-weight: 690;\n letter-spacing: 0.11em;\n line-height: 1.4;\n text-transform: uppercase;\n overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-guide h3,\n.tidal-scope .cta-demo-entries h3 {\n margin: 4px 0 0;\n color: var(--t-ink);\n font-size: 15px;\n font-weight: 640;\n letter-spacing: -0.025em;\n line-height: 1.3;\n overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-stage {\n display: grid;\n gap: 14px;\n min-width: 0;\n padding: 24px;\n background:\n linear-gradient(var(--t-border) 1px, transparent 1px),\n linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\n var(--t-subtle);\n background-size: 22px 22px;\n}\n\n.tidal-scope .cta-demo-lower {\n display: grid;\n grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);\n gap: 14px;\n min-width: 0;\n}\n\n.tidal-scope .cta-demo-guide,\n.tidal-scope .cta-demo-entries {\n min-width: 0;\n padding: 18px;\n border: 1px solid var(--t-border);\n border-radius: 18px;\n background: var(--t-surface);\n}\n\n.tidal-scope .cta-demo-guide:focus-visible {\n outline: 2px solid var(--t-accent);\n outline-offset: 3px;\n}\n\n.tidal-scope .cta-demo-guide ol,\n.tidal-scope .cta-demo-entries ol {\n margin: 15px 0 0;\n padding: 0;\n list-style: none;\n}\n\n.tidal-scope .cta-demo-guide ol {\n counter-reset: guide;\n}\n\n.tidal-scope .cta-demo-guide li {\n display: grid;\n grid-template-columns: 28px minmax(0, 1fr);\n align-items: center;\n gap: 9px;\n min-height: 40px;\n padding-block: 6px;\n border-top: 1px solid var(--t-border);\n color: var(--t-muted);\n font-size: 11px;\n line-height: 1.5;\n counter-increment: guide;\n overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-guide li::before {\n display: grid;\n width: 28px;\n height: 28px;\n place-items: center;\n border: 1px solid var(--t-border);\n border-radius: 7px;\n color: var(--t-ink);\n content: counter(guide, decimal-leading-zero);\n font-size: 11px;\n font-weight: 680;\n}\n\n.tidal-scope .cta-demo-entries-head {\n display: flex;\n min-width: 0;\n align-items: center;\n justify-content: space-between;\n gap: 14px;\n}\n\n.tidal-scope .cta-demo-entries-head > div {\n min-width: 0;\n}\n\n.tidal-scope .cta-demo-entries-head button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 11px;\n border: 1px solid var(--t-border);\n border-radius: 10px;\n background: var(--t-surface);\n color: var(--t-ink);\n font: inherit;\n font-size: 11px;\n font-weight: 650;\n cursor: pointer;\n}\n\n.tidal-scope .cta-demo-entries-head button:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n}\n\n.tidal-scope .cta-demo-entries-head button:focus-visible {\n outline: 2px solid var(--t-accent);\n outline-offset: 3px;\n}\n\n.tidal-scope .cta-demo-entries li {\n display: flex;\n min-width: 0;\n align-items: center;\n gap: 10px;\n min-height: 42px;\n padding: 7px 0;\n border-top: 1px solid var(--t-border);\n animation: cta-demo-entry-in 320ms var(--t-ease-out) both;\n}\n\n.tidal-scope .cta-demo-entries li > span {\n flex: none;\n color: var(--t-muted);\n font-size: 11px;\n font-variant-numeric: tabular-nums;\n}\n\n.tidal-scope .cta-demo-entries li > strong {\n min-width: 0;\n font-size: 11px;\n font-weight: 620;\n line-height: 1.4;\n overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-entries > p {\n min-height: 60px;\n margin: 15px 0 0;\n padding: 18px;\n border: 1px dashed var(--t-border);\n border-radius: 10px;\n color: var(--t-muted);\n font-size: 11px;\n line-height: 1.5;\n text-align: center;\n}\n\n.tidal-scope .cta-demo-status {\n min-height: 35px;\n margin: 0;\n padding: 9px 12px;\n border-inline-start: 2px solid var(--t-ink);\n background: var(--t-surface);\n color: var(--t-muted);\n font-size: 11px;\n line-height: 1.55;\n overflow-wrap: anywhere;\n}\n\n@keyframes cta-demo-entry-in {\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@container cta-demo (max-width: 700px) {\n .tidal-scope .cta-demo-stage {\n padding: 16px;\n }\n\n .tidal-scope .cta-demo-lower {\n grid-template-columns: 1fr;\n }\n}\n\n@container cta-demo (max-width: 390px) {\n .tidal-scope .cta-demo-stage {\n padding: 10px;\n }\n\n .tidal-scope .cta-demo-guide,\n .tidal-scope .cta-demo-entries {\n padding: 14px;\n }\n\n .tidal-scope .cta-demo-entries-head button {\n font-size: 16px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .tidal-scope .cta-demo-entries li {\n animation: none;\n }\n}"; export function CallToActionSectionDemo() { const generatedId = useId().replace(/:/g, ""); const guideId = `cta-demo-${generatedId}-guide`; const [briefs, setBriefs] = useState([]); const [message, setMessage] = useState( "Choose the guide link or create a local sample brief.", ); const createRef = useRef(null); const actions = useMemo( () => [ { kind: "button", id: "create-brief", label: "Create local brief", variant: "primary", icon: +, actionRef: createRef, onAction: () => { const nextNumber = briefs.length + 1; setBriefs((current) => [ ...current, `Sample brief ${String(nextNumber).padStart(2, "0")}`, ]); setMessage( `Sample brief ${String(nextNumber).padStart(2, "0")} added locally.`, ); }, }, { kind: "link", id: "read-guide", label: "Read the brief guide", href: `#${guideId}`, variant: "secondary", icon: ↗, linkProps: { onClick: () => setMessage("The in-page brief guide was selected."), }, }, ], [briefs.length, guideId], ); function resetSample() { setBriefs([]); setMessage("The local brief list was cleared."); createRef.current?.focus({ preventScroll: true }); } return (
IN-PAGE GUIDE

Brief checklist

  1. Name the page outcome.
  2. Choose one primary action.
  3. List the evidence needed for review.
LOCAL ENTRIES

Created briefs

{briefs.length ? (
    {briefs.map((brief, index) => (
  1. {String(index + 1).padStart(2, "0")} {brief}
  2. ))}
) : (

No local briefs yet.

)}

{message}

); } export default function AgentExample() { return (
); }