:root {
  --booth: #1d3b2f;        --booth-deep: #16302a;
  --slip: #edf3e4;         --rule: #a3bf9f;         --page: #f6f8f1;         --band: #e6eedd;         --ink: #15231c;
  --ink-soft: #4a5c52;
  --on-booth: #eff4e8;
  --on-booth-soft: #b7c9ba;

  --display: "Domine", Georgia, serif;
  --text: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: 1.25rem;
  --t-h2: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  --t-h1: clamp(2rem, 1.1rem + 3.4vw, 3.5rem);
  --t-amount: clamp(3rem, 1.6rem + 6vw, 5.5rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px;
  --wrap: 1080px;
  --col: 700px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--text); font-size: var(--t-body); line-height: 1.55;
  color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p { text-wrap: pretty; }

h1, h2, .num, .check-title, .brand { font-family: var(--display); }
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--t-body); font-weight: 650; line-height: 1.4; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.col { max-width: calc(var(--col) + 2 * var(--gutter)); }
.lead { font-size: var(--t-lead); line-height: 1.45; }

:focus-visible { outline: 2px solid var(--booth); outline-offset: 3px; }
.hero :focus-visible, .close :focus-visible, .foot :focus-visible { outline-color: var(--on-booth); }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 10; background: var(--on-booth); color: var(--ink); padding: var(--s2) var(--s4); }
.skip:focus { top: var(--s4); }

.hero { background: var(--booth); color: var(--on-booth); padding-bottom: var(--s24); }
.head { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); padding-top: var(--s6); }
.brand { font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: none; gap: var(--s8); }
.nav a { font-size: var(--t-small); text-decoration: none; color: var(--on-booth-soft); padding-block: var(--s1); border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--on-booth); border-bottom-color: var(--on-booth); }
@media (min-width: 760px) { .nav { display: flex; } }

.hero-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s6); padding-top: var(--s12); }
.hero-body h1 { max-width: 100%; }
.hero-body h1 span { display: inline-block; text-wrap: balance; }
.hero-body .lead { max-width: 50ch; color: var(--on-booth-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: var(--s3) var(--s6); border-radius: 6px; border: 1px solid transparent;
  font-family: var(--text); font-size: var(--t-body); font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.btn-light { background: var(--on-booth); color: var(--booth); }
.btn-light:hover { background: #ffffff; }
.btn:active { transform: translateY(1px); }

.check {
  position: relative; width: min(100%, 560px); margin-top: var(--s4);
  padding: var(--s8) var(--s8) var(--s6); background: var(--slip); color: var(--ink); text-align: left;
}
.check::before {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px;
  background: radial-gradient(circle, var(--booth) 4px, transparent 4.5px) 0 0 / 16px 10px repeat-x;
}
.check-title { font-size: var(--t-lead); font-weight: 700; text-align: center; padding-bottom: var(--s3); border-bottom: 3px double var(--rule); }
.check-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s6); align-items: baseline; padding-block: var(--s3); border-bottom: 1px solid var(--rule); }
.check-row dd { font-family: var(--display); font-weight: 500; text-align: right; }
.check-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: var(--s2); padding-top: var(--s4); padding-bottom: 0; }
.check-total dt { font-weight: 650; }
.check-total dd { font-size: var(--t-h2); font-weight: 700; line-height: 1; letter-spacing: -0.01em; }

@keyframes write { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.check-row { animation: write 420ms var(--ease) both; }
.check-row:nth-child(1) { animation-delay: 250ms; }
.check-row:nth-child(2) { animation-delay: 450ms; }
.check-row:nth-child(3) { animation-delay: 650ms; }
.check-row:nth-child(4) { animation-delay: 850ms; }
.check-row:nth-child(5) { animation-delay: 1250ms; }

.section { padding-block: var(--s24); }
.section + .section { padding-top: 0; }
.section.band, .section.close { padding-top: var(--s24); }
.band + .section { padding-top: var(--s24); }
.section h2 { margin-bottom: var(--s8); }
.section h2 + .sub { margin-top: calc(-1 * var(--s6)); margin-bottom: var(--s4); font-size: var(--t-lead); color: var(--ink-soft); }

.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: var(--s1) var(--s4); padding-block: var(--s6); border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--display); font-size: var(--t-h2); font-weight: 600; line-height: 1; color: var(--booth); }
.steps h3, .steps p { grid-column: 2; }
.steps p { color: var(--ink-soft); }

.list li { padding-block: var(--s4); border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }

.band { background: var(--band); }
.amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); margin-bottom: var(--s6); }
.num { font-size: var(--t-amount); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; color: var(--booth); }
.per { font-size: var(--t-lead); color: var(--ink-soft); }
.plans { display: grid; gap: var(--s12); margin-bottom: var(--s12); }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.plan { border-top: 3px solid var(--booth); padding-top: var(--s4); }
.plan h3 { font-family: var(--display); font-size: var(--t-lead); font-weight: 700; margin-bottom: var(--s2); }
.plan .amount { margin-bottom: var(--s4); }
.plan .num { font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem); }
.plan-lead { font-weight: 600; margin-bottom: var(--s1); }
.plan-list li { padding-block: var(--s3); border-top: 1px solid var(--rule); color: var(--ink-soft); }
.plan-list li:first-child { border-top: 0; }
.terms { font-size: var(--t-lead); font-weight: 600; margin-bottom: var(--s3); }
.covers { color: var(--ink-soft); max-width: 58ch; }

.work-head { margin-inline: auto; padding-inline: 0; max-width: var(--col); margin-bottom: var(--s12); }
.work-head h2 { margin-bottom: var(--s3); }
.work-head p { color: var(--ink-soft); }
.link { text-decoration-thickness: 1px; text-underline-offset: 0.2em; color: var(--ink); }
.link:hover { color: var(--booth); }
.frames { display: grid; gap: var(--s8); align-items: end; }
.frame img { width: 100%; }
.frame figcaption { margin-top: var(--s3); font-size: var(--t-small); color: var(--ink-soft); }
.frame-phone { max-width: 240px; }
@media (min-width: 760px) { .frames { grid-template-columns: minmax(0, 1fr) 240px; gap: var(--s12); } }

.close { background: var(--booth); color: var(--on-booth); }
.close .lead { max-width: 40ch; margin-bottom: var(--s8); }
.about { margin-top: var(--s8); color: var(--on-booth-soft); }

.foot { background: var(--booth-deep); color: var(--on-booth-soft); font-size: var(--t-small); }
.foot-row { display: flex; justify-content: space-between; gap: var(--s4); padding-block: var(--s6); }

@media (max-width: 759px) {
  .hero { padding-bottom: var(--s16); }
  .hero-body { padding-top: var(--s12); }
  .section, .section.band, .section.close, .band + .section { padding-block: var(--s16); }
  .section + .section { padding-top: 0; }
  .section.band, .section.close, .band + .section { padding-top: var(--s16); }
  .check { padding: var(--s6) var(--s6) var(--s6); }
  .steps li { grid-template-columns: 2.25rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .check-row { animation: none; }
}
