/* GoDash | msaunders.dev/godash
   Dark like the app: true black, iOS grays, GoDash green. Three pages share
   this file: the home page, the privacy policy and the contact page. */

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

:root {
  color-scheme: dark;

  --bg:      #000;
  --card:    #121214;
  --card-2:  #1c1c1e;   /* iOS systemGray6, dark */
  --line:    rgba(255, 255, 255, .09);
  --line-2:  rgba(255, 255, 255, .16);

  --text:    #f5f5f7;
  --body:    #c7c7cc;   /* long-form text */
  --dim:     #a1a1a6;
  --faint:   #86868b;   /* smallest text; still clears 4.5:1 on black */

  --green:     #00c200; /* the app's accent */
  --green-hi:  #22e04a; /* the same green, lifted for text on black */
  --green-dim: rgba(0, 194, 0, .12);

  --maxw: 1120px;
  --sp: clamp(56px, 7vw, 96px);   /* one vertical rhythm for every section */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

/* The app icon is a full square; iOS rounds it, so the page does too. */
.icon { border-radius: 22.5%; }

.accent { color: var(--green-hi); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #00d400; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); }

.store img { height: 52px; width: auto; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand .icon { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--dim); transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links .btn { padding: 8px 16px; font-size: 14px; }
/* Phones: everything stays in the bar, just tighter. The links get taller hit
   areas than their text, and the narrowest phones drop the wordmark and keep
   the icon. */
@media (max-width: 600px) {
  .nav__inner { gap: 12px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand .icon { width: 28px; height: 28px; }
  .nav__links { gap: 16px; font-size: 14px; }
  .nav__links a:not(.btn) { padding-block: 12px; }
  .nav__links .btn { padding: 8px 14px; }
}
@media (max-width: 385px) { .nav .brand__name { display: none; } }

/* ---- Hero ---- */
.hero { padding-block: var(--sp); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
/* Two lines, never three: each line is held together, and the size tracks
   the column so "Your Dash Cam" (about 7.4em wide) always fits it. */
.hero h1 { font-size: clamp(52px, 7vw - 8px, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero__sub { margin-top: 24px; max-width: 34ch; text-wrap: pretty; font-size: clamp(18px, 1.7vw, 21px); color: var(--dim); }
.hero .store { display: inline-block; margin-top: 36px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--faint); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero h1 { font-size: clamp(34px, 12.5vw - 6px, 64px); }
  .hero__sub { margin-inline: auto; }
}

/* ---- Carousel ---- */
.hero__visual { position: relative; display: grid; place-items: center; }
/* A soft pool of the app's green behind the phone. */
.hero__visual::before {
  content: ""; position: absolute; inset: 10% 0;
  background: radial-gradient(closest-side, rgba(0, 194, 0, .28), transparent);
  filter: blur(40px);
}
.carousel { position: relative; width: min(340px, 78%); }
.carousel__viewport {
  overflow: hidden; border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.carousel__slide { flex: 0 0 100%; margin: 0; }
.carousel__slide img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--card); }
.carousel__arrow {
  position: absolute; top: 50%; z-index: 1;
  width: 40px; height: 40px; margin-top: -32px;  /* centered on the image, not the dots under it */
  display: grid; place-items: center; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(20, 20, 22, .75); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s, border-color .2s;
}
.carousel__arrow:hover { background: var(--green); border-color: var(--green); }
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow.prev { left: -20px; }
.carousel__arrow.next { right: -20px; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
/* The button is a taller, invisible tap target; the dot is drawn inside it so
   it keeps its own fully rounded ends. */
.carousel__dots button {
  position: relative; width: 7px; height: 27px; padding: 0; border: 0;
  background: none; cursor: pointer;
  transition: width .25s;
}
.carousel__dots button::before {
  content: ""; position: absolute; inset: 10px 0;
  border-radius: 999px; background: rgba(255, 255, 255, .25);
  transition: background-color .25s;
}
.carousel__dots button.active { width: 22px; }
.carousel__dots button.active::before { background: var(--green-hi); }
@media (prefers-reduced-motion: reduce) {
  .carousel__track, .carousel__dots button, .carousel__dots button::before { transition: none; }
}

/* ---- Features ---- */
.features { padding-block: 0 var(--sp); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Compact: the icon beside the text, so the six cards stay a short block and
   the "New in GoDash 3" section sits close under them. */
.feature {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px;
  padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
/* Round, like the app's own buttons: white glyph on a flat green circle.
   Some glyphs are nudged through their viewBox so they read as centered in it:
   the arrow by its center of mass (it points up-right, and centering its outline
   leaves it looking high and right), the note, tray and triangle part of the
   way toward where their weight sits. */
.feature__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--green); border-radius: 50%; color: #fff;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature > .feature__icon { width: 40px; height: 40px; grid-row: span 2; }
.feature > .feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; align-self: end; }
.feature p { margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--dim); }
@media (max-width: 900px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- New in GoDash 3: photo + text, alternating sides ---- */
.new { padding-bottom: var(--sp); }
.new__head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green-hi); }
.new__head h2 { margin-top: 10px; font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -.03em; }
.new__head p { margin-top: 12px; font-size: 18px; color: var(--dim); }

.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spot + .spot { margin-top: clamp(64px, 9vw, 112px); }
.spot--flip .spot__text { order: 2; }
.spot h3 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; }
.spot p { margin-top: 14px; max-width: 38ch; font-size: 18px; color: var(--dim); text-wrap: pretty; }
.spot ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spot li { position: relative; padding-left: 24px; color: var(--body); }
/* The same small green bullet as the privacy policy's lists. */
.spot li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}

.spot__visual { position: relative; display: grid; place-items: center; }
.spot__visual::before {
  content: ""; position: absolute; inset: 12% 8%;
  background: radial-gradient(closest-side, rgba(0, 194, 0, .2), transparent);
  filter: blur(40px);
}
/* The photo frame, the same shape as the hero's. Until a photo is added the
   frame shows its placeholder (shots.js removes an <img> that fails to load). */
.shot {
  position: relative; width: min(320px, 76%); aspect-ratio: 9 / 16;
  border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1a2a1a, var(--card) 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.shot__empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--faint); font-size: 14px; font-weight: 500;
}
.shot__empty .feature__icon { width: 64px; height: 64px; margin: 0; }
.shot__empty .feature__icon svg { width: 32px; height: 32px; }

@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .spot--flip .spot__text { order: 0; }
  .spot p { margin-inline: auto; }
  .spot ul { display: inline-grid; text-align: left; }
}

/* A link to the new section, above the hero's headline: just green text. */
.hero__new {
  display: inline-block; margin-bottom: 18px;
  font-size: 16px; font-weight: 600; color: var(--green-hi);
  text-underline-offset: 4px;
}
.hero__new:hover { text-decoration: underline; }

/* ---- Invite friends ---- */
.invite { padding-bottom: var(--sp); }
.invite__card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  padding: 28px 32px; border: 1px solid rgba(0, 194, 0, .3); border-radius: 26px;
  background: radial-gradient(80% 140% at 0% 0%, rgba(0, 194, 0, .12), transparent 60%), var(--card);
}
.invite h2 { font-size: 24px; letter-spacing: -.02em; }
.invite p { margin-top: 6px; max-width: 62ch; color: var(--dim); }
@media (max-width: 640px) {
  .invite__card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 22px; }
}

/* ---- Download ---- */
.get { padding-bottom: var(--sp); }
.get__card {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line-2); border-radius: 32px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(0, 194, 0, .14), transparent 60%),
    var(--card);
}
.get h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; }
.get__sub { margin-top: 12px; font-size: 18px; color: var(--dim); text-wrap: balance; }
.get .store { display: inline-block; margin-top: 28px; }
.qr { width: 200px; padding: 16px 16px 14px; background: #fff; border-radius: 22px; text-align: center; }
.qr img { width: 168px; height: 168px; margin: 0 auto; }
.qr span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: #1c1c1e; }
/* A code to scan is no use on the phone that would scan it. */
@media (max-width: 820px) {
  .get__card { grid-template-columns: 1fr; text-align: center; }
  .qr { display: none; }
}

/* ---- Privacy ---- */
.privacy { padding-bottom: var(--sp); }
.privacy__card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: var(--card);
}
.privacy__lock {
  width: 64px; height: 64px; display: grid; place-items: center;
  border-radius: 18px; background: var(--green-dim); border: 1px solid rgba(0, 194, 0, .3); color: var(--green-hi);
}
.privacy__lock svg { width: 30px; height: 30px; }
.privacy h2 { font-size: 24px; letter-spacing: -.02em; }
.privacy p { margin-top: 8px; max-width: 60ch; color: var(--dim); }
@media (max-width: 800px) {
  .privacy__card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding-block: 36px 40px; font-size: 14px; color: var(--dim); }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; color: var(--text); }
.foot .brand .icon { width: 26px; height: 26px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a:hover, .foot__made a:hover { color: var(--text); }
.foot__made { margin-top: 20px; }
.foot__made a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.foot__legal { margin-top: 6px; font-size: 12px; color: var(--faint); }

/* ---- Privacy policy and contact ---- */
.doc { padding-block: clamp(40px, 7vw, 80px) var(--sp); }
.doc__inner { max-width: 720px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -.03em; font-weight: 800; }
.doc__date { margin-top: 10px; font-size: 15px; color: var(--faint); }
.doc__lead { margin-top: 24px; font-size: 19px; color: var(--body); text-wrap: pretty; }
.doc h2 { margin-top: 44px; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--body); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.doc li { position: relative; margin-top: 12px; padding-left: 22px; }
.doc li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.doc b { color: var(--text); font-weight: 600; }
.doc a:not(.btn) { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; }
.doc__summary {
  margin-top: 28px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 14px;
}
.doc__summary p:first-child { margin-top: 0; }
.doc__actions { margin-top: 32px; }
