@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --field: #b4d15e;
  --band: #6f9a3c;
  --ink: #142033;
  --muted: #3a4638;
  --paper: #f7f4ec;
  --white: #fffdf8;
  --navy: #12203a;
  --red: #8e1c2a;
  --red-hot: #e23d3a;
  --line: rgba(20, 32, 51, 0.14);
  --page: 1120px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

body.menu-lock { overflow: hidden; }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

ul, ol { padding: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--page), calc(100% - 2rem));
  margin-inline: auto;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(180, 209, 94, 0.94);
  backdrop-filter: blur(12px);
}

.nav.is-solid {
  background: rgba(247, 244, 236, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 20%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.nav-toggle {
  display: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--red);
}

.nav-links a:hover { color: var(--red); }

/* Store button */

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.8rem;
  transition: transform 0.18s ease, background 0.18s ease;
}

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

.store:active { transform: translateY(0) scale(0.98); }

.apple {
  width: 1rem;
  height: 1.25rem;
  flex: none;
}

.store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-kicker {
  font-size: 0.66rem;
  font-weight: 400;
  opacity: 0.82;
}

.store-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.store--lg {
  padding: 0.65rem 1.15rem 0.65rem 0.9rem;
  border-radius: 0.95rem;
}

.store--lg .apple {
  width: 1.2rem;
  height: 1.5rem;
}

.store--lg .store-name { font-size: 1.4rem; }

.text-link {
  font-weight: 600;
  text-underline-offset: 0.2em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.text-link:hover { color: var(--red); }

/* Home hero */

.hero {
  position: relative;
  background: var(--field);
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0 5rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.brand-lockup {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.88;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  max-width: 18ch;
}

.hero .lede {
  margin-top: 0.85rem;
  max-width: 32rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
  margin-top: 1.5rem;
}

.soon {
  margin-top: 0.85rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-contours {
  position: absolute;
  width: min(900px, 80vw);
  right: -14%;
  bottom: -30%;
  pointer-events: none;
  opacity: 0.9;
  animation: drift 20s ease-in-out infinite;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
  color: var(--paper);
  display: block;
}

/* Phone */

.phone {
  width: min(280px, 100%);
  margin-inline: auto;
  animation: float 7s ease-in-out infinite;
}

.phone-shell {
  background: linear-gradient(165deg, #2c3c58, #101a2e);
  border-radius: 2.35rem;
  padding: 0.65rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 28px 50px -22px rgba(16, 24, 46, 0.55);
}

.phone-screen {
  position: relative;
  background: var(--field);
  border-radius: 1.85rem;
  overflow: hidden;
  aspect-ratio: 9 / 17.2;
  display: flex;
  flex-direction: column;
}

.island {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  left: 50%;
  width: 4.8rem;
  height: 1.15rem;
  transform: translateX(-50%);
  background: #0c1426;
  border-radius: 999px;
}

.screen-label {
  position: absolute;
  z-index: 2;
  top: 2rem;
  left: 0.9rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.green {
  flex: 1;
  position: relative;
  min-height: 0;
}

.green svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sheet {
  margin: 0 0.4rem 1.05rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 253, 248, 0.96);
  border-radius: 0.95rem;
}

.sheet-kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.sheet-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-top: 0.1rem;
}

.sheet-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.home-bar {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 4.8rem;
  height: 0.26rem;
  transform: translateX(-50%);
  background: rgba(20, 32, 51, 0.3);
  border-radius: 999px;
}

.js .putt {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .phone.is-in .putt {
  animation: draw 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards 0.2s;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 5.75rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.lede {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.2rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--band);
  margin-bottom: 0.7rem;
}

.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.step p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.read-panel {
  background: var(--field);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.read-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.score {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 1.4rem 1.35rem 1.2rem;
  border-top: 4px solid var(--red-hot);
  box-shadow: 0 20px 40px -28px rgba(20, 32, 51, 0.45);
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  margin-top: 1rem;
  list-style: none;
}

.score-grid span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.score-grid strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.score-note {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.phones,
.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-color: var(--ink);
}

.story {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.story .kicker { color: rgba(247, 244, 236, 0.7); }

.story-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.story-mark img {
  width: 132px;
  height: 132px;
  border-radius: 22%;
}

.story h2 { color: var(--paper); }

.story p {
  margin-top: 0.85rem;
  color: rgba(247, 244, 236, 0.86);
  max-width: 40rem;
}

.story a { color: var(--paper); }

/* Help pages */

.page-hero {
  background: var(--field);
  padding: 2.25rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% auto;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 40% 40%, transparent 0 28%, var(--band) 28% 34%, transparent 34% 48%, var(--band) 48% 52%, transparent 52%);
  opacity: 0.45;
  pointer-events: none;
}

.page-hero .wrap { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.92;
}

.page-hero .lede {
  margin-top: 0.65rem;
  max-width: 36rem;
  color: var(--muted);
}

.help {
  display: grid;
  grid-template-columns: 14rem minmax(0, 42rem);
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.jump {
  position: sticky;
  top: 5.2rem;
}

.jump p {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.jump ol {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.jump a {
  display: block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.28rem 0;
  color: var(--muted);
}

.jump a:hover { color: var(--red); }

.help-body h2 {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.help-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.help-body h3 {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.help-body p + p,
.help-body ul + p,
.help-body ol + p,
.help-body p + ul,
.help-body p + ol,
.help-body .store + p { margin-top: 0.85rem; }

.help-body ul,
.help-body ol { padding-left: 1.2rem; }

.help-body li + li { margin-top: 0.35rem; }

.help-body a { text-underline-offset: 0.15em; }

.help-body a:hover { color: var(--red); }

.dateline {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

.site-foot {
  background: var(--field);
  padding: 1.5rem 0 1.75rem;
  margin-top: auto;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  align-items: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
}

.foot-links a {
  text-decoration: none;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.foot-links a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.fine {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  width: min(30rem, calc(100% - 2rem));
  background: var(--navy);
  color: var(--white);
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 16px 30px -18px rgba(20, 32, 51, 0.7);
}

.toast[hidden] { display: none; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 10px, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 920px) {
  .steps,
  .read-grid,
  .story-grid { grid-template-columns: 1fr; }

  .help { grid-template-columns: 1fr; }

  .jump {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem;
  }

  .jump p { width: 100%; margin-bottom: 0.15rem; }

  .jump ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.85rem;
  }
}

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }

  .js .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 1rem 1rem;
  }

  .js .nav.is-open .nav-panel { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.55rem 0;
  }

  .hero-grid { grid-template-columns: 1fr; }

  .phone { order: 2; margin-top: 0.5rem; }

  .hero-contours {
    width: 140%;
    right: -50%;
    bottom: -5%;
  }

  .brand-lockup { font-size: clamp(3rem, 14vw, 4.2rem); }
}

@media (scripting: none) {
  .nav-panel { display: flex !important; }
  .putt { stroke-dashoffset: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .putt { stroke-dashoffset: 0; }
}
