:root {
  --background: #f7f3eb;
  --surface: #fffdf8;
  --text: #203126;
  --muted: #59675e;
  --primary: #235c43;
  --primary-dark: #174331;
  --border: #ccd4cc;
  --danger: #8b1e2d;
  --warning: #6b4b00;
  --focus: #b75a13;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--text); line-height: 1.6; }
a { color: var(--primary-dark); }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 0.5rem; left: 0.5rem; transform: translateY(-200%); padding: 0.6rem 1rem; background: var(--surface); }
.skip-link:focus { transform: none; }
.page { width: min(1120px, 100%); min-height: 100vh; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 2rem; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; min-height: 3.5rem; border-bottom: 1px solid var(--border); }
.site-nav a { padding: 0.6rem 0; font-weight: 700; text-decoration: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; min-height: 72vh; padding: clamp(2rem, 7vw, 6rem) 0; }
.hero-copy { max-width: 680px; }
.hero-visual { min-height: 520px; border-radius: 48% 48% 18% 18%; background: var(--surface) url("assets/hero.svg") center / cover no-repeat; box-shadow: 0 22px 60px rgba(32, 49, 38, 0.16); }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: 0.04em; }
h1, h2 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0.5rem 0 1.25rem; font-size: clamp(2rem, 6vw, 4.4rem); }
h2 { margin-top: 1.6rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { line-height: 1.3; text-wrap: balance; }
.approved-copy { font-size: clamp(1.05rem, 2vw, 1.3rem); }
.price { font-size: 1.25rem; font-weight: 800; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border: 2px solid var(--primary); border-radius: 999px; padding: 0.7rem 1.25rem; background: var(--primary); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.secondary { background: transparent; color: var(--primary-dark); }
.button.danger { background: var(--danger); border-color: var(--danger); }
.button.compact { min-height: 40px; padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.button:disabled { cursor: wait; opacity: 0.65; }
.content-card, .report-content { width: min(780px, 100%); margin: clamp(1.5rem, 6vw, 5rem) auto; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: 1.5rem; background: var(--surface); box-shadow: 0 18px 45px rgba(32, 49, 38, 0.09); }
.content-card h1, .report-content h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.field { display: grid; gap: 0.4rem; margin: 1rem 0; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 48px; border: 2px solid var(--border); border-radius: 0.75rem; padding: 0.7rem 0.8rem; background: #fff; color: var(--text); }
textarea { min-height: 140px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
fieldset { min-width: 0; margin: 1.25rem 0; border: 0; padding: 0; }
legend { margin-bottom: 0.7rem; font-weight: 800; }
.option-label { display: flex; gap: 0.7rem; align-items: flex-start; min-height: 48px; margin: 0.5rem 0; border: 1px solid var(--border); border-radius: 0.8rem; padding: 0.75rem; background: #fff; cursor: pointer; }
.option-label input { flex: 0 0 1.25rem; width: 1.25rem; min-height: 1.25rem; margin-top: 0.15rem; accent-color: var(--primary); }
.option-label:has(input:checked) { border-color: var(--primary); background: #eef6f0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.error { min-height: 1.6em; color: var(--danger); font-weight: 750; }
.notice { border-left: 4px solid var(--warning); padding: 0.75rem 1rem; background: #fff6d8; color: #4b3600; }
.muted, .coverage { color: var(--muted); }
progress { width: 100%; height: 0.8rem; overflow: hidden; border: 0; border-radius: 99px; accent-color: var(--primary); }
progress::-webkit-progress-bar { background: #dfe6df; }
progress::-webkit-progress-value { background: var(--primary); }
.payment-status { min-height: 1.7em; font-weight: 750; }
.qpay-qr { display: block; width: min(280px, 100%); height: auto; margin: 1rem auto; }
.report-header { padding-bottom: 1rem; border-bottom: 2px solid var(--primary); }
.report-section { break-inside: avoid; margin: 1.5rem 0; padding: 1rem 0; border-bottom: 1px solid var(--border); }
dt { font-weight: 800; }
dd { margin: 0 0 0.8rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.metric-grid article { border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; background: #fff; }
.metric-grid h2 { margin: 0; font-size: 1rem; }
.metric-grid p { margin: 0.5rem 0 0; font-size: 1.35rem; font-weight: 800; }
.table-scroll { max-width: 100%; margin: 1.5rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 0.75rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; white-space: normal; }
.site-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); }
.methodology-summary { margin: 0 0 clamp(2rem, 7vw, 5rem); padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: 1.5rem; background: var(--surface); box-shadow: 0 18px 45px rgba(32, 49, 38, 0.09); }
.methodology-heading { max-width: 780px; }
.methodology-heading h2 { margin: 0.35rem 0 1rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.methodology-principle { border-left: 4px solid var(--primary); padding-left: 1rem; font-weight: 700; }
.methodology-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.methodology-pillars article { min-width: 0; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; background: #fff; }
.methodology-pillars h3, .methodology-disclosure h3 { margin: 0 0 0.65rem; font-size: 1.05rem; }
.methodology-pillars p { margin-bottom: 0; }
.methodology-disclosure { max-width: 900px; }
.methodology-limitation { color: var(--muted); }
.methodology-page section { margin-top: 2rem; padding-top: 0.25rem; border-top: 1px solid var(--border); }
.methodology-page p, .methodology-page li { max-width: 68ch; }
.methodology-page li + li { margin-top: 0.45rem; }
.methodology-version { margin-top: 2rem; border-top: 2px solid var(--primary); color: var(--muted); }
code { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .page { padding-inline: 1rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-visual { order: -1; min-height: 260px; border-radius: 1.5rem; }
  .content-card, .report-content { margin-block: 1rem; padding: 1.1rem; border-radius: 1rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .methodology-pillars { grid-template-columns: 1fr; }
  .methodology-summary { padding: 1.1rem; border-radius: 1rem; }
  .actions .button { flex: 1 1 100%; }
  .site-nav { align-items: flex-start; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  body * { visibility: hidden !important; }
  #report-content, #report-content * { visibility: visible !important; }
  #report-content { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .print-hide, nav, button, .site-footer { display: none !important; }
  .report-section, table, tr, img { break-inside: avoid; }
  .table-scroll { overflow: visible; border: 0; }
  table { table-layout: fixed; }
  th, td { white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
