/* meister. – Dunkel-Palette aus src/preferences/theme.ts der App */
:root {
  --bg: #101713;
  --card: #1b251f;
  --ink: #eef3ed;
  --muted: #b3beb5;
  --line: #354239;
  --green: #a3d5ad;
  --soft: #293b2f;
  --warm: #3b3022;
  --amber: #f0bc7e;
  --red: #ffab9d;
  --on-accent: #14251a;
  --placeholder: #a4b0a7;
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
::selection { background: var(--green); color: var(--on-accent); }

.glow {
  position: fixed; inset: -20vh -20vw auto; height: 90vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(163, 213, 173, .10), transparent 70%),
    radial-gradient(30% 40% at 15% 10%, rgba(163, 213, 173, .06), transparent 70%);
}
main, .footer, .nav { position: relative; z-index: 1; }

.logo { font-weight: 700; font-size: 24px; letter-spacing: -1px; color: var(--green); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 16px; border: 0;
  background: var(--green); color: var(--on-accent);
  font: 600 16px/1 Inter, sans-serif; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(163, 213, 173, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, .step:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn-small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 23, 19, .72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: calc(100vh - 68px); padding: 40px 0 80px; }
.hero-title { font-size: clamp(48px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.05em; font-weight: 700; margin-bottom: 26px; }
.hero-title .h1-kicker { display: block; line-height: 1.4; margin-bottom: 18px; }
.hero-title .h1-beta { color: var(--muted); font-weight: 500; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span:nth-child(2) { animation-delay: .08s; }
.hero-title .line:nth-child(2) > span:nth-child(1) { animation-delay: .16s; }
.hero-title .line:nth-child(2) > span:nth-child(2) { animation-delay: .24s; }
.accent { color: var(--green); }
@keyframes rise { to { transform: none; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg, .f-ok svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.js .hero-visual .phone-hero { opacity: 0; animation: phoneIn 1.2s var(--ease) .2s forwards; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* Phone */
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2b3830, #121a15 60%);
  box-shadow: 0 0 0 1px #3a483f, 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 80px -20px rgba(163, 213, 173, .18);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 88px; height: 26px; background: #050806; border-radius: 20px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 39px; background: var(--bg); overflow: hidden; padding: 0 16px; font-size: 12px; }
.status { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 12px; font-weight: 600; font-size: 12px; }
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons i { width: 14px; height: 8px; border-radius: 2px; background: var(--ink); opacity: .9; }
.status-icons i:last-child { width: 20px; }
.app-top { display: flex; justify-content: space-between; align-items: center; height: 40px; margin-bottom: 6px; }
.app-logo { font-weight: 700; font-size: 17px; letter-spacing: -.6px; color: var(--green); }
.back { font-size: 24px; color: var(--ink); width: 26px; line-height: 1; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--green); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.kicker { color: var(--muted); font-size: 11px; }
.screen-title { font-size: 23px; font-weight: 700; letter-spacing: -.04em; margin: 2px 0 14px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.days span { background: var(--card); border-radius: 11px; padding: 8px 0; text-align: center; font-weight: 600; font-size: 13px; display: grid; gap: 2px; }
.days small { font-weight: 400; color: var(--muted); font-size: 10px; }
.days .on { background: var(--green); color: var(--on-accent); }
.days .on small { color: var(--on-accent); }
.card { background: var(--card); border-radius: 18px; padding: 16px; }
.card.mini { border-radius: 15px; padding: 12px 13px; margin-bottom: 8px; display: grid; gap: 3px; }
.row { display: flex !important; align-items: center; gap: 10px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tiny { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.strong { font-weight: 600; font-size: 13px; }
.muted-s { color: var(--muted); font-size: 11px; line-height: 1.4; }
.pill { font-size: 9.5px; padding: 3px 7px; border-radius: 7px; font-weight: 500; white-space: nowrap; }
.pill.warm { background: var(--warm); color: var(--amber); }
.pill.ok { background: var(--soft); color: var(--green); }
.max-dot { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--soft); color: var(--green); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; padding: 9px 10px 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); }
.tabbar span { display: grid; justify-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.tabbar .on { color: var(--green); }

/* Mini-Icons per Maske */
.ico { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico-home { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E"); }
.ico-jobs { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
.ico-office { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E"); }
.ico-chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.ico-receipt { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 2v20l3-2 2 2 2-2 2 2 2-2 3 2V2l-3 2-2-2-2 2-2-2-2 2z'/%3E%3Cpath d='M9 9h6M9 13h6'/%3E%3C/svg%3E"); }
.ico-photo { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }
.ico-note { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.ico-clock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* Floating cards (Hero) */
.float {
  position: absolute; z-index: 4; background: rgba(27, 37, 31, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
}
.f-receipt { width: 210px; padding: 14px 16px; display: grid; gap: 4px; top: 30%; left: -6%; rotate: -4deg; }
.f-voice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; bottom: 26%; right: -6%; }
.f-ok { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--green); bottom: 8%; left: 4%; }
.js .float { opacity: 0; animation: floatIn .9s var(--ease) forwards, bob 6s ease-in-out infinite; }
.js .f-receipt { animation-delay: .9s, 1.8s; }
.js .f-voice { animation-delay: 1.15s, 2.1s; }
.js .f-ok { animation-delay: 1.4s, 2.4s; }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.play { width: 30px; height: 30px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 11px; top: 9px; border-left: 10px solid var(--on-accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play.sm { width: 24px; height: 24px; }
.play.sm::after { left: 9px; top: 7px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: var(--green); height: 30%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; }
.wave i:nth-child(3n+1) { animation-delay: -.6s; }
.wave i:nth-child(4n) { animation-delay: -.9s; }
.wave.sm { height: 18px; gap: 2px; }
.wave.sm i { width: 2.5px; background: var(--on-accent); }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Sections */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { margin-bottom: 64px; max-width: 760px; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding-left: 28px; border-left: 2px solid var(--line); opacity: .35; cursor: pointer;
  transition: opacity .6s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
/* Green line draws in from the top on the active step */
.step::before {
  content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--green);
  transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease);
}
.step.is-active { opacity: 1; }
.step.is-active::before { transform: scaleY(1); }
/* Each step fades in once it is scrolled into view; number, heading and text follow one another */
.js .step:not(.seen) { opacity: 0; transform: translateY(48px); filter: blur(6px); }
.js .step > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .step:not(.seen) > * { opacity: 0; transform: translateY(14px); }
.js .step.seen > :nth-child(2) { transition-delay: .1s; }
.js .step.seen > :nth-child(3) { transition-delay: .2s; }
.step h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.1; }
.step p { color: var(--muted); max-width: 30em; }
.step-num { font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: .08em; }
.step-stage { position: sticky; top: calc(50vh - 310px); display: grid; place-items: center; height: 620px; }
.phone-steps .screen { padding-bottom: 20px; }

.sv { position: absolute; inset: 50px 16px 16px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.sv.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }

/* Chat screen */
.chat { display: flex; flex-direction: column; gap: 9px; padding-top: 6px; }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 16px; font-size: 12px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--green); color: var(--on-accent); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.max { align-self: flex-start; background: var(--card); border-bottom-left-radius: 5px; }
.msg.photo { display: flex; align-items: center; gap: 9px; }
.receipt-thumb { width: 36px; height: 46px; border-radius: 6px; background: #f3f4f0; display: grid; align-content: center; gap: 4px; padding: 0 6px; transform: rotate(-4deg); }
.receipt-thumb i { height: 3px; background: #9aa59d; border-radius: 2px; }
.receipt-thumb i:nth-child(2) { width: 70%; }
.msg.voice { display: flex; align-items: center; gap: 8px; }
.msg.voice small { font-size: 10px; }
.msg.voice .play { background: var(--on-accent); }
.msg.voice .play::after { border-left-color: var(--green); }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.chips { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.chip { font-size: 10.5px; padding: 5px 9px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: var(--soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.composer { position: absolute; left: 0; right: 0; bottom: 4px; height: 42px; border-radius: 14px; background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; color: var(--placeholder); }
.mic { width: 30px; height: 30px; border-radius: 10px; background: var(--green); }

/* Chat sequence: plays each time the screen becomes active */
.sv[data-screen="0"] .msg { opacity: 0; transform: translateY(10px); }
.sv[data-screen="0"].is-active .msg { animation: msgIn .5s var(--ease) forwards; }
.sv[data-screen="0"].is-active .msg:nth-child(1) { animation-delay: .25s; }
.sv[data-screen="0"].is-active .msg:nth-child(2) { animation-delay: .75s; }
.sv[data-screen="0"].is-active .typing { animation: msgIn .4s var(--ease) 1.3s forwards, msgOut .3s ease 2.4s forwards; }
.sv[data-screen="0"].is-active .msg:nth-child(4) { animation-delay: 2.6s; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
@keyframes msgOut { to { opacity: 0; height: 0; padding: 0; margin: -9px 0 0; } }

/* Job screen */
.list { background: var(--card); border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.li { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .ico { width: 16px; height: 16px; color: var(--green); }
.li span { flex: 1; font-weight: 500; }
.li em { font-style: normal; color: var(--muted); }
.ask { box-shadow: inset 0 0 0 1px var(--green); gap: 8px !important; }
.sv[data-screen="1"] .li, .sv[data-screen="1"] .ask { opacity: 0; transform: translateX(-12px); }
.sv[data-screen="1"].is-active .li, .sv[data-screen="1"].is-active .ask { animation: slideIn .5s var(--ease) forwards; }
.sv[data-screen="1"].is-active .li:nth-child(1) { animation-delay: .2s; }
.sv[data-screen="1"].is-active .li:nth-child(2) { animation-delay: .32s; }
.sv[data-screen="1"].is-active .li:nth-child(3) { animation-delay: .44s; }
.sv[data-screen="1"].is-active .li:nth-child(4) { animation-delay: .56s; }
.sv[data-screen="1"].is-active .ask { animation-delay: 1.1s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }

/* Approval screen */
.offer { display: grid; gap: 5px; }
.big { font-size: 16px; margin-top: 6px; }
.sum { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.sum b { color: var(--ink); }
.fake-btn { margin-top: 12px; height: 42px; border-radius: 12px; background: var(--green); color: var(--on-accent); font-weight: 600; display: grid; place-items: center; position: relative; overflow: hidden; }
.fake-btn span { grid-area: 1 / 1; }
.offer .state-b { display: none; }
.sv[data-screen="2"].is-active .fake-btn { animation: press .35s ease 1.4s; }
.sv[data-screen="2"].approved .state-a { display: none; }
.sv[data-screen="2"].approved .state-b { display: inline; }
.sv[data-screen="2"].approved .fake-btn { background: var(--soft); color: var(--green); }
.sv[data-screen="2"].approved .pill.ok { animation: pop .4s var(--ease); }
@keyframes press { 50% { transform: scale(.95); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.okay { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--green); font-size: 11.5px; margin-top: 14px; }
.okay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, opacity .8s var(--ease) var(--d, 0s);
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(163, 213, 173, .10), transparent 60%);
}
.feature:hover { transform: translateY(-4px); border-color: #4a5a4f; }
.feature:hover::before { opacity: 1; }
.feature h3 { margin: 22px 0 10px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.f-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Control */
.control { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; background: linear-gradient(150deg, var(--soft), var(--card) 70%); border: 1px solid var(--line); border-radius: 32px; padding: clamp(32px, 6vw, 72px); }
.control h2 { margin-bottom: 20px; }
.control-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.control-list li { display: grid; gap: 4px; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; }
.control-list li:last-child { border-bottom: 0; }
.control-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 20px; height: 20px; border-radius: 7px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314251a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.control-list span { color: var(--muted); font-size: 15.5px; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.04em; color: var(--muted); white-space: nowrap; }
.marquee span:nth-child(odd) { color: var(--green); }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* Beta */
.beta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; overflow: clip; }
.beta-card::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -240px; background: radial-gradient(circle, rgba(163, 213, 173, .14), transparent 65%); pointer-events: none; }
.beta-copy h2 { margin-bottom: 18px; }
.beta-perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.beta-perks li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.beta-perks span { width: 30px; height: 30px; border-radius: 10px; background: var(--soft); color: var(--green); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.beta-form-wrap { position: relative; z-index: 1; }
.beta-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.field legend { margin-bottom: 8px; }
input[type="email"], input[type="text"], select {
  width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 16px Inter, sans-serif; padding: 0 16px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3beb5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
input::placeholder { color: var(--placeholder); opacity: .7; }
input[type="email"]:focus, input[type="text"]:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(163, 213, 173, .15); }
input.invalid { border-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--bg); padding: 5px; border-radius: 14px; border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.seg input:checked + span { background: var(--soft); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.seg input:focus-visible + span { outline: 2px solid var(--green); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--bg); margin: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314251a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; border-color: var(--green); }
.check input.invalid { border-color: var(--red); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { color: var(--red); font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(20, 37, 26, .3); border-top-color: var(--on-accent); animation: spin .7s linear infinite; }
.loading .spinner { display: inline-block; }
.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 30px 0; }
.success h3 { font-size: 30px; letter-spacing: -.035em; }
.success p { color: var(--muted); max-width: 26em; }
.success b { color: var(--ink); overflow-wrap: anywhere; }
.check-anim { width: 72px; height: 72px; margin-bottom: 6px; }
.check-anim circle { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s var(--ease) forwards; }
.check-anim path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success.show { animation: msgIn .5s var(--ease); }

.notice { background: var(--soft); border: 1px solid var(--green); color: var(--ink); border-radius: 16px; padding: 14px 16px; margin-bottom: 22px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; animation: msgIn .5s var(--ease); }
.notice::before { content: "✓"; color: var(--green); font-weight: 700; }
.notice.neutral { border-color: var(--line); }
.notice.neutral::before { content: "i"; }

/* Trades */
.section-tight { padding-top: 0; }
.trades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trade { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .4s, opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.trade:hover { border-color: #4a5a4f; }
.trade h3 { font-size: 18px; margin-bottom: 10px; }
.trade p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 600; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover h3 { color: var(--green); }
.faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.faq details p { color: var(--muted); max-width: 44em; padding: 0 40px 26px 0; }
.faq details[open] p { animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; text-align: left; }
  .hero-visual { min-height: 600px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step-stage { position: relative; top: 0; order: -1; height: 620px; }
  .step-list { display: grid; gap: 10px; }
  /* The list stays pinned while the track scrolls past, so each step gets its own stretch of scrolling */
  .js .step-track { height: calc(var(--list-h, 700px) + 150vh); }
  .js .step-list { position: sticky; top: max(76px, calc(50vh - var(--list-h, 700px) / 2)); }
  .step { min-height: 0; padding: 18px 0 18px 22px; }
  .grid, .trades { grid-template-columns: 1fr 1fr; }
  .control, .beta-card { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid, .trades { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .phone { transform-origin: top center; }
  .hero-visual .phone, .step-stage .phone { scale: .86; }
  .step-stage { height: 540px; }
  .f-receipt { left: auto; right: 0; top: -2%; width: 176px; rotate: 4deg; }
  .f-voice { right: 0; bottom: 18%; }
  .f-ok { left: 0; bottom: 4%; }
  .section-head { margin-bottom: 40px; }
  .feature { padding: 24px; }
  .btn-small { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .float, .js .hero-visual .phone-hero, .js .hero-title .line > span { opacity: 1; transform: none; }
}
