/* ==========================================================================
   KIKU · kiku.fit
   Simple, light, calm. Funnel Display (headings 600) + Funnel Sans (text).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --soft: oklch(0.975 0.003 285);
  --soft-2: oklch(0.955 0.005 285);
  --ink: oklch(0.18 0.01 280);
  --ink-2: oklch(0.42 0.012 280);
  --ink-3: oklch(0.52 0.01 280);
  --line: oklch(0.92 0.005 285);
  --indigo: oklch(0.45 0.19 280);
  --lilac: oklch(0.84 0.07 290);
  --peach: oklch(0.89 0.07 55);
  --apricot: oklch(0.79 0.13 50);

  --display: "Funnel Display", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 50;
  --z-skip: 70;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong, b { font-weight: 600; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Pill label ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; background: var(--soft-2);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.pill svg { width: 14px; height: 14px; color: var(--apricot); }

/* ---------- App Store badge ---------- */
.store {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 13px;
  border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.store:hover { background: #000; transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 10px; line-height: 1.1; opacity: .8; }
.store .big { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.15; }
.store.sm { height: 40px; padding: 0 13px 0 10px; border-radius: 10px; }
.store.sm svg { width: 19px; height: 19px; }
.store.sm small { font-size: 8.5px; }
.store.sm .big { font-size: 14px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: oklch(1 0 0 / .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .05em; color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 20px 0 18px; }
.hero .lede { font-size: 18px; color: var(--ink-2); max-width: 30em; margin-bottom: 28px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

.phones { position: relative; height: 560px; }
.phones::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 420px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: radial-gradient(circle, oklch(0.84 0.07 290 / .45), oklch(0.89 0.07 55 / .25) 45%, transparent 70%);
}
.phone {
  position: absolute; width: 250px; aspect-ratio: 660 / 1435;
  border-radius: 42px; padding: 8px; background: #111;
  box-shadow: 0 30px 60px -20px oklch(0.2 0.02 280 / .35), 0 8px 20px -10px oklch(0.2 0.02 280 / .25);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: var(--soft); }
.phones .front { left: 6%; top: 60px; transform: rotate(-6deg); z-index: 2; }
.phones .back { right: 4%; top: 0; transform: rotate(6deg); z-index: 1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .phones { height: 500px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .phones { height: 400px; }
  .phone { width: 180px; border-radius: 30px; padding: 6px; }
  .phone img { border-radius: 25px; }
  .phones .front { left: 2%; top: 46px; }
  .phones .back { right: 2%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.head { text-align: center; max-width: 620px; margin: 0 auto clamp(40px, 6vw, 60px); }
.head h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 12px; }
.head p { color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step-card { position: relative; height: 380px; border-radius: 20px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.step-card .num { position: absolute; top: 14px; left: 14px; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step-card .phone { position: relative; width: 160px; border-radius: 27px; padding: 6px; box-shadow: 0 20px 40px -18px oklch(0.2 0.02 280 / .35); }
.step-card .phone img { border-radius: 22px; }
.step h3 { font-size: 19px; letter-spacing: -.01em; margin: 20px 0 6px; }
.step p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; gap: 36px; } }

/* ---------- Missions strip ---------- */
.missions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 auto; padding: 0; max-width: 820px; }
.missions li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.missions svg { width: 17px; height: 17px; color: var(--indigo); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; }
.feature .ico { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); margin-bottom: 16px; }
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 640px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 500; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--indigo); }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .a { padding: 0 4px 20px; color: var(--ink-2); font-size: 15px; }
.faq .a a { color: var(--indigo); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-top > :first-child { display: flex; flex-direction: column; align-items: flex-start; }
.footer-top .store { margin-top: 20px; }
.footer h3 { font-family: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: span 2; } }

/* ---------- Legal pages ---------- */
.legal-page .nav { border-bottom: 1px solid var(--line); }
.btn-quiet { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink-3); }
.legal { padding: 72px 0 96px; }
.legal .doc { max-width: 700px; margin: 0 auto; }
.legal .kicker { font-size: 14px; font-weight: 500; color: var(--indigo); }
.legal h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0; }
.legal .updated { color: var(--ink-3); margin-bottom: 36px; font-size: 15px; }
.legal h2 { font-size: 22px; letter-spacing: -.015em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }
.legal .callout { background: var(--soft); border-radius: 16px; padding: 20px 22px; color: var(--ink); }
.legal a { color: var(--indigo); }
.legal-foot { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 14px; color: var(--ink-3); }
.legal-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.legal-foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
