/* Toutou site: one stylesheet for every page. Colors follow the app's brand (deep teal, cream, gold smile). */
:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-2: #ece6dc;
  --text: #1c1c1a;
  --muted: #5f5a52;
  --line: #e2dbcf;
  --accent: #00776f;
  --accent-ink: #ffffff;
  --brand: #00433f;
  --brand-2: #00564f;
  --on-brand: #f5f1ea;
  --on-brand-muted: #bfd6d1;
  --gold: #d6a548;
  --shadow: 0 18px 40px -18px rgba(0, 40, 37, 0.35);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1615;
    --surface: #16201f;
    --surface-2: #1d2a28;
    --text: #ece8e1;
    --muted: #a7b2ae;
    --line: #26332f;
    --accent: #3cc2b4;
    --accent-ink: #00201d;
    --brand: #00312e;
    --brand-2: #003d39;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1615;
  --surface: #16201f;
  --surface-2: #1d2a28;
  --text: #ece8e1;
  --muted: #a7b2ae;
  --line: #26332f;
  --accent: #3cc2b4;
  --accent-ink: #00201d;
  --brand: #00312e;
  --brand-2: #003d39;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Top bar */
.top { background: var(--brand); color: var(--on-brand); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.top .logo img { height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--on-brand); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.top nav a:hover { background: rgba(255, 255, 255, 0.1); }
.top nav .lang { border: 1px solid rgba(245, 241, 234, 0.35); }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--on-brand); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 0; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; }
.hero h1 .smile { color: var(--gold); }
.hero .lead { margin-top: 18px; font-size: clamp(18px, 2.2vw, 21px); color: var(--on-brand-muted); max-width: 34em; }
.hero .ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 14px; font-size: 15px; color: var(--on-brand-muted); }
.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art .phone { width: min(300px, 70vw); margin-bottom: -90px; }
.hero-art .mascot { position: absolute; right: calc(50% + 95px); bottom: 24px; width: 150px; height: auto; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3)); }
.hero-pad { height: 120px; background: var(--bg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art .mascot { width: 96px; right: calc(50% + 70px); bottom: 16px; }
  .hero-pad { height: 32px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--gold); color: #1f1a0e; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--on-brand); border: 1px solid rgba(245, 241, 234, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn small { display: block; font-size: 12px; font-weight: 700; opacity: 0.8; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* Phone frame around screenshots */
.phone { border-radius: 44px; padding: 9px; background: #121212; box-shadow: var(--shadow); }
.phone img { border-radius: 36px; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; }

/* Sections */
section { padding: 72px 0; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 19px; }

.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature:nth-of-type(even) { grid-template-columns: 1fr 300px; }
.feature:nth-of-type(even) .phone { order: 2; }
.feature .text { max-width: 30em; }
.feature h3 { font-size: clamp(24px, 3.2vw, 32px); }
.feature p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.feature ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.feature li + li { margin-top: 4px; }
.feature { position: relative; }
.feature .pose { position: absolute; bottom: 8px; right: 0; width: 150px; height: auto; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18)); }
.feature:nth-of-type(even) .pose { right: auto; left: 0; }
@media (max-width: 760px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-of-type(even) .phone { order: 0; }
  .feature .phone { width: min(280px, 78vw); margin: 0 auto; }
  .feature .pose, .feature:nth-of-type(even) .pose { position: static; width: 104px; margin: -12px 0 0 auto; }
  .feature:nth-of-type(even) .pose { margin: -12px auto 0 0; }
}

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { margin-top: 8px; color: var(--muted); }

/* Closed test */
.test { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; padding-top: 64px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; }
.steps p { color: var(--muted); }
.steps .btn { margin-top: auto; align-self: flex-start; }
.ios-box { margin-top: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 24px; }
.ios-box p { color: var(--muted); max-width: 40em; }
.ios-box strong { color: var(--text); }
.fine { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 860px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.plus { border: 2px solid var(--accent); }
.plan .price { margin-top: 6px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding-left: 30px; position: relative; }
.plan li + li { margin-top: 10px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 6px; vertical-align: 2px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

.vet { display: flex; gap: 20px; align-items: center; background: var(--surface-2); border-radius: var(--radius); padding: 24px; }
.vet img { width: 96px; flex: none; }
.vet p { color: var(--muted); }
.vet strong { color: var(--text); }
@media (max-width: 560px) { .vet { flex-direction: column; text-align: center; } }

/* Final CTA */
.final { background: var(--brand); color: var(--on-brand); text-align: center; }
.final p { color: var(--on-brand-muted); margin: 14px auto 0; max-width: 34em; font-size: 19px; }
.final .ctas { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

/* Text pages (privacy, support) */
.doc { max-width: 760px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 26px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc li + li { margin-top: 8px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.doc .toc a { text-decoration: none; font-weight: 700; font-size: 15px; background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
