/* tidaltree design system. Calm, modern, credible. Mobile-first.
   Brand accent comes from --accent / --accent-ink, injected per-school in the layout. */

:root {
  --bg: #faf8f4;
  --bg-warm: #f3efe8;
  --surface: #ffffff;
  --surface-2: #f6f2ec;
  --ink: #211f1c;
  --ink-soft: #6c665d;
  --ink-faint: #a39c90;
  --line: #e8e2d7;
  --line-strong: #ddd5c8;

  --accent: #2f6f6a;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --accent-tint: color-mix(in srgb, var(--accent) 16%, var(--surface));

  --dot-not_started: #cfc8bb;
  --dot-started: #cf9a45;
  --dot-completed: #5d9e76;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(33, 31, 28, .04), 0 1px 3px rgba(33, 31, 28, .04);
  --shadow-md: 0 6px 24px rgba(33, 31, 28, .07);
  --shadow-lg: 0 18px 50px rgba(33, 31, 28, .10);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 60ch;
}

* { box-sizing: border-box; }
/* The hidden attribute must win over component display rules (.btn, .pill...). */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.012em; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

.muted { color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ---------- Layout shells ---------- */
.page {
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 5rem;
}
.page--narrow { max-width: 640px; }
.page--wide { max-width: 1040px; }

.page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.page__title { font-size: 1.6rem; font-weight: 700; }
.page__sub { color: var(--ink-soft); margin-top: .35rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .8rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
/* Hover only deepens the fill a little. No lift, no glow. */
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--btn-bg) 90%, var(--ink)); }
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  border-color: transparent;
}
.btn--ghost { background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }

.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.4rem; font-size: 1.02rem; }
.btn--sm { padding: .5rem .8rem; font-size: .85rem; }

/* ---------- Cards & panels ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .9rem; }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 4.6rem; left: 50%; transform: translateX(-50%); z-index: 50; width: min(92%, 560px); display: grid; gap: .5rem; }
.flash {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--surface);
  animation: flash-in .25s ease;
}
.flash--notice { border-color: color-mix(in srgb, var(--dot-completed) 40%, var(--line)); background: color-mix(in srgb, var(--dot-completed) 10%, var(--surface)); color: #2f6243; }
.flash--alert { border-color: #e3b4ab; background: #fbece8; color: #99412f; }
.flash--dev { position: relative; margin: .6rem auto 0; width: min(92%, 560px); background: #1f2430; color: #e7ecf5; border: none; }
.flash--dev a { color: #9ec1ff; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field__label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field__hint { font-size: .82rem; color: var(--ink-soft); }

.field__hint--center { text-align: center; }
.input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input--area { resize: vertical; line-height: 1.55; min-height: 7rem; }
.input--file { padding: .6rem; background: var(--surface-2); }

/* ---------- Auth / centered shells ---------- */
.shell--auth, .shell--marketing { background: var(--bg-warm); }
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1.15rem;
  position: relative;
  overflow: hidden;
}
.auth__card { width: 100%; max-width: 430px; position: relative; z-index: 1; border-radius: var(--radius-lg); padding: 2rem 1.75rem; box-shadow: var(--shadow-lg); }
.auth__title { font-size: 1.55rem; font-weight: 700; margin: .25rem 0 .6rem; }
.auth__lede { color: var(--ink-soft); margin-bottom: 1.4rem; }
.auth__foot { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--ink-soft); }

/* Soft gradient mesh (atmosphere only, behind cards) */
.auth__mesh, .marketing__mesh { position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .8; }
.auth__mesh::before, .auth__mesh::after, .marketing__mesh::before, .marketing__mesh::after {
  content: ""; position: absolute; border-radius: 50%;
}
.auth__mesh::before, .marketing__mesh::before {
  width: 46vmax; height: 46vmax; top: -8%; right: -6%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
}
.auth__mesh::after, .marketing__mesh::after {
  width: 40vmax; height: 40vmax; bottom: -10%; left: -8%;
  background: radial-gradient(circle at 60% 40%, #e9c9a4aa, transparent 62%);
}

.brandmark { margin-bottom: 1.4rem; }
.brandmark__name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brandmark__logo { max-height: 44px; max-width: 180px; object-fit: contain; }

/* ---------- Welcome / info ---------- */
.welcome { padding-top: .5rem; }
.welcome__title { font-size: 1.75rem; font-weight: 700; margin: .25rem 0 .75rem; }
.welcome__lede { color: var(--ink-soft); font-size: 1.05rem; max-width: var(--measure); }

/* Warm welcome beats. Narrative blocks, not feature cards. */

.privacy-note {
  display: flex; align-items: center; gap: .5rem;
  color: var(--ink-soft); font-size: .85rem; margin-top: 1.25rem;
}
.privacy-note svg { color: var(--accent); flex: none; }
.privacy-note--center { justify-content: center; text-align: center; }

/* ---------- App bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.15rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.appbar__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.appbar__brand:hover { text-decoration: none; }
.appbar__name { font-size: 1.1rem; letter-spacing: -0.02em; }
.appbar__logo { max-height: 30px; max-width: 140px; object-fit: contain; }
.appbar__tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .5rem; }

.appbar__nav { display: flex; align-items: center; gap: .25rem; }
.navlink { font-size: .9rem; font-weight: 500; color: var(--ink-soft); padding: .5rem .7rem; border-radius: var(--radius-sm); border: none; background: none; cursor: pointer; font-family: inherit; }
.navlink:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.navlink.is-active { color: var(--accent); background: var(--accent-soft); }
.navlink--button { color: var(--ink-soft); }

/* menu (graduate) */
.menu { position: relative; }
.menu__btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; }
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn:hover { background: var(--surface-2); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + .4rem);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .4rem;
  display: grid;
  z-index: 30;
}
.menu__item { display: block; width: 100%; text-align: left; padding: .65rem .7rem; border-radius: var(--radius-sm); color: var(--ink); font-size: .92rem; background: none; border: none; cursor: pointer; font-family: inherit; }
.menu__item:hover { background: var(--surface-2); text-decoration: none; }
.menu__item--button { color: var(--ink-soft); }
.menu__sep { height: 1px; background: var(--line); margin: .3rem .2rem; }

/* ---------- Status dot ---------- */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--dot-not_started); flex: none; }
.dot--not_started { background: var(--dot-not_started); }

.dot--completed { background: var(--dot-completed); }

/* ---------- Back link and panels ---------- */
.back { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-soft); font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.back:hover { color: var(--ink); text-decoration: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.panel__title { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }

/* ---------- Admin tables ---------- */
.shell--admin { background: var(--bg); }
.empty { text-align: center; display: grid; gap: .75rem; place-items: center; padding: 2.5rem 1.5rem; }
.empty h2 { font-size: 1.2rem; }
.empty p { color: var(--ink-soft); max-width: 40ch; }

.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 600; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }
.table__action { text-align: right; }
.link-strong { font-weight: 600; color: var(--ink); }
.link-strong:hover { color: var(--accent); }

.pill { font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.pill--paid { color: #2f6243; background: color-mix(in srgb, var(--dot-completed) 16%, var(--surface)); }
.pill--pending { color: #7a5616; background: color-mix(in srgb, var(--dot-started) 16%, var(--surface)); }

.quote { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.1rem 0; display: grid; gap: .5rem; }
.quote__row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-soft); }
.quote__row--total { border-top: 1px solid var(--line); padding-top: .55rem; font-size: 1.05rem; color: var(--ink); }
.quote__row--total strong { font-weight: 700; }
.pay-card { margin-bottom: 1.5rem; }
.pay-card p { color: var(--ink-soft); }

.table--progress td, .table--progress th { padding: .7rem .7rem; }
.table-scroll { overflow-x: auto; }
.th-mod, .td-mod { text-align: center; }
.td-email { font-weight: 500; }

.legend { display: flex; gap: 1rem; align-items: center; font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; flex-wrap: wrap; }
.legend .dot { margin-right: .3rem; }

.color-row { display: flex; align-items: center; gap: .75rem; }
.color-input { width: 56px; height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: none; cursor: pointer; }
.color-code { font-size: .85rem; color: var(--ink-soft); }

.logo-preview__img { max-height: 40px; max-width: 160px; object-fit: contain; }

/* ---------- Marketing ---------- */
.marketing { position: relative; min-height: 100dvh; overflow: hidden; padding: 1.15rem; }
.marketing__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto 1rem; padding: .5rem 0; }
.hero { position: relative; z-index: 1; max-width: 720px; margin: 3rem auto 2.5rem; text-align: center; }
.hero__title { font-size: clamp(2rem, 7vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero__lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 36rem; margin: 0 auto 1.75rem; }
.hero__cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero__offer { margin-top: 1rem; font-size: .95rem; }
.hero__offer s { color: var(--ink-faint); margin: 0 .15rem; }
.hero__trust { color: var(--ink-faint); font-size: .85rem; margin-top: 1rem; }

.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.25rem; }

/* Benefit cards (replace generic feature grid) */
.benefits { position: relative; z-index: 1; max-width: 980px; margin: 1.5rem auto 2.25rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
/* One line under the three parts for what sits outside them. */
.benefits-plus { position: relative; z-index: 1; max-width: 980px; margin: -1rem auto 2.25rem; padding: 0 1rem; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.benefit { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(6px); position: relative; }
/* Step number and the modules it covers, on one line above the outcome. */
.benefit__step {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink-soft); font-size: .85rem; font-weight: 500; margin-bottom: .9rem;
}
.benefit__step span {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .95rem; line-height: 1;
}
.benefit__title { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; margin-bottom: .6rem; }
.benefit p { color: var(--ink-soft); font-size: .96rem; }
/* What you walk away with: the part that sells. */
.benefit__gets {
  list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid var(--line); display: grid; gap: .45rem;
}
.benefit__gets li {
  position: relative; padding-left: 1.6rem; font-size: .94rem; font-weight: 500; color: var(--ink);
}
.benefit__gets li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6f6a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .65rem no-repeat;
}
.benefit em { font-style: normal; color: var(--ink); font-weight: 500; }

/* How it works */
.howitworks { position: relative; z-index: 1; max-width: 980px; margin: 0 auto 2.25rem; padding: 1.75rem 1.5rem; }
.howitworks__steps { list-style: none; counter-reset: how; padding: 0; margin: 0; display: grid; gap: 1rem; }
.howitworks__steps li { counter-increment: how; padding-left: 3rem; position: relative; }
.howitworks__steps li::before {
  content: counter(how);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: .95rem;
}
.howitworks__steps strong { display: block; font-size: 1.02rem; }
.howitworks__steps span { color: var(--ink-soft); font-size: .95rem; }

/* FAQ */
.faq { position: relative; z-index: 1; max-width: 720px; margin: 0 auto 2rem; padding: 0 .25rem; }
.faq__list { margin: 0; padding: 0; display: grid; gap: .5rem; }
.faq__item { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; backdrop-filter: blur(6px); }
.faq__item { padding: 0; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem; position: relative;
  font-weight: 600; border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq__item p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--ink-soft); font-size: .95rem; }
.faq__more { margin-top: 1rem; text-align: center; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* Closer */
.closer { position: relative; z-index: 1; max-width: 720px; margin: 0 auto 2.5rem; text-align: center; padding: 1rem; }
.closer__title { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.25rem; }

.marketing__foot { position: relative; z-index: 1; text-align: center; padding: 2rem 1rem 2rem; font-size: .88rem; color: var(--ink-faint); }
.marketing__foot a { color: var(--ink-soft); }

/* ---------- Non-goals ---------- */
.nongoals { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.nongoal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.nongoal__title { font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.nongoal__note { font-size: .9rem; color: var(--ink-soft); }

/* Bigger, warmer success treatment used on the post-purchase page. */
.auth__card--success { max-width: 480px; padding: 2.5rem 1.85rem; text-align: left; position: relative; }
.success-bloom {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.4rem;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 32%, var(--surface)), var(--accent-soft));
  color: var(--accent);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: bloom-in .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes bloom-in { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.auth__title--xl { font-size: 1.85rem; line-height: 1.15; text-align: center; }
.auth__card--success .auth__lede { text-align: center; }
.auth__card--success .eyebrow { text-align: center; }

/* Prose blocks (templates). */
.body-prose { color: var(--ink); line-height: 1.65; }
.body-prose p { margin: 0 0 .85rem; }
.body-prose p:last-child { margin-bottom: 0; }
.body-prose ul, .body-prose ol { margin: .25rem 0 .9rem; padding-left: 1.25rem; }
.body-prose ul li, .body-prose ol li { margin: .15rem 0; }

.small { font-size: .85rem; }

/* Page link (Promotion) */
.page-url { padding: .85rem 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; word-break: break-all; margin-bottom: 1rem; }

/* ---------- Autosave indicator ---------- */
.save-indicator { font-size: .85rem; color: var(--ink-soft); opacity: 0; transition: opacity .25s ease; min-width: 8ch; }
.save-indicator.is-visible { opacity: 1; }

/* ---------- Dev-only cohort invite links ---------- */
.dev-card { border-style: dashed; background: var(--surface-2); }
.dev-links { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.dev-links li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dev-links__email { font-size: .9rem; font-weight: 500; word-break: break-all; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .page { padding: 1.75rem 1.5rem 5rem; }
  
  .benefits { grid-template-columns: repeat(3, 1fr); }
  
  .howitworks__steps { grid-template-columns: repeat(3, 1fr); }
  .hero { margin-top: 4.5rem; }
}

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

/* Legal pages and footer links */
.legalbar { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: center; margin-top: 1.25rem; font-size: .85rem; }
.legalbar a { color: var(--ink-soft); }
.legal h2 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.1rem; display: grid; gap: .4rem; }
.legal .welcome__lede { margin-bottom: 1rem; }

/* Consent checkbox row */
.field--check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.field--check input { margin-top: .2rem; flex: 0 0 auto; }

.page-actions { display: flex; gap: .5rem; margin-bottom: .75rem; }

/* Own website (Promotion). */
.website-form { display: flex; gap: .5rem; }
.website-form .input { flex: 1; min-width: 0; }
.website-switch { margin-top: .85rem; }
.site-checks { list-style: none; padding: 0; margin: 0; display: grid; }
.site-check { padding: .85rem 0; border-top: 1px solid var(--line); }
.site-check:first-child { border-top: 0; padding-top: 0; }
.site-check:last-child { padding-bottom: 0; }
.site-check__label { display: flex; gap: .6rem; align-items: center; font-weight: 600; cursor: pointer; }
.site-check__label input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.site-check__copy { display: flex; gap: .6rem; align-items: flex-start; margin: .45rem 0 0 1.7rem; }
.site-check__text { flex: 1; padding: .55rem .75rem; background: var(--surface-2); border-radius: var(--radius-sm); font-size: .9rem; overflow-wrap: anywhere; }
.site-check__missing { margin: .35rem 0 0 1.7rem; font-size: .88rem; }

.page-actions .btn--primary { flex: 1; }

/* tidaltree wordmark: the mark plus the name in the serif. */
.wordmark { display: inline-flex; align-items: center; gap: .55rem; }
.wordmark__mark { width: 28px; height: 28px; border-radius: 7px; display: block; }
.wordmark__name { font-weight: 700; font-size: 1.2rem; line-height: 1; letter-spacing: -.025em; color: var(--ink); }
.wordmark-link, .wordmark-link:hover { text-decoration: none; }
.auth .wordmark { justify-content: center; }

/* People · Package · Promotion: always in the bar, tighter on phones. */
.appbar__links { display: flex; align-items: center; gap: .1rem; margin-left: auto; margin-right: .25rem; }
@media (max-width: 420px) { .appbar__links .navlink { padding: .45rem .5rem; font-size: .85rem; } }
.menu__who { padding: .5rem .7rem .3rem; font-size: .8rem; color: var(--ink-faint); overflow-wrap: anywhere; }
.menu__toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.menu__state { font-size: .78rem; font-weight: 600; color: var(--ink-faint); }
.menu__state.is-on { color: var(--accent); }

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

.currency-switch { margin: -.25rem 0 1rem; }
