/* Quality Days marketing site.
   Palette and type follow the app: mobile/constants/strideTheme.ts and
   mobile/components/stride/charts/theme.ts. Dark only, zinc ground,
   blue-500 accent, Inter. No build step, no JS. */

:root {
  /* Neutral ramp (zinc) */
  --bg: #09090b;
  --bg-raised: #0b0b0e;
  --card: #18181b;
  --card-soft: #1c1c20;
  --line: #27272a;
  --line-soft: #1c1c20;
  --rail: #3f3f46;

  /* Ink: two tiers plus chrome, same rule as the app */
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --ink-3: #a1a1aa;

  /* Colour per metric */
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-deep: #1d4ed8;
  --violet: #a78bfa;
  --orange: #fb923c;
  --green: #34d399;
  --red: #ef4444;

  --r-card: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --wrap: 1120px;
  --gutter: 24px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

p { margin: 0; }

.num { font-variant-numeric: tabular-nums; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--ink); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease,
    border-color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 30px -14px rgba(59, 130, 246, 0.9);
}
.btn-primary:hover { background: #2563eb; }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--rail); }

.btn-sm {
  padding: 8px 15px;
  font-size: 14px;
}

.btn svg { flex: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 20px;
}
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -420px;
  width: 1100px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(59, 130, 246, 0.06) 45%,
    rgba(9, 9, 11, 0) 72%
  );
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-2);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ------------------------------------------------------------- phones --- */

.phone {
  position: relative;
  width: 100%;
  max-width: 292px;
  flex: none;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(
    152deg,
    #71717a 0%,
    #3f3f46 12%,
    #18181b 34%,
    #0b0b0e 58%,
    #3f3f46 84%,
    #71717a 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(250, 250, 250, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 44px 80px -34px rgba(0, 0, 0, 0.95);
}
/* side rails */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #52525b, #27272a);
}
.phone::before { left: -2px; top: 21%; height: 15%; }
.phone::after { right: -2px; top: 25%; height: 9%; }

.phone .screen {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 1179 / 2556;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.9);
}
.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-cluster {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 26px;
  padding-bottom: 10px;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 76%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, rgba(0, 0, 0, 0) 100%);
}
.phone-cluster .phone { max-width: 262px; }
.phone-cluster .side { transform: scale(0.9) translateY(14px); opacity: 0.92; }

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

section { scroll-margin-top: 88px; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-head {
  max-width: 720px;
  padding: 92px 0 0;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c, var(--blue-bright));
  margin-bottom: 14px;
  letter-spacing: 0;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--blue-bright));
  flex: none;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; }
.feature-text { grid-column: 1; }
.feature-shot { grid-column: 2; }
.feature--flip .feature-text { grid-column: 2; }
.feature--flip .feature-shot { grid-column: 1; }

.feature-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.032em;
}
.feature-text p {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 46ch;
}

.feature-shot {
  display: flex;
  justify-content: center;
}

.taglist {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.taglist li {
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ gallery --- */

.gallery {
  padding: 24px 0 96px;
}
.gallery-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 36px;
}
.gallery-item { text-align: center; }
.gallery-item .phone {
  max-width: 248px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 6px;
}
.gallery-item .phone .screen { border-radius: 28px; }
.gallery-item .phone::before,
.gallery-item .phone::after { display: none; }
.gallery-item h3 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.gallery-item p {
  margin-top: 7px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

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

.privacy-band {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.privacy-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 52px);
}
.privacy-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.privacy-card > p {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink-2);
}
.privacy-points {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.privacy-points li {
  background: var(--card-soft);
  padding: 22px;
}
.privacy-points strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.015em;
}
.privacy-points span {
  display: block;
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.privacy-card .more { margin-top: 28px; font-size: 15.5px; }

/* ---------------------------------------------------------------- cta --- */

.cta {
  border-top: 1px solid var(--line);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -320px;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(59, 130, 246, 0.18) 0%,
    rgba(9, 9, 11, 0) 70%
  );
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta p {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--ink-2);
}
.cta .hero-cta { margin-top: 30px; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 64px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.footer-brand + p { margin-top: 8px; max-width: 34ch; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.footer-links a { color: var(--ink-2); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }
.footer-fine {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13.5px;
}

/* ----------------------------------------------------------- doc page --- */

.doc {
  padding: 72px 0 96px;
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}
.doc .meta {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.doc .lede {
  margin-top: 26px;
  font-size: 18.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.doc h2 {
  margin-top: 54px;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}
.doc h3 {
  margin-top: 34px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.doc p { margin-top: 16px; }
.doc ul, .doc ol {
  margin: 16px 0 0;
  padding-left: 22px;
}
.doc li { margin-top: 9px; }
.doc li::marker { color: var(--ink-3); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .callout {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-card);
  padding: 20px 22px;
}
.doc .callout p:first-child { margin-top: 0; }
.doc .scroller {
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.doc table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--rail);
}
.doc td:first-child { color: var(--ink); white-space: nowrap; }

.faq {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}
.faq > div {
  padding: 24px;
  border-top: 1px solid var(--line);
}
.faq > div:first-child { border-top: 0; }
.faq h3 { margin-top: 0; }
.faq p { margin-top: 12px; color: var(--ink-2); }

/* ------------------------------------------------------------ queries --- */

@media (max-width: 960px) {
  .phone-cluster .side { display: none; }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 66px 0;
  }
  .feature-text,
  .feature-shot,
  .feature--flip .feature-text,
  .feature--flip .feature-shot { grid-column: 1; }
  .feature-shot { justify-content: flex-start; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 720px) {
  /* the nav pill duplicates the hero call to action; drop it when space is tight */
  .nav-in > .btn { display: none; }
  .nav-links { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  .hero { padding-top: 56px; }
  .phone-cluster { margin-top: 44px; }
  .nav-links { gap: 16px; font-size: 14.5px; }
  .nav-in { min-height: 56px; }
  .brand span { font-size: 15px; }
  .feature-shot { justify-content: center; }
  .hero-cta .btn { flex: 1 1 auto; }
  .footer-in { flex-direction: column; }
  .faq > div { padding: 20px 18px; }
  .doc .callout { padding: 18px; }

  /* A two-column table cannot be read on a phone: the second column is the
     answer, and side-scrolling hides it. Stack each row into label over
     value, and let the scroller stand down. */
  .doc .scroller { overflow-x: visible; }
  .doc table { min-width: 0; display: block; font-size: 16px; }
  .doc thead { display: none; }
  .doc tbody, .doc tr { display: block; }
  .doc tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .doc tr:last-child { border-bottom: 0; }
  .doc td {
    display: block;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .doc td:first-child {
    color: var(--ink);
    font-weight: 600;
    white-space: normal;
  }
  .doc td + td { margin-top: 5px; color: var(--ink-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* A line still waiting on a real value (the support address, for now). Quiet
   rather than hidden: it has to read as unfinished to whoever is filling it
   in, without looking like an error to anyone who lands on the page early. */
.pending {
  color: var(--ink-2);
  font-style: italic;
}
