/* RetireCountdown marketing site — mirrors the app's design language:
   emerald accent, near-black hero, restrained cards, full light/dark support. */
:root {
  --accent: #1a9f5a;
  --accent-ink: #ffffff;
  --hero-bg: #12211b;      /* the app icon's ground */
  --hero-fg: #f4f7f5;
  --hero-fg-dim: #a9c3b6;
  --bg: #f6f7f6;
  --surface: #ffffff;
  --ink: #16201b;
  --ink-dim: #5c6b63;
  --line: #e3e7e4;
  --radius: 18px;
  --maxw: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1310;
    --surface: #161d18;
    --ink: #eef2ef;
    --ink-dim: #9fb0a6;
    --line: #26302a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.55; font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); font-size: 18px; }
.brand .flame { color: var(--accent); font-size: 20px; }
.nav a { color: var(--ink-dim); font-weight: 500; margin-left: 18px; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 520px) {
  .site-head .wrap { height: auto; padding-top: 11px; padding-bottom: 11px; flex-wrap: wrap; gap: 2px 16px; }
  .nav a { margin-left: 0; margin-right: 16px; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); padding: 64px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { color: var(--hero-fg-dim); font-size: clamp(17px, 2.6vw, 20px); max-width: 560px; margin: 0 auto 28px; }
.hero .accent { color: #58d996; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--hero-fg); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.55); text-decoration: none; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 52px 0; }
section h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; letter-spacing: -0.01em; }
.lead { color: var(--ink-dim); margin: 0 0 28px; }

/* Calculator card */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.calc .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 520px) { .calc .grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.field input, .field select {
  font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.toggle-row { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: 14px; color: var(--ink-dim); }
.real-note { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: -8px; }

/* Result */
.result { margin-top: 24px; background: var(--hero-bg); color: var(--hero-fg); border-radius: var(--radius); padding: 24px; text-align: center; }
.result .num { font-size: clamp(34px, 8vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.result .sub { color: var(--hero-fg-dim); font-size: 14px; margin-top: 4px; }
.result .cd { display: flex; justify-content: center; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.result .cd .k { font-size: 22px; font-weight: 700; }
.result .cd .l { font-size: 12px; color: var(--hero-fg-dim); text-transform: uppercase; letter-spacing: .04em; }

/* Feature list */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* Reference-page links */
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; color: var(--ink); font-size: 14px; font-weight: 500; }
.links a:hover { border-color: var(--accent); text-decoration: none; }

/* FAQ */
.faq { display: grid; gap: 20px; }
.qa h3 { margin: 0 0 4px; font-size: 17px; }
.qa p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* Footer */
.disclaimer { font-size: 13px; color: var(--ink-dim); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 32px; }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--ink-dim); font-size: 14px; }
.site-foot a { color: var(--ink-dim); }
.site-foot .row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
