/* brightprice.com — the palette and the skin.
   The company's own heritage: deep navy grounded, gold as the single thread of warmth,
   drawn from the legacy BrightPrice identity and modernized. Formal, quiet, precise —
   a sibling of the TapTap sites through type, line-art and the same sun. The evening
   navy is the default here; daylight is there for the reader who chooses it. The
   shared system is in assets/system.css. */

/* The reader can move between the daylight scheme here and the evening navy
   below; the small script sets this attribute from their choice and remembers it. */
:root[data-scheme="light"] {
  color-scheme: light;

  /* ground and ink */
  --bg: #f5f7fa;
  --bg-soft: #eef2f8;
  --bg-white: #ffffff;
  --surface: #ffffff;
  --ink: #12233f;
  --ink-soft: #4a5872;
  --rule: #dbe3ee;
  --rule-strong: #b9c6d9;
  --rule-soft: #e8edf5;

  /* actions */
  --accent: #17408f;
  --accent-deep: #0f2c6b;
  --button-bg: #12233f;
  --button-ink: #ffffff;
  --button-hover: #1b3560;
  --shadow-btn: 0 12px 26px rgba(18, 35, 63, 0.22);

  /* warm callout and banner */
  --callout-bg: #fdf3d6;
  --callout-ink: #6b4a06;
  --banner-bg: #0e2547;
  --banner-ink: #e8effc;
  --banner-chip-bg: #e8c168;
  --banner-chip-ink: #0e2547;

  /* the gold thread and the drawn line */
  --gold: #e8c168;
  --gold-deep: #bb8f2e;
  --gold-ink: #7d5a10;
  --blue-ink: #23477f;
  --mark-blue: #0e2547;
  --ray: #c8901f;
  --focus: #17408f;

  /* chrome */
  --header-bg: rgba(255, 255, 255, 0.94);
  --header-rule: #e2e9f4;
  --nav-ink: #3c4c68;
  --nav-hover-bg: #eef2f8;
  --wordmark: #12233f;
  --wordmark-accent: #8a6414;
  --menu-shadow: rgba(14, 37, 71, 0.14);

  /* tints */
  --tint-blue-bg: #e9eff9;
  --tint-gold-bg: #fdf0cf;
  --chip-bg: #ffffff;
  --chip-border: #d9c48f;
  --milestone-bg: #e8c168;
  --milestone-ink: #4a3200;
  --milestone-line: #cbb887;
  --milestone-shadow: rgba(14, 37, 71, 0.18);
  --band-warm: rgba(253, 240, 207, 0.6);
  --vignette-blue: #e9eff9;
  --vignette-gold: #fdf0cf;
  --vignette-dot: #cfd8e6;

  /* shadows */
  --shadow-1: 0 10px 28px rgba(14, 37, 71, 0.08);
  --shadow-2: 0 18px 44px rgba(14, 37, 71, 0.12);

  /* the hero light */
  --story-glow: rgba(232, 193, 104, 0.28);
  --hero-a: #ffffff;
  --hero-b: #eef2f8;

  /* BrightPrice's own hero: the navy field */
  --bp-hero-a: #17365f;
  --bp-hero-b: #0e2547;
  --bp-hero-ink: #ffffff;
  --bp-hero-soft: #c6d5ec;
  --bp-hero-eyebrow: #e8c168;
  --bp-hero-line: #6d87ab;

  /* the painted scene tokens are unused here but kept so the shared file is whole */
  --scene-sky-a: #eef2f8;
  --scene-sky-b: #f7f9fc;
  --scene-hill-a: #e2e8f2;
  --scene-hill-b: #eef2f8;
  --scene-road: #ffffff;
  --scene-road-edge: #c9d5e6;
  --scene-cloud: #ffffff;
  --scene-glow: #f4e2b3;
  --scene-grass: #b9a26a;
  --sun-a: #fede53;
  --sun-b: #e8a63c;

  /* the navy footer */
  --foot-bg: #0e2547;
  --foot-ink: #d6e0f2;
  --foot-muted: #b3c3dc;
  --foot-heading: #e8c168;
  --foot-link: #9cc0ff;
  --foot-gold: #e8c168;
  --foot-blue: #7fb2ff;
  --foot-wordmark: #e8effc;
  --foot-line: rgba(154, 180, 220, 0.3);
  --foot-hover: rgba(127, 178, 255, 0.14);
}

/* the default here: the company's evening navy */
:root {
  color-scheme: dark;

    --bg: #0b1830;
    --bg-soft: #0f2040;
    --bg-white: #0d1c36;
    --surface: #122242;
    --ink: #eef2f9;
    --ink-soft: #b7c4d9;
    --rule: #24395c;
    --rule-strong: #3c5580;
    --rule-soft: #1d3050;

    --accent: #9dc0ff;
    --accent-deep: #c3d6ff;
    --button-bg: #e8c168;
    --button-ink: #0c1a30;
    --button-hover: #f0d189;
    --shadow-btn: 0 12px 26px rgba(0, 0, 0, 0.45);

    --callout-bg: #1c2f50;
    --callout-ink: #f0cf7e;
    --banner-bg: #071022;
    --banner-ink: #dbe7fb;
    --banner-chip-bg: #e8c168;
    --banner-chip-ink: #0c1a30;

    --gold: #e8c168;
    --gold-deep: #b98f2f;
    --gold-ink: #f0cf7e;
    --blue-ink: #8fb7ff;
    --mark-blue: #7fb2ff;
    --ray: #d9a53a;
    --focus: #9dc0ff;

    --header-bg: rgba(11, 24, 48, 0.94);
    --header-rule: #1d3050;
    --nav-ink: #c6d3e8;
    --nav-hover-bg: #16294a;
    --wordmark: #e8effc;
    --wordmark-accent: #f0cf7e;
    --menu-shadow: rgba(0, 0, 0, 0.5);

    --tint-blue-bg: #16294a;
    --tint-gold-bg: #2b2612;
    --chip-bg: #122242;
    --chip-border: #4a5f86;
    --milestone-bg: #e8c168;
    --milestone-ink: #3a2a00;
    --milestone-line: #3c5580;
    --milestone-shadow: rgba(0, 0, 0, 0.45);
    --band-warm: rgba(43, 38, 18, 0.5);
    --vignette-blue: #16294a;
    --vignette-gold: #2b2612;
    --vignette-dot: #3c5580;

    --shadow-1: 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 18px 44px rgba(0, 0, 0, 0.45);

    --story-glow: rgba(232, 193, 104, 0.08);
    --hero-a: #0b1830;
    --hero-b: #0f2040;

    --bp-hero-a: #0d1c36;
    --bp-hero-b: #071022;
    --bp-hero-ink: #f2f6fd;
    --bp-hero-soft: #b7c4d9;
    --bp-hero-eyebrow: #e8c168;
    --bp-hero-line: #3c5580;

    --scene-sky-a: #0f2040;
    --scene-sky-b: #12254a;
    --scene-hill-a: #16294a;
    --scene-hill-b: #1b3055;
    --scene-road: #dfe8f8;
    --scene-road-edge: #5a7aa8;
    --scene-cloud: #a9c2ea;
    --scene-glow: #6e5c2c;
    --scene-grass: #6e5c2c;
    --sun-a: #fede53;
    --sun-b: #e8a63c;

    --foot-bg: #071022;
    --foot-ink: #cfdcf1;
    --foot-muted: #a9bcd9;
    --foot-heading: #e8c168;
    --foot-link: #9cc0ff;
    --foot-gold: #e8c168;
    --foot-blue: #7fb2ff;
    --foot-wordmark: #dbe7fb;
    --foot-line: rgba(154, 180, 220, 0.28);
    --foot-hover: rgba(127, 178, 255, 0.12);
}

/* ---------- BrightPrice's own pieces ---------- */

/* the navy letterhead hero */
.bp-hero {
  position: relative;
  padding: clamp(3.2rem, 6vw, 5.4rem) 0 clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(232, 193, 104, 0.14) 0%, rgba(232, 193, 104, 0) 70%),
    linear-gradient(168deg, var(--bp-hero-a) 0%, var(--bp-hero-b) 100%);
  color: var(--bp-hero-ink);
  overflow: hidden;
}

.bp-hero .eyebrow {
  color: var(--bp-hero-eyebrow);
}

.bp-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.8vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--bp-hero-ink);
  max-width: 22ch;
  margin-inline: auto;
}

.bp-rule {
  width: 132px;
  height: 5px;
  border-radius: 3px;
  margin: 1.5rem auto;
  background: linear-gradient(90deg, rgba(232, 193, 104, 0) 0%, var(--gold) 50%, rgba(232, 193, 104, 0) 100%);
}

.bp-lede {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--bp-hero-soft);
  max-width: 54ch;
  margin: 0 auto;
}

.bp-sunrise {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.bp-sunrise img {
  display: block;
  width: min(520px, 92%);
  margin-inline: auto;
  height: auto;
  aspect-ratio: 520 / 150;
  object-fit: cover;
  object-position: center 68%;
  border-radius: 18px;
}

.bp-sunrise .sun-rays {
  stroke: var(--ray);
}

.bp-sunrise .horizon {
  stroke: var(--bp-hero-line);
}

.bp-sunrise .under-line {
  stroke: var(--bp-hero-b);
}

.bp-sunrise .sky-dot-blue {
  fill: var(--bp-hero-line);
}

.bp-sunrise .sky-dot-gold {
  fill: var(--ray);
}

/* the brands */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s ease;
}

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

/* v8: the brand cards carry the real logos — the TapTap Health lockup
   (Logo-05, full colour, from the product design specs) and the TapTap Medicare
   legacy lockup. The Medicare wordmark keeps its legacy blues in the daylight
   scheme and lifts to the soft white on the evening navy card, exactly as on
   the Medicare site itself. */
.brand-lockup {
  display: grid;
  place-items: center;
  min-height: 76px;
  margin: 0 auto 1.1rem;
}

.brand-lockup svg {
  display: block;
  height: 50px;
  width: auto;
}

.ttm-lockup .lg-g { fill: #fae453; }
.ttm-lockup .lg-a,
.ttm-lockup .lg-b { fill: #eaf1ff; }

:root[data-scheme="light"] .ttm-lockup .lg-a { fill: #156aff; }
:root[data-scheme="light"] .ttm-lockup .lg-b { fill: #0049b2; }

.brand-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3em;
}

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

.brand-card .btn {
  margin-top: 0.6rem;
}

/* the navy contact card */
.contact-navy {
  background: linear-gradient(165deg, var(--bp-hero-a) 0%, var(--bp-hero-b) 100%);
  color: var(--bp-hero-ink);
  border-radius: 26px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-2);
}

.contact-navy h2 {
  color: var(--bp-hero-ink);
}

.contact-navy p {
  color: var(--bp-hero-soft);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-inline: auto;
}

.contact-navy .contact-link {
  color: var(--foot-gold);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
}

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

.contact-navy .ai-note {
  color: var(--bp-hero-soft);
}

.contact-navy .ai-note.center {
  margin-top: 1.4rem;
}

/* licensing block */
.licensing-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 9px solid var(--gold);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-1);
}

/* small screens */
@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

/* v4: the base scheme (evening navy) shows the evening letterhead art; the
   daylight tone shows only when the reader selects the daylight scheme. */
html:not([data-scheme="light"]) .art-day {
  display: none;
}

/* v7: the BrightPrice logo — traced from the approved artwork: the golden rising
   sun (radial light from its base), the fan of long rays, "BrightPrice" in the
   legacy letterforms (only B and P capitals) and the golden sweeping swoosh that
   rises to a flick. On the navy field the wordmark is soft warm white; in the
   daylight scheme the letterforms carry the legacy two-tone blues and the gold
   deepens. The navy footer keeps the white-and-gold treatment in both schemes. */
.brand-logo {
  display: block;
  height: 50px;
  width: auto;
}

.brand-logo .bp-dome-a { stop-color: #fee15c; }
.brand-logo .bp-dome-b { stop-color: #fbbc3b; }
.brand-logo .bp-word-a,
.brand-logo .bp-word-b { stop-color: #faf3e9; }
.brand-logo .bp-rays,
.brand-logo .bp-swash { fill: #fabd40; }

:root[data-scheme="light"] .brand-logo .bp-dome-a { stop-color: #d9a94e; }
:root[data-scheme="light"] .brand-logo .bp-dome-b { stop-color: #c99a34; }
:root[data-scheme="light"] .brand-logo .bp-word-a { stop-color: #23567f; }
:root[data-scheme="light"] .brand-logo .bp-word-b { stop-color: #161a4c; }
:root[data-scheme="light"] .brand-logo .bp-rays,
:root[data-scheme="light"] .brand-logo .bp-swash { fill: #bb8f2e; }

/* the footer sits on navy in both schemes: keep the white-and-gold treatment */
:root[data-scheme="light"] .foot-logo .bp-dome-a { stop-color: #fee15c; }
:root[data-scheme="light"] .foot-logo .bp-dome-b { stop-color: #fbbc3b; }
:root[data-scheme="light"] .foot-logo .bp-word-a,
:root[data-scheme="light"] .foot-logo .bp-word-b { stop-color: #faf3e9; }
:root[data-scheme="light"] .foot-logo .bp-rays,
:root[data-scheme="light"] .foot-logo .bp-swash { fill: #fabd40; }

.foot-logo { height: 44px; }

@media (max-width: 700px) {
  .brand-logo { height: 38px; }
}
