/* ==========================================================================
   FitTrack — Option 2 (light and airy)
   Brand colour #7fcc78 is used for fills and highlights. On light backgrounds,
   green text uses a deeper tone of the same hue so it stays readable (4.5:1+).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --brand: #7fcc78;
  --brand-hover: #8dd486;
  --brand-pressed: #72bf6b;
  --on-brand: #10260e;
  --brand-tint: rgba(127, 204, 120, .16);
  --brand-glow: rgba(127, 204, 120, .28);

  /* Light appearance */
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #424245;
  --muted: #6e6e73;
  --subtle: #86868b;
  --accent: #2b7326;               /* brand hue, deep enough for text */
  --danger: #d70015;
  --danger-tint: rgba(215, 0, 21, .07);
  --border: rgba(0, 0, 0, .08);
  --border-strong: rgba(0, 0, 0, .16);
  --hairline: rgba(0, 0, 0, .07);
  --fill: rgba(0, 0, 0, .04);
  --fill-hover: rgba(0, 0, 0, .065);
  --fill-pressed: rgba(0, 0, 0, .09);
  --fill-subtle: rgba(0, 0, 0, .02);
  --input-bg: #ffffff;
  --material: rgba(251, 251, 253, .72);
  --material-solid: #fbfbfd;
  --scrim: rgba(0, 0, 0, .2);
  --lightbox-scrim: rgba(245, 245, 247, .9);
  --shot-bg: #0b1011;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 40px rgba(0, 0, 0, .08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .05), 0 34px 80px rgba(0, 0, 0, .14);

  /* Shape */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Spacing (rem, so it scales with the reader's text size) */
  --space-2xs: .25rem;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(5rem, 11vw, 9rem);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --duration-press: 100ms;
  --duration-ui: 200ms;
  --duration-panel: 320ms;

  /* Layout */
  --content-width: 1080px;
  --gutter: max(1.25rem, calc((100% - var(--content-width)) / 2));
  --header-height: 52px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-lg));
  interpolate-size: allow-keywords;
}

/* Menu links land on the heading, not on the section's top padding,
   so the content below it fits on screen. */
main section[id] {
  scroll-margin-top: calc(var(--space-lg) - var(--space-section));
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font: 400 1.0625rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.011em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 400ms ease, color 400ms ease;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

h1, h2, h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button {
  color: inherit;
}

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

::selection {
  background: var(--brand-tint);
}

.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: var(--space-xs);
  left: var(--space-xs);
  z-index: 3000;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  color: var(--on-brand);
  background: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--duration-ui) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.section-shell {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Small label above headings. Uses the deep brand tone so it reads as green text. */
.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: .625rem 1.375rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-ui) ease, transform var(--duration-press) var(--ease-out), box-shadow var(--duration-ui) ease;
  -webkit-tap-highlight-color: transparent;
}

/* Feedback on press, not release */
.button:active {
  transform: scale(.97);
}

.button.primary {
  color: var(--on-brand);
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-hover);
}

.button.primary:active {
  background: var(--brand-pressed);
}

.button.secondary {
  color: var(--text);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--border);
}

.button.secondary:hover {
  background: var(--fill-hover);
}

.button.secondary:active {
  background: var(--fill-pressed);
}

.button:disabled {
  opacity: .55;
  cursor: progress;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: none;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.text-link span {
  display: inline-block;
  transition: transform var(--duration-ui) var(--ease-out);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover span {
  transform: translateX(3px);
}

.text-link:active {
  opacity: .65;
}

.round-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: var(--fill-hover);
  cursor: pointer;
  transition: background-color var(--duration-ui) ease, transform var(--duration-press) var(--ease-out), opacity var(--duration-ui) ease;
  -webkit-tap-highlight-color: transparent;
}

.round-button svg {
  width: 20px;
  height: 20px;
}

.round-button:hover {
  background: var(--fill-pressed);
}

.round-button:active {
  transform: scale(.92);
}

.round-button:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

/* ---------- Header: translucent material, content scrolls beneath ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

/* Scroll-edge effect: a hairline appears only once content is underneath */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--hairline);
  opacity: 0;
  transition: opacity var(--duration-ui) ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.nav-shell {
  width: min(var(--content-width), calc(100% - 2.5rem));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 22.5%;   /* app-icon corner */
  box-shadow: 0 0 0 .5px var(--border);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-navigation a {
  color: var(--text-secondary);
  font-size: .875rem;
  text-decoration: none;
  transition: color var(--duration-ui) ease;
}

.site-navigation a:hover,
.site-navigation a[aria-current] {
  color: var(--text);
}

.site-navigation a[aria-current="page"] {
  font-weight: 600;
}

.site-navigation .nav-cta {
  padding: .3rem .85rem;
  border-radius: var(--radius-pill);
  color: var(--on-brand);
  background: var(--brand);
  font-weight: 500;
  transition: background-color var(--duration-ui) ease, transform var(--duration-press) var(--ease-out);
}

.site-navigation .nav-cta:hover {
  color: var(--on-brand);
  background: var(--brand-hover);
}

.site-navigation .nav-cta:active {
  transform: scale(.96);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: auto;
  border-radius: 1px;
  background: var(--text);
  transition: transform var(--duration-panel) var(--ease-out);
}

.nav-toggle-icon {
  transform: translateY(-3.5px);
}

.nav-toggle-icon::before {
  content: "";
  transform: translateY(7px);
}

.navigation-open .nav-toggle-icon {
  transform: translateY(0) rotate(45deg);
}

.navigation-open .nav-toggle-icon::before {
  transform: translateY(0) rotate(-90deg);
}

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

  /* The menu grows down out of the header that holds its button */
  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-xs) 1.25rem var(--space-lg);
    background: var(--material-solid);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .08);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scaleY(.98);
    transition: opacity var(--duration-ui) ease, transform var(--duration-panel) var(--ease-out), visibility 0s linear var(--duration-panel);
  }

  .navigation-open .site-navigation {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--duration-ui) ease, transform var(--duration-panel) var(--ease-out), visibility 0s;
  }

  .site-navigation a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .site-navigation .nav-cta {
    margin-top: var(--space-md);
    padding: .75rem;
    border: 0;
    text-align: center;
    font-size: 1.0625rem;
  }

  .navigation-open {
    overflow: hidden;
  }

  /* Dim the page behind the open menu (tap to dismiss) */
  .navigation-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--scrim);
    animation: fade-in var(--duration-ui) ease;
  }
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding: clamp(2rem, 6vh, 4.5rem) 0 var(--space-section);
  text-align: center;
}

.hero-copy {
  width: min(1000px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero .eyebrow {
  font-size: 1.125rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

/* Two-tone headline: the second line steps back */
.hero h1 span {
  display: block;
}

.hero h1 span,
.section-heading h2 span {
  color: var(--muted);
}

.hero-lead {
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-lg);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .9rem;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

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

.hero-product {
  position: relative;
  width: min(1100px, calc(100% - 1.5rem));
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
}

/* Soft brand light behind the Mac */
.hero-product::before {
  content: "";
  position: absolute;
  inset: 8% 10% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent);
  filter: blur(30px);
}

.device {
  position: relative;
  isolation: isolate;
  transform-origin: 50% 0;
}

.device-frame {
  position: relative;
  z-index: 2;
  width: 100%;
}

.device-screen {
  position: absolute;
  z-index: 1;
  left: 12.75%;
  top: 4.86%;
  width: 74.5%;
  height: 78.2%;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  background: var(--shot-bg);
  animation: display-wake 1100ms var(--ease-out) 200ms backwards;
}

.availability {
  margin-top: var(--space-lg);
  color: var(--subtle);
  font-size: .95rem;
}

/* The Mac settles to full size as the page begins to scroll */
@supports (animation-timeline: scroll()) {
  .device {
    animation: device-settle linear both;
    animation-timeline: scroll(root);
    animation-range: 0 70vh;
  }
}

@keyframes device-settle {
  from { transform: scale(.9); }
  to { transform: none; }
}

@keyframes display-wake {
  0% { filter: brightness(0); }
  60% { filter: brightness(1.08); }
  100% { filter: none; }
}

/* ---------- Section headings ---------- */
.section-heading {
  max-width: 780px;
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.section-heading h2,
.tour-head h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -.03em;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin: var(--space-lg) auto 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

/* ---------- Tour: swipeable screenshot gallery ---------- */
.tour-section {
  overflow: hidden;
  padding: var(--space-section) 0 calc(var(--space-section) * .8);
  background: var(--bg-alt);
}

.tour-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.tour-controls {
  display: flex;
  gap: var(--space-sm);
  flex: none;
}

.tour {
  /* The current slide sits in the centre with its neighbours peeking in from each side */
  touch-action: pan-y;               /* vertical scrolling stays with the browser */
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.tour:focus-visible {
  outline-offset: -3px;
}

.tour.is-dragging {
  cursor: grabbing;
}

.tour-track {
  display: flex;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.tour-slide {
  flex: none;
  width: min(820px, 84vw);
  transform-origin: 50% 40%;
  will-change: transform, opacity;
}

.tour-slide figure {
  margin: 0;
}

.tour-shot {
  overflow: hidden;
  aspect-ratio: 1402 / 1122;
  border-radius: var(--radius-md);
  background: var(--shot-bg);
  box-shadow: var(--shadow-md);
}

.tour-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  cursor: zoom-in;
  -webkit-user-drag: none;
}

.tour.is-dragging .tour-shot img {
  cursor: grabbing;
}

.tour-slide figcaption {
  max-width: 620px;
  margin-top: var(--space-lg);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.tour-slide figcaption strong {
  color: var(--text);
  font-weight: 600;
}

/* Page dots: the current one stretches into a pill */
.tour-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: var(--space-2xl);
}

.tour-dots button {
  position: relative;
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width var(--duration-panel) var(--ease-out);
}

.tour-dots button::before {
  content: "";
  position: absolute;
  inset: 12px 8px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  transition: background-color var(--duration-ui) ease;
}

.tour-dots button[aria-current="true"] {
  width: 48px;
}

.tour-dots button[aria-current="true"]::before {
  background: var(--text);
}

.tour-hint {
  margin-top: var(--space-sm);
  color: var(--subtle);
  font-size: .875rem;
  text-align: center;
}

/* Without JavaScript the gallery is a plain horizontal scroller */
html:not(.js) .tour {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: auto;
}

html:not(.js) .tour-track {
  padding-inline: 1.25rem;
}

html:not(.js) .tour-slide {
  scroll-snap-align: start;
}

html:not(.js) .tour-controls,
html:not(.js) .tour-dots,
html:not(.js) .tour-hint {
  display: none;
}

/* ---------- Features: bento tiles ---------- */
.features-section {
  padding: var(--space-section) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.tile-copy {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.tile-kicker {
  margin-bottom: var(--space-xs);
  color: var(--accent);
  font-size: .95rem;
  font-weight: 600;
}

.tile h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.tile-copy > p:not(.tile-kicker) {
  margin-top: var(--space-md);
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: .12em;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310260e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.tile-visual {
  margin-top: auto;
}

.tile-visual img {
  cursor: zoom-in;
}

.tile-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
}

.tile-visual-diary {
  align-self: end;
  padding: var(--space-2xl) 0 0;
}

.tile-visual-diary img {
  border-radius: var(--radius-sm) 0 0 0;
  box-shadow: var(--shadow-lg);
}

.tile-visual-phone {
  display: flex;
  justify-content: center;
  height: 340px;
  overflow: hidden;
}

.tile-visual-phone img {
  width: 210px;
  height: auto;
  align-self: flex-start;
  border-radius: 30px;
  border: 6px solid #1d1d1f;
  box-shadow: var(--shadow-lg);
}

.tile-visual-progress {
  height: 340px;
  overflow: hidden;
  padding-left: clamp(1.75rem, 4vw, 2.75rem);
}

.tile-visual-progress img {
  width: 135%;
  max-width: none;
  border-radius: var(--radius-sm) 0 0 0;
  box-shadow: var(--shadow-lg);
}

/* ---------- Apple Health flow ---------- */
.flow-section {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}

.flow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  padding: 0;
  list-style: none;
  text-align: center;
}

/* Connecting line draws itself from left to right, showing the direction data travels */
.flow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand));
  transform-origin: left center;
}

.flow li {
  position: relative;
}

.flow-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
}

.flow-icon svg {
  width: 30px;
  height: 30px;
}

.flow h3 {
  font-size: 1.3rem;
  letter-spacing: -.02em;
}

.flow p {
  max-width: 280px;
  margin: var(--space-xs) auto 0;
  color: var(--muted);
}

.js .flow.reveal::before {
  transform: scaleX(0);
  transition: transform 1100ms var(--ease-in-out) 250ms;
}

.js .flow.reveal.is-visible::before {
  transform: none;
}

.js .flow.reveal .flow-icon {
  transform: scale(.6);
  opacity: 0;
  transition: transform 600ms var(--ease-out), opacity 300ms ease;
}

.js .flow.reveal.is-visible .flow-icon {
  transform: none;
  opacity: 1;
}

.js .flow.reveal.is-visible li:nth-child(2) .flow-icon { transition-delay: 600ms; }
.js .flow.reveal.is-visible li:nth-child(3) .flow-icon { transition-delay: 1100ms; }

/* ---------- Privacy ---------- */
.privacy-section {
  padding: var(--space-section) 0;
}

.privacy-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-lg);
  border-radius: 22.5%;
  color: var(--on-brand);
  background: var(--brand);
  box-shadow: 0 12px 30px var(--brand-glow);
}

.privacy-mark svg {
  width: 38px;
  height: 38px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}

.proof-card {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.proof-card h3 {
  font-size: 1.2rem;
  letter-spacing: -.02em;
}

.proof-card p {
  margin-top: var(--space-xs);
  color: var(--muted);
  font-size: 1rem;
}

.section-link {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.018em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Plus turns into a cross: the icon points at what the tap will do */
.faq-list summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fill-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--duration-panel) var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:active::after {
  background-color: var(--fill-pressed);
}

.faq-list details p {
  max-width: 680px;
  padding: 0 0 var(--space-lg);
  color: var(--muted);
}

.faq-list details::details-content {
  height: 0;
  overflow: clip;
  opacity: 0;
  transition: height var(--duration-panel) var(--ease-out), opacity var(--duration-panel) ease, content-visibility var(--duration-panel) allow-discrete;
}

.faq-list details[open]::details-content {
  height: auto;
  opacity: 1;
}

/* ---------- Notify ---------- */
.notify-section {
  padding: var(--space-section) 0;
}

.notify-panel {
  position: relative;
  overflow: hidden;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--brand-tint), transparent 70%),
    var(--bg-alt);
  text-align: center;
}

.notify-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  border-radius: 22.5%;
  box-shadow: var(--shadow-md);
}

.notify-panel h2 {
  max-width: 620px;
  margin-inline: auto;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.notify-panel > p:not(.eyebrow) {
  max-width: 540px;
  margin: var(--space-md) auto 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.notify-form {
  max-width: 520px;
  margin: var(--space-xl) auto 0;
  text-align: left;
}

.notify-row {
  display: flex;
  gap: var(--space-xs);
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--input-bg);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm);
  transition: box-shadow var(--duration-ui) ease;
}

.notify-row:focus-within {
  box-shadow: 0 0 0 3px var(--brand), var(--shadow-sm);
}

.notify-row input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--space-md);
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 1.0625rem;
}

.notify-row input:focus {
  outline: none;
}

.notify-row input::placeholder {
  color: var(--subtle);
}

.notify-row .button {
  flex: none;
}

.notify-row:has([aria-invalid="true"]) {
  box-shadow: 0 0 0 2px var(--danger), var(--shadow-sm);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent-row input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.form-note {
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: .875rem;
}

.form-note a {
  color: var(--accent);
}

.notify-success {
  max-width: 460px;
  margin: var(--space-xl) auto 0;
}

.notify-success:focus {
  outline: none;
}

.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  color: var(--on-brand);
  background: var(--brand);
}

.success-mark svg {
  width: 30px;
  height: 30px;
}

.success-check {
  stroke-dasharray: 20;
  animation: draw-check 500ms var(--ease-out) 200ms backwards;
}

.notify-success h3 {
  font-size: 1.6rem;
  letter-spacing: -.02em;
}

.notify-success p {
  margin-top: var(--space-xs);
  color: var(--muted);
}

.notify-success .success-email strong {
  color: var(--text);
}

.notify-success .text-link {
  margin-top: var(--space-lg);
}

/* Materialise / dematerialise when the form and the confirmation swap */
.is-leaving {
  animation: dematerialize 200ms ease forwards;
}

.is-entering {
  animation: materialize 380ms var(--ease-out);
}

/* ---------- Shared form pieces ---------- */
.form-status,
.notify-status {
  display: none;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--brand-tint);
  font-size: .95rem;
  text-align: center;
}

.form-status:focus,
.notify-status:focus {
  outline: none;
}

.form-status.is-visible,
.notify-status.is-visible {
  display: block;
  animation: materialize var(--duration-panel) var(--ease-out);
}

.form-status.is-error,
.notify-status.is-error {
  color: var(--danger);
  background: var(--danger-tint);
}

.field-error {
  margin: var(--space-xs) 0 0;
  color: var(--danger);
  font-size: .875rem;
}

.field-error[hidden] {
  display: none;
}

.notify-row + .field-error {
  padding-left: var(--space-lg);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ---------- Content pages (privacy, contact, 404, launch list) ---------- */
.page-main {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: var(--space-4xl) 0 var(--space-section);
}

.page-main h1 {
  margin-bottom: var(--space-lg);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.page-lead {
  max-width: 680px;
  margin-bottom: var(--space-3xl);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  align-items: center;
}

.policy-content h2 {
  margin: var(--space-2xl) 0 var(--space-sm);
  font-size: 1.5rem;
  letter-spacing: -.02em;
}

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

.policy-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.policy-content a {
  color: var(--accent);
}

.contact-panel {
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.contact-panel h2 {
  margin-bottom: var(--space-xl);
  font-size: 1.6rem;
  letter-spacing: -.02em;
}

.contact-form {
  display: grid;
  gap: var(--space-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.form-field label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: .95rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--input-bg);
  font-size: 1.0625rem;
  transition: border-color var(--duration-ui) ease, box-shadow var(--duration-ui) ease;
}

.form-field input,
.form-field select {
  min-height: 48px;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
}

.contact-form > .button {
  justify-self: start;
  min-width: 180px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .8125rem;
}

.footer-shell {
  width: min(var(--content-width), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-shell nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-shell a {
  text-decoration: none;
}

.footer-shell a:hover,
.footer-shell a[aria-current] {
  color: var(--text);
}

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .bento .reveal:nth-child(3),
.js .proof-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.js .proof-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.js .proof-grid .reveal:nth-child(4) { transition-delay: 240ms; }

/* ---------- Screenshot viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox:focus {
  outline: none;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: var(--lightbox-scrim);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
}

.lightbox-track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.lightbox-slide {
  position: absolute;
  top: 0;
  height: 100%;
}

.lightbox-slide img {
  position: absolute;
  max-width: none;
  border-radius: var(--radius-md);
  background: var(--shot-bg);
  box-shadow: var(--shadow-lg);
  transform-origin: 0 0;
  will-change: transform;
  cursor: grab;
  -webkit-user-drag: none;
}

.lightbox.is-dragging .lightbox-slide img {
  cursor: grabbing;
}

.lightbox-chrome {
  opacity: 0;
}

.lightbox-button {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: var(--material);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  cursor: pointer;
  transition: transform var(--duration-press) var(--ease-out), opacity var(--duration-ui) ease;
}

.lightbox-button:active {
  transform: scale(.92);
}

.lightbox-button svg {
  width: 20px;
  height: 20px;
}

.lightbox-button:disabled {
  opacity: .3;
  cursor: default;
  transform: none;
}

.lightbox-close {
  top: max(var(--space-md), env(safe-area-inset-top));
  right: var(--space-md);
}

.lightbox-prev,
.lightbox-next {
  top: calc(50% - 22px);
}

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: var(--material);
  box-shadow: 0 0 0 1px var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  font-size: .85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

.lightbox[data-count="1"] .lightbox-prev,
.lightbox[data-count="1"] .lightbox-next,
.lightbox[data-count="1"] .lightbox-counter {
  display: none;
}

@media (pointer: coarse) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

.lightbox-open {
  overflow: hidden;
}

/* ---------- Keyframes ---------- */
@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes materialize {
  from { opacity: 0; transform: scale(.96); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes dematerialize {
  to { opacity: 0; transform: scale(.97); filter: blur(6px); }
}

@keyframes draw-check {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

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

@media (max-width: 760px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile-wide {
    display: flex;
  }

  .tile-visual-diary {
    padding: 0 0 0 clamp(1.75rem, 4vw, 2.75rem);
  }

  .tour-controls {
    display: none;   /* touch screens swipe; dots stay for direct jumps */
  }

  .flow {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Stacked steps: short connectors draw downwards between them */
  .flow {
    gap: var(--space-md);
  }

  .flow::before {
    display: none;
  }

  .flow li + li::before {
    content: "";
    display: block;
    width: 2px;
    height: 40px;
    margin: 0 auto var(--space-md);
    border-radius: 1px;
    background: var(--brand);
    transform-origin: center top;
  }

  .js .flow.reveal li + li::before {
    transform: scaleY(0);
    transition: transform 450ms var(--ease-out);
  }

  .js .flow.reveal.is-visible li + li::before {
    transform: none;
  }

  .js .flow.reveal.is-visible li:nth-child(2)::before { transition-delay: 250ms; }
  .js .flow.reveal.is-visible li:nth-child(3)::before { transition-delay: 800ms; }

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

@media (max-width: 520px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .notify-row {
    flex-direction: column;
    padding: 0;
    border-radius: var(--radius-md);
    background: transparent;
    box-shadow: none;
  }

  .notify-row:focus-within,
  .notify-row:has([aria-invalid="true"]) {
    box-shadow: none;
  }

  .notify-row input {
    min-height: 50px;
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    box-shadow: 0 0 0 1px var(--border-strong);
  }

  .notify-row input:focus {
    box-shadow: 0 0 0 3px var(--brand);
  }

  .notify-row input[aria-invalid="true"] {
    box-shadow: 0 0 0 2px var(--danger);
  }

  .notify-row .button {
    min-height: 50px;
  }

  .notify-row + .field-error {
    padding-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 160ms !important;
    transition-delay: 0ms !important;
  }

  .device {
    animation: none !important;
  }

  /* Keep the fades that aid understanding, drop the movement */
  .js .reveal,
  .js .flow.reveal .flow-icon {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .lightbox-button,
  .lightbox-counter {
    background: var(--material-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .lightbox-scrim {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: rgba(0, 0, 0, .35);
    --border-strong: rgba(0, 0, 0, .55);
    --muted: #4a4a4f;
  }

  .site-header {
    background: var(--material-solid);
    border-bottom: 1px solid var(--border-strong);
  }

  .tile,
  .proof-card,
  .contact-panel,
  .notify-panel {
    box-shadow: inset 0 0 0 1px var(--border-strong);
  }
}
