:root {
  --bg: #ffffff;
  --bg-alt: #edf2f0;
  --text: #172622;
  --muted: #3b3f3e;
  --brand: #0c3a35;
  --teal: #2cb4a4;
  --coral: #ff6f52;
  --border: #d3e0dc;
  --on-brand: #ffffff;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #03100f;
    --bg-alt: #0a1f1d;
    --text: #edf2f0;
    --muted: #b6c6c1;
    --border: #1c3a36;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

a { color: var(--teal); }
a:hover { color: var(--coral); }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 42rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: var(--on-brand); padding: .5rem 1rem;
}
.skip:focus { left: 0; z-index: 10; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--brand); color: var(--on-brand);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--on-brand); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.brand:hover { color: var(--on-brand); }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--on-brand); text-decoration: none; opacity: .85; }
.site-header nav a:hover { opacity: 1; color: var(--on-brand); text-decoration: underline; }

section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }

.hero { background: var(--brand); color: var(--on-brand); padding: 5rem 0 5.5rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--teal); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; max-width: 22ch; }
.lead { margin: 0 0 2rem; font-size: 1.2rem; max-width: 36rem; opacity: .9; }

h2 { margin: 0 0 1.5rem; font-size: 1.75rem; line-height: 1.2; }
h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid article {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
}
.grid article p { margin: 0; color: var(--muted); }

.product {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.product-mark { flex: none; border-radius: 12px; }
.product p { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.btn {
  display: inline-block; padding: .65rem 1.2rem; border-radius: 999px;
  border: 1.5px solid currentColor; color: inherit; text-decoration: none; font-weight: 600;
}
.hero .btn { color: var(--on-brand); }
.hero .btn:hover { color: var(--on-brand); border-color: var(--coral); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #1a0d09; }
.btn.primary:hover, .hero .btn.primary:hover { background: #ff866d; border-color: #ff866d; color: #1a0d09; }
section:not(.hero) .btn:not(.primary) { color: var(--text); }
section:not(.hero) .btn:not(.primary):hover { color: var(--coral); }

.site-footer { background: var(--brand); color: var(--on-brand); padding: 1.5rem 0; font-size: .9rem; }
.site-footer p { margin: 0; opacity: .85; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot-links { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--on-brand); }
.site-footer a:hover { color: var(--teal); }

.statement { font-size: 1.35rem; line-height: 1.35; font-weight: 600; color: var(--teal); }
h2.second { margin-top: 3rem; }
.principles { margin: 1.5rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.principles li { margin-bottom: .5rem; }
.principles strong { color: var(--text); }

.legal { padding: 3.5rem 0 4.5rem; }
.legal h1 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.legal h2 { margin: 2rem 0 .5rem; font-size: 1.2rem; }
.legal .meta { margin: 0 0 1.5rem; color: var(--muted); font-size: .9rem; }
.legal .lead-legal { font-size: 1.1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal p, .legal li { color: var(--text); }

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

@media (max-width: 36rem) {
  section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .product { flex-direction: column; }
  .site-header nav { gap: .9rem; font-size: .95rem; }
}

/* ---- Home page as a slide deck ---------------------------------------------------------
   The page itself never scrolls: #main is the scroller and snaps one slide at a time, so the
   scroll bar, wheel, touch and PageUp/PageDown all move between slides. Privacy and Terms
   keep the normal scrolling layout. */
html:has(.deck-page), .deck-page { height: 100%; overflow: hidden; }

.deck-page .site-header { position: fixed; left: 0; right: 0; top: 0; }

.deck {
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
  outline: none;
}

.deck .slide {
  min-height: 100vh; min-height: 100dvh;
  padding: 5rem 0 3rem;
  display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.deck .slide > .wrap { width: 100%; }
.deck .hero { padding-bottom: 3rem; }
.deck .slide.last { padding-bottom: 0; justify-content: flex-start; }
.deck .slide.last > .wrap { margin-top: auto; margin-bottom: auto; }
.deck .slide.last .site-footer { margin-top: 0; }

.grid.four { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.deck .slide h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.deck .statement { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.deck .hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.deck .lead { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.deck .narrow p { font-size: 1.1rem; }

.vision-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.vision-grid .principles { margin: 0; padding: 1.5rem; list-style: none; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); }
.vision-grid .principles li { margin-bottom: 1rem; }
.vision-grid .principles li:last-child { margin-bottom: 0; }

/* Slide dots */
.dots {
  position: fixed; right: .75rem; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: .35rem; padding: .35rem;
  background: color-mix(in srgb, var(--brand) 88%, transparent); border-radius: 999px;
}
.dots a {
  display: block; width: .9rem; height: .9rem; position: relative; border-radius: 50%;
}
.dots a::after {
  content: ""; position: absolute; inset: .2rem; border-radius: 50%;
  background: var(--on-brand); opacity: .45; transition: opacity .2s, background .2s, inset .2s;
}
.dots a:hover::after { opacity: 1; }
.dots a[aria-current="true"]::after { background: var(--coral); opacity: 1; inset: .1rem; }
html:not(.js) .dots { display: none; }

/* Slide content eases in when its slide arrives (only when scripting is available) */
.js .deck .slide > .wrap { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .deck .slide.in > .wrap { opacity: 1; transform: none; }

@media (max-width: 56rem) {
  .vision-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 36rem) {
  .deck .slide { padding: 4.5rem 0 2rem; }
  .dots { right: .25rem; }
  .deck .slide > .wrap { padding-right: 1.6rem; }
  .deck .slide.last > .wrap { padding-right: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  .js .deck .slide > .wrap { transition: none; }
}

/* ---- Page-turn effect ------------------------------------------------------------------
   Each slide is a "page". The next page slides up over the previous one with a shadow, while
   the previous one recedes (smaller, a little slower) and dims. --out (0 to 1) is set from
   scrolling in deck.js. Individual `translate`/`scale` are used so they do not clash with the
   fade-in `transform` above. */
.deck { position: relative; }
.deck .slide { position: relative; --out: 0; }
.deck .slide + .slide { box-shadow: 0 -16px 36px rgba(0, 0, 0, .3); }
.deck .slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #000; opacity: calc(var(--out) * .55);
}
.js .deck .slide > .wrap {
  translate: 0 calc(var(--out) * 14%);
  scale: calc(1 - var(--out) * .07);
}

@media (prefers-reduced-motion: reduce) {
  .deck .slide + .slide { box-shadow: none; }
}

/* Keep slide content clear of the slide dots on narrower screens */
@media (max-width: 72rem) {
  .deck .slide > .wrap { padding-right: 2.25rem; }
}

.product .fineprint { margin: .9rem 0 0; font-size: .9rem; }
