/* Xorrel AI marketing site. Plain CSS + a little vanilla JS, no build step.
   Light theme by default, dark theme via [data-theme="dark"] or the OS setting. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-tint: #f1effe;
  --surface: #ffffff;
  --surface-2: #f8f8fc;
  --ink: #0d0f24;
  --ink-2: #3b4060;
  --muted: #6b7091;
  --line: #e7e6f2;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --nav-ink: #0d0f24;
  --hero-bg:
    radial-gradient(900px 520px at 85% -10%, rgba(192, 132, 252, 0.28), transparent 60%),
    radial-gradient(800px 520px at -10% 10%, rgba(34, 211, 238, 0.22), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #f3f1ff 100%);
  --dots: rgba(99, 102, 241, 0.13);
  --card-shadow: 0 1px 2px rgba(13, 15, 36, 0.04), 0 18px 50px -24px rgba(45, 40, 120, 0.28);
  --big-shadow: 0 40px 100px -40px rgba(45, 40, 120, 0.45), 0 10px 30px -12px rgba(13, 15, 36, 0.15);
  --chip-bg: #eef0ff;
  --chip-ink: #3730a3;
  --cyan: #06b6d4;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --pink: #d946ef;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(100deg, #06b6d4 0%, #6366f1 48%, #c026d3 100%);
  --on-grad: #ffffff;
  --menu-bg: #ffffff;
  --radius: 20px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --bg-soft: #17181b; --bg-tint: #1d1e22; --surface: #17181b; --surface-2: #1d1e22;
    --ink: #ececee; --ink-2: #b4b6bc; --muted: #85878e; --line: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(17, 18, 20, 0.72); --nav-ink: #ececee; --menu-bg: #18191c;
    --hero-bg: radial-gradient(900px 520px at 85% -10%, #24262b, transparent 60%), radial-gradient(800px 520px at -10% 10%, #1d1e22, transparent 60%), #111214;
    --dots: rgba(236, 236, 238, 0.06);
    --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -30px rgba(0, 0, 0, 0.8);
    --big-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,.06);
    --chip-bg: rgba(217, 255, 91, 0.1); --chip-ink: #d9ff5b;
    --indigo: #d9ff5b;
    --grad: linear-gradient(100deg, #f4f4f5 0%, #9b9ca2 35%, #e9e9eb 65%, #6d6e74 100%); --on-grad: #111214;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214; --bg-soft: #17181b; --bg-tint: #1d1e22; --surface: #17181b; --surface-2: #1d1e22;
  --ink: #ececee; --ink-2: #b4b6bc; --muted: #85878e; --line: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(17, 18, 20, 0.72); --nav-ink: #ececee; --menu-bg: #18191c;
  --hero-bg: radial-gradient(900px 520px at 85% -10%, #24262b, transparent 60%), radial-gradient(800px 520px at -10% 10%, #1d1e22, transparent 60%), #111214;
  --dots: rgba(236, 236, 238, 0.06);
  --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  --big-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,.06);
  --chip-bg: rgba(217, 255, 91, 0.1); --chip-ink: #d9ff5b;
  --indigo: #d9ff5b;
  --grad: linear-gradient(100deg, #f4f4f5 0%, #9b9ca2 35%, #e9e9eb 65%, #6d6e74 100%); --on-grad: #111214;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip, .sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--indigo); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow svg { width: 15px; height: 15px; }
.lead { font-size: clamp(18px, 2vw, 20.5px); color: var(--ink-2); max-width: 700px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
sup a { text-decoration: none; font-size: .72em; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; white-space: nowrap; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: #0d0f24; color: #fff; box-shadow: 0 14px 34px -14px rgba(13, 15, 36, .55); }
:root[data-theme="dark"] .btn-primary { background: #ececee; color: #111214; box-shadow: none; }
:root[data-theme="dark"] .btn-glow { background: var(--grad); background-size: 200% 100%; color: #111214; box-shadow: 0 14px 40px -16px rgba(236, 236, 238, .35); }
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .btn-glow:hover { background: #d9ff5b; color: #15170d; box-shadow: 0 14px 40px -14px rgba(217, 255, 91, .45); }
.btn-glow { position: relative; color: #fff; background: linear-gradient(100deg, #0891b2, #4f46e5 50%, #a21caf); background-size: 200% 100%; box-shadow: 0 14px 40px -12px rgba(139, 92, 246, .75); animation: shimmer 6s ease-in-out infinite; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); }
.btn-light { background: #fff; color: #0d0f24; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Floating pill navbar (Loox-style) */
.nav { position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; padding: 0 16px; }
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; padding: 0 12px 0 18px; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 40px -18px rgba(45, 40, 120, .35); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--nav-ink); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .6); }
:root[data-theme="dark"] .brand img { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .8); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 14px; border-radius: 10px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
.menu-btn { display: none; }
.menu-btn svg { display: block !important; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 920px) {
  .nav-inner { position: relative; }
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--menu-bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--big-shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}
@media (max-width: 480px) { .nav-actions .btn { display: none; } }

/* Hero */
.hero { position: relative; margin-top: -96px; padding: 160px 0 90px; background: var(--hero-bg); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 70%); pointer-events: none; }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 16s ease-in-out infinite; }
.hero .orb.a { width: 380px; height: 380px; background: #22d3ee; top: 8%; left: -120px; }
.hero .orb.b { width: 420px; height: 420px; background: #c084fc; top: -80px; right: -80px; animation-delay: -6s; }
:root[data-theme="dark"] .hero .orb { opacity: .9; }
:root[data-theme="dark"] .hero .orb.a { background: #24262b; }
:root[data-theme="dark"] .hero .orb.b { background: #1d1e22; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); margin-bottom: 22px; }
.hero .badge-row { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; text-decoration: none; }
.hero .badge-row b { background: var(--grad); color: var(--on-grad); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--green); flex: none; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 140px 0 70px; } }

/* AI shopping assistant demo */
.demo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--big-shadow); overflow: hidden; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.demo-top .who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.ai-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: var(--on-grad); }
.ai-dot svg { width: 16px; height: 16px; }
.switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.switch button { border: 0; background: transparent; color: var(--muted); font: 600 12.5px var(--font); padding: 7px 11px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(13,15,36,.12); }
.switch button[aria-pressed="true"].with { background: var(--grad); color: var(--on-grad); }
.chat { padding: 18px 16px 12px; height: 560px; overflow: hidden; display: grid; gap: 14px; align-content: start; font-size: 14.5px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; line-height: 1.5; }
.msg.user { justify-self: end; background: #0d0f24; color: #fff; border-bottom-right-radius: 5px; }
:root[data-theme="dark"] .msg.user { background: #24262b; }
.msg.bot { background: var(--bg-soft); border-bottom-left-radius: 5px; color: var(--ink); }
.caret::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--indigo); margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.results { display: grid; gap: 10px; }
.product { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); animation: rise .45s ease both; }
.product .ph { width: 56px; height: 56px; border-radius: 11px; }
.product .name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.product .meta { font-size: 12.5px; color: var(--muted); }
.product .cost { font-weight: 700; font-family: var(--display); padding-right: 6px; }
.product.yours { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
:root[data-theme="dark"] .product.yours { border-color: #d9ff5b; background: var(--surface); }
.product .tagline { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: #ede9fe; color: #6d28d9; }
.missing { border: 1.5px dashed #fca5a5; border-radius: 14px; padding: 12px 14px; background: rgba(254, 226, 226, .35); font-size: 13.5px; color: var(--ink-2); animation: rise .45s ease both; }
.missing b { color: #b91c1c; }
.missing .chips span { display: inline-block; margin: 6px 6px 0 0; padding: 2px 9px; border-radius: 7px; background: #fee2e2; color: #b91c1c; font-weight: 600; font-size: 12px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-foot .replay { border: 0; background: none; color: var(--indigo); font: 600 13px var(--font); cursor: pointer; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--card-shadow); padding: 10px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 9px; animation: floaty 6s ease-in-out infinite; z-index: 2; }
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .2); }
.float-chip.one { right: -26px; bottom: 70px; }
.float-chip.two { left: -44px; top: 150px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1100px) { .float-chip { display: none; } }
@media (max-width: 520px) { .chat { height: 640px; } .switch button { padding: 7px 8px; } }

/* Marquee of AI surfaces */
.marquee { border-block: 1px solid var(--line); background: var(--bg); padding: 22px 0; overflow: hidden; }
.marquee p { text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 0 14px; }
.track { display: flex; gap: 48px; width: max-content; animation: scroll 32s linear infinite; }
.track span { font: 600 19px var(--display); color: var(--ink-2); white-space: nowrap; opacity: .8; display: inline-flex; align-items: center; gap: 10px; }
.track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 120px 0; position: relative; }
section.soft { background: var(--bg-soft); }
section.tint { background: var(--bg-tint); }
.section-head { margin-bottom: 60px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--card-shadow); }
.stat .n { font: 700 clamp(38px, 4vw, 52px)/1 var(--display); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.stat p { color: var(--ink-2); margin: 0 0 12px; font-size: 15.5px; }
.stat cite { font-style: normal; font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story blockquote { margin: 0; font: 600 clamp(24px, 2.6vw, 32px)/1.3 var(--display); letter-spacing: -0.02em; }
.story blockquote .dim { color: var(--muted); }
.fields { display: grid; gap: 10px; }
.field { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.field .k { color: var(--muted); }
.field .v { font-weight: 600; }
.field .v.empty { color: var(--red); font-weight: 500; }
.field .s { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.field .s.bad { background: var(--red); }
.field .s.ok { background: var(--green); }
.field .s svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 40px; } .field { grid-template-columns: 110px 1fr auto; } }

/* Flow diagram */
.flow { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--card-shadow); }
.flow svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow svg.lines path { fill: none; stroke: url(#flowgrad); stroke-width: 2.5; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
:root[data-theme="dark"] .flow svg.lines path { stroke: #85878e; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.node { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--card-shadow); }
.node h3 { font-size: 16px; margin: 0 0 4px; }
.node p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.node.hub { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; text-align: center; padding: 22px 18px; }
.node.hub img { width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 10px; }
.col { display: grid; gap: 14px; }
.col.left { padding-right: 60px; }
.col.right { padding-left: 60px; }
.ai-node { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; font-size: 14.5px; position: relative; z-index: 1; }
.ai-node i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 18px; padding: 24px; } .flow svg.lines { display: none; } .col.left, .col.right { padding: 0; } }

/* Persona tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 15px var(--font); padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tab[aria-selected="true"] { background: #0d0f24; color: #fff; border-color: #0d0f24; }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: #ececee; color: #111214; border-color: #ececee; }
.persona { display: none; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; animation: rise .4s ease both; }
.persona.active { display: grid; }
.persona .card { padding: 30px; }
.persona .query { font: 600 22px/1.35 var(--display); letter-spacing: -0.01em; margin: 10px 0 18px; }
.persona ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.persona li { margin-bottom: 8px; }
@media (max-width: 860px) { .persona.active { grid-template-columns: 1fr; } }

/* Cards / grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--card-shadow); }
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--chip-bg); color: var(--indigo); }
.card .ico svg { width: 24px; height: 24px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--card-shadow); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 46px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.step p { color: var(--ink-2); margin: 0; }
.step .time { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--indigo); background: var(--chip-bg); padding: 4px 10px; border-radius: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature explorer */
.explorer { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.ftabs { display: grid; gap: 8px; }
.ftab { text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 16px 18px; cursor: pointer; font: inherit; transition: all .2s; }
.ftab b { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ftab b svg { width: 20px; height: 20px; color: var(--indigo); }
.ftab span { display: none; color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
.ftab[aria-selected="true"] { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--card-shadow); }
.ftab[aria-selected="true"] span { display: block; }
.fpanel { display: none; animation: rise .4s ease both; }
.fpanel.active { display: block; }
@media (max-width: 920px) { .explorer { grid-template-columns: 1fr; } }

/* App panels (mockups) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--big-shadow); padding: 24px; font-size: 14px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.appbar { display: flex; align-items: center; gap: 8px; margin: -24px -24px 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 22px 22px 0 0; font-size: 13px; color: var(--muted); }
.appbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.appbar img { width: 18px; height: 18px; border-radius: 5px; margin-left: 6px; }
.appbar b { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: #d1fae5; color: #047857; }
.pill.warn { background: #fef3c7; color: #b45309; }
.pill.bad { background: #fee2e2; color: #b91c1c; }
.pill.ai { background: #ede9fe; color: #6d28d9; }
.pill.info { background: #e0f2fe; color: #0369a1; }
.crumbs { font-size: 13.5px; color: var(--ink-2); background: var(--bg-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.crumbs b { color: var(--ink); }
table.attrs { width: 100%; border-collapse: collapse; }
table.attrs td { padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
table.attrs td:first-child { color: var(--muted); width: 34%; }
table.attrs td:last-child { text-align: right; }
.chip { display: inline-block; background: var(--chip-bg); color: var(--chip-ink); border-radius: 7px; padding: 2px 9px; margin: 2px 4px 2px 0; font-weight: 500; font-size: 13px; }
.diff { display: grid; gap: 10px; }
.diff .old, .diff .new { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.diff .old { background: rgba(254, 226, 226, .5); color: #991b1b; text-decoration: line-through; text-decoration-color: rgba(153,27,27,.35); }
.diff .new { background: rgba(209, 250, 229, .55); color: #065f46; }
:root[data-theme="dark"] .diff .old { color: #fecaca; background: rgba(239,68,68,.15); }
:root[data-theme="dark"] .diff .new { color: #a7f3d0; background: rgba(16,185,129,.15); }
.acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.mini-btn { background: #0d0f24; color: #fff; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; }
.mini-btn.light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.row code { font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); }
.img-alt { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
.img-alt .ph { aspect-ratio: 1; border-radius: 14px; }
.img-alt p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.score-wrap { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.ring { width: 150px; height: 150px; }
.ring .num { font: 700 40px/1 var(--display); fill: var(--ink); }
.ring .lbl { font-size: 12px; fill: var(--muted); }
.ring .bar { transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 520px) { .score-wrap, .img-alt { grid-template-columns: 1fr; } }

/* Product photo placeholders (pure CSS, no stock photos) */
/* Product photos for the demo. The gradient underneath shows until a photo exists. */
.ph-dress { background: url(/assets/img/products/dress-1.jpg) center / cover no-repeat, radial-gradient(circle at 50% 35%, #93c5fd 0 18%, transparent 19%), linear-gradient(160deg, #1e3a8a, #3b82f6 60%, #93c5fd); }
.ph-dress2 { background: url(/assets/img/products/dress-2.jpg) center / cover no-repeat, linear-gradient(160deg, #be185d, #f472b6); }
.ph-dress3 { background: url(/assets/img/products/dress-3.jpg) center / cover no-repeat, linear-gradient(160deg, #065f46, #34d399); }
.ph-dress4 { background: url(/assets/img/products/dress-4.jpg) center / cover no-repeat, linear-gradient(160deg, #334155, #94a3b8); }
.ph-mug { background: url(/assets/img/products/mug.jpg) center 62% / cover no-repeat, radial-gradient(circle at 30% 30%, #fbcfe8, #a78bfa 60%, #6366f1); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--card-shadow); }
.calc-in { padding: 40px; }
.calc-out { padding: 40px; color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgba(217, 70, 239, .45), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(34, 211, 238, .35), transparent 60%), #0e1033; }
.calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc output { font: 700 34px var(--display); }
.calc input[type=range] { width: 100%; accent-color: var(--indigo); margin: 14px 0 6px; height: 28px; }
.calc .scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.calc .assume { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.big { font: 700 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; margin: 6px 0 4px; }
.calc-out .label { color: #a5b4fc; }
:root[data-theme="dark"] .calc-out .label { color: #d9ff5b; }
.calc-out .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.calc-out .row2 div { font: 700 26px var(--display); }
.calc-out .row2 small { display: block; font: 500 13px var(--font); color: #c7cbe0; margin-top: 2px; }
.calc-out .btn { margin-top: 28px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-in, .calc-out { padding: 28px; } }

/* Compare: ads vs AI */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs .card h3 { display: flex; align-items: center; gap: 10px; }
.vs ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.vs li { display: flex; gap: 10px; }
.vs li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.vs .bad li svg { color: var(--red); }
.vs .good { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.vs .good li svg { color: var(--green); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--card-shadow); }
.price h3 { font-size: 19px; margin-bottom: 6px; }
.price .amt { font: 700 42px/1.1 var(--display); letter-spacing: -0.03em; margin: 10px 0 4px; }
.price .amt small { font: 500 15px var(--font); color: var(--muted); }
.price .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 15px; color: var(--ink-2); }
.price li { display: flex; gap: 9px; }
.price li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.price .btn { margin-top: auto; }
.price.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; transform: translateY(-8px); }
.tag { position: absolute; top: -13px; left: 24px; background: var(--grad); color: var(--on-grad); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 28px; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(2, 1fr); } .price.featured { transform: none; } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }
table.compare-plans { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 15px; }
table.compare-plans th, table.compare-plans td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
table.compare-plans th:first-child, table.compare-plans td:first-child { text-align: left; }
table.compare-plans thead th { background: var(--surface-2); font-family: var(--display); font-size: 16px; }
.table-wrap { overflow-x: auto; }

/* Definitions (AEO) */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.defs dl { margin: 0; }
.defs dt { font: 700 19px var(--display); margin-bottom: 8px; }
.defs dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--font); color: var(--indigo); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* Sources */
.sources { font-size: 13.5px; color: var(--muted); max-width: 900px; margin: 0 auto; }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: 80px 40px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 15% 0%, rgba(34,211,238,.45), transparent 60%), radial-gradient(600px 320px at 85% 100%, rgba(217,70,239,.45), transparent 60%), #0e1033; }
:root[data-theme="dark"] .calc-out, :root[data-theme="dark"] .cta-band { background: radial-gradient(600px 300px at 15% 0%, rgba(217, 255, 91, .10), transparent 60%), radial-gradient(600px 320px at 85% 100%, #24262b, transparent 60%), #17181b; color: #ececee; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.cta-band > * { position: relative; }
.cta-band h2 { max-width: 780px; margin: 0 auto 16px; }
.cta-band p { color: #c7cbe0; max-width: 640px; margin: 0 auto 32px; font-size: 18.5px; }
.cta-band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: 13px; line-height: 1.25; background: rgba(0,0,0,.3); }
.store-badge b { display: block; font-size: 16px; }

/* Inner page header */
.page-head { margin-top: -96px; padding: 170px 0 70px; background: var(--hero-bg); position: relative; }
.page-head h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 12px; }
.page-head p { color: var(--ink-2); font-size: 19px; margin: 0; max-width: 700px; }

/* Long-form */
.doc { max-width: 800px; margin: 0 auto; padding: 64px 24px 100px; }
.doc h2 { font-size: 27px; margin-top: 44px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc .updated { color: var(--muted); }
.doc details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.doc summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.doc details p { margin: 10px 0 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 8px 0 30px; }
.contact-card p { margin: 0; }

/* Footer */
footer { background: #06071a; color: #9aa1c4; padding: 80px 0 34px; font-size: 15px; }
:root[data-theme="dark"] footer { background: #17181b; color: #85878e; border-top: 1px solid rgba(255, 255, 255, .06); }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.foot h4 { color: #fff; font: 600 15px var(--font); margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: #9aa1c4; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .brand { color: #fff; margin-bottom: 16px; }
.foot .store-badge { margin-top: 18px; }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 52px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px; color: #747aa0; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Grid children may shrink below their content width (fixes mobile overflow) */
.hero-grid > *, .story > *, .explorer > *, .persona > *, .calc > * { min-width: 0; }
@media (max-width: 520px) {
  .demo-top { flex-wrap: wrap; }
  .demo-top .switch { width: 100%; }
  .demo-top .switch button { flex: 1; }
  .hero .badge-row { font-size: 13px; }
  .nav { top: 8px; margin-top: 8px; }
}

/* Inside the app: real screenshots */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--big-shadow); background: #fff; }
.shot figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); text-align: center; }
.shot-main { max-width: 980px; margin: 0 auto 48px; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } .shot-main { margin-bottom: 32px; } }
