/* Kinstera brand tokens, mirrored from the app's globals.css (dark palette). */
:root {
  --bg: #0b0f1a; --surface: #141a28; --raised: #1c2333; --line: #343d54; --line-strong: #5a6378;
  --fg: #e6e9f2; --muted: #9aa3b8; --accent: #5ac8fa; --signal: #2ee6a8; --danger: #ff7377;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body { margin: 0; min-width: 320px; background: radial-gradient(1200px 600px at 80% -10%, rgb(90 200 250 / .14), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgb(46 230 168 / .08), transparent 60%), var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgb(46 230 168 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(46 230 168 / 0); } 100% { box-shadow: 0 0 0 0 rgb(46 230 168 / 0); } }
.grad { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .5rem 1.25rem; border-radius: 999px; font: 600 .875rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-lg { min-height: 48px; padding: .75rem 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgb(230 233 242 / .18); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--raised); }

.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgb(52 61 84 / .5); background: rgb(11 15 26 / .72); backdrop-filter: blur(16px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: .5rem; font: 700 1.125rem var(--display); letter-spacing: -.035em; text-decoration: none; }
.logo img { height: 24px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--fg); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

.hero { padding-top: 6rem; padding-bottom: 5rem; }
.hero h1 { max-width: 16ch; font-size: clamp(2.5rem, 7vw, 4.5rem); }
.lede { max-width: 38rem; margin: 1.5rem 0 0; font-size: 1.125rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.section { padding-top: 4.5rem; padding-bottom: 4.5rem; scroll-margin-top: 64px; }
.section h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
.card { border: 1px solid var(--line); background: rgb(20 26 40 / .8); border-radius: 20px; padding: 28px; }
.grid2 { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2 h3 { margin-top: 1rem; font-size: 1.375rem; }
.grid2 p { color: var(--muted); }
.grid2 ul { margin: 0; padding-left: 1.1rem; font-size: .9375rem; }
.grid2 li + li { margin-top: .35rem; }
.tag { display: inline-block; border-radius: 999px; background: rgb(90 200 250 / .12); padding: .25rem .65rem; font: 500 .6875rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.note { margin-top: 1.5rem; color: var(--muted); }

.steps { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: rgb(20 26 40 / .6); }
.steps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--bg); font: 500 .75rem var(--mono); }
.steps h3 { margin-top: .75rem; font-size: 1.125rem; }
.steps p { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }

.join { display: grid; gap: 2.5rem; padding: 40px 28px; }
@media (min-width: 860px) { .join { grid-template-columns: 1fr 1fr; padding: 40px; } }
.join h2 + p { margin-top: .75rem; }
form { display: grid; gap: .4rem; }
label, legend { font-size: .875rem; font-weight: 600; }
input, textarea { width: 100%; margin-bottom: .6rem; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); color: var(--fg); font: 400 1rem var(--sans); }
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
fieldset { margin: 0 0 .6rem; padding: 0; border: 0; }
legend { margin-bottom: .5rem; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem; border: 1px solid var(--line-strong); border-radius: 10px; text-align: center; font-weight: 600; font-size: .875rem; transition: background .15s, border-color .15s; }
.choice input:checked + span { border-color: var(--accent); background: rgb(90 200 250 / .14); color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
#form-msg { min-height: 1.25rem; margin: 0; font-size: .875rem; }
#form-msg.err { color: var(--danger); }
.done { color: var(--signal); font-size: 1.05rem; }

.foot { padding-top: 2rem; padding-bottom: 2rem; border-top: 1px solid var(--line); text-align: center; font-size: .75rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dot { animation: none; } .btn { transition: none; } }

/* Icons: one inline SVG sprite, stroked in currentColor. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; stroke-width: 2.4; }
.ic-lg { width: 30px; height: 30px; }
.ic-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; color: var(--accent); background: rgb(90 200 250 / .1); border: 1px solid rgb(90 200 250 / .25); }

/* Hero with live workflow card */
@media (min-width: 960px) { .hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; } }
.flow { margin-top: 3rem; padding: 20px; box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
@media (min-width: 960px) { .flow { margin-top: 0; } }
.flow-head { display: flex; align-items: center; gap: .5rem; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.flow-live { margin-left: auto; padding: .15rem .55rem; border-radius: 999px; background: rgb(46 230 168 / .12); color: var(--signal); }
.flow-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.flow-steps::before { content: ""; position: absolute; left: 22px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(var(--accent), var(--signal)); opacity: .35; }
.flow-steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; animation: step 10s infinite; }
.flow-steps li > .ic { width: 22px; height: 22px; padding: 0; color: var(--muted); background: var(--bg); box-shadow: 0 0 0 6px var(--bg); border-radius: 50%; }
.flow-steps b { display: block; font-size: .9375rem; }
.flow-steps small { color: var(--muted); font-size: .8rem; }
.tick { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--bg); background: var(--signal); opacity: 0; transform: scale(.5); animation: tick 10s infinite; }
.f2, .f2 .tick { animation-delay: 1.4s; } .f3, .f3 .tick { animation-delay: 2.8s; } .f4, .f4 .tick { animation-delay: 4.2s; } .f5, .f5 .tick { animation-delay: 5.6s; }
.f1 .tick { animation-delay: 0s; }
@keyframes step { 0% { background: transparent; border-color: transparent; } 4%, 12% { background: rgb(90 200 250 / .1); border-color: rgb(90 200 250 / .35); } 16%, 100% { background: transparent; border-color: transparent; } }
@keyframes tick { 0%, 10% { opacity: 0; transform: scale(.5); } 14%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(.5); } }
.flow-foot { display: flex; align-items: center; gap: .5rem; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.flow-foot b { margin-left: auto; font: 700 1.5rem var(--display); color: var(--signal); }

/* Tools strip */
.tools { padding-top: 1rem; padding-bottom: 1rem; text-align: center; }
.tools p { margin: 0 0 1rem; font: 500 .75rem var(--mono); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.tools ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.tools li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(20 26 40 / .6); font-weight: 600; font-size: .9rem; transition: border-color .2s, color .2s, transform .2s; }
.tools li .ic { color: var(--accent); width: 18px; height: 18px; }
.tools li:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Offer cards: big product names */
.offer { transition: transform .25s, border-color .25s, box-shadow .25s; }
.offer:hover { transform: translateY(-4px); border-color: rgb(90 200 250 / .5); box-shadow: 0 24px 60px rgb(0 0 0 / .3); }
.offer-head { display: flex; align-items: center; gap: 16px; }
.offer-head .ic-tile { width: 60px; height: 60px; border-radius: 16px; }
.grid2 .offer-name { margin: 0; font-size: clamp(2rem, 4.5vw, 2.75rem); letter-spacing: -.04em; }
.offer-sub { margin: 1rem 0 0; font: 600 1.15rem var(--sans); color: var(--fg) !important; }
.checks { list-style: none; padding: 0 !important; }
.checks li { display: flex; align-items: center; gap: .6rem; }
.checks .ic { color: var(--signal); }

/* Steps with icons */
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top em { font: 500 .8rem var(--mono); font-style: normal; color: var(--muted); }
.steps li { transition: transform .25s, border-color .25s; }
.steps li:hover { transform: translateY(-3px); border-color: rgb(90 200 250 / .45); }

/* Founder */
.founder { display: grid; gap: 2.5rem; padding: 36px 24px; border-color: rgb(90 200 250 / .3); background: linear-gradient(135deg, rgb(90 200 250 / .08), rgb(20 26 40 / .85) 45%); }
@media (min-width: 900px) { .founder { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 56px; } }
.founder h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.founder .big { margin: 1.25rem 0 0; font-size: 1.25rem; line-height: 1.5; }
.founder .muted { margin-top: 1rem; }
.pull { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--signal); font: 600 1.15rem var(--display); letter-spacing: -.02em; }
.founder-stats { display: grid; gap: 1rem; }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgb(11 15 26 / .55); }
.stat .ic-tile { grid-row: span 2; }
.stat strong { font: 700 clamp(2rem, 4vw, 2.6rem)/1 var(--display); letter-spacing: -.04em; color: var(--accent); }
.stat > span:last-child { color: var(--muted); font-size: .9rem; }

/* Scroll reveal (only hides content once JS has confirmed it can reveal it) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2), .founder-stats .stat:nth-child(2), .grid2 .offer:nth-child(2) { transition-delay: .1s; }
.steps li.reveal:nth-child(3), .founder-stats .stat:nth-child(3) { transition-delay: .2s; }
.steps li.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .flow-steps li, .tick { animation: none; }
  .tick { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .offer, .steps li, .tools li { transition: none; }
}
