@import url('fonts.css');

/* ==========================================================================
   LuluBoo — website styles
   Palette, radii, shadow and type roles are taken from docs/PRODUCT.md §8,
   which is the app's own design system. Two web-only tokens are added for
   contrast (--text-2 and --accent-strong); see the comment on each.
   Light only, exactly like the app.
   ========================================================================== */

:root {
  /* --- palette (PRODUCT.md §8.1) --- */
  --accent:          #9A7DC5;
  --text:            #453A52;
  --text-soft:       #8B8396;
  --field:           #F2ECF8;
  --card-border:     #F8F5FA;
  --accent-soft:     #C9B6E4;
  --track:           #EAE3F2;
  --fill:            #B99BD8;
  --dot:             #DED5E8;
  --bg:              #FBF8FC;
  --peach:           #FBB3A3;
  --menu:            #878396;
  --menu-selected:   #DECAFB;
  --menu-unselected: #EAE3F2;
  --footnote:        #B2B2B2;
  --divider:         #A5A5A5;

  /* --- web-only, for WCAG AA at web body sizes ---
     The app's palette is light and soft, and two of its colours do not reach
     4.5:1 at the sizes web body copy is set in: #8B8396 on white is 3.65:1,
     and white on #9A7DC5 is 3.43:1. Text on this site therefore uses
     --text-2 (5.5:1) and button fills use --accent-strong (5.3:1). The two
     originals above stay declared because they are the app's palette and are
     still used for fills, rules and the phone mockup's own chrome. */
  --text-2:          #6E6579;
  --accent-strong:   #7A5CA8;
  --accent-deep:     #5E4682;

  /* --- shape (PRODUCT.md §8.3) --- */
  --r-field: 15px;
  --r-tile:  20px;
  --r-card:  25px;
  --r-panel: 32px;

  /* the app draws black-25%-2px-2px; at web card sizes that reads as a
     smudge, so the same direction is spread over a wider, softer falloff */
  --shadow-card: 0 2px 4px rgba(69, 58, 82, .05), 0 14px 34px rgba(69, 58, 82, .07);
  --shadow-lift: 0 4px 8px rgba(69, 58, 82, .06), 0 22px 48px rgba(69, 58, 82, .10);
  --shadow-app:  0 2px 2px rgba(0, 0, 0, .25); /* inside the phone mockup only */

  --font: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --measure: 1120px;
  --header-h: 68px;
}

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent-strong); text-decoration-color: color-mix(in srgb, var(--accent-strong) 35%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--menu-selected); color: var(--text); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: #fff; color: var(--accent-deep); font-weight: 600;
  padding: 12px 18px; border-radius: var(--r-field); box-shadow: var(--shadow-lift);
}
.skip-link:focus { top: 12px; }

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

/* ----------------------------------------------------------- typography -- */

.h-display { font-size: clamp(38px, 6.2vw, 62px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
.h-section { font-size: clamp(30px, 3.8vw, 42px); font-weight: 700; letter-spacing: -.028em; }
.h-card    { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

.lead      { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--text-2); }
.body-2    { color: var(--text-2); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 14px;
}
.footnote { font-size: 14px; line-height: 1.55; color: var(--text-2); }

.wordmark {
  font-weight: 700; letter-spacing: -1px; /* §8.4 */
  font-size: 25px; color: var(--text); text-decoration: none; display: inline-block;
}
.wordmark:hover { color: var(--accent-deep); }

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

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tint { background: #fff; }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { --grid-gap: clamp(20px, 2.6vw, 28px); display: grid; gap: var(--grid-gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
/* Five cards over three columns leave a two-card row. Flex is what lets that
   row centre itself; a grid would hang it to the left. */
.grid--centred { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--centred > * { flex: 1 1 290px; }
/* Three columns fit from here up, so cap each card at a third of the row -
   otherwise the two-card row draws wider cards than the three-card one. */
@media (min-width: 1000px) {
  .grid--centred > * { max-width: calc((100% - 2 * var(--grid-gap)) / 3); }
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header[data-scrolled] {
  border-bottom-color: var(--card-border);
  background: color-mix(in srgb, #fff 88%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 9px 13px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--track); }
.site-nav a[aria-current="page"] { color: var(--accent-deep); background: var(--field); }

.nav-toggle { display: none; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  border: 0; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
}
.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 20px rgba(122, 92, 168, .28); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.btn--ghost:hover { background: var(--field); transform: translateY(-1px); }

/* the App Store badge, deliberately inert until an App Store ID exists */
.store-badge {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 12px 24px 12px 20px; border-radius: 999px;
  background: var(--text); color: #fff; min-height: 60px;
}
.store-badge[aria-disabled="true"] { opacity: .92; cursor: default; }
.store-badge svg { flex: none; }
.store-badge .sb-lines { display: grid; text-align: left; line-height: 1.15; }
.store-badge .sb-top { font-size: 12px; font-weight: 500; opacity: .78; }
.store-badge .sb-main { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--field); color: var(--accent-deep);
  font-size: 14px; font-weight: 600;
}
.pill-tag--onpeach { background: rgba(255, 255, 255, .62); color: #7A4638; }

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

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 32px);
}
.card h3 { margin-bottom: 10px; }
.card p  { color: var(--text-2); }

.icon-tile {
  width: 54px; height: 54px; border-radius: var(--r-field);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--field); color: var(--accent-strong);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% -12%, #FFD9CE 0%, rgba(255, 217, 206, 0) 58%),
    radial-gradient(90% 80% at 8% 0%, #FBB3A3 0%, rgba(251, 179, 163, 0) 62%),
    linear-gradient(180deg, #FDEDE8 0%, var(--bg) 74%);
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 120px;
  background: linear-gradient(180deg, rgba(251, 248, 252, 0), var(--bg));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(40px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { color: color-mix(in srgb, var(--text) 78%, #fff); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: color-mix(in srgb, var(--text) 62%, #fff); }
.hero-phone { justify-self: center; }

/* ------------------------------------------------- phone and screen shots -- */
/* Real screenshots taken on a device, shown inside a drawn bezel. The notch is
   ours: iOS leaves the Dynamic Island out of a screenshot, so the gap between
   the clock and the status icons would otherwise read as a hole. */

.phone {
  --phone-w: 320px;
  width: var(--phone-w); flex: none;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(160deg, #E7DFEE, #CFC4DA 45%, #EFE9F4);
  box-shadow: 0 30px 70px rgba(69, 58, 82, .22), 0 6px 16px rgba(69, 58, 82, .12);
}
.phone-screen {
  position: relative;
  border-radius: 44px; overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1203 / 2614;   /* the screenshots' own ratio */
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 999px; background: #1c1620; z-index: 3;
}

/* The track scrolls natively, so it works with no JavaScript at all; the dots
   below it are what site.js adds. */
.screens {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.screens::-webkit-scrollbar { display: none; }
.screens:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: -3px; }
.screen { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

.screens-ui { margin-top: 20px; text-align: center; }
.screens-caption {
  font-size: 14px; font-weight: 600; color: var(--text);
  min-height: 1.4em;
}
.screens-dots { display: flex; justify-content: center; margin-top: 2px; }
.screens-dots button {
  width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.screens-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--dot); transition: background .2s, width .2s;
}
.screens-dots button[aria-current="true"]::before { background: var(--accent-strong); width: 20px; }
.screens-dots button:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -6px; border-radius: 12px; }

/* Kept for the widget wall, which draws the same progress bar. */
.app-bar { height: 9px; border-radius: 999px; background: var(--track); margin: 11px 0 9px; overflow: hidden; }
.app-bar i { display: block; height: 100%; border-radius: 999px; background: var(--fill); }

/* --------------------------------------------------------- facts ribbon -- */

.facts {
  background: #fff; border-block: 1px solid var(--card-border);
}
.facts ul {
  list-style: none; display: grid; gap: 22px 32px;
  grid-template-columns: 1fr;
  padding-block: 34px;
}
@media (min-width: 560px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts ul { grid-template-columns: repeat(4, 1fr); gap: 4px 28px; } }
.facts li { display: flex; gap: 11px; align-items: flex-start; }
.facts .f-dot { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.facts b { display: block; font-size: 16px; font-weight: 600; }
.facts span { font-size: 14px; color: var(--text-2); }

/* ---------------------------------------------- size comparison explorer -- */

.explorer {
  display: grid; gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
}
.explorer-stage {
  background: linear-gradient(170deg, #fff, var(--bg));
  border: 1px solid var(--card-border); border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: clamp(22px, 3vw, 30px);
}
.stage-strip {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px;
}
.stage-strip button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  min-width: 52px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--track); color: var(--accent-deep);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.stage-strip button:hover { background: var(--accent-soft); color: #fff; }
.stage-strip button[aria-selected="true"] { background: var(--accent-strong); color: #fff; }

.stage-art {
  background: var(--field); border-radius: var(--r-tile);
  aspect-ratio: 1 / 1; max-width: 300px; margin: 0 auto;
  display: grid; place-items: center; padding: 18px;
}
.stage-art img { width: 100%; height: 100%; object-fit: contain; }

.stage-caption { text-align: center; margin-top: 18px; }
.stage-caption .sc-label { font-size: 15px; color: var(--text-2); }
.stage-caption .sc-name {
  font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -.03em;
  color: var(--accent-deep); margin: 2px 0 12px; line-height: 1.1;
}
.stage-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.stage-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.stage-cats button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--field); color: var(--accent-deep);
  transition: background .15s ease, color .15s ease;
}
.stage-cats button:hover { background: var(--track); }
.stage-cats button[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }

.explorer-copy ul { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.explorer-copy li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.explorer-copy li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }

/* ------------------------------------------------------- feature blocks -- */

.feature-row {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(56px, 7vw, 92px); }
.feature-row--flip .fr-art { order: -1; }
.feature-row h3 { font-size: clamp(26px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 16px; }
.feature-row p { color: var(--text-2); }
.feature-row p + p { margin-top: 14px; }

.fr-art {
  background: linear-gradient(160deg, #FDF3EF, var(--field));
  border-radius: var(--r-card); padding: clamp(20px, 3vw, 34px);
  display: grid; place-items: center;
}
.fr-art img { border-radius: var(--r-tile); }

.note-card {
  margin-top: 22px; padding: 18px 20px; border-radius: var(--r-field);
  background: var(--field); border-left: 4px solid var(--accent);
  font-size: 15px; color: var(--text-2);
}
.note-card b { color: var(--text); }

.tab-list { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.tab-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.tab-list .tl-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--field); color: var(--accent-strong); display: grid; place-items: center;
}
.tab-list .tl-ico svg { width: 19px; height: 19px; }
.tab-list small { display: block; font-weight: 400; font-size: 14px; color: var(--text-2); }

/* -------------------------------------------------------------- widgets -- */

.widget-wall {
  background: linear-gradient(165deg, #FBB3A3, #D9B8DC 52%, #B99BD8);
  border-radius: var(--r-card); padding: clamp(26px, 4vw, 46px);
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  align-items: start;
}
.wg {
  background: rgba(255, 255, 255, .94); border-radius: var(--r-tile);
  padding: 14px; box-shadow: 0 10px 26px rgba(69, 58, 82, .18);
  font-size: 13px; line-height: 1.3;
}
.wg--wide { grid-column: span 2; }
.wg-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }
.wg-big { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.wg-sub { color: var(--text-2); font-size: 12px; }
.wg .app-bar { height: 8px; margin: 10px 0 6px; }
.wg-row { display: flex; align-items: center; gap: 12px; }
.wg-tile {
  width: 66px; height: 66px; flex: none; border-radius: 14px; background: var(--field);
  display: grid; place-items: center; padding: 6px;
}
.wg-tile img { width: 100%; height: 100%; object-fit: contain; }
.wg-list { list-style: none; display: grid; gap: 3px; margin-top: 8px; font-size: 12px; }
.wg-list li { display: flex; justify-content: space-between; gap: 10px; }
.wg-list span { color: var(--text-2); }
.wg-note { font-size: 11px; color: var(--text-2); margin-top: 8px; }
.widget-caption { text-align: center; margin-top: 22px; }

/* ------------------------------------------------------------ languages -- */

.lang-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pills li {
  list-style: none; padding: 11px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--track); font-weight: 600; font-size: 16px;
}
.lang-pills li:last-child { background: var(--field); border-color: var(--accent-soft); color: var(--accent-deep); }

/* -------------------------------------------------------------- privacy -- */

.privacy-band {
  background: linear-gradient(180deg, #fff, var(--field));
}
.privacy-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.privacy-list { list-style: none; display: grid; gap: 14px; }
.privacy-list li {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border-radius: var(--r-field); padding: 15px 18px;
  border: 1px solid var(--card-border);
}
.privacy-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.privacy-list b { display: block; }
.privacy-list span { font-size: 15px; color: var(--text-2); }

/* --------------------------------------------------------------- plans -- */

.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.plan { position: relative; }
.plan--premium { border-color: var(--accent-soft); box-shadow: var(--shadow-lift); }
.plan h3 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.plan .plan-kicker { font-size: 15px; color: var(--text-2); margin-bottom: 20px; }
.plan ul { list-style: none; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.plan-ribbon {
  position: absolute; top: 18px; right: 18px;
  background: var(--menu-selected); color: var(--accent-deep);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}

/* ------------------------------------------------------------------ faq -- */

.faq { display: grid; gap: 12px; max-width: 780px; }
.faq details {
  background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-field);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px;
  font-size: 17px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .faq-body { padding: 0 22px 22px; color: var(--text-2); }
.faq .faq-body p + p { margin-top: 12px; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: #fff; border-top: 1px solid var(--card-border);
  padding-block: clamp(44px, 5vw, 64px) 32px;
}
.footer-top { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.footer-top p { color: var(--text-2); font-size: 15px; max-width: 40ch; margin-top: 12px; }
.footer-nav .fn-title { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; font-weight: 700; }
.footer-nav ul { list-style: none; display: grid; gap: 4px; }
.footer-nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; min-height: 26px;
}
.footer-nav a:hover { color: var(--accent-deep); text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--track);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 14px; color: var(--text-2);
}
.footer-disclaimer { max-width: 62ch; }

/* ==========================================================================
   Legal pages (Privacy Policy, Terms of Use)
   ========================================================================== */

.doc-hero {
  background: linear-gradient(180deg, #FDEDE8, var(--bg));
  padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px);
}
.doc-hero h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 700; letter-spacing: -.03em; }
.doc-hero .doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.doc-hero .doc-intro { margin-top: 22px; max-width: 62ch; color: var(--text-2); }

.doc-layout {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 96px);
}

.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-toc > h2 {
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-2); font-weight: 700; margin-bottom: 14px;
}
.doc-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.doc-toc a {
  display: block; padding: 7px 12px; border-radius: 10px;
  font-size: 14.5px; line-height: 1.35; color: var(--text-2); text-decoration: none;
  border-left: 2.5px solid transparent;
}
.doc-toc a:hover { background: var(--field); color: var(--text); }
.doc-toc a[aria-current="true"] {
  background: var(--field); color: var(--accent-deep);
  font-weight: 600; border-left-color: var(--accent);
}

.doc-body { max-width: 74ch; font-size: 17px; }
.doc-body h2 {
  font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.025em;
  margin-top: 52px; padding-top: 8px;
}
.doc-body > h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 20px; font-weight: 600; margin-top: 34px; }
.doc-body p { margin-top: 16px; color: var(--text-2); }
.doc-body strong { color: var(--text); font-weight: 700; }
.doc-body ul, .doc-body ol { margin-top: 16px; padding-left: 24px; display: grid; gap: 10px; color: var(--text-2); }
.doc-body li::marker { color: var(--accent); }
.doc-body li > ul, .doc-body li > ol { margin-top: 10px; }

.doc-body .table-scroll { margin-top: 22px; overflow-x: auto; border-radius: var(--r-field); border: 1px solid var(--track); }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
.doc-body th, .doc-body td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--track); vertical-align: top; }
.doc-body thead th { background: var(--field); color: var(--text); font-weight: 700; white-space: nowrap; }
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body td { color: var(--text-2); }

.doc-body hr { border: 0; border-top: 1px solid var(--track); margin: 44px 0 0; }

.doc-callout {
  margin-top: 24px; padding: 20px 22px; border-radius: var(--r-field);
  background: var(--field); border-left: 4px solid var(--accent); color: var(--text-2);
}
.doc-callout p:first-child { margin-top: 0; }

.doc-contact {
  margin-top: 22px; padding: 22px; border-radius: var(--r-field);
  background: #fff; border: 1px solid var(--card-border); box-shadow: var(--shadow-card);
}
.doc-contact p { margin-top: 6px; }
.doc-contact .dc-name { font-weight: 700; color: var(--text); font-size: 18px; }

/* --------------------------------------------------------------- 404 ---- */

.oops { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.oops img { width: 220px; margin: 0 auto 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-phone { margin-top: 8px; }
  .hero .lead { max-width: 46ch; }
  .explorer { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc {
    position: static; background: #fff; border: 1px solid var(--card-border);
    border-radius: var(--r-field); padding: 6px 8px;
  }
  .doc-toc > h2 { padding: 10px 8px 4px; margin-bottom: 6px; }
  .doc-toc ol { max-height: 220px; overflow-y: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* No JavaScript: the header grows and the links wrap under the wordmark,
     which is why .site-header has no fixed height below this width. */
  .site-header { height: auto; padding-block: 10px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }

  /* With JavaScript, the same links collapse behind the button. */
  .js .site-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px; flex-wrap: nowrap;
    background: #fff; padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .js .site-header { height: var(--header-h); padding-block: 0; }
  .js .site-nav a { padding: 13px 14px; font-size: 16px; }
  .js .site-header[data-nav-open] .site-nav { display: flex; }
  .js .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 999px; border: 0;
    background: var(--field); color: var(--accent-deep); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .feature-row--flip .fr-art { order: 0; }
  .widget-wall { grid-template-columns: 1fr; }
  .wg--wide { grid-column: span 1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .phone { --phone-w: 100%; }
}

/* ==========================================================================
   Motion & print
   ========================================================================== */

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

@media print {
  .site-header, .site-footer, .doc-toc, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .doc-layout { grid-template-columns: 1fr; padding-block: 0; }
  .doc-body { max-width: none; }
  .doc-body h2 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ==========================================================================
   Small utilities. These exist so no element carries a style attribute and
   the site can ship a Content-Security-Policy without 'unsafe-inline'.
   ========================================================================== */

.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mt-26 { margin-top: 26px; }
.items-center { align-items: center; }
.sprite { display: none; }
.wg-name { font-size: 20px; }
.app-bar i.at-20 { width: 47.5%; }   /* week 20 of a 280-day term */
.checklist-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; justify-items: center;
}

/* -------------------------------------------------------------- closing -- */

.closing {
  background: linear-gradient(180deg, var(--bg) 0%, #FDEDE8 55%, #FBDDD4 100%);
  padding-block: clamp(56px, 7vw, 88px);
}
.closing-grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
}
.closing-art { justify-self: center; }
.closing-art img { border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.closing .hero-cta { margin-top: 28px; }
@media (max-width: 860px) {
  .closing-grid { grid-template-columns: 1fr; }
  .closing-art { order: 1; }
}
