:root {
  color-scheme: light;
  --ink: #122f2a;
  --muted: #456159;
  --green: #174b42;
  --line: #c9d0c2;
  background: #f7f5ed;
  color: var(--ink);
  font: 16px/1.6 "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, footer, main { width: min(1120px, calc(100% - 40px)); margin: auto; }
header, footer { display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 0; }
header { justify-content: space-between; border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); flex-wrap: wrap; }
a { color: var(--green); text-underline-offset: .2em; }
.brand { font-weight: 800; font-size: 1.3rem; text-decoration: none; }
main { padding: clamp(2rem, 6vw, 5rem) 0; }
h1, h2 { font-family: Georgia, serif; margin: 0; font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.6rem); letter-spacing: -.045em; }
h2 { font-size: 2.1rem; }
.intro { color: var(--muted); max-width: 52ch; font-size: 1.1rem; }
.billing-period { width: fit-content; margin-top: 1.7rem; padding: .22rem; border: 1px solid var(--line);
  border-radius: .55rem; display: flex; gap: .15rem; }
button { font: inherit; cursor: pointer; }
.billing-period button { color: var(--ink); background: none; border: 0; padding: .35rem .85rem; border-radius: .3rem; }
.billing-period button[aria-pressed="true"] { color: white; background: var(--green); }
.status { color: var(--muted); min-height: 1.6em; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tier { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .6rem;
  background: #fffef9; padding: clamp(1.1rem, 2.5vw, 1.8rem); }
.tier.pro { border-color: var(--green); box-shadow: inset 0 .24rem var(--green); }
.description { color: var(--muted); min-height: 2.8em; margin: .65rem 0; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.price { font-size: clamp(1.6rem, 3vw, 2.45rem); overflow-wrap: anywhere; }
.price-period { color: var(--muted); }
.features { padding-left: 1.2rem; margin: 1rem 0 1.65rem; }
.features li + li { margin-top: .55rem; }
.subscribe { display: inline-block; text-align: center; text-decoration: none; color: white; background: var(--green);
  border: 1px solid var(--green); padding: .6rem 1.1rem; border-radius: .3rem; }
.tier .subscribe { margin-top: auto; }
.subscribe:disabled { color: #51615b; background: #edf0e8; border-color: var(--line); cursor: default; }
:focus-visible { outline: 3px solid #a0580b; outline-offset: .2rem; }
[hidden] { display: none !important; }
.welcome { max-width: 750px; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } .description { min-height: auto; } }
