:root {
  --bg: #faf5ea;
  --paper: #fffdf7;
  --paper-2: #f6f0df;
  --ink: #073525;
  --muted: #52645e;
  --forest: #003923;
  --forest-2: #001f14;
  --forest-3: #06482d;
  --leaf: #82a844;
  --leaf-2: #a7bf68;
  --gold: #d9c27b;
  --line: rgba(6, 58, 38, .16);
  --shadow: 0 28px 70px rgba(2, 31, 20, .18);
  --shadow-soft: 0 16px 36px rgba(2, 31, 20, .10);
  --radius-lg: 32px;
  --radius: 20px;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(130,168,68,.12), transparent 18rem),
    radial-gradient(circle at 90% 8%, rgba(0,57,35,.10), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 48%, #f6efd9 100%);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: .8rem 1rem;
  background: var(--leaf);
  color: white;
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.centered { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fffdf6;
  background:
    radial-gradient(circle at 15% 0%, rgba(130,168,68,.18), transparent 19rem),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 38px rgba(0,0,0,.20);
}
.header-shell {
  width: min(1260px, calc(100% - 2rem));
  min-height: 92px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: 180px;
}
.brand img {
  width: 170px;
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.20));
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.2rem);
  font-weight: 800;
  font-size: .97rem;
}
.nav-link {
  position: relative;
  opacity: .93;
  transition: color .2s ease, opacity .2s ease;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: #d8ecaa; opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.62rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--leaf-2), transparent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.open-app,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.open-app {
  padding: .92rem 1.25rem;
  background: linear-gradient(135deg, #9ab75d, #5e8337);
  color: white;
  box-shadow: 0 14px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
  white-space: nowrap;
}
.button { padding: 1rem 1.35rem; }
.button-primary {
  color: white;
  background: linear-gradient(135deg, #7ca343, #315f28);
  box-shadow: 0 18px 34px rgba(9, 65, 40, .26);
}
.button-secondary {
  color: var(--forest);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,57,35,.22);
}
.button-light {
  color: var(--forest);
  background: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(0,57,35,.12);
}
.open-app:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(9,65,40,.25);
}
.language-select {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem .85rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
}
.language-input {
  min-width: 7rem;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}
.language-input option { color: var(--ink); background: white; }
.nav-toggle {
  display: none;
  justify-self: end;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 12px;
  padding: .7rem .85rem;
  color: white;
  background: rgba(255,255,255,.08);
  font-weight: 850;
}

.ornamental-section {
  position: relative;
  isolation: isolate;
}
.ornamental-section::before,
.ornamental-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: .16;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}
.ornamental-section::before {
  width: 260px;
  height: 360px;
  left: -70px;
  top: 14%;
  background-image: radial-gradient(ellipse at 50% 20%, rgba(108,142,70,.45), transparent 45%),
    linear-gradient(45deg, transparent 48%, rgba(6,58,38,.35) 50%, transparent 52%);
  border-radius: 60% 40% 60% 40%;
  transform: rotate(-18deg);
}
.ornamental-section::after {
  width: 260px;
  height: 380px;
  right: -70px;
  bottom: 6%;
  background-image: radial-gradient(ellipse at 48% 28%, rgba(108,142,70,.45), transparent 45%),
    linear-gradient(-45deg, transparent 48%, rgba(6,58,38,.35) 50%, transparent 52%);
  border-radius: 40% 60% 40% 60%;
  transform: rotate(18deg);
}

.hero-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0 3.2rem;
  background:
    linear-gradient(180deg, rgba(255,253,247,.95), rgba(250,245,234,.72)),
    radial-gradient(circle at 67% 37%, rgba(130,168,68,.18), transparent 29rem);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .9rem;
  color: #527b30;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}
.eyebrow::before { content: "•"; color: var(--leaf); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--ink);
}
.hero-copy h1 { font-size: clamp(2.15rem, 3.7vw, 3.85rem); max-width: 560px; line-height: 1.08; letter-spacing: -.035em; }
.hero-lead,
.page-lead {
  color: #273d35;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.7;
  max-width: 680px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.2rem;
}
.mini-note {
  max-width: 620px;
  display: flex;
  gap: .55rem;
  color: var(--muted);
  font-size: .95rem;
}
.hero-visual { perspective: 1600px; }
.poster-mockup {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fffdf7;
  border: 1px solid rgba(0,57,35,.16);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.mockup-topbar {
  display: flex;
  gap: .4rem;
  padding: .72rem .9rem;
  background: linear-gradient(135deg, #063826, #002417);
}
.mockup-topbar span {
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
}
.poster-mockup img { width: 100%; height: auto; }
.poster-mockup figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  background: linear-gradient(90deg, var(--forest), #07482e);
  color: white;
}
.poster-mockup figcaption span { color: #d9e7c1; }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: -1.2rem;
  position: relative;
  z-index: 2;
}
.feature-card,
.audience-grid article,
.values-grid article,
.method-card,
.contact-form,
.connect-card,
.policy-grid article,
.mission-card,
.beta-note,
.policy-panel {
  border: 1px solid var(--line);
  background: rgba(255,253,247,.86);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.feature-card {
  padding: 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #94b65c, #426b30);
  color: white;
  font-weight: 950;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.16);
}
.feature-card h2 { margin: 0 0 .2rem; font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.split-section { padding: 4.4rem 0 3rem; }
.section-heading { max-width: 760px; margin: 0 auto 2rem; }
.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}
.page-title h1,
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.7vw, 3.85rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.workflow-card {
  position: relative;
  padding: 1.45rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf7, #f7f0dd);
  border: 1px solid var(--line);
}
.workflow-card span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 900;
}
.workflow-card h3 { margin-bottom: .35rem; }
.workflow-card p { margin: 0; color: var(--muted); }

.audience-section { padding: 4.6rem 0; background: rgba(244,238,221,.55); }
.audience-grid,
.values-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.audience-grid { grid-template-columns: repeat(6, 1fr); }
.audience-grid article,
.values-grid article,
.policy-grid article {
  padding: 1.25rem;
  text-align: center;
}
.audience-grid span,
.values-grid span,
.policy-grid span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto .9rem;
  border-radius: 999px;
  background: #edf1dd;
  color: var(--forest);
  font-size: 1.65rem;
}
.audience-grid h3,
.values-grid h2,
.policy-grid h2 { font-size: 1rem; margin-bottom: .4rem; }
.audience-grid p,
.values-grid p,
.policy-grid p { color: var(--muted); font-size: .91rem; margin: 0; }

.responsible-callout,
.cta-band {
  margin: 4.2rem auto;
  padding: 1.7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef4dd, #fffdf7);
  border: 1px solid rgba(130,168,68,.35);
  box-shadow: var(--shadow-soft);
}
.responsible-callout h2,
.cta-band h2 { margin-bottom: .25rem; }
.responsible-callout p,
.cta-band p { margin: 0; color: var(--muted); }

.page-hero,
.page-title { padding: 4.6rem 0 3.2rem; }
.page-hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 3rem;
}
.image-panel {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-panel img { width: 100%; height: auto; }
.mission-card {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 2rem;
}
.mission-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #e9f1d8;
  font-size: 1.8rem;
}
.mission-card p { color: var(--muted); margin-bottom: 0; }
.values-grid { margin-bottom: 2rem; }
.beta-note {
  padding: 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, #fff9df, #fffdf7);
  border-color: rgba(217,194,123,.50);
}
.beta-note > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid #c49d32;
  color: #6f5517;
  font-weight: 950;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.beta-note p { margin: 0; color: var(--muted); }

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
.method-card {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.method-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.75vw, 1.9rem);
  margin: 0 0 1rem;
}
.method-visual {
  min-height: 104px;
  margin-bottom: 1.05rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 2.35rem;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
}
.csv-visual { background: linear-gradient(135deg, #9ab75d, #426b30); }
.api-visual { background: radial-gradient(circle at 30% 20%, #9ab75d, #063826 70%); }
.method-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
  display: grid;
  gap: .58rem;
}
.method-card li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: .72rem;
  row-gap: .18rem;
  align-items: start;
  padding: .64rem 0;
  border-bottom: 1px dashed rgba(0,57,35,.16);
}
.method-card li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #5f8139;
  color: white;
  font-weight: 900;
}
.method-card li strong {
  display: block;
  grid-column: 2;
  min-width: 0;
  line-height: 1.25;
  font-size: .96rem;
}
.method-card li span {
  display: block;
  grid-column: 2;
  min-width: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  margin-top: 0;
}
.recommendation {
  margin-top: auto;
  padding: .78rem .9rem;
  border-radius: 14px;
  background: #edf4df;
  color: #2d5a2b;
  font-weight: 750;
}
.cta-band {
  color: white;
  background: linear-gradient(135deg, #315f28, var(--forest));
  border: 0;
}
.cta-band p { color: #dceaca; }

.policy-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 2rem; }
.policy-panel {
  padding: 2rem;
  margin-bottom: 4rem;
}
.policy-panel h2 { font-family: var(--serif); font-size: 2rem; }
.policy-panel ul { margin: 0 0 1.3rem; padding-left: 1.2rem; color: var(--muted); }
.policy-panel li { margin-bottom: .55rem; }
.important-line {
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  background: #fff7dc;
  border: 1px solid rgba(196,157,50,.35);
  color: #5c4918;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.contact-form { padding: 2rem; }
.contact-form h2,
.connect-panel h2 { font-family: var(--serif); font-size: 2rem; }
.contact-form label { display: block; margin: 0 0 1rem; font-weight: 800; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,57,35,.20);
  background: #fffdf7;
  color: var(--ink);
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(130,168,68,.16);
}
.form-status { color: var(--muted); font-size: .95rem; min-height: 1.2rem; }
.connect-panel { display: grid; gap: 1rem; align-content: start; }
.connect-card,
.warning-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border-radius: 18px;
}
.connect-card { transition: transform .2s ease, box-shadow .2s ease; }
.connect-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.connect-card span,
.warning-card span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #edf1dd;
  color: var(--forest);
  font-size: 1.4rem;
}
.connect-card p,
.warning-card p { margin: .15rem 0 0; color: var(--muted); }
.connect-card em { font-style: normal; font-size: 1.5rem; color: #5f8139; }
.warning-card {
  background: #fff7dc;
  border: 1px solid rgba(196,157,50,.42);
}
.warning-card span { background: #f7e8b2; }

.site-footer {
  color: #eaf5df;
  background:
    radial-gradient(circle at 85% 0%, rgba(130,168,68,.16), transparent 26rem),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  padding: 3rem 0 1.1rem;
}
.footer-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-brand img { width: 175px; margin-bottom: .6rem; }
.footer-brand p { color: #ccdec2; max-width: 330px; }
.footer-group h3 { color: white; font-size: 1rem; margin-bottom: .8rem; }
.footer-group a {
  display: block;
  color: #ccdec2;
  margin: .35rem 0;
}
.footer-group a:hover { color: white; }
.footer-bottom {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #bbd1b1;
  font-size: .92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal .7s ease forwards;
}
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .22s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .header-shell { grid-template-columns: auto auto; }
  .main-nav,
  .header-actions {
    display: none;
  }
  .nav-toggle { display: inline-flex; }
  body.nav-open .main-nav,
  body.nav-open .header-actions {
    position: fixed;
    left: 1rem;
    right: 1rem;
    display: flex;
    background: linear-gradient(135deg, var(--forest), var(--forest-2));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  body.nav-open .main-nav {
    top: 104px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .8rem;
    border-radius: 18px 18px 0 0;
  }
  body.nav-open .nav-link { padding: .85rem 1rem; }
  body.nav-open .header-actions {
    top: 367px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 0 0 18px 18px;
  }
  .hero-layout,
  .page-hero-grid,
  .contact-grid,
  .method-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; }
  .feature-row { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .policy-grid,
  .values-grid,
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-shell { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .brand { width: 136px; }
  .brand img { width: 132px; }
  .header-shell { min-height: 76px; }
  .hero-section { padding-top: 3rem; }
  .hero-copy h1 { font-size: 2.15rem; max-width: 100%; }
  .hero-buttons,
  .responsible-callout,
  .cta-band { display: grid; grid-template-columns: 1fr; }
  .audience-grid,
  .policy-grid,
  .values-grid,
  .workflow-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .method-card,
  .contact-form,
  .policy-panel { padding: 1.3rem; }
  .method-visual { min-height: 86px; font-size: 2rem; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .ornamental-section::before,
  .ornamental-section::after { display: none; }
}

/* V04: center the responsible-use page lead text only. */
body[data-page="policy"] .page-title .page-lead {
  margin-left: auto;
  margin-right: auto;
}

/* V05: center the How to use page lead and keep expanded workflow steps compact. */
body[data-page="how"] .page-title .page-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
body[data-page="how"] .method-card ol {
  gap: .45rem;
}
body[data-page="how"] .method-card li {
  padding: .52rem 0;
}
body[data-page="how"] .method-card li strong {
  font-size: .93rem;
}
body[data-page="how"] .method-card li span {
  font-size: .84rem;
  line-height: 1.38;
}
