/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: #1A1A1A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }

/* ---------- Theme tokens ---------- */
:root {
  --accent: #3D5A40;
  --accent-hover: #4A6B4D;
  --accent-soft: rgba(61, 90, 64, 0.08);
  --ink: #1A1A1A;
  --ink-muted: #6E6E73;
  --ink-faint: #8E8E93;
  --paper: #FFFFFF;
  --paper-tinted: #FAFAF8;
  --rule: #E5E5EA;
  --shadow: 0 30px 60px -20px rgba(20, 30, 20, 0.18), 0 8px 16px -8px rgba(20, 30, 20, 0.08);
  --radius: 18px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.accent { color: var(--accent); }
.muted { color: var(--ink-muted); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
  object-fit: cover;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
}
.site-nav a {
  color: var(--ink-muted);
  transition: color 150ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-large { padding: 18px 36px; font-size: 1.0625rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper-tinted) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-title {
  font-size: clamp(3.25rem, 9vw, 7rem);
  letter-spacing: -0.04em;
  margin: 0 auto 1.5rem;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--ink-muted);
  max-width: 34ch;
  margin: 0 auto 2.5rem;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-photo {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 28px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 60px 90px -30px rgba(20, 30, 20, 0.32),
    0 30px 50px -20px rgba(20, 30, 20, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: block;
}
@media (max-width: 640px) {
  .hero { padding-top: 88px; }
  .hero-photo { padding: 0 16px; }
}

/* ---------- Section heads (shared) ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- The loop ---------- */
.loop {
  padding: 112px 0;
}
.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) {
  .loop-steps { grid-template-columns: 1fr; gap: 24px; }
}
.loop-step {
  padding: 36px 32px;
  background: var(--paper-tinted);
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--rule);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.loop-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.loop-step h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.loop-step p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.loop-step.has-preview { padding-top: 0; }
.loop-preview {
  margin: 0 -32px 28px;
  padding: 28px 32px 0;
  background: linear-gradient(180deg, var(--paper-tinted) 0%, #FFFFFF 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: center;
}
.loop-preview img {
  width: 78%;
  max-width: 220px;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 24px 36px -16px rgba(20, 30, 20, 0.32),
    0 8px 16px -8px rgba(20, 30, 20, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: block;
}

/* ---------- Discipline (dark break) ---------- */
.discipline {
  padding: 112px 0;
  background: #1E2620;
  color: #FFFFFF;
  border-top: none;
  position: relative;
  overflow: hidden;
}
.discipline::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  right: -320px;
  top: -320px;
  background: repeating-radial-gradient(circle, transparent 0 76px, rgba(143, 165, 144, 0.10) 76px 78px);
  border-radius: 50%;
  pointer-events: none;
}
.discipline::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: -260px;
  bottom: -280px;
  background: repeating-radial-gradient(circle, transparent 0 70px, rgba(143, 165, 144, 0.07) 70px 72px);
  border-radius: 50%;
  pointer-events: none;
}
.discipline-inner {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.discipline h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}
.discipline h2 .muted {
  color: #8FA590;
  font-weight: 500;
}
.discipline p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}
.discipline p + p {
  margin-top: 1.25rem;
}

/* ---------- Accuracy / CEP ---------- */
.accuracy {
  padding: 120px 0;
  background: #FFFFFF;
}
.accuracy .epigraph {
  text-align: center;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  letter-spacing: -0.005em;
}
.accuracy .section-head { max-width: 720px; margin-bottom: 3.5rem; }
.accuracy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .accuracy-grid { grid-template-columns: 1fr; gap: 40px; }
}
.accuracy-block h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.accuracy-block p {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.65;
}
.accuracy-block p + p {
  margin-top: 1rem;
}
.accuracy-block strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Reports ---------- */
.reports {
  padding: 120px 0;
  background: var(--paper-tinted);
}
.reports .section-head { max-width: 720px; margin-bottom: 3.5rem; }
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .reports-grid { grid-template-columns: 1fr; gap: 24px; }
}
.report-card {
  padding: 36px 32px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.report-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.report-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 20px;
}
.report-card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.report-card p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}
.report-card strong {
  color: var(--ink);
  font-weight: 600;
}
.card-preview {
  margin: -16px -16px 24px;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, var(--paper-tinted) 0%, #FFFFFF 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: center;
}
.card-preview img {
  width: 60%;
  max-width: 180px;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 24px 36px -16px rgba(20, 30, 20, 0.30),
    0 8px 16px -8px rgba(20, 30, 20, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: block;
}
.report-spotlight {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 32px 36px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.report-spotlight .spotlight-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.report-spotlight h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.report-spotlight p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}
.report-spotlight p + p {
  margin-top: 12px;
}
.report-spotlight strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Cross-device ---------- */
.cross-device {
  padding: 120px 0;
  background: #FFFFFF;
}
.cross-device .section-head { max-width: 760px; margin-bottom: 3.5rem; }
.cross-device-hero {
  margin: 0 auto;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cross-device-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: #000;
}
.cross-device-hero figcaption {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  text-align: center;
  font-style: italic;
  max-width: 48ch;
}
.cross-device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1040px;
  margin: 56px auto 0;
}
@media (max-width: 880px) {
  .cross-device-grid { grid-template-columns: 1fr; gap: 28px; }
}
.cross-device-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cross-device-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: #000;
}
.cross-device-card figcaption h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.cross-device-card figcaption p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- Privacy ---------- */
.privacy {
  padding: 112px 0;
  background: var(--paper-tinted);
  border-top: 1px solid var(--rule);
}
.privacy .section-head { max-width: 760px; margin-bottom: 3rem; }
.privacy .section-head p strong { color: var(--ink); font-weight: 600; }
.privacy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .privacy-list { grid-template-columns: 1fr; }
}
.privacy-list li {
  padding: 28px;
  background: #FFFFFF;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.privacy-list h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.privacy-list p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* ---------- CTA ---------- */
.cta {
  padding: 120px 0;
  text-align: center;
  background: #FFFFFF;
  border-top: 1px solid var(--rule);
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.philosophy {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.005em;
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.cta-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin-bottom: 2.25rem;
}
.small-print {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */
.faq {
  padding: 112px 0;
  background: var(--paper-tinted);
  border-top: 1px solid var(--rule);
}
.faq .section-head { max-width: 600px; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 150ms ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round'><path d='M3 6l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 200ms ease;
}
.faq-list details[open] summary { color: var(--accent); }
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p {
  padding: 0 0 22px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 64ch;
}
.faq-list details p:has(+ ul) {
  padding-bottom: 10px;
}
.faq-list details ul {
  list-style: disc;
  padding: 0 0 22px 22px;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 64ch;
}
.faq-list details li + li {
  margin-top: 8px;
}
.faq-list details strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Legal page (privacy.html) ---------- */
.legal {
  padding: 96px 0 112px;
  background: #FFFFFF;
}
.legal .section-head {
  margin-bottom: 3rem;
}
.legal .section-head h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-weight: 600;
}
.legal-content h4 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-content .help-toc {
  background: var(--paper-tinted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 3rem;
}
.legal-content .help-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
}
.legal-content .help-toc ol {
  margin-bottom: 0;
  padding-left: 1.5rem;
}
.legal-content .help-toc li {
  margin-bottom: 0.375rem;
}
.legal-content .help-toc a {
  border-bottom: none;
  color: var(--ink);
}
.legal-content .help-toc a:hover {
  color: var(--accent);
}
.legal-content .help-callout {
  background: var(--paper-tinted);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 0 0 3rem;
}
.legal-content .help-callout .callout-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}
.legal-content .help-callout h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.legal-content .help-callout ol {
  margin: 0 0 14px;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  color: var(--ink);
}
.legal-content .help-callout li {
  margin-bottom: 6px;
}
.legal-content .help-callout li strong {
  font-weight: 600;
}
.legal-content .help-callout > p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-style: italic;
}
.legal-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 1px 6px;
  background: var(--paper-tinted);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
}
.legal-content .sf-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  margin-right: 0.25em;
  object-fit: contain;
}
.legal-content .screen-figure {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 280px;
}
.legal-content .screen-figure img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 18px 36px -14px rgba(20, 30, 20, 0.28),
    0 4px 10px -4px rgba(20, 30, 20, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: block;
}
.legal-content .screen-figure figcaption {
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.75rem;
  line-height: 1.4;
}
.legal-content p {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.7;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  list-style: disc;
}
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-content a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: color 150ms ease;
}
.legal-content a:hover { color: var(--accent-hover); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 0.9375rem;
}
.footer-nav a {
  color: var(--ink-muted);
  transition: color 150ms ease;
}
.footer-nav a:hover { color: var(--ink); }
.copyright {
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
