/* =========================================================================
   Compass — Marketing Site
   Lead palette: Slate & Sky (balanced). Tokens live in /tokens.css; this
   file only contains marketing-page styles (hero, pricing, comparison,
   migration, CTA, footer).
   Source designs: marketing-balanced.jsx, plans.jsx, positioning.jsx,
                   security.jsx, troop-pages.jsx (TroopBalanced).
   ========================================================================= */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; }

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

/* -------------------------------------------------------------------------
   Skip link
   ------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-button);
  z-index: 1000;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui);
  border: 1.5px solid transparent;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
  white-space: nowrap;
  cursor: pointer;
}

.btn--ink {
  background: var(--ink);
  color: var(--bg);
}
.btn--ink:hover,
.btn--ink:focus-visible {
  background: var(--primary-hover);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.btn--accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}

.btn--pill { border-radius: var(--radius-pill); padding: 10px 22px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--lg   { padding: 16px 28px; font-size: 15px; }

/* -------------------------------------------------------------------------
   Wordmark
   ------------------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}

.wordmark--small { font-size: 18px; }

.wordmark .accent { color: var(--accent); }

/* -------------------------------------------------------------------------
   Top nav
   ------------------------------------------------------------------------- */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.topnav__anchors {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.topnav__anchors a:hover,
.topnav__anchors a:focus-visible { color: var(--ink); }

.topnav__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}

.topnav__signin { color: var(--ink-soft); font-weight: 500; }
.topnav__signin:hover,
.topnav__signin:focus-visible { color: var(--ink); }

/* -------------------------------------------------------------------------
   Hero — magazine cover
   ------------------------------------------------------------------------- */
.hero {
  padding: 12px 56px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__masthead {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: end;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 116px;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}

.hero__accent-block {
  background: var(--accent);
  color: var(--ink);
  padding: 4px 18px 8px;
  font-style: italic;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
}

.hero__aside { align-self: end; }

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero__pill-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__photos {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  height: 320px;
}

/* -------------------------------------------------------------------------
   Photo placeholders (gradient block + subject SVG; mirrors atoms.jsx)
   ------------------------------------------------------------------------- */
.photo {
  position: relative;
  border-radius: var(--radius-button);
  overflow: hidden;
  border-top: 5px solid var(--accent);
  width: 100%;
  height: 100%;
  margin: 0;
}

.photo__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo--accent    { border-top-color: var(--accent); }
.photo--sky       { border-top-color: var(--sky); }
.photo--ember     { border-top-color: var(--ember); }
.photo--raspberry { border-top-color: var(--raspberry); }
.photo--butter    { border-top-color: var(--butter); }
.photo--plum      { border-top-color: var(--plum); }
.photo--teal      { border-top-color: var(--teal); }

.photo--forest    { background: linear-gradient(135deg, #3d5a3d 0%, #7a9a5c 140%); }
.photo--campfire  { background: linear-gradient(135deg, #3a2418 0%, #d97a3a 140%); }
.photo--canoe     { background: linear-gradient(135deg, #2c4a5a 0%, #7ab0c4 140%); }
.photo--troop     { background: linear-gradient(135deg, #4a3a28 0%, #c4a374 140%); }

.photo--feature {
  border-top-width: 0;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  height: auto;
}

/* -------------------------------------------------------------------------
   Stats band — dark forest
   ------------------------------------------------------------------------- */
.band-dark {
  background: var(--surface-dark);
  color: #fff;
}

.stats {
  padding: 56px;
}

.stats__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  border-top: 3px solid var(--accent);
  padding-top: 20px;
}

.stat--accent { border-top-color: var(--accent); }
.stat--sky    { border-top-color: var(--sky); }
.stat--butter { border-top-color: var(--butter); }
.stat--teal   { border-top-color: var(--teal); }

.stat__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
}

.stat__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Section eyebrow (used across features / migration / pricing / compare)
   ------------------------------------------------------------------------- */
.section-eyebrow {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-eyebrow--accent { color: var(--accent); }

/* -------------------------------------------------------------------------
   Pillars — three editorial mega-blocks (Communication / Organization /
   Security). Each pillar has a full-width cover (italic numeral, kicker,
   headline, body) and a list of capability cards with a preview render
   and copy block. The Security pillar inverts to dark forest.
   ------------------------------------------------------------------------- */
.pillars {
  padding: 88px 56px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.pillars__head { margin-bottom: 56px; max-width: 820px; }

.pillars__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}

.pillars__title em { font-style: italic; color: var(--primary); }

.pillars__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.pillar {
  margin-top: 64px;
  padding: 48px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pillar--orgn { background: var(--surface-sand, #eef1f5); border-color: transparent; }

.pillar--dark {
  background: var(--surface-dark);
  color: #fff;
  border-color: var(--ink);
}

.pillar__cover { max-width: 760px; margin-bottom: 40px; }

.pillar__num {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 400;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin: 0 0 14px;
}

.pillar__num--accent { color: var(--accent); }

.pillar__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.pillar__kicker--accent { color: var(--accent); }

.pillar__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.pillar__title em { font-style: italic; color: var(--primary); }
.pillar__title--invert { color: #fff; }
.pillar__title--invert em { color: var(--accent); }

.pillar__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.pillar__body--invert { color: rgba(255,255,255,0.78); }
.pillar__body--invert em { color: #fff; font-style: italic; }

.pillar__body--sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}
.pillar__body--sub em { font-style: italic; color: var(--primary); font-weight: 600; }

.pillar__cta {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.pillar__cta:hover, .pillar__cta:focus-visible { color: #fff; border-bottom-color: #fff; }

.pillar__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar--security .pillar__items { grid-template-columns: repeat(2, 1fr); }

.capability {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.capability--invert {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.capability__media {
  position: relative;
  padding: 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  min-height: 200px;
}

.capability__media--invert {
  background: rgba(255,255,255,0.03);
  border-bottom-color: rgba(255,255,255,0.1);
}

.capability__chip {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--radius-chip);
  color: #fff;
}

.capability__chip--accent    { background: var(--accent); color: var(--ink); }
.capability__chip--sky       { background: var(--sky); }
.capability__chip--ember     { background: var(--ember); }
.capability__chip--raspberry { background: var(--raspberry); }
.capability__chip--butter    { background: var(--butter); color: var(--ink); }
.capability__chip--plum      { background: var(--plum); }
.capability__chip--teal      { background: var(--teal); }

.capability__copy { padding: 22px; }

.capability__h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.capability__h em { font-style: italic; color: var(--primary); }
.capability__copy--invert .capability__h { color: #fff; }
.capability__copy--invert .capability__h em { color: var(--accent); }

.capability__copy p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.capability__copy--invert p { color: rgba(255,255,255,0.78); }

/* Capability previews — small mock UIs that sit in capability__media */
.chat-preview { display: flex; flex-direction: column; gap: 8px; }
.chat-preview__bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 88%;
}
.chat-preview__bubble--ldr { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.chat-preview__bubble--prn { background: var(--accent-soft, #bcd0f4); border: 1px solid var(--accent); align-self: flex-end; text-align: right; }
.chat-preview__name { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-muted); text-transform: uppercase; }
.chat-preview__guard {
  margin-top: 4px;
  font-size: 11px;
  color: var(--success, #059669);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.chat-preview__guard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success, #059669);
  box-shadow: 0 0 0 3px rgba(61,107,58,0.18);
}

.news-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
}
.news-preview__masthead {
  display: flex; justify-content: space-between;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px; margin-bottom: 10px;
}
.news-preview__h {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400; letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.news-preview__body { font-size: 11px; color: var(--ink-soft); line-height: 1.55; }
.news-preview__divider { height: 1px; background: var(--line); margin: 10px 0; }
.news-preview__list { font-size: 10px; color: var(--ink-muted); letter-spacing: 0.04em; }

.bcast-preview { display: flex; flex-direction: column; gap: 10px; }
.bcast-preview__row { display: flex; gap: 6px; flex-wrap: wrap; }
.bcast-preview__chip {
  background: var(--surface); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
}
.bcast-preview__chip--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.bcast-preview__msg {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
  font-size: 12px; line-height: 1.5; color: var(--ink);
}
.bcast-preview__channels { display: flex; gap: 8px; }
.bcast-preview__ch {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 10px; font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
}
.bcast-preview__ch--email { background: var(--ember); color: #fff; }
.bcast-preview__ch--sms { background: var(--accent); color: var(--ink); }

.cal-preview { display: flex; flex-direction: column; gap: 0; }
.cal-preview__row {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 2px solid;
}
.cal-preview__row:first-child { padding-top: 8px; }
.cal-preview__date {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500; font-style: italic;
  letter-spacing: -0.01em;
}
.cal-preview__name { font-size: 12px; font-weight: 600; color: var(--ink); }
.cal-preview__sub { font-size: 10px; color: var(--ink-muted); margin-top: 2px; }
.cal-preview__rsvp {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  text-align: right;
}

.signup-preview {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.signup-preview__title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px; margin-bottom: 4px;
}
.signup-preview__row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.signup-preview__lbl { color: var(--ink); font-weight: 500; }
.signup-preview__bar {
  height: 6px; background: var(--line-soft);
  border-radius: 3px; overflow: hidden;
}
.signup-preview__fill { display: block; height: 100%; }
.signup-preview__count { text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.trip-preview {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px;
}
.trip-preview__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400; letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.trip-preview__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.trip-preview__list li {
  display: flex; gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.trip-preview__check {
  width: 16px;
  color: var(--success, #059669);
  font-weight: 700;
}
.trip-preview__check--off { color: var(--ink-muted); }

.sec-preview {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sec-preview__shield { flex-shrink: 0; }
.sec-preview__list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.sec-preview__list div { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.sec-preview__list div span { color: var(--accent); font-weight: 700; }
.sec-preview--invert .sec-preview__list div { color: #fff; }
.sec-preview__list--invert div span { color: var(--accent); }

.trust-preview { display: flex; flex-direction: column; gap: 8px; }
.trust-preview__row {
  display: flex; justify-content: space-between;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #fff;
}
.trust-preview__lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .pillar__items { grid-template-columns: 1fr 1fr; }
  .pillar--security .pillar__items { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pillars { padding: 48px 20px; }
  .pillar { padding: 28px 20px; }
  .pillars__title { font-size: 40px; }
  .pillar__title { font-size: 30px; }
  .pillar__num { font-size: 64px; }
  .pillar__items { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Positioning band — "Not another Scoutbook." Editorial centered band
   between the stats strip and the four feature blocks. Cream surface
   (no dark inversion) so it reads as continuation of the page rather
   than a separate section.
   ------------------------------------------------------------------------- */
.positioning {
  padding: 80px 56px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.positioning__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.positioning__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--ink);
}

.positioning__title em {
  font-style: italic;
  color: var(--primary);
}

.positioning__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-align: left;
}

.positioning__body:last-child { margin-bottom: 0; }

.positioning__body strong {
  color: var(--ink);
  font-weight: 600;
}

.positioning__body em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary);
  font-size: 1.05em;
}

/* -------------------------------------------------------------------------
   Migration band
   ------------------------------------------------------------------------- */
.migration {
  background: var(--surface-sand);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 64px 56px;
}

.migration__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.migration__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.migration__title em {
  font-style: italic;
  color: var(--primary);
}

.migration__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.migration__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.migration__list li {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-button);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.migration__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------------- */
.pricing {
  padding: 88px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.pricing__head { margin-bottom: 48px; }

.pricing__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 900px;
}

.pricing__title em {
  font-style: italic;
  color: var(--primary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.tier {
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier--highlight {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tier__ribbon {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-chip);
  letter-spacing: 0.12em;
}

.tier__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
  color: var(--accent);
}

.tier__price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier--highlight .tier__price { color: #fff; }

.tier__sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  margin-top: 4px;
}

.tier--highlight .tier__sub { color: rgba(255, 255, 255, 0.6); }

.tier__desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.tier--highlight .tier__desc {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.tier__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tier__features li {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  line-height: 1.4;
}

.tier__features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.tier--highlight .tier__features li         { color: rgba(255, 255, 255, 0.92); }
.tier--highlight .tier__features li::before { color: var(--accent); }

.pricing__note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* -------------------------------------------------------------------------
   Old-vs-new comparison band
   ------------------------------------------------------------------------- */
.compare {
  padding: 88px 56px;
}

.compare__head {
  max-width: var(--max-w);
  margin: 0 auto 40px;
}

.compare__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  max-width: 820px;
}

.compare__title em {
  font-style: italic;
  color: var(--accent);
}

.compare__lede {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
  margin: 20px 0 0;
}

.compare__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.compare__caption--new { color: var(--accent); }

.compare__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.compare__dot--new { background: var(--accent); }

.compare__note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.compare__note--new { color: rgba(255, 255, 255, 0.88); }

.compare__note span { color: #ef4444; font-weight: 700; flex-shrink: 0; }
.compare__note--new span { color: var(--accent); }

/* Browser frame mockup */
.browser {
  background: #fff;
  color: #000;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.browser__chrome {
  background: #dcdfe2;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #b0b5b9;
}

.browser__chrome--new {
  background: var(--surface-alt);
  border-bottom-color: var(--line);
}

.browser__bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser__url {
  flex: 1;
  margin-left: 10px;
  background: #fff;
  height: 18px;
  border-radius: 3px;
  font-size: 9px;
  color: #666;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser__url--old { font-family: Arial, sans-serif; }

.browser__url--new {
  border-radius: 8px;
  font-family: var(--font-ui);
  color: var(--ink-muted);
}

/* OLD site mockup — Arial/Times-on-grey, table layout */
.oldsite {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
  min-height: 360px;
}

.oldsite__header {
  background: linear-gradient(180deg, #4a6e3a, #2f4d24);
  color: #ffe;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1a2f10;
}

.oldsite__title {
  font-family: Times, serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.oldsite__login { font-size: 10px; }

.oldsite__crumbs {
  background: #e8e8d8;
  padding: 4px 14px;
  font-size: 11px;
  color: #444;
  border-bottom: 1px solid #c0c0a8;
}

.oldsite__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 280px;
}

.oldsite__menu {
  background: #f0eed8;
  padding: 12px 10px;
  border-right: 1px solid #c8c8b0;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.oldsite__menu-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #234;
}

.oldsite__menu a {
  color: #0050a0;
  text-decoration: underline;
  font-size: 11px;
}

.oldsite__main { padding: 14px; }

.oldsite__h {
  font-family: Times, serif;
  font-size: 18px;
  font-weight: 700;
  color: #2f4d24;
  margin: 0 0 8px;
  border-bottom: 2px solid #2f4d24;
  padding-bottom: 4px;
}

.oldsite__h2 {
  font-family: Times, serif;
  font-size: 14px;
  font-weight: 700;
  color: #2f4d24;
  margin: 12px 0 4px;
  border-bottom: 1px solid #2f4d24;
}

.oldsite__p {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.5;
}

.oldsite__img {
  float: left;
  margin: 0 8px 4px 0;
  width: 110px;
  height: 80px;
  background: #c8c8b0;
  border: 2px ridge #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
}

.oldsite__alert {
  background: #fffacc;
  border: 1px solid #d4b850;
  padding: 6px 8px;
  margin: 8px 0;
  font-size: 11px;
}

.oldsite__alert b { color: #a05010; }
.oldsite__alert a { color: #0050a0; text-decoration: underline; }

.oldsite__table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.oldsite__table tr:nth-child(even) { background: #f8f8e8; }
.oldsite__table td {
  padding: 3px 6px;
  border-bottom: 1px dotted #aaa;
}
.oldsite__table td:first-child { font-family: Courier, monospace; }
.oldsite__table td:last-child {
  color: #0050a0;
  text-decoration: underline;
}

.oldsite__footer {
  background: #2f4d24;
  color: #cdcdb8;
  font-size: 10px;
  padding: 6px 14px;
  text-align: center;
  border-top: 2px solid #1a2f10;
}

/* NEW site mockup — Compass */
.newsite {
  background: var(--bg);
  padding: 16px;
  font-family: var(--font-ui);
  min-height: 360px;
}

.newsite__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.newsite__brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.newsite__brand em {
  font-style: italic;
  color: var(--ink-soft);
}

.newsite__nav {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--ink-soft);
}

.newsite__hero {
  background: var(--surface-dark);
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.newsite__hero-glow {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
}

.newsite__hero-kicker {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.newsite__hero-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 6px;
}

.newsite__hero-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.newsite__hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-chip);
}

.newsite__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.newsite__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-button);
}

.newsite__photo--accent { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); }
.newsite__photo--sky    { background: linear-gradient(135deg, var(--sky), #7eb0d8); }
.newsite__photo--ember  { background: linear-gradient(135deg, var(--ember), #f5b58c); }

.newsite__footer {
  font-size: 10px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* -------------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------------- */
.cta {
  padding: 96px 56px 64px;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 24px;
}

.cta__title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 auto 32px;
  max-width: 900px;
}

.cta__title em {
  font-style: italic;
  color: var(--primary);
}

.cta__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.cta__fine {
  font-size: 13px;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 56px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------
   Responsive — desktop -> tablet -> phone
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .topnav {
    padding: 18px 32px;
    flex-wrap: wrap;
  }
  .topnav__anchors { order: 3; flex-basis: 100%; flex-wrap: wrap; }

  .hero { padding: 12px 32px 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .hero__headline { font-size: 80px; }
  .hero__photos { grid-template-columns: 1fr 1fr; height: 240px; }
  .hero__photos > :nth-child(3) { display: none; }

  .stats { padding: 48px 32px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .features { padding: 64px 32px; }
  .features__title,
  .pricing__title,
  .compare__title { font-size: 48px; }

  .feature,
  .feature--02,
  .feature--04 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature__media { order: 0; }
  .feature__copy { order: 1; padding: 0; }

  .migration { padding: 48px 32px; }
  .migration__inner { grid-template-columns: 1fr; gap: 32px; }
  .migration__title { font-size: 36px; }
  .migration__list { grid-template-columns: repeat(2, 1fr); }

  .pricing { padding: 64px 32px; }
  .pricing__grid { grid-template-columns: 1fr; }

  .positioning { padding: 64px 32px 8px; }
  .positioning__title { font-size: 40px; }

  .compare { padding: 64px 32px; }
  .compare__grid { grid-template-columns: 1fr; }

  .cta { padding: 72px 32px 48px; }
  .cta__title { font-size: 56px; }

  .footer { padding: 24px 32px; }
}

@media (max-width: 640px) {
  .topnav {
    padding: 16px 20px;
    gap: 12px;
  }
  .topnav__anchors {
    gap: 14px;
    font-size: 12px;
  }

  .hero { padding: 8px 20px 40px; }
  .hero__masthead {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .hero__headline { font-size: 48px; line-height: 0.95; }
  .hero__photos {
    grid-template-columns: 1fr;
    height: 200px;
  }
  .hero__photos > :nth-child(2),
  .hero__photos > :nth-child(3) { display: none; }

  .stats { padding: 40px 20px; }
  .stats__grid { grid-template-columns: 1fr; gap: 20px; }
  .stat__num { font-size: 40px; }

  .features { padding: 48px 20px; }
  .features__title,
  .pricing__title,
  .compare__title { font-size: 36px; }
  .feature__num { font-size: 56px; }
  .feature__title { font-size: 28px; }

  .migration { padding: 40px 20px; }
  .migration__title { font-size: 28px; }
  .migration__list { grid-template-columns: 1fr; }

  .pricing { padding: 48px 20px; }

  .positioning { padding: 48px 20px 4px; }
  .positioning__title { font-size: 28px; }

  .compare { padding: 48px 20px; }

  .cta { padding: 56px 20px 40px; }
  .cta__title { font-size: 40px; }

  .footer { padding: 24px 20px; }
}

/* =========================================================================
   Form pages — signup.html, login.html
   Built on the same Forest & Ember tokens as the marketing index.
   ========================================================================= */

.form-page {
  padding: 64px 56px 96px;
  background: var(--bg);
}

.form-shell {
  max-width: 720px;
  margin: 0 auto;
}

.form-shell--narrow { max-width: 480px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px 44px;
  box-shadow: var(--shadow-soft);
}

.form-eyebrow {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
}

.form-title em { font-style: italic; color: var(--primary); }

.form-lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.form-code {
  font-family: var(--font-display);
  font-size: 14px;
  background: var(--accent-soft);
  color: var(--primary);
  padding: 1px 8px;
  border-radius: var(--radius-chip);
}

.form-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 8px 0 16px;
  text-align: center;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-divider-line {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 28px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: block;
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.form-optional {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 11px;
}

.form-field input,
.form-field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 120ms ease-out, background 120ms ease-out;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.form-field input::placeholder { color: var(--ink-muted); }

.form-suffix {
  display: flex;
  align-items: stretch;
}

.form-suffix input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.form-suffix__addon {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-left: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: var(--surface-sand);
  color: var(--ink-soft);
  font-size: 14px;
  font-family: var(--font-display);
}

.btn--google {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-weight: 500;
}
.btn--google:hover,
.btn--google:focus-visible {
  background: var(--bg);
  border-color: var(--ink);
}

.form-fine {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 14px 0 0;
}

.form-fine--center { text-align: center; }

.form-fine a { color: var(--primary); font-weight: 600; }
.form-fine a:hover,
.form-fine a:focus-visible { color: var(--accent); text-decoration: underline; }

.form-result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--accent);
}

.form-result a { color: var(--primary); font-weight: 600; text-decoration: underline; }

.form-result--err {
  background: #fbe8e3;
  border-color: #f0bcb1;
  color: #7d2614;
}

.form-result--err a { color: #7d2614; }

.form-error {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fbe8e3;
  border: 1px solid #f0bcb1;
  color: #7d2614;
  font-size: 13.5px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .form-page { padding: 32px 20px 48px; }
  .form-card { padding: 28px 22px; }
  .form-title { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
