/* The landing page (index.html, fr/index.html). Colours from mobile/src/lib/theme.ts. The font is
   served from this site, not from Google, so visitors' IP addresses go to nobody else. Kana use the
   phone's own Japanese font (Hiragino on iPhone, Noto on Android). */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('/fonts/PlusJakartaSans-400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('/fonts/PlusJakartaSans-600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('/fonts/PlusJakartaSans-800ExtraBold.woff2') format('woff2'); }

:root {
  --bg: #F5F2EC;
  --surface: #FFFEFB;
  --fg: #2F2B27;
  --muted: #7A7268;
  --faint: #A39D92;
  --line: #DDD5C8;
  --primary: #4A3426;
  --primary-soft: #ECE6DC;
  --on-primary: #FFFEFB;
  --ok: #4E6B47;
  --ok-text: #3E5838;
  --bad: #A24A3C;
  --seal: #B8402F;
  --shadow: 0 6px 14px rgba(47, 43, 39, 0.06);
  --kana: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
.kana { font-family: var(--kana); font-weight: 400; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
header.top img { width: 96px; }
.lang { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); }
.lang:hover { color: var(--fg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding: 48px 0 88px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h1 { font-weight: 800; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 30em; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary[aria-disabled="true"] { cursor: default; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); }
.soon { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* The exercise shown in the hero, drawn like the app's screen */
.phone {
  justify-self: center; width: 100%; max-width: 340px; aspect-ratio: 9 / 17;
  background: var(--bg); border: 10px solid var(--fg); border-radius: 46px; box-shadow: 0 24px 60px rgba(47, 43, 39, 0.18);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
}
.phone .bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.phone .track { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.phone .track i { display: block; width: 58%; height: 100%; background: var(--primary); border-radius: 999px; }
.phone .prompt { font-size: 13px; color: var(--muted); text-align: center; margin-top: 18px; }
.phone .word { font-family: var(--kana); font-size: 64px; line-height: 1.1; text-align: center; letter-spacing: 0.04em; }
.phone .field { height: 50px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--ok); display: flex; align-items: center; padding: 0 16px; font-size: 18px; font-weight: 600; }
.phone .caret { display: inline-block; width: 2px; height: 22px; background: var(--fg); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
.phone .verdict { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; margin-top: auto; }
.phone .verdict b { color: var(--ok-text); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.phone .verdict b::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FFFEFB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.phone .verdict p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.phone .verdict .kana { color: var(--fg); }
.phone .next { height: 48px; border-radius: 999px; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone .caret { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.intro { color: var(--muted); max-width: 36em; margin: 0 0 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 24px; }
.card .glyph { font-family: var(--kana); font-size: 34px; line-height: 1; margin-bottom: 18px; color: var(--primary); }
.card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* The path, as a line of stones */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 640px; }
.path li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; position: relative; padding-bottom: 26px; }
.path li:not(:last-child)::before { content: ''; position: absolute; left: 27px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.path .stone { width: 56px; height: 52px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-family: var(--kana); font-size: 22px; }
.path h3 { font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.path p { margin: 0; font-size: 15px; color: var(--muted); }
.path li.end .stone { background: var(--primary); color: var(--on-primary); }
.path-note { margin: 12px 0 0; font-weight: 600; }

.nots { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nots li { background: var(--primary-soft); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.nots li s { text-decoration-color: var(--bad); text-decoration-thickness: 2px; }

.faq { max-width: 680px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.closing { text-align: center; }
.closing .kana { font-size: 72px; line-height: 1; color: var(--seal); margin-bottom: 20px; }
.closing .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 24px 0 64px; }
  .phone { max-width: 300px; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
}
