/* Keystead — single stylesheet. Self-hosted Lato (SIL OFL, see /assets/fonts/OFL.txt). */
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #18202f;
  --navy-2: #232d40;
  --gold: #c9a24f;
  --gold-dark: #a8842f;
  --ink: #1c2433;
  --muted: #5b677a;
  --line: #e2e6ec;
  --bg: #f6f7f9;
  --card: #ffffff;
  --pos: #1f7a4d;
  --neg: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 32, 47, .06), 0 8px 24px rgba(24, 32, 47, .06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 900; font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-weight: 900; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header / footer */
.site-header { background: var(--navy); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; }
.brand img { width: 170px; height: auto; }
.main-nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.site-footer { background: var(--navy); color: #c8cfdb; margin-top: 72px; padding: 40px 0 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.site-footer a { color: #fff; }
.site-footer img { margin-bottom: 10px; }
.site-footer .fineprint { color: #95a0b3; margin-top: 24px; }

/* sections */
.hero { background: var(--navy); color: #fff; padding: 48px 0 64px; }
.hero-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .lead { color: #d5dbe5; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.eyebrow { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .4em; }
.hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 70ch; }
.band { background: #fff; border-block: 1px solid var(--line); padding: 48px 0; margin: 48px 0; }
.section-title { margin-bottom: 22px; }
section.wrap { margin-top: 40px; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 22px; margin-bottom: 28px; }
.page-head h1 { margin-top: .2em; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card .card-img img { aspect-ratio: 5 / 4; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-body .buy { margin-top: auto; }
.calc-card { display: block; padding: 22px; text-decoration: none; color: inherit; }
.calc-card:hover { border-color: var(--gold); color: inherit; }
.calc-card p { color: var(--muted); }
.more { font-weight: 700; display: inline-block; margin-top: 10px; }
.price { font-weight: 900; font-size: 1.25rem; margin: 0 0 12px; }
.price-lg { font-size: 1.9rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 48px; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #d8b466; color: var(--navy); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.buy-note { font-size: .88rem; color: var(--muted); }

/* product page */
/* desktop: images left, info right (sticky). Phone: main image, then price/buy, then the other images */
.product-layout { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-areas: "main info" "thumbs info"; gap: 14px 40px; align-items: start; }
.gallery-main { grid-area: main; }
.gallery-main img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.thumbs { grid-area: thumbs; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.thumbs img { border-radius: 10px; border: 1px solid var(--line); }
.product-info { grid-area: info; position: sticky; top: 16px; }
.product-info h2 { font-size: 1.2rem; margin-top: 1.4em; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 900; }
.fineprint { font-size: .85rem; color: var(--muted); }

/* calculators */
.calc-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.calc-form { padding: 8px 22px 22px; }
fieldset { border: 0; padding: 0; margin: 18px 0 6px; min-width: 0; }
legend { font-weight: 900; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.input-wrap { display: flex; align-items: center; border: 1.5px solid #c9d0db; border-radius: 10px; background: #fff; padding: 0 12px; }
.input-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 79, .25); }
.input-wrap input { border: 0; outline: 0; font: inherit; padding: 10px 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.input-wrap:has(input[aria-invalid="true"]) { border-color: var(--neg); }
select { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #c9d0db; border-radius: 10px; background: #fff; color: var(--ink); }
.affix { color: var(--muted); font-weight: 700; padding: 0 4px; }
.hint { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.err { font-size: .82rem; color: var(--neg); font-weight: 700; margin: 4px 0 0; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.status { color: var(--neg); font-weight: 700; margin: 0; }
.sticky-summary { display: none; }
@media (max-width: 900px) {
  /* phone/tablet: the results sit below the form, so keep the two headline numbers in view while typing */
  .sticky-summary { display: flex; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; margin: 16px -22px -22px; padding: 12px 22px; background: var(--navy); color: #c8cfdb; font-size: .85rem; border-radius: 0 0 var(--radius) var(--radius); }
  .sticky-summary b { display: block; color: #fff; font-size: 1.2rem; font-weight: 900; }
  .sticky-summary b.pos { color: #7ddba8; }
  .sticky-summary b.neg { color: #ff9b93; }
}
.calc-results { position: sticky; top: 16px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile-lg { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.tile-lg .tile-label { color: #b9c2d1; }
.tile-value { font-weight: 900; font-size: 1.5rem; margin: 0; font-variant-numeric: tabular-nums; }
.tile-lg .tile-value { font-size: 1.9rem; color: #fff; }
.tile-lg .tile-value.pos { color: #7ddba8; }
.tile-lg .tile-value.neg { color: #ff9b93; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.quickread { padding: 18px 20px; margin-top: 14px; }
.quickread h2 { font-size: 1.05rem; }
.quickread ul { margin: 0; padding-left: 20px; }
.quickread li { margin-bottom: 4px; }
.privacy-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.calc-table { margin-top: 40px; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th[scope="row"], thead th:first-child { text-align: left; font-weight: 400; }
thead th { background: var(--navy); color: #fff; font-weight: 700; }
tr.sub th, tr.sub td { font-weight: 700; background: #f3f5f8; }
tr.total th, tr.total td { font-weight: 900; background: #fbf6ea; }
.upsell { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 26px; margin-top: 40px; align-items: center; }
.upsell img { border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.4em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

@media (max-width: 900px) {
  .hero-row, .product-layout, .calc-layout, .upsell { grid-template-columns: 1fr; }
  .product-layout { grid-template-areas: "main" "info" "thumbs"; gap: 20px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .product-info, .calc-results { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .fields { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-value { font-size: 1.25rem; }
  .tile-lg .tile-value { font-size: 1.45rem; }
  .brand img { width: 140px; }
  .hero { padding: 32px 0 44px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
