/* cookiedoo.net. Same brand tokens as the portal (portal/app/globals.css). Manrope is self-hosted (variable font,
   Latin and Greek subsets): no requests to third parties before consent, and Greek and English share one typeface. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-greek-variable.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
  --bg: #ffffff; --alt: #f4f7f6; --surface: #ffffff; --sunken: #eef3f2;
  --fg: #1c1c1c; --body: #2c2c2c; --muted: #5c5c5c; --line: #e0e0e0; --logo: #313131;
  --mint: #83cbbe; --mint-ink: #1f6f61; --mint-soft: #e3f3ef;
  --yellow: #ffe156; --yellow-ink: #1c1c1c; --blue: #2750e1;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --radius: 14px; --flag-ring: rgb(0 0 0 / 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615; --alt: #171c1b; --surface: #1c2221; --sunken: #232a29;
    --fg: #eef2f1; --body: #d5dcda; --muted: #a3adab; --line: #2e3735; --logo: #eef2f1;
    --mint-ink: #8fd6c8; --mint-soft: #1f3330;
    --blue: #8ea8ff;
    --flag-ring: rgb(255 255 255 / 0.22);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
h1, h2, h3 { color: var(--fg); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
img, svg { display: block; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; color: var(--mint-ink); }
.icon--feature { width: 28px; height: 28px; color: var(--mint-ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--cta { background: var(--yellow); color: var(--yellow-ink); }
.button--cta:hover { background: #ffd92e; }
.button--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.button--ghost:hover { border-color: var(--mint); }
.button--sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { color: var(--logo); display: inline-flex; }
.brand svg { height: 30px; width: auto; }
.brand--small svg { height: 24px; }
.top nav { display: none; gap: 22px; margin-right: auto; }
.top nav a, .signin, .lang { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; }
.top nav a:hover, .signin:hover, .lang:hover { color: var(--mint-ink); }
.lang { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; line-height: 1; letter-spacing: 0.03em; }
.lang:hover { border-color: var(--mint); }
.flag { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--flag-ring); }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.signin { display: none; }
@media (min-width: 900px) {
  .top nav { display: flex; }
  .top nav { margin-left: 16px; }
  .top-actions { margin-left: 0; }
  .signin { display: inline; }
}
@media (max-width: 420px) { .brand svg { height: 24px; } .top-actions { gap: 10px; } }

/* Hero */
.hero { background: radial-gradient(900px 400px at 85% 10%, var(--mint-soft), transparent 70%), var(--bg); padding: 56px 0 64px; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 1fr; } .hero { padding: 88px 0 96px; } }
.eyebrow { color: var(--mint-ink); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--body); margin-top: 18px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.points li { display: flex; align-items: center; gap: 6px; }

/* Hero illustration: a page with the CookieDoo banner. The script cycles bar → box → modal (each with its own
   accent colour); a click on the illustration stops the cycle. Without JavaScript it shows the bar. */
.mock { --acc: var(--mint); --acc-ink: #12302a; --acc-soft: var(--mint-soft); }
.mock[data-layout="bar"] { --acc: #f59e42; --acc-ink: #3a1f00; --acc-soft: #fdebd8; }
.mock[data-layout="box"] { --acc: #1c1c1c; --acc-ink: #ffffff; --acc-soft: #e6e6e6; }
.mock[data-layout="modal"] { --acc: #6f8ff2; --acc-ink: #0d1a45; --acc-soft: #e3e9fd; }
@media (prefers-color-scheme: dark) {
  .mock[data-layout="bar"] { --acc-soft: #3a2a1a; --acc-ink-tab: #f7b97a; }
  .mock[data-layout="box"] { --acc: #f2f2f2; --acc-ink: #111111; --acc-soft: #2e3735; --acc-ink-tab: #f2f2f2; }
  .mock[data-layout="modal"] { --acc-soft: #222c4a; --acc-ink-tab: #a9bcff; }
}
.mock-tabs { display: flex; gap: 6px; margin: 0 auto 14px; width: max-content; max-width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.no-js .mock-tabs { display: none; }
.mock-tabs button { position: relative; overflow: hidden; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 7px 14px; cursor: pointer; min-height: 36px; }
.mock-tabs button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-ink-tab, var(--acc-ink)); }
.mock-tabs button::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.mock-tabs [data-layout="bar"]::before { background: #f59e42; }
.mock-tabs [data-layout="box"]::before { background: var(--fg); }
.mock-tabs [data-layout="modal"]::before { background: #6f8ff2; }
/* Timing line: fills while the current layout is shown, then the next one comes */
.mock[data-auto] .mock-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--acc); transform-origin: left; animation: mock-timer 3.5s linear forwards; }
@keyframes mock-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mock-browser { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-height: 360px; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-page { padding: 22px; display: grid; gap: 12px; }
.mock-line { height: 10px; border-radius: 6px; background: var(--sunken); }
.w60 { width: 60%; } .w75 { width: 75%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mock-block { height: 90px; border-radius: 10px; background: linear-gradient(135deg, var(--acc-soft), var(--sunken)); }
.mock-overlay { position: absolute; inset: 41px 0 0; background: rgb(0 0 0 / 0.35); opacity: 0; transition: opacity .35s; pointer-events: none; }
.mock-banner { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); transition: all .45s cubic-bezier(.2, .8, .2, 1); }
.mock-banner strong { color: var(--fg); font-size: 15px; }
.mock-banner p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mock-cats { display: none; gap: 6px; margin-top: 10px; }
.mock[data-open-settings] .mock-cats { display: grid; }
.mock-cats label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--fg); background: var(--sunken); border-radius: 8px; padding: 6px 10px; }
.sw { width: 28px; height: 16px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .2s; }
.sw.on { background: var(--acc); }
.sw.on::after { left: 14px; }
.mock-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mb { font: inherit; font-size: 12px; font-weight: 600; text-align: center; padding: 8px 4px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: transform .15s; }
.mb:hover { transform: translateY(-1px); }
.mb--plain { background: transparent; border: 1px solid var(--line); color: var(--fg); }
.mb--primary { background: var(--acc); border: 0; color: var(--acc-ink); }
.mock[data-layout="bar"] .mock-banner { left: 0; right: 0; bottom: 0; border-radius: 0; border-left: 0; border-right: 0; }
.mock[data-layout="bar"] .mock-buttons { grid-template-columns: repeat(3, auto); justify-content: end; }
.mock[data-layout="box"] .mock-banner { left: auto; right: 14px; width: 56%; }
.mock[data-layout="box"] .mock-buttons { grid-template-columns: 1fr 1fr; }
.mock[data-layout="box"] .mb--primary { grid-column: 1 / -1; }
.mock[data-layout="modal"] .mock-overlay { opacity: 1; }
.mock[data-layout="modal"] .mock-banner { left: 12%; right: 12%; bottom: 50%; transform: translateY(50%); text-align: center; }
.mock-done { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0; background: var(--fg); color: var(--bg); font-size: 13px; padding: 8px 14px; border-radius: 99px; transition: all .3s; white-space: nowrap; pointer-events: none; }
.mock[data-done] .mock-banner, .mock[data-done] .mock-overlay { opacity: 0; pointer-events: none; }
.mock[data-done] .mock-done { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) {
  .mock[data-layout="box"] .mock-banner { width: auto; left: 14px; }
  .mock[data-layout="modal"] .mock-banner { left: 14px; right: 14px; }
  .mock[data-layout="bar"] .mock-buttons { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .mock-banner, .mock-overlay, .mock-done { transition: none; } }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--alt); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: #12302a; font-weight: 700; margin-bottom: 14px; }
.steps h3, .feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.steps p, .feature p { color: var(--muted); font-size: 15px; }

.features { display: grid; gap: 18px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.feature .icon { margin-bottom: 14px; }

/* Pricing */
.period { display: flex; width: max-content; margin: 0 auto 32px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.period button { font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.period button[aria-pressed="true"] { background: var(--mint-soft); color: var(--mint-ink); }
.save { font-size: 12px; font-weight: 600; color: var(--mint-ink); }
.no-js .period { display: none; }
.plans { display: grid; gap: 18px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan--featured { border: 2px solid var(--mint); box-shadow: var(--shadow); }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { font-size: 20px; font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; background: var(--mint-soft); color: var(--mint-ink); padding: 3px 10px; border-radius: 999px; }
.price { display: flex; flex-direction: column; }
.amount { font-size: 36px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1.1; }
.per { font-size: 13px; color: var(--muted); }
.trial { font-size: 13px; font-weight: 600; color: var(--mint-ink); min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .icon { margin-top: 2px; }
.plan li.muted { color: var(--muted); }
.plan li.muted .icon { color: var(--muted); }
.fineprint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.fineprint:first-of-type { margin-top: 28px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 600; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--mint-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Final call to action */
.final-inner { text-align: center; background: var(--mint); color: #12302a; border-radius: 20px; padding: 48px 24px; }
.final h2 { color: #12302a; font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
.final p { margin: 10px 0 24px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot .brand { margin-bottom: 8px; }
.foot-meta { display: grid; gap: 4px; max-width: 460px; }
@media (min-width: 720px) { .foot-meta { text-align: right; } }

/* Legal pages (privacy policy) */
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 8px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--body); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.legal code { font-size: 0.9em; background: var(--sunken); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.legal .legal-date { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* Footer links in the footer's own colour */
.foot a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.foot a:hover { color: var(--mint-ink); text-decoration-color: currentColor; }

/* Sections fade in on scroll (the script adds .reveal, so without it everything just shows); cards lift on hover */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.steps li, .feature, .plan { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, opacity .6s ease; }
.steps li:hover, .feature:hover, .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint); }
.feature .icon--feature, .step-n { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.feature:hover .icon--feature { transform: scale(1.25) rotate(-6deg); }
.steps li:hover .step-n { transform: scale(1.15); background: var(--yellow); }
.plan .button { transition: transform .2s; }
.plan:hover .button { transform: scale(1.04); }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s, background .2s, color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--yellow); color: var(--yellow-ink); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .steps li, .feature, .plan, .feature .icon--feature, .step-n, .plan .button, .to-top { transition: none; }
  .steps li:hover, .feature:hover, .plan:hover, .feature:hover .icon--feature, .plan:hover .button { transform: none; }
}
