/* TapTap public websites — shared design system.
   One authored world for taptapmedicare.com and brightprice.com: the same grammar of
   warm grounds, drawn line-art, hairline cards and calm motion; the palette, the
   artwork and a few gestures come from styles.css of each site, so the two feel like
   siblings, not twins.

   Colour never appears here as a literal: every surface, line and shadow reads a token
   defined in styles.css (light and dark). The inline SVG artwork is themed the same
   way, through the .scene-* and .art-* classes below. */

/* ---------- the typeface (self-hosted, open licence) ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('DM-Sans.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 660;
  letter-spacing: -0.02em;
}

/* ---------- utilities ---------- */
.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, 100% - 2.5rem);
  margin-inline: auto;
}

.wrap-prose {
  width: min(720px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--banner-bg);
  color: var(--banner-ink);
  font-weight: 640;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus-visible {
  top: 0.75rem;
}

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

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.small {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.vignette {
  flex: 0 0 auto;
  width: 152px;
  height: auto;
}

.vignette.center {
  display: block;
  width: 132px;
  margin: 0 auto 1.1rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ---------- buttons and text links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.8rem 1.85rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 1.125rem;
  font-weight: 660;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--button-bg);
  color: var(--button-ink);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--button-hover);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--rule-strong);
  color: var(--accent-deep);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--tint-blue-bg);
}

.btn .arr {
  font-weight: 760;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 660;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15rem;
}

.link-arrow .arr {
  transition: transform 0.18s ease;
}

.link-arrow:hover {
  color: var(--accent-deep);
}

.link-arrow:hover .arr {
  transform: translateX(4px);
}

.strong-link {
  font-weight: 740;
  color: var(--accent);
  text-decoration-thickness: 2px;
}

/* ---------- preview banner (preview builds only) ---------- */
.preview-banner {
  position: relative;
  z-index: 60;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  background: var(--banner-bg);
  color: var(--banner-ink);
}

.preview-banner .dir-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
  background: var(--banner-chip-bg);
  color: var(--banner-chip-ink);
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--header-rule);
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.mark {
  width: 46px;
  height: 46px;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 740;
  letter-spacing: -0.025em;
  color: var(--wordmark);
  white-space: nowrap;
}

.wordmark em {
  font-style: normal;
  color: var(--wordmark-accent);
}

.main-nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}

.main-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 620;
  text-decoration: none;
  color: var(--nav-ink);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--nav-hover-bg);
  color: var(--accent-deep);
}

/* ---------- the colour choice ---------- */
/* The site opens in its own default (taptapmedicare.com in daylight,
   brightprice.com in the evening navy); the reader can move between the two and
   the small script remembers the choice. Without the script the button never
   shows, so there is nothing dead on the page. */
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

html.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  background: var(--nav-hover-bg);
  border-color: var(--rule-strong);
}

.theme-toggle:focus-visible {
  border-radius: 999px;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-toggle .tt-rays {
  stroke: var(--ray);
}

.theme-toggle .tt-sun,
.theme-toggle .tt-moon {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.theme-toggle:hover .tt-moon {
  transform: rotate(-14deg);
}

.theme-toggle:hover .tt-sun {
  transform: rotate(18deg);
}

.theme-toggle .tt-moon {
  fill: var(--blue-ink);
}

.theme-toggle .tt-sun {
  display: none;
}

:root[data-scheme="dark"] .theme-toggle .tt-sun {
  display: block;
}

:root[data-scheme="dark"] .theme-toggle .tt-moon {
  display: none;
}

/* ---------- story hero (home page) ---------- */
.story-hero {
  position: relative;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(1.2rem, 2.5vw, 2rem);
  background:
    radial-gradient(58% 60% at 50% 34%, var(--story-glow) 0%, rgba(255, 214, 92, 0) 70%),
    linear-gradient(var(--hero-a) 0%, var(--hero-b) 100%);
  overflow: hidden;
}

.title-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.story-copy {
  position: relative;
  text-align: center;
}

.story-copy h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 .uline {
  /* v5: a calm single arc with rounded ends — even clearance under the
descenders,
     the same width as the words it underlines, no dangling tail. */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'><path d='M6 12Q150 6 294 12' fill='none' stroke='%23ffab40' stroke-width='4.5' stroke-linecap='round'/></svg>") bottom left / 100% 0.18em no-repeat;
  padding-bottom: 0.23em;
}

.lede {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.story-copy .lede {
  max-width: 46ch;
  margin: 0 auto 1.7rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.story-copy .ai-note {
  justify-content: center;
  max-width: 48ch;
  margin: 0 auto 0.85rem;
  text-align: left;
}

.trust {
  font-size: 0.9875rem;
  font-weight: 620;
  color: var(--gold-ink);
  letter-spacing: 0.01em;
}

/* ---------- the painted scene ---------- */
.story-scene {
  background: var(--scene-sky-a);
  line-height: 0;
}

.scene-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 560;
  object-fit: cover;
  object-position: center 60%;
  /* v5: the painting rises out of the colour above — its top edge fades so the
     story hero and the scene read as one continuous sky, in both schemes. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 110px);
}

/* v4 (2026-10-16): the hero is painted raster — two renditions, one per scheme.
   The pair swaps on the scheme attribute set on <html>; each site's styles.css
   holds its own base-scheme rule (Medicare opens day, BrightPrice evening). */
html[data-scheme="dark"] .art-day,
html[data-scheme="light"] .art-eve {
  display: none;
}

/* Painted vignettes sit as soft tiles in both schemes. */
img.vignette,
img.help-vignette,
img.about-vignette {
  border-radius: 22px;
}

/* Gradient fills (sky, sun) are set as SVG attributes in the markup — a fragment
   reference inside an external stylesheet would resolve against the sheet, not the
   page. The stop colours are still themed here. */

g.scene-cloud {
  fill: var(--scene-cloud);
}

.scene-hill-back {
  fill: var(--scene-hill-a);
}

.scene-hill-front {
  fill: var(--scene-hill-b);
}

.scene-road {
  fill: var(--scene-road);
  stroke: var(--scene-road-edge);
}

.scene-road-line {
  stroke: var(--gold);
}

.scene-glow {
  fill: var(--scene-glow);
}

.scene-ray {
  stroke: var(--ray);
}

.scene-tree-gold {
  fill: var(--gold); 
  stroke: var(--gold-deep);
}

.scene-tree-blue {
  fill: var(--tint-blue-bg);
  stroke: var(--blue-ink);
}

.scene-bird {
  stroke: var(--blue-ink);
}

.scene-tail {
  stroke: var(--gold-deep);
}

.scene-spark {
  stroke: var(--ray);
}

.scene-dot-blue {
  fill: var(--blue-ink);
}

.scene-dot-gold {
  fill: var(--ray);
}

.scene-grass {
  stroke: var(--scene-grass);
}

.scene-flower-gold {
  fill: var(--ray);
}

.scene-flower-light {
  fill: var(--sun-a);
}

.scene-flower-blue {
  fill: var(--blue-ink);
}

#scene-sun-grad .sun-top,
.sun-top {
  stop-color: var(--sun-a);
}

#scene-sun-grad .sun-bottom,
.sun-bottom {
  stop-color: var(--sun-b);
}

#scene-sky-grad .sky-top,
.sky-top {
  stop-color: var(--scene-sky-a);
}

#scene-sky-grad .sky-bottom,
.sky-bottom {
  stop-color: var(--scene-sky-b);
}

/* the brand mark (sun over a path) */
.mark-ray {
  stroke: var(--ray);
}

.mark-sun {
  fill: var(--gold);
}

.mark-line {
  stroke: var(--mark-blue);
}

.mark-path {
  stroke: var(--mark-blue);
}

.cloud {
  animation: tt-drift 52s ease-in-out infinite alternate;
}

.cloud-b {
  animation-duration: 68s;
  animation-direction: alternate-reverse;
}

.cloud-c {
  animation-duration: 44s;
}

@keyframes tt-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(34px);
  }
}

/* On phones the painted scene keeps its presence: crop instead of shrinking. */
@media (max-width: 700px) {
  .scene-art {
    height: 330px;
    aspect-ratio: auto;
    object-position: center 80%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
  }
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--story-glow) 0%, rgba(255, 214, 92, 0) 72%),
    linear-gradient(var(--hero-a) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.026em;
  margin-bottom: 0.4em;
}

.page-hero .lede {
  max-width: 52ch;
  margin: 0 auto;
}

.page-hero .vignette {
  margin: 0 auto 1.2rem;
}

/* ---------- disclaimer ---------- */
.disclaimer-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding: 1.4rem 0;
}

.disclaimer {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 9px solid var(--gold);
  border-radius: 20px;
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-1);
}

.disclaimer h2 {
  font-size: 1.22rem;
  margin-bottom: 0.3em;
  color: var(--callout-ink);
}

.disclaimer p {
  margin: 0;
  line-height: 1.6;
}

.disclaimer a {
  color: var(--accent);
  font-weight: 640;
}

.disc-icon {
  flex: 0 0 auto;
  padding-top: 0.15rem;
}

.disc-icon circle {
  stroke: var(--gold-deep);
}

.disc-icon path {
  stroke: var(--gold-ink);
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(56px, 7vw, 88px);
}

.section-alt {
  background: var(--bg-white);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.section-head.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: none;
}

.section-head.split > div {
  max-width: 58ch;
}

.section h2 {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.4em;
}

.section-intro {
  font-size: 1.225rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.section-link {
  margin-top: 2.2rem;
}

/* prose pages (about, privacy) */
.prose h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 1.95rem);
  margin-top: 1.8em;
  margin-bottom: 0.45em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-soft);
}

.prose a {
  color: var(--accent);
  font-weight: 620;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-1);
}

.panel + .panel {
  margin-top: 1.5rem;
}

.panel-sep {
  margin-top: 2.4rem;
}

.panel + .prose {
  margin-top: 2.4rem;
}

.panel-gold {
  background: var(--callout-bg);
  border-color: var(--gold-deep);
}

.panel-gold h2,
.panel-gold h3 {
  color: var(--callout-ink);
}

.panel-gold p {
  color: var(--ink);
}

/* ---------- basics cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 1.8rem 1.7rem 1.9rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tint-blue-bg);
  margin-bottom: 1.1rem;
}

.card-icon.tint-gold {
  background: var(--tint-gold-bg);
}

.card-icon path,
.card-icon circle,
.card-icon rect {
  stroke: var(--blue-ink);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.15em;
}

.card-label {
  font-size: 0.9875rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.8em;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* ---------- the journey (key dates) ---------- */
.dates-section {
  background: linear-gradient(
    180deg,
    rgba(255, 241, 217, 0) 0%,
    var(--band-warm) 14%,
    var(--band-warm) 86%,
    rgba(255, 241, 217, 0) 100%
  );
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
  position: relative;
}

.journey::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 18px;
  bottom: 18px;
  border-left: 3px dashed var(--milestone-line);
}

.journey-step {
  position: relative;
  padding: 0 0 2rem 78px;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.milestone {
  position: absolute;
  left: 0;
  top: -6px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--milestone-bg);
  border: 3px solid var(--surface);
  box-shadow: 0 6px 16px var(--milestone-shadow);
  font-weight: 760;
  font-size: 1.25rem;
  color: var(--milestone-ink);
}

.date-chip {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.42rem 1rem;
  border-radius: 14px;
  background: var(--chip-bg);
  border: 1.5px solid var(--chip-border);
  color: var(--gold-ink);
  font-weight: 720;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.date-copy {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- help cards ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.help-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.help-card:hover {
  transform: translateY(-5px);
}

.help-vignette {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto 1rem;
}

.help-card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.45em;
}

.help-card p {
  color: var(--ink-soft);
  margin-bottom: 0.65em;
}

.help-card p:last-child {
  margin-bottom: 0;
}

.help-card .link-arrow {
  font-size: 1.0625rem;
}

/* ---------- artwork vignettes (themed SVG parts) ---------- */
.art-blob-blue {
  fill: var(--vignette-blue);
}

.art-blob-gold {
  fill: var(--vignette-gold);
}

.art-line {
  stroke: var(--blue-ink);
}

.art-line-gold {
  stroke: var(--ray);
}

.art-paper {
  fill: var(--surface);
}

.art-fill-blue {
  fill: var(--blue-ink);
}

.art-fill-gold {
  fill: var(--ray);
}

.art-fill-sun {
  fill: var(--sun-a);
}

.art-fill-golddeep {
  fill: var(--gold-deep);
}

.art-seal {
  fill: var(--gold);
  stroke: var(--gold-deep);
}

.art-seal-inner {
  stroke: var(--gold-ink);
}

.art-ribbon {
  fill: var(--ray);
  stroke: var(--gold-deep);
}

.art-muted {
  fill: var(--vignette-dot);
}

.art-check {
  stroke: var(--gold-ink);
}

.art-mail-flap {
  stroke: var(--blue-ink);
}

/* ---------- about teaser ---------- */
.about-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: clamp(1.7rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-1);
}

.about-vignette {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.about-copy h2 {
  margin-bottom: 0.35em;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 0.7em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- contact ---------- */
.contact-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding-bottom: clamp(72px, 9vw, 106px);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: clamp(1.9rem, 3.6vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-2);
  margin-top: -3.4rem;
}

.contact-card .lede {
  margin-inline: auto;
  max-width: 44ch;
}

.contact-rows {
  margin: 1.4rem 0 1.2rem;
  font-size: 1.3rem;
}

.contact-rows p {
  margin-bottom: 0.5em;
}

.contact-label {
  font-weight: 620;
  color: var(--ink-soft);
}

.contact-link {
  font-weight: 740;
  color: var(--accent);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
}

.contact-link:hover {
  color: var(--accent-deep);
}

.ai-note.center {
  justify-content: center;
  margin-inline: auto;
  max-width: 48ch;
  text-align: left;
}

/* reach cards (contact page) */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.reach-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 1.7rem 1.6rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease;
}

.reach-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
}

.reach-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.4rem;
}

.reach-value {
  display: block;
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.6rem);
  font-weight: 740;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* ---------- not found ---------- */
.notfound {
  padding-block: clamp(70px, 12vw, 140px);
  text-align: center;
}

.notfound .sun-line {
  margin: 0 auto 1.8rem;
  width: min(300px, 70%);
}

.notfound h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.2rem);
}

.notfound p {
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.notfound .cta-row {
  margin-top: 1.6rem;
}

/* ---------- footer ---------- */
.site-foot {
  margin-top: 0;
}

.foot-wave {
  line-height: 0;
  margin-bottom: -1px;
}

.foot-wave svg {
  width: 100%;
  height: 64px;
}

.foot-wave path {
  fill: var(--foot-bg);
}

.foot-inner {
  background: var(--foot-bg);
  color: var(--foot-ink);
  padding: clamp(2.4rem, 4vw, 3.4rem) 0 2rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.mark-light {
  width: 52px;
  height: 52px;
}

.wordmark.light {
  color: var(--foot-wordmark);
  font-size: 1.5rem;
}

.wordmark.light em {
  color: var(--foot-gold);
}

.foot-mark-ray {
  stroke: var(--foot-gold);
}

.foot-mark-sun {
  fill: var(--foot-gold);
}

.foot-mark-line {
  stroke: var(--foot-blue);
}

.foot-mark-path {
  stroke: var(--foot-blue);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.foot-nav a {
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--foot-line);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 620;
  text-decoration: none;
  color: var(--foot-ink);
  transition: background-color 0.16s ease;
}

.foot-nav a:hover {
  background: var(--foot-hover);
}

.foot-contact {
  margin-bottom: 1.8rem;
}

.foot-contact p {
  margin: 0.2em 0;
  font-size: 1.05rem;
  color: var(--foot-ink);
}

.foot-contact a {
  color: var(--foot-link);
  font-weight: 660;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.foot-contact a:hover {
  color: var(--foot-heading);
}

.foot-text {
  max-width: 74ch;
  border-top: 1px solid var(--foot-line);
  padding-top: 1.6rem;
}

.foot-text h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--foot-heading);
  margin-bottom: 0.5em;
}

.foot-text p {
  font-size: 0.9875rem;
  line-height: 1.65;
  color: var(--foot-muted);
}

.foot-text a {
  color: var(--foot-link);
  font-weight: 620;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--foot-line);
  font-size: 0.9875rem;
}

.foot-base p {
  margin: 0;
}

.to-top {
  color: var(--foot-heading);
  font-weight: 640;
  text-decoration: none;
}

.to-top:hover {
  text-decoration: underline;
}

/* ---------- motion ---------- */
/* Progressive enhancement: the gentle rise is switched on only when the small local
   script has run (it sets .js on <html>). Without it every element is simply visible. */
html.js .rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0, 0, 1),
    transform 0.9s cubic-bezier(0.2, 0, 0, 1);
}

html.js .rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cloud {
    animation: none;
  }

  .btn,
  .card,
  .help-card,
  .reach-card,
  .link-arrow .arr,
  .theme-toggle,
  .theme-toggle .tt-sun,
  .theme-toggle .tt-moon {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .help-card:hover,
  .reach-card:hover {
    transform: none;
  }

  .theme-toggle:hover .tt-moon,
  .theme-toggle:hover .tt-sun {
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .card-grid,
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  /* The navigation stays visible on small screens: it wraps instead of hiding behind
     a menu control. Fewer surprises, no script needed, nothing to discover. The header
     scrolls away so the taller two-row bar does not hold the screen. */
  .site-head {
    position: static;
    backdrop-filter: none;
  }

  .head-inner {
    flex-wrap: wrap;
    padding-block: 0.65rem 0.4rem;
    gap: 0.4rem 1.2rem;
  }

  /* the colour toggle stays on the wordmark's line, at its far end; the
     navigation keeps the second line all to itself */
  .theme-toggle {
    order: 1;
    margin-left: auto;
  }

  .main-nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    gap: 0.15rem 0.1rem;
    padding-bottom: 0.35rem;
  }

  .main-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
  }
}

@media (max-width: 860px) {
  .section-head.split .vignette {
    display: none;
  }
}

@media (max-width: 700px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-vignette {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .help-grid,
  .reach-grid {
    grid-template-columns: 1fr;
  }

  .disclaimer {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-row .btn {
    width: 100%;
  }

  .contact-rows {
    font-size: 1.15rem;
  }

  .journey-step {
    padding-left: 66px;
  }

  .milestone {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }

  .journey::before {
    left: 22px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 1.15rem;
  }

  .mark {
    width: 40px;
    height: 40px;
  }
}

/* ---------- print ---------- */
@media print {
  .preview-banner,
  .site-head,
  .skip,
  .foot-wave,
  .to-top,
  .title-rays {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .disclaimer,
  .card,
  .help-card,
  .about-card,
  .contact-card,
  .panel {
    box-shadow: none;
    border: 1pt solid #999;
  }

  a {
    color: #000;
  }

  .foot-inner {
    background: #fff;
    color: #000;
  }

  .foot-text p,
  .foot-text a,
  .foot-text h3,
  .foot-base,
  .to-top {
    color: #000;
  }
}
