/* Simply Step Tracker - product site.
   Palette lifted from the app icon: navy ground, a teal-to-cyan goal ring, mint accent. */

:root {
  --bg: #0b1622;
  --bg-raised: #10202f;
  --bg-sunken: #081220;
  --rule: #1e3346;
  --ink: #eaf2f8;
  --ink-dim: #9fb3c4;
  --ink-faint: #6f8699;
  --ring-a: #2ee6a8;
  --ring-b: #1fb6c9;
  --mint: #a7f3d0;
  --danger: #ffb4a2;
  --radius: 16px;
  --wrap: 68rem;
  --prose: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ring-a); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ring-a); color: #04121a;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; z-index: 20;
}
.skip-link:focus { left: 0; }

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

.site-header { border-bottom: 1px solid var(--rule); background: var(--bg-sunken); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .93rem; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

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

.hero { padding: 4.5rem 0 3.5rem; background:
  radial-gradient(900px 420px at 72% -8%, rgba(31,182,201,.16), transparent 62%),
  radial-gradient(700px 380px at 12% 4%, rgba(46,230,168,.10), transparent 60%); }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700;
  color: var(--ring-a); margin: 0 0 .9rem;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 1rem; }

.hero p.lede { font-size: 1.12rem; color: var(--ink-dim); margin: 0 0 1.75rem; max-width: 34rem; }

.badges { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.badges li {
  font-size: .82rem; color: var(--mint); border: 1px solid rgba(167,243,208,.28);
  background: rgba(46,230,168,.08); border-radius: 999px; padding: .32rem .8rem;
}

.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--ring-a), var(--ring-b)); color: #04121a; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.07); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { text-decoration: none; border-color: var(--ring-b); }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(260px, 74%); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,.5); }

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

section { padding: 3.75rem 0; }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 .6rem; }
section .section-lede { color: var(--ink-dim); margin: 0 0 2.25rem; max-width: var(--prose); }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 { margin: 0 0 .45rem; font-size: 1.02rem; }
.card p { margin: 0; color: var(--ink-dim); font-size: .94rem; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.shots img { border-radius: 14px; border: 1px solid var(--rule); }
/* Column figures with the caption pushed to the bottom: the two platforms' screenshots are not
   the same pixel height, and without this their captions sit on four different baselines. */
.shots figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.shots figcaption { color: var(--ink-faint); font-size: .82rem; margin-top: auto; padding-top: .5rem; text-align: center; }

.band { background: var(--bg-sunken); border-block: 1px solid var(--rule); }

/* ---------------------------------------------------------------- policy pages */

.policy-hero { padding: 3.25rem 0 2rem; border-bottom: 1px solid var(--rule); background: var(--bg-sunken); }
.policy-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.policy-hero p { color: var(--ink-dim); max-width: var(--prose); margin: 0 0 1rem; font-size: 1.03rem; }
.policy-updated { display: inline-block; color: var(--ink-faint); font-size: .86rem; }

.platform-pill {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 650;
  border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem;
  background: rgba(31,182,201,.14); color: var(--ring-b); border: 1px solid rgba(31,182,201,.3);
}

.policy-main { padding-bottom: 4rem; }
.policy-content { max-width: var(--prose); padding-top: 2.25rem; }
.policy-content h2 {
  font-size: 1.2rem; margin: 2.5rem 0 .5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule); letter-spacing: -.01em;
}
.policy-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.policy-content h3 { font-size: 1rem; margin: 1.6rem 0 .3rem; color: var(--mint); }
.policy-content p, .policy-content li { color: var(--ink-dim); }
.policy-content strong { color: var(--ink); }
.policy-content ul { padding-left: 1.15rem; }
.policy-content li { margin: .35rem 0; }

.callout {
  border-left: 3px solid var(--ring-a); background: rgba(46,230,168,.06);
  padding: 1rem 1.15rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 1.1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 30rem; }
th, td { text-align: left; padding: .6rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink); font-weight: 650; }
td { color: var(--ink-dim); }
td.never { color: var(--mint); white-space: nowrap; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: rgba(255,255,255,.07); padding: .12em .38em;
  border-radius: 4px; word-break: break-word;
}

.policy-back { color: var(--ink-dim); font-size: .92rem; }

/* The two-platform chooser on /privacy/ */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 2rem 0 0; }
.chooser a {
  display: block; background: var(--bg-raised); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem; color: var(--ink);
}
.chooser a:hover { text-decoration: none; border-color: var(--ring-b); }
.chooser strong { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.chooser span { color: var(--ink-dim); font-size: .92rem; }

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

.site-footer { border-top: 1px solid var(--rule); padding: 2.25rem 0; color: var(--ink-faint); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-dim); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 62rem) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .hero-art img { width: min(210px, 56%); }
}

@media (max-width: 40rem) {
  .grid, .chooser { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.75rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
