/*
  meDecide — marketing site
  =========================

  Self-contained on purpose: no CDN, no webfont, no build step. It is copied to
  an Apache document root as-is, and a page about reducing dependence on the
  network has no business needing one to render.

  The palette is the app's own (src/ui/theme.ts) so the site and the product
  look like the same thing:

    background #14161C   held #F0A9B4   open #A3DEC4   text #ECEEF3

  Held-pink is used sparingly and deliberately — it is the colour the app shows
  while a block is running, so on this page it marks the state being offered
  rather than decorating.
*/

:root {
  --bg: #14161c;
  --bg-alt: #181b23;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceef3;
  --muted: #a8b0bf;
  --faint: #727c8c;
  --held: #f0a9b4;
  --open: #a3dec4;
  --ink: #14161c;

  --wrap: 1080px;
  --radius: 18px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--open);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 22, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark { border-radius: 8px; }
.brand-name { font-size: 18px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-header nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--open);
  color: var(--ink) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 650;
}
.nav-cta:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

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

.hero {
  /* Bottom padding is deliberately small: the section that follows brings its
     own 92px, and the two were stacking into ~190px of empty screen. */
  padding: 84px 0 28px;
  background:
    radial-gradient(60rem 30rem at 78% -10%, rgba(240, 169, 180, 0.13), transparent 62%),
    radial-gradient(50rem 26rem at 8% 8%, rgba(163, 222, 196, 0.09), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--held);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.lede {
  margin: 0 0 30px;
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 16px;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--open);
  color: var(--ink);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-quiet {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-quiet:hover { border-color: rgba(255, 255, 255, 0.24); }

.hero-note {
  margin: 0;
  font-size: 14px;
  color: var(--faint);
}

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

.hero-art { display: flex; justify-content: center; }

.phone {
  width: 290px;
  padding: 12px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.phone-screen {
  border-radius: 30px;
  background: #101319;
  padding: 30px 22px 24px;
  text-align: center;
}

.ring { position: relative; width: 200px; margin: 0 auto 22px; }
.ring-svg { display: block; transform: rotate(-90deg); }

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.ring-track { stroke: rgba(255, 255, 255, 0.07); }
.ring-fill {
  stroke: var(--held);
  /* 2πr with r=88 ≈ 553; ~62% remaining. */
  stroke-dasharray: 553;
  stroke-dashoffset: 210;
}

.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.ring-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.ring-time {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ring-caption { font-size: 13px; color: var(--muted); }

.chip-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(240, 169, 180, 0.4);
  color: var(--held);
}

.phone-foot {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { order: -1; }
  .phone { width: 250px; }
  .ring { width: 170px; }
}

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

.section { padding: 92px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-lede {
  margin: 0 0 44px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}
.center .section-lede { margin-inline: auto; }

h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

em { color: var(--text); font-style: italic; }

/* ----------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }

.card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card-tight { padding: 22px; }

@media (max-width: 860px) {
  .cards, .cards-3 { grid-template-columns: 1fr; }
}

.pull {
  margin: 48px 0 0;
  padding: 26px 30px;
  border-left: 3px solid var(--held);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
}

/* ----------------------------------------------------------------- steps -- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(163, 222, 196, 0.42);
  color: var(--open);
  font-weight: 700;
}

.steps p { color: var(--muted); font-size: 0.99rem; }

/* ---------------------------------------------------------------- limits -- */

.limits { margin: 0; }

.limits dt {
  font-weight: 650;
  font-size: 1.04rem;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
}
.limits dt:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

.limits dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.99rem;
}

/* ---------------------------------------------------------------- stores -- */

.stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 13px 26px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.store:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
.store span { display: flex; flex-direction: column; font-weight: 650; }
.store small {
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.fineprint { font-size: 14px; color: var(--faint); margin: 0; }

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.footer-name { margin: 12px 0 4px; font-weight: 700; }
.footer-tag { margin: 0; color: var(--faint); font-size: 14px; }

.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.site-footer nav a:hover { color: var(--text); }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--faint);
  font-size: 13.5px;
}
.footer-legal p { margin: 0 0 6px; max-width: 70ch; }
.footer-disclaimer { color: rgba(114, 124, 140, 0.85); }

/* Focus visibility survives the custom styling above. */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--open);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------- privacy policy -- */

.policy-title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.policy-updated {
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--faint);
}

.policy-list {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
}
.policy-list li { margin-bottom: 8px; }

/* The policy is the one page that is mostly prose, so headings need room the
   marketing sections get from their card layout. */
.section h2 { margin-top: 44px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.section h2:first-of-type { margin-top: 0; }
.section h3 { margin-top: 26px; color: var(--text); }
.section p { color: var(--muted); }
.section .policy-title,
.section .eyebrow { color: unset; }
.section .eyebrow { color: var(--held); }

.policy-list strong { color: var(--text); }
