/* Kiroku website. "Showroom" design, same palette as the app (composeApp/.../ui/theme/AppTheme.kt). */

@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(/fonts/inter-light.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-semibold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-extrabold.woff2) format("woff2"); }

/* Daylight */
:root {
  color-scheme: light dark;
  --paper: #eceef1; --top: #ffffff; --card: #ffffff;
  --ink: #121417; --sub: #5f646c; --line: #e2e4e8; --soft: #e3e5e9;
  --teal: #0d8a6a; --teal-soft: #ddf3ec;
  --red: #d0302a; --red-soft: #fce6e4;
  --amber: #9e6c00; --amber-soft: #fcf1d8;
  --shadow: 0 1px 2px rgba(18, 20, 23, .04), 0 12px 32px -18px rgba(18, 20, 23, .28);
  --radius: 22px;
  --wrap: 1120px;
  --gutter: max(20px, 5vw);
}

/* Night: the stage, and the whole page when the phone is in dark mode */
.stage,
.night {
  --paper: #0c0d0f; --top: #24262b; --card: #17181b;
  --ink: #eef0f2; --sub: #9a9ea6; --line: #26282d; --soft: #1e2024;
  --teal: #3fe0b4; --teal-soft: #0f2c25;
  --red: #ff6b61; --red-soft: #2e1513;
  --amber: #f5c04a; --amber-soft: #2d2510;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0d0f; --top: #1b1c20; --card: #17181b;
    --ink: #eef0f2; --sub: #9a9ea6; --line: #26282d; --soft: #1e2024;
    --teal: #3fe0b4; --teal-soft: #0f2c25;
    --red: #ff6b61; --red-soft: #2e1513;
    --amber: #f5c04a; --amber-soft: #2d2510;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "calt", "kern";
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; min-height: 48px; }
.brand svg { width: 34px; height: 34px; border-radius: 10px; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--sub); font-size: 15px; font-weight: 600; padding: 12px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav .opt { display: none; } }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-main { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.stage .btn-main { background: #fff; color: #0c0d0f; box-shadow: 0 12px 40px -12px rgba(63, 224, 180, .35); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset; }
.stage .btn-ghost { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1.5px var(--sub) inset; }

/* ---------- Stage (dark sections) ---------- */
.stage {
  background: radial-gradient(120% 80% at 50% 0%, var(--top) 0%, var(--paper) 62%);
  color: var(--ink);
  position: relative;
  isolation: isolate;
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; } }
.eyebrow { display: inline-flex; align-items: baseline; gap: 8px; color: var(--sub); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-bottom: 22px; }
.eyebrow i { flex: none; width: 8px; height: 8px; transform: translateY(-1px); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(63, 224, 180, .15); }
.hero h1 { font-weight: 300; font-size: clamp(46px, 8.6vw, 78px); letter-spacing: -.045em; line-height: .98; }
.hero h1 b { font-weight: 300; color: var(--teal); }
.hero .lead { margin: 24px 0 32px; color: var(--sub); font-size: clamp(17px, 2.1vw, 20px); max-width: 34em; }
.soon { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 14px; font-weight: 600; }
.soon svg { width: 18px; height: 18px; }

/* Machines on the stage */
.yard { position: relative; margin-top: 56px; }
.yard::before {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 120%; height: 90px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(63, 224, 180, .16), transparent 70%);
  z-index: -1;
}
.yard-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 2%; }
.yard-row svg { width: 100%; height: auto; }
.floor { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); }
.yard-cap { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 2%; padding: 14px 0 64px; color: var(--sub); font-size: 13px; text-align: center; }

/* Spinning drum stripes */
.drum-spin { stroke-dasharray: 26 30; animation: drum 2.4s linear infinite; }
@keyframes drum { to { stroke-dashoffset: -56; } }

/* ---------- Phone mock ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(330px, 100%); aspect-ratio: 330 / 596; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2c2f35, #0f1012);
  box-shadow: 0 0 0 1px #33363c inset, 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 120px -40px rgba(63, 224, 180, .35);
  transform: rotate(-2deg);
}
.screen {
  height: 100%; border-radius: 39px; overflow: hidden; position: relative;
  background: radial-gradient(120% 60% at 50% 0%, #24262b, #0c0d0f 62%);
  color: #eef0f2; font-size: 13px; line-height: 1.4; padding: 14px 18px 0;
  display: flex; flex-direction: column;
}
.screen .bar-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 0 8px 10px; }
.screen .mut { color: #8d9199; }
.screen .hello { font-weight: 300; font-size: 24px; letter-spacing: -.02em; line-height: 1.12; margin: 4px 0 2px; }
.screen .mini-stage { margin: 2px -18px 0; height: 118px; }
.screen .mini-stage svg { width: 100%; height: 100%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 12px; }
.kpis b { display: block; font-weight: 300; font-size: 30px; letter-spacing: -.04em; line-height: 1.05; }
.kpis span { font-size: 11px; color: #8d9199; }
.vcard { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.vcard .grow { flex: 1; min-width: 0; }
.vcard .r { text-align: right; }
.vcard b { font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.plate { display: inline-block; border: 1.5px solid currentColor; border-radius: 6px; padding: 0 6px; font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.chips { display: flex; gap: 6px; margin: 2px 0 8px; }
.chip { border-radius: 12px; padding: 6px 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); font-size: 11px; display: flex; flex-direction: column; }
.chip b { font-size: 13px; font-weight: 600; }
.chip.warn { background: rgba(245, 192, 74, .12); border-color: rgba(245, 192, 74, .3); color: #f5c04a; }
.tabbar { margin: auto -18px 0; display: flex; justify-content: space-around; padding: 10px 0 18px; font-size: 10px; color: #6e727a; border-top: 1px solid rgba(255, 255, 255, .05); background: rgba(12, 13, 15, .6); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar svg { width: 18px; height: 18px; }
.tabbar .on { color: #fff; }

/* ---------- Daylight sections ---------- */
.sec { padding: clamp(72px, 11vw, 128px) 0; }
.sec-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker, .sec-head .kicker, .ocard .kicker { color: color-mix(in srgb, var(--teal) 82%, var(--ink)); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.sec h2 { font-weight: 300; font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -.035em; }
.sec-head p { margin-top: 18px; color: var(--sub); font-size: 18px; }

/* Problem */
.problem { display: grid; gap: 16px; }
@media (min-width: 760px) { .problem { grid-template-columns: repeat(2, 1fr); } }
.pcard { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.pcard .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.pcard .ico svg { width: 22px; height: 22px; }
.pcard p { color: var(--sub); }
.pcard p b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.teal { background: var(--teal-soft); color: var(--teal); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; margin-bottom: 18px;
}
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.steps p { color: var(--sub); font-size: 16px; }

/* Demo video (portrait, 1080×1920, in a phone frame) */
.demo { padding: clamp(72px, 11vw, 128px) 0; overflow: hidden; }
.demo-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .demo-grid { grid-template-columns: 1fr minmax(0, 360px); gap: 64px; } }
.demo h2 { font-weight: 300; font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -.035em; }
.demo .sec-head { margin-bottom: 0; }
.demo ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--sub); }
.demo li { display: flex; gap: 12px; align-items: baseline; }
.demo li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.vphone {
  width: min(330px, 86vw); margin: 0 auto; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2c2f35, #0f1012);
  box-shadow: 0 0 0 1px #33363c inset, 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 140px -40px rgba(63, 224, 180, .4);
}
.vphone video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 39px; background: #0c0d0f; object-fit: cover; }

/* Features */
.feats { display: grid; gap: 16px; }
@media (min-width: 700px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feat .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 18px; }
.feat .ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.feat p { color: var(--sub); font-size: 16px; }
.feat.wide { background: radial-gradient(120% 120% at 0% 0%, #24262b, #121417 60%); color: #eef0f2; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--shadow); }
.feat.wide p { color: #9a9ea6; }
.feat.wide .ico { background: rgba(127, 127, 127, .18); color: inherit; }
@media (min-width: 1000px) { .feat.wide { grid-column: span 2; } }
.bars { margin-top: 18px; display: grid; gap: 12px; }
.bars div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.bars u { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(127, 127, 127, .25); text-decoration: none; overflow: hidden; }
.bars u i { display: block; height: 100%; border-radius: 2px; }

/* Proof (stage) */
.proof { padding: clamp(80px, 12vw, 140px) 0; }
.proof .sec-head h2 { color: var(--ink); }
.stats { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--card); padding: 32px 28px; }
.stat b { display: block; font-weight: 300; font-size: clamp(44px, 6vw, 64px); letter-spacing: -.045em; line-height: 1; margin-bottom: 14px; }
.stat b small { white-space: nowrap; font-size: .45em; letter-spacing: -.01em; color: var(--sub); margin-left: 4px; }
.stat p { color: var(--sub); }
.foot-note { color: var(--sub); font-size: 14px; margin-top: 20px; }

/* Free health check + free */
.offer { display: grid; gap: 16px; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.3fr 1fr; } }
.ocard { border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); background: var(--card); }
.ocard h3 { font-weight: 300; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; margin-bottom: 14px; }
.ocard p { color: var(--sub); margin-bottom: 24px; }
.ocard .kicker { margin-bottom: 14px; }
.ocard .small { font-size: 14px; margin: 16px 0 0; }
.ocard.free { background: var(--teal-soft); box-shadow: none; }
.ocard.free .big { font-weight: 300; font-size: clamp(64px, 9vw, 96px); letter-spacing: -.05em; line-height: .9; color: var(--teal); margin-bottom: 16px; }
.ocard.free ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ocard.free li { display: flex; gap: 10px; align-items: flex-start; }
.ocard.free li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 3px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; font-weight: 600; font-size: 18px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; color: var(--sub); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--sub); padding: 0 0 22px; max-width: 40em; }

/* Final call (stage) */
.final { text-align: center; padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.final h2 { font-weight: 300; font-size: clamp(40px, 7vw, 72px); letter-spacing: -.045em; }
.final p { color: var(--sub); margin: 18px auto 32px; max-width: 32em; font-size: 18px; }
.final .btns { justify-content: center; }
.final .yard-row { max-width: 760px; margin: 64px auto 0; }

/* Footer */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--sub); }
.stage + .foot { border-top-color: #1c1e22; }
.foot-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot nav { column-gap: 22px; }
.foot nav a { text-decoration: none; padding: 12px 0; margin: -6px 0; color: var(--ink); font-weight: 600; }
.foot .brand { color: var(--ink); margin-bottom: 6px; }
.foot nav a:hover { text-decoration: underline; }
.foot .legal { margin-top: 18px; font-size: 12.5px; max-width: 60em; }

/* ---------- Text pages (privacy, terms, ...) ---------- */
.page-hero { padding: 132px 0 56px; }
.page-hero h1 { font-weight: 300; font-size: clamp(40px, 7vw, 64px); letter-spacing: -.04em; }
.page-hero p { color: var(--sub); margin-top: 14px; font-size: 18px; max-width: 38em; }
.prose { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.prose h2 { font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.prose h3 { font-weight: 600; font-size: 18px; margin: 28px 0 8px; letter-spacing: -.01em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; white-space: nowrap; }
.box { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin: 20px 0; }
.box p:last-child { margin-bottom: 0; }

/* ---------- Motion ---------- */
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
.hero .reveal { animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .reveal.d1 { animation-delay: .08s; }
.hero .reveal.d2 { animation-delay: .16s; }
.hero .reveal.d3 { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
