/* cuteoffice.app styles. Rules: docs/WEBSITE-STYLE.md (binding). Visual page:
   resources/design/style-guide.html (loads this file). Bump ?v= in every page after a change. */

/* Fredoka Bold (SIL Open Font License, fonts/OFL-Fredoka.txt), self-hosted, Latin letters only (16 KB):
   the bubbly heading font (Aldo, 2026-12-02). One weight; it stands in for every heading weight. */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-700-latin.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

/* ── Tokens ───────────────────────────────────────────────────────────────
   The site follows the visitor's Mac: light or dark. One action color (blush), used only for
   actions: primary buttons, the focus ring, the current dock item and today in the demo. */
:root {
  color-scheme: light dark;
  --page: #FBF6F9;        /* page background */
  --paper: #FFFFFF;       /* cards, white sections */
  --wash: #FCEDF2;        /* the other light section */
  --deep: #2B2F4A;        /* price section and footer: the icon's menu bar navy */
  --deep-text: #F5F4F8;
  --deep-muted: #C9C6D6;
  --ink: #1D1B26;
  --muted: #5F5C6E;
  --line: rgba(29, 27, 38, 0.12);
  --action: #C43F69;      /* blush, deepened so white text reads (4.9:1) */
  --action-hover: #CF4A73;
  --action-ink: #FFFFFF;
  --link: #B83A62;
  --glow-a: rgba(255, 158, 199, 0.55);   /* pink */
  --glow-b: rgba(143, 211, 255, 0.45);   /* sky */
  --glow-c: rgba(255, 224, 138, 0.45);   /* lemon */
  --shadow: 0 18px 50px -18px rgba(60, 20, 50, 0.35);
  --radius: 14px;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --fun: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;   /* headings, the name, the price */
  --candy: linear-gradient(100deg, #D6336C 0%, #B4479F 45%, #6E4FD6 100%);  /* the hero headline */
  --text: system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --lift: translateY(-2px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #15131F;
    --paper: #211D2C;
    --wash: #1B1726;
    --deep: #0E0F1C;
    --ink: #F5F4F8;
    --muted: #B4B1C2;
    --line: rgba(255, 255, 255, 0.12);
    --action: #FFA3BC;
    --action-hover: #FFB8CB;
    --action-ink: #17151F;
    --link: #FFA3BC;
    --glow-a: rgba(160, 40, 106, 0.55);
    --glow-b: rgba(31, 95, 154, 0.45);
    --glow-c: rgba(122, 90, 20, 0.40);
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
    --candy: linear-gradient(100deg, #FF9EC0 0%, #E7A6FF 50%, #A9C4FF 100%);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--text); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--fun); font-weight: 800; line-height: 1.1; margin: 0 0 0.6em; letter-spacing: 0; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(84rem, 100% - clamp(2.5rem, 7vw, 14rem)); margin-inline: auto; }
.lede { font-size: 1.15rem; max-width: 34rem; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); max-width: 34rem; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; padding: 0.6rem 1rem; border-radius: 9px;
  background: var(--paper); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons: every button glows and lifts 2 px on hover ──────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem;
  padding: 0.7rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1.02rem/1.2 var(--round); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover { transform: var(--lift); text-decoration: none; }
.btn:active { transform: none; }
.btn-buy { background: var(--action); color: var(--action-ink);
  box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--action) 70%, transparent); }
.btn-buy:hover { background: var(--action-hover); box-shadow: 0 10px 30px -6px color-mix(in srgb, var(--action) 85%, transparent); }
.btn-quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor, 0 6px 20px -10px color-mix(in srgb, currentColor 40%, transparent); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px currentColor, 0 10px 26px -8px color-mix(in srgb, currentColor 45%, transparent); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.4rem; }
/* Chip: small outline pill for choices (the color tones). */
.chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem 0.35rem 0.45rem; border-radius: 999px;
  border: 0; background: transparent; color: inherit; cursor: pointer; font: 600 0.88rem/1.2 var(--round);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.15s, box-shadow 0.15s; }
.chip:hover { transform: var(--lift); box-shadow: inset 0 0 0 1.5px var(--muted), 0 6px 16px -8px rgba(0, 0, 0, 0.3); }
.chip[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.chip i { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); flex: none; }

/* ── Header: the standard for every site (blueprint section 4) ────────── */
.site-header { position: relative; z-index: 50; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; position: relative; }
.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; color: inherit; text-decoration: none;
  font: 800 1.3rem/1 var(--fun); }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.brand, .nav a { white-space: nowrap; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { text-decoration: underline; }
.nav__links { display: contents; }
.nav .nav__lang2 { display: none; }
.nav__lang { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav__lang svg { width: 1rem; height: 1rem; }
.nav .nav__buy { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--action); color: var(--action-ink);
  font: 700 0.98rem/1.2 var(--round); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--action) 70%, transparent);
  transition: transform 0.15s, box-shadow 0.15s; }
.nav .nav__buy:hover { transform: var(--lift); text-decoration: none; background: var(--action-hover); }
.nav__menu { display: none; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer; box-shadow: inset 0 0 0 2px currentColor; }
.nav__menu svg { width: 1.6rem; height: 1.6rem; }
.nav__menu:hover, .nav.is-open .nav__menu { background: color-mix(in srgb, var(--action) 22%, transparent); }
/* Middle: the links move one level down, under the first letter of the name. Measured 2026-12-02. */
@media (max-width: 860px) {
  .top { padding-bottom: 3.6rem; }
  .nav .nav__links { display: flex; gap: 1.5rem; position: absolute; left: calc(32px + 0.6rem); bottom: 1.1rem; font-size: 1rem; }
}
@media (max-width: 960px) {
  html[lang="es"] .top { padding-bottom: 3.6rem; }
  html[lang="es"] .nav .nav__links { display: flex; gap: 1.5rem; position: absolute; left: calc(32px + 0.6rem); bottom: 1.1rem; font-size: 1rem; }
}
/* Phone: the links and the language link go into the menu button. */
@media (max-width: 600px) {
  .top, html[lang="es"] .top { padding-bottom: 1.25rem; }
  .nav .nav__links, html[lang="es"] .nav .nav__links { display: none; }
  .nav .nav__menu { display: inline-grid; }
  .nav .nav__lang { display: none; }
  .site-header .nav.is-open .nav__lang2 { display: block; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 0.3rem; }
}
.site-header .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 0; position: absolute;
  left: auto; bottom: auto; right: 0; top: calc(100% - 0.35rem); z-index: 800; min-width: 13rem; padding: 0.5rem;
  background: var(--paper); border-radius: 14px; box-shadow: 0 20px 50px -15px rgba(20, 10, 40, 0.55), 0 0 0 1px var(--line); }
.site-header .nav.is-open .nav__links a { color: var(--ink); padding: 0.75rem 0.9rem; border-radius: 9px; font: 600 1.05rem/1.2 var(--round); }
.site-header .nav.is-open .nav__links a:hover { background: var(--wash); text-decoration: none; }
@media (max-width: 480px) {
  .nav .nav__price { display: none; }
  .top nav { gap: 0.75rem; }
  .top .brand { font-size: 1rem; gap: 0.45rem; }
  .top .brand img { width: 28px; height: 28px; }
}

/* ── Sections: one soft glow from a top corner, alternating left and right ── */
.band { position: relative; padding-block: 5.5rem; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; top: -30%; width: 55%; height: 80%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.band:nth-of-type(odd)::before { left: -12%; }
.band:nth-of-type(even)::before { right: -12%; }
.band--paper { background: var(--paper); --glow: color-mix(in srgb, var(--glow-a) 45%, transparent); }
.band--wash { background: var(--wash); --glow: color-mix(in srgb, var(--glow-b) 70%, transparent); }
.band--deep { background: var(--deep); color: var(--deep-text); --glow: rgba(255, 143, 176, 0.18); }
.band--deep .fine, .band--deep .lede { color: var(--deep-muted); }
.band--deep a { color: var(--deep-text); }
.section-intro { max-width: 40rem; margin-bottom: 2.6rem; }
.section-intro p { color: var(--muted); font-size: 1.1rem; }
.band--deep .section-intro p { color: var(--deep-muted); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
/* The home page's glows sit on the body's top, so the header and the hero share them. */
body.home { background:
    radial-gradient(45% 600px at 88% 340px, var(--glow-a), transparent 70%) no-repeat,
    radial-gradient(40% 420px at 60% 900px, var(--glow-b), transparent 70%) no-repeat,
    radial-gradient(45% 520px at 0% 80px, var(--glow-c), transparent 70%) no-repeat,
    var(--page); }
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: 1.5rem 5rem; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 2.9vw, 4rem); line-height: 1; margin-bottom: 1.2rem; }
.hero h1 span { width: fit-content; padding-top: 0.08em; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { display: block; }
.hero .fine { margin-top: 0.6rem; }
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-demo .try { font-size: 0.9rem; color: var(--muted); margin: 0; text-align: center; }
.tones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; max-width: 30rem; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; row-gap: 0; padding-top: 0.5rem; }
  .hero-demo { margin: 0.6rem 0 0.4rem; }
  /* One column: the demo moves between the intro text and the buttons; all left-aligned. */
  .hero-text { display: contents; }
  .hero-grid > * , .hero-text > * { grid-column: 1; }
  .hero h1 { order: 1; } .hero .lede { order: 2; } .hero-demo { order: 3; align-items: flex-start; }
  .hero .actions { order: 4; } .hero .fine { order: 5; } .hero .cta-proof { order: 6; }
  .hero-demo .tones { justify-content: flex-start; }
  .hero-demo .try { text-align: left; }
}

/* ── Standard elements: rating badge with laurels, "Made for macOS" badge ── */
.cta-proof, .proof { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.55rem; }
.rating { display: flex; align-items: center; gap: 0; color: inherit; }
.rating .laurel { width: 2.16rem; height: 3.9rem; opacity: 0.9; margin-right: -0.5rem; }
.rating .laurel.flip { margin-right: 0; margin-left: -0.5rem; transform: scaleX(-1); }
.rating-body { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rating-num { font: 800 1.2rem/1 var(--round); }
.rating-stars { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--action); }
.rating-text { font-size: 0.66rem; opacity: 0.8; }
.mac-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.36rem 0.7rem 0.36rem 0.55rem; border-radius: 9px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 30%, transparent); color: inherit; }
.mac-badge svg { width: 1.15rem; height: 1.15rem; flex: none; opacity: 0.9; }
.mac-badge span { display: flex; flex-direction: column; line-height: 1.2; }
.mac-badge b { font: 600 0.72rem/1.2 var(--round); }
.mac-badge small { font-size: 0.6rem; opacity: 0.8; }
.band--deep .rating-stars { color: #FFA3BC; }

/* ── The live panel (hero): a menu bar slice with the Cute Office panel hanging from it ──
   Drawn from docs/mockups/index.html (the approved app look). Light or dark follows the page. */
.desk { --tone-l: #D9577E; --tone-d: #FFA3BC; --pw: 280px; --ph: 340px;
  position: relative; width: calc(var(--pw) + 60px); height: calc(var(--ph) + 54px); border-radius: 16px; overflow: hidden;
  background: var(--wall); color: var(--d-ink); box-shadow: var(--shadow);
  font: 11px/1.4 var(--round); zoom: 1.28;
  --glass: rgba(255, 255, 255, 0.62); --surface: rgba(255, 255, 255, 0.58); --d-ink: #1D1B26; --d-muted: #625F70;
  --d-line: rgba(20, 10, 50, 0.10); --edge: rgba(255, 255, 255, 0.78); --accent: var(--tone-l); --accent-ink: #FFFFFF;
  --p-shadow: 0 14px 34px rgba(30, 20, 60, 0.28); --bar: rgba(255, 255, 255, 0.45); --win: rgba(255, 255, 255, 0.5);
  --wall: radial-gradient(60% 70% at 85% 30%, #FF9EC7, transparent 70%), radial-gradient(60% 70% at 55% 95%, #8FD3FF, transparent 70%),
          radial-gradient(70% 70% at 5% 30%, #FFE08A, transparent 70%), #E8E4FF; }
.desk[data-tone="citrus"] { --accent-ink: rgba(0, 0, 0, 0.85); }
@media (prefers-color-scheme: dark) {
  .desk { --glass: rgba(24, 23, 32, 0.6); --surface: rgba(255, 255, 255, 0.07); --d-ink: #F5F4F8; --d-muted: #AAA7B8;
    --d-line: rgba(255, 255, 255, 0.11); --edge: rgba(255, 255, 255, 0.16); --accent: var(--tone-d); --accent-ink: rgba(0, 0, 0, 0.85);
    --p-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); --bar: rgba(18, 17, 26, 0.5); --win: rgba(44, 42, 58, 0.55);
    --wall: radial-gradient(60% 70% at 85% 30%, #A0286A, transparent 70%), radial-gradient(60% 70% at 55% 95%, #1F5F9A, transparent 70%),
            radial-gradient(70% 70% at 5% 30%, #7A5A14, transparent 70%), #15131F; }
}
.desk { --soft: color-mix(in srgb, var(--accent) 18%, transparent); --bg: color-mix(in srgb, var(--accent) 7%, var(--glass)); }
@media (max-width: 1200px) { .desk { zoom: 1.1; } }
@media (max-width: 860px) { .desk { zoom: 1.08; } }
@media (max-width: 420px) { .desk { zoom: 0.95; } }
.desk button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.desk :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mbar { position: absolute; inset: 0 0 auto 0; height: 24px; display: flex; align-items: center; gap: 11px; padding: 0 10px;
  background: var(--bar); color: var(--d-ink); font: 600 11px var(--text); z-index: 3; }
.mbar .sp { flex: 1; }
.mbar svg { width: 15px; height: 15px; }
.mbar .me { padding: 2px 5px; border-radius: 5px; background: var(--d-line); display: grid; place-items: center; }
.win { position: absolute; left: -30px; top: 50px; width: 62%; height: 52%; border-radius: 10px; background: var(--win); padding: 12px 12px 12px 42px; }
.win i { display: block; height: 7px; border-radius: 4px; background: var(--d-line); margin-top: 10px; }
.panel { position: absolute; top: 24px; right: 14px; width: var(--pw); height: var(--ph); z-index: 4;
  background: var(--bg); -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--edge); border-top: 0; border-radius: 0 0 13px 13px; box-shadow: var(--p-shadow);
  display: flex; flex-direction: column; text-align: left; }
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view[hidden] { display: none; }
.head { display: flex; align-items: center; gap: 6px; padding: 8px 10px 5px; min-width: 0; flex: none; }
.head b { font: 700 13px/1.1 var(--round); white-space: nowrap; }
.head small { color: var(--d-muted); font-size: 10.5px; white-space: nowrap; }
.head .sp { flex: 1; }
.ib { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: var(--d-muted); flex: none; }
.ib svg { width: 12px; height: 12px; }
.ib.on { background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.pbody { flex: 1; overflow: hidden; padding: 2px 10px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.card { background: var(--surface); border-radius: 8px; border: 1px solid var(--d-line); }
.dock { flex: none; display: flex; justify-content: space-around; align-items: center; height: 34px; padding: 0 6px; border-top: 1px solid var(--d-line); }
.dock button { width: 32px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--d-muted); }
.dock svg { width: 15px; height: 15px; }
.dock button[aria-pressed="true"] { background: var(--soft); color: var(--accent); }
.dock button:hover { color: var(--d-ink); }
/* calendar */
.month { display: grid; grid-template-columns: repeat(7, 1fr); padding: 5px 6px; text-align: center; flex: none; }
.month b { font-size: 9.5px; color: var(--d-muted); font-weight: 600; }
.month span { position: relative; height: 21px; display: grid; place-items: center; border-radius: 7px; font-variant-numeric: tabular-nums; }
.month .out { color: var(--d-muted); opacity: 0.5; }
.month .today { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.month .ev::after { content: ""; position: absolute; bottom: 1px; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.month .today.ev::after { background: var(--accent-ink); }
.agenda { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.agenda div { display: flex; gap: 7px; align-items: center; padding: 4px 7px; border-radius: 7px; flex: none; }
.agenda time { width: 30px; color: var(--d-muted); font-variant-numeric: tabular-nums; font-size: 10px; }
.agenda em { font-style: normal; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda .cur { background: var(--soft); }
/* notes */
.md { flex: 1; padding: 8px 10px; overflow: hidden; line-height: 1.5; }
.md strong.h { display: block; font: 700 14px/1.2 var(--round); margin-bottom: 3px; }
.md .m { color: var(--d-muted); opacity: 0.6; font: 400 0.8em var(--mono); margin-right: 4px; }
.md ul { list-style: none; padding: 0; margin: 4px 0; }
.md li { display: flex; gap: 6px; align-items: center; padding: 1px 0; }
.md li u { width: 11px; height: 11px; border-radius: 4px; border: 1.3px solid var(--d-muted); flex: none; display: grid; place-items: center; text-decoration: none; font-size: 8px; line-height: 1; }
.md li.done u { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.md li.done { color: var(--d-muted); text-decoration: line-through; }
.md blockquote { margin: 5px 0; padding: 1px 8px; border-left: 2px solid var(--accent); color: var(--d-muted); }
.md p { margin: 0 0 3px; }
/* sheet */
.fx { display: flex; align-items: center; gap: 6px; padding: 3px 7px; flex: none; font: 10px var(--mono); }
.fx b { padding: 0 5px; border-radius: 4px; background: var(--soft); font-weight: 600; }
.grid { flex: 1; overflow: hidden; display: grid; grid-template-columns: 20px 1.5fr 1fr 0.7fr; grid-auto-rows: 20px; font-size: 10.5px; }
.grid > * { border-right: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); padding: 0 6px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.grid .h { color: var(--d-muted); font-size: 9.5px; justify-content: center; padding: 0; }
.grid .n { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.grid .t { font-weight: 700; }
.grid .sel { outline: 1.5px solid var(--accent); outline-offset: -1.5px; background: var(--soft); font-weight: 700; }
.grid .ok { color: var(--accent); justify-content: center; font-weight: 700; }
/* browser */
.url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--d-line); font-size: 10.5px; white-space: nowrap; }
.url svg { width: 9px; height: 9px; flex: none; color: var(--d-muted); }
.url span { overflow: hidden; text-overflow: ellipsis; }
.page-card { flex: 1; overflow: hidden; }
.page-card .pic { height: 30%; min-height: 54px; border-radius: 7px 7px 0 0;
  background: radial-gradient(40% 80% at 30% 100%, #4FAE6E, transparent 70%), radial-gradient(40% 90% at 65% 100%, #2F8F5A, transparent 70%), linear-gradient(#BFE8CF, #E3F6EA); }
@media (prefers-color-scheme: dark) { .page-card .pic { background: radial-gradient(40% 80% at 30% 100%, #3C8F58, transparent 70%), radial-gradient(40% 90% at 65% 100%, #226B44, transparent 70%), linear-gradient(#17352A, #1F4435); } }
.page-card div.txt { padding: 8px 10px; }
.page-card strong { display: block; font: 700 13px/1.25 var(--round); margin-bottom: 3px; }
.page-card p { color: var(--d-muted); margin: 0 0 5px; }
/* canvas */
.cv { flex: 1; position: relative; overflow: hidden; border-radius: 8px 8px 0 0; background: #FFFDF7; border: 1px solid var(--d-line); }
@media (prefers-color-scheme: dark) { .cv { background: #2A2737; } }
.cv svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv .sticker { position: absolute; right: 16px; top: 14px; font-size: 26px; transform: rotate(10deg); }
.cv .label { position: absolute; left: 18px; bottom: 16px; font: 700 13px var(--round); color: #1D1B26; }
@media (prefers-color-scheme: dark) { .cv .label { color: #F5F4F8; } }
.tbar { display: flex; gap: 3px; flex: none; }
.tbar span { width: 20px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: var(--d-muted); }
.tbar span.on { background: var(--soft); color: var(--accent); }
.tbar svg { width: 11px; height: 11px; }
/* clock */
.clockrow { display: flex; gap: 6px; flex: 1; min-height: 0; }
.ring { flex: 1.25; display: grid; place-items: center; padding: 8px; position: relative; min-width: 0; }
.ring svg { width: 100%; height: 100%; max-width: 130px; max-height: 130px; }
.ring .mid { position: absolute; text-align: center; }
.ring .mid b { display: block; font: 700 21px/1 var(--round); font-variant-numeric: tabular-nums; }
.ring .mid small { color: var(--d-muted); font-size: 9.5px; }
.side { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat { padding: 5px 8px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.stat small { color: var(--d-muted); font-size: 9.5px; }
.stat b { font: 700 14px/1.2 var(--round); font-variant-numeric: tabular-nums; }
.bars { flex: none; height: 58px; padding: 6px 10px 4px; display: flex; gap: 7px; align-items: flex-end; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; font-size: 9px; color: var(--d-muted); }
.bars i { width: 100%; border-radius: 4px 4px 2px 2px; background: var(--soft); }
.bars .on i { background: var(--accent); }
.ppill { padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 10px; }
/* to do */
.todo { flex: 1; padding: 4px 8px; display: flex; flex-direction: column; overflow: hidden; }
.todo > div { display: flex; gap: 7px; align-items: flex-start; padding: 5px 0; border-bottom: 1px solid var(--d-line); }
.todo .chk { width: 12px; height: 12px; border-radius: 50%; border: 1.3px solid var(--d-muted); flex: none; margin-top: 1px;
  display: grid; place-items: center; font: 700 8px/1 var(--round); font-style: normal; }
.todo span { display: flex; flex-direction: column; font-weight: 600; }
.todo small { font-weight: 400; color: var(--d-muted); font-size: 9.5px; }
.todo .done { color: var(--d-muted); }
.todo .done span { text-decoration: line-through; font-weight: 400; }
.todo .done .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.todo .add { color: var(--d-muted); border-bottom: 0; }
/* settings */
.set { padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; }
.set > small { color: var(--d-muted); font-size: 10px; font-weight: 600; }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--c); }
.set .row { display: flex; justify-content: space-between; align-items: center; }
.toggle { width: 26px; height: 15px; border-radius: 999px; background: var(--accent); position: relative; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }

/* ── Home sections ────────────────────────────────────────────────────── */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.cards3 > div, .widget { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 0 0 1px var(--line); }
.band--paper .cards3 > div, .band--paper .widget { background: var(--page); }
.cards3 h3 { margin-top: 0.9rem; }
.cards3 p, .widget p { color: var(--muted); margin: 0; }
.ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--action) 14%, transparent); color: var(--action); }
.ico svg { width: 1.45rem; height: 1.45rem; }
.widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.widget h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.widget h3 .ico { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.widget h3 .ico svg { width: 1.2rem; height: 1.2rem; }
.widget ul { margin: 0.8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.widget li { margin: 0.2rem 0; }
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3.3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.1rem/1 var(--round); background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }
.yours-title { font-size: 1.6rem; margin: 0 0 1rem; }
.yours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.yours > div { border-top: 2px solid var(--line); padding-top: 1rem; }
.yours h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.yours p { color: var(--muted); margin: 0; }
.dots { display: flex; gap: 0.35rem; margin-top: 0.6rem; }
.dots i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c); }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.ledger > div { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 0 0 1px var(--line); }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger li svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.25rem; color: var(--action); }
.ledger li span { color: var(--muted); }
.ledger li b { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 40rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1rem; border-top: 1px solid var(--line); white-space: nowrap; }
.compare thead th { border-top: 0; font: 700 1rem/1.2 var(--round); }
.compare tbody th { font-weight: 600; }
.compare td:nth-child(2), .compare th:nth-child(2) { background: color-mix(in srgb, var(--action) 8%, transparent); }
.compare td.yes::before, .compare td.no::before { display: inline-block; width: 1.1rem; font-weight: 800; }
.compare td.yes::before { content: "✓"; color: var(--action); }
.compare td.no::before { content: "–"; color: var(--muted); }
.compare-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; max-width: 46rem; }
.story { max-width: 40rem; font-size: 1.1rem; }
.story .sign { font: 700 1.2rem var(--round); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.price-tag { font: 800 clamp(3.2rem, 2.5rem + 3vw, 4.8rem)/1 var(--fun); margin: 0 0 0.3rem; }
.price-tag small { font-size: 1.1rem; font-weight: 600; color: var(--deep-muted); margin-left: 0.4rem; }
.included { list-style: none; margin: 0; padding: 0; }
.included li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.45rem 0; }
.included svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.3rem; color: #FFA3BC; }
.band--deep .btn-buy { background: #FFA3BC; color: #17151F; box-shadow: 0 6px 22px -6px rgba(255, 163, 188, 0.7); }
.band--deep .btn-buy:hover { background: #FFB8CB; }
.band--deep :focus-visible { outline-color: #FFA3BC; }
.buy-error { color: #FFC2D1; min-height: 1.5em; margin-top: 0.4rem; }
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.4rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 0.7rem 0; font: 800 1.2rem/1.3 var(--fun); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--action); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 40rem; }
.closing { text-align: center; }
.closing h2 { max-width: 30rem; margin-inline: auto; }
.closing .actions, .closing .cta-proof { justify-content: center; }
.closing .fine { margin-inline: auto; }
@media (max-width: 960px) {
  .cards3, .widgets, .steps, .yours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .cards3, .widgets, .steps, .yours, .ledger { grid-template-columns: 1fr; }
  .band { padding-block: 4rem; }
}

/* "Exactly what you need": three facts with their sources. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.stat-card { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.stat-card .num { font: 800 clamp(2.2rem, 1.8rem + 1.4vw, 3rem)/1 var(--fun); padding-top: 0.08em; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.stat-card p { color: var(--muted); margin: 0.6rem 0 0.8rem; flex: 1; }
.stat-card .src { font-size: 0.8rem; color: var(--muted); align-self: flex-end; }
.need-after { font-size: 1.2rem; max-width: 46rem; margin: 2.2rem 0 0; }
@media (max-width: 960px) { .stats { grid-template-columns: 1fr; } }

/* ── Inner pages ──────────────────────────────────────────────────────── */
.page { padding-block: 2.5rem 5rem; }
.page h1 { font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem); }
.prose { max-width: 40rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose li { margin: 0.3rem 0; }
.stack { display: flex; flex-direction: column; gap: 0.9rem; max-width: 28rem; margin: 1rem 0 2rem; }
.stack label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; }
.stack input, .stack textarea { font: inherit; padding: 0.65rem 0.8rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink); }
.stack input:focus-visible, .stack textarea:focus-visible { outline-offset: 1px; }
.stack .btn { align-self: flex-start; }
.status { min-height: 1.5em; color: var(--muted); }
.app-hint { background: var(--wash); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1rem 0; max-width: 40rem; }
.app-hint p:last-child, .app-hint ol { margin-bottom: 0; }
.keybox { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; background: var(--paper); border-radius: var(--radius);
  padding: 1rem; box-shadow: 0 0 0 1px var(--line); margin: 1rem 0 2rem; max-width: 46rem; }
.keybox code { font: 0.85rem/1.5 var(--mono); word-break: break-all; flex: 1 1 18rem; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--deep); color: var(--deep-muted); padding-block: 3.5rem 2.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--deep-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-grid h2 { font-size: 1rem; color: var(--deep-text); margin-bottom: 0.4rem; }
.site-footer .brand { color: var(--deep-text); margin-bottom: 0.9rem; }
.site-footer .brand img { width: 28px; height: 28px; }
.site-footer .fine { color: var(--deep-muted); font-size: 0.82rem; margin-top: 0.8rem; }
.site-footer :focus-visible { outline-color: #FFA3BC; }
.lang-links a[aria-current="true"] { font-weight: 700; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ── Consent notice and download note ─────────────────────────────────── */
.consent-banner, .download-note { position: fixed; z-index: 900; bottom: 1rem; max-width: 24rem; padding: 1rem 1.1rem;
  border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px -15px rgba(20, 10, 40, 0.5), 0 0 0 1px var(--line); }
.consent-banner { left: 1rem; }
.download-note { right: 1rem; padding-right: 2.6rem; }
.consent-title, .download-note-title { font: 700 1rem/1.3 var(--round); margin: 0 0 0.3rem; }
.consent-message, .download-note p { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.8rem; }
.download-note p:last-of-type { margin-bottom: 0; }
.consent-buttons { display: flex; gap: 0.6rem; }
.consent-buttons .btn { min-height: 2.4rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.download-note-close { position: absolute; top: 0.5rem; right: 0.6rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 600px) { .consent-banner, .download-note { left: 0.75rem; right: 0.75rem; max-width: none; } }

/* ── Motion ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
