:root {
  color-scheme: light;
  --accent: #135c4c;
  --ink: #173b3d;
  --muted: #527073;
  --surface: #ffffff;
  --mist: #eff8f5;
  --sky: #e6f3fa;
  --leaf: #2b8c72;
  --leaf-dark: #176451;
  --line: #d1e7df;
}

* { box-sizing: border-box; }

body {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, var(--sky), var(--mist) 55%, #f9fcf8);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.shell { width: min(100% - 2rem, 760px); margin: 0 auto; }

header { padding: 2rem 0 1rem; }

.brand {
  color: var(--leaf-dark);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }

.button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  color: var(--leaf-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover, .button:focus-visible { background: #dff3eb; }

main {
  margin: 1rem auto 3rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 44px rgba(41, 102, 94, 0.14);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--leaf-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { color: #173f42; line-height: 1.2; }
h1 { margin: 0; font-size: clamp(2.25rem, 8vw, 4.25rem); }
h2 { margin-top: 2.25rem; font-size: 1.35rem; }
p, li { max-width: 65ch; }
.lead { max-width: 37ch; color: var(--muted); font-size: 1.2rem; }
.meaning { color: var(--leaf-dark); font-weight: 750; }

.note {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--leaf);
  border-radius: 0 1rem 1rem 0;
  background: var(--mist);
}

a { color: var(--leaf-dark); }
footer { padding-bottom: 2rem; color: var(--muted); font-size: 0.9rem; }

/* WEB-02 landing: tokens and base; scoped to preserve standalone legal pages. */
.landing { --accent: #135c4c; background: #fcfdfb; overflow-wrap: anywhere; }
.landing .container { width: min(calc(100% - 2rem), 72rem); margin-inline: auto; }
.landing a:focus-visible { outline: 3px solid #135c4c; outline-offset: 5px; }
.landing h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.035em; }
.landing h3 { line-height: 1.3; }
.landing .eyebrow { letter-spacing: 0.1em; }
.landing .section { padding-block: clamp(2.5rem, 6vw, 5rem); }
html { scroll-padding-top: calc(var(--header-height, min(24rem, 50svh)) + 1rem); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; white-space: normal; position: fixed; z-index: 30; left: 1rem; top: 1rem; padding: 1rem; background: white; }

/* Layout */
.site-header { padding-block: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.site-header nav { gap: 0.7rem 1rem; align-items: center; margin: 0; }
.site-header nav a { font-size: 0.875rem; text-decoration: none; font-weight: 650; }
.site-header nav a:hover { text-decoration: underline; }
.landing main { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.landing .hero { display: grid; background: #eff5f1; border-radius: 1.5rem; overflow: hidden; }
.landing .hero-copy { padding: clamp(1.5rem, 4vw, 3.5rem); align-self: center; }
.landing h1 { font-size: clamp(2.8rem, 5.5vw, 4.7rem); line-height: 1.08; letter-spacing: -0.055em; }
.landing .lead { font-size: 1.1rem; margin-block: 1.5rem; }
.landing .hero-photo { margin: 0; min-width: 0; background: #e5eee8; }
.landing .hero-photo picture { display: block; }
.landing .hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 85%; }
.landing figcaption { padding: 0.55rem 1rem; font-size: 0.75rem; color: #36524c; }
.landing .benefit-grid, .landing .feature-grid, .landing .mission-grid { display: grid; gap: 1.5rem; }
.landing .benefits { border-bottom: 1px solid var(--line); }
.landing .benefits h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.landing .benefits p { margin: 0; color: var(--muted); }
.landing .mission { background: #eff7f3; }
.landing .contact { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; justify-content: space-between; }

/* Components */
.landing .brand, .site-header .brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-header .brand-logo { display: block; width: 2.75rem; height: 2.75rem; object-fit: contain; flex-shrink: 0; }
.landing .button, .site-header .button { padding: 0.75rem 1.25rem; border-color: var(--accent); }
.landing .primary, .site-header .primary { background: var(--accent); color: white; }
.landing .primary:hover, .landing .primary:focus-visible, .site-header .primary:hover, .site-header .primary:focus-visible { background: #0c483b; }
.landing .availability { font-size: 0.8rem; color: #36524c; margin-top: 1rem; }
.landing .step { display: inline-block; color: var(--accent); font-size: 0.8rem; border-bottom: 2px solid #a8d2c5; padding-bottom: 0.3rem; }
.landing .demo-placeholder { margin-top: 2rem; padding: clamp(2rem, 8vw, 5rem) 1.5rem; text-align: center; border: 1px solid var(--line); border-radius: 1rem; background: radial-gradient(ellipse at top, #e0eee8, #f3f7f4); }
.landing .demo-placeholder p { margin-inline: auto; }
.landing .demo-symbol { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; font-size: 2rem; border: 1px solid #8eafa4; border-radius: 50%; color: var(--accent); }
.landing .text-link { font-weight: 700; text-underline-offset: 0.3em; }
.landing .feature { border: 1px solid var(--line); border-radius: 1rem; padding: 1.75rem; background: white; }
.landing .feature-label { color: var(--accent); font-size: 0.8rem; }
.landing .feature h3 { margin-block: 0.6rem; }
.landing .feature p { margin-bottom: 0; color: var(--muted); }
.landing .download { padding-inline: clamp(1.5rem, 4vw, 3.5rem); border-radius: 1.5rem; background: #eaf2f8; display: grid; gap: 2rem; }
.landing .platforms { display: grid; gap: 1rem; }
.landing .platform { border: 1px solid #bbcec9; border-radius: 0.75rem; padding: 1rem 1.25rem; background: #ffffffb3; }
.landing .platform h3, .landing .platform p { margin: 0; }
.landing .platform p { margin-top: 0.25rem; font-size: 0.9rem; }
.landing-footer { padding: 0 0 2rem; color: #36524c; background: #cce5de; }
.landing .footer-wave { display: block; width: 100%; height: 5rem; background: #fcfdfb; }
.landing .footer-content { padding-block: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem; }
.landing .footer-content p { margin-block: 0.5rem; }
.landing .photo-credit { font-size: 0.75rem; }

/* Responsive overrides: content grows naturally at enlarged text sizes. */
@media (min-width: 48rem) {
  .landing .hero { grid-template-columns: 1fr 1fr; }
  .landing .hero-photo picture { height: calc(100% - 3rem); }
  .landing .hero-photo img { height: 100%; min-height: 32rem; }
  .landing .benefit-grid, .landing .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing .mission-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .landing .platforms { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .site-header { justify-content: space-between; }
  .landing .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .landing .download { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .landing .platforms { grid-template-columns: 1fr; }
}

/* WEB-03: uncropped owner-provided app captures, readable at their native width. */
.landing .app-gallery { margin-top: 3rem; }
.landing .screenshot-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.landing .app-screenshot { margin: 0; min-width: 0; max-width: 359px; justify-self: center; }
.landing .app-screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.landing .app-screenshot figcaption { padding: 0.75rem 0; font-size: 0.85rem; }
.landing .app-screenshot p { margin: 0.4rem 0 0; }
@media (min-width: 48rem) {
  .landing .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .landing .screenshot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* WEB-04: hidden always wins over flex/component styles. */
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; background: var(--surface); }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--leaf-dark); outline-offset: 4px; }
.navigation-toggle { margin-left: 1rem; }
.landing .demo-poster { display: block; width: min(100%, 180px); height: auto; margin: 0 auto 1rem; border-radius: 0.5rem; }
.media-player iframe, .media-player video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 1rem; }
@media (max-width: 47.999rem) {
  .site-header nav { flex-basis: 100%; }
}

/* WEB-05: reflow and focus remain readable on every page at enlarged text sizes. */
.shell, .hero-copy, .mission-grid > *, .download > * { min-width: 0; }
a, button { touch-action: manipulation; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  a:focus-visible, button:focus-visible { outline-color: Highlight; }
}

/* Shared persistent header: legal content retains its readable narrow column. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 0.75rem max(1rem, calc((100% - 72rem) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  max-height: min(24rem, 50svh);
  overflow-y: auto;
}
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
