/* BoneJu landing. Shares the app's design tokens (DesignTokens.swift). */
:root {
  --off-white: #F7F4EE;
  --bone: #ECE7DD;
  --paper: #FBF9F4;
  --ink: #1A1A1A;
  --graphite: #5C5C5C;
  --whisper: #8E887E;
  --terracotta: #C75D3C;
  --terracotta-soft: #EFCFC2;
  --mustard: #D4B85A;
  --mustard-soft: #EDE0B0;
  --lavender: #C5B5D6;
  --lavender-soft: #E5DDEE;
  --sage: #A8B89A;
  --sage-soft: #D6DECE;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --hairline: 1px solid rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05), 0 4px 12px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 2px 6px rgba(26, 26, 26, 0.06), 0 12px 32px rgba(26, 26, 26, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font-family: var(--serif); font-size: 26px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--graphite); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--bone); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; padding: 64px 0 88px;
}
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.5vw, 68px);
  line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
h1 em { font-style: italic; color: var(--terracotta); }
.hero p.lead { color: var(--graphite); font-size: 19px; max-width: 30em; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: var(--whisper); margin-top: 14px; }

/* Ju in his tile */
.hero-art { display: flex; justify-content: center; }
.ju-tile {
  position: relative;
  width: min(340px, 72vw); aspect-ratio: 1;
  border-radius: 76px;
  background: radial-gradient(circle at 50% 38%, #D97A5A 0%, #C75D3C 62%, #A8472A 100%);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.ju-tile img { width: 82%; height: 82%; }
.bubble {
  position: absolute; top: -26px; right: -18px;
  background: var(--paper); border: var(--hairline);
  box-shadow: var(--shadow-sm);
  border-radius: 18px 18px 18px 4px;
  padding: 6px 18px 8px;
  font-family: var(--hand); font-weight: 600; font-size: 26px;
  transform: rotate(4deg);
  white-space: nowrap;
}
/* The pun, spelled out: "Bon" + a hanging English "e", "jour" corrected to "Ju". */
.bubble .hang {
  display: inline-block; color: var(--terracotta);
  transform: translateY(-0.30em) rotate(14deg);
}
.bubble s {
  color: var(--whisper);
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2.5px;
}
.bubble .ju { color: var(--terracotta); }

/* Closing headline: "Bonjour" corrected to "Bone Ju!", styled like the hero's
   italic terracotta "remember". */
.closing h2 s {
  color: var(--whisper);
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 3px;
}
.closing h2 .ju { color: var(--terracotta); font-style: italic; }

/* ---------- example word card ---------- */
.example { padding: 20px 0 84px; }
.example-card {
  background: var(--paper); border: var(--hairline); border-radius: 28px;
  box-shadow: var(--shadow-sm);
  max-width: 680px; margin: 0 auto; padding: 44px 48px;
}
.example-card .illustration {
  display: block; width: 100%; height: 280px;
  object-fit: cover; object-position: center 62%;
  border-radius: 20px; margin-bottom: 26px;
}
@media (max-width: 860px) {
  .example-card .illustration { height: 210px; }
}
.example-card .pos {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--lavender-soft); color: var(--ink);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.example-card .word { font-family: var(--serif); font-size: 52px; line-height: 1; }
.example-card .ipa { color: var(--whisper); font-size: 16px; margin: 8px 0 4px; }
.example-card .meaning { color: var(--graphite); font-size: 18px; margin-bottom: 26px; }
.example-card .label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px;
}
.example-card .soundalike { font-family: var(--serif); font-style: italic; font-size: 28px; margin-bottom: 24px; }
.example-card .story {
  background: var(--off-white); border-radius: 18px; padding: 20px 24px;
  color: var(--ink); font-size: 16.5px;
}
.example-card .story strong { color: var(--terracotta); }
.example-caption { text-align: center; color: var(--whisper); font-size: 14px; margin-top: 18px; }

/* ---------- sections ---------- */
section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1;
  text-align: center; margin-bottom: 12px;
}
section .sub { text-align: center; color: var(--graphite); max-width: 34em; margin: 0 auto 48px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 88px; }
.step {
  background: var(--paper); border: var(--hairline); border-radius: 24px;
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; margin-bottom: 18px;
}
.step:nth-child(1) .num { background: var(--terracotta-soft); }
.step:nth-child(2) .num { background: var(--mustard-soft); }
.step:nth-child(3) .num { background: var(--sage-soft); }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--graphite); font-size: 15.5px; }

/* features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-bottom: 96px;
}
.feature {
  background: var(--paper); border: var(--hairline); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--graphite); font-size: 15px; }
.tint-terracotta { background: var(--terracotta-soft); }
.tint-mustard { background: var(--mustard-soft); }
.tint-lavender { background: var(--lavender-soft); }
.tint-sage { background: var(--sage-soft); }
.tint-bone { background: var(--bone); }

/* closing CTA */
.closing {
  background: var(--paper); border: var(--hairline); border-radius: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center; padding: 64px 32px; margin-bottom: 96px;
}
.closing .ju-mini { width: 96px; margin-bottom: 8px; }
.closing h2 { margin-bottom: 10px; }
.closing p { color: var(--graphite); margin-bottom: 28px; }

/* ---------- footer ---------- */
footer { border-top: var(--hairline); padding: 32px 0 48px; }
.foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--whisper); font-size: 14px;
}
.foot a { color: var(--graphite); text-decoration: none; margin-left: 20px; }
.foot a:hover { color: var(--ink); }
.foot .sign { font-family: var(--hand); font-size: 20px; color: var(--graphite); }

/* ---------- legal pages ---------- */
.legal { max-width: 680px; margin: 0 auto; padding: 40px 0 96px; }
.legal h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 8px; }
.legal .updated { color: var(--whisper); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  text-align: left; margin: 36px 0 8px;
}
.legal p { color: var(--graphite); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 40px 0 64px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .steps, .features { grid-template-columns: 1fr; }
  .example-card { padding: 32px 26px; }
  .nav-links a.hide-sm { display: none; }
}
