:root {
  --choc: #2a1d12;
  --yerba: #4d6b1f;
  --yerba-deep: #3a5216;
  --dulce: #c9882f;
  --sage: #eef2e3;
  --leaf: #dbe6c2;
  --white: #ffffff;
  --muted: #5b4d3f;
  --line: rgba(42, 29, 18, .2);
  --warn: #b3321b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--choc);
  background: var(--sage);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--dulce); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 760px; }

.hd { position: sticky; top: 0; z-index: 10; background: var(--choc); color: #fff; }
.hd-in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Young Serif", Georgia, serif; font-size: 1.22rem; }
.brand i { width: 18px; height: 14px; background: var(--dulce); border-radius: 2px; position: relative; display: inline-block; }
.brand i::after { content: ""; position: absolute; left: 0; top: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 8px solid var(--choc); opacity: .5; }
.gnav { display: flex; align-items: center; gap: 24px; font-size: .94rem; font-weight: 600; }
.gnav a { text-decoration: none; opacity: .86; }
.gnav a:hover { opacity: 1; }
.gnav .gnav-cta { opacity: 1; background: var(--dulce); color: var(--choc); padding: 7px 18px; border-radius: 999px; font-weight: 800; }

.hero { padding: 72px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px; color: var(--yerba-deep); }
.lead { max-width: 32em; font-size: 1.1rem; }
.hero .btn { margin-top: 28px; }

.btn { display: inline-block; background: var(--yerba); color: #fff; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: 14px 30px; border-radius: 999px; transition: background .15s, transform .15s; }
.btn:hover { background: var(--yerba-deep); transform: translateY(-2px); }

.when { background: var(--white); border-radius: 24px; padding: 10px 28px; box-shadow: 0 0 0 3px var(--choc), 10px 10px 0 3px var(--dulce); }
.when div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.when div:last-child { border-bottom: 0; }
.when dt { font-size: .82rem; font-weight: 800; color: var(--yerba); }
.when dd { font-family: "Young Serif", Georgia, serif; font-size: 1.25rem; line-height: 1.3; }
.when small { display: block; margin-top: 2px; font-family: "Nunito", sans-serif; font-size: .84rem; color: var(--muted); }

.sec { padding: 92px 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.sec-white { background: var(--white); }
.sec-green { background: var(--yerba); color: #fff; }
.h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; max-width: 16em; }
.h2-w { color: #fff; }
.sec-lead { max-width: 38em; margin-bottom: 32px; color: var(--muted); }

.income { max-width: 520px; margin-bottom: 30px; }
.income label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 800; margin-bottom: 2px; }
.income output { font-family: "Young Serif", Georgia, serif; font-size: 1.5rem; color: var(--yerba-deep); }
.income input, .env input { width: 100%; height: 32px; accent-color: var(--yerba); background: transparent; }

.envs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.env { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 46px 18px 14px; border-radius: 8px; color: #fff; overflow: hidden; }
.env::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px; background: rgba(0,0,0,.16); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env label { font-weight: 800; font-size: .96rem; line-height: 1.25; }
.env b { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 2.3rem; line-height: 1.1; }
.env .amt { font-weight: 600; font-size: .92rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.env input { accent-color: #fff; }
.env-fix { background: #6b4a2b; }
.env-deu { background: #8f3b2a; }
.env-aho { background: var(--yerba); }
.env-gus { background: var(--dulce); color: var(--choc); }
.env-gus input { accent-color: var(--choc); }

.stack { display: flex; height: 22px; margin-top: 24px; border-radius: 6px; overflow: hidden; background: var(--leaf); }
.stack i { display: block; height: 100%; transition: width .3s ease; }
#b-fix { background: #6b4a2b; }
#b-deu { background: #8f3b2a; }
#b-aho { background: var(--yerba); }
#b-gus { background: var(--dulce); }
.stack-msg { margin-top: 12px; font-weight: 800; min-height: 1.6em; }
.stack-msg.bad { color: var(--warn); }
.stack-msg.good { color: var(--yerba-deep); }

.who { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.who .h2 { margin-bottom: 0; }
.who-txt p { padding: 18px 0; border-top: 1px solid var(--line); }
.who-txt p:last-child { border-bottom: 1px solid var(--line); }
.who-txt b { display: block; font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 1.3rem; line-height: 1.25; }

.reg { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.stamp-box { display: flex; gap: 22px; align-items: center; background: var(--leaf); color: var(--choc); border-radius: 20px; padding: 24px 24px 22px; }
.stamp { flex: none; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; border: 3px double var(--warn); color: var(--warn); font-weight: 800; font-size: .8rem; line-height: 1.25; text-align: center; letter-spacing: .08em; transform: rotate(-12deg); box-shadow: 0 0 0 4px var(--leaf), 0 0 0 6px var(--warn); }
.stamp-h { font-family: "Young Serif", Georgia, serif; font-size: 1.3rem; line-height: 1.2; margin-bottom: 6px; }
.stamp-txt p { font-size: .96rem; }
.stamp-txt .stamp-sub { margin-top: 8px; font-size: .82rem; color: var(--muted); }

.apply { background: var(--sage); color: var(--choc); border-radius: 24px; padding: 30px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-weight: 800; font-size: .92rem; margin-bottom: 6px; }
.hint { font-weight: 600; font-size: .78rem; color: var(--warn); margin-left: 10px; }
.fld input, .fld select { width: 100%; font: inherit; color: var(--choc); background: #fff; border: 2px solid #cdd7b4; border-radius: 14px; padding: 10px 14px; min-height: 50px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--yerba); }
.fld input[aria-invalid="true"], .fld select[aria-invalid="true"] { border-color: var(--warn); background: #fff4f0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.55; margin: 6px 0 22px; }
.agree input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--yerba); }
.btn-send { width: 100%; padding: 16px; font-size: 1.04rem; }
.msg { margin-top: 14px; font-size: .92rem; min-height: 1.5em; }
.msg.err { color: var(--warn); font-weight: 800; }
.done h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; margin-bottom: 8px; }

details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; list-style: none; padding-right: 36px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -6px; font-size: 1.9rem; font-weight: 400; color: var(--yerba); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

.ft { background: var(--choc); color: rgba(255,255,255,.82); padding: 52px 0 28px; }
.ft-in { display: flex; justify-content: space-between; gap: 40px; }
.ft .brand { color: #fff; }
.ft-note { max-width: 36em; margin-top: 14px; font-size: .86rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.ft-nav { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.ft-nav a { text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; }
.ft-copy { margin-top: 32px; font-size: .8rem; color: rgba(255,255,255,.5); }

.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 2.4rem; line-height: 1.1; margin-bottom: 8px; color: var(--yerba-deep); }
.doc .upd { color: var(--muted); font-size: .86rem; margin-bottom: 28px; }
.doc h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 1.4rem; margin: 36px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc p, .doc li { margin-bottom: 8px; }
.doc ul { padding-left: 1.4em; }
.doc .apply { margin-top: 28px; background: #fff; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-in, .who, .reg { grid-template-columns: 1fr; gap: 36px; }
  .envs { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 64px 0; }
  .gnav a:not(.gnav-cta) { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .when { padding: 6px 18px; }
  .envs { gap: 12px; }
  .env { padding: 42px 12px 10px; }
  .env b { font-size: 1.9rem; }
  .stamp-box { flex-direction: column; align-items: flex-start; }
  .apply { padding: 24px 16px; }
  .ft-in { flex-direction: column; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack i { transition: none; }
  .btn:hover { transform: none; }
}
