/* ===== MetalsCalc landing page ===== */

:root {
  --bg:        #0d0e0b;
  --panel:     #15160f;
  --panel-2:   #1b1c14;
  --line:      #2c2d22;
  --cream:     #f2efe6;
  --muted:     #a7a698;
  --gold:      #dcb45a;
  --gold-soft: #3a3220;
  --up:        #7fc08a;
  --down:      #d98a7a;

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'Space Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout tokens */
  --maxw:      1400px;                        /* standard content (nav, hero, footer) */
  --maxw-wide: 1680px;                        /* grids & card sections */
  --pad-x:     clamp(1.25rem, 5vw, 3.5rem);  /* fluid horizontal padding, all sections */
  --section-y: clamp(3.5rem, 7vw, 6rem);     /* fluid vertical padding, main sections */
}

/* ===== Reset & base ===== */

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; height: auto; }

.gold { color: var(--gold); }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.4em;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold);
  color: #1a1505;
  box-shadow: 0 0 0 1px rgba(220,180,90,.25), 0 8px 24px rgba(220,180,90,.12);
}
.btn--gold:hover { background: #e6c270; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }

.btn--install-ios {
  background: rgba(22,163,74,.12);
  color: #4ade80;
  justify-content: center;
  padding: .28em 1em;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .06em;
  border-color: rgba(22,163,74,.5);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(22,163,74,.15), inset 0 0 8px rgba(22,163,74,.05);
}
.btn--install-ios:hover {
  background: rgba(22,163,74,.2);
  border-color: #4ade80;
  box-shadow: 0 0 16px rgba(74,222,128,.3), inset 0 0 10px rgba(22,163,74,.1);
  color: #86efac;
}

.btn--install-android {
  background: rgba(124,58,237,.12);
  color: #c084fc;
  justify-content: center;
  padding: .28em 1em;
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .06em;
  border-color: rgba(124,58,237,.5);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(124,58,237,.15), inset 0 0 8px rgba(124,58,237,.05);
}
.btn--install-android:hover {
  background: rgba(124,58,237,.2);
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(192,132,252,.3), inset 0 0 10px rgba(124,58,237,.1);
  color: #d8b4fe;
}

/* ===== Ticker ===== */

.ticker {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #0a0b08;
  font-family: var(--mono);
  font-size: .82rem;
}
.ticker__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .55rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ticker__quotes { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.quote { display: inline-flex; align-items: baseline; gap: .55rem; }
.quote__sym   { color: var(--muted); letter-spacing: .05em; }
.quote__price { color: var(--cream); }
.quote__chg.up   { color: var(--up); }
.quote__chg.down { color: var(--down); }

.ticker__src {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: .04em;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ===== Nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(13, 14, 11, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(1);
  mix-blend-mode: screen;
}
.nav__cta { flex-shrink: 0; }

/* ===== Hero ===== */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: rgba(220,180,90,.05);
  border-radius: 999px;
  padding: .4rem .9rem;
  letter-spacing: .03em;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 1.4rem 0 1.2rem;
}
.hero__lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38ch;
  margin: 0 0 2rem;
}
/* Button + install hint grouped so they share the same width */
.hero__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  min-width: 290px; /* widens button on desktop; hint stretches to match */
}

.hero__cta > .btn--gold {
  justify-content: center;
}

.hero__install-hint {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.02);
  font-size: .72rem;
  line-height: 1.45;
}
.hint__label {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .08rem;
}
.hint__os { color: var(--muted); }
.hint__os strong { color: var(--cream); font-weight: 600; }

/* ===== App screenshot (framed) ===== */

.phone {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.phone__bar {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  letter-spacing: .03em;
}
.phone__shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== iPhone frame ===== */

.iphone {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
}

/* Volume buttons — left side (mute + vol up + vol down) */
.iphone::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 112px;
  width: 4px;
  height: 28px;
  background: #a0a0a0;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 44px 0 #a0a0a0, 0 86px 0 #a0a0a0;
  z-index: 0;
}

/* Power button — right side */
.iphone::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 156px;
  width: 4px;
  height: 58px;
  background: #a0a0a0;
  border-radius: 0 2px 2px 0;
  z-index: 0;
}

.iphone__outer {
  position: relative;
  background: linear-gradient(150deg, #e4e4e4 0%, #b4b4b4 50%, #d2d2d2 100%);
  border-radius: 50px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(0,0,0,.12),
    0 50px 120px rgba(0,0,0,.72),
    0 10px 36px rgba(0,0,0,.45);
}

.iphone__screen {
  position: relative;
  background: #000;
  border-radius: 41px;
  overflow: hidden;
}

/* Dynamic Island pill */
.iphone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 17px;
  z-index: 2;
  pointer-events: none;
}

.iphone__viewport {
  display: block;
  height: 620px;
  overflow-y: auto;
  scrollbar-width: none;
  padding-top: 52px;
  background: #fff;
}
.iphone__viewport::-webkit-scrollbar { display: none; }
.iphone__viewport img {
  display: block;
  width: 100%;
  height: auto;
}

/* Home indicator bar */
.iphone__home-bar {
  height: 28px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.iphone__home-bar::after {
  content: '';
  width: 120px;
  height: 5px;
  background: rgba(0,0,0,.18);
  border-radius: 3px;
}

/* Scrollable phone variant — fixed viewport, image scrolls inside */
.phone--scroll .phone__scroll-body {
  height: 520px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phone--scroll .phone__scroll-body::-webkit-scrollbar { display: none; }

/* ===== Stats band — full-width edge-to-edge ===== */

.stats-band {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat__n {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.stat__l { color: var(--muted); font-size: .9rem; }

/* ===== Sections ===== */

.section {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: var(--section-y) var(--pad-x);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.section__head h2, .invoicing h2, .cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: .8rem 0 0;
}
.section__head { margin-bottom: 3rem; max-width: 32ch; }

/* ===== Features grid ===== */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.feature__num {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--gold);
}
.feature h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: .9rem 0 .55rem;
}
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== Feature pair (precision section) ===== */

.feature-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.feature-pair:first-child { border-top: none; }
.feature-pair--reverse { direction: rtl; }
.feature-pair--reverse > * { direction: ltr; }

.feature-pair__copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: .8rem 0 0;
}
.feature-pair__lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 1.2rem 0 1.6rem;
  max-width: 40ch;
}

/* ===== Purity card mock ===== */

.purity-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.purity-card__bar {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.purity-card__body { padding: .8rem 1.1rem; }

.purity-group { margin-bottom: .6rem; }
.purity-group__hd {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .5rem 0 .4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .3rem;
}
.purity-row {
  display: grid;
  grid-template-columns: 4.5rem 4.5rem 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .3rem 0;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(44,45,34,.4);
}
.purity-row:last-child { border-bottom: none; }
.purity-default { color: var(--muted); font-size: .76rem; }
.purity-input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .28rem .5rem;
  text-align: right;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--cream);
}
.purity-row--edited .purity-input { border-color: var(--gold); color: var(--gold); }
.purity-unit { color: var(--muted); font-size: .76rem; }

/* ===== Margin card mock ===== */

.margin-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.margin-card__bar {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.margin-card__body { padding: 1rem 1.2rem; }

.margin-block { margin-bottom: 1rem; }
.margin-block__hd {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .35rem;
}
.margin-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  font-family: var(--mono);
  font-size: .88rem;
  border-bottom: 1px solid rgba(44,45,34,.4);
}
.margin-line:last-child { border-bottom: none; }
.margin-label { color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.margin-line--myval .margin-label { color: var(--cream); }
.margin-val { font-weight: 700; color: var(--cream); }
.margin-tag {
  font-size: .62rem;
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 3px;
  padding: .1rem .35rem;
  letter-spacing: .03em;
}
.margin-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .7rem 0 .1rem;
  border-top: 1px solid var(--line);
  margin-top: .3rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}
.margin-total .gold { font-size: 1.3rem; }

/* ===== Invoicing ===== */

.invoicing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.invoicing__lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 1.2rem 0 1.6rem;
  max-width: 40ch;
}
.checks { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.checks li {
  display: flex;
  gap: .7rem;
  padding: .55rem 0;
  color: var(--cream);
  font-size: .98rem;
}
.checks .arrow { color: var(--gold); font-family: var(--mono); flex-shrink: 0; }

.invoice-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.invoice-card__bar {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.invoice-card__body { padding: 1.2rem 1.3rem; }
.invoice-card__row,
.invoice-card__total {
  display: flex;
  justify-content: space-between;
  padding: .6rem 0;
  font-size: .95rem;
  font-family: var(--mono);
}
.invoice-card__row  { border-bottom: 1px solid rgba(44,45,34,.6); color: var(--cream); }
.invoice-card__total { margin-top: .6rem; font-size: 1.1rem; font-weight: 700; }
.invoice-card__total .gold { font-size: 1.4rem; }
.invoice-card__exports {
  display: flex;
  gap: .6rem;
  margin-top: 1.1rem;
}
.invoice-card__exports span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  padding: .6rem .3rem;
}

/* ===== Final CTA — full-width band ===== */

.cta {
  width: 100%;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  border-top: 1px solid var(--line);
}
.cta h2 { margin: 0 auto; max-width: 18ch; }
.cta p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1.2rem auto 2.2rem;
  max-width: 42ch;
}

/* ===== Footer — full-width with inner container ===== */

.footer {
  width: 100%;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer__links a { color: var(--muted); font-size: .9rem; transition: color .15s; }
.footer__links a:hover { color: var(--cream); }
.footer__copy { color: var(--muted); font-family: var(--mono); font-size: .82rem; }

/* ===== Powered-by banner (page bottom, cyber theme) ===== */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, #0b0d1a 0%, #0f1128 60%, #130d1f 100%);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, #7c3aed 25%, #06b6d4 75%, transparent) 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}
.powered-by::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #7c3aed 20%, #06b6d4 80%, transparent);
  box-shadow: 0 0 16px 2px rgba(124,58,237,.5), 0 0 40px 4px rgba(6,182,212,.25);
}
.powered-by__text {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(180,190,220,.7);
}
.powered-by__text strong {
  color: #06b6d4;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(6,182,212,.6);
}
.powered-by__arrow {
  font-size: .8rem;
  color: #7c3aed;
  text-shadow: 0 0 8px rgba(124,58,237,.8);
  transition: transform .2s, color .2s;
}
.powered-by:hover .powered-by__arrow {
  transform: translateX(4px);
  color: #06b6d4;
  text-shadow: 0 0 12px rgba(6,182,212,.9);
}
.powered-by:hover .powered-by__text strong {
  text-shadow: 0 0 16px rgba(6,182,212,.9);
}

/* ===== Responsive breakpoints ===== */

/* Desktop — tighten gaps and fix single-child section alignment */
@media (min-width: 769px) {
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .feature-pair { padding-top: 1.5rem; padding-bottom: 1.5rem; }

  /* My Value copy lost its right-column partner — collapse to single column */
  #precision .feature-pair { grid-template-columns: 1fr; }
  #precision .feature-pair__copy { max-width: 700px; }

  /* Invoicing lost its card partner — collapse to single column */
  .invoicing { grid-template-columns: 1fr; }
  .invoicing__copy { max-width: 700px; }

  /* Center both text-only blocks on the page */
  #precision .feature-pair__copy,
  .invoicing__copy {
    margin-inline: auto;
  }
}

/* Tablet landscape — tighten features */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet portrait — stack primary layouts */
@media (max-width: 768px) {
  .feature-pair { grid-template-columns: 1fr; }
  .iphone { max-width: 300px; }
  .iphone__viewport { height: 560px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__lede { margin-inline: auto; }
  /* Compress section and feature-pair vertical padding so stacked iPhones don't gap */
  .section { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .feature-pair { padding-top: .75rem; padding-bottom: .75rem; }
  .phone { max-width: 480px; }
  .invoicing { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

  /* On mobile, let the button be its natural width; hint auto-matches via flex stretch */
  .hero__cta { min-width: 0; }

  /* Hero copy: scale down at tablet */
  .badge       { font-size: .72rem; padding: .32rem .75rem; }
  .hero__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 1rem 0 .9rem; }
  .hero__lede  { font-size: 1rem; margin-bottom: 1.5rem; }
}

/* Mobile — single column */
@media (max-width: 640px) {
  .hero__install-hint {
    font-size: .62rem;
    padding: .35rem .55rem;
    gap: .1rem;
  }
  .hint__label { font-size: .54rem; }

  .nav__links { display: none; }
  .features  { grid-template-columns: 1fr; }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer__links { margin-left: 0; flex-wrap: wrap; gap: 1rem 1.5rem; }

  /* Ticker: single row, tighter — hide LIVE source up to 640px so 3 quotes always fit */
  .ticker { font-size: .72rem; }
  .ticker__inner { padding: .4rem var(--pad-x); gap: .5rem; flex-wrap: nowrap; }
  .ticker__quotes { gap: .85rem; flex-wrap: nowrap; }
  .quote { gap: .3rem; white-space: nowrap; }
  .ticker__src { display: none; }

  /* Nav: compact at mobile (justify-content: space-between handles positioning) */
  .nav { padding-top: .75rem; padding-bottom: .75rem; }
  .brand { font-size: .95rem; }
  .nav__cta { padding: .55em .9em; font-size: .82rem; }

  /* Hero copy: further reduction at mobile */
  .badge       { font-size: .62rem; padding: .25rem .6rem; }
  .hero__title { font-size: clamp(1.6rem, 7.5vw, 2.2rem); margin: .75rem 0 .75rem; }
  .hero__lede  { font-size: .93rem; margin-bottom: 1.25rem; }
}

/* Small mobile */
@media (max-width: 430px) {
  .btn--lg { width: 100%; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  /* Ticker: also hide % changes at smallest sizes so 3 prices stay on one line */
  .quote__chg  { display: none; }
  .ticker__quotes { gap: 1.1rem; }
}
