@font-face { font-family: Besley; src: url(/fonts/besley.woff2) format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(/fonts/franklin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Mansalva; src: url(/fonts/mansalva.woff2) format("woff2"); font-display: swap; }

:root {
  --frost: #e8f0ed;
  --paper: #ffffff;
  --ink: #14302a;
  --soft: #456058;
  --line: #bccdc6;
  --pine: #14463a;
  --red: #b4161b;
  --red-deep: #8e0f14;
  --radius: 6px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--frost); color: var(--ink); font: 400 17px/1.55 "Libre Franklin", Arial, sans-serif; }
h1, h2, h3 { font-family: Besley, Georgia, serif; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--red-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.shell { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; background: var(--paper); padding: 8px 14px; z-index: 5; }
.skip:focus { left: 8px; top: 8px; }
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--red) 0 14px, #fff 14px 28px, var(--pine) 28px 42px, #fff 42px 56px); }

.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 11px; font: 800 1.15rem/1 Besley, Georgia, serif; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 9px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
nav a:hover { background: #d6e4de; }
nav a[aria-current] { background: var(--pine); color: #fff; }

.hero { padding-block: 18px 22px; }
.hero p { margin-top: 8px; max-width: 62ch; font-size: 1.08rem; color: var(--soft); }

/* tool */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px -18px rgb(20 48 42 / 0.45); }
.order { display: grid; gap: 18px; padding: 26px; align-content: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field > span, legend { font-weight: 600; font-size: 0.95rem; }
.field i { font-style: normal; }
input[type=text], input[type=email], input[type=number], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #7f978e; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #64796f; }
input:disabled { background: #eef2f0; color: #64796f; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; }
legend em { font-style: normal; font-weight: 500; color: var(--soft); margin-left: 6px; }

.chips, .segments, .themes { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .segments label, .themes label, .scenarios label { position: relative; cursor: pointer; }
.chips input, .segments input, .themes input, .scenarios input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span, .segments span, .themes span { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 13px; border: 1px solid #7f978e; border-radius: 21px; background: #fff; font-size: 0.95rem; line-height: 1.2; }
.chips b { font-weight: 400; }
.segments { gap: 0; flex-wrap: nowrap; }
.segments label { flex: 1; }
.segments span { justify-content: center; text-align: center; border-radius: 0; margin-left: -1px; height: 100%; padding-inline: 8px; }
.segments label:first-child span { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.segments label:last-child span { border-radius: 0 var(--radius) var(--radius) 0; }
.themes span { border-radius: var(--radius); padding-inline: 10px; }
.swatch { width: 18px; height: 18px; border-radius: 3px; border: 1px solid #7f978e; }
.swatch.candy { background: repeating-linear-gradient(-45deg, var(--red) 0 4px, #fff 4px 8px); }
.swatch.postmark { background: repeating-linear-gradient(-45deg, var(--red) 0 3px, #fff 3px 6px, #274b7a 6px 9px, #fff 9px 12px); }
.swatch.pine { background: var(--pine); }
label:hover > input:not(:checked, :disabled) + span { background: #eef5f2; }
input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
input:disabled + span { color: #64796f; border-color: var(--line); cursor: not-allowed; }
.scenarios { display: grid; gap: 8px; }
.scenarios span { display: block; padding: 11px 14px; border: 1px solid #7f978e; border-left: 5px solid var(--red); border-radius: var(--radius); background: #fff; }
.scenarios input:checked + span { border-left-color: #f2b8ba; }
.scenarios b, .scenarios small { display: block; line-height: 1.3; }
.scenarios small { font-size: 0.9rem; color: var(--soft); }
.scenarios input:checked + span small { color: #dcebe5; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--pine); flex: none; }
.check span { background: none !important; color: inherit !important; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.stage { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--pine); color: #fff; }
.views { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.views button { min-height: 40px; padding: 6px 16px; border: 1px solid #7fa696; border-radius: 20px; background: transparent; color: #fff; font: 600 0.95rem "Libre Franklin", Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.views button[aria-pressed=true] { background: #fff; color: var(--pine); border-color: #fff; }
.desk { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 300px; }
#preview { display: block; max-width: 100%; height: auto; background: #fff; box-shadow: 0 14px 26px -10px rgb(0 0 0 / 0.6); }
#preview.card { width: 296px; aspect-ratio: 2 / 3; }
#preview.sheet, #preview.letter { width: 430px; }
.scale { font-size: 0.92rem; color: #dcebe5; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font: 600 1rem/1.2 "Libre Franklin", Arial, sans-serif; text-align: center; text-wrap: balance; text-decoration: none; cursor: pointer; }
.button:hover { background: #eef5f2; }
.button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.button.primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.stage .button { border-color: #fff; }
.stage .button.primary { border-color: #e98a8d; }
.button:disabled { opacity: 0.6; cursor: progress; }
.status { min-height: 1.5em; font-weight: 600; font-size: 0.95rem; }
.stage .status { text-align: center; }
.status.bad { color: var(--red-deep); }
.stage .status.bad { color: #ffd2d3; }

/* bands under the tool */
.tonight, .next-year { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; padding-block: 40px 36px; }
.next-year { position: relative; margin-block: 28px; padding: 38px 28px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.next-year::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #fff 12px 24px, var(--pine) 24px 36px, #fff 36px 48px); }
.tonight p, .next-year p { margin-block: 8px 14px; color: var(--soft); max-width: 52ch; }
.tonight .status, .remind .status { margin: 8px 0 0; color: var(--pine); }
.tonight .status.bad, .remind .status.bad { color: var(--red-deep); }
.remind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; align-content: start; }
.remind p { grid-column: 1 / -1; margin: 0; }
.fine { font-size: 0.92rem; color: var(--soft); }
.bundle { padding-block: 12px 8px; }
.bundle > p { margin-block: 8px 16px; color: var(--soft); max-width: 70ch; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tier.best { border: 2px solid var(--red); background: #fffaf9; }
.tier .badge { align-self: flex-start; padding: 4px 12px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 600; font-size: 0.9rem; }
.tier .price strong { display: inline-block; margin-right: 6px; font: 800 2.5rem/1 Besley, Georgia, serif; color: var(--red-deep); }
.tier ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 10px; }
.tier li { padding-left: 24px; background: linear-gradient(var(--red), var(--red)) 2px 0.6em / 10px 3px no-repeat; }
.tier li b { display: block; }
.tier li span, .tier > p:not(.badge, .price) { color: var(--soft); }
.tier .button { margin-top: auto; }
.bundle .fine { margin-top: 14px; }
.bundle .status { color: var(--pine); margin: 0; }
.bundle .status.bad { color: var(--red-deep); }
.upsell { text-align: center; font-size: 0.95rem; }
.upsell a { color: #fff; font-weight: 600; }
[hidden] { display: none !important; }

.prose { padding-block: 44px 12px; }
.prose:not(.legal) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 44px 64px; }
.legal > * { max-width: 74ch; }
.guide p, .guide ul, .guide ol, .legal p { margin-top: 12px; }
.guide h3, .legal h2 { margin-top: 28px; }
.guide ul, .guide ol { padding-left: 1.3em; display: grid; gap: 8px; }
.guide li::marker { color: var(--red); font-weight: 700; }
details { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 8px; }
summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
details p { padding-bottom: 16px; color: var(--soft); }
.related { padding-block: 28px 48px; }
.related > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.related a { display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.related a:hover { border-color: var(--pine); }
.related b { display: block; font: 700 1.1rem/1.3 Besley, Georgia, serif; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.related span { display: block; margin-top: 6px; color: var(--soft); }
.legal { padding-bottom: 48px; }
.legal ul { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.legal h3 { margin-top: 20px; }
.article { max-width: 800px; padding-block: 20px 24px; }
.article > p, .article > ul, .article > ol, .article .table { margin-top: 14px; }
.article h2 { margin-top: 38px; }
.article ul, .article ol { padding-left: 1.3em; display: grid; gap: 8px; }
.article li::marker { color: var(--red); font-weight: 700; }
.article .lead { font-size: 1.1rem; }
.article .faq { margin-top: 40px; }
.trail { display: flex; flex-wrap: wrap; gap: 4px 8px; width: auto; justify-content: flex-start; margin-bottom: 10px; font-size: 0.92rem; color: var(--soft); }
.trail a { padding: 6px 0; font-size: inherit; font-weight: 500; text-decoration: underline; }
.trail a:hover { background: none; }
.trail > * + *::before { content: "/"; display: inline-block; margin-right: 8px; color: var(--soft); text-decoration: none; }
.trail span { padding: 6px 0; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.4; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #dfeae5; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.products { display: grid; gap: 28px; padding-bottom: 48px; }
.product canvas { display: block; width: 460px; max-width: 100%; height: auto; background: #fff; box-shadow: 0 14px 26px -10px rgb(0 0 0 / 0.6); }
.hero p .button { margin-right: 8px; }
.hero .status { color: var(--pine); font-size: 1.08rem; }
.hero .status.bad { color: var(--red-deep); }
.hd-links .links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; }
.legal .remind { max-width: 480px; margin-top: 14px; }
footer { background: var(--ink); color: #dcebe5; padding-block: 28px; font-size: 0.95rem; }
footer p { max-width: 90ch; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
footer a { color: #fff; padding-block: 6px; }
#print-root { display: none; }

@media (max-width: 860px) {
  .tool, .tonight, .next-year, .prose:not(.legal) { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier.best { order: -1; }
  .order { padding: 20px 16px; }
  .stage { padding: 20px 16px; }
  .hero { padding-block: 8px 16px; }
  #preview.card { width: min(300px, 100%); }
  .masthead nav { width: 100%; justify-content: space-between; gap: 0; }
  .masthead nav a { padding: 9px clamp(2px, 1vw, 8px); font-size: clamp(0.78rem, 3.7vw, 0.92rem); }
  .actions .button { flex: 1 1 40%; padding-inline: 10px; }
}
@media (max-width: 480px) {
  .remind { grid-template-columns: minmax(0, 1fr); }
  .views button { padding-inline: 12px; font-size: 0.9rem; }
  .tier { padding: 20px; }
  th, td { padding: 9px 10px; }
  .next-year { padding: 32px 18px 22px; }
  .order > .pair:has(fieldset) { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  @page { margin: 0; }
  body { background: none; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root img { display: block; width: 8.5in; height: 10.99in; }
  #print-root[data-paper=a4] img { width: 210mm; height: 296.8mm; }
}
