/* Retirement Countdown+ website
   Brand colours are lifted straight from the app so the site and the product
   look like the same thing: navy ground, teal accent, off-white paper. */

:root {
  --navy: #132238;
  --navy-soft: #1d3350;
  --teal: #18b89a;
  --paper: #fafbf8;
  --ink: #132238;
  --ink-soft: #4a5a6e;
  --line: #dfe5e2;
  --max: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Header ------------------------------------------------------------------ */

header {
  background: var(--navy);
  color: var(--paper);
  padding: 1.1rem 0;
}

header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.brand {
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span { color: var(--teal); }

nav a {
  color: #c8d4e2;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 1.4rem;
  text-decoration: none;
}

nav a:hover, nav a:focus { color: var(--paper); text-decoration: underline; }

/* Hero -------------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden; /* the tilted back phone would otherwise widen the page */
  position: relative;
}

/* A soft teal wash behind the phones so the right-hand side is not just flat
   navy. Purely decorative, and it sits under everything. */
.hero::after {
  background: radial-gradient(closest-side, rgba(24, 184, 154, 0.22), transparent);
  content: "";
  height: 36rem;
  pointer-events: none;
  position: absolute;
  right: 2rem;
  top: -4rem;
  width: 36rem;
  z-index: 0;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: 3rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.hero p {
  color: #c8d4e2;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin: 0 0 2rem;
  max-width: 58ch;
}

/* Hero phones ------------------------------------------------------------- */

.hero-art {
  display: flex;
  justify-content: center;
  min-height: 1px;
  position: relative;
}

/* The frame is drawn in CSS rather than baked into the image, so the same
   screenshots can be reused elsewhere without a border round them. */
.phone {
  background: #0b1626;
  border: 3px solid #23364f;
  border-radius: 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 0.5rem;
  width: min(15rem, 62vw);
}

.phone img {
  border-radius: 1.75rem;
  display: block;
  height: auto;
  width: 100%;
}

/* Second phone, tucked behind and tilted. Hidden on small screens where there
   is no room for it to read as anything but clutter. */
.phone-back { display: none; }

@media (min-width: 40rem) {
  .phone-back {
    display: block;
    opacity: 0.8;
    position: absolute;
    right: 48%;
    top: 3.25rem;
    transform: rotate(-9deg) scale(0.86);
    transform-origin: bottom right;
  }

  .phone-front { transform: rotate(2deg); }
}

@media (min-width: 62rem) {
  .hero-grid {
    align-items: center;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }

  .hero-copy h1 { max-width: 14ch; }
  .hero-copy p { max-width: 42ch; }
  .phone { width: min(16.5rem, 100%); }

  /* Pushed right on wide screens so the tilted back phone has room to sit
     clear of the copy rather than across it. */
  .hero-art { justify-content: flex-end; padding-right: 1rem; }
}

.stores { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  background: var(--teal);
  border-radius: 12px;
  color: #06231d;
  display: inline-block;
  font-weight: 800;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
}

.btn:hover, .btn:focus { background: #14a488; }

.btn-ghost {
  background: transparent;
  border: 2px solid #3d5470;
  color: var(--paper);
}

.btn-ghost:hover, .btn-ghost:focus { background: #1d3350; border-color: #55708f; }

/* Store badges before launch — look like buttons, but plainly not clickable,
   so nobody taps a link to an app that isn't published yet. */
.btn-soon {
  background: transparent;
  border: 2px dashed #3d5470;
  color: #93a6bb;
  cursor: default;
}

.note { color: #93a6bb; font-size: 0.92rem; margin-top: 1.2rem; }

/* Sections ---------------------------------------------------------------- */

main { padding: 3.5rem 0; }

section + section { margin-top: 3.5rem; }

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; }

.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 62ch; }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.75rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
}

.card p { color: var(--ink-soft); margin: 0; }

/* Pricing ----------------------------------------------------------------- */

.price-box {
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 18px;
  margin-top: 1.5rem;
  padding: 1.75rem;
}

.price { font-size: 2.1rem; font-weight: 800; margin: 0; }

.price small { color: var(--ink-soft); font-size: 1rem; font-weight: 600; }

ul.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; }

ul.ticks li { padding: 0.3rem 0 0.3rem 1.7rem; position: relative; }

ul.ticks li::before {
  color: var(--teal);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

/* Long-form pages --------------------------------------------------------- */

.doc { max-width: 46rem; }

.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 0.4rem; }

.doc .updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2rem; }

.doc h2 { font-size: 1.3rem; margin-top: 2.4rem; }

.doc ul { padding-left: 1.2rem; }

.doc li { margin-bottom: 0.5rem; }

a { color: #0f7f6a; }

/* Footer ------------------------------------------------------------------ */

footer {
  background: var(--navy);
  color: #93a6bb;
  font-size: 0.92rem;
  margin-top: 4rem;
  padding: 2.5rem 0;
}

footer a { color: #c8d4e2; margin-right: 1.2rem; }

footer .wrap > p { margin: 0 0 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Feature rows ------------------------------------------------------------ */

.feature {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-top: 4rem;
}

.feature h2 { margin-bottom: 0.9rem; }

.feature p { color: var(--ink-soft); max-width: 60ch; }

.feature-note {
  color: var(--teal) !important;
  font-weight: 700;
}

.feature-shot { display: flex; justify-content: center; }

.feature-shot img {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(19, 34, 56, 0.16);
  display: block;
  height: auto;
  max-width: 280px;
  width: 100%;
}

/* Two columns once there is room, alternating which side the phone sits on. */
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
  .feature.reverse .feature-text { order: 2; }
  .feature.reverse .feature-shot { order: 1; }
}

/* FAQ --------------------------------------------------------------------- */

#faq { margin-top: 4rem; }

#faq h3 {
  font-size: 1.1rem;
  margin-top: 1.9rem;
}

#faq p { color: var(--ink-soft); max-width: 62ch; }
