/* Vapend site — tokens lifted from docs/DESIGN.md §1 so web and app stay one brand. */

:root {
  --brand-teal: #12b3a2;
  --brand-teal-dark: #0a9488;
  --brand-teal-deep: #0a8076;
  --ink: #15211e;
  --text-muted: #5e726c;
  --text-faint: #a9b5b0;
  --bg-cream: #fffdf7;
  --bg-mint: #eaf8f3;
  --bg-mint-light: #f3fbf9;
  --surface-mint: #e7f7f3;
  --surface-neutral: #f1f6f4;
  --track: #e2f0ec;
  --gold: #f2b705;
  --gold-tint: #fff6e0;
  --gold-text: #b7860b;
  --hairline: #efefea;

  --radius-card: 20px;
  --radius-btn: 18px;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-cta: 0 10px 22px rgba(18, 179, 162, 0.35);

  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Must beat the display rules below — calc.js toggles `hidden` on the comparisons block. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-cream);
}

a { color: var(--brand-teal-deep); }

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow { max-width: 680px; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-head nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
}

.site-head nav a:hover { color: var(--brand-teal-deep); }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(165deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #fff;
  border-radius: 0 0 30px 30px;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% 40% 50% -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 14px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: var(--brand-teal-deep);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary {
  background: var(--brand-teal);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

/* Secondary CTA on light sections: never compete with the store button next to it. */
.btn-outline {
  background: transparent;
  color: var(--brand-teal-deep);
  border: 1px solid var(--brand-teal);
}

.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- sections ---------- */

section { padding: 56px 0; }

/* The hero's rounded bottom eats into the next heading otherwise. */
.hero + section { padding-top: 64px; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 0 0 14px;
}

h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; }

.muted { color: var(--text-muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.band-mint { background: var(--bg-mint-light); }

.faq { margin-top: 26px; }

.faq details {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.faq p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- calculator ---------- */

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.field { margin-bottom: 20px; }

.field > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg input { position: absolute; opacity: 0; pointer-events: none; }

.seg label {
  flex: 1 1 auto;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-neutral);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.seg input:checked + label {
  background: var(--surface-mint);
  border-color: var(--brand-teal);
  color: var(--brand-teal-deep);
}

.seg input:focus-visible + label { outline: 2px solid var(--brand-teal); outline-offset: 2px; }

.stack { display: grid; gap: 8px; }

.stack .seg label { text-align: left; }

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-tint);
  border-radius: 16px;
  padding: 12px 16px;
}

.price-row .sym {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--gold-text);
}

.price-row input[type="number"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}

.price-row input[type="number"]:focus { outline: none; }

select {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-neutral);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
}

.result {
  background: linear-gradient(165deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: 0 12px 30px rgba(10, 148, 136, 0.28);
}

.result .eyebrow { color: rgba(255, 255, 255, 0.8); }

.big-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
}

.sub-numbers {
  display: flex;
  gap: 26px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.sub-numbers div span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.sub-numbers div strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.comparisons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.comparison {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.comparison .emoji { font-size: 26px; line-height: 1; }

.comparison .count {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}

.comparison .label {
  font-size: 13px;
  color: var(--text-muted);
}

.disclaimer {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 18px;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 30px 0 44px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-foot a { color: var(--text-muted); margin-right: 18px; }

@media (max-width: 760px) {
  .calc-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .wrap { padding: 0 20px; }
  section { padding: 40px 0; }
  .site-head nav a { margin-left: 14px; font-size: 14px; }
}

/* Below this the full nav pushes the header wider than the viewport, which scrolls the whole
   page sideways. Keep the one link that matters. */
@media (max-width: 540px) {
  .site-head nav a.secondary { display: none; }
}
