/* =========================================================
   BenjyUEFN — design system
   Theme: bold colour background · Palette: violet & lilac
   Type: Syne + Manrope · Layout: full-width colour bands
   Motif: geometric shapes · Shapes: brutalist thick borders
   ========================================================= */

:root {
  --violet: #5a2de0;
  --violet-deep: #3b17a6;
  --lilac: #cdb9ff;
  --lilac-soft: #efe8ff;
  --ink: #150c35;
  --paper: #fbf9ff;
  --white: #ffffff;
  --muted-ink: #463d6b;
  --muted-light: #ddd3ff;

  --f-display: "Syne", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bw: 3px;
  --line: var(--bw) solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --band-y: clamp(4rem, 9vw, 7.5rem);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--violet);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.1; }
h4 { font-size: 1.1rem; }

:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.band--lilac :focus-visible, .band--paper :focus-visible, .card :focus-visible, .cc :focus-visible { outline-color: var(--violet); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--lilac); color: var(--ink); padding: .7rem 1rem;
  border: var(--line); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); position: relative; }

/* ---------- Header: transparent, solid on scroll ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: var(--bw) solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-solid, .site-header.menu-open { background: var(--ink); border-bottom-color: var(--ink); }
.no-js .site-header { position: absolute; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  font-family: var(--f-display); font-weight: 800; font-size: 1.45rem;
  letter-spacing: -0.03em; text-decoration: none; color: var(--white);
}
.brand:hover { color: var(--lilac); }

.nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: .5rem .8rem; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: var(--bw) solid transparent;
}
.nav-list a:hover { border-color: var(--lilac); }
.nav-list a[aria-current="page"] { border-color: var(--white); }
.nav-cta { margin-left: .5rem; }

.menu-toggle {
  display: none; font: 800 .95rem var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  background: var(--lilac); color: var(--ink); border: var(--line); box-shadow: 3px 3px 0 var(--ink);
  padding: .5rem .9rem; cursor: pointer;
}

@media (max-width: 920px) {
  .js .menu-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--ink); border-bottom: var(--line);
    padding: 1rem var(--gutter) 1.5rem; display: none;
  }
  .js .site-header.menu-open .site-nav { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; }
  .js .nav-list a { display: block; font-size: 1.15rem; }
  .js .nav-cta { margin: .75rem 0 0; }
  .no-js .site-header { height: auto; padding: .75rem 0; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .nav-list { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 800 1rem/1.1 var(--f-display); letter-spacing: .02em; text-transform: uppercase;
  padding: .95rem 1.35rem; border: var(--line); box-shadow: var(--shadow-sm);
  background: var(--lilac); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--paper { background: var(--paper); }
.btn--violet { background: var(--violet); color: var(--white); }
.btn--small { padding: .6rem .95rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Bands ---------- */
.band { padding-block: var(--band-y); border-top: var(--line); position: relative; overflow: hidden; }
.band--violet { background: var(--violet); color: var(--white); }
.band--deep { background: var(--violet-deep); color: var(--white); }
.band--lilac { background: var(--lilac); color: var(--ink); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--white); }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 800 .85rem var(--f-display); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 14px; height: 14px; background: currentColor; transform: rotate(45deg); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { font-size: 1.15rem; }
.band--paper .section-head p, .band--lilac .section-head p { color: var(--muted-ink); }
.band--violet .section-head p, .band--deep .section-head p, .band--ink .section-head p { color: var(--muted-light); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3.5rem, 7vw, 5.5rem); position: relative; overflow: hidden; border-top: 0; }
.hero .wrap { z-index: 1; }
.eyebrow { font: 800 .9rem var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--lilac); margin-bottom: 1.25rem; }
.mega {
  font-size: clamp(3rem, 11.5vw, 9.6rem); line-height: .92; letter-spacing: -0.045em;
  margin: 0 0 2rem; max-width: 12ch;
}
.mega .mark { color: var(--ink); background: var(--lilac); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.page-hero .mega { font-size: clamp(2.7rem, 8.5vw, 6.6rem); max-width: 14ch; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); max-width: 640px; color: var(--lilac-soft); margin-bottom: 2rem; }

.shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shapes svg { position: absolute; }
.shape-a { width: clamp(150px, 26vw, 360px); right: -4%; top: 14%; }
.shape-b { width: clamp(90px, 13vw, 180px); right: 22%; bottom: 7%; }
.shape-c { width: clamp(70px, 9vw, 120px); right: 8%; bottom: 30%; }
.shape-d { width: clamp(120px, 16vw, 220px); left: -40px; bottom: -40px; opacity: .9; }
@media (max-width: 720px) {
  .shape-a { top: auto; bottom: 2%; right: -60px; opacity: .45; }
  .shape-b, .shape-c { display: none; }
  .shape-d { opacity: .35; }
}

.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0; list-style: none;
  border: var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.fact-strip li { padding: 1rem 1.15rem; border-right: var(--line); }
.fact-strip li:last-child { border-right: 0; }
.fact-strip .label { display: block; font: 800 .75rem var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--violet); }
.fact-strip .value { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 860px) {
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip li:nth-child(2) { border-right: 0; }
  .fact-strip li:nth-child(-n+2) { border-bottom: var(--line); }
}
@media (max-width: 420px) {
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip li { border-right: 0; border-bottom: var(--line); }
  .fact-strip li:last-child { border-bottom: 0; }
}

/* ---------- Cards ---------- */
.card { background: var(--paper); color: var(--ink); border: var(--line); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2rem); }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 380px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.icon-tile {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--lilac); border: var(--line); margin-bottom: 1.25rem;
}
.icon-tile svg { width: 36px; height: 36px; }
.card--service { display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card--service:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card--service .more { margin-top: auto; padding-top: 1rem; font-weight: 800; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.steps li { padding: clamp(1.4rem, 3vw, 2rem); border-right: var(--line); }
.steps li:last-child { border-right: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.1rem;
  font: 800 1.7rem var(--f-display); background: var(--violet); color: var(--white); border: var(--line);
}
.steps li:nth-child(2) .step-no { border-radius: 50%; }
.steps li:nth-child(3) .step-no { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 0; width: 64px; height: 64px; }
.steps li:nth-child(4) .step-no { border-radius: 50% 50% 0 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: var(--line); }
  .steps li:last-child { border-bottom: 0; }
}

/* ---------- Why list ---------- */
.why {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--bw);
  background: var(--lilac); border: var(--bw) solid var(--lilac); box-shadow: 6px 6px 0 var(--violet);
}
.why-item { padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink); color: var(--white); display: grid; grid-template-columns: 40px 1fr; gap: 1rem; }
.why-item svg { width: 40px; height: 40px; }
.why-item h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.why-item p { color: var(--muted-light); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; max-width: 900px; }
.faq details { background: var(--paper); color: var(--ink); border: var(--line); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.6rem 1.15rem 1.25rem; position: relative;
  font: 800 1.12rem/1.3 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--lilac); border: var(--line); font-size: 1.3rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; background: var(--violet); color: var(--white); }
.faq .answer { padding: 0 1.25rem 1.25rem; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Brief builder ---------- */
.brief { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }
.brief-card { padding: 0; }
.brief-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: var(--line); background: var(--ink); color: var(--white); }
.brief-top .count { font: 800 .85rem var(--f-display); text-transform: uppercase; letter-spacing: .12em; }
.progress { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.progress li { width: 16px; height: 16px; border: 2px solid var(--lilac); }
.progress li:nth-child(2) { border-radius: 50%; }
.progress li:nth-child(3) { transform: rotate(45deg) scale(.85); }
.progress li:nth-child(4) { border-radius: 50% 50% 0 0; }
.progress li.done, .progress li.current { background: var(--lilac); }
.progress li.current { box-shadow: 0 0 0 3px var(--violet); }
.no-js .brief-top .count, .no-js .progress { display: none; }

.brief-body { padding: clamp(1.4rem, 3vw, 2rem); }
.brief fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; }
.js .brief fieldset { margin: 0; }
.js .brief fieldset[hidden] { display: none; }
.brief legend { font: 800 1.35rem/1.15 var(--f-display); margin-bottom: 1rem; padding: 0; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .options { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: block; height: 100%; padding: .85rem 1rem; border: var(--line); background: var(--white);
  font-weight: 700; cursor: pointer; transition: background-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.opt label small { display: block; font-weight: 500; color: var(--muted-ink); font-size: .88rem; margin-top: .15rem; }
.opt label:hover { box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.opt input:checked + label { background: var(--violet); color: var(--white); box-shadow: var(--shadow-sm); }
.opt input:checked + label small { color: var(--lilac-soft); }
.opt input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 3px; }
.brief-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.no-js .brief-nav, .no-js .brief-result { display: none; }
.brief-nojs { font-weight: 600; color: var(--muted-ink); margin: 0; }
.js .brief-nojs { display: none; }
.brief-error { color: #a1123a; font-weight: 700; margin: 1rem 0 0; min-height: 1.5em; }
.brief-result h3 { margin-bottom: .75rem; }
.brief-summary { list-style: none; padding: 0; margin: 0 0 1.25rem; border: var(--line); }
.brief-summary li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .7rem 1rem; border-bottom: var(--line); }
.brief-summary li:last-child { border-bottom: 0; }
.brief-summary strong { font-family: var(--f-display); }
@media (max-width: 480px) { .brief-summary li { grid-template-columns: 1fr; gap: .1rem; } }
.brief-note { font-size: .95rem; color: var(--muted-ink); }

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .4rem; }
.prose a { font-weight: 700; color: var(--violet-deep); }
.updated { font-weight: 700; color: var(--muted-ink); }

.details-list { margin: 0; display: grid; gap: 0; border: var(--line); background: var(--white); }
.details-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .8rem 1rem; border-bottom: var(--line); }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { font: 800 .82rem var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--violet); padding-top: .2rem; }
.details-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .details-list div { grid-template-columns: 1fr; gap: .15rem; } }

.notice {
  border: var(--line); background: var(--lilac); color: var(--ink); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
}
.notice svg { width: 44px; height: 44px; }
.notice p { margin: 0; }

.service-block { display: grid; grid-template-columns: 120px 1fr; gap: clamp(1.25rem, 4vw, 3rem); padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-top: var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .icon-tile { width: 96px; height: 96px; box-shadow: var(--shadow-sm); }
.service-block .icon-tile svg { width: 52px; height: 52px; }
.service-block h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
.service-cols h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); }
@media (max-width: 760px) { .service-block, .service-cols { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: var(--line); margin: 1rem 0 1.5rem; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 2px solid var(--ink); vertical-align: top; }
th { background: var(--ink); color: var(--white); font-family: var(--f-display); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 1.2rem; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row--2 { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: .35rem; }
.field .opt-tag { font-weight: 500; color: var(--muted-ink); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: var(--line); padding: .8rem .9rem; border-radius: 0; appearance: none;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--violet); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start; margin: 1.25rem 0; }
.consent input { width: 24px; height: 24px; margin: .15rem 0 0; accent-color: var(--violet); }
.consent label { font-weight: 600; }
.privacy-note { font-size: .93rem; color: var(--muted-ink); border-left: 6px solid var(--violet); padding-left: .9rem; margin-bottom: 1.25rem; }
.privacy-note a, .consent a { color: var(--violet-deep); font-weight: 800; }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status.ok { color: #0f6b3b; }
.form-status.err { color: #a1123a; }

.contact-card dl { margin: 0; }
.contact-card .item { padding: .85rem 0; border-bottom: 2px solid var(--ink); }
.contact-card .item:first-child { padding-top: 0; }
.contact-card .item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card dt { font: 800 .8rem var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--violet); }
.contact-card dd { margin: .15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-card a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); border-top: var(--line); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(1.75rem, 4vw, 3rem); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; text-decoration: none; letter-spacing: -0.03em; display: inline-block; margin-bottom: .75rem; }
.site-footer h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; color: var(--lilac); margin-bottom: 1rem; }
.site-footer p, .site-footer li, .site-footer address { color: var(--muted-light); font-size: .96rem; font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lilac); }
.legal-lines { font-size: .92rem; line-height: 1.6; }
.legal-lines span { display: block; }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 2px solid var(--muted-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--muted-light); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--white); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--lilac); }

/* ---------- 404 ---------- */
.lost { min-height: 78vh; display: flex; align-items: center; }

/* ---------- Cookie consent ---------- */
.cc {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 1000px; margin: 0 auto; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border: var(--line); box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.cc[hidden] { display: none; }
.cc h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.cc p { font-size: .97rem; margin-bottom: 1rem; }
.cc p a { color: var(--violet-deep); font-weight: 800; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cc-choice { min-width: 150px; }
.cc-prefs-btn { margin-right: auto; }
@media (max-width: 560px) {
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cc-prefs-btn { grid-column: 1 / -1; margin: 0; }
  .cc-choice { min-width: 0; }
}
.cc-panel { border-top: var(--line); margin-top: 1rem; padding-top: 1rem; }
.cc-panel[hidden] { display: none; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 2px solid var(--ink); }
.cc-cat:last-of-type { border-bottom: 0; margin-bottom: .75rem; }
.cc-cat h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.cc-cat p { margin: 0; font-size: .92rem; color: var(--muted-ink); }
.switch { position: relative; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 58px; height: 32px; border: var(--line); background: var(--white); position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--ink); transition: transform .15s ease; }
.switch input:checked + .track { background: var(--violet); }
.switch input:checked + .track::after { transform: translateX(26px); background: var(--white); }
.switch input:disabled + .track { opacity: .65; }
.switch input:focus-visible + .track { outline: 3px solid var(--violet); outline-offset: 3px; }

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