/* ==========================================================================
   Questfarer marketing site
   Design direction: Modern Expedition
   ========================================================================== */

:root {
  /* Core palette */
  --navy: #101A24;
  --navy-deep: #0B131B;
  --charcoal: #26313A;
  --paper: #F2EBDD;
  --paper-soft: #E9E0CE;
  --orange: #E76532;
  --orange-bright: #F27F50;
  --orange-ink: #B4451B;
  --gold: #D7A33D;
  --gold-ink: #7A5710;
  --blue: #397A96;
  --green: #557864;
  --stone: #9A978E;
  --mist: #D8DDD9;

  /* Semantic */
  --bg: var(--navy);
  --surface: var(--charcoal);
  --text: var(--paper);
  --text-muted: #B9B6AC;
  --line: rgba(242, 235, 221, 0.14);

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "Barlow Condensed", "Roboto Condensed", "Helvetica Neue Condensed", "Arial Narrow", "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

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

html {
  background: #101A24;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--orange-bright);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--paper);
}

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

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

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--navy);
}

/* Expedition label: small condensed caps used for eyebrows and identifiers */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-bright);
}

.label::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  background: currentColor;
  transform: rotate(45deg);
  flex: none;
}

.label--gold {
  color: var(--gold);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 62ch;
}

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

.btn,
.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:active,
.btn-store:active {
  transform: translateY(1px);
}

/* Primary action: Quest Orange with navy text (passes AA in every state) */
.btn--primary,
.btn--primary:visited {
  background: var(--orange);
  color: var(--navy);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--orange-bright);
  color: var(--navy);
}

.btn--primary:active {
  background: #D4571F;
  color: var(--navy);
}

.btn--ghost,
.btn--ghost:visited {
  background: transparent;
  color: var(--paper);
  border-color: rgba(242, 235, 221, 0.45);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}

.btn--ghost:active {
  background: var(--mist);
  color: var(--navy);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* App Store button: Map Paper plate with navy ink on dark surfaces */
.btn-store,
.btn-store:visited {
  padding: 0.6rem 1.5rem 0.6rem 1.2rem;
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
  text-align: left;
}

.btn-store:hover,
.btn-store:focus-visible {
  background: #FFFFFF;
  color: var(--navy);
  border-color: var(--gold);
}

.btn-store:active {
  background: var(--mist);
  color: var(--navy);
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.btn-store__text {
  display: flex;
  flex-direction: column;
}

.btn-store__text small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn-store__text strong {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

/* Variant for Map Paper sections */
.btn-store--dark,
.btn-store--dark:visited {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.btn-store--dark:hover,
.btn-store--dark:focus-visible {
  background: var(--charcoal);
  color: #FFFFFF;
  border-color: var(--orange);
}

.btn-store--dark:active {
  background: var(--navy-deep);
  color: var(--paper);
}

.btn-store--compact {
  min-height: 44px;
  padding: 0.35rem 1rem 0.35rem 0.85rem;
}

.btn-store--compact svg {
  width: 20px;
  height: 20px;
}

.btn-store--compact .btn-store__text small {
  font-size: 0.6rem;
}

.btn-store--compact .btn-store__text strong {
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 26, 36, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper);
  text-decoration: none;
}

.brand:hover {
  color: var(--paper);
}

.brand__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(215, 163, 61, 0.55);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
}

.nav__link:hover {
  color: var(--orange-bright);
}

.nav__link[aria-current="page"] {
  color: var(--orange-bright);
  border-bottom-color: var(--orange);
  border-radius: 8px 8px 0 0;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .nav {
    display: none;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav .btn-store {
    align-self: flex-start;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section--charcoal {
  background: var(--navy-deep);
}

/* Map Paper sections: the "studying a map" side of the brand */
.section--paper {
  background: var(--paper);
  color: var(--navy);
  --text-muted: #45505A;
  --line: rgba(16, 26, 36, 0.16);
}

.section--paper .label {
  color: var(--orange-ink);
}

.section--paper .label--gold {
  color: var(--gold-ink);
}

.section--paper a:not(.btn):not(.btn-store) {
  color: var(--orange-ink);
}

.section--paper a:not(.btn):not(.btn-store):hover {
  color: var(--navy);
}

.section--paper :focus-visible {
  outline-color: var(--navy);
}

/* Subtle contemporary contour lines */
.topo {
  position: relative;
  isolation: isolate;
}

.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse 60% 48% at 12% 18%, transparent 0 27px, rgba(242, 235, 221, 0.04) 27px 28px),
    repeating-radial-gradient(ellipse 52% 60% at 92% 88%, transparent 0 33px, rgba(242, 235, 221, 0.035) 33px 34px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.section--paper.topo::before {
  background:
    repeating-radial-gradient(ellipse 60% 48% at 90% 10%, transparent 0 27px, rgba(16, 26, 36, 0.05) 27px 28px),
    repeating-radial-gradient(ellipse 52% 60% at 4% 96%, transparent 0 33px, rgba(16, 26, 36, 0.045) 33px 34px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split--wide-art {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

@media (max-width: 860px) {
  .split,
  .split--wide-art {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__art--first {
    order: -1;
  }
}

.art {
  margin: 0;
}

.art img {
  margin-inline: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.45));
}

.section--paper .art img {
  filter: drop-shadow(0 22px 26px rgba(16, 26, 36, 0.3));
}

.art figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

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

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(57, 122, 150, 0.22), transparent 70%),
    radial-gradient(700px 420px at 8% 100%, rgba(231, 101, 50, 0.12), transparent 70%),
    var(--navy);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero__wordmark {
  width: min(430px, 82%);
  margin: 0 0 1.5rem -0.4rem;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
}

.hero h1 em {
  font-style: normal;
  color: var(--orange-bright);
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.hero__meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
}

.hero__compass {
  position: absolute;
  inset: 8% 8% 8% 10%;
  width: 82%;
  filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.6));
  animation: drift 9s ease-in-out infinite;
}

.hero__mini {
  position: absolute;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
  animation: drift 7s ease-in-out infinite;
}

.hero__mini--a {
  width: 34%;
  top: -2%;
  left: -4%;
  animation-delay: -2s;
}

.hero__mini--b {
  width: 36%;
  bottom: -3%;
  right: -5%;
  animation-delay: -4s;
}

.hero__mini--c {
  width: 26%;
  bottom: 2%;
  left: 0;
  animation-delay: -5.5s;
}

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

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    max-width: 440px;
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   Definition strip (trip vs adventure)
   -------------------------------------------------------------------------- */

.contrast-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contrast-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contrast-list span:last-child {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contrast-list .is-adventure {
  font-weight: 700;
}

.contrast-list .is-adventure span:last-child {
  color: var(--orange-ink);
}

/* --------------------------------------------------------------------------
   Route: Components as chapters connected by an orange path
   -------------------------------------------------------------------------- */

.route {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: component;
}

.route__stop {
  position: relative;
  padding: 0 0 2rem 4.25rem;
  counter-increment: component;
}

.route__stop::before {
  content: counter(component, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(231, 101, 50, 0.2);
}

.route__stop::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 3.1rem;
  bottom: 0.35rem;
  border-left: 2px dashed var(--orange);
  opacity: 0.75;
}

.route__stop:last-child {
  padding-bottom: 0;
}

.route__stop:last-child::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(215, 163, 61, 0.22);
}

.route__stop:last-child::after {
  display: none;
}

.route__title {
  margin: 0 0 0.2rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.route__stop p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
}

.tag--required {
  color: var(--orange-bright);
  border-color: rgba(231, 101, 50, 0.6);
}

.tag--final {
  color: var(--gold);
  border-color: rgba(215, 163, 61, 0.6);
}

.example-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Feature list
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.feature:hover {
  background: rgba(242, 235, 221, 0.035);
}

.feature__id {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange-bright);
}

.feature h3 {
  text-transform: uppercase;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Quest rule cards */
.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.rule {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, rgba(38, 49, 58, 0.9), rgba(38, 49, 58, 0.45));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule img {
  margin: 0 auto 1.5rem;
  max-height: 260px;
  width: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.rule p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Screenshot showcase
   -------------------------------------------------------------------------- */

.showcase {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 1rem var(--gutter) 2rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--charcoal) transparent;
}

@media (min-width: 1280px) {
  .showcase {
    justify-content: center;
  }

  .showcase__hint {
    display: none;
  }
}

.showcase__item {
  flex: 0 0 auto;
  width: clamp(200px, 58vw, 232px);
  scroll-snap-align: center;
  text-align: center;
}

.phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  background: #05090D;
  border-radius: 40px;
  box-shadow: 0 0 0 1px rgba(215, 163, 61, 0.45), var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 32%;
  height: 20px;
  background: #05090D;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone__screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 3.2rem 0.9rem 1.1rem;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(170deg, var(--charcoal), var(--navy) 65%);
  text-align: left;
}

.phone__screen--paper {
  background: linear-gradient(170deg, var(--paper), var(--paper-soft));
  color: var(--navy);
}

.phone__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse 80% 50% at 70% 22%, transparent 0 15px, rgba(242, 235, 221, 0.07) 15px 16px);
}

.phone__screen--paper::before {
  background: repeating-radial-gradient(ellipse 80% 50% at 70% 22%, transparent 0 15px, rgba(16, 26, 36, 0.08) 15px 16px);
}

.phone__screen > * {
  position: relative;
}

.phone__tag {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--orange);
  border-radius: 4px;
}

.phone__tag--gold {
  background: var(--gold);
}

.phone__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.phone__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(154, 151, 142, 0.35);
}

.phone__bar--short {
  width: 62%;
}

.phone__bar--route {
  background: linear-gradient(90deg, var(--orange) 0 58%, rgba(154, 151, 142, 0.35) 58%);
}

.phone__note {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.showcase__caption {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase__hint {
  margin-block: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(2rem, 5vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.benefit h3 {
  text-transform: uppercase;
}

.benefit p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pullquote {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}

.pullquote span {
  color: var(--orange-ink);
}

/* --------------------------------------------------------------------------
   Lifecycle
   -------------------------------------------------------------------------- */

.lifecycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.stage {
  position: relative;
  padding-top: 2.5rem;
  counter-increment: stage;
}

.stage::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: -1.5rem;
  border-top: 2px dashed var(--orange);
  opacity: 0.7;
}

.stage:last-child::before {
  right: auto;
  width: 0;
}

.stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border: 3px solid var(--navy-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--orange);
}

.stage:last-child::after {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.stage h3 {
  text-transform: uppercase;
}

.stage h3::before {
  content: counter(stage, decimal-leading-zero) " ";
  color: var(--orange-bright);
}

.stage:last-child h3::before {
  color: var(--gold);
}

.stage p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .lifecycle {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .stage {
    padding: 0 0 2rem 2.5rem;
  }

  .stage::before {
    top: 16px;
    bottom: 0;
    left: 7px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--orange);
  }

  .stage:last-child::before {
    display: none;
  }

  .stage::after {
    top: 4px;
  }
}

.wide-art {
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
  max-width: 1000px;
}

/* --------------------------------------------------------------------------
   Download call to action
   -------------------------------------------------------------------------- */

.download {
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(231, 101, 50, 0.16), transparent 70%),
    var(--navy);
}

.download__icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.75rem;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(215, 163, 61, 0.6), var(--shadow);
}

.download .lede {
  margin-inline: auto;
}

.download .cta-row {
  justify-content: center;
  margin-top: 2rem;
}

.download__fine {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Page header for inner pages
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(57, 122, 150, 0.2), transparent 70%),
    var(--navy);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
}

.page-head .lede {
  margin-bottom: 0;
}

.page-head .lede + .lede {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-aside img {
  max-width: 320px;
  margin: 2rem 0 0;
  filter: drop-shadow(0 22px 26px rgba(16, 26, 36, 0.3));
}

@media (max-width: 860px) {
  .contact-aside img {
    display: none;
  }
}

.contact-aside ul {
  padding-left: 1.1em;
  color: var(--text-muted);
}

.contact-aside li {
  margin-bottom: 0.4em;
}

.form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #FBF7EE;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -30px rgba(16, 26, 36, 0.5);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--navy);
  background: #FFFFFF;
  border: 2px solid #8C8F8B;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field textarea {
  min-height: 190px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--navy);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange-ink);
  box-shadow: 0 0 0 4px rgba(231, 101, 50, 0.28);
}

.field .is-invalid {
  border-color: #A3281B;
}

.field__error {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #A3281B;
}

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

.form__status {
  margin: 1rem 0 0;
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  padding: 0.85rem 1rem;
  color: #7C1D13;
  background: #F8DFD9;
  border-left: 4px solid #A3281B;
  border-radius: 6px;
}

.form__fine {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Long-form documents (privacy, terms)
   -------------------------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.doc__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 0.95rem;
}

.doc__toc h2 {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
}

.doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.doc__toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--text-muted) !important;
}

.doc__toc a:hover {
  color: var(--navy) !important;
  border-left-color: var(--orange);
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose__meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: rgba(16, 26, 36, 0.06);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc__toc {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Thank you
   -------------------------------------------------------------------------- */

.thanks {
  display: grid;
  place-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 10%, rgba(215, 163, 61, 0.16), transparent 70%),
    var(--navy);
}

.thanks__seal {
  width: min(240px, 60vw);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
  animation: settle 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.18) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.thanks .lede {
  margin-inline: auto;
}

.thanks .cta-row {
  justify-content: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */

.phase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.phase-nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.phase-nav a:hover {
  color: var(--navy);
  background: var(--paper);
}

.phase {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.phase__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.phase__version {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
}

.phase:last-of-type .phase__version {
  -webkit-text-stroke-color: var(--gold);
}

.phase__head h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.phase__head p {
  max-width: 68ch;
  color: var(--text-muted);
}

.phase__contains {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-muted);
}

.phase__contains li {
  margin-bottom: 0.35em;
}

@media (max-width: 640px) {
  .phase__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .phase__version {
    margin-bottom: 1rem;
  }
}

.releases {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 0 0 2rem;
}

.release::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 5.3rem;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(231, 101, 50, 0.2);
}

.release::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: -0.3rem;
  left: calc(5.3rem + 5px);
  border-left: 2px dashed rgba(231, 101, 50, 0.55);
}

.release:last-child {
  padding-bottom: 0;
}

.release:last-child::after {
  display: none;
}

.release--launch::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 163, 61, 0.25);
}

.release__version {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange-bright);
}

.release__body {
  padding-left: 1.25rem;
}

.release__body h3 {
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.release__body p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

.release__body ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.release__body li {
  margin-bottom: 0.25em;
}

@media (max-width: 560px) {
  .release {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 1.75rem;
  }

  .release::before {
    left: 0;
  }

  .release::after {
    left: 5px;
  }

  .release__body {
    padding-left: 0;
  }
}

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

.site-footer {
  flex-shrink: 0;
  padding-block: 3rem 2rem;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-footer__tagline {
  margin: 0.75rem 0 0;
  max-width: 44ch;
  color: var(--text-muted);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--orange-bright);
  text-decoration: underline;
}

.site-footer__legal {
  margin: 1.5rem 0 0;
  color: var(--text-muted);
}

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

.site-footer__legal a:hover {
  color: var(--orange-bright);
}

/* --------------------------------------------------------------------------
   Reveal on scroll (class is only added by script, content is visible without it)
   -------------------------------------------------------------------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.will-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer__nav,
  .doc__toc {
    display: none;
  }
}
