/* Neurofast landing (v4): the brand film's look. Paper, Anton slams, one green thread.
   Self-contained: the blog keeps site.css + blog.css. */
:root {
  --paper: #ebe7dc;
  --night: #0f0f14;
  --green: #2ecc71;
  --green-ink: #05291a;
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  /* scoped: paper by default, .night flips them */
  --bg: var(--paper);
  --fg: #141612;
  --mut: #5c6057;
  --panel: #f7f4ec;
  --panel-2: #e0dccf;
  --line: rgba(20, 22, 18, .16);
  --accent: #08703a;
}
.night {
  --bg: var(--night);
  --fg: #f3f5f4;
  --mut: #9ba1aa;
  --panel: #17181f;
  --panel-2: #1f2029;
  --line: rgba(255, 255, 255, .1);
  --accent: var(--green);
  background: var(--bg);
  color: var(--fg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.slam, .hero h1, .say, .number h2, .final h2, .sec > .wrap > h2, .demo-copy h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; line-height: .94; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; pointer-events: none; }
.top .bar { pointer-events: auto; width: min(var(--wrap), 100% - 24px); margin-inline: auto; display: flex; align-items: center; gap: 22px; padding: 9px 10px 9px 16px; border-radius: 999px; background: rgba(247, 244, 236, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); color: #141612; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 700; }
.nav > a { text-decoration: none; color: #5c6057; transition: color .15s; }
.nav > a:hover { color: #141612; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(20, 22, 18, .08); }
.lang-switch a { padding: 3px 9px; border-radius: 999px; text-decoration: none; font-size: 12.5px; color: #5c6057; }
.lang-switch a.is-active { background: #141612; color: var(--paper); }
.nav > a.pill, .pill { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 800; text-decoration: none; }
.nav > a.pill:hover { color: var(--green-ink); filter: brightness(1.07); }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 11px; height: 58px; padding: 0 26px 0 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 17px; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 22px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(128px, 19vh, 190px) 0 clamp(44px, 6vw, 72px); text-align: center; overflow: hidden; }
.hero .wrap { position: relative; width: min(1400px, 100% - 32px); }
.hero h1 { font-size: min(11.5vw, 168px); line-height: .92; text-wrap: balance; }
.hero .lead { margin: clamp(20px, 2.6vw, 34px) auto 0; max-width: 33em; font-size: clamp(17px, 1.55vw, 21px); font-weight: 600; color: var(--mut); text-wrap: pretty; }
.hero .stores { margin-top: 30px; }
.proof { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--mut); display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.proof b { color: var(--fg); font-weight: 800; }
.thread { position: absolute; left: 0; top: clamp(104px, 15vh, 160px); width: 100%; height: calc(min(11.5vw, 168px) * 2.3); overflow: visible; pointer-events: none; }
.stroke { fill: none; stroke: var(--green); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.thread .stroke { stroke-width: clamp(7px, 1vw, 14px); animation: draw 1.9s .15s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- the film ---------- */
.film { padding: 0 0 clamp(64px, 9vw, 120px); }
.film-card { width: min(1320px, 100% - 32px); margin-inline: auto; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2.2vw, 32px); overflow: hidden; background: #000; box-shadow: 0 60px 110px -50px rgba(20, 22, 18, .7); transform: scale(var(--s, 1)); transform-origin: 50% 0; will-change: transform; }
.film-card video { width: 100%; height: 100%; object-fit: cover; }
.film-cap { margin-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--mut); text-align: center; }

/* ---------- regular sections ---------- */
.sec { padding: clamp(72px, 10vw, 136px) 0; }
.sec > .wrap > h2 { font-size: clamp(40px, 6.4vw, 92px); max-width: 12em; text-wrap: balance; }
.sec > .wrap > h2 + * { margin-top: clamp(30px, 4.6vw, 56px); }
.sec.sort { padding-top: 0; }

/* what goes, what stays */
.sorter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sorter .side { padding: 24px 26px 28px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.sorter .k { font-size: 15px; font-weight: 800; color: var(--mut); }
.sorter ul { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: clamp(16px, 1.7vw, 21px); background: var(--panel-2); }
.chip.ok { background: var(--fg); color: var(--bg); }
.chip.ok::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.chip.no { color: var(--mut); }
.chip.no svg { position: absolute; left: -4px; top: 0; width: calc(100% + 8px); height: 100%; overflow: visible; }
.chip.no .stroke { stroke-width: 4; }
.is-in .chip.no .stroke { animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
.is-in .chip.no:nth-child(2) .stroke { animation-delay: .22s; }
.is-in .chip.no:nth-child(3) .stroke { animation-delay: .44s; }

/* ---------- pinned scenes ---------- */
.scene { position: relative; }
.scene .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.s-blocks { height: 360vh; }
.s-number { height: 260vh; }

/* blocks: one sentence, the object changes */
.blocks { display: grid; justify-items: center; gap: clamp(18px, 3.4vh, 40px); width: 100%; padding: 92px 16px 24px; }
.say { width: 100%; text-align: center; font-size: clamp(30px, 6.6vw, 96px); line-height: 1; }
.say .swap { display: block; position: relative; height: 1.06em; }
.say .swap span { position: absolute; left: 0; right: 0; top: 0; color: var(--green); opacity: 0; transform: translateY(.5em); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.say .swap span.on { opacity: 1; transform: none; }
.say .swap span.out { transform: translateY(-.5em); }
.phone { position: relative; height: min(52svh, 600px); aspect-ratio: 748 / 1440; border-radius: clamp(26px, 4.4svh, 44px); background: #000; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 7px #16171d, 0 40px 90px -30px rgba(0, 0, 0, .9); overflow: hidden; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .shot { opacity: 0; transition: opacity .45s; }
.phone .shot.on { opacity: 1; }
.mock { position: absolute; inset: 0; padding: 13% 6% 6%; background: radial-gradient(90% 34% at 50% 0, rgba(46, 204, 113, .26), transparent 70%), var(--night); color: #f3f5f4; display: flex; flex-direction: column; gap: 3.2%; font-size: clamp(9px, 1.4svh, 14px); }
.mock .t { font-weight: 800; font-size: 1.9em; letter-spacing: -.03em; display: flex; align-items: center; gap: .5em; margin-bottom: 2%; }
.badge { font-size: .5em; letter-spacing: .08em; padding: .3em .7em; border-radius: .7em; background: var(--green); color: var(--green-ink); font-weight: 800; }
.rule { display: flex; align-items: center; gap: 6%; padding: 7% 6%; border-radius: 1.7em; background: #17181f; transition: background .3s, box-shadow .3s; }
.rule.on { background: #1b2a22; box-shadow: inset 0 0 0 1.5px rgba(46, 204, 113, .55); }
.rule div { flex: 1; min-width: 0; }
.rule b { display: block; font-weight: 800; font-size: 1.12em; }
.rule span { display: block; color: #9ba1aa; font-size: .86em; line-height: 1.3; margin-top: .2em; }
.tog { flex: none; width: 3.3em; height: 1.95em; border-radius: 1em; background: #2a2b35; position: relative; transition: background .25s; }
.tog::after { content: ''; position: absolute; top: .24em; left: .24em; width: 1.47em; height: 1.47em; border-radius: 50%; background: #9a9fab; transition: transform .28s cubic-bezier(.3, 1.4, .5, 1), background .25s; }
.on > .tog { background: var(--green); }
.on > .tog::after { transform: translateX(1.35em); background: var(--green-ink); }
.note { max-width: 44em; text-align: center; font-size: 14.5px; color: var(--mut); text-wrap: pretty; }

/* demo: copy beside the vertical product film */
.demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.demo-copy h2 { font-size: clamp(44px, 7vw, 104px); text-wrap: balance; }
.demo-copy p { margin-top: clamp(18px, 2.4vw, 30px); max-width: 26em; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--mut); text-wrap: pretty; }
.reel-card { justify-self: center; width: min(100%, 400px); aspect-ratio: 9 / 16; border-radius: clamp(26px, 3.4vw, 44px); overflow: hidden; background: var(--night); box-shadow: 0 50px 100px -45px rgba(20, 22, 18, .75); }
.reel-card video { width: 100%; height: 100%; object-fit: cover; }

/* number: a green slam */
.s-number .stage { background: var(--green); color: var(--green-ink); }
.number { width: min(1240px, 100% - 36px); text-align: center; }
.number h2 { font-size: clamp(42px, 9vw, 140px); line-height: 1.06; text-wrap: balance; }
.number .w { opacity: .2; transition: opacity .3s; }
.number .w.lit { opacity: 1; }
.mk { position: relative; display: inline-block; white-space: nowrap; }
.mk svg { position: absolute; left: -2%; bottom: -.03em; width: 104%; height: .22em; overflow: visible; }
.mk .stroke { stroke: var(--green-ink); stroke-width: 7; transition: stroke-dashoffset 1.2s cubic-bezier(.6, 0, .2, 1); }
.mk.lit .stroke { stroke-dashoffset: 0; }
.number .math { margin-top: clamp(22px, 3vw, 36px); font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .72; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { border-radius: 30px; background: var(--panel); border: 1px solid var(--line); padding: 30px 28px 0; display: flex; flex-direction: column; overflow: hidden; }
.feat h3 { font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.feat p { margin-top: 10px; color: var(--mut); font-size: 15.5px; font-weight: 600; }
.feat .phone { height: auto; width: 78%; margin: 30px auto -34%; box-shadow: 0 0 0 6px #101116; border-radius: 30px; }
.feat .phone img { position: static; }

.voices { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 16px; align-items: stretch; }
.tally { display: grid; gap: 16px; min-width: 0; }
.tally div { min-width: 0; border-radius: 30px; background: var(--green); color: var(--green-ink); padding: 24px 26px; display: grid; align-content: end; }
.tally b { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 6vw, 84px); line-height: 1; }
.tally span { font-weight: 800; font-size: 16px; line-height: 1.25; margin-top: 8px; overflow-wrap: anywhere; }
.quotes { display: contents; }
.quote { border-radius: 30px; background: var(--panel); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.quote .bar { display: none; }
.quote .stars { color: var(--accent); letter-spacing: .12em; font-size: 15px; }
.quote p { font-size: 17px; font-weight: 600; line-height: 1.5; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mut); font-weight: 700; }
.quote .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-weight: 800; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--fg); transform: translateY(-3px); }
.post-card .date { font-size: 13px; color: var(--mut); font-weight: 700; }
.post-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.post-card p { font-size: 14.5px; font-weight: 600; color: var(--mut); }
.posts-all { margin-top: 22px; font-weight: 800; }
.posts-all a { color: var(--accent); text-underline-offset: 4px; }

.faq { max-width: 860px; border-top: 2px solid var(--fg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 800; font-size: 20px; letter-spacing: -.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 500; color: var(--mut); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--mut); font-weight: 600; max-width: 66ch; }
.faq details p a { color: var(--fg); text-underline-offset: 3px; }
.faq details:has(summary:empty) { display: none; }

.final { position: relative; text-align: center; padding: clamp(96px, 14vw, 180px) 0; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(56% 60% at 50% 100%, rgba(46, 204, 113, .28), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(46px, 9.4vw, 148px); text-wrap: balance; }
.final p { margin: 24px auto 34px; max-width: 30em; color: var(--mut); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 14px; color: var(--mut); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav > a:not(.pill) { display: none; }
  .feats, .posts { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .tally { grid-template-columns: 1fr 1fr; }
  .feat .phone { width: 62%; }
  .demo-grid { grid-template-columns: 1fr; }
  .reel-card { width: min(78%, 360px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .bar { gap: 10px; padding-left: 12px; }
  .brand { font-size: 16px; }
  .nav { gap: 8px; }
  .nav > a.pill { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .sorter { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; justify-content: center; }
  .phone { height: min(48svh, 500px); }
  .tally div { padding: 18px 18px 20px; border-radius: 24px; }
  .tally span { font-size: 14px; }
}

/* ---------- reduced motion: no pinning, everything shown ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { height: auto !important; }
  .scene .stage { position: static; height: auto; padding: 72px 0; }
  .stroke { stroke-dashoffset: 0; animation: none !important; }
  .number .w { opacity: 1; }
  .film-card { transform: none; }
}
