/* [APP_NAME] landing — static, no JS, system fonts only. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1a1d1c;
  --muted: #565b59;
  --accent: #0f766e;        /* muted blue-green; AA on --bg/white for normal text */
  --accent-dark: #0b5650;   /* for emphasis / hover */
  --accent-light: #2dd4bf;  /* lighter teal; AA on black for the dark hero */
  --border: #e4e6e5;
  --max: 680px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Links ---- */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Header ---- */
.site-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-block;
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.wordmark .dot { color: var(--accent); }
.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---- Main / sections ---- */
main { padding: 8px 0 0; }

section { padding: 40px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.hero { padding-top: 44px; }

h1 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent); }

.subhead {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: var(--text);
}

.beta-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

h2 {
  margin: 0 0 22px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
/* subtle accent divider under section headings */
h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
  border-radius: 2px;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
h3:first-of-type { margin-top: 0; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

/* ---- How it works (ordered steps) ---- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 0 44px;
  margin: 0 0 26px;
  counter-increment: step;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.steps li strong { display: block; margin-bottom: 2px; }

/* ---- Operator / contact ---- */
.operator {
  font-style: normal;
  line-height: 1.9;
}
.operator .label { color: var(--muted); }

/* ---- Footer ---- */
.site-footer {
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Policy / sub pages ---- */
.page-back {
  display: inline-block;
  margin: 24px 0 0;
  font-size: 0.95rem;
}
.doc h1 { font-size: 1.7rem; margin-bottom: 10px; }
.doc .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 0.95rem;
}
.doc h2 {
  font-size: 1.15rem;
  margin: 34px 0 12px;
}
.doc h2::after { display: none; }   /* no accent rule inside dense legal docs */
.doc h2:first-of-type { margin-top: 0; }
.doc ul { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }

/* ---- Responsive: desktop ---- */
@media (min-width: 768px) {
  body { font-size: 20px; }
  .container { padding: 0 24px; }
  .site-header { padding: 56px 0 32px; }
  .wordmark { font-size: 1.7rem; }
  .hero { padding-top: 56px; }
  h1 { font-size: 2.6rem; }
  .hero .subhead { font-size: 1.2rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 52px 0; }
  .doc h1 { font-size: 2rem; }
}

/* ---- Respect reduced motion (no animations used, but be explicit) ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- Cinematic hero (homepage only) ---- */
.hero-cinematic {
  position: relative;
  min-height: 100svh;
  background: #000;            /* matches the image's black edges → seamless full-bleed */
  display: flex;
  align-items: flex-end;       /* text anchored to the bottom */
  overflow: hidden;
  isolation: isolate;
}
.hero-cinematic__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%; /* keep the head/upper body framed when cropped */
  z-index: 0;
}
.hero-cinematic__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 24%,
    rgba(0,0,0,0) 52%);
}
.hero-cinematic__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 48px;
  color: #fff;
  text-align: center;
}
.hero-wordmark {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-wordmark .dot { color: var(--accent-light); }
.hero-cinematic h1 {
  margin: 0 0 16px;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero-cinematic h1 .accent { color: var(--accent-light); }
.hero-tagline {
  margin: 0 auto 16px;
  max-width: 32ch;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
}
.hero-note {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.7);
}
.lead {
  margin: 40px 0 4px;
  font-size: 1.15rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .hero-wordmark { font-size: 1.9rem; }
  .hero-cinematic h1 { font-size: 3rem; }
  .hero-tagline { font-size: 1.2rem; }
  .hero-note { font-size: 1rem; }
  .lead { font-size: 1.3rem; margin-top: 52px; }
}

/* Desktop: two-column — text left, full figure right (no head-cropping) */
@media (min-width: 860px) {
  .hero-cinematic {
    min-height: min(88vh, 760px);
    align-items: center;
  }
  .hero-cinematic__img {
    left: auto;
    right: 0;
    width: 50%;
    object-fit: contain;       /* whole figure visible, never cropped */
    object-position: center;
    transform: translateY(10%); /* drop the figure so its centre aligns with the text */
  }
  .hero-cinematic__scrim {
    background: linear-gradient(to right,
      #000 30%,
      rgba(0,0,0,0.5) 52%,
      rgba(0,0,0,0) 72%);
  }
  .hero-cinematic__content {
    margin: 0;
    max-width: 560px;
    padding: 0 0 0 6%;
    text-align: left;
  }
  .hero-tagline { margin-left: 0; }
}
