@font-face {
  font-family: "Space Grotesk";
  src: url("SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #112521;
  --dark: #102d28;
  --deep: #102d28;
  --teal: #06726F;
  --mint: #c0ecd9;
  --paper: #f7f9f9;
  --panel: #e9efe8;
  --soft: #425c55;
  --muted: var(--soft);
  --night: var(--dark);
  --line: #d3ded6;
  --white: #fff;
  --radius-stage: 34px;
  --radius-card: 24px;
  --radius-field: 14px;
  --header: 74px;
  color-scheme: light;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header) + 1rem);
}

body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid #37aa9d;
  outline-offset: 4px;
}

::selection { color: var(--dark); background: var(--mint); }

h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { font-weight: 700; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 4.55vw, 4.8rem); line-height: 1; letter-spacing: -.06em; margin-block-end: 1.25rem; }
p { line-height: 1.63; }
h3 { line-height: 1.06; letter-spacing: -.043em; }

.shell { width: min(calc(100% - 5rem), 1300px); margin-inline: auto; }
.section { padding-block: clamp(3.9rem, 7.2vw, 7.5rem); }

.skip {
  position: fixed;
  top: .5rem;
  left: .75rem;
  z-index: 30;
  background: var(--mint);
  color: var(--dark);
  padding: .75rem 1rem;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fffffff5;
  border-bottom: 1px solid #10342d1f;
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: .55rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .875rem;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.15rem, 2.9vw, 2.85rem); }
.desktop-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--teal); }
.mobile-nav { display: none; }
.header-actions { display: flex; flex: none; align-items: center; gap: .5rem; }

.button, .store-badge {
  min-height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.button {
  min-height: 52px;
  padding: .825rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.button-header { min-height: 44px; padding: .65rem 1rem; font-size: .9rem; color: #fff; background: var(--teal); }
.button-header:hover { background: #054e4b; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: #054e4b; }
.store-badge img { width: auto; height: 3rem; }
.download-dialog {
  position: fixed;
  width: min(calc(100% - 1.5rem), 28rem);
  max-height: calc(100% - 1.5rem);
  padding: clamp(1.35rem, 5vw, 2.1rem);
  border: 1px solid #c5ded1;
  border-radius: var(--radius-card);
  color: var(--ink);
  background: #f9fcfa;
  box-shadow: 0 1.5rem 4rem #071e1a40;
  text-align: center;
}
.download-dialog::backdrop { background: #0d2521a6; }
body:has(.download-dialog[open]) { overflow: hidden; }
.download-dialog h2 {
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  letter-spacing: -.05em;
  margin: 1.75rem 0 1.1rem;
}
.download-dialog p { margin: .75rem 0 0; color: var(--muted); font-size: .91rem; }
.download-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--teal);
  background: transparent;
}
.download-close:hover { background: #edf5ef; }
.download-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem clamp(.55rem, 3vw, .92rem); }
.download-stores a { min-height: 44px; }
.download-stores img { width: auto; height: clamp(2.125rem, 10.6vw, 2.625rem); }
.text-link { display: inline-block; text-underline-offset: .35em; font-weight: 700; }
.text-link:hover { text-decoration-thickness: .16em; }
.eyebrow { margin-block-end: 1.1rem; letter-spacing: .105em; text-transform: uppercase; font-size: .86rem; font-weight: 700; }

.app-hero {
  padding: clamp(.65rem, 1.7vw, 1.4rem) 0;
  background: var(--white);
}

.hero-inner {
  width: min(calc(100% - 2rem), 1400px);
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  min-height: clamp(500px, 43vw, 650px);
  padding: clamp(2rem, 3.35vw, 3.5rem) clamp(1.65rem, 4vw, 4rem);
  border: 1px solid #1c5145;
  border-radius: var(--radius-stage);
  color: #fafcfb;
  background: radial-gradient(ellipse at 78% 46%, #23584e 0%, #153831 39%, transparent 69%), #0d2420;
}

.hero-copy { position: relative; z-index: 1; padding-block: 1rem; }
.hero-copy .eyebrow { color: var(--mint); margin-block-end: .95rem; }
.hero-copy h1 {
  font-size: clamp(3.15rem, 5.75vw, 6.4rem);
  margin-block-end: 1.25rem;
  line-height: .99;
  letter-spacing: -.068em;
  text-wrap: initial;
}

.hero-copy h1 span { display: block; color: var(--mint); }
.hero-lead {
  max-width: 29rem;
  margin: 0;
  font-size: clamp(1.125rem, 1.55vw, 1.3rem);
  color: #dceae3;
  line-height: 1.53;
}
.hero-actions { display: flex; align-items: center; gap: clamp(.45rem, 1.6vw, .85rem); margin-top: 1.65rem; }
.hero-actions .store-badge { min-height: 44px; }
.hero-actions .store-badge img { height: clamp(36px, 11vw, 47px); }

.hero-art {
  --phone-height: clamp(23rem, 38vw, 32rem);
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: calc(var(--phone-height) + 2.5rem);
  margin: 0;
}
.hero-device {
  position: absolute;
  width: auto;
  max-width: 49%;
  height: var(--phone-height);
  object-fit: contain;
  filter: drop-shadow(0 .9rem 1.2rem #031b17a3);
}
.hero-device-back {
  height: calc(var(--phone-height) * .89);
  top: 54%;
  right: 47%;
  transform: translateY(-46%) rotate(-12deg);
}
.hero-device-front {
  top: 49%;
  left: 47%;
  transform: translateY(-50%) rotate(10deg);
}

.tour, .watch-section { background: var(--white); }
.section.tour { padding-block: clamp(2.75rem, 6.5vw, 6.5rem) clamp(1.5rem, 4vw, 3.25rem); }
.section.watch-section { padding-block: 0 clamp(.75rem, 2vw, 1.5rem); }
.tour-heading { max-width: 49rem; margin-block-end: 1.5rem; }
.tour-heading h2 { margin-block-end: .85rem; }
.tour-heading > p:not(.eyebrow) { color: var(--soft); max-width: 37rem; font-size: 1.125rem; margin: 0; }

.tour-grid {
  --tour-visual-height: clamp(18rem, 63svh, 35rem);
  --tour-top: calc(var(--header) + 1rem);
  --tour-step-length: clamp(10rem, 34svh, 19rem);
  --tour-tail: clamp(6rem, 24svh, 12rem);
}

.tour-grid.is-enhanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.is-enhanced > .tour-sticky, .is-enhanced > .tour-steps { grid-area: 1 / 1; }

.is-enhanced > .tour-sticky {
  position: sticky;
  top: var(--tour-top);
  z-index: 1;
}

.tour-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.tour-frame {
  --display-gutter: 1rem;
  --bezel-height: calc(var(--tour-visual-height) - 2 * var(--display-gutter));
  display: grid;
  place-items: center;
  height: var(--tour-visual-height);
  padding: var(--display-gutter);
}

/* The bezel stays fixed while only the display changes. */
.phone-shell, .watch-shell {
  position: relative;
  filter: drop-shadow(0 1.1rem 1.5rem #041a15a3);
}
.phone-shell {
  width: min(100%, calc(var(--bezel-height) * 605 / 1247));
  aspect-ratio: 605 / 1247;
  filter: drop-shadow(0 .85rem 1.45rem #112b233d);
}
.watch-shell { width: min(100%, calc(var(--bezel-height) * 780 / 1139)); aspect-ratio: 780 / 1139; }
.phone-display {
  position: absolute;
  inset: 1.764% 4.298%;
  border-radius: 11.75% / 5.4%;
  isolation: isolate;
  overflow: hidden;
  background: #101817;
}
.phone-bezel, .watch-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Percentages map the screen crop to the original Watch render. */
.watch-display {
  position: absolute;
  left: 8.863%;
  top: 18.074%;
  width: 77.842%;
  height: 62.797%;
  isolation: isolate;
}
.tour-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.tour-image.is-current { opacity: 1; }

.tour-copy-stage { display: grid; min-width: 0; }
.tour-copy-stage > .story-step-copy { grid-area: 1 / 1; visibility: hidden; }
.tour-copy-stage > .is-current { visibility: visible; }

.is-enhanced .story-step {
  position: relative;
  min-height: var(--tour-step-length);
  padding: 0;
  border: 0;
}
.is-enhanced .story-step:last-child {
  min-height: calc(var(--tour-stage-height, var(--tour-visual-height)) + var(--tour-tail));
}
/* The original chapters remain available to assistive technology and by URL. */
.is-enhanced .story-step > * {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.story-step {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.story-step > .story-step-copy { grid-area: 1 / 2; }
.story-source { grid-area: 1 / 1; justify-self: center; width: min(12.5rem, 100%); border: 2px solid var(--line); border-radius: .85rem; }
.story-step-copy h3 { margin-bottom: .65rem; font-size: clamp(1.65rem, 2.8vw, 2.8rem); }
.story-step-copy p, .story-step-copy ul { margin: 0; color: var(--soft); max-width: 31rem; line-height: 1.55; }
.story-step-copy ul { padding-inline-start: 1.2rem; }
.story-step-copy li + li { margin-block-start: .35rem; }
.story-step-copy li::marker { color: var(--teal); }
.tour-note { color: var(--soft); font-size: .89rem; margin: 1.25rem 0 0; }

.watch-tour {
  --tour-visual-height: clamp(16rem, 57svh, 31rem);
  --tour-step-length: clamp(7rem, 25svh, 13rem);
  --tour-tail: clamp(2rem, 7svh, 3.75rem);
}
.watch-tour.is-enhanced > .tour-sticky, .watch-tour:not(.is-enhanced) {
  padding: clamp(1.15rem, 3vw, 3rem);
  border: 1px solid #24564a;
  border-radius: var(--radius-stage);
  background: #123a30;
  color: #f3faf6;
}
.watch-tour.is-enhanced > .tour-sticky {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(1.15rem, 2.5vw, 2.25rem) clamp(1.75rem, 5vw, 5rem);
}
.watch-tour .tour-visuals { display: contents; }
.watch-tour .tour-frame { grid-area: 1 / 1 / 3 / 2; align-self: center; }
.watch-tour .tour-copy-stage { grid-area: 2 / 2; align-self: start; }
.watch-heading { grid-area: 1 / 2; align-self: end; }
.watch-heading .eyebrow { color: var(--mint); }
.watch-heading h2 { margin-block-end: .7rem; font-size: clamp(2rem, 4.4vw, 4rem); }
.watch-heading > p:last-child, .watch-tour .story-step-copy p { color: #daece3; }
.watch-heading > p:last-child { max-width: 30rem; margin: 0; }
.watch-tour:not(.is-enhanced) .watch-heading { margin-block-end: 1.5rem; }
.watch-tour:not(.is-enhanced) .story-step { border-color: #87b0a054; }
.watch-tour:not(.is-enhanced) .story-step:last-child { padding-block-end: 0; }
.watch-tour .story-source { border-color: #87b0a054; }

.android-section { padding-block: clamp(.7rem, 1.75vw, 1.4rem); background: var(--white); }
.android-grid {
  display: grid;
  width: min(calc(100% - 2rem), 1400px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(1.25rem, 5vw, 4.5rem);
  color: #fff;
  border: 1px solid #1c5145;
  border-radius: var(--radius-stage);
  background: radial-gradient(ellipse at 23% 0%, #265a4f, transparent 68%), #102b25;
}
.android-copy .eyebrow { color: var(--mint); }
.android-copy h2 { text-wrap: wrap; }
.android-copy p:not(.eyebrow) { color: #dfede7; max-width: 34rem; font-size: clamp(1.125rem, 1.65vw, 1.375rem); }
.contact-privacy { margin: .5rem .2rem 0; text-align: end; font-size: .84rem; color: #e2f2e9; }
.contact-privacy a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .22em; }

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-card);
  border: 1px solid #dbe9df;
  padding: clamp(1.1rem, 3.5vw, 2.5rem);
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.contact-form label { display: block; min-width: 0; font-weight: 700; margin-bottom: 1rem; font-size: .9375rem; }
.form-row label { display: flex; flex-direction: column; gap: .38rem; }
.contact-form label span { color: var(--soft); font-weight: 500; }

.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  padding: .65rem .85rem;
  min-height: 48px;
  margin-top: .38rem;
  border: 1px solid #a9c2b6;
  border-radius: var(--radius-field);
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 400;
}

.contact-form textarea { resize: vertical; }
.form-row input { margin-top: auto; }
.contact-form .form-note { color: var(--soft); font-size: .9rem; margin: .8rem 0 0; }
.form-note a { text-underline-offset: .15em; }
.contact-form .button { width: 100%; text-align: center; }
.contact-form .button:disabled { opacity: .65; cursor: default; }
.form-status { margin: .8rem 0 0; font-size: .9375rem; font-weight: 600; }
.form-status:empty { position: absolute; }
.form-status[data-state="success"] { color: #06726F; }
.form-status[data-state="error"] { color: #9b3041; }

.site-footer {
  border-top: 1px solid #e0eae4;
  background: #f7faf8;
  padding: clamp(2rem, 4.75vw, 3.5rem) 0 1.3rem;
}
.footer-top { display: grid; justify-items: center; gap: .8rem; }
.footer-brand { gap: .6rem; }
.footer-brand img { width: 42px; height: 42px; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.footer-contact a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c9ded2;
  border-radius: 50%;
  color: var(--teal);
  background: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-contact a:hover { color: #fff; background: var(--teal); border-color: var(--teal); }
.footer-bottom {
  width: min(100%, 39rem);
  margin: 1.35rem auto 0;
  padding-top: .5rem;
  display: grid;
  justify-items: center;
  gap: .25rem;
  border-top: 1px solid #d9e5de;
  text-align: center;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(.85rem, 4vw, 1.6rem); }
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 600;
}
.footer-bottom a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: .25em; }
.footer-copyright { color: var(--muted); margin: 0; font-size: .81rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-device { animation: phone-enter .7s cubic-bezier(.17,.65,.24,1) backwards; }
  .hero-device-front { animation-delay: .08s; }
  .motion-ready .reveal { transition: opacity .45s ease, translate .5s ease; }
  .motion-ready .reveal:not(.is-visible) { opacity: 0; translate: 0 .75rem; }
  .motion-ready .reveal:focus-within { opacity: 1; translate: none; }
}

@keyframes phone-enter {
  from { translate: 0 .65rem; }
  to { translate: none; }
}

@media (max-width: 64rem) {
  .shell { width: calc(100% - 3rem); }
  .hero-inner, .android-grid { width: calc(100% - 2rem); }
  .hero-inner { gap: 2rem; }
  .hero-art { --phone-height: clamp(20rem, 37vw, 23rem); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 52rem) {
  :root { --header: 64px; --radius-stage: 25px; --radius-card: 20px; }
  .shell { width: calc(100% - 2rem); }
  .desktop-nav { display: none; }
  .header-inner:has(.header-actions) { gap: .5rem; }
  .header-inner:has(.header-actions) > .brand { gap: .35rem; font-size: .775rem; letter-spacing: .065em; }
  .header-inner:has(.header-actions) > .brand img { width: 34px; height: 34px; }
  .header-actions .button-header { white-space: nowrap; padding-inline: .8rem; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d5e3da;
    border-radius: 13px;
    color: var(--teal);
    background: #f6faf7;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary:hover { background: #eaf5ee; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav:not([open]) .menu-cross, .mobile-nav[open] .menu-lines { display: none; }
  .mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + .6rem);
    width: min(16rem, calc(100vw - 2.5rem));
    max-height: calc(100svh - var(--header) - 1rem);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    padding: .5rem;
    box-shadow: 0 20px 50px #06221924;
  }
  .mobile-nav a { color: inherit; text-decoration: none; padding: .72rem; min-height: 2.75rem; }
  .mobile-nav a:hover { color: var(--teal); }
  .hero-inner { width: min(calc(100% - 1.2rem), 640px); grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 1.45rem; padding: 2.1rem clamp(1rem, 3.9vw, 2rem) 1.35rem; }
  .hero-copy { padding-block: 0; }
  .hero-copy h1 { font-size: clamp(2.15rem, 9.9vw, 3.55rem); }
  .hero-art { --phone-height: 21.5rem; }
  .android-grid { width: min(calc(100% - 1.2rem), 640px); grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .section { padding-block: clamp(3rem, 9vw, 4.5rem); }
  .android-section { padding-block: .7rem; }
  .footer-bottom nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: clamp(.75rem, 5vw, 1.5rem); }
  .footer-bottom nav a { justify-content: center; }
  h2 { font-size: clamp(2.1rem, 9.5vw, 3.4rem); line-height: 1.06; }
  .tour-grid {
    --tour-visual-height: clamp(12rem, 39svh, 21rem);
    --tour-step-length: clamp(9rem, 35svh, 15rem);
  }
  .watch-tour {
    --tour-visual-height: clamp(10rem, 29svh, 17rem);
    --tour-step-length: clamp(6.75rem, 22svh, 11.5rem);
  }
  .tour-visuals { grid-template-columns: minmax(0, 1fr); }
  .watch-tour.is-enhanced > .tour-sticky {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: .75rem;
  }
  .watch-heading { grid-area: 1 / 1; }
  .watch-heading .eyebrow { margin-block-end: .6rem; }
  .watch-heading > p:last-child { line-height: 1.45; }
  .watch-tour .tour-frame { grid-area: 2 / 1; }
  .watch-tour .tour-copy-stage { grid-area: 3 / 1; }
  .tour-frame { --display-gutter: .6rem; }
  .hero-art { --phone-height: clamp(14rem, 69vw, 19rem); }
  .story-step { grid-template-columns: 1fr; }
  .story-step > .story-step-copy { grid-area: 2 / 1; }
  .story-step-copy p, .story-step-copy ul { font-size: .95rem; line-height: 1.45; }
}

@media (max-width: 40rem) and (max-height: 44rem) {
  .watch-tour { --tour-visual-height: clamp(10rem, 26svh, 14rem); }
  .watch-tour.is-enhanced > .tour-sticky { gap: .6rem; }
  .watch-tour .story-step-copy h3 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
