/* Wiser Page — marketing site.
   Reference lock: Suno (warm dark studio canvas, amber haze in the hero only, a single warm
   gradient reserved for the primary action) · BlueYard (a luminous sphere as the hero's
   centrepiece — here the assistant's Liquid Orb) · Vapi (pill actions, voice-transcript band).
   Brand gradient (logo orange → yellow) is used ONLY for: primary CTA, orb, wordmark. */

:root {
  --bg: #0e0c0b;
  --surface: #171412;
  --surface-2: #1f1b18;
  --line: rgba(255, 244, 230, .09);
  --line-strong: rgba(255, 244, 230, .16);
  --ink: #f7f4ef;
  --muted: #a8a29b;
  --faint: #8f8983;
  --label: #ffb35c;            /* small eyebrow labels; AA on --bg */
  --grad: linear-gradient(90deg, #ff4f1f 0%, #ff8a1f 55%, #ffc83d 100%);
  --grad-soft: radial-gradient(60% 55% at 50% 42%, rgba(255, 110, 40, .30), rgba(255, 170, 60, .10) 45%, transparent 72%);
  --ok: #5fd39a;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --f: 'Rubik', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid #ffb35c; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 12, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current=page] { color: var(--ink); background: rgba(255, 255, 255, .05); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { text-decoration: none; font-size: .85rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; }
.lang:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); width: 42px; height: 42px; border-radius: 999px; cursor: pointer; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 68px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; padding: 12px 14px; }
  .nav-toggle { display: grid; place-items: center; margin-inline-start: auto; }
  .header-actions .btn { display: none; }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn-primary { background: var(--grad); color: #1a0d05; box-shadow: 0 10px 30px -10px rgba(255, 110, 30, .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(255, 110, 30, .75); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -10% -20% 0; background: var(--grad-soft); z-index: -1; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--label); font-size: .9rem; font-weight: 500; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px #ff8a1f; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.2rem); margin-block: 18px 22px; }
.hero h1 .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--faint); font-size: .88rem; }

.orb-stage { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; display: grid; place-items: center; }
.orb-stage canvas, .orb-fallback { position: absolute; inset: 6%; width: 88%; height: 88%; }
.orb-fallback { border-radius: 50%; background:
  radial-gradient(38% 30% at 38% 30%, rgba(255, 240, 220, .55), transparent 70%),
  radial-gradient(70% 70% at 55% 60%, #ff5a2a 0%, #b31d4a 45%, #2a0b16 78%, #120708 100%);
  box-shadow: inset -20px -30px 60px rgba(0, 0, 0, .55), 0 30px 90px -20px rgba(255, 90, 40, .45);
  transition: opacity .8s ease; animation: breathe 5s ease-in-out infinite; }
.orb-stage.gpu .orb-fallback { opacity: 0; }
@keyframes breathe { 50% { transform: scale(1.03); } }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.orb-ring:nth-child(2) { inset: -7%; border-color: rgba(255, 244, 230, .05); }

/* Transcript card under the orb */
.say { position: relative; margin-top: 18px; width: min(100%, 460px); justify-self: center; background: rgba(23, 20, 18, .8); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-height: 120px; }
.say-q { display: inline-block; background: var(--ink); color: var(--bg); padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.say-a { margin-top: 10px; color: var(--ink); font-size: .98rem; }
.say-a .caret { display: inline-block; width: 2px; height: 1em; background: #ff8a1f; vertical-align: -2px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.say-tag { position: absolute; top: 14px; inset-inline-end: 16px; font-size: .75rem; color: var(--faint); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .orb-stage { width: min(78vw, 360px); order: -1; }
}

/* ── Sections ── */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Pillars (what's inside) — 2×2 bento */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.alt .pillar { background: var(--surface-2); }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 138, 31, .12); color: #ffae52; }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { color: var(--muted); }
.pillar ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pillar li { display: flex; gap: 10px; color: var(--ink); font-size: .98rem; }
.pillar li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #ff8a1f; margin-top: .62em; }
.soon { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--label); border: 1px solid rgba(255, 179, 92, .35); border-radius: 999px; padding: 0 8px; margin-inline-start: 6px; vertical-align: 1px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* Voice band — the assistant in conversation */
.convo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.bubbles { display: grid; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 1rem; }
.bubble.me { justify-self: start; background: var(--ink); color: var(--bg); font-weight: 500; border-end-start-radius: 6px; }
.bubble.ai { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); border-end-end-radius: 6px; }
.bubble .meta { display: block; margin-top: 6px; font-size: .78rem; color: var(--faint); }
.bars { display: flex; align-items: center; gap: 5px; height: 44px; margin-top: 8px; justify-self: end; }
.bars i { width: 5px; border-radius: 999px; background: var(--grad); opacity: .8; animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(odd) { animation-delay: -.4s; } .bars i:nth-child(3n) { animation-delay: -.8s; }
@keyframes bar { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 3px; }
@media (max-width: 860px) { .convo { grid-template-columns: 1fr; } }

/* Steps — a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Own-copy promise */
.own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.own div { padding: 24px; border-top: 1px solid var(--line-strong); }
.own h3 { font-size: 1.15rem; }
.own p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .own { grid-template-columns: 1fr; } }

/* Agencies strip */
.agency { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(255, 110, 40, .10), rgba(255, 200, 61, .04) 60%, transparent), var(--surface); }
.agency h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.agency p { margin-top: 12px; color: var(--muted); max-width: 40em; }
@media (max-width: 760px) { .agency { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 4px; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--label); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); }

/* Demo form */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.demo-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.demo-copy p { margin-top: 16px; color: var(--muted); }
.contact-lines { margin-top: 28px; display: grid; gap: 10px; }
.contact-lines a { text-decoration: none; color: var(--ink); }
.contact-lines span { color: var(--faint); display: block; font-size: .85rem; }
form.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #ff8a1f; outline-offset: 0; border-color: transparent; }
.hp { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--faint); }
.form-status { font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ff8b7a; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr; } }

/* ── Legal / text pages ── */
.page-head { padding-block: clamp(48px, 7vw, 88px) 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head p { margin-top: 12px; color: var(--muted); }
.prose { max-width: 760px; padding-block: 40px 96px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p, .prose li { color: #d9d4cd; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-inline-start: 1.2em; display: grid; gap: 6px; }
.prose a { color: #ffb35c; }
.prose .callout { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface); margin: 20px 0; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 36px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.site-footer h2 { margin: 0 0 12px; color: var(--ink); font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Reveal — content is visible without JS; JS only adds the entrance */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Legal documents: tables, code and notices carried over from the policy drafts */
.prose .notice { background: var(--surface); border-inline-start: 3px solid #ff8a1f; border-radius: 8px; padding: 14px 16px; margin: 20px 0; }
.prose .table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--surface); color: var(--ink); font-weight: 700; }
.prose td:first-child { width: 38%; }
.prose code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .85em; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose p.ltr, .prose .ltr { direction: ltr; unicode-bidi: isolate; }
.prose p.ltr { text-align: left; }
