/* WAKYO site. System font, generous space, restrained motion. Colours mirror the app's dark and light themes. */

:root {
  --bg: #0b0c0f;
  --surface: #15171b;
  --surface-2: #20242b;
  --text: #f5f5f5;
  --text-2: #858892;
  --text-3: #52555f;
  --accent: #c8f36b;
  --accent-text: #0b0c0f;
  --accent-muted: rgba(200, 243, 107, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --nav: rgba(21, 23, 27, 0.78);
  --footer-bg: #15171b;
  --footer-text: #c9cbd1;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --max: 1080px;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #e8e2d6;
    --surface: #f5f1e8;
    --surface-2: #dad3c4;
    --text: #2b2620;
    --text-2: #6f675a;
    --text-3: #a39a8a;
    --accent: #5b7b14;
    --accent-text: #f7f3ea;
    --accent-muted: rgba(91, 123, 20, 0.14);
    --border: rgba(70, 55, 35, 0.12);
    --nav: rgba(245, 241, 232, 0.8);
    --footer-bg: #2b2620;
    --footer-text: #e8e2d6;
    --shadow: 0 30px 80px rgba(70, 55, 35, 0.22);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Language: every translated block carries data-l; only the active one shows. */
[data-l] { display: none; }
html[lang="en"] [data-l="en"], html[lang="fr"] [data-l="fr"] { display: revert; }
html:not([lang="fr"]) [data-l="en"] { display: revert; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 12px 16px; border-radius: var(--radius-md); }

/* Navigation */
.brand:hover { text-decoration: none; }

.lang { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  min-width: 44px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(44px, 8vw, 84px); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--text-2); letter-spacing: -0.016em; margin: 24px 0 0; max-width: 34ch; }
.muted { color: var(--text-2); }

/* Buttons: 48pt tall, pill. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.011em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.note { font-size: 13px; color: var(--text-3); margin: 12px 0 0; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

/* Phone mock: built in CSS from the real app's screens, decorative only. */
.phone {
  width: min(300px, 100%); margin-inline: auto; aspect-ratio: 9 / 19;
  border-radius: 48px; padding: 10px; background: var(--surface-2);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
}
.screen { height: 100%; border-radius: 38px; background: var(--bg); padding: 28px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.screen .label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-top: 22px; }
.screen .time { font-size: 54px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.screen .time small { font-size: 18px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.mock-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.mock-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-muted); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.mock-card b { display: block; font-size: 14px; font-weight: 600; }
.mock-card span { display: block; font-size: 12px; color: var(--text-2); }
.mock-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.mock-bar i { display: block; width: 62%; height: 100%; background: var(--accent); border-radius: inherit; }
.owl { width: 120px; margin: auto auto 0; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 21px; line-height: 1.38; color: var(--text-2); margin: 16px 0 0; letter-spacing: -0.016em; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.card p { margin: 12px 0 0; color: var(--text-2); font-size: 17px; }
.step { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--accent-muted); color: var(--accent); font-weight: 700; display: grid; place-items: center; margin-bottom: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; }

.band { background: var(--surface); border-block: 1px solid var(--border); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.facts strong { display: block; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.facts span { color: var(--text-2); }

/* Levels: the owl evolves from 1 to 6. */
.levels { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.level { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px 8px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.level img { width: 100%; max-width: 120px; margin-bottom: 8px; }
.level-n { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.level strong { font-size: 17px; letter-spacing: -0.016em; }

/* FAQ */
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; min-height: 64px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.016em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--text-2); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; color: var(--text-2); max-width: 62ch; }

/* CTA */
.cta { text-align: center; }
.cta .owl-big { width: 180px; margin: 0 auto 24px; }
.cta .actions { justify-content: center; }
.cta .lead { margin-inline: auto; }

/* Footer */

/* Document pages (privacy, support) */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.updated { color: var(--text-3); font-size: 14px; margin: 16px 0 0; }

/* Motion: opacity and transform only, once, and never when the visitor prefers less. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1), transform 0.6s cubic-bezier(0.2, 0, 0, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

@media (max-width: 820px) {
  section { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .facts { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
    .card { padding: 24px; }
}

/* Placeholders still to confirm before publishing. */
.todo { background: rgba(255, 196, 0, 0.25); color: inherit; border-radius: 4px; padding: 0 4px; }

/* Header: a floating rounded bar, inset from the edges. */
.nav { position: sticky; top: 12px; z-index: 10; padding: 0 16px; }
.bar {
  max-width: var(--max); margin-inline: auto; min-height: 60px; padding: 8px 12px 8px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--nav); border: 1px solid var(--border); border-radius: 28px;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { color: var(--text); font-size: 15px; font-weight: 500; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.menu a:hover { background: var(--accent-muted); text-decoration: none; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Footer: slim dark band, brand on the left, legal links on the right, copyright below. */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 24px 0 0; font-size: 14px; }
footer .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 8px; }
.foot-brand strong { display: block; font-size: 16px; color: #fff; line-height: 1.2; }
.tagline { display: block; font-size: 13px; opacity: 0.8; }
.tagline i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 10px; vertical-align: middle; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 4px; opacity: 0.9; }
footer nav a { color: var(--footer-text); min-height: 44px; padding: 0 0 0 16px; display: inline-flex; align-items: center; }
.foot-copy { margin-top: 8px; padding: 12px 24px 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 12px; opacity: 0.7; }

@media (max-width: 820px) {
  .menu { display: none; }
  .foot-legal a { padding: 0 16px 0 0; }
}
@media (max-width: 480px) {
  .cta-pill { display: none; }
}

/* iPhone frame: titanium bezel, Dynamic Island, side button. Screens are padded at the top so the island never covers content. */
.phone { background: none; box-shadow: none; padding: 0; border-radius: 0; aspect-ratio: auto; width: min(300px, 100%); margin-inline: auto; }
.iphone {
  position: relative; width: 100%; padding: 9px; border-radius: 56px;
  background: linear-gradient(150deg, #4a4d55 0%, #1c1e23 45%, #3a3d44 100%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), inset 0 0 0 4px #0b0c0f;
}
.iphone::before {
  content: ""; position: absolute; z-index: 2; top: 22px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 22px; border-radius: 999px; background: #000;
}
.iphone::after {
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 14%;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #4a4d55, #2a2c31);
}
.iphone img { width: 100%; height: auto; display: block; border-radius: 47px; }

/* Step cards: the whole screen, a little smaller, under the text. */
#how .card { display: flex; flex-direction: column; }
.step-shot { margin-top: 32px; }
.step-shot .iphone { width: min(210px, 100%); margin-inline: auto; padding: 7px; border-radius: 40px; }
.step-shot .iphone::before { top: 15px; height: 15px; }
.step-shot .iphone img { border-radius: 33px; }
