/* neuro puzzle — landing styles */

:root{
  --bg: #F2F0EC;
  --bg-2: #ECEAE4;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --muted: #6B6B66;
  --line: #D9D5CC;
  --card: #FFFFFF;
  --accent: #FFC42D;       /* yellow lightning */
  --grid: #DCD8CE;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px -16px rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11" 1, "ss01" 1;
  line-height: 1.35;
}
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

/* Graph paper background — fixed so it feels like part of the brand */
.page{
  position: relative;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}
.page.dense{ background-size: 18px 18px; }
.page.loose{ background-size: 40px 40px; }

/* Layout */
.container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 700px){
  .container{ padding: 0 18px; }
}

/* ── NAV ──────────────────────────────────────────────────────── */
.nav{
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid rgba(217,213,204,.6);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand{
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-dot{
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--ink); display:inline-block;
}
.brand svg{ display: block; }
.brand-mark{ flex: 0 0 auto; }
.nav-links{ display:flex; gap: 28px; align-items: center; }
.nav-links a{
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover{ color: var(--ink); }
.nav-cta{ display:flex; gap: 10px; align-items: center; }
@media (max-width: 860px){ .nav-links{ display:none; } }

/* Buttons */
.btn{
  appearance:none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary{ background: var(--ink); color: #fff; }
.btn-primary:hover{ background: #222; transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: rgba(10,10,10,.06); }
.btn-outline{
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-outline:hover{ background: var(--ink); color:#fff; }
.btn-lg{ padding: 16px 28px; font-size: 16.5px; }
.btn-yellow{ background: var(--accent); color: var(--ink); }
.btn-yellow:hover{ background: #ffd463; transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero{
  padding: 56px 0 80px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; gap: 36px; }
  .hero{ padding: 36px 0 56px; }
}

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px 6px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.eyebrow .pulse{
  width: 8px; height: 8px; border-radius: 50%; background: #1FBF6C;
  box-shadow: 0 0 0 4px rgba(31,191,108,.18);
}

.hero h1{
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 18px 0 22px;
  text-wrap: balance;
}
.hero h1 .hl{
  background: linear-gradient(180deg, transparent 60%, var(--accent) 60%);
  padding: 0 .08em;
}
.hero h1 .stroke{
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero p.lede{
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero-actions{ display:flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta{
  margin-top: 28px;
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.hero-meta b{ color: var(--ink); font-weight: 700; }

/* Hero demo widget — looks like the in-app screen */
.demo{
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}
.demo-tabs{
  display:flex; gap: 6px; margin: 0 -22px 16px;
  padding: 0 22px;
  overflow-x: auto; scrollbar-width: none;
  /* Soft fade at scroll edges so the cut-off tab looks intentional */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.demo-tabs::-webkit-scrollbar{display:none}
.demo-tab{
  padding: 8px 14px; border-radius: 999px; background: #F4F2EE;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: all .15s;
}
.demo-tab.active{ background: var(--ink); color: #fff; }
.demo-tab:not(.active):hover{ background: #ECEAE4; }

.demo .demo-title{
  font-size: 22px; font-weight: 700; margin: 4px 0 14px;
  letter-spacing: -0.01em;
  display:flex; align-items:center; justify-content:space-between;
}
.bolt{ color: var(--accent); }
.bolt svg{ width: 24px; height: 24px; display: block; }

.dropzone{
  border: 1.5px dashed #B6B0A2;
  border-radius: 18px;
  background: #FAF9F5;
  padding: 36px 20px;
  display:flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.dropzone .ghost-img{
  position: absolute; inset: 14px; border-radius: 12px;
  background: 
    linear-gradient(135deg, rgba(0,0,0,.04) 0%, transparent 40%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 8px, transparent 8px 16px),
    #F0EDE5;
  opacity: .55;
}
.dropzone .ghost-img::after{
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: rgba(0,0,0,.05);
}
.dropzone .label{
  position: relative; z-index: 1;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}

.demo-prompt-label{
  margin-top: 16px; font-size: 14px; color: var(--muted);
}
.demo-prompt{
  margin-top: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 12px 16px;
  min-height: 64px;
  background: #fff;
  font-size: 14.5px;
  display: flex; align-items: center;
  position: relative;
}
.demo-prompt .cursor{
  display:inline-block; width: 2px; height: 18px; background: var(--ink);
  margin-left: 1px; animation: blink 1.05s steps(2,start) infinite;
  vertical-align: middle;
}
@keyframes blink{ 50%{opacity: 0} }

.demo-run{
  margin-top: 14px; width: 100%;
  padding: 14px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  display: block; text-align: center; text-decoration: none;
  box-sizing: border-box;
}
.demo-run:hover{ color: #fff; }

.demo-hint{
  margin-top: 14px;
  font-size: 13px; color: var(--muted);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Fixed-height panel area — keep the demo widget the same size on every tab */
.demo-panel{
  min-height: 320px;
  display: flex; flex-direction: column;
}
@media (max-width: 760px){
  .demo-panel{ min-height: 280px; }
}

/* ── Demo · Remove BG (before/after) ─────────────────────── */
.demo-compare{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 220px;
}
.dc-half{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.dc-half.scene{
  background: linear-gradient(135deg, #FFE7B3 0%, #FFC42D 100%);
}
.dc-half.checker{
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #E4E0D7 25%, transparent 25%),
    linear-gradient(-45deg, #E4E0D7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #E4E0D7 75%),
    linear-gradient(-45deg, transparent 75%, #E4E0D7 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.dc-piece{
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  width: 90px; height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.2));
}
.dc-photo, .dc-cutout{ display: none; }
.dc-label{
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── Demo · Retouch (portrait + sliders) ─────────────────── */
.demo-portrait{
  position: relative;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #FFE7C9 0%, #F2C091 100%);
}
.dp-face{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  aspect-ratio: 5 / 4;
}
.dp-image{ display: none; }
.dp-tag{
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}

.demo-sliders{
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.slider-row{
  display: grid;
  grid-template-columns: 120px 1fr 28px;
  align-items: center; gap: 10px;
  font-size: 13px;
}
.slider-label{ color: var(--muted); }
.slider-track{
  position: relative;
  height: 5px; background: var(--bg-2); border-radius: 999px;
}
.slider-fill{
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink); border-radius: 999px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.slider-knob{
  position: absolute; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ink);
  transform: translate(-50%, -50%);
  transition: left .8s cubic-bezier(.4,0,.2,1);
}
.slider-val{
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600; text-align: right;
}

/* ── Demo · Product (source → 4 result cards) ──────────── */
.demo-product{
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 10px;
  align-items: center;
  height: 200px;
}
.dp-source{
  position: relative;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #FAF9F5;
  display: flex; align-items: center; justify-content: center;
}
.dp-bottle{
  width: 32px; height: 70px;
  background: linear-gradient(180deg, #5B8FA8 0%, #3E6B82 100%);
  border-radius: 6px 6px 4px 4px;
  position: relative;
}
.dp-bottle::before{
  content: ""; position: absolute;
  left: 50%; top: -10px;
  transform: translateX(-50%);
  width: 14px; height: 12px;
  background: #3E6B82;
  border-radius: 3px 3px 0 0;
}
.dp-bottle::after{
  content: ""; position: absolute;
  left: 5px; right: 5px; top: 22px;
  height: 22px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
}
.dp-bottle.small{
  width: 22px; height: 50px;
}
.dp-bottle.small::before{ width: 10px; height: 9px; top: -7px; }
.dp-bottle.small::after{ top: 16px; height: 16px; left: 4px; right: 4px; }

.dp-mini-label{
  position: absolute; bottom: 6px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; font-weight: 600; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.dp-arrow{
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.dp-results{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 100%;
}
.dp-card{
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dp-card.hot{
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--ink);
  z-index: 1;
}

.demo-corner{
  position: absolute; top: -14px; right: 22px;
  background: var(--accent); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--ink);
  transform: rotate(2deg);
}

/* Floating puzzle pieces around hero on desktop */
.puzzle-piece{
  position: absolute;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.puzzle-piece .bolt svg{ width: 16px; height: 16px; }

/* ── SECTION HEADERS ─────────────────────────────────────────── */
.section{ padding: 80px 0; position: relative; }
.section-hd{
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-hd .label{
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.section-hd h2{
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.03em; line-height: 1.0;
  font-weight: 800; margin: 0;
  text-wrap: balance;
  max-width: 22ch;
}
.section-hd .label .inf{
  font-family: 'Onest', sans-serif;
  font-size: 1.45em;
  letter-spacing: 0;
  vertical-align: -0.08em;
  display: inline-block;
  line-height: 0.6;
}
.section-hd p{
  color: var(--muted); font-size: 16px; max-width: 38ch; margin: 0;
}

/* ── FEATURES ─────────────────────────────────────────────────── */
.features{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px){ .features{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .features{ grid-template-columns: 1fr; } }

.fcard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fcard:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.fcard .icon{
  width: 38px; height: 38px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: var(--accent); color: var(--ink); margin-bottom: 16px;
}
.fcard .icon svg{ width: 22px; height: 22px; }
.fcard h3{
  font-size: 20px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em;
}
.fcard p{
  font-size: 14.5px; color: var(--muted); margin: 0;
  flex: 1;
}
.fcard .try{
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  align-self: flex-start;
}
.fcard .try .arrow{ transition: transform .15s; }
.fcard:hover .try .arrow{ transform: translateX(4px); }
.fcard.placeholder{
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 8px, transparent 8px 18px),
    var(--bg-2);
  border: 1.5px dashed var(--line);
}
.fcard.placeholder h3{ color: var(--ink); }
.fcard.placeholder p{ color: var(--muted); }
.fcard.placeholder .mark{
  background: var(--ink); color: var(--accent);
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; margin-bottom: 16px;
}
.fcard .tag{
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600; padding: 4px 8px;
  border-radius: 999px; background: #F4F2EE; color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fcard.featured{
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}
.fcard.featured h3{ color: #fff; }
.fcard.featured p{ color: rgba(255,255,255,.7); }
.fcard.featured .try{ color: var(--accent); }
.fcard.featured .icon{ background: var(--accent); }

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px){ .how{ grid-template-columns: 1fr; } }
.step{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  position: relative;
}
.step .num{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
}
.step h3{
  font-size: 22px; letter-spacing: -0.015em; margin: 0 0 8px; font-weight: 700;
}
.step p{ color: var(--muted); font-size: 14.5px; margin: 0; }
.step-illu{
  margin-top: 18px;
  height: 110px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* ── PRICING ──────────────────────────────────────────────────── */
.pricing{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 760px){ .pricing{ grid-template-columns: 1fr; } }

.plan{
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan .badge{
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: #F4F2EE; padding: 5px 10px; border-radius: 999px;
  color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.plan h3{ font-size: 26px; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.015em; }
.plan .sub{ color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.plan .price{
  font-size: 56px; font-weight: 800; letter-spacing: -0.04em;
  line-height: 1; margin: 4px 0 8px;
}
.plan .price small{ font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan .period{ color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan ul{ margin: 0 0 24px; padding: 0; list-style: none; display:flex; flex-direction: column; gap: 10px; }
.plan li{ display:flex; gap: 10px; align-items: center; font-size: 14.5px; line-height: 1.35; }
.plan li .check{
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display:flex; align-items:center; justify-content:center;
}
.plan li .check svg{ width: 12px; height: 12px; }
.plan .cta-row{ margin-top: auto; }
.plan.featured{ background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.featured .sub, .plan.featured .period{ color: rgba(255,255,255,.7); }
.plan.featured .badge{ background: var(--accent); color: var(--ink); }
.plan.featured li .check{ background: var(--accent); color: var(--ink); }
.plan.featured .btn-primary{ background: var(--accent); color: var(--ink); }
.plan.featured .btn-primary:hover{ background: #ffd463; }
.plan .ribbon{
  position: absolute; top: -14px; right: 28px;
  background: var(--accent); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--ink);
}

/* Trial plan callout — "everything is included" */
.all-included{
  display: flex; flex-direction: column; gap: 14px;
  background: #FAF9F5;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
}
.ai-pieces{
  display: flex; gap: 6px;
}
.ai-piece{
  flex: 1; aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.ai-piece svg{ width: 18px; height: 18px; }
.ai-piece.more{
  background: var(--ink); color: var(--accent);
  font-size: 18px; font-weight: 800; border-color: var(--ink);
}
.all-included-text{
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14.5px; line-height: 1.4;
}
.all-included-text b{ font-weight: 700; }
.all-included-text span{ color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq{ display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.qa{
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 4px 22px;
  transition: background .15s;
}
.qa summary{
  list-style: none; padding: 18px 0;
  font-size: 17px; font-weight: 600; cursor: pointer;
  display:flex; align-items:center; justify-content:space-between;
  letter-spacing: -0.005em;
}
.qa summary::-webkit-details-marker{ display:none; }
.qa summary .plus{
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  transition: transform .2s, background .2s;
  flex: 0 0 28px;
}
.qa[open] summary .plus{ transform: rotate(45deg); background: var(--ink); color: #fff; }
.qa[open] summary .plus svg{ stroke: #fff; }
.qa .ans{ color: var(--muted); padding: 0 0 18px; font-size: 15px; max-width: 60ch; }

/* ── FINAL CTA ──────────────────────────────────────────────── */
.bigcta{
  background: var(--ink); color: #fff;
  border-radius: 32px;
  padding: 64px 48px;
  display: grid; grid-template-columns: 1.4fr .8fr;
  gap: 32px; align-items: center;
  position: relative;
  overflow: hidden;
}
.bigcta.one-col{ grid-template-columns: 1fr; text-align: center; }
.bigcta.one-col h2{ max-width: 18ch; margin-left: auto; margin-right: auto; }
.bigcta.one-col p{ margin-left: auto; margin-right: auto; }
.bigcta.one-col .actions{ justify-content: center; }

/* CTA puzzle widget */
.cta-puzzle{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 18px;
}
.cta-puzzle-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.cta-tile{
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,.6);
  font-size: 10.5px; font-weight: 600;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.cta-tile-ic svg{ width: 18px; height: 18px; }
.cta-tile.hot{
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cta-puzzle-foot{
  margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.6);
  font-family: 'JetBrains Mono', monospace;
}
.cta-puzzle-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #1FBF6C;
  box-shadow: 0 0 0 4px rgba(31,191,108,.18);
}
@media (max-width: 760px){
  .bigcta{ grid-template-columns: 1fr; padding: 40px 28px; border-radius: 24px; }
}
.bigcta h2{
  font-size: clamp(34px, 4.4vw, 56px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 16px;
}
.bigcta .hl{ background: linear-gradient(180deg, transparent 60%, var(--accent) 60%); padding: 0 .08em; color: #fff; }
.bigcta p{ color: rgba(255,255,255,.7); font-size: 17px; max-width: 44ch; margin: 0 0 28px; }
.bigcta .actions{ display:flex; gap: 12px; flex-wrap: wrap; }
.bigcta .deco{
  display:flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.bigcta .ticket{
  background: var(--accent); color: var(--ink);
  border-radius: 16px; padding: 18px 22px; min-width: 220px;
  border: 1.5px solid var(--ink);
}
.bigcta .ticket .row{
  display:flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
.bigcta .ticket .big{ font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.bigcta .ticket hr{ border:0; border-top: 1.5px dashed rgba(10,10,10,.4); margin: 12px 0; }

/* ── FOOTER (matches existing screenshot) ─────────────────── */
.footer{
  background: var(--ink); color: #fff;
  padding: 64px 0 36px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer .footer-links{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 36px;
  row-gap: 24px;
  align-items: start;
}
.footer .footer-links ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer .footer-links li{ margin: 0; }
@media (max-width: 960px){
  .footer .footer-links{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px){
  .footer .footer-links{ grid-template-columns: 1fr; }
}
.footer .brand{ color: #fff; }
.footer .brand-dot{ background: var(--accent); }
.footer .brand-mark .body{ fill: #fff; }
.footer .brand-mark .nub{ fill: var(--accent); }
.footer .brand-mark .ai-text{ fill: #0A0A0A; }
.footer h4{
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px;
}
.footer ul{ list-style:none; padding: 0; margin: 0; display:flex; flex-direction: column; gap: 10px; }
.footer a, .footer li{ color: #fff; text-decoration: none; font-size: 15px; }
.footer a:hover{ color: var(--accent); }
.footer .support-mail{
  font-size: 22px; font-weight: 700; word-break: break-all;
  letter-spacing: -0.01em; display: block; margin-bottom: 4px;
}
.footer .support-label{
  font-size: 13px; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.footer-bottom{
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,.55);
}

/* burger */
.burger{
  display:none; appearance: none; border: 0; background: transparent;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  color: var(--ink);
  position: relative; z-index: 60;
}
.burger:hover{ background: rgba(0,0,0,.06); }
@media (max-width: 860px){ .burger{ display:inline-flex; align-items:center; justify-content:center; } }
@media (max-width: 860px){ .nav-cta .btn-ghost{ display: none; } }

/* Mobile drawer menu */
.mobile-menu{
  position: fixed; top: 0; right: 0;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 88px 28px 32px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 50;
  pointer-events: none;
  overflow-y: auto;
}
.mobile-menu.is-open{ transform: translateX(0); pointer-events: auto; }
.mobile-menu-links{
  display: flex; flex-direction: column;
  flex: 1;
}
.mobile-menu-links a{
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.015em;
  padding: 14px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-links a:hover{ color: var(--muted); }
.mobile-menu-actions{
  display: flex; flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.mm-cta-primary{
  background: var(--ink); color: #fff !important;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 16px; font-weight: 600;
  text-align: center; text-decoration: none;
}
.mm-cta-primary:hover{ background: #222; }
.mm-cta-login{
  text-align: center;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  padding: 4px 0 2px;
  text-decoration: none;
}
.mm-cta-login:hover{ color: var(--muted); }
.mm-cta-support{
  text-align: center;
  font-size: 14.5px; font-weight: 500;
  color: var(--muted);
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  text-decoration: none;
}
.mm-cta-support:hover{ color: var(--ink); }
.mobile-menu-backdrop{
  position: fixed; inset: 0;
  background: rgba(10,10,10,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 40;
}
.mobile-menu-backdrop.is-open{ opacity: 1; pointer-events: auto; }

/* On desktop the drawer should never appear */
@media (min-width: 861px){
  .mobile-menu, .mobile-menu-backdrop{ display: none !important; }
}

/* ── SUPPORT FAB (floating action button + modal) ───────── */
.support-fab{
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 45;
  appearance: none; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(10,10,10,.18), 0 2px 6px rgba(10,10,10,.08);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.support-fab:hover{ background: #222; transform: translateY(-1px); }
.support-fab:active{ transform: translateY(0); }
.support-fab-ic{
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.support-fab-ic svg{ width: 18px; height: 18px; }

@media (max-width: 760px){
  .support-fab{
    right: 16px; bottom: 16px;
    padding: 10px 16px 10px 10px;
    font-size: 14px;
  }
  .support-fab-ic{ width: 28px; height: 28px; }
  .support-fab-ic svg{ width: 16px; height: 16px; }
}

/* Support modal */
.support-modal-root{
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: smFade .2s ease;
}
@keyframes smFade { from { opacity: 0; } to { opacity: 1; } }
.support-modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.support-modal{
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
  animation: smIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes smIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.support-modal-close{
  position: absolute; top: 14px; right: 14px;
  appearance: none; border: 0; background: transparent;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer;
  transition: background .15s;
}
.support-modal-close:hover{ background: rgba(0,0,0,.06); }
.support-modal-ic{
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.support-modal h3{
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.support-modal p{
  font-size: 15px; color: var(--muted);
  max-width: 30ch; margin: 0 auto 20px;
}
.support-modal-mail{
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 600;
  background: #F4F2EE;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--ink);
  word-break: break-all;
}
.support-modal-cta{
  width: 100%; justify-content: center;
}

@media (max-width: 480px){
  .support-modal{ padding: 32px 22px 24px; border-radius: 20px; }
  .support-modal h3{ font-size: 20px; }
  .support-modal-mail{ font-size: 14px; padding: 9px 12px; }
}

/* Marquee / strip */
.strip{
  background: var(--ink); color: var(--accent);
  padding: 14px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.strip-track{
  display: flex; gap: 48px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
}
.strip-track > span{
  display: inline-flex; align-items: center; gap: 8px;
  line-height: 1;
}
.strip-track svg{ display: block; flex: none; width: 14px; height: 14px; }
.strip-track .dot{ color: rgba(255,196,45,.4); font-size: 10px; }
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Dark hero variant */
.page.dark-hero .hero{
  background: var(--ink); color: #fff;
  margin-bottom: 0;
  padding-bottom: 100px;
  border-radius: 0 0 32px 32px;
}
.page.dark-hero .hero h1 .stroke{ -webkit-text-stroke: 2px #fff; }
.page.dark-hero .hero p.lede{ color: rgba(255,255,255,.7); }
.page.dark-hero .hero-meta{ color: rgba(255,255,255,.6); }
.page.dark-hero .hero-meta b{ color: #fff; }
.page.dark-hero .hero .btn-outline{ box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.page.dark-hero .hero .btn-outline:hover{ background: #fff; color: var(--ink); }
/* Nav-button text-swap: full text on desktop, short on mobile */
.short-txt{ display: none; }
@media (max-width: 760px){
  .full-txt{ display: none; }
  .short-txt{ display: inline; }
}

.page.dark-hero .eyebrow{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   MOBILE — overrides for phones. Mobile-first is critical: most
   traffic comes from phones, so every block must fit a 360px viewport
   without horizontal scroll.
   ════════════════════════════════════════════════════════════════ */

/* Hard stop on horizontal scroll anywhere */
html, body{ overflow-x: clip; }
img, svg{ max-width: 100%; }
/* Let grid/flex children actually shrink */
.hero-grid > *, .features > *, .how > *, .pricing > *, .footer-grid > *,
.bigcta > *, .demo, .demo > *, .step, .step > *, .plan{ min-width: 0; }

@media (max-width: 760px){
  .container{ padding: 0 18px; }
  .section{ padding: 56px 0; }
  .section-hd{ margin-bottom: 28px; gap: 14px; }
  .section-hd h2{ font-size: clamp(28px, 8vw, 40px); max-width: 18ch; }
  .section-hd p{ font-size: 15px; }

  .hero{ padding: 28px 0 44px; }
  .hero h1{ font-size: clamp(36px, 11vw, 56px); letter-spacing: -0.03em; line-height: 1.02; }
  .hero p.lede{ font-size: 15.5px; margin-bottom: 24px; }
  .hero-actions{ flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .hero-meta{ gap: 16px 22px; font-size: 13.5px; margin-top: 22px; }

  /* Nav — compact on phones. Hide secondary CTA, keep brand + primary + burger */
  .nav{ border-bottom: 1px solid rgba(217,213,204,.6); }
  .nav-inner{ height: 60px; }
  .brand{ font-size: 19px; gap: 7px; }
  .brand svg, .brand .brand-mark{ width: 22px; height: 22px; }
  .nav-cta{ gap: 6px; }
  .nav-cta .btn-ghost{ display: none; }
  .nav-cta .btn-primary{ padding: 10px 14px; font-size: 14px; }
  .burger{ display: inline-flex; align-items: center; justify-content: center; }

  /* Hero demo widget */
  .demo{ padding: 16px; border-radius: 22px; }
  .demo-corner{ right: 18px; top: -12px; font-size: 11px; padding: 5px 10px; }
  .demo .demo-title{ font-size: 19px; }
  .demo-tabs{ margin: 0 -16px 12px; padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
  .demo-tab{ padding: 7px 12px; font-size: 12.5px; }
  .dropzone{ padding: 28px 14px; min-height: 160px; }
  .demo-prompt-label{ font-size: 13px; }
  .demo-prompt{ min-height: 54px; padding: 10px 14px; font-size: 14px; }
  .demo-run{ padding: 12px 16px; font-size: 14.5px; }

  /* Eyebrow chip */
  .eyebrow{ font-size: 12.5px; padding: 5px 11px 5px 8px; }

  /* Marquee */
  .strip{ padding: 10px 0; }
  .strip-track{ gap: 32px; font-size: 12.5px; }

  /* Feature cards — single column, tighter */
  .fcard{ padding: 20px 18px; min-height: 0; border-radius: 18px; }
  .fcard .icon{ width: 34px; height: 34px; margin-bottom: 12px; }
  .fcard .icon svg{ width: 20px; height: 20px; }
  .fcard h3{ font-size: 18px; }
  .fcard p{ font-size: 14.5px; }
  .fcard .try{ margin-top: 14px; font-size: 13.5px; }
  .fcard .tag{ top: 14px; right: 14px; font-size: 10.5px; }

  /* How it works */
  .step{ padding: 22px; border-radius: 18px; }
  .step h3{ font-size: 19px; }
  .step p{ font-size: 14.5px; }
  .step-illu{ height: 100px; margin-top: 14px; }

  /* Pricing */
  .plan{ padding: 26px 22px; border-radius: 22px; }
  .plan h3{ font-size: 22px; }
  .plan .price{ font-size: 48px; }
  .plan .price small{ font-size: 16px; }
  .plan ul{ gap: 9px; margin-bottom: 22px; }
  .plan li{ font-size: 14px; }

  /* Big CTA */
  .bigcta{ padding: 36px 24px; border-radius: 22px; grid-template-columns: 1fr; gap: 24px; }
  .bigcta h2{ font-size: clamp(28px, 8vw, 40px); }
  .bigcta p{ font-size: 15px; margin-bottom: 22px; }
  .bigcta .actions{ flex-direction: column; align-items: stretch; gap: 10px; }
  .bigcta .actions .btn{ width: 100%; justify-content: center; }
  .bigcta .deco{ align-items: stretch; }
  .bigcta .ticket{ min-width: 0; }
  .bigcta .ticket .big{ font-size: 32px; }

  /* FAQ */
  .qa{ padding: 2px 18px; border-radius: 14px; }
  .qa summary{ font-size: 15.5px; padding: 16px 0; gap: 12px; }
  .qa .ans{ font-size: 14px; padding-bottom: 16px; }

  /* Footer */
  .footer{ padding: 44px 0 26px; }
  .footer-grid{ gap: 28px; }
  .footer .support-mail{ font-size: 18px; letter-spacing: -0.005em; }
  .footer h4{ margin-bottom: 12px; }
  .footer ul{ gap: 8px; }
  .footer a, .footer li{ font-size: 14.5px; }
  .footer-bottom{ font-size: 12.5px; margin-top: 36px; padding-top: 18px; gap: 10px; }

  /* Buttons — generally a bit tighter */
  .btn-lg{ padding: 14px 22px; font-size: 15.5px; }
}

@media (max-width: 420px){
  .container{ padding: 0 16px; }
  .section{ padding: 44px 0; }
  .hero{ padding: 22px 0 36px; }
  .hero h1{ font-size: clamp(30px, 10.5vw, 44px); }
  .section-hd h2{ font-size: clamp(26px, 8.5vw, 34px); }
  .bigcta{ padding: 28px 20px; }
  .plan .price{ font-size: 42px; }
  .demo-corner{ display: none; }
  /* Even more compact nav */
  .nav-cta .btn-primary{ padding: 9px 12px; font-size: 13.5px; }
  .brand{ font-size: 17.5px; }
}

/* Mobile-only: smaller, square brand mark + tighter footer label sizing */
@media (max-width: 760px){
  .footer .footer-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .footer .footer-grid{ grid-template-columns: 1fr; }
  .footer .footer-links{ grid-template-columns: 1fr; }
}