/* gritdash.com. The app's own look: the near-black canvas, the photo, the navy accent; the light
   scheme takes the app's light canvas. Copied into public/ by website/build.mjs. */
:root {
  --canvas: #07080D;
  --ink: #F2F4F8;
  --body: #D3D7E1;
  --dim: #A9AFC0;
  --accent: #93ACFF;
  --rule: rgba(255, 255, 255, 0.12);
  --pill: rgba(255, 255, 255, 0.06);
  --field: rgba(255, 255, 255, 0.08);
  --bezel: #0B0D14;
  --shadow: rgba(0, 0, 0, 0.6);
  --enter: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  /* Where the phone's hero photo fades into the canvas: late on the dark canvas, where light words
     read on the photo; early on the light one, so dark words always sit on the canvas itself. */
  --fade-from: 34%;
  --fade-to: 78%;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #EEF1F6;
    --ink: #0E111A;
    --body: #262B38;
    --dim: #4A5163;
    --accent: #2B45AA;
    --rule: rgba(14, 17, 26, 0.12);
    --pill: rgba(14, 17, 26, 0.05);
    --field: #FFFFFF;
    --bezel: #0E111A;
    --shadow: rgba(14, 17, 26, 0.28);
    --fade-from: 14%;
    --fade-to: 40%;
    color-scheme: light;
  }
}
/* On a phone the home page's wordmark and links sit on the dark top of the photo, in both schemes. */
@media (prefers-color-scheme: light) and (max-width: 899px) {
  .home .brand img { filter: invert(1); }
  .home .links a { color: #F2F4F8; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: 12px; z-index: 10;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--canvas);
  font-weight: 700; text-decoration: none; opacity: 0; pointer-events: none;
}
.skip:focus-visible { opacity: 1; pointer-events: auto; }

.bar, main, .foot { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bar { position: relative; z-index: 2; padding-top: 20px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.links { display: flex; gap: 28px; }
.links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 0; transition: color 120ms var(--enter); }
@media (hover: hover) { .links a:hover { color: var(--accent); } }
@media (max-width: 599px) { .links { display: none; } }
.brand { display: inline-block; border-radius: 8px; }
.brand img { width: 128px; height: auto; }

/* Home: the copy beside the runner on a wide screen; on a phone the runner fills the first screen
   and the copy sits on its fade, with the next section showing below the fold line. */
.hero { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.05fr 0.95fr; padding: 16px 0 40px; }
.hero-photo { position: relative; border-radius: 28px; overflow: hidden; height: clamp(480px, 70vh, 700px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 62%, rgba(7, 8, 13, 0.55));
}
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--accent); font-weight: 650; font-size: 15px; }
h1 {
  margin: 0; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 800; max-width: 12ch; text-wrap: balance;
}
.lede { margin: 24px 0 0; color: var(--dim); font-size: clamp(17px, 1.4vw, 19px); max-width: 46ch; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero-copy > * { animation: rise 240ms var(--enter) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 90ms; }
.hero-copy > :nth-child(4) { animation-delay: 120ms; }
.dot { animation: beat 1.6s cubic-bezier(0.37, 0, 0.63, 1) 400ms 3; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
@keyframes beat { 50% { transform: scale(1.6); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .dot { animation: none; }
}

/* The waitlist form: a label above, one field and one button in a pill, the promise under it. */
.join { margin: 28px 0 0; max-width: 470px; }
.join-label { display: block; margin: 0 0 10px; font-weight: 650; font-size: 15px; color: var(--ink); }
.join-row {
  display: flex; gap: 6px; padding: 5px; border-radius: 999px;
  background: var(--field); border: 1px solid var(--rule);
}
.join-row:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.join input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; padding: 10px 16px; outline: none;
}
.join input::placeholder { color: var(--dim); }
.join button {
  flex: none; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--canvas); font: inherit; font-weight: 700; font-size: 16px;
  transition: transform 120ms var(--enter), opacity 120ms var(--enter);
}
.join button:active { transform: scale(0.97); opacity: 0.88; }
.join button:focus-visible { outline-offset: 2px; }
.fine { margin: 10px 0 0 6px; font-size: 14px; color: var(--dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eyebrow { margin: 0 0 24px; font-size: 15px; font-weight: 650; color: var(--dim); }
.features, .pricing, .faq { padding: 40px 0 72px; }
.pricing h2, .faq h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
.section-lede { margin: 0 0 32px; color: var(--dim); max-width: 56ch; }

/* What it does: real screens from the app in a plain frame, four across on a wide screen; on a
   phone a row that slides sideways, the next card showing at the edge. */
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.feature { margin: 0; }
.phone {
  margin: 0 0 22px; padding: 6px; border-radius: 30px; background: var(--bezel);
  box-shadow: 0 28px 48px -28px var(--shadow);
}
.phone img { width: 100%; border-radius: 24px; aspect-ratio: 540 / 1078; background: #E9ECF2; }
.feature h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--dim); font-size: 16px; }
.also { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.also li { border-top: 1px solid var(--rule); padding: 16px 0; color: var(--dim); font-size: 16px; }
.also strong { color: var(--ink); font-weight: 650; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
.plan { border: 1px solid var(--rule); border-radius: 22px; padding: 24px; background: var(--pill); }
.plan.best { border-color: var(--accent); }
.plan h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--canvas); font-size: 13px; font-weight: 700; }
.amount { margin: 14px 0 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amount span { font-size: 16px; font-weight: 600; color: var(--dim); letter-spacing: 0; }
.note { margin: 6px 0 0; color: var(--dim); font-size: 15px; }
.elsewhere { margin: 18px 0 0; color: var(--dim); font-size: 15px; max-width: 62ch; }

.faq details { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 18px 44px 18px 0;
  font-weight: 650; font-size: 18px; border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: translateY(-70%) rotate(45deg); transition: transform 150ms var(--enter);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 20px; color: var(--body); max-width: 62ch; }

.end { padding: 24px 0 96px; }
.end h2 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }

/* The pages the form sends people back to. */
.answer { padding-top: 48px; min-height: 60vh; }
.answer .lede { color: var(--body); }
.next { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 28px 0 0; }
.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--canvas); font-weight: 700; text-decoration: none;
  transition: transform 120ms var(--enter), opacity 120ms var(--enter);
}
.button:active { transform: scale(0.97); opacity: 0.88; }

@media (max-width: 1023px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .feature .phone { max-width: 300px; }
}
@media (max-width: 699px) {
  .feature-list {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  }
  .feature-list::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 74%; scroll-snap-align: start; }
  .feature .phone { max-width: none; }
  .also { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .join-row { flex-wrap: wrap; border-radius: 26px; }
  .join input { flex-basis: 100%; }
  .join button { flex: 1; }
}

@media (max-width: 899px) {
  .home .bar { position: absolute; left: 0; right: 0; }
  .hero { display: flex; flex-direction: column-reverse; justify-content: flex-start; align-items: stretch; gap: 0; position: relative; min-height: 86svh; padding: 0; }
  .hero-photo {
    position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: 0; height: auto; border-radius: 0;
  }
  .hero-photo::after {
    background: linear-gradient(to bottom, rgba(7, 8, 13, 0.35) 0, transparent 22%, transparent var(--fade-from), var(--canvas) var(--fade-to));
  }
  .hero-copy { position: relative; z-index: 1; margin-top: auto; padding: 0 0 28px; }
  .features { padding-top: 24px; }
}

/* The privacy policy, the terms and the deletion page: one readable column. */
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); max-width: none; }
.updated { margin: 12px 0 0; color: var(--dim); font-size: 15px; }
.doc article { margin-top: 32px; }
.doc h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--body); line-height: 1.68; }
.doc ul, .doc ol { padding-left: 22px; }
.lost { min-height: 50vh; }

.foot { border-top: 1px solid var(--rule); padding-top: 28px; padding-bottom: 40px; color: var(--dim); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot p { margin: 18px 0 0; }
@media (hover: hover) {
  .foot nav a:hover { text-decoration: underline; }
}
