/* =========================================================================
   timoula — "Daylight" content pages

   The legal & support hub (/privacy-policy, /cookie-policy, /terms-of-use,
   /wolt-terms, /contact, /delete-account), /partners and the 404 page.
   Built on site.css (tokens, nav, footer, buttons, fields, reveal), loaded
   after it; nothing here depends on landing.css.

   Reading layout: a ~70-character measure, an index rail and a sticky
   "On this page" rail on wide screens, a scrolling index strip and a
   collapsible contents sheet on phones. Contrast ratios are WCAG 2.x
   against the surfaces each pair sits on.

   Cache: /css/pages.css?v=SITE_ASSET_VERSION (src/server/siteAssets.ts).
   Bump that version when this file changes.
   ========================================================================= */

:root {
  --doc-text: #3a3632;                  /* reading copy: 12.0:1 white */
  --doc-measure: 36rem;                 /* ≈ 70 characters of 17px text */
  --doc-index: 216px;
  --doc-rail: 216px;
  --doc-sticky-top: calc(var(--nav-h) + var(--s-6));
  --danger-wash: rgb(180 35 24 / 0.06); /* error banner: danger text 6.0:1 */
  --danger-ring: rgb(180 35 24 / 0.24);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Morning light behind the top of the page ------------------- */
/* Starts under the (transparent at scroll 0) sticky nav, inside the page
   width, so it never adds horizontal overflow. Purely decorative. */
.doc,
.partners,
.nf {
  position: relative;
  isolation: isolate;
}
.doc::before,
.partners::before,
.nf::before {
  content: "";
  position: absolute;
  top: calc(var(--nav-h) * -1);
  left: 0;
  right: 0;
  z-index: -1;
  height: 560px;
  background:
    radial-gradient(38% 58% at 78% 0%, rgb(255 196 150 / 0.3), transparent 72%),
    radial-gradient(60% 80% at 30% 0%, var(--c-sun-haze), transparent 74%);
  opacity: 0.7;
  pointer-events: none;
}
/* Centred sunrise behind the hero copy. Fixed-size ellipses, so phones get
   a soft wash rather than a narrow streak; transparent at the top edge, so
   the glass nav (the 404 has no script to clear it) shows no seam. */
.partners::before,
.nf::before {
  height: 860px;
  background:
    radial-gradient(620px 340px at 50% 380px, rgb(255 190 140 / 0.36), transparent 70%),
    radial-gradient(1040px 520px at 50% 340px, var(--c-sun-haze), transparent 72%);
  opacity: 1;
}
.nf::before { top: 0; }

/* ============================== DOC LAYOUT ============================= */
.doc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "index" "article";
  align-items: start;
  column-gap: clamp(40px, 4.5vw, 64px);
  padding-top: clamp(20px, 3.5vw, 40px);
  padding-bottom: var(--section-y);
}
.doc__article { grid-area: article; min-width: 0; }

/* ---------- Legal & support index -------------------------------------- */
/* Below 1200px: a strip of pills that scrolls sideways, edge to edge. */
.doc-index { grid-area: index; min-width: 0; margin-bottom: clamp(28px, 4vw, 48px); }
.doc-index__title { display: none; }
.doc-index__list {
  position: relative;
  display: flex;
  gap: var(--s-2);
  margin-inline: calc(var(--gutter) * -1);
  padding: 6px 40px 6px var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  /* the end padding covers the 40px fade, so a focused pill lands clear of it */
  scroll-padding-inline: var(--gutter) 48px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-solid) var(--gutter), var(--mask-solid) calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, var(--mask-solid) var(--gutter), var(--mask-solid) calc(100% - 40px), transparent);
}
.doc-index__list::-webkit-scrollbar { display: none; }
.doc-index__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
  color: var(--c-fg-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
/* brand-text on tint: 4.9:1 */
.doc-index__link[aria-current="page"] {
  background: var(--c-tint);
  color: var(--c-brand-text);
  box-shadow: inset 0 0 0 1px rgb(var(--c-brand-rgb) / 0.3);
  font-weight: var(--fw-semibold);
}

/* ---------- Header ----------------------------------------------------- */
.doc__header {
  display: grid;
  gap: var(--s-4);
  max-width: 40rem;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--c-line);
}
.doc__header .eyebrow { margin-bottom: calc(var(--s-1) * -1); }
.doc__title {
  font-size: clamp(2.25rem, 1.55rem + 2.4vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.doc__lede {
  max-width: var(--doc-measure);
  color: var(--c-fg-muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
  text-wrap: pretty;
}
.doc__meta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--s-2);
  margin-top: var(--s-1);
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--c-band);
  color: var(--c-fg-subtle);             /* 5.6:1 on band */
  font-size: 0.875rem;
  line-height: 1.4;
}
.doc__meta .ico { width: 16px; height: 16px; flex: none; }
.doc__meta time { color: var(--c-fg-muted); font-weight: var(--fw-medium); white-space: nowrap; }

/* ---------- Reading copy ----------------------------------------------- */
.doc__body {
  max-width: var(--doc-measure);
  margin-top: clamp(32px, 4vw, 48px);
  color: var(--doc-text);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-wrap: break-word;
}
.doc__section + .doc__section { margin-top: clamp(40px, 5vw, 56px); }
.doc__section > * + * { margin-top: var(--s-4); }
.doc__section > .doc__h2 + * { margin-top: var(--s-3); }

.doc__h2 {
  color: var(--c-fg);
  font-size: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-title);
  text-wrap: balance;
}
/* the heading links to itself (copyable deep link); the padding gives it a
   44px hit area without moving the heading */
.doc__anchor {
  display: inline-block;
  margin-block: -9px;
  padding-block: 9px;
  border-radius: 6px;
  color: inherit;
}
.doc__anchor::after {
  content: "#";
  content: "#" / "";
  margin-left: 0.3em;
  color: var(--c-brand-text);
  font-weight: var(--fw-medium);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.doc__anchor:focus-visible::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .doc__anchor:hover::after { opacity: 1; }
}

/* Numbered section pills, echoing the landing feature cards (contents pages) */
.doc--toc .doc__body { counter-reset: doc-section; }
.doc--toc .doc__section { counter-increment: doc-section; }
.doc--toc .doc__h2 { display: flex; align-items: baseline; gap: 12px; }
.doc--toc .doc__h2::before {
  content: counter(doc-section, decimal-leading-zero);
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--c-tint);
  color: var(--c-brand-text);           /* 4.9:1 on tint */
  box-shadow: inset 0 0 0 1px rgb(var(--c-brand-rgb) / 0.28);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  transform: translateY(-2px);
}

/* In-text links: policy cross-references and email addresses */
.doc__lede a,
.doc__body a:not([class]) {
  color: var(--c-fg);
  text-decoration: underline;
  text-decoration-color: rgb(var(--c-brand-rgb) / 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .doc__lede a:hover,
  .doc__body a:not([class]):hover { color: var(--c-brand-text); text-decoration-color: currentColor; }
}

.doc__body strong { color: var(--c-fg); font-weight: var(--fw-semibold); }
.doc code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--c-band);
  box-shadow: inset 0 0 0 1px var(--c-line);
  color: var(--c-fg);
  font-family: var(--font-mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* Provider list ("Name – what it does"): a two-column table on wider screens */
.doc__defs {
  margin-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  font-size: 1rem;
  line-height: 1.6;
}
.doc__defs li {
  display: grid;
  gap: 2px var(--s-5);
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.doc__term { color: var(--c-fg); font-weight: var(--fw-semibold); line-height: 1.5; }

/* Numbered steps (delete account) */
.doc__steps { counter-reset: doc-step; display: grid; gap: var(--s-3); }
.doc__steps li {
  counter-increment: doc-step;
  position: relative;
  min-height: 60px;
  padding: 16px var(--s-5) 16px 64px;
  border-radius: var(--r-md);
  background: var(--c-band-soft);
  box-shadow: inset 0 0 0 1px var(--c-line);
  line-height: 1.6;
}
.doc__steps li::before {
  content: counter(doc-step);
  position: absolute;
  top: 15px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-brand-text);
  box-shadow: inset 0 0 0 1px rgb(var(--c-brand-rgb) / 0.35), var(--shadow-xs);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

/* ---------- On this page: phone sheet ---------------------------------- */
.toc-sheet {
  max-width: var(--doc-measure);
  margin-top: var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-strong), var(--shadow-xs);
}
.toc-sheet__summary {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
  color: var(--c-fg);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.toc-sheet__summary::-webkit-details-marker { display: none; }
/* The count stays on one line; when space runs out (narrow phones, user
   text-spacing) the label wraps rather than being cut (WCAG 1.4.12) */
.toc-sheet__label { min-width: 0; text-wrap: balance; }
.toc-sheet__count {
  flex: none;
  margin-left: auto;
  color: var(--c-fg-subtle);
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.toc-sheet__summary .ico { width: 18px; height: 18px; flex: none; color: var(--c-fg-muted); transition: transform var(--dur-base) var(--ease-out); }
.toc-sheet[open] .toc-sheet__summary .ico { transform: rotate(180deg); }
.toc-sheet__list {
  counter-reset: toc-sheet;
  display: grid;
  padding: var(--s-2);
  border-top: 1px solid var(--c-line);
}
.toc-sheet__link {
  counter-increment: toc-sheet;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  min-height: 44px;
  padding: 11px var(--s-2);
  border-radius: var(--r-xs);
  color: var(--c-fg-muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.toc-sheet__link::before,
.toc__link::before {
  flex: none;
  min-width: 1.5em;
  color: var(--c-fg-subtle);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}
.toc-sheet__link::before { content: counter(toc-sheet, decimal-leading-zero); }

/* ---------- On this page: sticky rail ---------------------------------- */
.toc { display: none; }
.toc__title {
  margin-bottom: var(--s-3);
  color: var(--c-fg);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-title);
}
.toc__list { counter-reset: toc; display: grid; border-left: 1px solid var(--c-line); }
.toc__link {
  counter-increment: toc;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0 7px 16px;
  color: var(--c-fg-subtle);            /* 6.1:1 white */
  font-size: 0.875rem;
  line-height: 1.45;
  transition: color var(--dur-fast) var(--ease-out);
}
.toc__link::before { content: counter(toc, decimal-leading-zero); }
/* The rail scrolls (overflow clips both axes): keep the ring inside the link */
.toc__link:focus-visible { outline-offset: -2px; border-radius: var(--r-xs); }
.toc__link::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background-color var(--dur-base) var(--ease-out);
}
.toc__link[aria-current="location"] { color: var(--c-fg); font-weight: var(--fw-medium); }
.toc__link[aria-current="location"]::after { background: var(--c-brand); }
.toc__link[aria-current="location"]::before { color: var(--c-brand-text); }

@media (hover: hover) and (pointer: fine) {
  .doc-index__link:hover { color: var(--c-fg); box-shadow: inset 0 0 0 1px var(--c-line-hover); }
  .doc-index__link[aria-current="page"]:hover { color: var(--c-brand-text); box-shadow: inset 0 0 0 1px rgb(var(--c-brand-rgb) / 0.45); }
  .toc__link:hover { color: var(--c-fg); }
  .toc-sheet__link:hover { background: var(--c-hover-wash); color: var(--c-fg); }
}
/* Touch screens wide enough for the rails still get full-size targets */
@media (pointer: coarse) {
  .toc__link { min-height: 44px; align-items: center; }
}

/* ============================== CONTACT ================================ */
.contact { max-width: 52rem; margin-top: clamp(32px, 4vw, 48px); }
.contact__title {
  margin-bottom: var(--s-4);
  color: var(--c-fg);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-title);
}
.contact__title + .contact__grid { margin-top: 0; }
.contact__note + .contact__title { margin-top: clamp(40px, 5vw, 56px); }

.contact__grid { display: grid; gap: var(--s-3); }
.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-tile);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.channel__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--c-band);
  color: var(--c-fg-muted);
}
.channel__icon .ico { width: 22px; height: 22px; }
.channel__label { color: var(--c-fg-muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); letter-spacing: var(--tr-title); }
.channel__email {
  max-width: 100%;
  color: var(--c-fg);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-title);
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: var(--c-line-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
/* the whole tile opens the mail app; the link text stays its name */
.channel__email::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.channel__hint { margin-top: 2px; color: var(--c-fg-subtle); font-size: var(--fs-small); line-height: 1.5; text-wrap: pretty; }
.channel--primary {
  background: linear-gradient(180deg, var(--c-tint-2), var(--c-surface) 70%);
  box-shadow: inset 0 0 0 1px rgb(var(--c-brand-rgb) / 0.28), var(--shadow-soft);
}
.channel--primary .channel__icon { background: var(--c-tint); color: var(--c-brand-text); }
.channel--primary .channel__email { text-decoration-color: rgb(var(--c-brand-rgb) / 0.55); }

.contact__note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: var(--c-fg-subtle);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.contact__note .ico { width: 18px; height: 18px; flex: none; }

.contact__social { display: grid; gap: var(--s-3); }
.social-tile {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 72px;
  padding: var(--s-3) var(--s-5) var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-strong), var(--shadow-xs);
  color: var(--c-fg);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.social-tile__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-band);
  color: var(--c-fg);
}
.social-tile__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-tile__text { display: grid; min-width: 0; line-height: 1.35; }
.social-tile__label { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.social-tile__handle { color: var(--c-fg-subtle); font-size: var(--fs-small); overflow-wrap: anywhere; }
.social-tile > .ico { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--c-fg-subtle); transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .channel:hover { box-shadow: var(--shadow-tile-hover); transform: translateY(-2px); }
  .channel:hover .channel__email { text-decoration-color: var(--c-brand); }
  .social-tile:hover { box-shadow: inset 0 0 0 1px var(--c-line-hover), var(--shadow-soft); }
  .social-tile:hover > .ico { color: var(--c-fg); transform: translate(2px, -2px); }
}
/* Focus ring around the whole tile, where :has() can draw it there */
@supports selector(:has(*)) {
  .channel__email:focus-visible { outline: none; }
  .channel:has(.channel__email:focus-visible) { outline: 2px solid var(--c-brand-text); outline-offset: 3px; }
}
.social-tile:focus-visible { outline-offset: 3px; }

.doc--contact .doc__body { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 40px); border-top: 1px solid var(--c-line); }

/* ============================== PARTNERS =============================== */
.p-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.p-hero__inner { display: grid; justify-items: center; gap: var(--s-5); text-align: center; }
.p-hero__inner .eyebrow { margin-bottom: calc(var(--s-2) * -1); }
.p-hero__title {
  max-width: 13em;
  font-size: var(--fs-display-2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-display);
  text-wrap: balance;
}
.p-hero__lead {
  max-width: 36rem;
  color: var(--c-fg-muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
  text-wrap: pretty;
}
.p-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-1); }

/* App previews */
.partner-app-preview { padding-block: var(--section-y); background: var(--c-band); }
.partner-app-preview__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: var(--s-6) clamp(24px, 6vw, 88px);
  margin-top: clamp(40px, 5vw, 64px);
}
.partner-app-preview__shot { display: grid; justify-items: center; gap: var(--s-4); min-width: 0; }
.partner-app-preview__shot picture { display: block; width: 100%; }
.partner-app-preview__shot img {
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--c-tint);
  box-shadow: 0 0 0 1px var(--c-chip-ring), var(--shadow-card);
}
.partner-app-preview__shot figcaption {
  max-width: 18rem;
  color: var(--c-fg-muted);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

/* Plans: two radio cards; the radio itself is visually hidden but focusable */
.partner-plans { padding-block: var(--section-y); }
.partner-plans__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  max-width: 880px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.plan { position: relative; display: block; min-width: 0; cursor: pointer; }
.plan__input {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
}
.plan__card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-strong), var(--shadow-soft);
  transition: box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
/* tagline and badge wrap freely; the radio mark keeps the top-right corner */
.plan__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  min-height: 28px;
  padding-right: 36px;
}
.plan__tagline { color: var(--c-fg-subtle); font-size: var(--fs-small); font-weight: var(--fw-semibold); letter-spacing: var(--tr-title); }
/* white on CTA orange: 4.84:1 */
.plan__badge {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-cta);
  color: var(--c-on-cta);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  white-space: nowrap;
}
.plan__radio {
  position: absolute;
  top: 3px;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1.5px var(--c-field-border);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.plan__name { margin-top: var(--s-2); color: var(--c-fg); font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--tr-title); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan__amount {
  color: var(--c-fg);
  font-size: clamp(2.25rem, 1.85rem + 1.4vw, 3rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.plan__period { color: var(--c-fg-subtle); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.plan__desc { color: var(--c-fg-muted); font-size: var(--fs-small); line-height: 1.5; }
.plan__features {
  display: grid;
  gap: 10px;
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
}
.plan__feature { display: flex; align-items: flex-start; gap: 10px; color: var(--c-fg); font-size: var(--fs-small); line-height: 1.45; }
.plan__feature svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-brand-text); }

.plan__input:checked + .plan__card {
  background: linear-gradient(180deg, var(--c-tint-2), var(--c-surface) 55%);
  box-shadow: inset 0 0 0 2px var(--c-brand-text), 0 0 0 4px rgb(var(--c-brand-rgb) / 0.12), var(--shadow-card);
}
.plan__input:checked + .plan__card .plan__radio { box-shadow: inset 0 0 0 6.5px var(--c-brand-text); }
.plan__input:focus-visible + .plan__card { outline: 2px solid var(--c-brand-text); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .plan:hover .plan__input:not(:checked) + .plan__card { box-shadow: inset 0 0 0 1px var(--c-line-hover), var(--shadow-card); }
  .plan:hover .plan__input:not(:checked) + .plan__card .plan__radio { box-shadow: inset 0 0 0 1.5px var(--c-field-border-hover); }
}

/* Application */
.partner-apply { padding-block: var(--section-y); background: var(--c-band); }
.partner-apply__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: var(--s-6) clamp(32px, 6vw, 96px);
}
.partner-apply__head { position: sticky; top: var(--doc-sticky-top); display: grid; gap: var(--s-4); }
.partner-apply__lead { color: var(--c-fg-muted); font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }
.partner-apply__support { color: var(--c-fg-subtle); font-size: var(--fs-small); }
.partner-apply__support .link { overflow-wrap: anywhere; }
.partner-apply__card {
  min-width: 0;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-card);
}

/* Without JS the form cannot post its JSON, so a mailto line replaces it */
.partner-form__nojs { color: var(--c-fg-muted); font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
.partner-form__nojs .link { overflow-wrap: anywhere; }
.js .partner-form__nojs { display: none; }
html:not(.js) .partner-form { display: none; }

.partner-form__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}
.partner-form__field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.partner-form__field--wide { grid-column: 1 / -1; }
.partner-form__label { color: var(--c-fg); font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: 1.4; }
/* inline field error: danger text 6.5:1 white */
.partner-form__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--c-danger);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.partner-form__error::before,
.partner-form__banner::before {
  content: "!";
  content: "!" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--c-danger);
  color: var(--c-white);
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.partner-form__banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--danger-wash);
  box-shadow: inset 0 0 0 1px var(--danger-ring);
  color: var(--c-danger);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.partner-form__actions { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.partner-form__submit { min-width: 13rem; }
/* "Sending…": a small spinner (static under reduced motion) */
.partner-form__submit:disabled::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: pages-spin 0.8s linear infinite;
}
@keyframes pages-spin { to { transform: rotate(360deg); } }

.partner-form__thanks {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  padding: clamp(32px, 6vw, 64px) var(--s-4);
  text-align: center;
}
.partner-form__thanks:focus { outline: none; }
.partner-form__thanks-check {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: var(--s-2);
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-brand-text);
  box-shadow: 0 0 0 8px rgb(var(--c-brand-rgb) / 0.07), 0 14px 32px -14px rgb(var(--c-brand-rgb) / 0.55);
}
.partner-form__thanks-check svg { width: 28px; height: 28px; }
.partner-form__thanks-title { color: var(--c-fg); font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--tr-title); text-wrap: balance; }
.partner-form__thanks-sub { color: var(--c-fg-muted); }
@media (prefers-reduced-motion: no-preference) {
  .partner-form__thanks:not([hidden]) { animation: rise var(--dur-slow) var(--ease-out) both; }
}

/* ============================== 404 ==================================== */
.nf__hero {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 128px);
  text-align: center;
}
.nf__code {
  font-size: clamp(6rem, 3.6rem + 12vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--c-sun-line-hi), var(--c-brand) 55%, var(--c-cta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
/* the sun's horizon line under the numerals, as on the landing closing card */
.nf__horizon {
  width: min(360px, 72%);
  height: 2px;
  margin: var(--s-1) 0 var(--s-4);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, var(--c-sun-line-hi) 26%, var(--c-brand) 50%, var(--c-sun-line-hi) 74%, transparent);
  box-shadow: 0 0 16px 1px var(--c-sun-glow);
}
.nf__title {
  max-width: 16em;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  text-wrap: balance;
}
.nf__lead { max-width: 34rem; color: var(--c-fg-muted); font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-2); }
.nf__store {
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  width: min(100%, 30rem);
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--c-line);
}
.nf__store-title { color: var(--c-fg); font-size: var(--fs-small); font-weight: var(--fw-semibold); letter-spacing: var(--tr-title); }

/* ============================== RESPONSIVE ============================= */
@media (min-width: 600px) {
  .contact__grid,
  .contact__social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc__defs li { grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); }
}

/* The contents rail appears; the phone sheet goes */
@media (min-width: 992px) {
  .doc--toc .doc__layout {
    grid-template-columns: minmax(0, 1fr) var(--doc-rail);
    grid-template-areas: "index index" "article toc";
  }
  .doc--toc .toc {
    display: block;
    grid-area: toc;
    position: sticky;
    top: var(--doc-sticky-top);
    max-height: calc(100vh - var(--doc-sticky-top) - var(--s-6));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .doc--toc .toc-sheet { display: none; }
}

/* The index becomes a sticky rail on the left */
@media (min-width: 1200px) {
  .doc__layout {
    grid-template-columns: var(--doc-index) minmax(0, 1fr);
    grid-template-areas: "index article";
    padding-top: clamp(40px, 4vw, 64px);
  }
  .doc--toc .doc__layout {
    grid-template-columns: var(--doc-index) minmax(0, 1fr) var(--doc-rail);
    grid-template-areas: "index article toc";
  }
  .doc-index { position: sticky; top: var(--doc-sticky-top); margin-bottom: 0; }
  .doc-index__title {
    display: block;
    margin-bottom: var(--s-3);
    padding-left: 12px;
    color: var(--c-fg);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tr-title);
  }
  .doc-index__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .doc-index__link {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: var(--r-xs);
    background: none;
    box-shadow: none;
    font-size: 0.9375rem;
    line-height: 1.35;
    white-space: normal;
  }
  .doc-index__link[aria-current="page"] { box-shadow: none; }
}
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .doc-index__link:hover { background: var(--c-hover-wash); box-shadow: none; }
  .doc-index__link[aria-current="page"]:hover { background: var(--c-tint); box-shadow: none; }
}
@media (min-width: 1200px) and (pointer: coarse) {
  .doc-index__link { min-height: 44px; }
}

@media (max-width: 899px) {
  .partner-apply__grid { grid-template-columns: minmax(0, 1fr); }
  .partner-apply__head { position: static; }
}

@media (max-width: 760px) {
  .partner-plans__grid { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
}

@media (max-width: 720px) {
  .partner-app-preview__shots { grid-template-columns: minmax(0, 260px); }
}

@media (max-width: 560px) {
  .partner-form__grid { grid-template-columns: minmax(0, 1fr); }
  .partner-form__actions { display: block; }
  .partner-form__submit { width: 100%; min-width: 0; }
  .p-hero__actions { display: grid; width: 100%; max-width: 22rem; }
  .p-hero__actions .btn { width: 100%; }
  .nf__actions { display: grid; width: 100%; max-width: 22rem; }
}

@media (max-width: 359px) {
  /* "12 ενότητες" → "12" on screen; the word stays for screen readers */
  .toc-sheet__unit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .channel { padding: var(--s-4); }
  .doc__steps li { padding-right: var(--s-4); }
  .social-tile { padding-right: var(--s-4); gap: var(--s-3); }
}

/* ============================== PRINT ================================== */
@media print {
  .doc::before, .partners::before, .nf::before { display: none; }
  .doc-index, .toc, .toc-sheet, .footer, .skip-link { display: none !important; }
  .doc__layout { display: block; padding-block: 0; }
  .doc__header, .doc__body, .doc__lede { max-width: none; }
  .doc__header { border-bottom-color: #999; }
  .doc__body { color: #000; font-size: 11pt; line-height: 1.5; }
  .doc__h2 { break-after: avoid; }
  .doc__anchor::after { content: none; }
  .doc__meta { padding: 0; background: none; }
  .doc__steps li, .doc__defs li { break-inside: avoid; }
  .channel, .social-tile { box-shadow: inset 0 0 0 1px #999; break-inside: avoid; }
}
