/* Yellow Dot 360 marketing site */

:root {
  --navy: #1B2233;
  --navy-2: #252E43;       /* raised navy surfaces */
  --navy-line: #3A4560;    /* rules on navy */
  --yellow: #FFC400;
  --yellow-deep: #E5AF00;  /* hover on yellow */
  --white: #FFFFFF;
  --mist: #F2F4F8;         /* cool off-white section ground */
  --ink: #1B2233;
  --slate: #535D73;        /* secondary text on white / mist: 6.4:1 */
  --fog: #BFC6D6;          /* secondary text on navy: 9:1 */
  --rule: #DCE0E8;

  --display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px var(--navy), 0 0 0 6px var(--yellow);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.125rem); }
h3 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--navy);
  color: var(--white);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand { display: inline-block; flex-shrink: 0; border-radius: 6px; }
.brand img { width: auto; height: 40px; }

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
}
.masthead__nav a {
  color: var(--fog);
  text-decoration: none;
  padding-block: 6px;
}
.masthead__nav a:hover { color: var(--white); }
.masthead__nav .masthead__app {
  color: var(--white);
  font-weight: 700;
  padding: 8px 16px;
  border: 1.5px solid var(--navy-line);
  border-radius: 999px;
}
.masthead__nav .masthead__app:hover { border-color: var(--yellow); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-deep); }
.btn--primary:active { transform: translateY(1px); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  background: var(--navy-2);
  border: 1.5px solid var(--navy-line);
  color: var(--white);
  text-decoration: none;
  line-height: 1.15;
}
a.store:hover { border-color: var(--yellow); }
.store__icon { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.store__text { display: flex; flex-direction: column; }
.store__pre { font-size: 0.75rem; color: var(--fog); }
.store__name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.store.is-soon { cursor: default; }
.store.is-soon .store__icon { opacity: 0.6; }
.store.is-soon .store__pre { color: var(--yellow); }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 128px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero__lede {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  color: var(--fog);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--fog);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__orbit {
  position: absolute;
  width: 135%;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__orbit ellipse {
  fill: none;
  stroke: var(--white);
  stroke-opacity: 0.14;
  stroke-width: 14;
}

/* The live card: the one moving thing on the page */
.livecard {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0;
  padding: 24px 24px 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(5, 9, 20, 0.55);
}
.livecard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--slate);
}
.livecard__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}
.livecard__pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--navy);
}
.livecard__child {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--slate);
}
.livecard__status {
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.livecard__note {
  font-size: 1rem;
  color: var(--slate);
}

.track {
  position: relative;
  height: 28px;
  margin: 26px 10px 0;
}
.track__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--rule);
}
.track__stop {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #A9B1C2;
}
.track__stop--a { left: 0; }
.track__stop--b { left: 33.33%; }
.track__stop--c { left: 66.66%; }
.track__stop--home {
  left: 100%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 4px solid var(--navy);
}
.track__bus {
  position: absolute;
  top: 50%;
  left: 33.33%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px rgba(27, 34, 51, 0.25);
  transition: left 900ms cubic-bezier(0.45, 0, 0.2, 1);
}
.livecard[data-pos="0"] .track__bus { left: 0; }
.livecard[data-pos="1"] .track__bus { left: 33.33%; }
.livecard[data-pos="2"] .track__bus { left: 66.66%; }
.livecard[data-pos="3"] .track__bus { left: 88%; }
.livecard[data-pos="4"] .track__bus { left: 100%; }
.livecard[data-pos="4"] .track__stop--home { background: var(--navy); }

.track__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--slate);
}

.livecard__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--slate);
}
.livecard__toggle {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 0.8125rem/1 var(--body);
  cursor: pointer;
}
.livecard__toggle:hover { border-color: var(--navy); }

@media (prefers-reduced-motion: no-preference) {
  .livecard__pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--yellow);
    animation: ping 2s ease-out infinite;
  }
  .livecard.is-paused .livecard__pulse::after { animation: none; }
}
@keyframes ping {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(2.8); opacity: 0; }
}

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

.audience { padding-block: clamp(72px, 9vw, 128px); }
.audience--districts { background: var(--mist); }
.audience--families { background: var(--white); }

.audience__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.audience__head h2 { max-width: 14ch; }
.audience__lede {
  max-width: 34em;
  color: var(--slate);
  font-size: 1.125rem;
}

.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.audience__grid--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.audience__grid--flip .film { order: 2; }

/* Film frame */
.film { margin: 0; }
.film figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--slate);
}
.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
}
.film__frame.is-live { background: #000; }
.film__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.film__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  background:
    radial-gradient(ellipse 62% 30% at 50% 50%, transparent 96%, rgba(255, 255, 255, 0.1) 97%, rgba(255, 255, 255, 0.1) 99.5%, transparent 100%),
    radial-gradient(ellipse 90% 46% at 50% 50%, transparent 97.5%, rgba(255, 255, 255, 0.06) 98.3%, transparent 100%),
    var(--navy);
}
.film__play {
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 88px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
}
.film__play svg { width: 44%; fill: var(--navy); margin-left: 6%; }
.film__soon {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
}

/* Benefit points: the yellow dot is the bullet */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.points li {
  position: relative;
  padding: 0 0 20px 34px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
}
.points li:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.25);
}
.points strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------- How it works: a route with three stops ---------- */

.how {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--mist);
}
.route {
  list-style: none;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}
.route::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 26px;
  right: calc((100% - 64px) / 3 - 26px);
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 18px, transparent 18px 28px);
  opacity: 0.25;
}
.route__stop { position: relative; padding-right: 8px; }
.route__marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 22px;
}
.route__stop--home .route__marker {
  background: var(--yellow);
}
.route__stop p {
  margin-top: 8px;
  max-width: 30ch;
  color: var(--slate);
}

/* ---------- Privacy promise ---------- */

.promise {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(72px, 9vw, 120px);
}
.promise__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.promise h2 { max-width: 12ch; }
.promise__more { margin-top: 24px; }
.promise__more a {
  color: var(--yellow);
  font-weight: 700;
  text-underline-offset: 4px;
}
.promise__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.promise__list li {
  padding: 22px 0 22px 40px;
  border-top: 1px solid var(--navy-line);
  position: relative;
  font-size: 1.1875rem;
  line-height: 1.5;
}
.promise__list li:last-child { border-bottom: 1px solid var(--navy-line); }
.promise__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 29px;
  width: 18px;
  height: 10px;
  border-left: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  transform: rotate(-45deg);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: var(--fog);
  border-top: 1px solid var(--navy-line);
  padding-block: 48px 40px;
  font-size: 0.9375rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 48px;
  align-items: center;
}
.footer__brand img { width: auto; height: 34px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a {
  color: var(--white);
  text-decoration: none;
  padding-block: 4px;
}
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { text-align: right; }
.footer__tm { margin-top: 4px; font-size: 0.8125rem; opacity: 0.85; }

/* ---------- Document pages (privacy, support) ---------- */

.doc-hero {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(40px, 6vw, 80px);
}
.doc-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -0.025em; }
.doc-hero p { margin-top: 16px; max-width: 40em; color: var(--fog); font-size: 1.125rem; }

.draft-banner {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  padding: 10px var(--gutter);
}

.doc {
  padding-block: clamp(48px, 6vw, 88px);
}
.doc__body {
  max-width: 44rem;
}
.doc__body h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  margin-top: 56px;
  margin-bottom: 14px;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1.1875rem; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p { margin-top: 14px; }
.doc__body ul { padding-left: 1.25em; margin: 0; }
.doc__body li + li { margin-top: 6px; }
.doc__body li::marker { color: var(--navy); }
.doc__body a { text-underline-offset: 3px; font-weight: 700; }
.doc__meta { color: var(--slate); font-size: 0.9375rem; }

.faq { margin-top: 8px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 44px 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font: 600 1.25rem/1 var(--display);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; color: var(--slate); }

.callout {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  border-left: 5px solid var(--yellow);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 16ch; }
  .hero__visual { min-height: 0; padding-block: 24px; }
  .hero__orbit { width: 115%; }
  .audience__head,
  .audience__grid,
  .audience__grid--flip,
  .promise__grid { grid-template-columns: 1fr; }
  .audience__grid--flip .film { order: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
}

@media (max-width: 760px) {
  .masthead__nav a:not(.masthead__app) { display: none; }
  .brand img { height: 32px; }
  .route { grid-template-columns: 1fr; gap: 28px; }
  .route::before {
    top: 26px;
    bottom: 60px;
    left: 25px;
    right: auto;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--navy) 0 18px, transparent 18px 28px);
  }
  .route__stop { padding-left: 76px; min-height: 54px; }
  .route__marker { position: absolute; left: 0; top: 0; margin: 0; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; }
  .store { padding-inline: 12px; }
  .masthead__nav .masthead__app { padding: 7px 12px; font-size: 0.875rem; }
  .brand img { height: 28px; }
}

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

/* Pre-launch: app not linked yet */
.masthead__nav .masthead__app.is-soon,
.masthead__nav .masthead__app.is-soon:hover { cursor: default; border-color: var(--navy-line); }
.btn.is-soon, .btn.is-soon:hover { cursor: default; background: var(--yellow); }
.btn.is-soon:active { transform: none; }
