/* PatYap marketing site — shared styles.
   Brand tokens are the app's own (source: docs/dark-mode-tokens.md, the Claude
   Design "PatYap" project). Warm paper world: cream canvas, orange accent,
   Newsreader serif headlines / Hanken Grotesk body / Zen Kaku for JP glyphs.
   Light mode only — the warm cream IS the brand (same call as the store set). */

:root {
  /* surfaces */
  --canvas: #E7E4DD;      /* desk / page background */
  --screen: #FCFBF8;      /* card / raised surface */
  --card-border: #F0E9DD;
  --hairline: #F1EBE0;
  --divider: #E7E0D5;

  /* ink ramp */
  --ink: #1A1714;         /* primary text, headlines */
  --ink-2: #5c5650;       /* body */
  --ink-3: #766C60;       /* sublines, captions */
  --ink-4: #8a8175;       /* section labels */
  --ink-6: #A59D91;       /* faint italic notes */

  /* accents */
  --orange: #FF6A3D;      /* brand fill: CTA, mic, dots */
  --orange-text: #D9521F; /* orange as text/links */
  --orange-deep: #B5431A;
  --green: #1B9E6B;       /* solid / mastered */
  --amber: #C98A2B;       /* sharpen / understood-warm */
  --teal: #3E8E9B;        /* understood */
  --peri: #6E73D8;        /* tutor / meta layer */
  --brown: #B5703C;       /* persona (barista) fill */

  /* shadows — warm brown, never black */
  --shadow-lg: 0 34px 80px rgba(60,45,25,.18), 0 6px 18px rgba(60,45,25,.10);
  --shadow-md: 0 14px 34px rgba(60,45,25,.10);
  --shadow-sm: 0 10px 26px rgba(60,45,25,.08);

  --maxw: 1120px;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --jp: 'Zen Kaku Gothic New', var(--sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.jp { font-family: var(--jp); font-weight: 500; }

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(231,228,221,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(60,45,25,.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-3); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 26px;
  font-weight: 700; font-size: 16px; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,106,61,.30); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(255,106,61,.38); }
.btn-ghost { background: var(--screen); color: var(--ink); border-color: var(--divider); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---- hero ---- */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04;
  letter-spacing: -.015em; margin: 0 auto; max-width: 15ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--orange-text); }
.hero .sub {
  margin: 22px auto 0; max-width: 34ch;
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 500;
  color: var(--ink-3); text-wrap: balance;
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .beta { margin-top: 18px; font-size: 14px; color: var(--ink-4); }

/* ---- hero phones ---- */
.hero-shots {
  margin: 46px auto 0; display: flex; gap: 20px; justify-content: center;
  align-items: flex-end; flex-wrap: wrap; max-width: 900px;
}
.hero-shots img {
  width: 240px; max-width: 74vw; height: auto; border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.hero-shots img:nth-child(2) { width: 264px; } /* center a touch larger on wide */

/* ---- section scaffolding ---- */
section { padding: 56px 0; }
.section-label {
  font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 12px;
}
h2.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 8px; text-wrap: balance;
}
h2.section-title em { font-style: italic; color: var(--orange-text); }

/* ---- feature grid ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.feature {
  background: var(--screen); border: 1px solid var(--card-border);
  border-radius: 22px; padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.feature .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-bottom: 14px; }
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-3); font-size: 16px; }

/* ---- screenshot showcase ---- */
.showcase { background: var(--screen); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.shot-strip {
  margin-top: 30px; display: flex; gap: 22px; overflow-x: auto;
  padding: 6px 2px 22px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot-strip figure { margin: 0; flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.shot-strip img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow-md); display: block; }
.shot-strip figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; line-height: 1.35; }
.shot-strip figcaption strong { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.step { text-align: left; }
.step .num {
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--orange-text);
  line-height: 1; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin: 0 0 6px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-3); font-size: 16px; }

/* ---- languages ---- */
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lang-chip {
  padding: 9px 16px; border-radius: 18px; background: var(--screen);
  border: 1px solid var(--card-border); font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.lang-chip .en { color: var(--ink-4); font-weight: 500; }

/* ---- closing CTA ---- */
.cta-band { text-align: center; }
.cta-band .panel {
  background: var(--screen); border: 1px solid var(--card-border);
  border-radius: 30px; padding: 52px 32px; box-shadow: var(--shadow-md);
}
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.5vw, 42px); margin: 0 0 20px; text-wrap: balance; }
.cta-band h2 em { font-style: italic; color: var(--orange-text); }

/* ---- footer ---- */
footer { padding: 44px 0 56px; border-top: 1px solid rgba(60,45,25,.08); margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer .brand-sm { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--ink); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--ink-3); font-size: 15px; font-weight: 500; }
footer .copy { color: var(--ink-4); font-size: 14px; width: 100%; margin-top: 6px; }

/* ---- legal / document pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 0 64px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 46px); letter-spacing: -.01em; margin: 0 0 6px; }
.doc .updated { color: var(--ink-4); font-size: 14px; margin-bottom: 8px; }
.doc .lead { color: var(--ink-3); font-size: 18px; margin: 0 0 28px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -.01em; margin: 34px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: var(--screen); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 16px 18px; color: var(--ink-3); font-size: 15px; margin: 24px 0;
}
.doc a { font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-links { gap: 14px; }
  .nav-links a.nav-hide { display: none; } /* drop secondary links, keep the CTA */
  .hero { padding: 48px 0 28px; }
  section { padding: 44px 0; }
  .cta-band .panel { padding: 40px 22px; }
}
