:root {
    --ink: #17201c;
    --muted: #65706a;
    --line: #d8ded8;
    --paper: #ffffff;
    --canvas: #f2f5f0;
    --forest: #103c36;
    --teal: #177f73;
    --gold: #f4c84a;
    --coral: #c84936;
    --font: "Bricolage Grotesque", sans-serif;
    --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); background-image: linear-gradient(rgba(16, 60, 54, .035) 1px, transparent 1px); background-size: 100% 32px; font-family: var(--font); }
a { color: inherit; }
.site-header { height: 72px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; background: var(--forest); color: white; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; background: var(--gold); transform: rotate(-2deg); }
.brand-mark img { width: 29px; height: 29px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 5px; text-decoration: none; font-size: 12px; font-weight: 600; }
.site-header nav a:first-child:hover { background: rgba(255,255,255,.08); }
.site-header .primary-link { color: var(--forest); background: var(--gold); }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.pricing-intro { padding: 72px 0 42px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; font-size: 72px; line-height: .96; }
.pricing-intro > p:nth-of-type(2) { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.trust-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 7px 9px; color: #35544b; background: #e1ebe3; border-radius: 4px; font-family: var(--mono); font-size: 9px; }

.plans-section { padding: 38px 0 54px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plan-card { min-width: 0; padding: 20px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 18px rgba(18, 45, 37, .04); }
.plan-card.is-featured { border-top: 4px solid var(--gold); }
.plan-card.is-free { background: #eaf1eb; border-color: #c8d8cc; }
.plan-heading { min-height: 49px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plan-heading h2 { margin: 0; font-size: 18px; }
.plan-heading span { padding: 4px 6px; color: #54615b; background: #eef1ed; border-radius: 4px; font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.is-free .plan-heading span { background: white; }
.price { margin: 18px 0 7px; color: var(--forest); font-size: 29px; line-height: 1; }
.price small { margin-left: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 500; }
.plan-description { min-height: 58px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.plan-features { margin: 0 0 20px; padding: 15px 0 0; display: grid; gap: 10px; border-top: 1px solid #e5e9e4; list-style: none; }
.plan-features li { display: flex; justify-content: space-between; gap: 10px; color: #55605a; font-size: 10px; }
.plan-features strong { color: var(--ink); text-align: right; }
.plan-card a { min-height: 42px; margin-top: auto; display: flex; align-items: center; justify-content: center; color: white; background: var(--forest); border-radius: 6px; text-decoration: none; font-size: 11px; font-weight: 700; }
.plan-card a:hover { background: var(--teal); }
.is-featured a { color: var(--forest); background: var(--gold); }
.catalog-status, .loading-state { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.loading-state { grid-column: 1 / -1; padding: 70px 0; text-align: center; }

.plan-notes { padding: 52px 0 70px; display: grid; grid-template-columns: .8fr 1.4fr; gap: 70px; border-top: 1px solid var(--line); }
.plan-notes h2 { max-width: 390px; margin: 0; font-size: 36px; line-height: 1.05; }
.plan-notes dl { margin: 0; display: grid; }
.plan-notes dl div { padding: 16px 0; display: grid; grid-template-columns: 130px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.plan-notes dt { font-weight: 700; }
.plan-notes dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer { min-height: 92px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; background: var(--forest); }
footer p { margin: 0; color: #b7cec5; font-size: 11px; }

@media (max-width: 980px) {
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .site-header { height: 66px; padding: 0 14px; }
    .site-header nav { gap: 2px; }
    .site-header nav a { padding: 0 9px; font-size: 10px; }
    main { width: calc(100% - 28px); }
    .pricing-intro { padding: 48px 0 32px; }
    h1 { font-size: 43px; }
    .pricing-intro > p:nth-of-type(2) { margin-top: 18px; font-size: 14px; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-description { min-height: 0; }
    .plan-notes { padding: 42px 0 52px; grid-template-columns: 1fr; gap: 28px; }
    .plan-notes h2 { font-size: 30px; }
    .plan-notes dl div { grid-template-columns: 1fr; gap: 6px; }
    footer { padding: 22px 14px; align-items: flex-start; flex-direction: column; }
}