@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;650;700;750;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #171715;
  --gold: #d4af37;
  --light-gold: #e7c66c;
  --ink: #f2f2f2;
  --muted: #b8b5ac;
  --line: #363228;
  font-family: Montserrat, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--light-gold); outline-offset: 4px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 10px; left: 10px; padding: 12px; background: var(--gold); color: #111; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #141413; }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; gap: 22px; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 10px; font-size: .88rem; font-weight: 800; line-height: 1.12; }
.mark { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #6d5829; border-radius: 8px; color: var(--light-gold); background: linear-gradient(145deg,#2b2415,#121212 65%); font: 700 1.05rem Georgia, serif; letter-spacing: -.09em; padding-right: 2px; }
nav { display: flex; gap: 34px; color: var(--muted); font-size: .85rem; font-weight: 650; }
nav a:hover, .footer > a:last-child:hover { color: var(--light-gold); }
.top-social { justify-self: end; padding: 8px 13px; border: 1px solid #4e4229; border-radius: 7px; color: var(--light-gold); font-size: .8rem; font-weight: 700; }
.top-social:hover { border-color: var(--gold); }
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: #111110; }
.hero-inner { position: relative; display: grid; align-items: center; min-height: 480px; isolation: isolate; }
.hero-art { position: absolute; z-index: -1; inset: 0 -65px 0 27%; background: linear-gradient(90deg,#111110 0%,rgba(17,17,16,.63) 23%,transparent 61%,rgba(17,17,16,.25) 100%),linear-gradient(0deg,#111110 0%,transparent 25%,transparent 75%,rgba(17,17,16,.2)),url('./hero.webp') 57% 60% / cover no-repeat; }
.hero-copy { max-width: 710px; padding: 58px 0 64px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--light-gold); font-size: .7rem; font-weight: 750; letter-spacing: .145em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 1px; background: var(--gold); }
h1,h2,h3,p { margin: 0; }
h1 { max-width: 705px; font-size: clamp(2.7rem, 5.7vw, 5rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 800; }
h1 em { font-style: normal; color: var(--gold); }
.hero-copy > p:not(.eyebrow) { color: #d4d0c7; font-size: clamp(.96rem, 1.4vw, 1.09rem); max-width: 475px; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 17px; border-radius: 8px; font-weight: 750; font-size: .83rem; border: 1px solid transparent; }
.button.primary { background: var(--gold); color: #19160d; }
.button.primary:hover { background: #ebc956; }
.button.secondary { background: rgba(18,18,18,.7); border-color: #665632; color: var(--ink); }
.button.secondary:hover { border-color: var(--gold); }
.tools { padding-block: 63px 72px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.section-head > p { max-width: 335px; font-size: .89rem; color: var(--muted); }
h2 { font-size: clamp(1.8rem, 3.45vw, 3rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.tabs { display: flex; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 5px; width: fit-content; margin-bottom: 15px; background: #171715; }
.tabs button { border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); padding: 9px 14px; font-size: .82rem; font-weight: 700; }
.tabs button span { margin-right: 5px; }
.tabs button:hover { color: var(--light-gold); }
.tabs button[aria-selected=true] { background: #302719; color: var(--light-gold); border-color: #695128; }
.tool-panel { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.form-side, .result { min-width: 0; padding: 29px; }
.form-side { background: #181816; }
h3 { font-size: 1.24rem; font-weight: 800; letter-spacing: -.025em; }
.form-side > p { color: var(--muted); margin-top: 5px; font-size: .82rem; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 21px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .73rem; font-weight: 650; color: #e0ded6; }
input, select { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #464034; background: #111110; border-radius: 7px; padding: 8px 10px; color: var(--ink); font-size: .87rem; }
.calculate { width: 100%; margin-top: 20px; justify-content: space-between; }
fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
legend { padding: 0; color: var(--light-gold); font-size: .82rem; font-weight: 750; }
fieldset .field-grid { margin-top: 9px; }
details { font-size: .78rem; color: var(--muted); }
summary { color: var(--light-gold); font-weight: 700; }
details p { margin-top: 9px; }
.method, .extra { margin-top: 14px; }
.extra .field-grid { margin-top: 10px; }
.result { background: radial-gradient(ellipse at top right,#282318,#151514 65%); border-left: 1px solid var(--line); }
.result-label { color: var(--light-gold); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.big-number { display: block; margin-top: 5px; font-size: clamp(1.8rem, 3.7vw, 3.6rem); color: var(--ink); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; overflow-wrap: anywhere; }
.big-number.compact { font-size: clamp(1.4rem, 2.45vw, 2.4rem); }
.muted { margin-top: 8px; color: var(--muted); font-size: .83rem; }
.metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 20px 0 12px; }
.metrics > div { min-width: 0; border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; background: #1a1916; }
.metrics dt { color: var(--muted); font-size: .69rem; }
.metrics dd { font-weight: 750; margin: 4px 0 0; font-size: .91rem; overflow-wrap: anywhere; }
.chart canvas { display: block; width: 100%; height: 178px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .69rem; }
.chart-legend span::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--gold); }
.chart-legend span + span::before { background: #9c9587; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .72rem; margin-top: 16px; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); text-align: right; padding: 8px 7px; white-space: nowrap; }
th:first-child { text-align: left; }
thead th { color: var(--light-gold); }
tbody th { color: var(--muted); font-weight: 600; }
.schedule { margin-top: 20px; }
.schedule label { max-width: 220px; margin-top: 12px; }
.schedule-scroll { max-height: 290px; }
.schedule-scroll thead th { position: sticky; top: 0; background: #201d16; }
.resource-area { padding-block: 62px; background: #151513; border-block: 1px solid var(--line); }
.resource-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.resource-links a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 90px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #1a1916; }
.resource-links a:hover { border-color: #9f7c31; background: #221e16; }
.resource-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #302719; border: 1px solid #57452b; border-radius: 7px; color: var(--light-gold); font-size: 1.02rem; }
.resource-links strong, .resource-links small { display: block; }
.resource-links strong { font-size: .84rem; line-height: 1.3; }
.resource-links small, .affiliate { color: var(--muted); font-size: .71rem; margin-top: 4px; }
.arrow { color: var(--light-gold); }
.affiliate { margin-top: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 92px; }
.footer p, .footer > a:last-child { font-size: .72rem; color: var(--muted); }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 56px); }
  .resource-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-side, .result { padding: 20px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .top-inner { min-height: 64px; gap: 12px; }
  nav { gap: 12px; font-size: .7rem; }
  .top-social { display: none; }
  .top-inner { grid-template-columns: 1fr auto; }
  .hero-inner { min-height: 400px; }
  .hero-art { inset: 0 -18px 0 5%; background-position: 62% center; opacity: .64; }
  .hero-copy { padding-block: 54px; }
  .hero-copy > p:not(.eyebrow) { max-width: 350px; }
  .wide { display: none; }
  .section-head { display: block; }
  .section-head > p { margin-top: 10px; }
  .tools, .resource-area { padding-block: 42px; }
  .tool-panel { grid-template-columns: minmax(0,1fr); }
  .result { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .resource-links { grid-template-columns: minmax(0,1fr); }
  .resource-links a { min-height: 73px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding-inline: 4px; font-size: .73rem; }
  .footer { flex-wrap: wrap; padding-block: 18px; }
  .footer p { order: 1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.top-social span, .button span, .tabs button span, .resource-icon, .arrow { font-family: "DejaVu Sans", Arial, sans-serif; }

.seo-page > h1 { max-width: 900px; font-size: clamp(2rem, 5vw, 3.75rem); }
.seo-intro { max-width: 65ch; margin: 1rem 0 2rem; color: var(--muted); }
.seo-copy { max-width: 74ch; margin: 3rem 0 0; line-height: 1.65; }
.seo-copy h2 { margin: 1.6em 0 .5em; }
.seo-copy p, .seo-copy ul { margin: .65em 0; }
.seo-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
ul.seo-links { list-style: none; padding: 0; margin: 1rem 0; }
.seo-links a, .seo-page > p a { color: var(--light-gold); text-decoration: underline; }
