:root {
  --ink: #000000;
  --soft-black: #111111;
  --charcoal: #2b2b2b;
  --muted: #6f6f6f;
  --hairline: #dadada;
  --mist: #f2f2f2;
  --warm-white: #fdfcf9;
  --sun: #ffc238;
  --surface: #ffffff;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-tabbed :focus {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--surface);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 44px);
  background: rgba(253, 252, 249, 0.95);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 950;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a,
.footer-links a {
  transition: color 180ms var(--ease);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--muted);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(86svh - 72px);
  overflow: hidden;
  background: var(--warm-white);
  border-bottom: 1px solid var(--hairline);
}

.hero-art {
  position: absolute;
  right: -7vw;
  bottom: -8vw;
  width: min(76vw, 1120px);
  opacity: 0.22;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  min-height: calc(86svh - 72px);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 82px) clamp(20px, 4vw, 36px) 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}

.hero-copy {
  max-width: 690px;
}

.app-store-line,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-store-line {
  margin-bottom: 20px;
  color: var(--charcoal);
}

.app-store-line img {
  width: 18px;
  height: 18px;
}

h1 {
  font-size: clamp(76px, 13vw, 170px);
  line-height: 0.82;
  letter-spacing: 0;
  font-weight: 950;
}

.hero-lede {
  max-width: 620px;
  margin-top: 26px;
  color: var(--charcoal);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.09;
  letter-spacing: 0;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 950;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.primary-action {
  gap: 10px;
  background: var(--ink);
  color: var(--surface);
}

.primary-action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-action {
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.safe-copy {
  max-width: 550px;
  margin-top: 26px;
  padding-left: 16px;
  border-left: 4px solid var(--sun);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 620;
}

.safe-copy strong {
  color: var(--ink);
  font-weight: 950;
}

.hero-preview {
  justify-self: end;
  width: min(100%, 360px);
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(100%, 352px);
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
}

.preview-tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.preview-tab.is-active {
  background: var(--ink);
  color: var(--surface);
}

.iphone-device {
  position: relative;
  width: min(100%, 334px);
  margin: 0 auto;
}

.side-button {
  position: absolute;
  z-index: 0;
  display: block;
  width: 5px;
  background: #050505;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.side-button-left {
  left: -4px;
}

.side-button-right {
  right: -4px;
  top: 156px;
  height: 92px;
}

.side-button-silent {
  top: 126px;
  height: 36px;
}

.side-button-volume {
  top: 184px;
  height: 92px;
}

.iphone-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 390 / 844;
  padding: 8px;
  border: 10px solid #060606;
  border-radius: 62px;
  background: #060606;
  box-shadow:
    0 32px 78px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.iphone-frame::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 68px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 48px;
  background: var(--surface);
}

.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 6;
  width: 128px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.dynamic-island::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #191919;
  box-shadow: inset 0 0 0 1px #262626;
}

.ios-status {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.signal-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 12px;
}

.signal-bars b {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: var(--ink);
}

.signal-bars b:nth-child(1) {
  height: 5px;
}

.signal-bars b:nth-child(2) {
  height: 8px;
}

.signal-bars b:nth-child(3) {
  height: 11px;
}

.wifi-icon {
  position: relative;
  width: 15px;
  height: 11px;
  overflow: hidden;
}

.wifi-icon::before,
.wifi-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid var(--ink);
  border-color: var(--ink) transparent transparent transparent;
  border-radius: 999px;
  transform: translateX(-50%);
}

.wifi-icon::before {
  top: 0;
  width: 15px;
  height: 15px;
}

.wifi-icon::after {
  top: 5px;
  width: 8px;
  height: 8px;
}

.battery-icon {
  position: relative;
  width: 24px;
  height: 12px;
  border: 1.8px solid var(--ink);
  border-radius: 4px;
}

.battery-icon::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--ink);
}

.battery-icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: #36c26b;
}

.phone-viewport {
  position: absolute;
  inset: 66px 0 88px;
  overflow: hidden;
}

.phone-screen {
  display: none;
  height: 100%;
  padding: 18px 24px 0;
  background: var(--surface);
}

.phone-screen.is-active {
  display: block;
  animation: screenIn 300ms var(--ease) both;
}

.screen-heading {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.screen-heading span,
.mini-card span,
.challenge-stat-grid span,
.join-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.screen-heading strong {
  max-width: 280px;
  font-size: 42px;
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 950;
}

.meter {
  height: 13px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mist);
}

.meter span {
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  animation: growMeter 760ms var(--ease) both;
}

.split-line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 20px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 800;
}

.mini-card {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
}

.mini-card strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.mini-card em {
  color: var(--charcoal);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.app-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border-top: 1px solid var(--mist);
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.app-row img {
  width: 23px;
  height: 23px;
}

.app-row b {
  font-size: 16px;
}

.challenge-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.challenge-stat-grid div {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
}

.challenge-stat-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.progress-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.progress-days span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--hairline);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

.progress-days .done {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.phone-note {
  margin-top: 17px;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
}

.join-strip {
  margin-top: 18px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 15px;
  background: var(--sun);
}

.join-strip span {
  color: var(--ink);
}

.settlement-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--mist);
}

.settlement-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--mist);
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 800;
}

.settlement-list b {
  color: var(--ink);
}

.phone-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.96);
}

.phone-tabbar span {
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.phone-tabbar span::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 999px;
}

.phone-tabbar .is-active {
  color: var(--ink);
}

.phone-tabbar .is-active::before {
  border-radius: 6px;
  background: currentColor;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 132px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111111;
}

.how-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 116px) clamp(20px, 4vw, 36px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

h2 {
  margin-top: 10px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 950;
}

h3 {
  margin-top: 16px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 950;
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}

.step-card img {
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}

.step-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.step-card p {
  margin-top: 12px;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.32;
  font-weight: 650;
}

.why-section {
  background: var(--ink);
  color: var(--surface);
}

.why-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 116px) clamp(20px, 4vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 88px);
}

.why-copy .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.why-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
}

.benefit-grid {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.benefit-grid article {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.benefit-grid span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 950;
}

.benefit-grid h3 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 950;
}

.benefit-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
}

.feature-section,
.final-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 116px) clamp(20px, 4vw, 36px);
}

.feature-heading {
  max-width: 900px;
  margin-bottom: 40px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
}

.feature-visual {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
}

.feature-visual > img {
  width: min(190px, 52vw);
  border-radius: 34px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.feature-icons {
  display: flex;
  gap: 18px;
}

.feature-icons img {
  width: 32px;
  height: 32px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature-list article {
  min-height: 172px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
}

.feature-list h3 {
  margin-top: 0;
  font-size: 27px;
}

.feature-list p {
  margin-top: 14px;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.34;
  font-weight: 650;
}

.final-section {
  padding-top: 0;
}

.final-inner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(34px, 7vw, 72px);
  background: var(--surface);
}

.final-inner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -90px;
  width: min(58vw, 520px);
  aspect-ratio: 3 / 2;
  background: url("/assets/hiking-hero.png") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.final-inner h2,
.final-inner p,
.final-inner a {
  position: relative;
  z-index: 1;
}

.final-inner h2 {
  max-width: 720px;
}

.final-inner p {
  max-width: 430px;
  margin: 18px 0 26px;
  color: var(--charcoal);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 28px clamp(20px, 4vw, 44px);
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.brand-footer img {
  width: 36px;
  height: 36px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-socials img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 850;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes growMeter {
  from {
    transform: scaleX(0.12);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .hero-art {
    right: -28vw;
    bottom: 24%;
    width: 116vw;
    opacity: 0.14;
  }

  .hero-preview {
    justify-self: center;
  }

  .step-rail,
  .why-inner,
  .feature-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand span {
    font-size: 15px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 38px 16px 42px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(66px, 24vw, 104px);
  }

  .hero-lede {
    font-size: 21px;
  }

  .safe-copy {
    font-size: 15px;
  }

  .iphone-device {
    width: min(100%, 356px);
  }

  .iphone-frame {
    border-width: 8px;
    border-radius: 54px;
  }

  .iphone-screen {
    border-radius: 42px;
  }

  .dynamic-island {
    width: 118px;
    height: 35px;
  }

  .ios-status {
    padding: 0 24px;
  }

  .screen-heading strong {
    font-size: 35px;
  }

  .phone-screen {
    padding: 18px 20px 0;
  }

  .phone-viewport {
    bottom: 86px;
  }

  .how-section,
  .feature-section,
  .final-section,
  .why-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-heading {
    display: block;
  }

  h2 {
    font-size: clamp(42px, 16vw, 68px);
  }

  .step-card {
    padding: 14px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list article {
    min-height: auto;
  }

  .why-copy p {
    font-size: 17px;
  }

  .final-inner {
    padding: 30px 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-socials,
  .footer-links {
    justify-content: flex-start;
  }
}

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

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