/* KeepMore.site — mobile-first stylesheet */

/* ---------- Fonts (self-hosted: no third-party requests) ---------- */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --evergreen: #00534F;
  --evergreen-dark: #003D3A;
  --evergreen-ink: #002B29;
  --mint: #8EDC91;
  --green: #63C56F;
  --green-text: #2E7D3A;      /* accessible green for text on light bg */
  --paper: #FAF8F1;
  --paper-2: #F2EFE4;
  --white: #FFFFFF;
  --charcoal: #303234;
  --muted: #5D6163;
  --gold: #C5AA62;
  --line: rgba(0, 61, 58, 0.12);

  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 11vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--evergreen); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--evergreen-ink); margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 38em; }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { margin-top: 16px; }

.skip-link { position: absolute; left: 12px; top: -48px; background: var(--evergreen); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.005em;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
@media (max-width: 380px) { .btn { padding: 0 20px; font-size: 1rem; } }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--evergreen); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 22px -10px rgba(0, 61, 58, 0.55); }
.btn-primary:hover { background: var(--evergreen-dark); }
.btn-mint { background: var(--mint); color: var(--evergreen-ink); }
.btn-mint:hover { background: #A2E6A4; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-block { width: 100%; }
@media (min-width: 520px) { .btn-block { width: auto; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 241, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
@media (min-width: 720px) { .brand img { height: 34px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--charcoal); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { background: var(--paper-2); }
@media (min-width: 760px) { .nav-links { display: flex; } .nav .btn { margin-left: 10px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
.hero h1 {
  font-size: clamp(2.6rem, 10.5vw, 4.9rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 10.5em;
  text-wrap: balance;
}
.hero-sub { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 3.6vw, 1.55rem); line-height: 1.3; color: var(--green-text); margin-top: 22px; letter-spacing: -0.01em; }
.hero-copy { margin-top: 14px; color: var(--muted); max-width: 30em; }
.hero-actions { margin-top: 32px; }
.trust-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.92rem; color: var(--muted); }
.trust-line svg { color: var(--green-text); flex-shrink: 0; }

/* Receipt illustration — the one memorable visual */
.receipt-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 24px; }
.receipt-stage::before {
  content: ""; position: absolute; inset: 6% 4% 0; border-radius: 40px;
  background: radial-gradient(120% 90% at 50% 20%, rgba(142, 220, 145, 0.35), rgba(142, 220, 145, 0) 70%);
}
.receipt {
  position: relative; width: min(100%, 340px);
  background: var(--white);
  padding: 26px 26px 34px;
  border-radius: 14px 14px 0 0;
  transform: rotate(-2deg);
  box-shadow: 0 30px 50px -28px rgba(0, 43, 41, 0.45), 0 2px 6px rgba(0, 43, 41, 0.06);
  font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  animation: receipt-print 900ms cubic-bezier(.2,.8,.2,1) 150ms both;
}
@keyframes receipt-print {
  from { clip-path: inset(0 0 100% 0); transform: rotate(-2deg) translateY(-12px); }
  to { clip-path: inset(0 0 0 0); transform: rotate(-2deg) translateY(0); }
}
.receipt-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1.5px dashed var(--line); }
.receipt-station { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--evergreen-ink); font-size: 0.98rem; }
.receipt-station .pump { width: 34px; height: 34px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; color: var(--evergreen); }
.receipt-tag { font-size: 0.72rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.receipt-rows { list-style: none; margin: 0; padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
.receipt-rows li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.95rem; }
.receipt-rows li span:first-child { color: var(--muted); }
.receipt-rows li span:last-child { font-weight: 500; color: var(--charcoal); }
.receipt-total { display: flex; justify-content: space-between; padding: 14px 0 6px; font-weight: 600; color: var(--charcoal); }
.receipt-back {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(142,220,145,0.28), rgba(142,220,145,0.18));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  animation: back-in 500ms ease 1050ms both;
}
@keyframes back-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.receipt-back .label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--evergreen-ink); font-size: 0.95rem; }
.receipt-back .label svg { color: var(--evergreen); }
.receipt-back .amt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--evergreen); }
.receipt-note { margin-top: 12px; font-size: 0.75rem; color: var(--muted); text-align: center; }

/* ---------- Estimator ---------- */
.estimator { background: var(--evergreen-dark); color: #E8F1EE; border-radius: var(--radius-lg); padding: clamp(28px, 6vw, 64px); }
.estimator-band { padding: 0 0 var(--section); }
@media (max-width: 559px) { .estimator-band .wrap { padding: 0 12px; } }
.estimator h2 { color: #fff; }
.estimator .section-head p { color: rgba(232, 241, 238, 0.78); }
.estimator-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .estimator-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; } }
.estimator fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.estimator legend { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.08rem; margin-bottom: 14px; padding: 0; }
.estimator legend small { font-family: var(--font-body); font-weight: 400; color: rgba(232,241,238,0.65); font-size: 0.9rem; margin-left: 6px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid.gallons { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; justify-content: center; min-height: 64px; height: 100%;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.14);
  color: #fff; font-weight: 500; line-height: 1.3; font-size: 0.98rem;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.choice span small { color: rgba(232,241,238,0.62); font-size: 0.8rem; font-weight: 400; margin-top: 2px; }
.gallons .choice span { align-items: center; text-align: center; padding: 10px 4px; min-height: 56px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.gallons .choice span small { font-family: var(--font-body); }
.choice input:hover + span { background: rgba(255,255,255,0.1); }
.choice input:checked + span { background: var(--mint); border-color: var(--mint); color: var(--evergreen-ink); }
.choice input:checked + span small { color: rgba(0,43,41,0.7); }
.choice input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 3px; }
.choice input:active + span { transform: scale(0.98); }

.result-card { background: var(--paper); color: var(--charcoal); border-radius: var(--radius-md); padding: clamp(24px, 4vw, 34px); min-height: 100%; }
.result-empty { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 220px; color: var(--muted); }
.result-empty strong { font-family: var(--font-display); color: var(--evergreen-ink); font-size: 1.15rem; font-weight: 600; }
.gauge { width: 84px; color: var(--evergreen); margin-bottom: 6px; }
.result-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--evergreen-ink); line-height: 1.35; }
.result-context { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }
.result-range {
  display: block; margin: 14px 0 2px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1.05; color: var(--evergreen);
  font-variant-numeric: tabular-nums;
}
.result-range.is-updated { animation: pulse 420ms ease; }
@keyframes pulse { 0% { opacity: .35; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
.result-per { color: var(--muted); font-size: 0.95rem; }
.result-detail { margin-top: 14px; font-size: 0.88rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.result-push { margin: 22px 0 16px; font-weight: 600; color: var(--charcoal); }
.illustration-note { margin-top: 18px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* ---------- Recommendation ---------- */
.pick { display: grid; gap: 28px; }
@media (min-width: 900px) { .pick { grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: stretch; } }
.pick-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 44px); box-shadow: 0 24px 48px -36px rgba(0, 43, 41, 0.35); }
.pick-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: #6E5A21; background: rgba(197, 170, 98, 0.18); padding: 5px 12px; border-radius: 999px; }
.pick-card h3 { font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 16px; }
.pick-card > p { margin-top: 12px; color: var(--muted); max-width: 34em; }
.pick-card .btn { margin-top: 26px; }
.pick-disclose { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.pick-disclose a { color: var(--muted); }
.why { padding: clamp(6px, 2vw, 16px) 0; }
.why h3 { margin-bottom: 14px; }
.why ul { list-style: none; margin: 0; padding: 0; }
.why li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.why li:last-child { border-bottom: 0; }
.why li svg { flex-shrink: 0; margin-top: 3px; color: var(--evergreen); }
.vary { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

/* ---------- How it works ---------- */
.how { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; background: var(--paper); border-radius: var(--radius-md); padding: 26px 24px 28px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--evergreen); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--evergreen); display: grid; place-items: center; }
.step-icon { color: var(--evergreen); }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Philosophy ---------- */
.philosophy h2 { font-size: clamp(2.4rem, 8vw, 4.2rem); letter-spacing: -0.04em; line-height: 1.02; }
.principles { display: grid; gap: 0; margin-top: clamp(36px, 6vw, 60px); border-top: 1.5px solid var(--evergreen-ink); }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { padding: 24px 0 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) {
  .principle { border-bottom: 0; padding: 26px 28px 0 0; }
  .principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
}
.principle p { margin-top: 8px; color: var(--muted); padding-bottom: 16px; }

/* ---------- Coming soon ---------- */
.soon { padding-top: 0; }
.soon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
@media (min-width: 760px) { .soon-row { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.soon-tile { border-radius: var(--radius-md); padding: 18px; border: 1.5px dashed rgba(0, 61, 58, 0.18); color: var(--muted); }
.soon-tile svg { color: rgba(0, 61, 58, 0.45); margin-bottom: 14px; }
.soon-tile strong { display: block; font-family: var(--font-display); font-weight: 600; color: rgba(0, 43, 41, 0.62); }
.soon-tile span { font-size: 0.85rem; }
.soon-tile.is-live { border: 1.5px solid var(--evergreen); background: var(--white); color: var(--charcoal); }
.soon-tile.is-live svg { color: var(--evergreen); }
.soon-tile.is-live strong { color: var(--evergreen-ink); }
.soon-tile.is-live span { color: var(--green-text); font-weight: 600; }
.soon .lede { font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--evergreen-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; transition: transform 200ms ease, background-color 200ms ease; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--mint); }
.faq .answer { padding: 0 48px 24px 0; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */
.final { padding-bottom: var(--section); }
.final-panel { background: var(--evergreen); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 8vw, 88px) clamp(26px, 6vw, 72px); text-align: left; position: relative; overflow: hidden; }
.final-panel::after {
  content: ""; position: absolute; right: -140px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(142,220,145,0.35), rgba(142,220,145,0) 65%);
  pointer-events: none;
}
.final-panel h2 { color: #fff; font-size: clamp(2.2rem, 7vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 12em; }
.final-panel p { margin-top: 16px; font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: rgba(255,255,255,0.82); max-width: 28em; }
.final-panel .btn { margin-top: 32px; position: relative; z-index: 1; }
@media (max-width: 559px) { .final .wrap { padding: 0 12px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.92rem; color: var(--muted); }
.footer-top { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--charcoal); text-decoration: none; padding: 6px 0; display: inline-block; }
.footer-links a:hover { text-decoration: underline; }
.footer-disclaimer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; line-height: 1.6; max-width: 62em; }
.footer-copy { margin-top: 14px; font-size: 0.82rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(92vw, 420px); background: var(--charcoal); color: #fff; padding: 14px 18px; border-radius: 14px;
  font-size: 0.92rem; z-index: 60; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.4);
}
.toast[hidden] { display: none; }

/* ---------- Content pages (About, Privacy, etc.) ---------- */
.page { padding: clamp(40px, 8vw, 88px) 0 var(--section); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.08; }
.page .updated { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.prose { margin-top: 32px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 36px 0 10px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--charcoal); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.back-link { display: inline-flex; margin-top: 36px; font-weight: 600; }
.philosophy-lede { margin-top: 20px; }
.soon-lede { margin-top: 14px; }

@media (max-width: 559px) {
  .receipt { width: min(100%, 300px); padding: 22px 22px 30px; }
  .receipt-rows li { padding: 4px 0; font-size: 0.9rem; }
}
.nowrap { white-space: nowrap; }
