/* Landing page only. The legal pages (privacy, terms) keep using styles.css. */

:root {
  --sky: #2e8be0;
  --snow: #ffffff;
  --navy: #041a38;
  --ink: #0d1b2e;
  --muted: #55657e;
  --spruce: #1e4a2c;
  --grass: #6ba84a;
  --wool: #f3f0e6;
  --night: #000000; /* the closing band: fine print + footer */
  --radius: 24px;
  --shadow: 0 10px 30px -12px rgba(4, 26, 56, 0.18);
  --shadow-lg: 0 26px 60px -22px rgba(4, 26, 56, 0.34);
  --display: "Fraunces", Georgia, serif;
  --ui: "IBM Plex Sans", "Avenir Next", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 56px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--snow);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Shared furniture, used across sections ——— */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--spruce);
}

.section-head {
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  padding-top: 14px;
}

/* the light sections share one rhythm */
.section-pad {
  padding: 104px var(--gutter);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh + 4cm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--sky);
}

.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  pointer-events: none;
}

.hero-poster {
  display: none;
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter) 0;
}

.wordmark {
  display: flex;
  align-items: center;
}

/* the die-cut "oh?" sticker — sized by height, width follows the artwork,
   and no radius: the white outline is the shape */
.wordmark-icon {
  display: block;
  width: auto;
  height: 40px;
  filter: drop-shadow(0 8px 18px rgba(4, 20, 44, 0.35));
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 350ms ease;
}

.wordmark:hover .wordmark-icon,
.wordmark:focus-visible .wordmark-icon {
  transform: translateY(-3px) rotate(-2deg) scale(1.04);
  filter: drop-shadow(0 14px 30px rgba(4, 20, 44, 0.45));
}

.wordmark:active .wordmark-icon {
  transform: translateY(-1px) rotate(-1deg) scale(1.01);
  transition-duration: 120ms;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-pill,
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: var(--snow);
  color: var(--ink);
  border-radius: 999px;
  flex-shrink: 0;
}

.nav-pill {
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-menu {
  width: 42px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 13vh, 148px) var(--gutter) 0;
  text-align: center;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.06;
  padding-top: 14px;
  max-width: 13.5em;
  color: var(--snow);
  /* keeps the two lines even instead of stranding a short word on the first */
  text-wrap: balance;
}

.hero-sub {
  max-width: 36ch;
  padding-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
}

.store,
.store-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--ink);
  color: var(--snow);
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.store {
  gap: 10px;
  padding: 0 22px 0 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.store-go {
  width: 48px;
}

.store:hover,
.store-go:hover {
  transform: translateY(-1px);
  background: #0a140d;
}

.store svg {
  flex-shrink: 0;
}

/* ——— How ——— */
.how {
  background: var(--wool);
}

.steps {
  display: flex;
  gap: 20px;
  padding-top: 56px;
}

.step {
  flex: 1;
  min-width: 0;
  background: var(--snow);
  border-radius: var(--radius);
  padding: 26px 24px 30px;
  box-shadow: var(--shadow);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--snow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.step h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-top: 18px;
}

.step p {
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
  padding-top: 8px;
}

/* ——— Wall — two lines of things people sent, drifting past on their own ——— */
.wall {
  background: #ece8da;
  padding: 104px 0;
  overflow: hidden;
}

.wall .section-head {
  padding-inline: var(--gutter);
}

.wall-sub {
  width: min(520px, 100%);
  margin: 0 auto;
  padding-top: 14px;
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
}

.wall-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0px, 0.4vw, 6px);
  padding-top: 34px;
}

/* the lines run off both edges rather than stopping at them. done with
   overlays rather than a mask, because a mask would clip a card that
   grows past the grid on hover */
.wall-grid::before,
.wall-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(40px, 7vw, 130px);
  pointer-events: none;
}

.wall-grid::before {
  left: 0;
  background: linear-gradient(to right, #ece8da, rgba(236, 232, 218, 0));
}

.wall-grid::after {
  right: 0;
  background: linear-gradient(to left, #ece8da, rgba(236, 232, 218, 0));
}

/* clips the line horizontally, but `clip` + a clip-margin lets a card's
   shadow, and a card lifted on hover, paint outside the box instead of
   being sliced off */
.wall-row {
  overflow: clip;
  overflow-clip-margin: 56px;
  padding-block: 14px;
}

.wall-track {
  display: flex;
  width: max-content;
  animation: wall-drift var(--dur, 80s) linear infinite;
}

/* the track holds two identical halves, so -50% lands where it started */
@keyframes wall-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.wall-row:nth-child(1) .wall-track {
  --dur: 32s;
}

.wall-row:nth-child(2) .wall-track {
  --dur: 40s;
  animation-direction: reverse;
}

/* only the line you are pointing at holds still */
.wall-row:hover .wall-track {
  animation-play-state: paused;
}

/* the spacing lives on the card, not as a flex gap: the track is two
   identical halves, and only then is it exactly 50% wide */
.widget {
  --bezel: clamp(6px, 0.75vw, 11px);
  --art-radius: clamp(21px, 2.2vw, 32px); /* matches the widget art's own corners */
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 460px);
  margin-inline-end: clamp(16px, 1.7vw, 28px);
  /* --rx/--ry are written by the pointer handler on hover */
  transform: perspective(900px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg)) scale(var(--scale, 1));
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

@media (hover: hover) {
  .widget:hover {
    --scale: 1.06;
    z-index: 5;
  }

  .widget:hover .frame {
    box-shadow: 0 1px 0 rgba(255, 249, 224, 0.75) inset,
      0 -1px 0 rgba(58, 41, 6, 0.5) inset,
      0 0 0 1px rgba(94, 69, 15, 0.5), var(--shadow-lg);
  }
}

/* a slim gilt bezel that follows the widget's own rounded shape, so it
   still reads as a home-screen widget rather than a framed painting */
.frame {
  position: relative;
  padding: var(--bezel);
  border-radius: calc(var(--art-radius) + var(--bezel));
  background: linear-gradient(
    142deg,
    #f7e6ae 0%,
    #c8a02c 16%,
    #8a6a1c 34%,
    #efd98d 50%,
    #b98f26 68%,
    #7b5c17 84%,
    #e6cb72 100%
  );
  box-shadow: 0 1px 0 rgba(255, 249, 224, 0.6) inset,
    0 -1px 0 rgba(58, 41, 6, 0.45) inset,
    0 0 0 1px rgba(94, 69, 15, 0.42), var(--shadow);
  transition: box-shadow 220ms var(--ease);
}

/* the line where the gilding meets the art */
.frame::after {
  content: "";
  position: absolute;
  inset: var(--bezel);
  border-radius: var(--art-radius);
  box-shadow: 0 0 0 1px rgba(74, 54, 11, 0.4);
  pointer-events: none;
}

.widget img {
  width: 100%;
  height: auto;
  border-radius: var(--art-radius);
}

.widget figcaption {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 11px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.widget figcaption span {
  opacity: 0.6;
}

/* ——— Manifesto ——— */
.manifesto {
  background: var(--snow);
}

.no-list {
  display: flex;
  gap: 24px;
  padding-top: 56px;
}

.no-list article {
  flex: 1;
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.no-list h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.no-list p {
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
  padding-top: 10px;
}

/* ——— Fine print + footer — one dark closing band ——— */
.fine {
  background: var(--night);
  text-align: center;
  padding: 104px var(--gutter) 56px;
}

.fine p {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.72);
  padding-top: 14px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) 48px;
  background: var(--night);
}

.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 23%;
}

/* inverted for the dark band: the pills sit back until you point at one */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 9px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: var(--snow);
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.footer-links a:hover {
  background: var(--snow);
  color: var(--night);
}

/* ——— Small screens ——— */
@media (max-width: 900px) {
  :root {
    --gutter: 22px;
  }

  .section-pad {
    padding: 64px var(--gutter);
  }

  .nav {
    padding-top: 16px;
  }

  .wordmark-icon {
    height: 30px;
  }

  .hero-video,
  .hero-poster {
    object-position: 50% 68%;
  }

  .hero-copy {
    padding: 64px var(--gutter) 0;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 25px;
  }

  .steps {
    flex-direction: column;
    gap: 16px;
  }

  .wall {
    padding: 64px 0;
  }

  .wall-grid {
    padding-top: 18px;
    gap: 0;
  }

  .wall-row {
    padding-block: 10px;
    overflow-clip-margin: 30px;
  }

  .widget {
    --bezel: 7px;
    --art-radius: 20px;
    width: 268px;
    margin-inline-end: 12px;
  }

  .widget figcaption {
    font-size: 11px;
    padding-top: 8px;
  }

  .no-list {
    flex-direction: column;
    gap: 28px;
  }

  .fine {
    padding: 64px var(--gutter) 40px;
  }

  .footer {
    padding: 0 var(--gutter) 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

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

  .store,
  .store-go,
  .wordmark-icon,
  .widget {
    transition: none;
  }

  .wordmark:hover .wordmark-icon,
  .wordmark:focus-visible .wordmark-icon,
  .wordmark:active .wordmark-icon {
    transform: none;
  }

  .hero-video {
    display: none;
  }

  .hero-poster {
    display: block;
  }

  .wall-track {
    animation: none;
  }

  .wall-row {
    overflow-x: auto;
  }

  .widget:hover {
    --scale: 1;
  }
}
