/* Twix product page — shared Compass tokens and navigation come from home.css. */
:root { --twix-a: #7C3AED; --twix-b: #14B8A6; --twix-chip: #EDE5FB; --twix-chip-ink: #5B21B6; --twix-chip-teal: #D5EFEB; --twix-chip-teal-ink: #17665D; --twix-chip-grey: #E5EAF2; --twix-chip-grey-ink: #465469; }
[data-theme="dark"] { --twix-a: #B794F4; --twix-b: #5EEAD4; --twix-chip: rgba(183,148,244,.18); --twix-chip-ink: #D6BCFA; --twix-chip-teal: rgba(94,234,212,.15); --twix-chip-teal-ink: #5EEAD4; --twix-chip-grey: rgba(148,163,184,.18); --twix-chip-grey-ink: #CBD5E1; }

.twix-gradient { background: linear-gradient(100deg, var(--twix-a), var(--twix-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.twix-hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.twix-hero__glow { position: absolute; inset: -20% -10% auto; height: 640px; pointer-events: none; background: radial-gradient(40% 50% at 70% 40%, color-mix(in srgb, var(--twix-a) 22%, transparent), transparent 70%), radial-gradient(30% 40% at 90% 70%, color-mix(in srgb, var(--twix-b) 18%, transparent), transparent 70%); filter: blur(10px); }
.twix-hero .container { position: relative; }
.twix-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
.twix-hero h1 { font-size: clamp(44px, 5.2vw, 76px); letter-spacing: -.055em; line-height: 1.04; margin: 22px 0 24px; }
.twix-hero .lede { max-width: 560px; font-size: 19px; }
.twix-hero .hero__actions { gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.twix-hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--ink-2); font-size: 14px; }
.twix-hero-proof li { display: flex; align-items: center; gap: 8px; }
.twix-hero-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--twix-a), var(--twix-b)); }

.twix-art { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow-2), 0 30px 80px -30px color-mix(in srgb, var(--twix-a) 45%, transparent); }
.twix-art img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 940; object-fit: cover; border-radius: 23px; }
.twix-live { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 13px; font-weight: 600; color: var(--ink); }
.twix-live__dot { width: 9px; height: 9px; border-radius: 50%; background: #EF4444; animation: twix-pulse 1.6s ease-in-out infinite; }
.twix-bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.twix-bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--twix-a); animation: twix-bar 1s ease-in-out infinite; transform-origin: center; }
.twix-bars i:nth-child(2) { animation-delay: .15s; } .twix-bars i:nth-child(3) { animation-delay: .3s; } .twix-bars i:nth-child(4) { animation-delay: .45s; } .twix-bars i:nth-child(5) { animation-delay: .6s; }
.twix-float { position: absolute; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 13px; animation: twix-float 6s ease-in-out infinite; }
.twix-float strong { font-weight: 700; color: var(--ink); }
.twix-float span { color: var(--ink-2); }
.twix-float--a { right: -18px; bottom: 26%; border-left: 3px solid var(--twix-a); }
.twix-float--b { left: -22px; bottom: -22px; border-left: 3px solid var(--twix-b); animation-delay: -3s; }

/* At-a-glance band */
.twix-band { border-block: 1px solid var(--line); background: var(--surface-2); }
.twix-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.twix-band__grid > div { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; }
.twix-band__grid > div + div { border-left: 1px solid var(--line); }
.twix-band strong { font-size: 22px; letter-spacing: -.03em; }
.twix-band span { font-size: 14px; color: var(--ink-2); }

/* Interactive preview */
.twix-preview-section, .twix-context-section, .twix-trust { background: var(--surface-2); }
.meeting-preview { border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2), 0 40px 90px -40px color-mix(in srgb, var(--twix-a) 40%, transparent); }
.preview-top { padding: 22px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.preview-brand { font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.preview-brand > span { color: var(--ink-3); font-size: 13px; font-weight: 500; letter-spacing: normal; }
.preview-top h3 { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.preview-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.preview-layout { display: grid; grid-template-columns: 1.15fr 1fr; }
.transcript-example { padding: 28px; border-right: 1px solid var(--line); }
.panel-label { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.transcript-line { display: flex; align-items: flex-start; gap: 14px; padding: 16px 14px; border-radius: 12px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.transcript-line.is-highlighted { background: var(--accent-soft); border-color: color-mix(in srgb, var(--twix-a) 40%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--twix-a) 12%, transparent); }
.speaker-avatar, .source-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; font-size: 12px; font-weight: 700; background: var(--twix-chip); color: var(--twix-chip-ink); border-radius: 10px; }
.speaker-avatar.teal, .source-icon.teal { background: var(--twix-chip-teal); color: var(--twix-chip-teal-ink); }
.speaker-avatar.grey { background: var(--twix-chip-grey); color: var(--twix-chip-grey-ink); }
.speaker-meta { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.speaker-meta > span { margin-left: 10px; font-size: 12px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.transcript-line p, .intelligence-example p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.local-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
.intelligence-example { padding: 28px; }
.preview-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.preview-tabs button { padding: 0 0 12px; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; color: var(--ink-3); border-radius: 4px 4px 0 0; }
.preview-tabs button:hover { color: var(--ink); }
.preview-tabs button[aria-selected="true"] { color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.preview-tabs button:focus-visible, .source-ref:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.intelligence-example h4 { font-size: 22px; letter-spacing: -.03em; margin: 4px 0 10px; }
.example-callout { border-left: 3px solid var(--accent); padding-left: 16px; margin: 22px 0; }
.example-callout .eyebrow { font-size: 12px; }
.source-ref { display: inline-flex; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; cursor: pointer; transition: transform .2s; }
.source-ref:hover { transform: translateX(2px); }
.example-action { border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 12px; }
.check { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-radius: 5px; flex: none; margin-top: 2px; }
.example-action strong, .context-source strong { display: block; font-size: 15px; font-weight: 600; }
.context-source { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.context-source div > span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.preview-disclaimer { margin: 18px auto 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* Features */
.twix-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.twix-feature-grid article { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .3s, box-shadow .3s, border-color .3s; }
.twix-feature-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--twix-a) 35%, var(--line)); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--twix-a), var(--twix-b)); }
.feature-icon svg { width: 22px; height: 22px; }
[data-theme="dark"] .feature-icon { color: #0B1220; }
.twix-feature-grid h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.035em; margin: 22px 0 12px; }
.twix-feature-grid p, .context-stack p, .trust-details p, .twix-steps p { font-size: 15px; color: var(--ink-2); line-height: 1.75; }

/* Context + trust */
.context-grid, .trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.context-grid h2, .trust-grid h2 { margin: 12px 0 24px; }
.context-grid .lede, .trust-grid .lede { font-size: 18px; margin-bottom: 26px; }
.context-stack article { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.context-index { min-width: 56px; font-size: 13px; font-weight: 700; color: var(--accent-ink); padding-top: 3px; }
.context-stack h3, .trust-details h3, .twix-steps h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 8px; }
.trust-details article + article { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Steps */
.twix-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0; margin: 0; list-style: none; }
.twix-steps li { border-top: 2px solid var(--line-strong); padding-top: 20px; }
.twix-steps li > span { display: block; font-size: 40px; font-weight: 800; margin-bottom: 18px; letter-spacing: -.05em; background: linear-gradient(135deg, var(--twix-a), var(--twix-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* FAQ */
.twix-faq .container { max-width: 860px; }
.twix-faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.twix-faq summary { cursor: pointer; font-size: 17px; font-weight: 600; }
.twix-faq details p { color: var(--ink-2); font-size: 15px; padding-top: 14px; line-height: 1.75; }

/* Closing */
.twix-closing { position: relative; overflow: hidden; text-align: center; padding: 120px 0; border-top: 1px solid var(--line); }
.twix-closing .twix-hero__glow { inset: 0; height: auto; background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--twix-a) 22%, transparent), transparent 70%); }
.twix-closing .container { position: relative; }
.twix-closing h2 { margin: 18px 0 24px; font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -.045em; }
.twix-closing .lede { max-width: 620px; margin: auto; }
.twix-closing .hero__actions { justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes twix-pulse { 50% { opacity: .35; } }
@keyframes twix-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes twix-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .twix-live__dot, .twix-bars i, .twix-float { animation: none; }
}

[hidden] { display: none !important; }
@media (max-width: 1000px) {
    .twix-hero-grid { gap: 40px; }
    .context-grid, .trust-grid { gap: 40px; }
    .twix-float--a { right: 12px; }
    .twix-float--b { left: 12px; }
}
@media (max-width: 760px) {
    .twix-hero { padding: 40px 0 64px; }
    .twix-hero-grid, .context-grid, .trust-grid, .preview-layout { grid-template-columns: 1fr; }
    .twix-band__grid { grid-template-columns: 1fr 1fr; }
    .twix-band__grid > div:nth-child(3) { border-left: 0; }
    .twix-band__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .twix-feature-grid { grid-template-columns: 1fr; }
    .twix-steps { grid-template-columns: 1fr 1fr; }
    .transcript-example { border-right: 0; border-bottom: 1px solid var(--line); }
    .preview-top { padding: 20px; flex-wrap: wrap; }
    .transcript-example, .intelligence-example { padding: 20px; }
    .twix-closing { padding: 88px 0; }
}
@media (max-width: 420px) {
    .twix-hero .hero__actions > a, .twix-closing .hero__actions > a { width: 100%; justify-content: center; }
    .twix-float--a { display: none; }
    .twix-band__grid, .twix-steps { grid-template-columns: 1fr; }
    .twix-band__grid > div { border-left: 0 !important; }
    .twix-band__grid > div + div { border-top: 1px solid var(--line); }
}
