/* ---- tokens.css ---- */
/* ==========================================================================
   Scrolu — design tokens
   Source: website/WEBSITE_SOURCE_OF_TRUTH.md §2.3 (colour), §2.4 (type),
   §2.5 (spacing, radii, control heights, shadows), §6.2 (website mapping).

   Every colour below is a verified Scrolu app token. Two derived values are
   marked: they exist only to keep text contrast legal and are documented in
   website/README.md.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- Light surfaces --------------------------------------------------- */
  --canvas: #e0e5ec; /* ScroluColors.background / .surface */
  --canvas-sunken: #d6dce5; /* ScroluColors.surfaceSunken */
  --plate: #cbd4e1; /* ScroluColors.imagePlate */
  --white: #ffffff;

  /* --- Ink -------------------------------------------------------------- */
  --ink: #2b3a4a; /* ScroluColors.accent / .textPrimary */
  --ink-soft: #5a6b7c; /* ScroluColors.textSecondary (on light surfaces) */
  --ink-soft-readable: #4e6072; /* derived: same hue, 6% darker, AA on canvas */
  --ink-faint: rgba(43, 58, 74, 0.54); /* ScroluColors.textTertiary */
  --ink-ghost: rgba(43, 58, 74, 0.34);

  /* --- Lines ------------------------------------------------------------ */
  --hairline: rgba(43, 58, 74, 0.08); /* ScroluColors.divider */
  --border: rgba(43, 58, 74, 0.12); /* ScroluColors.borderSubtle */
  --border-strong: rgba(43, 58, 74, 0.2);

  /* --- Accent ----------------------------------------------------------- */
  --coral: #f08080; /* brand coral — dark-theme accent, marks, rules */
  --on-coral: #241214; /* ScroluColors.textOnAccent (dark theme) */

  /* --- Neumorphic depth (light from the top-left) ----------------------- */
  --shade: #a3b1c6; /* ScroluColors.shadowDark */
  --highlight: #ffffff; /* ScroluColors.shadowLight */

  --raised: -5px -5px 12px var(--highlight), 6px 6px 12px var(--shade);
  --raised-sm: -3px -3px 6px var(--highlight), 3px 3px 6px var(--shade);
  --inset: inset 2px 2px 4px var(--shade), inset -2px -2px 4px var(--highlight);
  /* Popup treatment: the raised pair plus the documented drop shadow. */
  --popup: -5px -5px 12px var(--highlight), 6px 6px 12px var(--shade),
    0 12px 26px rgba(0, 0, 0, 0.18);

  /* --- Dark field (app dark theme) -------------------------------------- */
  --night: #14181e;
  --night-raised: #1b212a;
  --night-line: #2b3540;
  --night-text: #edf1f5;
  --night-soft: #a7b2be;
  --night-faint: #7a8695;

  /* --- Radii (square-leaning editorial geometry, never pills) ----------- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* --- Spacing: the app's 4 pt grid, scaled for a page ------------------ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* --- Controls --------------------------------------------------------- */
  --control-sm: 36px;
  --control-md: 44px;
  --control-lg: 52px;

  /* --- Type ------------------------------------------------------------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --text-body: 1.0625rem; /* 17px — the legacy public pages' body size */
  --text-body-lg: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-label: 0.75rem;

  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-body: 1.65;

  --measure: 46rem; /* the legal reading measure */
  --measure-wide: 62ch;

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --speed: 170ms;

  /* --- Layout ----------------------------------------------------------- */
  --page-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-height: 76px;
  --section-y: clamp(3.25rem, 7vw, 6rem);
}

/* The site sets no cookie, so it never needs a consent banner, and it has no
   dark mode: the app's light theme is the reading surface of the website. */

/* ---- base.css ---- */
/* ==========================================================================
   Scrolu — reset and base elements
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.012em;
  text-wrap: balance;
  /* At a large reader text size a long word can be wider than a phone column.
     Breaking it is preferable to letting the headline push the page sideways. */
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.15rem, 1.55rem + 2.7vw, 3.65rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.024em;
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.35vw, 2.4rem);
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.15em;
}

li + li {
  margin-top: 0.35em;
}

a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color var(--speed) var(--ease),
    text-decoration-color var(--speed) var(--ease);
}

a:hover {
  text-decoration-color: var(--ink);
}

/* An email address is one unbreakable word. At a large reader text size it can
   be wider than the column that holds it, which would push the card — and the
   mobile layout viewport — sideways. Allow it to break anywhere. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs);
  background: var(--canvas-sunken);
  color: var(--ink);
  overflow-wrap: anywhere;
}

button {
  font: inherit;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.site-footer :focus-visible,
.band--night :focus-visible {
  outline-color: var(--coral);
}

::selection {
  background: rgba(240, 128, 128, 0.35);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- layout.css ---- */
/* ==========================================================================
   Scrolu — page shell: container, header, navigation
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--measure) + (var(--gutter) * 2));
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--coral);
}

.site-main {
  display: block;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section--hairline {
  border-top: 1px solid var(--hairline);
}

/* ---- header.css ---- */
/* ==========================================================================
   Scrolu — masthead and navigation
   Engraved wordmark, one mark, coral underline for the current page.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

/* The app's masthead wordmark: system font, w600, +1.2 letter-spacing,
   engraved with a shade above and a highlight below. */
.brand__wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 -1px 0 rgba(43, 58, 74, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li + li {
  margin-top: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink-soft-readable);
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transform: scaleX(0.4);
  transform-origin: left center;
  transition: transform var(--speed) var(--ease),
    background-color var(--speed) var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  background: var(--coral);
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
}


/* ------------------------------------------------------------ mobile nav -- */

.mobile-nav {
  display: none;
}

.mobile-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-md);
  height: var(--control-md);
  border-radius: var(--radius-md);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  background: var(--canvas);
  box-shadow: var(--raised-sm);
}

.mobile-nav__toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav__toggle:hover {
  color: var(--ink);
}

.mobile-nav[open] .mobile-nav__toggle {
  box-shadow: var(--inset);
}

.mobile-nav__icon--close {
  display: none;
}

.mobile-nav__toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav[open] .mobile-nav__icon--close {
  display: block;
}

.mobile-nav[open] .mobile-nav__icon--open {
  display: none;
}

.mobile-nav__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--space-5) var(--gutter) var(--space-6);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--popup);
  /* The panel is positioned below a sticky header, so its lower edge cannot be
     scrolled into view: on a short viewport (a small phone, or any phone in
     landscape) the last links would be cut off. The panel therefore scrolls
     inside itself and never grows taller than the space under the header. */
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__list {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.mobile-nav__list li + li {
  margin-top: 0;
}

.mobile-nav__link {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav__link:hover {
  background: var(--canvas-sunken);
}

.mobile-nav__link[aria-current="page"] {
  background: var(--canvas-sunken);
  box-shadow: var(--inset);
  font-weight: 600;
}

.mobile-nav__group-label {
  margin: var(--space-4) 0 var(--space-2);
  padding-inline: 0.75rem;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

@media (max-width: 900px) {
  .nav,
  .site-header__actions {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .site-header__inner {
    gap: var(--space-4);
  }
}

/* ---- footer.css ---- */
/* ==========================================================================
   Scrolu — footer
   The app's dark theme (#14181E canvas, coral accent) used as the closing band.
   The mark is not placed on the dark field; the wordmark carries the brand.
   ========================================================================== */

.site-footer {
  background: var(--night);
  color: var(--night-soft);
  padding-block: clamp(2.75rem, 5vw, 4rem) var(--space-8);
  border-top: 1px solid var(--night-line);
}

.site-footer a {
  color: var(--night-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--night-line);
}

.site-footer__brand {
  max-width: 22rem;
}

.brand--footer .brand__wordmark {
  color: var(--night-text);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
}

.site-footer__desc {
  margin-top: var(--space-4);
  color: var(--night-soft);
  font-size: var(--text-small);
  line-height: 1.6;
}

.site-footer__meta {
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--night-faint);
}

.site-footer__heading {
  margin: 0 0 var(--space-4);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-text);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: var(--text-small);
}

.site-footer__list li + li {
  margin-top: 0;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--text-caption);
  color: var(--night-faint);
}

.site-footer__base p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- components.css ---- */
/* ==========================================================================
   Scrolu — components: type accents, buttons
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- type -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 var(--space-4);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  flex: 0 0 auto;
}

.lead {
  max-width: var(--measure-wide);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--ink-soft-readable);
  text-wrap: pretty;
}

.section-intro {
  max-width: var(--measure-wide);
}

.section-intro .lead {
  margin-top: var(--space-4);
}

.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-caption);
  color: var(--ink-soft-readable);
}

.meta-line::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--control-lg);
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: #22303e;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(240, 128, 128, 0.5);
}

.btn--surface {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--raised-sm);
}

.btn--surface:hover {
  box-shadow: var(--raised);
  transform: translateY(-1px);
}

.btn--surface:active {
  box-shadow: var(--inset);
  transform: translateY(0);
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.35rem;
  min-height: var(--control-md);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.btn--quiet:hover {
  text-decoration-color: var(--ink);
}

.btn--sm {
  min-height: var(--control-md);
  padding-inline: 1.1rem;
  font-size: var(--text-small);
}

/* The pending store action: a real disabled control, never a dead link. */
.btn--pending {
  background: var(--canvas-sunken);
  color: var(--ink-soft-readable);
  box-shadow: var(--inset);
  cursor: not-allowed;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* An icon placed directly inside a button (the store CTA) is sized here too, so
   the live call to action cannot render an oversized glyph. */
.btn > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/* --------------------------------------------------------------- cards -- */

.card {
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%);
  box-shadow: var(--raised);
  border: 1px solid var(--border);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--raised {
  background: var(--canvas);
}

.card--sunken {
  background: var(--canvas-sunken);
  box-shadow: var(--inset);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: var(--raised-sm);
  color: var(--ink);
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card__title {
  font-size: 1.075rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.card__body {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft-readable);
}

.card--interactive {
  transition: transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.card--interactive:hover {
  transform: translateY(-3px);
  box-shadow: -6px -6px 14px var(--highlight), 8px 8px 16px var(--shade);
}

/* --------------------------------------------------------------- grids -- */

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Grid and flex children default to `min-width: auto`, which lets an intrinsic
   image width push a phone layout sideways. Every item is allowed to shrink. */
.grid > * {
  min-width: 0;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- lists -- */

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  margin: 0;
  padding-left: 1.9rem;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft-readable);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--canvas-sunken);
  box-shadow: var(--inset);
  border: 1px solid var(--border);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.62em;
  width: 0.38rem;
  height: 0.2rem;
  border-left: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(-45deg);
}

.check-list strong {
  color: var(--ink);
}

/* -------------------------------------------------------------- callout -- */

.callout {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--canvas-sunken);
  box-shadow: var(--inset);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft-readable);
}

.callout > * + * {
  margin-top: var(--space-3);
}

.callout strong {
  color: var(--ink);
}

.callout--accent {
  position: relative;
  padding-left: calc(var(--space-6) + 0.35rem);
  background: var(--white);
  box-shadow: var(--raised-sm);
}

.callout--accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 3px;
  border-radius: 3px;
  background: var(--coral);
}

.callout__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

/* --------------------------------------------------------------- split -- */

.grid--split .callout {
  max-width: var(--measure-wide);
}

/* ------------------------------------------------------------ utilities -- */

.body-copy {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-soft-readable);
}

.bullet-list {
  margin: 0;
  padding-left: 1.1em;
}

.bullet-list li {
  margin: 0.4rem 0;
}

.bullet-list li::marker {
  color: var(--ink-soft-readable);
}

.quote {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card--link:hover .card__title {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.contact-card__note {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft-readable);
  max-width: 34rem;
}

/* ---- pages.css ---- */
/* ==========================================================================
   Scrolu — page patterns
   ========================================================================== */

/* ------------------------------------------------------------ page head -- */

.page-head {
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--hairline);
}

.page-head__lead {
  margin-top: var(--space-5);
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-caption);
  color: var(--ink-soft-readable);
}

.page-head__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-head__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--ink-ghost);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(2.75rem, 6vw, 5.5rem);
}

.hero__copy {
  max-width: 36rem;
}

.hero__title {
  margin-top: var(--space-2);
}

.hero__lead {
  margin-top: var(--space-5);
  max-width: 33rem;
}

.hero__actions {
  margin-top: var(--space-8);
}

.hero__note {
  margin-top: var(--space-6);
}

@media (max-width: 520px) {
  .hero__actions .btn {
    width: 100%;
  }
}

.hero__figure {
  margin: 0;
}

/* ------------------------------------------------------- story card art -- */

.story-figure {
  width: 100%;
}

.story {
  padding: clamp(0.75rem, 1.2vw, 1rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%);
  box-shadow: var(--raised);
  width: 100%;
  max-width: min(27rem, 100%);
  margin-inline: auto;
}

.story__plate {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--plate);
  aspect-ratio: 880 / 460;
}

.story__plate picture {
  display: block;
  height: 100%;
}

.story__plate img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__body {
  padding: var(--space-5) var(--space-3) var(--space-2);
}

.story__dateline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.story__dateline::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.story__headline {
  margin-top: var(--space-3);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.story__summary {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft-readable);
}

.story__source {
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--ink-soft-readable);
}

.story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: var(--space-4) var(--space-3) var(--space-2);
  list-style: none;
  border-top: 1px solid var(--border);
}

.story__actions li {
  margin: 0;
}

.story__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  box-shadow: var(--raised-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft-readable);
  white-space: nowrap;
}

.story__action svg {
  width: 15px;
  height: 15px;
}

.story__caption {
  width: 100%;
  max-width: min(27rem, 100%);
  margin: var(--space-5) auto 0;
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--ink-soft-readable);
  text-align: center;
}

/* ---------------------------------------------------------------- steps -- */

.step {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.step__number {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft-readable);
  font-variant-numeric: tabular-nums;
}

.step__number::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: var(--coral);
}

.step__title {
  margin-top: var(--space-4);
  font-size: 1.2rem;
  font-weight: 700;
}

.step__body {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  line-height: 1.62;
  color: var(--ink-soft-readable);
}

/* ----------------------------------------------------------- night band -- */

.band--night {
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.band--night h2,
.band--night h3 {
  color: var(--night-text);
}

.band--night .lead,
.band--night .eyebrow {
  color: var(--night-soft);
}

.band--night .card {
  background: var(--night-raised);
  box-shadow: none;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
}

.band--night .card__icon {
  background: var(--night);
  box-shadow: none;
  border: 1px solid var(--night-line);
  color: var(--coral);
}

.band--night .card__title {
  color: var(--night-text);
}

.band--night .card__body {
  color: var(--night-soft);
}

.band--night a {
  color: var(--night-text);
}

.band--night a:hover {
  color: var(--coral);
}

.band__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.band__links li {
  margin: 0;
}

.band__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.35rem;
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--night-line);
  transition: border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.band__links a:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.band__links a svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------- at a glance -- */

.glance {
  margin: 0;
  padding: 0;
}

.glance__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--border);
}

.glance__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.glance dt {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.glance dd {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.55;
  color: var(--ink);
}

@media (max-width: 520px) {
  .glance__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }
}

/* -------------------------------------------------------- download band -- */

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: var(--raised);
}

.download-panel__action {
  justify-self: end;
}

@media (max-width: 860px) {
  .download-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-panel__action {
    justify-self: stretch;
  }
}

.app-icon {
  width: clamp(72px, 12vw, 96px);
  height: auto;
}

/* ---------------------------------------------------------- contact bits -- */

.contact-card {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--white) 0%, var(--canvas) 100%);
  box-shadow: var(--raised);
}

.contact-card__address {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.62rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card__address:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.contact-card__address svg {
  width: 22px;
  height: 22px;
  color: var(--ink-soft-readable);
  flex: 0 0 auto;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--border);
}

.contact-row__label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.contact-row__value {
  font-size: var(--text-small);
  color: var(--ink);
}

/* ------------------------------------------------------------------ 404 -- */

.not-found {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.not-found__code {
  display: block;
  font-size: clamp(3.5rem, 2rem + 7vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 0 -2px 0 rgba(255, 255, 255, 0.85), 0 2px 0 var(--shade);
}

.not-found__title {
  margin-top: var(--space-6);
}

.link-cards {
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.link-cards li {
  margin: 0;
}

@media (max-width: 860px) {
  .link-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--raised-sm);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.link-card:hover {
  box-shadow: var(--raised);
  transform: translateY(-2px);
}

.link-card svg {
  width: 17px;
  height: 17px;
  color: var(--ink-soft-readable);
  flex: 0 0 auto;
}

/* ---- legal.css ---- */
/* ==========================================================================
   Scrolu — legal reading pages
   Long-form measure of 46rem, editorial numbering, one sticky contents rail.
   ========================================================================== */

.legal {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.legal__aside {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.legal__body {
  max-width: var(--measure);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink);
  /* A long word — "advertisements.", a code path, an address — must break
     instead of pushing the page sideways when a reader sets text to 200 %. It
     changes nothing at the default size: a word is broken only when it would
     otherwise overflow its line. */
  overflow-wrap: break-word;
}

@media (max-width: 980px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal__aside {
    position: static;
  }
}

/* ---------------------------------------------------------------- summary -- */

.legal-summary {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--canvas-sunken);
  box-shadow: var(--inset);
  margin-bottom: var(--space-8);
  overflow-wrap: break-word;
}

.legal-summary dl {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.legal-summary dt {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.legal-summary dd {
  margin: 0.15rem 0 0;
  font-size: var(--text-small);
  color: var(--ink);
}

.legal-summary p {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-small);
  line-height: 1.62;
  color: var(--ink-soft-readable);
}

.legal-summary p + p {
  margin-top: var(--space-3);
  padding-top: 0;
  border-top: 0;
}

/* -------------------------------------------------------------------- toc -- */

.toc {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--raised-sm);
}

.toc__title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 0.1rem;
}

.toc__list li {
  margin: 0;
  counter-increment: toc;
}

.toc__list a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-xs);
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--ink-soft-readable);
  text-decoration: none;
}

/* The number is generated content, so it is part of the link's readable text:
   it uses the same accessible tone as the link rather than the faint meta
   colour, which measures ≈3:1 on the canvas. */
.toc__list a::before {
  content: counter(toc) ".";
  color: var(--ink-soft-readable);
  font-variant-numeric: tabular-nums;
}

.toc__list a:hover {
  color: var(--ink);
  background: var(--canvas-sunken);
}

@media (max-width: 980px) {
  .toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem 0.75rem;
  }
}

@media (max-width: 560px) {
  .toc__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ prose -- */

.legal__body > section {
  margin: 0 0 var(--space-10);
}

.legal__body h2 {
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal__body h2 .number {
  margin-right: 0.45rem;
  color: var(--ink-soft-readable);
  font-variant-numeric: tabular-nums;
}

.legal__body h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.legal__body p {
  margin: 0 0 var(--space-4);
}

.legal__body ul,
.legal__body ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.2em;
}

.legal__body li {
  margin: 0.35rem 0;
}

.legal__body li::marker {
  color: var(--ink-soft-readable);
}

.legal__body li > ul,
.legal__body li > ol {
  margin: 0.4rem 0 0.5rem;
}

.legal__body a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.legal__body a:hover {
  text-decoration-color: var(--ink);
}

.legal__body .callout {
  margin: 0 0 var(--space-5);
}

.legal__body .callout p:last-child,
.legal__body .callout ul:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------- tables -- */

.table-wrap {
  margin: 0 0 var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal__body table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: var(--text-caption);
  line-height: 1.55;
}

.legal__body caption {
  padding: var(--space-4) var(--space-4) 0;
  text-align: left;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft-readable);
}

.legal__body th,
.legal__body td {
  padding: 0.7rem var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal__body thead th {
  background: var(--canvas-sunken);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal__body tbody tr:last-child th,
.legal__body tbody tr:last-child td {
  border-bottom: 0;
}

/* -------------------------------------------------------------- footnotes -- */

.legal-footer-note {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--ink-soft-readable);
}

.legal-footer-note p {
  margin: 0;
}

/* ------------------------------------------------ contact inside legal page -- */

.legal-contact {
  margin-top: var(--space-10);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--night-text);
}

.legal-contact h2 {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: 0;
  font-size: 1.15rem;
  color: var(--night-text);
}

.legal-contact p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--night-soft);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-contact a {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

@media print {
  .site-header,
  .site-footer,
  .legal__aside,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .legal {
    display: block;
    padding: 0;
  }

  .legal__body {
    max-width: none;
  }

  .legal-summary,
  .callout,
  .toc {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
  }

  .legal__body a {
    color: #000;
  }

  .legal-contact {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
  }

  .legal-contact h2,
  .legal-contact p,
  .legal-contact a {
    color: #000;
  }
}

/* ---- utilities.css ---- */
/* ==========================================================================
   Scrolu — single-purpose utilities
   Loaded last so a spacing class always wins over a component's own reset.
   ========================================================================== */

.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-10 {
  margin-top: var(--space-10);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.text-center {
  text-align: center;
}

.max-measure {
  max-width: var(--measure-wide);
}

