/* ============================================================
   KAIORI — product-site design system

   Reference: real product apps (Linear, Raycast, Vercel, Apple
   product pages). The page should read as engineering, not
   marketing. That means:

   - Near-black ground, hairline rules, no decoration anywhere.
   - One sans + one mono. No serif. No italic accent words.
   - Every section is divided from the next by a rule, not a card.
   - Features alternate left/right with real product imagery,
     never a 3-up grid of identical cards.
   - The accent is a signal colour, never a wash or a glow.
   ============================================================ */

:root{
  --bg:      #08090A;
  --panel:   #0E1012;
  --panel-2: #14171A;
  --line:    #1E2124;
  --line-2:  #2B2F33;
  --ink:     #F7F8F8;
  --ink-2:   #A9AEB5;
  --ink-3:   #71767D;
  --accent:  #FFB25E;
  --sans:    "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r:       8px;
  --r-lg:    10px;
  --ease:    cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.62;
  font-weight:350;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }

.wrap{ width:min(1120px, 92vw); margin:0 auto; }

/* The serif-italic accent word is gone. */
em{ font-style:normal; color:var(--accent); font-weight:500; }

.lbl,.eyebrow{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ink-3);
  font-weight:500;
}
.eyebrow{ display:block; margin-bottom:12px; }

/* REVEAL — opt-in only. Page must render correctly with JS off. */
.rv{ transition:opacity .5s var(--ease), transform .5s var(--ease); }
.js .rv{ opacity:0; transform:translateY(12px); }
.js .rv.in{ opacity:1; transform:none; }

/* ============================================================
   NAV — 52px app bar, never a glass panel
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:60;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  width:min(1120px, 92vw); margin:0 auto;
  height:52px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.wordmark{
  font-size:15px; font-weight:600; letter-spacing:-.015em;
  display:inline-flex; align-items:center; gap:8px;
}
.wordmark .dot{ width:7px; height:7px; border-radius:2px; background:var(--accent); }
.nav-links{ display:flex; align-items:center; gap:4px; font-size:13.5px; color:var(--ink-2); }
.nav-links a{ padding:6px 10px; border-radius:6px; transition:color .2s ease, background .2s ease; }
.nav-links a:hover{ color:var(--ink); background:var(--panel); }
.nav-links a.btn{ margin-left:8px; }

/* ============================================================
   BUTTONS — 32px, 7px radius, flat. Primary is inverted.
   .btn-ember aliased so legal/404 pages keep working.
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  height:32px; padding:0 14px;
  border-radius:7px;
  font-size:13.5px; font-weight:550; letter-spacing:-.005em;
  border:1px solid transparent; cursor:pointer;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn.sm{ height:28px; padding:0 11px; font-size:13px; }
.btn-primary,.btn-ember{ background:var(--ink); color:#0A0B0C; }
.btn-primary:hover,.btn-ember:hover{ background:#FFFFFF; }
.btn-ghost{ border-color:var(--line-2); color:var(--ink-2); background:transparent; }
.btn-ghost:hover{ color:var(--ink); border-color:#3A3F44; background:var(--panel); }

/* ============================================================
   HERO — text + one big phone visual
   ============================================================ */
.hero{ padding:104px 0 64px; }
.hero-inner{
  width:min(1120px, 92vw); margin:0 auto;
  display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-3);
  border:1px solid var(--line); border-radius:6px;
  padding:5px 10px; background:var(--panel);
}
.pulse{ width:6px; height:6px; border-radius:50%; background:var(--accent); animation:pulse 2.4s infinite; }
@keyframes pulse{
  0%   { box-shadow:0 0 0 0 rgba(255,178,94,.5); }
  70%  { box-shadow:0 0 0 9px rgba(255,178,94,0); }
  100% { box-shadow:0 0 0 0 rgba(255,178,94,0); }
}

h1{
  font-size:clamp(34px, 4.6vw, 52px);
  line-height:1.06; font-weight:500; letter-spacing:-.032em;
  margin:20px 0 0; max-width:16ch;
}
.hero-sub{ font-size:16px; color:var(--ink-2); max-width:52ch; margin:18px 0 0; }
.hero-cta{ display:flex; gap:10px; margin-top:28px; flex-wrap:wrap; }
.hero-meta{ margin:22px 0 0; font-size:12.5px; color:var(--ink-3); font-family:var(--mono); letter-spacing:.02em; }

.hero-vis{ display:flex; justify-content:center; }
.phone{
  position:relative; width:260px;
  aspect-ratio:9/19.3;
  border-radius:26px; padding:5px;
  background:#17191C; border:1px solid var(--line-2);
  flex:0 0 auto;
}
.phone-screen{
  position:relative; width:100%; height:100%;
  border-radius:22px; overflow:hidden;
  background:#05060A;
}
.phone-screen img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:top center;
}
.phone-island{
  position:absolute; top:11px; left:50%; transform:translateX(-50%);
  width:60px; height:16px; border-radius:9px;
  background:#05060A; z-index:3;
  border:1px solid #20232A;
}
.phone-bar{
  position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
  width:80px; height:2.5px; border-radius:1.5px;
  background:#3A3F44; z-index:3;
}

/* ============================================================
   SPEC BAR — dense, hairline-divided
   ============================================================ */
.specs{ padding:0 0 56px; }
.spec-row{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.spec-row li{ padding:18px 18px; border-left:1px solid var(--line); }
.spec-row li:first-child{ border-left:0; padding-left:0; }
.spec-row b{
  display:block; font-size:28px; font-weight:500; line-height:1;
  letter-spacing:-.03em; color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.spec-row span{
  display:block; margin-top:7px;
  font-family:var(--mono); font-size:10.5px;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-3);
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.sec-head{ max-width:640px; margin:0 0 36px; }
.sec-head h2{
  font-size:clamp(24px, 2.9vw, 32px);
  line-height:1.14; font-weight:500; letter-spacing:-.028em;
  margin:0;
}
.sec-head p{ font-size:15px; color:var(--ink-2); margin:12px 0 0; max-width:56ch; }

/* ============================================================
   FEATURE BLOCK — alternating 2-col, hairline-divided
   No card background. Image + text on the page ground, with a
   hairline between every feature. The alternating direction is
   what gives the page its rhythm.
   ============================================================ */
.feats{ padding:0; }
.feat{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px; align-items:center;
  padding:64px 0;
  border-top:1px solid var(--line);
}
.feat-text .num{
  font-family:var(--mono); font-size:11px;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-3);
  display:flex; align-items:center; gap:10px;
}
.feat-text .num b{ color:var(--accent); font-weight:500; }
.feat-text h2{
  font-size:clamp(24px, 2.9vw, 34px);
  line-height:1.12; font-weight:500; letter-spacing:-.028em;
  margin:12px 0 0; max-width:18ch;
}
.feat-text p{
  font-size:15px; color:var(--ink-2);
  max-width:42ch; margin:12px 0 0;
}
.feat-tags{
  display:flex; gap:6px; flex-wrap:wrap; margin-top:18px;
}
.feat-tags span{
  font-family:var(--mono); font-size:10.5px;
  letter-spacing:.05em; text-transform:uppercase;
  color:var(--ink-3);
  border:1px solid var(--line); border-radius:5px;
  padding:3px 8px;
}
.feat-media{
  position:relative;
  border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden;
  background:var(--panel);
}
.feat-media.aspect-9-19{ aspect-ratio:9/19.3; max-width:340px; margin:0 auto; border-radius:20px; }
.feat-media.aspect-16-9{ aspect-ratio:16/9; border-radius:12px; }
.feat-media.aspect-4-3{ aspect-ratio:4/3; border-radius:12px; }
.feat-media img{ width:100%; height:100%; object-fit:cover; }

/* Alternating direction: flip image to the left side every other feature.
   direction:rtl reverses the grid columns without reordering the markup. */
.feat.flip{ direction:rtl; }
.feat.flip > *{ direction:ltr; }

/* ============================================================
   NARRATIVE — numbers become sentences, as a dense table
   ============================================================ */
.narrative{ padding:64px 0; border-top:1px solid var(--line); }
.nar-rows{ border-top:1px solid var(--line); max-width:940px; }
.nar-row{
  display:grid; grid-template-columns:1fr 24px 1.3fr;
  align-items:center; gap:20px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.nar-row .raw{ font-family:var(--mono); font-size:13px; color:var(--ink-3); }
.nar-row .raw s{ text-decoration-color:#3A3F44; }
.nar-row .arrow{ color:var(--accent); font-size:13px; text-align:center; }
.nar-row .story{ font-size:15.5px; color:var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ padding:72px 0; border-top:1px solid var(--line); }
.faq-list{ max-width:860px; border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); background:transparent; }
.faq-item summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:14px 0;
  font-size:15px; font-weight:500; letter-spacing:-.014em;
  color:var(--ink); transition:color .2s ease;
}
.faq-item summary:hover{ color:var(--accent); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:""; flex:0 0 auto;
  width:7px; height:7px;
  border-right:1.5px solid var(--ink-3);
  border-bottom:1.5px solid var(--ink-3);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .3s var(--ease);
}
.faq-item[open] summary::after{ transform:rotate(-135deg) translateY(-2px); }
.faq-a{ padding:0 0 16px; }
.faq-a p{ margin:0; font-size:14.5px; color:var(--ink-2); line-height:1.65; max-width:66ch; }
.faq-a a{ color:var(--accent); border-bottom:1px solid rgba(255,178,94,.35); }

/* ============================================================
   CTA — joined input + button, product-app style
   ============================================================ */
.cta{ padding:72px 0 64px; border-top:1px solid var(--line); }
.cta h2{ font-size:clamp(24px, 3vw, 32px); font-weight:500; letter-spacing:-.028em; margin:0; }
.cta > .wrap > p{ color:var(--ink-2); font-size:15px; max-width:52ch; margin:12px 0 0; }
.cta-form{ display:flex; gap:8px; margin-top:24px; flex-wrap:wrap; max-width:460px; }
.cta-form input[type="email"]{
  flex:1 1 240px; height:34px; padding:0 12px;
  border-radius:7px; background:var(--panel);
  border:1px solid var(--line-2);
  color:var(--ink); font-size:14px; font-family:var(--sans); outline:none;
  transition:border-color .2s ease, background .2s ease;
}
.cta-form input[type="email"]::placeholder{ color:var(--ink-3); }
.cta-form input[type="email"]:focus{ border-color:var(--accent); background:var(--panel-2); }
.cta-form button{ height:34px; cursor:pointer; }
.cta-form button[disabled]{ opacity:.55; cursor:default; }
.cta-alt{ color:var(--ink-3); font-size:13.5px; margin-top:18px; }
.cta-alt a{ color:var(--ink-2); border-bottom:1px solid var(--line-2); }
.cta-alt a:hover{ color:var(--ink); }
.form-note{ min-height:20px; margin:12px 0 0; font-size:13px; color:var(--ink-3); }
.form-note.bad{ color:#FF8A7A; }
.cta-success{ margin-top:24px; padding:18px 20px; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); max-width:520px; }
.cta-success .ti{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:6px; background:rgba(255,178,94,.14); color:var(--accent); font-size:13px; margin-bottom:12px; }
.cta-success h3{ font-size:17px; font-weight:550; margin:0 0 6px; letter-spacing:-.018em; }
.cta-success p{ color:var(--ink-2); font-size:14.5px; margin:0; }
.cta-success strong{ color:var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
footer{ border-top:1px solid var(--line); padding:44px 0 36px; }
.foot-grid{ display:grid; grid-template-columns:1.5fr 2.5fr; gap:40px; }
.foot-brand .tag{ color:var(--ink-3); font-size:13.5px; margin-top:12px; max-width:32ch; }
.foot-cols{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.foot-col h4{ font-family:var(--mono); font-size:10.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-3); font-weight:500; margin:0 0 12px; }
.foot-col a{ display:block; font-size:13.5px; color:var(--ink-2); padding:3px 0; transition:color .2s ease; }
.foot-col a:hover{ color:var(--ink); }
.foot-base{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:36px; padding-top:18px; border-top:1px solid var(--line); font-size:12.5px; color:var(--ink-3); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav-toggle{
  display:none; width:32px; height:32px; flex:0 0 auto;
  align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
  border:1px solid var(--line-2); border-radius:6px;
  background:var(--panel); cursor:pointer;
}
.nav-toggle span{ display:block; width:14px; height:1.5px; border-radius:1px; background:var(--ink); transition:transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child{ transform:translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child{ transform:translateY(-2.75px) rotate(-45deg); }

.nav-sheet{
  position:fixed; inset:0 0 auto; top:0;
  padding:76px 24px 28px; background:var(--bg);
  border-bottom:1px solid var(--line);
  z-index:-1; opacity:0; transform:translateY(-8px);
  transition:opacity .28s var(--ease), transform .28s var(--ease);
}
.nav-sheet.open{ opacity:1; transform:none; z-index:55; }
.nav-sheet nav{ display:flex; flex-direction:column; }
.nav-sheet nav a{ font-size:17px; font-weight:450; letter-spacing:-.018em; padding:12px 0; border-bottom:1px solid var(--line); color:var(--ink-2); }
.nav-sheet > .btn{ margin-top:20px; width:100%; height:38px; }
body.nav-open{ overflow:hidden; }
.nav-links a[aria-current="true"]{ color:var(--ink); background:var(--panel); }

/* ============================================================
   LEGAL PAGES + 404
   ============================================================ */
.legal{ padding:96px 0 80px; }
.legal .wrap{ width:min(760px, 92vw); }
.legal h1{ font-size:clamp(26px, 3.4vw, 36px); margin:0 0 8px; letter-spacing:-.028em; }
.legal .updated{ color:var(--ink-3); font-size:12px; letter-spacing:.06em; text-transform:uppercase; margin:0 0 36px; font-family:var(--mono); }
.legal h2{ font-size:19px; font-weight:500; letter-spacing:-.02em; margin:40px 0 10px; }
.legal h3{ font-size:15px; font-weight:600; margin:24px 0 6px; color:var(--ink); }
.legal p,.legal li{ color:var(--ink-2); font-size:15px; line-height:1.7; }
.legal p{ margin:0 0 14px; }
.legal ul{ margin:0 0 16px; padding-left:20px; }
.legal li{ margin:0 0 8px; }
.legal a{ color:var(--accent); border-bottom:1px solid rgba(255,178,94,.35); }
.legal strong{ color:var(--ink); font-weight:600; }
.legal .back{ display:inline-flex; align-items:center; gap:8px; margin-bottom:28px; font-size:13.5px; color:var(--ink-3); }
.legal .back:hover{ color:var(--ink); }
.legal .note{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel); padding:16px 18px; margin:0 0 20px; }
.legal .note p:last-child{ margin-bottom:0; }

.oops{ min-height:72svh; display:flex; align-items:center; padding:120px 0; }
.oops .code{ font-family:var(--mono); font-weight:500; font-size:clamp(48px, 9vw, 84px); line-height:1; letter-spacing:-.05em; color:var(--ink); margin:0; }
.oops h1{ font-size:clamp(22px, 3vw, 30px); margin:14px 0 0; }
.oops p{ color:var(--ink-2); font-size:15px; max-width:46ch; margin:14px 0 0; }
.oops .btn{ margin-top:24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1000px){
  .hero-inner{ grid-template-columns:1fr; gap:40px; }
  .hero-vis{ justify-content:flex-start; }
  .feat{ grid-template-columns:1fr; gap:32px; padding:48px 0; }
  .feat.flip{ direction:ltr; }
  .feat-media.aspect-9-19{ max-width:240px; }
  .spec-row{ grid-template-columns:repeat(2,1fr); }
  .spec-row li:nth-child(3){ border-left:0; padding-left:0; }
  .spec-row li:nth-child(n+3){ border-top:1px solid var(--line); }
  .foot-grid{ grid-template-columns:1fr; }
  .foot-cols{ grid-template-columns:repeat(2,1fr); }
  .nar-row{ grid-template-columns:1fr 20px; gap:6px 12px; }
  .nar-row .story{ grid-column:1 / -1; }
}
@media (max-width:820px){
  .nav-toggle{ display:flex; }
  .nav-links{ display:none; }
  .hero{ padding-top:84px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .rv{ opacity:1; transform:none; }
}
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:5px; }
:focus:not(:focus-visible){ outline:none; }

.skip{
  position:fixed; top:10px; left:10px; z-index:200;
  padding:8px 14px; border-radius:7px;
  background:var(--ink); color:#0A0B0C;
  font-size:13px; font-weight:600;
  transform:translateY(-160%);
  transition:transform .25s var(--ease);
}
.skip:focus{ transform:none; }

.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.honeypot{ position:absolute; left:-9999px; height:0; width:0; opacity:0; pointer-events:none; }

::selection{ background:rgba(255,178,94,.28); color:var(--ink); }