:root {
  color-scheme: light;
  --ink: #15211c;
  --muted: #52625a;
  --line: #b8c8bf;
  --surface: #ffffff;
  --surface-soft: #f0f6f2;
  --brand: #0b6b4f;
  --brand-dark: #064c39;
  --accent: #dff362;
  --danger: #9b2c2c;
  --success: #14643f;
  --shadow: 0 1.25rem 4rem rgb(21 33 28 / 0.12);
  font-family: 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: #f8fbf9; line-height: 1.6; }
a { color: var(--brand-dark); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
button, input, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.65rem 1rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
button:hover:not(:disabled), .button:hover { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: 0.48; }
:focus-visible { outline: 3px solid #6e8500; outline-offset: 3px; }
.button-primary { color: white; background: var(--brand); }
.button-primary:hover { color: white; background: var(--brand-dark); }
.button-secondary { color: var(--brand-dark); border-color: var(--line); background: white; }
.button-danger { color: var(--danger); border-color: #e2b1b1; background: #fff7f7; }
.skip-link { position: absolute; left: 1rem; top: 0; z-index: 20; transform: translateY(-200%); background: white; padding: 0.75rem 1rem; box-shadow: var(--shadow); }
.skip-link:focus { position: fixed; top: 1rem; transform: none; }
.site-header { border-bottom: 1px solid #dce7e1; background: rgb(248 251 249 / 0.95); }
.nav { width: min(72rem, calc(100% - 2rem)); margin: auto; min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--ink); font-weight: 850; letter-spacing: -0.025em; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.nav-links a { color: var(--muted); font-weight: 700; }
.hero { overflow: hidden; background: radial-gradient(circle at 90% 10%, #dff362 0, transparent 28rem), linear-gradient(145deg, #0a3e30, #0b6b4f); color: white; }
.hero-inner { width: min(72rem, calc(100% - 2rem)); margin: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr); gap: 3rem; padding: clamp(4rem, 8vw, 7rem) 0; align-items: end; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: 0.82rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.035em; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(2.6rem, 7vw, 5.8rem); }
.hero-copy { max-width: 39rem; margin: 1.5rem 0 2rem; color: #e2f1ea; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-note { border-left: 3px solid var(--accent); padding-left: 1.25rem; color: #e2f1ea; }
.hero-note strong { display: block; color: white; font-size: 1.15rem; }
.section { width: min(72rem, calc(100% - 2rem)); margin: auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-heading { max-width: 50rem; margin-bottom: 2rem; }
.section-heading h2 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.panel { border: 1px solid #cfdbd4; border-radius: 1rem; background: var(--surface); box-shadow: 0 0.75rem 2.5rem rgb(21 33 28 / 0.07); }
.panel-header { padding: 1.25rem 1.25rem 0; }
.panel-header h3 { margin: 0; font-size: 1.35rem; }
.panel-body { padding: 1.25rem; }
.step { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brand-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.step::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #eff7bd; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-weight: 750; }
.field-help, .meter { color: var(--muted); font-size: 0.82rem; }
input, textarea { width: 100%; border: 1px solid #9db0a6; border-radius: 0.55rem; padding: 0.75rem; color: var(--ink); background: white; }
textarea { min-height: 19rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88rem; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.status { min-height: 3rem; margin: 1rem 0 0; border-left: 4px solid var(--line); padding: 0.65rem 0.8rem; background: var(--surface-soft); }
.status[data-kind="success"] { border-color: var(--success); }
.status[data-kind="error"] { border-color: var(--danger); color: var(--danger); }
.status[data-kind="notice"] { border-color: #8aa600; }
.preview-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; background: #eef4f0; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
#output-frame { display: block; width: 100%; min-height: 27rem; border: 0; background: white; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 750; }
pre { max-height: 20rem; overflow: auto; padding: 1rem; border-radius: 0.65rem; background: #101914; color: #d9f0e3; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.78rem; }
.boundary { background: #eaf3ee; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { padding: 1.35rem; border: 1px solid #c9d7cf; border-radius: 0.8rem; background: white; }
.card h3 { margin-top: 0; }
.card p, .card li { color: var(--muted); }
.price-card { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1rem; background: #13251e; color: white; box-shadow: var(--shadow); }
.price { color: var(--accent); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 850; letter-spacing: -0.05em; white-space: nowrap; }
.price-copy p { color: #d9e8e0; }
.legal-main { width: min(50rem, calc(100% - 2rem)); min-height: 65vh; margin: auto; padding: 4rem 0; }
.legal-main h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-main h2 { margin-top: 2.5rem; }
.legal-main p, .legal-main li { color: var(--muted); }
.site-footer { border-top: 1px solid #dce7e1; }
.footer-inner { width: min(72rem, calc(100% - 2rem)); margin: auto; padding: 2rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 800px) {
  .hero-inner, .workflow-grid, .price-card { grid-template-columns: 1fr; }
  .hero-inner { gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .nav-links { gap: 0.75rem; }
  .price { white-space: normal; }
}

@media (max-width: 480px) {
  .actions > * { width: 100%; }
  textarea { min-height: 15rem; }
  #output-frame { min-height: 22rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
