/* Remembee · the app's own look, following the app (src/theme in the app): cream and green by day,
   «Verde noche» in dark mode, honey like the bee. The studio has studio.css. */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f3f0ea;
  --bg-deep: #ebe6dc;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --text: #202722;
  --muted: #62675f;
  --faint: #7a7e76;
  --primary: #23483f;
  --on-primary: #ffffff;
  --primary-soft: #d9e8e2;
  --honey: #c88620;
  --copper: #a86a44;
  --border: #e1d9cc;
  --border-strong: #cfc5b5;
  --radius: 18px;
  --gutter: 16px;
  --max: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: "Nunito", var(--sans);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131d1a;
    --bg-deep: #0f1714;
    --surface: #1b2a25;
    --surface-2: #1f2e29;
    --text: #f1f3ee;
    --muted: #aab8b1;
    --faint: #8e9c95;
    --primary: #9fd4c0;
    --on-primary: #10201a;
    --primary-soft: #29443a;
    --honey: #e3a33b;
    --copper: #e3a33b;
    --border: #2e4139;
    --border-strong: #3c5148;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--honey); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

/* Languages: the page holds both; only the chosen one shows. Without JavaScript, Spanish. */
html:not([data-lang="es"]) [lang="es"]:not(html),
html:not([data-lang="en"]) [lang="en"]:not(html),
html:not([data-lang="fr"]) [lang="fr"]:not(html),
html:not([data-lang="it"]) [lang="it"]:not(html),
html:not([data-lang="pt"]) [lang="pt"]:not(html),
html:not([data-lang="de"]) [lang="de"]:not(html) { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 var(--round); white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang-switch { margin-left: auto; display: flex; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: var(--muted); font: 600 12px/1 var(--sans); letter-spacing: 0.12em; padding: 8px 11px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
/* Remembee has more languages: a menu with each one written in itself and its flag. */
.lang-menu { margin-left: auto; position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 4px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 10px 6px 12px; cursor: pointer; font: 700 13px/1 var(--sans); letter-spacing: 0.08em; color: var(--text); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 18px; height: 18px; fill: var(--muted); }
.lang-menu .flag { font-size: 17px; margin-right: 6px; letter-spacing: 0; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14); padding: 6px; z-index: 20; }
.lang-list .lang-option { display: flex; align-items: center; width: 100%; border: 0; background: none; color: var(--text); font: 600 15px/1 var(--sans); padding: 11px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.lang-list .lang-option:hover { background: var(--primary-soft); }
.lang-list .lang-option[aria-checked="true"] { background: var(--primary); color: var(--on-primary); }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-family: var(--round); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }
.honey { color: var(--honey); }
.muted { color: var(--muted); }

/* ── Sections ─────────────────────────────────────────────────────── */
section { padding: 72px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: 0; }
@media (min-width: 720px) { section { padding: 96px 0; } }
.section-head { max-width: 720px; margin-bottom: 36px; }

/* Hero: the text on the left, the icon on its tile on the right. */
.hero { padding: 56px 0 72px; border-top: 0; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .title-mark { display: flex; align-items: center; gap: 14px; font: 600 clamp(24px, 3.4vw, 30px)/1 var(--round); margin-bottom: 18px; }
.hero .title-mark img { width: 56px; height: 56px; border-radius: 14px; }
.hero-art { justify-self: center; width: min(78vw, 380px); aspect-ratio: 1; border-radius: 28%; background: #23483f; display: grid; place-items: center; box-shadow: 0 24px 60px rgba(35, 72, 63, 0.25); }
.hero-art img { width: 100%; border-radius: 28%; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.3fr 1fr; } .hero { padding: 96px 0 104px; } }

/* Store badges (disabled until the app is out) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; min-height: 52px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.store small { display: block; font: 500 11px/1.2 var(--sans); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store[aria-disabled="true"] { opacity: 0.75; cursor: default; }
a.store:hover { border-color: var(--honey); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none; border: 0; }
.btn:hover { color: var(--on-primary); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn.ghost:hover { border-color: var(--honey); color: var(--text); filter: none; }

/* Facts under the hero */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.stat { background: var(--surface); padding: 20px 18px; }
.stat b { display: block; font: 600 28px/1.1 var(--round); color: var(--honey); }
.stat span { color: var(--muted); font-size: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat { padding: 24px; } }

/* Features: a card each, a short honey rule under the title. */
.features { display: grid; gap: 18px; }
.feature { padding: 30px 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature h3 { margin: 0; line-height: 1.25; }
.feature h3::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; margin: 14px 0 16px; background: var(--honey); }
.feature p { color: var(--muted); margin: 0 0 12px; font-size: 16px; line-height: 1.7; }
.feature p b { display: block; margin-bottom: 6px; color: var(--text); font-weight: 600; font-size: 17px; line-height: 1.5; }
.feature p:last-child { margin-bottom: 0; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .stores { justify-content: center; }

/* Screens: a strip that scrolls sideways inside its own box */
.screens { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 18px; scrollbar-color: var(--border-strong) transparent; }
.screens figure { flex: 0 0 min(64%, 280px); margin: 0; scroll-snap-align: start; }
.screens img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(35, 72, 63, 0.16); width: 100%; height: auto; }
.screens figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ── Legal and support pages ──────────────────────────────────────── */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc h2 { font-size: 23px; margin-top: 44px; margin-bottom: 12px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--honey); border-radius: 10px; padding: 18px 20px; margin: 24px 0 8px; }
.doc .summary p:last-child, .doc .summary ul:last-child { margin-bottom: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--honey); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); padding: 44px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; gap: 28px; }
.site-footer h4 { margin: 0 0 12px; font: 700 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Contact form (support page) */
form.contact-form { display: grid; gap: 16px; margin-top: 8px; }
.contact-form label { display: grid; gap: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 16px/1.5 var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; width: 100%; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--honey); outline-offset: 0; }
.contact-form .hint { font: 400 13px/1.5 var(--sans); color: var(--faint); text-transform: none; letter-spacing: 0; }
.contact-form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { border: 0; cursor: pointer; font-size: 16px; }
.form-status { min-height: 24px; font-size: 15px; }
.form-status[data-state="ok"] { color: #2f7248; }
.form-status[data-state="error"] { color: #b0473e; }
@media (prefers-color-scheme: dark) { .form-status[data-state="ok"] { color: #8ac79f; } .form-status[data-state="error"] { color: #f09a91; } }

/* Open-source licence list */
.licences { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; }
.licences li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.licences .notice { color: var(--faint); font-size: 13px; }
.licence-text { border-bottom: 1px solid var(--border); padding: 6px 0; }
.licence-text summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.licence-text pre { white-space: pre-wrap; font-size: 12px; line-height: 1.5; color: var(--muted); background: var(--surface); padding: 14px; border-radius: 8px; overflow-x: auto; }
