/* Self-hosted fonts. Google Fonts was removed so no visitor IP reaches
   Google, which is what lets this site run with no consent banner. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/InterTight-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/InterTight-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/InterTight-700.woff2') format('woff2');
}

/* ==========================================================================
   XAUUSD landing - single stylesheet, no build step.
   Change the tokens in :root and the whole site follows.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------
     Brand palette, light theme.
     Values taken from the original brand stylesheet and logo, not sampled
     from a screenshot.

       --dark        #0B1524   -> page
       --dark-panel  #132133   -> cards
       --dark-line   #22354D   -> hairlines
       --dark-muted  #93A3B8   -> muted text
       --accent      #2ED47A   -> mint
       --accent-dim  #26BD6C
       --accent-ink  #0E9E57

     Every pairing below is contrast-verified. Hard rule: mint never
     carries text on white (1.94:1) and never sits under white text.
     ------------------------------------------------------------------ */

  /* Surfaces - The brand light theme */
  --ink-950: #ffffff; /* page    */
  --ink-900: #f7f9fc; /* cards   */
  --ink-850: #f1f5fa; /* insets  */
  --ink-800: #eaf0f7;
  --ink-750: #e4e9f1; /* hover   */

  /* Hairlines */
  --line: #e4e9f1;
  --line-strong: #c7d2e0;

  /* Text - dark on light. Names keep their old order: 100 strongest.
     --mist-500 carries the risk disclaimers, so it must clear WCAG AA. */
  --mist-100: #0f1b2d; /* 17.28:1  AAA - headings */
  --mist-300: #3f4a5c; /*  8.95:1  AAA - body      */
  --mist-400: #4e5868; /*  7.28:1  AAA - secondary */
  --mist-500: #5c6675; /*  5.81:1  AA  - small     */

  /* Mint. On white the brand mint is 1.94:1 and cannot carry text, so text
     uses the darkened --accent-600 and the true mint is reserved for button
     fills, bars and marks. 600 darkest, 300 lightest. */
  --accent-600: #0a7440; /* 5.86:1 - the only mint safe for text */
  --accent-500: #2ed47a; /* brand mint - fills and graphics only */
  --accent-400: #26bd6c; /* button hover */
  --accent-300: #eaf7f0; /* tint */

  /* Ink used on top of the mint fill - never white (white on mint is 1.94:1). */
  --on-accent: #0f1b2d; /* 8.9:1 */

  /* Data-only colours, both AA on white. */
  --pos: #0a7440; /* 5.86:1 */
  --neg: #b3261e; /* 6.54:1 */

  /* Conventional link blue. 7.13:1 on white, AAA. */
  --link: #1553b6;

  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 72rem;
  --maxw-narrow: 46rem;

  /* The brand uses Inter for body and Inter Tight for display. */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* --- Reset ---------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ink-950);
  color: var(--mist-300);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--mist-100);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent-500);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--accent-500);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

/* --- Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container--narrow {
  max-width: var(--maxw-narrow);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

main {
  flex: 1;
}

.section {
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 7rem;
  }
}

.section--bordered {
  border-bottom: 1px solid var(--line);
}

.page-head {
  border-bottom: 1px solid var(--line);
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .page-head {
    padding-block: 6rem;
  }
}

/* Soft mint bloom, used sparingly. */
.bloom {
  background-image:
    radial-gradient(58rem 32rem at 50% -8%, rgba(46, 212, 122, 0.1), transparent 62%),
    radial-gradient(38rem 24rem at 88% 4%, rgba(46, 212, 122, 0.05), transparent 60%);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}

/* --- Typography ----------------------------------------------------------- */

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-600);
}

.h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.h3 {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.18;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--mist-400);
  max-width: 42rem;
}

.body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--mist-400);
}

.small {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--mist-500);
}

.muted {
  color: var(--mist-500);
}

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

.tnum {
  font-variant-numeric: tabular-nums lining-nums;
}

.stack > * + * {
  margin-top: 1rem;
}

.max-2 {
  max-width: 42rem;
}
.max-3 {
  max-width: 52rem;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn--lg {
  height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--accent-500);
  color: var(--on-accent);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 0 6px 16px -10px rgba(15, 27, 45, 0.28);
}

.btn--primary:hover {
  background: var(--accent-400);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.45), 0 8px 20px -10px rgba(15, 27, 45, 0.34);
}

.btn--secondary {
  border-color: var(--line-strong);
  background: var(--ink-900);
  color: var(--mist-100);
}

.btn--secondary:hover {
  border-color: var(--accent-600);
  background: var(--ink-750);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .btn-row {
    flex-direction: row;
  }
  .btn-row--center {
    justify-content: center;
  }
}

.link-gold {
  color: var(--accent-600);
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.link-gold:hover {
  color: var(--accent-600);
}

.link-inline {
  color: var(--accent-600);
  text-underline-offset: 4px;
}

.link-inline:hover {
  text-decoration: underline;
}

/* --- Header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.header.is-scrolled,
.header.is-open {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mist-100);
  letter-spacing: -0.01em;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  color: var(--mist-400);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--mist-100);
}

.nav a[aria-current='page'] {
  color: var(--accent-600);
}

.header__cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  color: var(--mist-300);
  border-radius: 8px;
}

@media (min-width: 1024px) {
  .nav,
  .header__cta {
    display: flex;
  }
  .header__toggle {
    display: none;
  }
}

.header__toggle .icon-close,
.header.is-open .icon-open {
  display: none;
}

.header.is-open .icon-close {
  display: block;
}

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.header.is-open .drawer {
  display: block;
}

@media (min-width: 1024px) {
  .header.is-open .drawer {
    display: none;
  }
}

.drawer__nav a {
  display: block;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--mist-300);
}

.drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.25rem 1.75rem;
}

/* --- Cards ---------------------------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  padding: 1.75rem;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
}

.card--featured {
  border-color: rgba(168, 134, 47, 0.45);
  box-shadow:
    0 0 0 1px rgba(46, 212, 122, 0.10),
    0 18px 40px -28px rgba(15, 27, 45, 0.22);
}

.card--featured:hover {
  border-color: rgba(168, 134, 47, 0.6);
}

.card--flex {
  display: flex;
  flex-direction: column;
}

.card--pad {
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .card--pad {
    padding: 2.5rem;
  }
}

.card--cta {
  text-align: center;
  padding: 3rem 1.75rem;
}

@media (min-width: 640px) {
  .card--cta {
    padding: 4rem 3rem;
  }
}

.push {
  margin-top: auto;
}

/* --- Badges --------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mist-400);
}

.badge--accent {
  border-color: rgba(168, 134, 47, 0.4);
  background: var(--accent-300);
  color: var(--accent-600);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist-400);
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent-400);
}

/* --- Grids ---------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--split {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
  }
}

/* Four sequential steps. Two-up early so the cards never get too narrow to
   read, four-up only once there is room for a single left-to-right scan. */
@media (min-width: 600px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Hairline-separated panel grid. */
.lined {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lined > * {
  background: var(--ink-900);
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .lined--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lined--metrics > * {
  padding: 1rem;
}

@media (min-width: 640px) {
  .lined--metrics > * {
    padding: 1.25rem;
  }
}

.lined--metrics {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .lined--metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Metrics -------------------------------------------------------------- */

.metric__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist-500);
}

.metric__value {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mist-100);
}

.metric__value--gold {
  color: var(--accent-600);
}

/* --- Definition rows ------------------------------------------------------ */

.rows {
  border-top: 1px solid var(--line);
}

.rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.rows dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist-500);
}

.rows dd {
  font-size: 0.875rem;
  color: var(--mist-300);
  text-align: right;
}

/* --- Feature list --------------------------------------------------------- */

.checks li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist-300);
}

.checks li + li {
  margin-top: 0.75rem;
}

.checks svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent-600);
}

.dashes {
  border-block: 1px solid var(--line);
}

.dashes li {
  display: flex;
  gap: 0.75rem;
  padding-block: 1rem;
  font-size: 0.875rem;
  color: var(--mist-300);
}

.dashes li + li {
  border-top: 1px solid var(--line);
}

.dashes li::before {
  content: '';
  flex-shrink: 0;
  width: 1rem;
  height: 1px;
  margin-top: 0.7rem;
  background: var(--line-strong);
}

/* --- Price block ---------------------------------------------------------- */

.price-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  padding: 1.25rem;
}

.price-box__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-box__row + .price-box__row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.price-big {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mist-100);
}

/* --- Placeholder panels --------------------------------------------------- */

/* Where historical performance data will be pasted in. */
.placeholder {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  padding: 3rem 1.5rem;
  text-align: center;
}

.placeholder__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mist-300);
}

.placeholder__body {
  margin: 0.5rem auto 0;
  max-width: 30rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mist-500);
}

/* Empty by design - see the "How to start copying" blocks. */
.empty-slot {
  min-height: 6rem;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

/* The section border closes the last item; a second line here would stack. */
.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mist-100);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-600);
}

.faq summary svg {
  flex-shrink: 0;
  margin-top: 0.35rem;
  color: var(--mist-500);
  transition: transform 0.2s;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq p {
  padding: 0 2.5rem 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--mist-400);
}

/* --- Legal ---------------------------------------------------------------- */

.clause + .clause {
  margin-top: 2.5rem;
}

.clause h2 {
  display: flex;
  gap: 0.75rem;
  font-size: 1.125rem;
}

.clause h2 span {
  color: var(--accent-600);
}

.clause__body {
  margin-top: 1rem;
}

.clause__body p + p {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .clause__body {
    padding-left: 2.25rem;
  }
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 4rem;
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

/* Phones: Site and Legal sit side by side under the brand block instead of
   stacking into one long column. */
@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__title {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mist-500);
}

.footer__links {
  margin-top: 1.25rem;
}

.footer__links li + li {
  margin-top: 0.75rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--mist-400);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--mist-100);
}

.footer__legal {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* --- Mobile CTA bar ------------------------------------------------------- */

.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}

.mobile-cta__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-cta__label {
  min-width: 0;
}

.mobile-cta .btn {
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-cta-spacer {
  height: 5rem;
}

@media (min-width: 1024px) {
  .mobile-cta,
  .mobile-cta-spacer {
    display: none;
  }
}

/* --- Misc ----------------------------------------------------------------- */

.flex-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--mist-500);
}

.meta-row .sep {
  color: var(--line-strong);
}

.divider-top {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.note {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink-850);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--mist-400);
}

.numeral {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-600);
}

.sticky-col {
  align-self: start;
}

@media (min-width: 900px) {
  .sticky-col {
    position: sticky;
    top: 7rem;
  }
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

/* --- Data presentation ---------------------------------------------------- */

/* Yearly / monthly ledger. Scrolls inside itself on small screens. */
.ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 34rem;
}

.ledger th,
.ledger td {
  padding: 0.7rem 0.9rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.ledger th:first-child,
.ledger td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--mist-100);
}

.ledger thead th {
  background: var(--ink-900);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist-500);
  font-weight: 500;
}

.ledger tbody tr:last-child td {
  border-bottom: 0;
}

.ledger tfoot td {
  background: var(--ink-900);
  font-weight: 600;
  color: var(--mist-100);
  border-bottom: 0;
}

.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* Monthly bar chart - flex, no library. Top 70% positive, bottom 30% negative. */
.bars {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 9.5rem;
}

.bars__col {
  flex: 1 1 0;
  min-width: 3px;
  display: flex;
  flex-direction: column;
}

.bars__up {
  flex: 0 0 70%;
  display: flex;
  align-items: flex-end;
}

.bars__down {
  flex: 0 0 30%;
  display: flex;
  align-items: flex-start;
  border-top: 1px solid var(--line-strong);
}

.bars__bar {
  width: 100%;
  background: var(--accent-500);
  border-radius: 2px 2px 0 0;
}

.bars__bar--neg {
  background: var(--neg);
  border-radius: 0 0 2px 2px;
}

.bars__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--mist-500);
}
/* Caveat block that must travel with a headline figure. */
.caveat {
  border-left: 2px solid var(--line-strong);
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--mist-500);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Direct-response blocks ----------------------------------------------- */

/* Big tick bullets for the hero. */
.claims {
  margin-top: 2rem;
  max-width: 44rem;
}

.claims li {
  display: flex;
  gap: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--mist-100);
  font-weight: 500;
}

.claims li + li {
  margin-top: 1rem;
}

.claims svg {
  flex-shrink: 0;
  margin-top: 0.3rem;
  color: var(--accent-600);
}

/* Verification band - the loudest element on the page. */
.proof {
  background: var(--ink-900);
  border-block: 1px solid var(--line);
  padding-block: 3.5rem;
}

.proof__head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.proof__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-600);
}

.proof__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .proof__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof__card {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-950);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.proof__card:hover {
  border-color: var(--accent-500);
  transform: translateY(-2px);
}

.proof__card strong {
  display: block;
  color: var(--mist-100);
  font-size: 0.95rem;
}

.proof__card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--mist-500);
}

.proof__card em {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-600);
}
/* Louder verification badge. Used sparingly, twice per strategy at most. */
.badge--lg {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-width: 1.5px;
  border-color: var(--accent-500);
  background: var(--accent-300);
  color: var(--accent-600);
}

.badge--lg svg {
  width: 15px;
  height: 15px;
}
/* Outbound links that need to read as clickable rather than branded. */
.link-blue {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.link-blue:hover {
  text-decoration-thickness: 2px;
}
/* --- Numbered setup steps -------------------------------------------------- */

.steps {
  counter-reset: step;
  max-width: 46rem;
}

.steps > li {
  display: flex;
  gap: 1.125rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.steps__n {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-500);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--mist-100);
  letter-spacing: -0.01em;
}

.steps__pending {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  color: var(--mist-500);
  font-size: 0.875rem;
}
/* ==========================================================================
   Mobile responsiveness pass.
   Desktop rendering is unchanged: every rule below is either inside a media
   query, or a non-visual guard that has no effect at desktop width.
   ========================================================================== */

/* Flex and grid children default to min-width:auto, so a long unbroken string
   forces its track wider than the viewport. This is the main source of
   sideways scroll and it applies at every width, not just mobile. */
.btn-row > *,
.header__bar > *,
.drawer__cta > *,
.card--flex > *,
.badge-row > *,
.rows > div > *,
.dashes li > *,
.price-box__row > *,
.faq summary > *,
.clause h2 > *,
.footer__grid > *,
.mobile-cta__inner > *,
.meta-row > *,
.claims li > *,
.proof__grid > *,
.steps > li > * {
  min-width: 0;
}

/* Long values in the fact tables must be allowed to wrap rather than push */
.rows dd,
.faq summary,
.price-box__row span,
.meta-row span {
  overflow-wrap: anywhere;
}

/* Nothing may exceed its column */
img,
svg,
table,
figure,
.card,
.ledger-wrap {
  max-width: 100%;
}

/* Opt-in centring for blocks that read better centred on a narrow screen */
@media (max-width: 700px) {
  .mob-center {
    text-align: center;
  }

  /* CTA rows centre and go full-width so the tap target is generous */
  .btn-row {
    align-items: stretch;
  }

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

  /* Data tables shrink rather than scroll at this size */
  .ledger {
    min-width: 0;
    font-size: 0.75rem;
  }

  .ledger th,
  .ledger td {
    padding-inline: 0.5rem;
  }

  /* Steps: tighten the gutter so the body copy keeps its measure */
  .steps > li {
    gap: 0.875rem;
  }
}

/* Very narrow phones: the brand wordmark competes with the toggle */
@media (max-width: 360px) {
  .brand span {
    display: none;
  }
}

/* Inputs must be >=16px or iOS Safari zooms the page on focus.
   No inputs exist on the site today; this is a guard for when they arrive. */
input,
select,
textarea {
  font-size: max(16px, 1rem);
}

/* Every clickable thing clears the 44px tap target on touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Block-level nav links grow to a 44px target without changing their
     display type. inline-flex would sit them in a row. */
  .drawer__nav a,
  .footer__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  /* The 44px targets already space the list; the desktop gap on top of
     them made the footer look sparse on phones. */
  .footer__links li + li {
    margin-top: 0;
  }

  .faq summary {
    min-height: 44px;
  }

  /* .link-inline and .link-blue are deliberately excluded: they sit inside
     running paragraphs, where a forced height breaks the line box. */
}
/* Very narrow: stack label above value.
   .rows puts dt and dd on one line with the value right-aligned. That works
   down to about 420px; below it a long value wraps to two ragged right-aligned
   lines beside its label, which reads as broken. Stacking is clearer. */
@media (max-width: 420px) {
  .rows > div {
    flex-wrap: wrap;
    gap: 0.15rem;
  }

  .rows dd {
    width: 100%;
    text-align: left;
  }
}
/* Mobile vertical rhythm.
   The 5rem section padding is tuned for a wide viewport. On a phone it leaves
   sections floating with more air between them than inside them, which reads
   as broken rather than spacious. */
@media (max-width: 700px) {
  .section {
    padding-block: 3.25rem;
  }

  .page-head {
    padding-block: 2.75rem;
  }

  .proof {
    padding-block: 2.75rem;
  }

  .footer {
    padding-block: 3rem;
  }

  .card--pad,
  .card--cta {
    padding: 1.5rem;
  }

  .lined > * {
    padding: 1.5rem;
  }

  /* Centred running text reads badly on a narrow screen: every line breaks at a
     different point and the last one is left stranded mid-column. Headings can
     stay centred, body copy goes left. */
  .proof__head,
  .proof .mt-4[style*="center"],
  .card--cta {
    text-align: left;
  }

  .proof__head .proof__kicker,
  .proof__head .h2,
  .card--cta .h2 {
    text-align: left;
  }

  .btn-row--center {
    justify-content: stretch;
  }
}

/* Smallest phones get a touch more gutter so text is not against the edge */
@media (max-width: 380px) {
  .container {
    padding-inline: 1.125rem;
  }

  .card--pad,
  .card--cta,
  .lined > * {
    padding: 1.25rem;
  }
}
.cp-consent__actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

.cp-consent__actions .btn {
  height: 2.5rem;
  padding-inline: 1.125rem;
  font-size: 0.8125rem;
}

@media (max-width: 700px) {
  .cp-consent__actions {
    width: 100%;
  }

  .cp-consent__actions .btn {
    flex: 1;
  }
}