:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #18241f;
  --muted: #5a6862;
  --line: #dce3de;
  --brand: #16624a;
  --brand-dark: #0e4937;
  --accent: #dff3e9;
  --warning-bg: #fff8dc;
  --warning-border: #e2bd43;
  --shadow: 0 18px 50px rgba(22, 52, 41, 0.08);
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible {
  outline: 3px solid #e0a900;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 222, 0.85);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(14px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); font-weight: 760; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.25rem 1.25rem; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 650; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand-dark); }

main { display: block; }
.hero { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.eyebrow { margin: 0 0 1rem; color: var(--brand); font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: -0.025em; }
h1 { margin-bottom: 1.35rem; font-size: clamp(2.75rem, 7vw, 5.7rem); max-width: 11ch; }
h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }
.lede { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-note { margin-top: 1.6rem; padding-left: 1rem; border-left: 3px solid var(--brand); color: var(--muted); max-width: 620px; }
.hero-mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orb { width: 76%; aspect-ratio: 1; border-radius: 45% 55% 60% 40% / 45% 42% 58% 55%; background: linear-gradient(145deg, #ccebdd, #eff9f4); box-shadow: var(--shadow); animation: breathe 8s ease-in-out infinite; }
.wave { position: absolute; width: 68%; height: auto; }
@keyframes breathe { 50% { transform: scale(1.035) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .orb { animation: none; } }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(22, 52, 41, 0.04); }
.card p { margin-bottom: 0; color: var(--muted); }
.icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1.25rem; border-radius: 12px; background: var(--accent); color: var(--brand-dark); font-weight: 800; }

.principle { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.principle blockquote { margin: 0; font-size: clamp(1.6rem, 4vw, 2.75rem); line-height: 1.25; font-weight: 730; letter-spacing: -0.025em; }
.principle-copy p { margin-top: 0; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { position: relative; padding: 0.65rem 0 0.65rem 2rem; border-top: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0.15rem; color: var(--brand); font-weight: 800; }

.data-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0.75rem; }
.flow-step { padding: 1.35rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.flow-step strong { display: block; margin-bottom: 0.35rem; }
.flow-step span { color: var(--muted); font-size: 0.94rem; }
.arrow { align-self: center; color: var(--brand); font-weight: 800; }

.cta { padding: 2rem; border-radius: var(--radius); background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { margin-bottom: 0.5rem; }
.cta p { margin: 0; color: #cfe3dc; }
.button { display: inline-block; flex: 0 0 auto; padding: 0.75rem 1rem; border-radius: 10px; background: #fff; color: var(--brand-dark); font-weight: 750; text-decoration: none; }

.legal { padding: clamp(3rem, 8vw, 6rem) 0; }
.legal-layout { display: grid; grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.legal-nav { position: sticky; top: 105px; }
.legal-nav strong { display: block; margin-bottom: 0.7rem; }
.legal-nav a { display: block; padding: 0.25rem 0; color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.legal-content { max-width: 760px; }
.legal-content h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.legal-content h2 { margin-top: 2.6rem; padding-top: 0.5rem; font-size: 1.55rem; }
.legal-content h3 { margin-top: 1.8rem; }
.legal-content p, .legal-content li { color: #46534d; }
.legal-content li + li { margin-top: 0.45rem; }
.meta-line { margin-bottom: 2rem; color: var(--muted); }
.notice { margin: 1.75rem 0; padding: 1rem 1.15rem; border: 1px solid var(--warning-border); border-radius: 12px; background: var(--warning-bg); }
.notice strong { display: block; color: #624d00; }
code { padding: 0.1em 0.35em; border-radius: 5px; background: #edf0ed; color: #263b32; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.footer-links a { color: var(--muted); }

@media (max-width: 800px) {
  .hero-grid, .principle, .legal-layout { grid-template-columns: 1fr; }
  .hero-mark { max-width: 420px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr; }
  .legal-nav { position: static; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .legal-nav a { display: inline-block; margin-right: 1rem; }
}

@media (max-width: 620px) {
  .site-header { position: static; }
  .nav { min-height: 0; padding-block: 1rem; align-items: flex-start; }
  .nav-links { display: grid; gap: 0.35rem; }
  .hero { padding-top: 3rem; }
  .data-flow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .cta, .footer-grid { align-items: flex-start; flex-direction: column; }
}

