/* Yukti — "Autumn Forest" palette, matching the app (ui/theme/Palette.kt). */

:root {
  --bg: #FFF8EC;
  --bg-alt: #F1F7E4;
  --card: #FFFFFF;
  --sand: #F3E6D3;
  --ink: #3B2314;
  --ink-2: rgba(59, 35, 20, 0.72);
  --ink-3: rgba(59, 35, 20, 0.45);
  --line: rgba(59, 35, 20, 0.12);
  --primary: #CC4A0E;
  --primary-bright: #FF7A1A;
  --primary-shade: #9E3608;
  --leaf: #1E7F3C;
  --leaf-bright: #3DBE5A;
  --leaf-soft: #D4F5DC;
  --gold: #9A6700;
  --gold-bright: #FFC531;
  --berry: #7C3AED;
  --shadow: 0 10px 30px rgba(59, 35, 20, 0.12);
  --sunrise: linear-gradient(135deg, #D9530E 0%, #FF9A2E 55%, #FFC531 100%);
  --radius: 22px;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1410;
    --bg-alt: #161A12;
    --card: #2A1F18;
    --sand: #3A2D24;
    --ink: #FFF6EA;
    --ink-2: rgba(255, 246, 234, 0.72);
    --ink-3: rgba(255, 246, 234, 0.42);
    --line: rgba(255, 246, 234, 0.14);
    --primary: #E5651C;
    --primary-bright: #FF8A3D;
    --primary-shade: #9E3D0A;
    --leaf: #2FA84F;
    --leaf-bright: #5DD879;
    --leaf-soft: #1F3A26;
    --gold: #FFC531;
    --gold-bright: #FFD45E;
    --berry: #A78BFA;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --sunrise: linear-gradient(135deg, #8A3A0C 0%, #B8560F 55%, #C98A12 100%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font: 700 1.9rem var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.nav .btn { margin-left: auto; }

/* Chunky buttons, like the app's ChunkyButton */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 16px; border: 0;
  font: 700 1.02rem var(--body); text-decoration: none; cursor: pointer;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 0 var(--primary-shade);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--primary-shade); }
.btn.small { padding: 9px 18px; font-size: 0.95rem; border-radius: 13px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px var(--line); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--line), inset 0 0 0 2px var(--line); }

/* Hero: big mascot left, promise right */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-bright) 26%, transparent) 0%, transparent 68%);
}
.hero-yuki { position: relative; width: min(440px, 80vw); filter: drop-shadow(0 18px 26px rgba(59, 35, 20, 0.22)); animation: bob 3.6s ease-in-out infinite; }
.bubble {
  position: absolute; top: 4%; right: 6%;
  background: var(--card); color: var(--ink); border-radius: 18px; padding: 10px 16px;
  font: 600 1rem var(--display); box-shadow: var(--shadow);
}
.bubble::after { content: ""; position: absolute; bottom: -8px; left: 26px; border: 8px solid transparent; border-top-color: var(--card); border-bottom: 0; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hero-copy { text-align: center; max-width: 480px; margin: 0 auto; }
.hero-copy h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); margin-bottom: 36px; }
.hero-buttons { display: grid; gap: 14px; max-width: 340px; margin: 0 auto; }
.btn.wide { width: 100%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; padding: 16px 24px; }
@media (max-width: 860px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-yuki { width: min(300px, 70vw); }
}

/* Topic strip */
.topics { border-block: 2px solid var(--line); padding: 18px 0; }
.topics-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.topics span { font: 600 1.05rem var(--display); color: var(--ink-2); white-space: nowrap; }
.topics .soon { color: var(--ink-3); }
.topics small { font: 700 0.65rem var(--body); text-transform: uppercase; letter-spacing: 0.08em; background: var(--sand); color: var(--ink-2); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

/* Phone frame around real app screenshots */
.phone {
  border-radius: 38px; padding: 10px; background: #2B1A10;
  box-shadow: 0 30px 60px rgba(59, 35, 20, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

/* Pitch sections: lowercase headline + text beside a screen */
section { padding: 80px 0; }
.pitch { border-top: 2px solid var(--line); }
.pitch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 980px; }
.pitch-grid.flip > :first-child { order: 2; }
.pitch h2, h2.center { color: var(--primary); font-size: clamp(2rem, 4.4vw, 3rem); }
h2.center { text-align: center; margin-bottom: 40px; }
.pitch p { color: var(--ink-2); font-size: 1.12rem; }
.pitch-art { display: flex; justify-content: center; position: relative; }
.pitch-art::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint, var(--primary-bright)) 26%, transparent) 0%, transparent 70%);
}
.pitch-art .phone { width: min(260px, 66vw); position: relative; }
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .pitch-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .pitch-grid.flip > :first-child { order: 0; }
}

/* Get the app band */
.get { background: var(--sunrise); color: #fff; }
.get-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: center; max-width: 980px; }
.get-grid img { width: min(300px, 64vw); margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.25)); }
.get h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.get p { font-size: 1.12rem; opacity: 0.95; }
.get a { color: #fff; font-weight: 700; }
.get-note { margin-top: 22px; font-size: 1rem !important; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px;
  background: #1B1410; color: #fff; text-decoration: none; font: 700 1.15rem var(--body); line-height: 1.15;
}
.store small { display: block; font-weight: 600; font-size: 0.72rem; opacity: 0.75; }
.store svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 760px) { .get-grid { grid-template-columns: 1fr; text-align: center; } .stores { justify-content: center; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; padding: 4px 22px; box-shadow: 0 2px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; font: 600 1.1rem var(--display); padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* Footer */
.site-footer { padding: 56px 0 36px; background: #1E7F3C; color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-cols h3 { font-size: 1.1rem; margin-bottom: 12px; }
.footer-cols a { display: block; color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; padding: 4px 0; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.fineprint { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }

/* Legal and help pages */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc .updated { color: var(--ink-3); font-weight: 600; margin-bottom: 2em; }
.doc li { margin-bottom: 0.5em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--display); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--card); border-radius: 18px; padding: 20px 24px; box-shadow: 0 2px 0 var(--line); margin: 1.5em 0; }
.callout.leaf { background: var(--leaf-soft); box-shadow: none; }
.callout p:last-child { margin: 0; }
