/* Derot Design System v1 — tokens + web components.
   Source: https://claude.ai/artifact/DPMK2Qv6M9iVdB8X1uYBMD ("0. Design System").
   tint/track/danger-tint are DS.mix(accent, card, t) precomputed. */
:root {
    color-scheme: light dark;
    --bg: #FFF9EB; --card: #FFFFFF; --text: #222222; --sub: #606060; --div: #EFEFEF;
    --acc: #FFB800; --on-acc: #222222; --ink: #8A5A00;
    --tint: #FFF4D9; --track: #FFEFC7;
    --danger: #B42318; --danger-tint: #F8E9E8; --success: #2E8540;
    --scrim: rgba(34,34,34,.45);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #222222; --card: #404040; --text: #EFEFEF; --sub: #BEBEBE; --div: #606060;
        --acc: #FEDC00; --on-acc: #222222; --ink: #FEDC00;
        --tint: #5D5736; --track: #756C2E;
        --danger: #FF8A80; --danger-tint: #6A504E; --success: #6BCB77;
        --scrim: rgba(0,0,0,.6);
    }
}

/* base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 16px/1.5 Nunito, system-ui, sans-serif; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--sub); }
h1, h2, h3, h4, p { margin: 0; }
h1 { font: 900 clamp(44px, 6.4vw, 76px)/1.02 Nunito, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
h1 span { color: var(--ink); }
h2 { font: 900 clamp(32px, 4vw, 48px)/1.1 Nunito, sans-serif; text-wrap: balance; }
h3 { font: 900 24px Nunito, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font-family: Nunito, sans-serif; }

/* type scale */
.t-xl { font: 900 32px/1.1 Nunito, sans-serif; }
.t-l { font: 900 24px Nunito, sans-serif; }
.t-heading { font: 900 18px Nunito, sans-serif; }
.t-strong { font: 800 17px Nunito, sans-serif; }
.t-label { font: 700 15px Nunito, sans-serif; }
.t-caption { font: 700 13px Nunito, sans-serif; }
.t-overline { font: 800 12px Nunito, sans-serif; letter-spacing: .04em; text-transform: uppercase; }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.narrow { max-width: 840px; }
.sub { color: var(--sub); text-wrap: pretty; }
.lead { font-size: 19px; }
.white { background: var(--card); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.center { text-align: center; align-items: center; }
.row { display: flex; align-items: center; gap: 12px; }
.row > .name { flex: 1; font-weight: 800; }

/* surfaces + chips */
.card { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.white .card, .card .card { background: var(--bg); }
.tag { align-self: flex-start; background: var(--tint); border-radius: 16px; padding: 6px 14px; font: 800 14px Nunito, sans-serif; color: var(--text); }
.badge { display: flex; align-items: center; gap: 6px; background: var(--tint); border-radius: 16px; padding: 4px 12px; font: 800 13px Nunito, sans-serif; white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 48px; padding: 0 20px; border-radius: 24px; background: var(--card); display: inline-flex; align-items: center; gap: 8px; font: 800 15px Nunito, sans-serif; color: var(--text); }
.chip.on, .chip[aria-current] { background: var(--acc); color: var(--on-acc); }
.glyph { width: 40px; height: 40px; flex: none; border-radius: 12px; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font: 900 18px Nunito, sans-serif; }
.num { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: flex; align-items: center; justify-content: center; font: 900 22px Nunito, sans-serif; }

/* buttons */
.btn { min-height: 56px; padding: 0 24px; border: none; border-radius: 16px; background: var(--acc); color: var(--on-acc); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 900 18px Nunito, sans-serif; cursor: pointer; }
.btn:hover { color: var(--on-acc); }
.btn.secondary { background: var(--card); color: var(--text); }
.white .btn.secondary { background: var(--bg); }
.btn.small { min-height: 48px; font-size: 16px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font: 700 15px Nunito, sans-serif; }
.field input, .field textarea { min-height: 48px; padding: 12px 16px; border: none; border-radius: 16px; background: var(--bg); color: var(--text); font: 600 16px Nunito, sans-serif; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--acc); }

/* header */
header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--div); }
header .wrap { min-height: 64px; padding: 12px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
header .wrap > :last-child { justify-self: end; }
.logo { display: flex; align-items: center; gap: 8px; font: 900 24px Nunito, sans-serif; color: var(--text); justify-self: start; }
.logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 12px; }
#lang { background: var(--card); border: none; border-radius: 16px; min-height: 40px; padding: 6px 10px; font: 800 14px Nunito, sans-serif; color: var(--text); cursor: pointer; }
header nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-weight: 800; }
@media (max-width: 640px) { header nav { display: none; } }

/* store buttons */
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stores img { height: 40px; width: auto; }
.hero .stores img { height: 56px; }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-top: 64px; }
.hero .copy { display: flex; flex-direction: column; gap: 24px; }
.hero .copy p { max-width: 520px; font-size: 20px; }
.stage { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.stage::before { content: ""; position: absolute; top: 50%; left: 50%; width: min(520px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--tint); }
.stage > .art { position: relative; width: min(520px, 100%); height: auto; }

/* ring + bars */
.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--track); }
.ring .fill { stroke: var(--acc); }
.ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font: 900 56px/1 Nunito, sans-serif; }
.ring span { font: 700 14px Nunito, sans-serif; color: var(--sub); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 96px; }
.week div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font: 800 12px Nunito, sans-serif; color: var(--sub); }
.week i { width: 100%; max-width: 28px; border-radius: 8px; background: var(--acc); }
.week div:nth-child(n+6) i { background: var(--track); }

/* features + steps */
.feature { background: var(--bg); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.feature .card { background: var(--card); }
.feature .stack { gap: 8px; }
.feature p { font-size: 17px; }
.step { background: var(--card); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.step .row { justify-content: space-between; }
.step img { width: auto; height: 104px; max-width: 58%; object-fit: contain; }
.step h3 { font-size: 22px; }

/* pricing */
.plan { position: relative; background: var(--bg); border-radius: 24px; padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 24px; cursor: pointer; }
.plan.hot { background: var(--tint); }
.plan .flag { position: absolute; top: -16px; left: 24px; background: var(--text); color: var(--bg); border-radius: 16px; padding: 6px 14px; font: 900 13px Nunito, sans-serif; }
.plan .name { font: 900 20px Nunito, sans-serif; }
.price { font: 900 44px/1.1 Nunito, sans-serif; font-variant-numeric: tabular-nums; }
.price small { font: 700 16px Nunito, sans-serif; color: var(--sub); margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; font-weight: 700; }
.plan li { display: flex; align-items: center; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 9' fill='none' stroke='%23222' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; }
.plan > button { min-height: 56px; border: none; border-radius: 16px; background: var(--card); display: flex; align-items: center; justify-content: center; font: 900 18px Nunito, sans-serif; color: var(--text); cursor: pointer; }
.plan.hot > button { background: var(--acc); color: var(--on-acc); }

/* faq */
#faq { max-width: 840px; display: flex; flex-direction: column; gap: 40px; }
details { background: var(--card); border-radius: 16px; }
summary { list-style: none; cursor: pointer; min-height: 64px; padding: 16px 24px; display: flex; align-items: center; gap: 16px; font: 800 18px Nunito, sans-serif; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; width: 32px; height: 32px; flex: none; margin-left: auto; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; font: 900 20px/1 Nunito, sans-serif; }
details[open] summary::after { content: "\2212"; background: var(--acc); color: var(--on-acc); }
details p { padding: 0 24px 20px; font-size: 17px; line-height: 1.55; }

/* final cta */
.cta { background: var(--acc); color: var(--on-acc); border-radius: 24px; padding: 56px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin-bottom: 24px; }
.cta .stores img { height: 60px; }
.cta > img { justify-self: center; width: min(260px, 100%); border-radius: 24px; }

/* footer: always the dark surface, in both modes */
footer { background: #222222; color: #EFEFEF; }
footer .wrap { padding: 64px 24px 32px; display: flex; flex-direction: column; gap: 48px; }
footer a { color: #EFEFEF; font-weight: 700; }
footer a:hover { color: #FEDC00; }
footer .logo { color: #EFEFEF; }
footer .muted { color: #BEBEBE; font-weight: 700; }
footer h4 { margin: 0; font: 900 16px Nunito, sans-serif; color: #FEDC00; }
.brand { max-width: 420px; grid-column: span 2; }
@media (max-width: 520px) { .brand { grid-column: auto; } }
.social { display: flex; gap: 12px; }
.social a { width: 48px; height: 48px; border-radius: 50%; background: #404040; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.copyright { border-top: 1px solid #606060; padding-top: 24px; font-size: 14px; }

/* legal pages (policy, terms) */
.legal-hero { padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.legal-body { padding-top: 0; display: flex; flex-direction: column; gap: 24px; }
.legal-card { background: var(--card); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 520px) { .legal-card { padding: 24px 16px; } }
.policy-toc { background: var(--bg); border-radius: 16px; padding: 24px; }
.policy-toc h6 { margin: 0 0 12px; font: 800 12px Nunito, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--sub); }
.policy-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-weight: 700; }
.toc-columns ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); column-gap: 32px; }
.policy-section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 88px; }
.policy-section p, .policy-section li { color: var(--sub); }
.policy-section strong { color: var(--text); }
.policy-section a { color: var(--ink); text-decoration: underline; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { font: 900 22px Nunito, sans-serif; }
.section-number { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: flex; align-items: center; justify-content: center; font: 900 15px Nunito, sans-serif; }
.sub-section { display: flex; flex-direction: column; gap: 8px; }
.sub-section h3 { font: 800 17px Nunito, sans-serif; }
.policy-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.contact-box { background: var(--tint); border-radius: 16px; padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.warning-box { background: var(--danger-tint); border-radius: 16px; padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.warning-box, .warning-box p, .warning-box strong { color: var(--text); }
.legal-caps { text-transform: uppercase; font-size: 14px; }


/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.mascot { width: 160px; height: 160px; border-radius: 50%; background: var(--tint); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mascot img { width: 85%; height: auto; }

/* article pages (compare, guides, quiz) */
.article { max-width: 840px; padding-top: 0; display: flex; flex-direction: column; gap: 20px; }
.article h2 { font: 900 24px Nunito, sans-serif; margin-top: 24px; }
.article > p, .article li, .article td { color: var(--sub); font-size: 17px; line-height: 1.6; }
.article strong { color: var(--text); }
.article > p a, .article li a, .article td a, #faq details a { color: var(--ink); text-decoration: underline; }
.article ul, .article ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.table { overflow-x: auto; background: var(--card); border-radius: 16px; }
.table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--div); }
.table thead th { background: var(--tint); font: 800 15px Nunito, sans-serif; }
.table tbody th { font: 800 15px Nunito, sans-serif; }
.table tbody tr:last-child > * { border-bottom: none; }

/* quiz */
.quiz fieldset { border: none; margin: 0; min-width: 0; }
.quiz legend { padding: 0; margin-bottom: 12px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: var(--bg); font-weight: 700; cursor: pointer; }
.option:has(input:checked) { background: var(--tint); }
.option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--acc); }
.result { background: var(--tint); }
.result p, .bands p { color: var(--text); }

/* Cookie consent banner (analytics.js): fixed overlay, so no layout shift. Inverted surface reads on bg and card. */
.consent { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; padding: 16px; border-radius: 16px; background: var(--text); color: var(--bg); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-weight: 600; font-size: 15px; }
.consent p { flex: 1 1 280px; margin: 0; }
.consent a { color: inherit; text-decoration: underline; }
.consent div { display: flex; gap: 8px; }
.consent .decline { background: var(--sub); color: inherit; }
