:root {
  color-scheme: light;

  --bg: #f5f7fa;
  --ink: #161b20;
  --muted: #414d58;
  --green: #087843;
  --line: #d6dde3;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

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

a:focus-visible,
button:focus-visible,
.gallery-track:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

p {
  line-height: 1.7;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 1rem;
  background: var(--bg);
  z-index: 5;
}

.skip:focus {
  top: 1rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 1.75rem;
}

.brand img {
  width: 47px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  padding: 3.5rem 0 5rem;
  gap: 3rem;
}

.hero > div {
  min-width: 0;
}

.hero > div:first-child {
  max-width: 800px;
  margin: auto;
}

.hero > div:last-child {
  position: relative;
  isolation: isolate;
}

.hero > div:last-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -1rem;
  background: radial-gradient(ellipse at 50% 48%, #24af6819, transparent 67%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}

.hero .eyebrow {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 6.6vw, 5.3rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 1.4rem 0;
}

h1 span {
  color: var(--green);
}

.intro {
  font-size: 1.125rem;
  max-width: 30rem;
}

.hero .intro {
  margin: 1.5rem auto;
  text-wrap: balance;
}

.launch-note {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.download-cta {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: default;
}

.download-cta img {
  display: block;
  width: 180px;
  height: auto;
}

.download-availability {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--muted);
}

.screens {
  display: flex;
  max-width: 730px;
  margin: auto;
  gap: 2rem;
  align-items: flex-start;
}

.screens figure {
  margin: 0;
  min-width: 0;
  flex: 1;
}

.screens figure:first-child,
.screens figure:last-child {
  margin-top: 2.5rem;
}

.phone {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid #353b3e;
  border-radius: 1.9rem;
  box-shadow: 0 18px 35px #162a3926;
}

.screens figcaption {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

.number {
  color: #43594c;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.gallery {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.gallery-heading h2 {
  margin: 0.7rem 0;
}

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

.gallery-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.gallery-track img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.gallery-card {
  flex: 0 0 280px;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 1.7rem;
  background: #e3ede6;
  color: var(--ink);
  scroll-snap-align: start;
}

.gallery-card:nth-child(3n + 2) {
  background: #e3e9f1;
}

.gallery-card:nth-child(3n) {
  background: #ece5ee;
}

.gallery-kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.gallery-card h3 {
  font-size: 1.6rem;
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.15;
  min-height: 3.7rem;
  margin: 0.8rem 0 1.5rem;
}

.gallery-card .phone {
  border-color: #41484b;
  box-shadow: 0 12px 22px #0002;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  min-height: 65vh;
  padding: 5rem 0;
}

.legal-page h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 1rem 0 1.5rem;
}

.placeholder-page .intro {
  margin-bottom: 0.25rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

@media (width <= 620px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  header {
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  nav {
    gap: 1.4rem;
  }

  .hero {
    padding: 2rem 0 3rem;
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .screens {
    gap: 0.65rem;
  }

  .phone {
    border-radius: 1rem;
    border-width: 2px;
  }

  .screens figure:first-child,
  .screens figure:last-child {
    margin-top: 1.25rem;
  }

  .screens figcaption {
    margin-top: 0.75rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .features p br {
    display: none;
  }

  .gallery {
    padding-top: 2rem;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-card {
    flex-basis: min(76vw, 280px);
  }

  .gallery-card .phone {
    border-radius: 1.7rem;
  }

  .placeholder-page {
    padding-top: 3rem;
  }
}

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

/* Follow browser/system appearance live, including without JavaScript. */
.brand picture {
  display: flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #101113;
    --ink: #f7f8f9;
    --muted: #bbc2c9;
    --green: #78ffb1;
    --line: #343a40;
  }

  .number {
    color: #afc5b8;
  }

  .phone {
    box-shadow: 0 18px 35px #0005;
  }

  .gallery-card {
    background: #1b2921;
  }

  .gallery-card:nth-child(3n + 2) {
    background: #222b39;
  }

  .gallery-card:nth-child(3n) {
    background: #2c2632;
  }

  .gallery-track {
    scrollbar-color: #61736a transparent;
  }
}

/* Hide the scrollbar while preserving native scrolling and carousel controls. */
.gallery-track {
  display: flex;
  overflow-x: auto;
  gap: 1.1rem;
  padding: 0 0 1.2rem;
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-color: #84918b transparent;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

/* Clearer product benefits, with a quiet editorial hierarchy. */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  gap: 2.5rem;
  padding: 3rem 0;
}

.features > div {
  min-width: 0;
}

.features .number {
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.features h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 1rem 0 0.8rem;
  text-wrap: balance;
}

.features p {
  margin: 0;
  max-width: 33ch;
  line-height: 1.7;
}

@media (width <= 620px) {
  .features {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2rem 0;
  }

  .features > div + div {
    border-top: 1px solid var(--line);
    padding-top: 1.8rem;
  }

  .features p {
    max-width: none;
  }
}

/* Unframed carousel arrows; keep a comfortable tap target. */
.gallery-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.3rem;
}

.gallery-controls button {
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.5rem;
}

.gallery-controls button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

/* Approved option B wordmark; body text keeps the system font. */
.brand,
.wordmark {
  font-family:
    "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.25rem;
}

/* Compact mobile header; wrapping remains available for enlarged text. */
@media (width <= 620px) {
  header .brand {
    gap: 0.4rem;
    font-size: 1rem;
    white-space: nowrap;
  }

  header .brand img {
    width: 34px;
  }

  header nav {
    gap: 0.75rem;
    font-size: 0.8125rem;
    margin-left: auto;
  }

  header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
