/* Scratch Map — marketing site
   Palette + fonts mirror the iOS app's "sakura paper" theme
   (JapanScratchMap/Support/Theme.swift). */

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/Caveat-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/Quicksand-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #fff8f0;
  --paper-soft: #fdeee1;
  --card: #fffcf8;
  --card-elevated: #ffffff;
  --border: rgba(232, 203, 184, 0.6);
  --border-strong: rgba(224, 169, 138, 0.6);
  --ink: #3d2f35;
  --ink-soft: #7c6470;
  --ink-mute: #a6939b;
  --accent: #ff6f98;
  --accent-soft: #ffe1ea;
  --gold: #f0a430;
  --indigo: #4c6fbf;
  --wisteria: #ad8ae0;
  --sakura: #ff86ac;
  --matcha: #54b497;
  --yuzu: #f0a44c;
  --wisteria-dim: #f0e7fa;
  --sakura-dim: #fde3ec;
  --matcha-dim: #e1f3ec;
  --yuzu-dim: #fcead1;
  --shadow: rgba(217, 169, 138, 0.28);
  --shadow-strong: rgba(217, 169, 138, 0.4);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #241a20;
    --paper-soft: #2c2028;
    --card: #332530;
    --card-elevated: #3b2a38;
    --border: rgba(245, 217, 200, 0.16);
    --border-strong: rgba(245, 201, 176, 0.3);
    --ink: #f6e9e2;
    --ink-soft: #cbaab5;
    --ink-mute: #93818c;
    --accent: #ff8fb6;
    --accent-soft: #4a2c3a;
    --gold: #ffc670;
    --indigo: #8aa0ea;
    --wisteria: #c7a6ff;
    --sakura: #ff9dc2;
    --matcha: #74d9b6;
    --yuzu: #ffc671;
    --wisteria-dim: #3a2e4e;
    --sakura-dim: #4a2c3a;
    --matcha-dim: #203b34;
    --yuzu-dim: #4a3620;
    --shadow: rgba(0, 0, 0, 0.45);
    --shadow-strong: rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Quicksand", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 90% -5%, color-mix(in srgb, var(--sakura) 16%, transparent), transparent 60%),
    radial-gradient(1000px 800px at 0% 100%, color-mix(in srgb, var(--wisteria) 14%, transparent), transparent 60%),
    linear-gradient(160deg, var(--paper-soft), var(--paper) 45%, color-mix(in srgb, var(--yuzu-dim) 60%, var(--paper)));
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Decorative blossom field */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petals .blossom { position: absolute; opacity: 0.16; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: "Caveat", cursive; font-weight: 700; line-height: 1.05; margin: 0; }

/* ---- Nav ---- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: "Caveat"; font-weight: 700; font-size: 26px; color: var(--ink); }
.nav .brand img { width: 34px; height: 34px; border-radius: 22%; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav a.navlink:hover { color: var(--accent); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 40px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
}
.hero h1 { font-size: clamp(56px, 9vw, 96px); margin: 18px 0 6px; color: var(--ink); }
.hero h1 .jp { color: var(--accent); }
.hero .tagline { font-size: 21px; color: var(--ink-soft); font-weight: 500; max-width: 30ch; }
.hero .sub { font-size: 16px; color: var(--ink-mute); margin-top: 14px; max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 13px 20px; border-radius: 14px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 24px var(--shadow);
}
.badge .apple { font-size: 22px; line-height: 1; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0.3px; }
.badge b { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }
.meta-pill { color: var(--ink-mute); font-size: 14px; font-weight: 600; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img {
  width: 78%; max-width: 320px; height: auto;
  border-radius: 38px;
  box-shadow: 0 30px 60px var(--shadow-strong);
}
.hero-art .icon-float {
  position: absolute; top: -18px; left: 6%;
  width: 88px; height: 88px; border-radius: 24%;
  box-shadow: 0 14px 30px var(--shadow);
  transform: rotate(-8deg);
}

/* ---- Section ---- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 40ch; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(40px, 6vw, 60px); color: var(--ink); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 6px; }

/* ---- Feature cards ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px var(--shadow);
}
.feature .fi {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px; margin-bottom: 14px;
}
.feature h3 { font-size: 30px; color: var(--ink); margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.t1 { background: var(--wisteria-dim); }
.t2 { background: var(--sakura-dim); }
.t3 { background: var(--matcha-dim); }
.t4 { background: var(--yuzu-dim); }

/* ---- Screenshot gallery ---- */
.shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; align-items: flex-end; }
.shots img {
  border-radius: 28px;
  box-shadow: 0 22px 46px var(--shadow-strong);
  border: 1px solid var(--border);
}
.shots .phone { width: 240px; }
.ipad-shot { text-align: center; margin-top: 32px; }
.ipad-shot img { width: min(760px, 92%); border-radius: 22px; box-shadow: 0 24px 50px var(--shadow-strong); border: 1px solid var(--border); }

/* ---- Privacy strip ---- */
.strip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: 0 12px 30px var(--shadow);
}
.strip .cloud { font-size: 40px; }
.strip h2 { font-size: 46px; color: var(--ink); margin: 8px 0; }
.strip p { color: var(--ink-soft); font-size: 17px; max-width: 60ch; margin: 0 auto; }

/* ---- Footer ---- */
.footer {
  position: relative; z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 36px 0 60px;
  color: var(--ink-mute);
  font-size: 14px;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.footer .brand { display: flex; align-items: center; gap: 10px; font-family: "Caveat"; font-weight: 700; font-size: 22px; color: var(--ink); }
.footer .brand img { width: 30px; height: 30px; border-radius: 22%; }
.footer .spacer { flex: 1; }
.footer a { color: var(--ink-soft); font-weight: 600; }
.footer .credits { width: 100%; font-size: 12.5px; color: var(--ink-mute); line-height: 1.7; }

/* ---- Content pages (privacy / support) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 20px; }
.doc .card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: 0 12px 30px var(--shadow);
}
.doc h1 { font-size: clamp(44px, 7vw, 64px); color: var(--ink); }
.doc .updated { color: var(--ink-mute); font-size: 14px; margin-top: 4px; font-weight: 600; }
.doc h2 { font-family: "Quicksand"; font-weight: 700; font-size: 20px; color: var(--ink); margin: 30px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 8px; }
.email-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; margin-top: 8px;
  box-shadow: 0 10px 22px var(--shadow);
}
.email-btn:hover { text-decoration: none; filter: brightness(1.03); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero .tagline, .hero .sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { margin-top: 20px; }
  .hero-art .icon-float { left: 12%; }
  .features { grid-template-columns: 1fr; }
  .nav .navlink.hide-sm { display: none; }
}
