/* Palette and type match the app (navy only, Archivo + Public Sans). */
:root {
  --band: #0A2B3D;
  --band-deep: #072130;
  --line: #17425A;
  --line-soft: #1D4B63;
  --accent: #0A6FA8;
  --highlight: #7CCBF2;
  --tint: #E2F1F9;
  --paper: #F5FAFD;
  --ink: #0A2B3D;
  --ink-soft: #3A5566;
  --on-band: #FFFFFF;
  --on-band-soft: #B4C6D1;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

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

body {
  margin: 0;
  background: var(--band);
  color: var(--on-band);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--tint);
  color: var(--ink);
}

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

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.01em;
}

/* The signature: tall, condensed lettering. */
h1 {
  font-weight: 800;
  font-stretch: 72%;
  /* Scales with the screen so the longest word always fits on one line. */
  font-size: clamp(1.75rem, 9vw, 5.25rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1;
  max-width: 18ch;
}

h3 {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
}

.h-small {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 16px;
  font: 600 1rem/1.2 var(--body);
  color: var(--highlight);
}

.eyebrow-dark {
  color: var(--accent);
}

.lede {
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--on-band-soft);
  font-size: 1.125rem;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--band) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 1.15rem/1 var(--display);
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mark {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--highlight);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--on-band-soft);
}

.top-nav a:hover {
  color: var(--on-band);
}

.top-nav .pill {
  white-space: nowrap;
  padding: 9px 16px;
  border: 1.5px solid var(--highlight);
  border-radius: 999px;
  color: var(--on-band);
}

.top-nav .pill.is-soon {
  display: none;
}

.top-nav .pill:hover {
  background: var(--highlight);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
}

/* The ground from the hero drawing, reused between sections. */
.road {
  height: 36px;
  background:
    repeating-linear-gradient(90deg, var(--line-soft) 0 22px, transparent 22px 40px) center / 100% 2px no-repeat,
    var(--band-deep);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 3vw, 40px) clamp(32px, 5vw, 64px);
  align-items: end;
}

/* The headline runs across both columns. */
.hero-copy {
  grid-column: 1 / -1;
}

.hero-copy h1 {
  max-width: 17ch;
}

.hero-body {
  /* Clears the ground, which runs under this column too. */
  padding-bottom: clamp(48px, 7vw, 96px);
}

.hero-body .lede {
  margin-top: 0;
}

.web-note {
  margin: 18px 0 0;
  color: var(--on-band-soft);
  font-size: 0.95rem;
}

.web-note a {
  color: var(--highlight);
  text-underline-offset: 3px;
}

.web-note a.is-soon {
  color: var(--on-band-soft);
  text-decoration: none;
}

.web-note a.is-soon::after {
  content: ' (coming soon)';
}

.scene {
  margin: 0;
}

.scene svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.tag-text {
  font: 600 16px var(--body);
  fill: var(--ink);
}

.tag-text-light {
  fill: #FFFFFF;
}

/* Store buttons */
.get {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.15rem/1.1 var(--display);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store small {
  display: block;
  font: 500 0.7rem/1.2 var(--body);
  color: var(--ink-soft);
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.55);
}

.store-web {
  background: transparent;
  color: var(--on-band);
  box-shadow: inset 0 0 0 1.5px var(--highlight);
}

.store-web:hover {
  background: rgba(141, 184, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--highlight);
}

.store-web small {
  color: var(--on-band-soft);
}

.store.is-soon {
  cursor: default;
  opacity: 0.55;
}

.store.is-soon:hover {
  transform: none;
}

.store.is-soon small {
  font-size: 0;
}

.store.is-soon small::before {
  content: 'Coming soon';
  font-size: 0.7rem;
}

/* Light bands */
.band-light {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(64px, 9vw, 112px) 0;
}

.band-light h2 {
  color: var(--ink);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
}

.section-intro {
  max-width: 32ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

/* Line icons used on the cards. */
.icon {
  display: block;
  color: var(--accent);
}

.icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 56px 0 0;
  padding: 0;
}

/* Each step is a stop on a dashed route, like the request line in the hero. */
.steps li {
  position: relative;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font: 800 1.75rem/1 var(--display);
  font-stretch: 72%;
  box-shadow: 0 0 0 6px var(--paper);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 56px;
  right: calc(clamp(20px, 3vw, 32px) * -1);
  border-top: 3px dashed var(--highlight);
}

.steps p,
.trust-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

/* Features */
.features {
  padding: clamp(64px, 9vw, 112px) 0;
  background: var(--band-deep);
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li {
  position: relative;
  padding: 20px 0 20px 44px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--on-band-soft);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%230A2B3D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    var(--highlight);
}

.facts li:first-child::before {
  top: 2px;
}

.facts li:last-child {
  border-bottom: 0;
}

.facts li:first-child {
  padding-top: 0;
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  font: 700 1.15rem/1.3 var(--display);
  color: var(--on-band);
}

/* Trust */
.trust {
  background: var(--tint);
}

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 32px 0 0;
  padding: 0;
}

.trust-list li {
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.trust-list h3 {
  margin-top: 16px;
}

/* Closing */
.closing {
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
}

.closing .lede {
  margin: 16px 0 0;
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing h2 {
  max-width: none;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.closing .get {
  justify-content: center;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--on-band-soft);
  font-size: 0.9rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot .wordmark {
  color: var(--on-band);
  font-size: 1rem;
}

.foot .mark {
  width: 22px;
  height: 22px;
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--on-band);
  text-decoration: underline;
}

/* Motion: the home settles in, then updates from the household pop up around it. */
@media (prefers-reduced-motion: no-preference) {
  .home {
    animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .ask {
    stroke-dashoffset: 0;
    animation: draw 1.2s ease 0.8s both, march 1.6s linear 2s infinite;
  }

  .tag-1 {
    animation: rise 0.5s ease 1s both;
  }

  .tag-2 {
    animation: rise 0.5s ease 1.3s both;
  }

  .tag-3 {
    animation: rise 0.5s ease 1.6s both;
  }

  .tag-4 {
    animation: rise 0.5s ease 1.9s both;
  }

  .pulse {
    transform-origin: 36px 60px;
    animation: pulse 1.8s ease-in-out 1.5s infinite;
  }

  @keyframes settle {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes draw {
    from { opacity: 0; clip-path: inset(0 0 0 100%); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
  }

  @keyframes march {
    to { stroke-dashoffset: -24; }
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
  }

  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Small screens */
@media (max-width: 900px) {
  .hero-grid,
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene {
    max-width: 560px;
  }

  .steps,
  .trust-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    padding-left: 80px;
    min-height: 56px;
  }

  .steps li::before {
    position: absolute;
    left: 0;
    top: 0;
  }

  .steps li:not(:last-child)::after {
    top: 56px;
    left: 27px;
    right: auto;
    bottom: calc(clamp(20px, 3vw, 32px) * -1);
    border-top: 0;
    border-left: 3px dashed var(--highlight);
  }

}

@media (max-width: 380px) {
  .pill-extra {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-nav a:not(.pill) {
    display: none;
  }

  .wordmark {
    gap: 8px;
  }

  .wordmark span {
    font-size: 1rem;
  }

  .top-nav .pill {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .store {
    flex: 1 1 160px;
  }
}
