/* ============================================================
   forevercalendar.app — stylesheet
   ------------------------------------------------------------
   Ported from the Claude Design project "Forever Calendar web mockup"
   (2efe93d8-0183-4b69-bcf2-7a3d825e2339). Token values are copied
   verbatim from the Forever Calendar design system, which in turn
   ports them from the app's src/theme/tokens.ts.

   Two deliberate deviations from the design system, both noted inline:
     1. Inter is self-hosted (see @font-face). The design system's
        tokens/fonts.css @imports fonts.googleapis.com, which would send
        every visitor's IP to Google — flatly contradicting what
        /privacy says about third parties. Same font, no third party.
     2. Dark mode follows prefers-color-scheme as well as an explicit
        [data-theme="dark"]. The mockup only had a theme prop; a real
        site should respect the visitor's system setting.
   ============================================================ */

/* ---- Inter, self-hosted. One variable file covers 400 and 500. ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Tokens — light (default)
   ============================================================ */
:root {
  color-scheme: light;

  /* Accent palette (raw) — muted set, used by the phone mock's calendars */
  --accent-blue-dot-light: #378ADD;   --accent-blue-dot-dark: #85B7EB;
  --accent-blue-chip-bg: #E6F1FB;     --accent-blue-chip-text: #0C447C;
  --accent-teal-dot-light: #1D9E75;   --accent-teal-dot-dark: #5DCAA5;
  --accent-teal-chip-bg: #E1F5EE;     --accent-teal-chip-text: #085041;
  --accent-coral-dot-light: #D85A30;  --accent-coral-dot-dark: #F0997B;
  --accent-coral-chip-bg: #FAECE7;    --accent-coral-chip-text: #712B13;
  --accent-purple-dot-light: #7F77DD; --accent-purple-dot-dark: #AFA9EC;
  --accent-purple-chip-bg: #EEEDFE;   --accent-purple-chip-text: #3C3489;
  --accent-pink-dot-light: #D4537E;   --accent-pink-dot-dark: #ED93B1;
  --accent-pink-chip-bg: #FBEAF0;     --accent-pink-chip-text: #72243E;
  --accent-amber-dot-light: #BA7517;  --accent-amber-dot-dark: #EF9F27;
  --accent-amber-chip-bg: #FAEEDA;    --accent-amber-chip-text: #633806;

  --cal-blue-dot: var(--accent-blue-dot-light);
  --cal-teal-dot: var(--accent-teal-dot-light);
  --cal-coral-dot: var(--accent-coral-dot-light);
  --cal-purple-dot: var(--accent-purple-dot-light);
  --cal-pink-dot: var(--accent-pink-dot-light);
  --cal-amber-dot: var(--accent-amber-dot-light);

  --cal-blue-chip-bg: var(--accent-blue-chip-bg);
  --cal-blue-chip-text: var(--accent-blue-chip-text);
  --cal-teal-chip-bg: var(--accent-teal-chip-bg);
  --cal-teal-chip-text: var(--accent-teal-chip-text);
  --cal-coral-chip-bg: var(--accent-coral-chip-bg);
  --cal-coral-chip-text: var(--accent-coral-chip-text);
  --cal-purple-chip-bg: var(--accent-purple-chip-bg);
  --cal-purple-chip-text: var(--accent-purple-chip-text);
  --cal-pink-chip-bg: var(--accent-pink-chip-bg);
  --cal-pink-chip-text: var(--accent-pink-chip-text);
  --cal-amber-chip-bg: var(--accent-amber-chip-bg);
  --cal-amber-chip-text: var(--accent-amber-chip-text);

  /* Brand mark — the six neon hues, fixed row order */
  --accent-neon-blue-dot-light: #1A85FF;   --accent-neon-blue-dot-dark: #5AA4FF;
  --accent-neon-green-dot-light: #12D640;  --accent-neon-green-dot-dark: #4DE87C;
  --accent-neon-orange-dot-light: #FF7A00; --accent-neon-orange-dot-dark: #FF9F45;
  --accent-neon-purple-dot-light: #A435FF; --accent-neon-purple-dot-dark: #C173FF;
  --accent-neon-red-dot-light: #FF1F4B;    --accent-neon-red-dot-dark: #FF6685;
  --accent-neon-yellow-dot-light: #FFCC00; --accent-neon-yellow-dot-dark: #FFDB4D;

  --cal-neon-blue-dot: var(--accent-neon-blue-dot-light);
  --cal-neon-green-dot: var(--accent-neon-green-dot-light);
  --cal-neon-orange-dot: var(--accent-neon-orange-dot-light);
  --cal-neon-purple-dot: var(--accent-neon-purple-dot-light);
  --cal-neon-red-dot: var(--accent-neon-red-dot-light);
  --cal-neon-yellow-dot: var(--accent-neon-yellow-dot-light);

  --brand-mark-hue-1: var(--cal-neon-blue-dot);
  --brand-mark-hue-2: var(--cal-neon-green-dot);
  --brand-mark-hue-3: var(--cal-neon-orange-dot);
  --brand-mark-hue-4: var(--cal-neon-purple-dot);
  --brand-mark-hue-5: var(--cal-neon-red-dot);
  --brand-mark-hue-6: var(--cal-neon-yellow-dot);

  --brand-mark-dot: 5px;
  --brand-mark-gap-ratio: 0.6;
  --brand-mark-dot-app: 5px;
  --brand-mark-dot-sm: 10px;
  --brand-mark-dot-md: 14px;
  --brand-mark-dot-lg: 20px;

  /* Surfaces */
  --surface-bg: #FFFFFF;
  --surface-card: #F5F5F5;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #1A1A1A;
  --text-muted: #8A8A8A;
  --text-faint: #C4C4C4;

  /* Hairlines — always rendered at 0.5px */
  --hairline-divider: #E8E8E8;
  --hairline-row: #F0F0F0;

  /* "Today" / selected fill — the only strong fill in the system */
  --today-fill: #1A1A1A;
  --today-text: #FFFFFF;

  --action-accent: var(--cal-blue-dot);
  --action-danger: var(--cal-coral-dot);

  /* Type */
  --font-sans: 'Inter', -apple-system, 'SF Pro Text', 'Roboto', system-ui, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --micro-tracking: 0.4px;

  /* Geometry */
  --hairline-width: 0.5px;
  --radius-card: 12px;
  --radius-pill: 10px;
  --dot-grid: 5px;
  --dot-gap: 2px;
  --today-week: 28px;
  --today-month: 22px;
  --avatar-size: 22px;
  --avatar-overlap: -6px;
}

/* ============================================================
   Tokens — dark. Applied for an explicit [data-theme="dark"] and
   for visitors whose system asks for dark, unless they have
   explicitly been given light.
   ============================================================ */
:root[data-theme='dark'] {
  color-scheme: dark;

  --cal-blue-dot: var(--accent-blue-dot-dark);
  --cal-teal-dot: var(--accent-teal-dot-dark);
  --cal-coral-dot: var(--accent-coral-dot-dark);
  --cal-purple-dot: var(--accent-purple-dot-dark);
  --cal-pink-dot: var(--accent-pink-dot-dark);
  --cal-amber-dot: var(--accent-amber-dot-dark);

  --cal-blue-chip-bg: var(--accent-blue-chip-text);
  --cal-blue-chip-text: var(--accent-blue-dot-dark);
  --cal-teal-chip-bg: var(--accent-teal-chip-text);
  --cal-teal-chip-text: var(--accent-teal-dot-dark);
  --cal-coral-chip-bg: var(--accent-coral-chip-text);
  --cal-coral-chip-text: var(--accent-coral-dot-dark);
  --cal-purple-chip-bg: var(--accent-purple-chip-text);
  --cal-purple-chip-text: var(--accent-purple-dot-dark);
  --cal-pink-chip-bg: var(--accent-pink-chip-text);
  --cal-pink-chip-text: var(--accent-pink-dot-dark);
  --cal-amber-chip-bg: var(--accent-amber-chip-text);
  --cal-amber-chip-text: var(--accent-amber-dot-dark);

  --cal-neon-blue-dot: var(--accent-neon-blue-dot-dark);
  --cal-neon-green-dot: var(--accent-neon-green-dot-dark);
  --cal-neon-orange-dot: var(--accent-neon-orange-dot-dark);
  --cal-neon-purple-dot: var(--accent-neon-purple-dot-dark);
  --cal-neon-red-dot: var(--accent-neon-red-dot-dark);
  --cal-neon-yellow-dot: var(--accent-neon-yellow-dot-dark);

  --surface-bg: #1C1C1E;
  --surface-card: #2A2A2C;
  --text-primary: #ECECEC;
  --text-secondary: #C7C7CC;
  --text-muted: #98989D;
  --text-faint: #5F5F63;
  --hairline-divider: #2E2E30;
  --hairline-row: #3A3A3C;
  --today-fill: #ECECEC;
  --today-text: #1C1C1E;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --cal-blue-dot: var(--accent-blue-dot-dark);
    --cal-teal-dot: var(--accent-teal-dot-dark);
    --cal-coral-dot: var(--accent-coral-dot-dark);
    --cal-purple-dot: var(--accent-purple-dot-dark);
    --cal-pink-dot: var(--accent-pink-dot-dark);
    --cal-amber-dot: var(--accent-amber-dot-dark);

    --cal-blue-chip-bg: var(--accent-blue-chip-text);
    --cal-blue-chip-text: var(--accent-blue-dot-dark);
    --cal-teal-chip-bg: var(--accent-teal-chip-text);
    --cal-teal-chip-text: var(--accent-teal-dot-dark);
    --cal-coral-chip-bg: var(--accent-coral-chip-text);
    --cal-coral-chip-text: var(--accent-coral-dot-dark);
    --cal-purple-chip-bg: var(--accent-purple-chip-text);
    --cal-purple-chip-text: var(--accent-purple-dot-dark);
    --cal-pink-chip-bg: var(--accent-pink-chip-text);
    --cal-pink-chip-text: var(--accent-pink-dot-dark);
    --cal-amber-chip-bg: var(--accent-amber-chip-text);
    --cal-amber-chip-text: var(--accent-amber-dot-dark);

    --cal-neon-blue-dot: var(--accent-neon-blue-dot-dark);
    --cal-neon-green-dot: var(--accent-neon-green-dot-dark);
    --cal-neon-orange-dot: var(--accent-neon-orange-dot-dark);
    --cal-neon-purple-dot: var(--accent-neon-purple-dot-dark);
    --cal-neon-red-dot: var(--accent-neon-red-dot-dark);
    --cal-neon-yellow-dot: var(--accent-neon-yellow-dot-dark);

    --surface-bg: #1C1C1E;
    --surface-card: #2A2A2C;
    --text-primary: #ECECEC;
    --text-secondary: #C7C7CC;
    --text-muted: #98989D;
    --text-faint: #5F5F63;
    --hairline-divider: #2E2E30;
    --hairline-row: #3A3A3C;
    --today-fill: #ECECEC;
    --today-text: #1C1C1E;
  }
}

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

html, body { margin: 0; }

body {
  background: var(--surface-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--action-accent); text-decoration: none; }
a:hover { color: var(--action-accent); text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.micro {
  font-size: 0.6875rem;
  letter-spacing: var(--micro-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Brand mark: 3x2 dot cluster ---- */
.mark {
  display: inline-grid;
  grid-template-columns: repeat(3, var(--brand-mark-dot));
  gap: calc(var(--brand-mark-dot) * var(--brand-mark-gap-ratio));
}
.mark span {
  width: var(--brand-mark-dot);
  height: var(--brand-mark-dot);
  border-radius: 50%;
}
.mark span:nth-child(1) { background: var(--brand-mark-hue-1); }
.mark span:nth-child(2) { background: var(--brand-mark-hue-2); }
.mark span:nth-child(3) { background: var(--brand-mark-hue-3); }
.mark span:nth-child(4) { background: var(--brand-mark-hue-4); }
.mark span:nth-child(5) { background: var(--brand-mark-hue-5); }
.mark span:nth-child(6) { background: var(--brand-mark-hue-6); }
.mark--sm { --brand-mark-dot: var(--brand-mark-dot-sm); }
.mark--lg { --brand-mark-dot: var(--brand-mark-dot-lg); }

/* ---- Site header ---- */
.site-head { display: flex; align-items: center; padding: 22px 0; }
.site-head a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-primary); text-decoration: none;
}
.site-head a:hover { text-decoration: none; }
.site-head .name { font-size: 0.9375rem; font-weight: var(--weight-medium); }

/* ---- Footer ---- */
.site-foot {
  border-top: var(--hairline-width) solid var(--hairline-divider);
  padding: 28px 0 48px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 28px;
  font-size: 0.8125rem;
}
.site-foot .who { margin-left: auto; color: var(--text-muted); }

/* ============================================================
   Home
   ============================================================ */
.hero {
  padding: clamp(56px, 10vw, 112px) 0 clamp(40px, 6vw, 64px);
  display: flex; flex-direction: column; align-items: center;
  gap: 26px; text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero p {
  margin: 0;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 22em;
}

.showcase {
  padding: 0 0 clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(28px, 4vw, 40px);
}

.prose { max-width: 34em; }

.section {
  border-top: var(--hairline-width) solid var(--hairline-divider);
  padding: clamp(56px, 9vw, 104px) 0;
  display: flex; flex-direction: column; gap: 22px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

.section--center { align-items: center; text-align: center; gap: 20px; }
.section--center p { max-width: 30em; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 6px; }
.badge {
  width: 168px; height: 56px;
  border: var(--hairline-width) solid var(--hairline-divider);
  border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; color: var(--text-muted);
}

/* ============================================================
   Phone mock — a fixed, curated snapshot of the three views.
   The three screens cross-fade on a 12s loop with step-end, so
   nothing animates mid-transition and no JavaScript is involved.
   ============================================================ */
.phone {
  width: 352px;
  padding: 11px;
  border: var(--hairline-width) solid var(--hairline-divider);
  border-radius: 46px;
  background: var(--surface-bg);
  transform-origin: top center;
}
.phone-screen {
  position: relative;
  width: 330px;
  height: 700px;
  overflow: hidden;
  border-radius: 35px;
  background: var(--surface-bg);
}

/* iOS status bar + home indicator, so the mock reads as a phone */
.status {
  position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  font-size: 12px; font-weight: var(--weight-medium); color: var(--text-primary);
}
.status .icons { display: flex; align-items: center; gap: 5px; color: var(--text-muted); }
.home-bar {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 106px; height: 4px; border-radius: 2px; background: var(--text-faint);
}

.screens { position: absolute; top: 34px; left: 0; right: 0; bottom: 22px; overflow: hidden; }
.screens > .screen { position: absolute; inset: 0; }

@keyframes fcStep1 { 0% { opacity: 1; visibility: visible; } 33.333% { opacity: 0; visibility: hidden; } 100% { opacity: 0; visibility: hidden; } }
@keyframes fcStep2 { 0% { opacity: 0; visibility: hidden; } 33.333% { opacity: 1; visibility: visible; } 66.666% { opacity: 0; visibility: hidden; } 100% { opacity: 0; visibility: hidden; } }
@keyframes fcStep3 { 0% { opacity: 0; visibility: hidden; } 66.666% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

[data-anim='1'] { animation: fcStep1 12s step-end infinite; }
[data-anim='2'] { animation: fcStep2 12s step-end infinite; }
[data-anim='3'] { animation: fcStep3 12s step-end infinite; }

/* Captions, animated in lockstep with the screens */
.captions { position: relative; width: 100%; max-width: 34em; min-height: 5.5rem; }
.captions > div {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
}
.captions p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { animation: none !important; }
  [data-anim='2'], [data-anim='3'] { opacity: 0; visibility: hidden; }
}

/* ---- Inside the phone: the app's own scale, 14px base ---- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; background: var(--surface-bg); }
.app-head {
  flex-shrink: 0; padding: 0 16px 8px;
  border-bottom: var(--hairline-width) solid var(--hairline-divider);
}
.app-head .row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.app-head .left { display: flex; align-items: center; gap: 10px; }
/* nowrap: the mock's screen is 330px against a real phone's ~402px, and without
   this the month label breaks onto two lines and pushes the header out of shape. */
.app-head .title { font-size: 18px; font-weight: var(--weight-medium); color: var(--text-primary); white-space: nowrap; }
.app-head .nav { display: flex; align-items: center; gap: 4px; }
/* Direct children only. As a descendant selector this also matched the week
   icon's inner wrapper, giving it padding inside its own 20px border-box and
   collapsing the SVG to a 4px content box — the icon disappeared and the "7"
   spilled out of it. */
/* 6px, not the app's 8px: the mock's screen is 330px against a real phone's
   ~402px, and at 8px the four buttons leave the month label with zero gap —
   title and nav touch. Trimming 2px a side frees ~16px and restores the
   breathing room the header has on an actual device. */
.app-head .nav > span { padding: 6px; display: flex; color: var(--text-muted); }
.app-head .nav > span.on { color: var(--text-primary); }
/* Week icon: a 7 centred inside the calendar glyph. */
.app-head .nav .wk { position: relative; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.app-head .nav .wk i {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-top: 3.2px;
  font-size: 8.4px; line-height: 8.4px; font-weight: var(--weight-medium);
  font-style: normal;
}
.app-mark { display: inline-grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.app-mark i { width: 5px; height: 5px; border-radius: 50%; display: block; }

.agenda { flex: 1; overflow: hidden; }
.month-div { padding: 16px 16px 2px; font-size: 11px; letter-spacing: var(--micro-tracking); color: var(--text-faint); }
.day-head {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-card); padding: 7px 16px;
  font-size: 11px; letter-spacing: var(--micro-tracking); color: var(--text-muted);
}
.today-pill {
  background: var(--today-fill); border-radius: var(--radius-pill);
  padding: 3px 9px; font-size: 11px; letter-spacing: var(--micro-tracking);
  color: var(--today-text);
}
.ev {
  margin: 0 16px; display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: var(--hairline-width) solid var(--hairline-row);
}
.ev.first { border-top-color: transparent; }
.ev .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ev .time { min-width: 40px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.ev .t {
  flex: 1; font-size: 14px; font-weight: var(--weight-medium); color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ev .who { display: flex; flex-shrink: 0; }
.ev .who b {
  width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: var(--weight-medium);
}
.ev .who b + b { margin-left: var(--avatar-overlap); }

/* week strip / month grid */
.grid-top { flex-shrink: 0; padding: 0 16px; }
.week-strip { display: flex; margin-top: 14px; }
.week-strip > div { flex: 1; display: flex; flex-direction: column; align-items: center; }
.week-strip .l { font-size: 11px; margin-bottom: 2px; color: var(--text-muted); }
.week-strip .n-wrap { height: 28px; display: flex; align-items: center; justify-content: center; }
.week-strip .n {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; border: 1.5px solid transparent; color: var(--text-primary);
}
.dots { height: 12px; margin-top: 3px; display: flex; gap: var(--dot-gap); align-items: center; justify-content: center; }
.dots i { width: var(--dot-grid); height: var(--dot-grid); border-radius: 50%; display: block; }
.dots u { font-size: 9px; line-height: 11px; margin-left: 1px; color: var(--text-muted); text-decoration: none; }

.mgrid { margin-top: 4px; display: flex; flex-direction: column; gap: 5px; }
.mgrid .r { display: flex; }
.mgrid .c { flex: 1; display: flex; flex-direction: column; align-items: center; }
.mgrid .n-wrap { height: 22px; display: flex; align-items: center; justify-content: center; }
.mgrid .n {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; border: 1.5px solid transparent; color: var(--text-primary);
}
.mgrid .c.adj .n { color: var(--text-faint); }
.letters { display: flex; margin-top: 12px; }
.letters div { flex: 1; text-align: center; font-size: 11px; color: var(--text-muted); }

.sel { fill: none; }
.n.today { border-color: var(--today-fill); }
.n.on { background: var(--today-fill); color: var(--today-text); }

.rule { border-top: var(--hairline-width) solid var(--hairline-divider); margin-top: 14px; margin-bottom: 4px; }
.day-list { flex: 1; overflow: hidden; padding: 0 16px; }
.day-label { font-size: 11px; letter-spacing: var(--micro-tracking); margin-top: 8px; margin-bottom: 2px; color: var(--text-muted); }
.day-list .ev { margin: 0; }

.fab {
  position: absolute; z-index: 20; right: 22px; bottom: 18px;
  width: 52px; height: 52px; border-radius: 26px;
  background: var(--today-fill);
  display: flex; align-items: center; justify-content: center;
}

/* Calendar hues used by the mock */
.h-blue { background: var(--cal-blue-dot); }
.h-purple { background: var(--cal-purple-dot); }
.h-coral { background: var(--cal-coral-dot); }
.h-pink { background: var(--cal-pink-dot); }
.h-teal { background: var(--cal-teal-dot); }
.c-blue { background: var(--cal-blue-chip-bg); color: var(--cal-blue-chip-text); }
.c-purple { background: var(--cal-purple-chip-bg); color: var(--cal-purple-chip-text); }
.c-coral { background: var(--cal-coral-chip-bg); color: var(--cal-coral-chip-text); }

/* The frame is fixed-width, because the app layout inside it is fixed-pixel.
   On small screens scale the whole thing down rather than reflowing it.
   `transform` does not shrink the layout box, so each step also pulls back the
   overhang it leaves behind: 724px tall * (1 - scale), rounded.
   (`zoom` would do this in one property, but this stays plain and predictable.) */
@media (max-width: 420px) {
  .phone { transform: scale(0.84); margin-bottom: -116px; }
}
@media (max-width: 360px) {
  .phone { transform: scale(0.74); margin-bottom: -188px; }
}

/* ============================================================
   Support & Privacy
   ============================================================ */
.doc { max-width: 34em; padding: clamp(40px, 7vw, 84px) 0 0; }
.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.doc .lede { margin: 18px 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

.block {
  margin-top: clamp(44px, 6vw, 68px);
  border-top: var(--hairline-width) solid var(--hairline-divider);
  padding-top: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.block--first { margin-top: clamp(48px, 7vw, 76px); }
.block h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.block p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text-secondary); text-wrap: pretty; }
.block .fine { font-size: 0.8125rem; color: var(--text-muted); }

.contact { margin-top: clamp(36px, 5vw, 52px); border-top: var(--hairline-width) solid var(--hairline-divider); padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.contact .addr { margin: 0; font-size: clamp(1.125rem, 3vw, 1.5rem); line-height: 1.35; }
.contact p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

.faq { margin-top: clamp(48px, 7vw, 76px); display: flex; flex-direction: column; gap: 14px; }
.faq .q { border-top: var(--hairline-width) solid var(--hairline-row); padding: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.faq h2 { margin: 0; font-size: 1.0625rem; font-weight: var(--weight-medium); line-height: 1.4; }
.faq p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

.doc + .site-foot, .showcase + .site-foot { margin-top: clamp(56px, 9vw, 96px); }
