/* ===========================================================================
   DrAllam — design system
   ---------------------------------------------------------------------------
   Reading this as: trust-first consumer booking for Egyptian students, calm
   editorial-modern, one warm accent against deep pine ink.

   Rules this file enforces:
   - ONE accent (terracotta). Everything else is pine/ink/sand neutrals.
   - ONE radius scale: 4px (inputs/tags) / 10px (cards) / 999px (pills only).
   - Light + dark from the same tokens, both tuned for WCAG AA.
   - Motion only on transform/opacity, all of it disabled under
     prefers-reduced-motion.
   =========================================================================== */

:root {
  --ink: #17211d;
  --ink-soft: #2b3a33;
  --pine: #1d4d3f;
  --pine-deep: #14352c;
  --sand: #f7f4ee;
  --sand-2: #efeae0;
  --line: #ddd5c7;
  --line-soft: #e9e3d8;
  --muted: #4b574f;
  --muted-2: #5f6b64;
  --accent: #b4491f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e6de;
  --ok: #1f6b4f;
  --ok-soft: #e2efe8;
  --warn: #8a5a00;
  --warn-soft: #f7ecd6;
  --bad: #a32b2b;
  --bad-soft: #f8e2e0;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --shadow-sm: 0 1px 2px rgba(23, 33, 29, .06);
  --shadow: 0 2px 4px rgba(23, 33, 29, .05), 0 12px 28px -12px rgba(23, 33, 29, .18);
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --max: 1080px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #efeae1;
    --ink-soft: #cfc8bc;
    --pine: #7fb8a3;
    --pine-deep: #a9d4c2;
    --sand: #121614;
    --sand-2: #1a1f1c;
    --line: #2c3430;
    --line-soft: #242b27;
    --muted: #a8b2aa;
    --muted-2: #929d95;
    --accent: #e8834f;
    --accent-ink: #1a1207;
    --accent-soft: #33231a;
    --ok: #74c9a3;
    --ok-soft: #1b2c25;
    --warn: #e0b365;
    --warn-soft: #2e2717;
    --bad: #e88a86;
    --bad-soft: #33201f;
    --surface: #171c19;
    --surface-2: #1c221e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--sand);
  color: var(--ink);
  font-family: "Söhne", "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  /* One paper-grain wash, fixed and non-interactive so it never repaints on
     scroll. Sits under all content, above the page background. */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 0);
  background-size: 4px 4px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.022em; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ------------------------------------------------------------------ layout */

.shell { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}
.wrap-wide { max-width: 1240px; }

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}
.nav-wide { max-width: 1240px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  font-weight: 680;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 27px; height: 27px; color: var(--pine); flex: none; }
.brand-sub {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-left: 9px;
  margin-left: 1px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: .9rem;
  min-width: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--sand-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/*
 * Below the tablet breakpoint the link row cannot fit beside the wordmark, so
 * hide the secondary links and keep only the action the page exists for.
 * Without this the nav overflows the viewport and the page scrolls sideways.
 */
@media (max-width: 620px) {
  .nav { height: auto; }
  .nav-inner { flex-wrap: wrap; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .nav-links { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 9px; font-size: .85rem; }
  .brand-sub { display: none; }
  .clock-chip { font-size: .76rem; padding: 4px 9px; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: .93rem;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  transition: transform .08s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.07); color: var(--btn-fg); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .5; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover:not(:disabled) { background: var(--sand-2); filter: none; }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--muted); padding: 7px 10px; }
.btn-quiet:hover:not(:disabled) { --btn-fg: var(--ink); background: var(--sand-2); filter: none; }
.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-btn {
  font: inherit;
  font-size: .9rem;
  background: none;
  border: 0;
  padding: 7px 11px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--r-sm);
}
.link-btn:hover { color: var(--ink); background: var(--sand-2); }

/* ------------------------------------------------------------------- forms */

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label {
  font-size: .84rem;
  font-weight: 620;
  color: var(--ink-soft);
  letter-spacing: -.005em;
}
.field .hint { font-size: .79rem; color: var(--muted); line-height: 1.45; }
.field .err { font-size: .82rem; color: var(--bad); font-weight: 550; }

input, select, textarea {
  font: inherit;
  font-size: .95rem;
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 16%, transparent);
}
input::placeholder { color: var(--muted-2); opacity: 1; }
input[type="checkbox"] { width: auto; accent-color: var(--pine); }

.input-group { display: flex; align-items: stretch; }
.input-group .prefix {
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: .9rem;
  color: var(--muted);
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  white-space: nowrap;
}
.input-group input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .split { grid-template-columns: 1fr; gap: 0; } }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.6vw, 26px);
}
.card-flat { background: var(--surface-2); }
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-head h2 { font-size: 1.06rem; }

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 22px 0; }

/* -------------------------------------------------------------------- type */

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .78rem; }
.mono { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: .72rem;
  font-weight: 680;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: 1.03rem; line-height: 1.62; color: var(--muted); max-width: 62ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------- flash */

.flash {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  animation: flash-in .22s cubic-bezier(.16, 1, .3, 1);
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.flash strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.flash p { font-size: .88rem; color: var(--muted); }
.flash[data-tone="ok"] { border-left-color: var(--ok); background: var(--ok-soft); }
.flash[data-tone="ok"] strong { color: var(--ok); }
.flash[data-tone="bad"] { border-left-color: var(--bad); background: var(--bad-soft); }
.flash[data-tone="bad"] strong { color: var(--bad); }
.flash[data-tone="warn"] { border-left-color: var(--warn); background: var(--warn-soft); }
.flash[data-tone="warn"] strong { color: var(--warn); }

/* -------------------------------------------------------------------- pill */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 660;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill[data-tone="open"] { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.pill[data-tone="warn"] { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.pill[data-tone="bad"] { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none;
}
.live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- clock */

.clock-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  font-size: .84rem;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  white-space: nowrap;
}
.clock-chip b { color: var(--ink); font-weight: 620; }

/* -------------------------------------------------------------- slot list */

.slots { display: grid; gap: 10px; }

.slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.slot[data-state="open"] { border-color: color-mix(in srgb, var(--pine) 32%, var(--line)); }
.slot[data-state="open"]:hover { box-shadow: var(--shadow-sm); }
.slot[data-state="full"], .slot[data-state="closed"], .slot[data-state="cancelled"] { background: var(--surface-2); }
.slot[data-state="cancelled"] { opacity: .62; }

.slot-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.slot-time {
  font-size: 1.16rem;
  font-weight: 650;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.slot-label {
  font-size: .82rem;
  color: var(--muted);
  padding: 1px 7px;
  border-radius: var(--r-sm);
  background: var(--sand-2);
}
.slot-sub {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: .84rem;
  color: var(--muted);
  margin-top: 2px;
}
.slot-sub .countdown { color: var(--warn); font-weight: 600; font-variant-numeric: tabular-nums; }

.slot-actions { display: flex; align-items: center; gap: 14px; }
.seats { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.seats b { display: block; font-size: 1.02rem; font-weight: 660; letter-spacing: -.02em; }
.seats span { font-size: .76rem; color: var(--muted); }

.capacity {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--line-soft);
  overflow: hidden;
  margin-top: 8px;
}
.capacity > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pine);
  transition: width .35s cubic-bezier(.16, 1, .3, 1);
}
.capacity > i[data-hot="1"] { background: var(--warn); }
.capacity > i[data-full="1"] { background: var(--bad); }

@media (max-width: 560px) {
  .slot { grid-template-columns: 1fr; }
  .slot-actions { justify-content: space-between; }
  .seats { text-align: left; }
  .slot-actions .btn { flex: 1; }
}

/* ------------------------------------------------------------------ tables */

.table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.table th {
  text-align: left;
  font-size: .72rem;
  font-weight: 660;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 10px 9px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }

/* ------------------------------------------------------------------- stats */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--surface); padding: 13px 15px; }
.stat b { display: block; font-size: 1.42rem; font-weight: 660; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat span { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.stat[data-tone="bad"] b { color: var(--bad); }
.stat[data-tone="ok"] b { color: var(--ok); }

/* ------------------------------------------------------------------ empty */

.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .91rem; }
.empty-icon { margin: 0 auto 12px; width: 40px; height: 40px; color: var(--line); }

/* -------------------------------------------------------------------- auth */

.auth-shell {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 40px 20px 64px;
}
.auth { width: 100%; max-width: 420px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .mark { width: 46px; height: 46px; color: var(--pine); margin-bottom: 14px; }
.auth-head h1 { font-size: 1.5rem; margin-bottom: 5px; }
.auth-head p { color: var(--muted); font-size: .91rem; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin-bottom: 22px;
  background: var(--sand-2);
  border-radius: var(--r-sm);
}
.tabs button {
  font: inherit;
  font-size: .89rem;
  font-weight: 600;
  padding: 8px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-foot { margin-top: 18px; text-align: center; font-size: .87rem; color: var(--muted); }

/* ------------------------------------------------------------------- admin */

.admin { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) {
  .admin { grid-template-columns: 350px minmax(0, 1fr); align-items: start; }
}
.rail { display: grid; gap: 18px; }

.course-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: .91rem;
  font-weight: 550;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.course-btn:hover { border-color: var(--pine); }
.course-btn[aria-current="true"] {
  border-color: var(--pine);
  background: color-mix(in srgb, var(--pine) 7%, var(--surface));
  font-weight: 620;
}
.course-btn .meta { font-size: .76rem; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }

.invite {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.invite code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .79rem;
  color: var(--muted);
}

details.panel { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 13px; }
details.panel > summary {
  cursor: pointer;
  padding: 11px 0;
  font-size: .87rem;
  color: var(--muted);
  font-weight: 550;
  list-style-position: odd;
}
details.panel[open] > summary { color: var(--ink); border-bottom: 1px solid var(--line-soft); }
details.panel .panel-body { padding: 16px 0 4px; }

/* -------------------------------------------------------------- how-to page */

.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(32px, 5vw, 52px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 52px; } }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(.98rem, 1.5vw, 1.08rem); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-art {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--pine-deep), var(--pine));
  padding: 26px;
  color: #f2f6f3;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 68%);
  pointer-events: none;
}
.hero-art .art-eyebrow {
  font-size: .66rem; font-weight: 680; letter-spacing: .15em;
  text-transform: uppercase; opacity: .68; margin-bottom: 16px;
}
.seat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-variant-numeric: tabular-nums;
}
.seat-row:last-child { border-bottom: 0; }
.seat-row .t { font-weight: 620; font-size: 1rem; }
.seat-row .s { font-size: .78rem; opacity: .72; }
.seat-row .badge {
  font-size: .68rem; font-weight: 680; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16);
}
.seat-row .badge[data-full="1"] { background: rgba(255,255,255,.08); opacity: .6; }

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.step { background: var(--surface); padding: clamp(18px, 2.6vw, 26px); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step-num {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-2); color: var(--pine);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1rem; margin-bottom: 5px; }
.step p { font-size: .9rem; color: var(--muted); max-width: 58ch; }
.step .note {
  margin-top: 10px; font-size: .84rem;
  padding-left: 12px; border-left: 2px solid var(--accent);
  color: var(--ink-soft);
}

.section { padding: clamp(34px, 5vw, 56px) 0; }
.section-head { margin-bottom: 26px; max-width: 60ch; }
.section-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: .96rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 570; font-size: .96rem;
  display: flex; justify-content: space-between; gap: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 16px; color: var(--muted); font-size: .9rem; max-width: 68ch; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  font-size: .84rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.footer a { color: var(--muted); }

/* ---------------------------------------------------------------- utilities */

.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
[hidden] { display: none !important; }

.spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--sand-2) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
