:root {
  --green: #7ab31e;
  --green-light: #94cf31;
  --green-deep: #456f13;
  --yellow: #f8e71c;
  --ink: #11190d;
  --display-black: #1a1a1a;
  --paper: #faf9f4;
  --paper-muted: #eef0e7;
  --muted: #62695d;
  --line: rgba(17, 25, 13, 0.17);
  --dark-line: rgba(255, 255, 255, 0.18);
  --display: 'Montserrat', 'Arial Black', sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--display-black);
  background: var(--paper);
  font-family: var(--body);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.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-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--display-black);
  background: white;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 76px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: background-color 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.site-header.scrolled {
  height: 64px;
  background: rgba(17, 25, 13, 0.98);
  border-bottom: 1px solid var(--dark-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font: 800 20px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.brand span span {
  color: var(--green-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  padding-block: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-bottom-color: var(--green-light);
}

.menu-button {
  display: none;
  padding: 8px;
  color: inherit;
  background: none;
  border: 0;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px;
  background: currentColor;
}

.hero {
  min-height: 780px;
  padding: 120px clamp(24px, 7vw, 110px) 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  color: white;
  background: var(--ink);
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

.section-label {
  margin: 0 0 23px;
  color: var(--green-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 6.4vw, 92px);
}

h1 span {
  display: block;
  color: var(--green-light);
  overflow-wrap: anywhere;
}

.hero-intro {
  max-width: 650px;
  margin: 30px 0;
  color: #d1d7cd;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.hero-actions,
.store-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  min-height: 58px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.button svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button span {
  display: grid;
  font-size: 18px;
  line-height: 1.05;
}

.button small {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.button-primary {
  color: var(--display-black);
  background: var(--green-light);
}

.button-primary:hover {
  background: #a2df39;
}

.button-app-store {
  color: white;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.38);
}

.button-app-store:hover {
  border-color: white;
}

.button .apple-mark {
  display: block;
}

.text-link {
  padding: 12px 0;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.product-since {
  max-width: 570px;
  margin: 40px 0 0;
  padding-top: 20px;
  color: #a9b1a4;
  font-size: 13px;
  line-height: 1.6;
  border-top: 1px solid var(--dark-line);
}

.product-since strong {
  color: white;
}

.hero-screen {
  width: min(100%, 330px);
  margin: 0 auto;
}

.screen-surface {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #080a07;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
}

html[data-platform='ios'] .screen-surface {
  aspect-ratio: 110 / 239;
}

.screen-surface > [data-platform-image],
.screen-surface noscript img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-surface > [data-platform-image] {
  position: absolute;
  inset: 0;
}

[data-platform-image]:not([src]) {
  visibility: hidden;
}

[data-platform-image][hidden] {
  display: none;
}

.screen-unavailable {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #5e6759;
  background: #f4f6f0;
  text-align: center;
}

.screen-unavailable[hidden] {
  display: none;
}

.screen-unavailable img {
  border-radius: 14px;
}

.screen-unavailable strong {
  color: var(--green-deep);
  font: 800 18px var(--display);
}

.screen-unavailable span {
  font-size: 11px;
}

.hero-screen figcaption,
.screen-shot figcaption {
  margin-top: 14px;
  font-size: 12px;
}

.hero-screen figcaption {
  color: #90998a;
  text-align: center;
}

.section {
  padding: 112px clamp(24px, 7vw, 110px);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 65px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: clamp(40px, 8vw, 120px);
}

h2 {
  font-size: clamp(42px, 5.2vw, 72px);
}

.section-heading > p,
.showcase-copy > p,
.story-copy > p,
.download-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.feature-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature-item {
  min-height: 190px;
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:nth-child(even) {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid var(--line);
}

.feature-item:last-child {
  grid-column: 1 / -1;
  min-height: 0;
  padding-right: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 40px;
}

.feature-item h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.035em;
}

.feature-item p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.service-note {
  max-width: 1180px;
  margin: 35px auto 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  border-left: 3px solid var(--green);
}

.showcase {
  min-height: 790px;
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  color: white;
  background: #172014;
}

.showcase-copy {
  max-width: 520px;
}

.showcase-copy > p {
  margin-top: 28px;
  color: #adb6a8;
}

.platform-selector {
  width: fit-content;
  margin: 32px 0 18px;
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #4b5545;
}

.platform-selector button {
  min-width: 88px;
  padding: 12px 2px 11px;
  color: #99a394;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: 700 14px var(--body);
  cursor: pointer;
}

.platform-selector button:hover {
  color: white;
}

.platform-selector button[aria-pressed='true'] {
  color: var(--green-light);
  border-bottom-color: var(--green-light);
}

.gallery-hint {
  display: none;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  align-items: start;
  gap: clamp(12px, 1.8vw, 24px);
}

.screen-shot {
  min-width: 0;
  margin: 0;
}

.screen-shot figcaption {
  color: #aab3a5;
}

.story {
  display: grid;
  grid-template-columns: auto minmax(0, 1.25fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  background: var(--paper-muted);
}

.story-year {
  color: var(--green-deep);
  font: 800 clamp(54px, 7vw, 94px)/1 var(--display);
  letter-spacing: -0.07em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.story-copy {
  max-width: 680px;
}

.story-copy h2 {
  font-size: clamp(40px, 4.6vw, 66px);
}

.story-copy > p {
  max-width: 630px;
  margin-top: 28px;
}

.award {
  padding: 30px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.award > strong {
  color: var(--green-deep);
  font: 800 74px/0.85 var(--display);
  letter-spacing: -0.08em;
}

.award sup {
  font-size: 18px;
}

.award div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.award span {
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.award p {
  margin: 0;
  font: 700 20px/1.2 var(--display);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.download {
  color: white;
  text-align: center;
  background: #0b0e09;
}

.download-inner {
  max-width: 800px;
  margin: auto;
  display: grid;
  justify-items: center;
}

.download-inner > img {
  margin-bottom: 34px;
  border-radius: 23px;
}

.download h2 {
  font-size: clamp(42px, 5.5vw, 72px);
}

.download-inner > p {
  margin: 24px auto 32px;
  color: #aeb6a8;
}

.store-row {
  justify-content: center;
}

footer {
  padding: 30px clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  color: #bfc6ba;
  background: #070906;
  border-top: 1px solid #262c23;
  font-size: 12px;
}

footer .brand {
  color: white;
  font-size: 17px;
}

.footer-note {
  max-width: 520px;
  margin: 0;
  color: #7f877a;
  line-height: 1.55;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer nav a {
  text-underline-offset: 4px;
}

footer small {
  color: #70776c;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.55fr);
    gap: 55px;
    padding-inline: 45px;
  }

  .hero-screen {
    width: min(100%, 290px);
  }

  .section {
    padding-inline: 45px;
  }

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

  .showcase-copy {
    max-width: 750px;
  }

  .screen-gallery {
    max-width: 780px;
  }

  .story {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .award {
    grid-column: 2;
    max-width: 520px;
  }

  footer {
    grid-template-columns: auto 1fr auto;
  }

  footer small {
    grid-column: 2 / -1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 65px;
  }

  .site-header {
    height: 65px;
    padding-inline: 20px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 65px 12px auto;
    padding: 12px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    color: white;
    background: #1a2317;
    border: 1px solid #4a5543;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid #35402f;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 0;
    padding: 116px 23px 80px;
    grid-template-columns: 1fr;
    gap: 62px;
  }

  h1 {
    font-size: clamp(43px, 12vw, 58px);
  }

  .hero-screen {
    width: min(78vw, 290px);
  }

  .section {
    padding: 82px 23px;
  }

  .section-heading {
    margin-bottom: 48px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 25px;
  }

  h2 {
    font-size: clamp(39px, 10vw, 54px);
  }

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

  .feature-item,
  .feature-item:nth-child(even),
  .feature-item:last-child {
    min-height: 0;
    padding: 27px 0;
    display: block;
    border-left: 0;
  }

  .feature-item:last-child {
    grid-column: auto;
  }

  .showcase {
    gap: 0;
  }

  .gallery-hint {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #adb6a8;
    font-size: 13px;
    font-weight: 700;
  }

  .gallery-hint span {
    color: var(--green-light);
    font-size: 20px;
    line-height: 1;
  }

  .screen-gallery {
    margin-inline: -23px;
    padding: 0 23px 18px;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    cursor: grab;
  }

  .screen-gallery:active {
    cursor: grabbing;
  }

  .screen-shot {
    width: min(72vw, 250px);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .story-year {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .award {
    grid-column: auto;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .footer-note {
    max-width: 480px;
  }

  footer small {
    grid-column: auto;
    justify-self: center;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  h1 span {
    font-size: 0.74em;
  }

  .hero-actions,
  .store-row {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: min(100%, 260px);
    justify-content: center;
  }

  .text-link {
    align-self: flex-start;
  }

  .hero-actions .button,
  .store-row .button {
    width: 100%;
  }

  .download h2 {
    max-width: 100%;
    font-size: clamp(38px, 12vw, 50px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 40px;
  }

  .hero-screen {
    width: min(76vw, 260px);
  }

  .award {
    gap: 18px;
  }

  .award > strong {
    font-size: 62px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
