/* Dive Base marketing site. Built on the Dive Base design tokens (assets/tokens.css).
   Hero and band sections use clean depth-gradient backgrounds; the underwater
   illustrations were removed per founder review.
   Layout per ART_DIRECTION 1.2: fluid container, auto-fit grids, left-aligned sections,
   first-class mobile. Coral on CTAs only. */
:root {
  --abyss-900: #04222c;
  --abyss-800: #073542;
  --abyss-700: #0b4a5c;
  --abyss-grad: radial-gradient(120% 90% at 70% -10%, #0e5a6e 0%, var(--abyss-800) 42%, var(--abyss-900) 100%);
  --depth-grad: linear-gradient(180deg, #0f7d99 0%, #0b5a73 26%, var(--abyss-800) 58%, var(--abyss-900) 100%);
  --maxw: min(1560px, 94vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px rgba(4,34,44,.06), 0 8px 24px -12px rgba(4,34,44,.18);
  --shadow-float: 0 30px 70px -30px rgba(4,34,44,.55), 0 4px 14px rgba(4,34,44,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* visible keyboard focus (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; border-radius: .25rem; }
.num { font-family: var(--font-num, var(--font-ui)); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent-solid); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 .4rem 0; }
.skip-link:focus { left: 0; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.6rem); }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-ui); font-weight: 700; border: 1px solid transparent; border-radius: .65rem; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; text-align: center; white-space: nowrap; }
.btn-sm { padding: .5rem .9rem; font-size: .92rem; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent-solid); color: #fff; box-shadow: 0 10px 24px -12px var(--accent-solid); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px var(--accent-solid); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--divider); }
.btn-ghost:hover { background: var(--surface-sunk); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--divider) 60%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2rem); font-weight: 600; font-size: .96rem; }
.nav-links a:not(.btn):hover { color: var(--accent-solid); }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .brand-logo { height: 26px; }
}

/* ---------- language switcher (JS-free <details>) ---------- */
.lang-switch { position: relative; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; font-weight: 600; font-size: .92rem; color: var(--text); padding: .42rem .7rem; border: 1px solid var(--divider); border-radius: .6rem; background: var(--bg); transition: border-color .15s, color .15s, background .15s; }
.lang-switch__btn::-webkit-details-marker { display: none; }
.lang-switch__btn:hover { color: var(--accent-solid); border-color: color-mix(in srgb, var(--accent) 45%, var(--divider)); }
.lang-switch__btn .ic { color: var(--brand); }
.lang-switch__code { letter-spacing: .03em; }
.lang-switch__caret { width: .9em; height: .9em; transition: transform .2s var(--ease); }
.lang-switch[open] .lang-switch__caret { transform: rotate(180deg); }
.lang-switch[open] .lang-switch__btn { color: var(--accent-solid); border-color: color-mix(in srgb, var(--accent) 45%, var(--divider)); }
.lang-switch__menu { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60; min-width: 11rem; margin: 0; padding: .35rem; list-style: none; background: var(--surface); border: 1px solid var(--divider); border-radius: .7rem; box-shadow: var(--shadow-float); }
.lang-switch__menu li { margin: 0; }
.lang-switch__menu a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; border-radius: .45rem; font-weight: 600; font-size: .9rem; color: var(--text); }
.lang-switch__menu a:hover { background: var(--surface-sunk); color: var(--accent-solid); }
.lang-switch__menu a[aria-current="true"] { color: var(--accent-solid); background: var(--brand-soft); }
.lang-switch__abbr { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); }
.lang-switch__menu a[aria-current="true"] .lang-switch__abbr { color: var(--accent-solid); }
/* The text nav hides under 760px, but the switcher must stay reachable. */
@media (max-width: 760px) {
  .lang-switch { display: inline-flex; }
  .lang-switch__menu { right: 0; }
}

/* ---------- hero / band gradient backgrounds ---------- */
.hero-media, .band-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--depth-grad); }
.band-media { background: linear-gradient(180deg, var(--abyss-800) 0%, var(--abyss-900) 100%); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #eaf6f8; padding: clamp(3.2rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-solid); }
.eyebrow-light { color: #ffb9a6; }
.hero-title { font-family: var(--font-display, Sora, sans-serif); font-weight: 800; font-size: clamp(2.3rem, 4.8vw, 5rem); line-height: 1.02; letter-spacing: -.02em; margin: .6rem 0 0; color: #fff; }
.accent-text { color: #ff8a6b; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: #cde2e6; max-width: 44ch; margin: 1.2rem 0 1.6rem; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: #cde2e6; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .ic { color: #5fd0c0; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-peek { max-width: 480px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
}

/* product peek */
.hero-peek { display: grid; gap: 1rem; }
.peek-card, .peek-widget { background: #fff; color: var(--text); border-radius: 1rem; box-shadow: var(--shadow-float); }
.peek-card { padding: 1.1rem 1.2rem; transform: perspective(1200px) rotateY(-7deg) rotateX(3deg); }
.peek-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .92rem; padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 1px solid var(--divider); }
.peek-title { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); }
.peek-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .55rem; padding: .5rem 0; font-size: .92rem; }
.peek-av { width: 30px; height: 30px; border-radius: 50%; background: var(--abyss-700); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.peek-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; padding-top: .7rem; border-top: 1px solid var(--divider); font-size: .86rem; color: var(--text-muted); }
.peek-foot span { display: inline-flex; align-items: center; gap: .35rem; }
.peek-widget { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem .9rem 1.2rem; transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translateX(6%); overflow: hidden; }
.peek-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.peek-thumb { width: 52px; height: 52px; border-radius: .7rem; flex: none; background: var(--abyss-grad); display: grid; place-items: center; color: #9ad7e4; }
.peek-thumb .ic { width: 1.6em; height: 1.6em; }
.peek-widget-body { display: grid; gap: .1rem; min-width: 0; }
.peek-widget-trip { font-weight: 700; }
.peek-widget-meta { font-size: .82rem; color: var(--text-muted); }
.peek-price .num { font-size: 1.15rem; font-weight: 800; } .peek-price .per { color: var(--text-muted); font-size: .8rem; }
.peek-cta { background: var(--accent-solid); color: #fff; font-weight: 700; font-size: .85rem; padding: .45rem .9rem; border-radius: .5rem; margin-left: auto; flex: none; }
.db-badge { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 1rem; letter-spacing: .02em; }
.db-badge--ok { background: color-mix(in srgb, var(--success) 16%, #fff); color: color-mix(in srgb, var(--success) 94%, #000); }
.db-badge--warn { background: color-mix(in srgb, var(--warning) 20%, #fff); color: color-mix(in srgb, var(--warning) 46%, #000); }
.db-badge--cert { background: var(--surface-sunk); color: var(--text-muted); }
@media (max-width: 940px) {
  .peek-card, .peek-widget { transform: none; }
}
@media (max-width: 400px) {
  .peek-widget { flex-wrap: wrap; }
  .peek-cta { margin-left: 0; }
}

/* ---------- strip ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--divider); padding: clamp(1.2rem, 2.5vw, 1.8rem) 0; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.strip-text { color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); margin: 0; }
.strip-text strong { color: var(--text); }
.strip-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem .7rem; }
.strip-chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--text-muted); background: var(--bg); border: 1px solid var(--divider); border-radius: 2rem; padding: .38rem .9rem; }
.strip-chips .ic { color: var(--brand); }

/* ---------- shared section (left-aligned) ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-head { margin: 0 0 clamp(1.8rem, 3.5vw, 3rem); text-align: left; }
.kicker { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-solid); margin: 0 0 .6rem; }
.kicker-light { color: #ff8a6b; }
.section-title { font-family: var(--font-display, Sora, sans-serif); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--text); }
.section-lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--text-muted); margin: 1rem 0 0; max-width: 62ch; }
.lede-light { color: #bcd9de; }

/* ---------- one day (fluid step cards) ---------- */
.section-day { background: var(--bg); }
/* Day timeline: a vertical rail whose fill tracks scroll (set by main.js),
   numbered nodes that light up as each moment reveals, cards to the right. */
.day { list-style: none; margin: 2rem 0 0; padding: 0 0 0 2.8rem; position: relative; display: flex; flex-direction: column; gap: 1.2rem; counter-reset: moment; }
.day-rail { position: absolute; left: calc(1.4rem - 1px); top: 1.4rem; bottom: 1.8rem; width: 2px; background: var(--divider); border-radius: 2px; }
.day-rail-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--brand), var(--accent)); border-radius: 2px; transition: height .12s linear; }
.moment { position: relative; background: var(--surface); border: 1px solid var(--divider); border-radius: 1rem; padding: 1.3rem 1.4rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: .55rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.moment:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(4,34,44,.06), 0 18px 40px -18px rgba(4,34,44,.3); }
.moment::before { counter-increment: moment; content: counter(moment); position: absolute; left: -2.35rem; top: 1.15rem; z-index: 1; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); border: 2px solid var(--surface); transition: background .3s var(--ease), color .3s var(--ease); }
.moment.is-visible::before { background: var(--brand); color: #fff; }
.moment-time { align-self: flex-start; font-size: .82rem; font-weight: 700; color: #fff; background: var(--abyss-700); border-radius: 2rem; padding: .2rem .7rem; }
.moment h3 { font-family: var(--font-display, Sora); font-size: 1.18rem; letter-spacing: -.01em; margin: 0; color: var(--text); }
.moment p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- features ---------- */
.section-capabilities { background: var(--surface); }
.domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.1rem; }
.domain { background: var(--bg); border: 1px solid var(--divider); border-radius: 1rem; padding: 1.35rem; box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.domain:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(4,34,44,.06), 0 18px 40px -18px rgba(4,34,44,.3); }
.domain-h { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display, Sora); font-size: 1.05rem; margin: 0 0 .8rem; color: var(--text); }
.domain-h .ic { color: var(--accent-solid); font-size: 1.1rem; }
.domain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; color: var(--text-muted); }
.domain-list li { padding-left: 1.1rem; position: relative; }
.domain-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 70%, var(--divider)); }

/* ---------- illustrated bands (fees / access) ---------- */
.photo-band { position: relative; overflow: hidden; color: #eaf6f8; }
.photo-band .container { position: relative; z-index: 2; }
.section-fees .section-title { color: #fff; }
.fees-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.fees-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.fees-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; padding: 1.4rem; text-align: center; display: grid; gap: .35rem; backdrop-filter: blur(4px); }
.fees-win { background: rgba(95,208,192,.14); border-color: rgba(95,208,192,.4); }
.fees-label { font-size: .82rem; color: #abc9cf; }
.fees-amount { font-family: var(--font-display, Sora); font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 800; color: #fff; }
.fees-foot { font-size: .8rem; color: #abc9cf; }
.fees-card .db-badge { justify-self: center; margin-top: .3rem; }
.fees-vs { color: #8fb3ba; font-weight: 700; font-size: .8rem; }
@media (max-width: 880px) {
  .fees-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fees-compare { grid-template-columns: 1fr; }
  .fees-vs { text-align: center; }
}

/* ---------- pricing ---------- */
.section-pricing { background: var(--bg); }
.pricing-panel { background: var(--surface); border: 1px solid var(--divider); border-radius: 1.2rem; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-card); }
.tier-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.tier { border: 1px solid var(--divider); border-radius: .9rem; padding: 1.1rem 1rem; display: grid; gap: .3rem; align-content: start; background: var(--bg); }
.tier-name { font-family: var(--font-display, Sora); font-size: 1.15rem; margin: 0; color: var(--text); }
.tier-soon { font-weight: 700; color: var(--accent-solid); font-size: .8rem; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.tier-meta { color: var(--text-muted); font-size: .88rem; margin: 0; }
.tier-feats { list-style: none; margin: .55rem 0 0; padding: 0; display: grid; gap: .42rem; }
.tier-feats li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--text); line-height: 1.35; }
.tier-feats li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.tier-feat-limit { color: var(--text-muted); }
.tier-feat-limit::before { content: "\2022"; color: var(--text-muted); }
.pricing-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.pricing-foot { color: var(--text-muted); margin: 0; max-width: 58ch; }
.pricing-foot strong { color: var(--text); }
.pricing-seasonal { color: var(--text-muted); margin: 1.5rem 0 0; max-width: 70ch; border-top: 1px solid var(--divider); padding-top: 1.2rem; }
.pricing-seasonal strong { color: var(--text); }

/* ---------- access / lead ---------- */
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 880px) { .access-grid { grid-template-columns: 1fr; } }
.access-title { font-family: var(--font-display, Sora); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; color: #fff; margin: 0; }
.access-sub { color: #cde2e6; font-size: 1.1rem; margin: 1rem 0 1.4rem; max-width: 46ch; }
.access-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; color: #d6ebee; }
.access-points li { display: flex; align-items: center; gap: .55rem; }
.access-points .ic { color: #5fd0c0; }
.access-form-wrap { background: #fff; color: var(--text); border-radius: 1.2rem; padding: clamp(1.3rem, 2.6vw, 2rem); box-shadow: var(--shadow-float); }
.field { width: 100%; font-family: var(--font-ui); font-size: 1rem; padding: .85rem 1rem; border-radius: .65rem; border: 1px solid var(--divider); background: var(--bg); color: var(--text); transition: border-color .15s, background .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: var(--accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field-group { display: grid; gap: .35rem; margin-bottom: .8rem; }
.field-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.req { color: var(--accent-solid); }
.form-status { margin: .8rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: color-mix(in srgb, var(--success) 75%, #042); font-weight: 600; }
.form-status.err { color: var(--danger); }

/* reveal motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- legal pages (privacy / terms / cookies / imprint) ---------- */
/* Long-form legal copy on the light theme: a single capped reading column,
   generous line-height, clear heading rhythm. */
.legal-main { background: var(--bg); }
.legal { max-width: 72ch; margin-inline: auto; padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); color: var(--text); }
.legal h1 { font-family: var(--font-display, Sora, sans-serif); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--text); }
.legal .legal-updated { color: var(--text-muted); font-size: .92rem; margin: 0 0 1.6rem; }
.legal h2 { font-family: var(--font-display, Sora, sans-serif); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em; margin: 2.4rem 0 .7rem; color: var(--text); }
.legal h3 { font-family: var(--font-display, Sora, sans-serif); font-weight: 700; font-size: 1.12rem; margin: 1.6rem 0 .5rem; color: var(--text); }
.legal p { margin: 0 0 1rem; color: var(--text); }
.legal ul, .legal ol { margin: 0 0 1.1rem; padding-left: 1.3rem; color: var(--text); }
.legal li { margin: 0 0 .5rem; line-height: 1.6; }
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-solid); }
.legal strong { color: var(--text); }
.legal-table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--divider); vertical-align: top; }
.legal thead th { font-weight: 700; color: var(--text); border-bottom: 2px solid var(--border-strong); }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.4rem; font-weight: 600; color: var(--link); }
.legal-back:hover { color: var(--accent-solid); }

/* legal-page tab navigation (Privacy / Terms / Cookies / Imprint) */
.legal-tabs { display: flex; flex-wrap: wrap; gap: .3rem .4rem; margin: 0 0 2rem; border-bottom: 1px solid var(--divider); }
.legal-tabs a { padding: .55rem .9rem; margin-bottom: -1px; font-weight: 600; font-size: .95rem; color: var(--text-muted); border-bottom: 2px solid transparent; border-radius: .4rem .4rem 0 0; white-space: nowrap; transition: color .15s, background .15s, border-color .15s; }
.legal-tabs a:hover { color: var(--accent-solid); background: var(--surface-sunk); }
.legal-tabs a[aria-current="page"] { color: var(--accent-solid); border-bottom-color: var(--accent-solid); }
@media (max-width: 560px) { .legal-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ---------- consent management (banner + preferences modal) ---------- */
.btn-quiet { background: var(--surface-sunk); color: var(--text); border-color: var(--divider); }
.btn-quiet:hover { background: var(--divider); }
body.cmp-open { overflow: hidden; }
.cmp-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(4,34,44,.6); backdrop-filter: blur(3px); }
.cmp-overlay[hidden] { display: none; }
.cmp-banner, .cmp-modal { position: fixed; z-index: 310; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text); border: 1px solid var(--divider); border-radius: 1rem; box-shadow: var(--shadow-float); padding: clamp(1.3rem, 3vw, 2rem); }
.cmp-banner { bottom: clamp(1rem, 4vh, 3rem); width: min(640px, calc(100vw - 2rem)); }
.cmp-modal { top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 2rem)); max-height: min(86vh, 760px); overflow-y: auto; }
.cmp-banner[hidden], .cmp-modal[hidden] { display: none; }
.cmp-title { font-family: var(--font-display, Sora, sans-serif); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 .6rem; color: var(--text); }
.cmp-body { margin: 0 0 1.2rem; font-size: .96rem; line-height: 1.6; color: var(--text-muted); }
.cmp-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cmp-actions .btn { flex: 1 1 auto; padding: .7rem 1.1rem; }
.cmp-prefs-intro { margin: 0 0 1.3rem; font-size: .92rem; line-height: 1.6; color: var(--text-muted); }
.cmp-prefs-intro a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.cmp-prefs-intro a:hover { color: var(--accent-solid); }
.cmp-cat { border: 1px solid var(--divider); border-radius: .7rem; padding: 1rem 1.1rem; margin: 0 0 .8rem; background: var(--bg); }
.cmp-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.cmp-cat-name { font-weight: 700; font-size: 1rem; color: var(--text); }
.cmp-cat-desc { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--text-muted); }
.cmp-badge { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: .2rem .55rem; border-radius: 1rem; white-space: nowrap; }
.cmp-close { position: absolute; top: .7rem; right: .8rem; width: 2rem; height: 2rem; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; background: none; border: 0; color: var(--text-muted); cursor: pointer; border-radius: .4rem; }
.cmp-close:hover { color: var(--text); background: var(--surface-sunk); }
.cmp-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.cmp-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cmp-slider { position: absolute; inset: 0; background: var(--divider); border-radius: 26px; transition: background .2s; }
.cmp-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.cmp-switch input:checked + .cmp-slider { background: var(--brand); }
.cmp-switch input:checked + .cmp-slider::before { transform: translateX(20px); }
.cmp-switch input:focus-visible + .cmp-slider { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
@media (max-width: 520px) { .cmp-actions .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .cmp-slider, .cmp-slider::before { transition: none; } }

/* ---------- footer (minimal) ---------- */
.site-footer { background: var(--abyss-900); color: #9fc0c7; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.3rem; padding-top: 1.4rem; padding-bottom: .2rem; font-size: .84rem; }
.footer-nav a, .footer-nav button { color: #cfe2e6; font-weight: 600; }
.footer-nav a:hover, .footer-nav button:hover { color: #ff8a6b; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.2rem; padding-block: 1.4rem; font-size: .84rem; }
.footer-soon { color: #80a6ad; }
@media (max-width: 560px) {
  .footer-nav { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .peek-card, .peek-widget { transform: none; }
  .btn:hover, .moment:hover, .domain:hover { transform: none; }
}
