/* Fraunces latin variable, local file — zero external requests */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; src: url('fraunces.woff2') format('woff2'); font-display: swap; }

/* TOKENS:START — shared compound-codebase sheet, same world as the flagship */
:root {
  --paper: #faf8f3;
  --ink: #16150f;
  --muted: #5c574a;
  --gold: #e8a317;
  --gold-deep: #8f6400;
  --tint: #f2eddf;
  --gold-tint: #f6e7c6;
  --line: #e3ddcd;
  --card: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 18px;
  --shell: 1100px;
}
/* TOKENS:END */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--gold); color: var(--ink); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); max-width: 18ch; font-weight: 400; letter-spacing: -0.015em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }

a { color: inherit; text-decoration: none; }
.link { border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 160ms ease; }
.link:hover { border-color: var(--gold); }

.fret {
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M1 11V1h22M5 11V5h14M5 11h6V8' fill='none' stroke='%23e8a317' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 24px 12px;
}

.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 64px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.wordmark small { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; margin-left: 0.6rem; }

.cta {
  display: inline-block; background: var(--gold); color: var(--ink); border-radius: 999px;
  padding: 0.8rem 1.6rem; font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  box-shadow: 0 1px 0 rgb(22 21 15 / 0.18); transition: transform 160ms ease, box-shadow 160ms ease;
  font-family: var(--font-body);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(232 163 23 / 0.35); }
.cta-ghost { display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.55rem 1.2rem; font-weight: 600; font-size: 0.95rem; transition: background-color 180ms ease, border-color 180ms ease; }
.cta-ghost:hover { background: var(--gold); border-color: var(--gold); }

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 1.2rem 0 0; }
.hero-ctas { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.9rem; flex-wrap: wrap; }
.goldrule { display: block; width: 84px; height: 3px; background: var(--gold); margin-top: 1.2rem; }
.price-line { margin-top: 1.4rem; font-family: var(--font-display); font-size: 1.4rem; }
.price-line span { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); }

.band { background: var(--tint); border-block: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3rem); }
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform 200ms ease, box-shadow 200ms ease; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgb(22 21 15 / 0.07); }
.card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0.4rem 0; }
.card-body { color: var(--muted); margin: 0; }
.card-num { color: var(--gold-deep); font-family: var(--font-display); font-size: 1.05rem; }
.tag { display: inline-block; background: var(--gold-tint); color: var(--gold-deep); border-radius: 999px; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.7rem; margin-bottom: 0.5rem; }
.tag-plain { background: var(--tint); color: var(--muted); }

/* tool panels */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.tool label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.tool input, .tool select, .tool textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.65rem 0.8rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
}
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.5rem; }
.result { background: var(--gold-tint); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.result-big { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
.result p { margin: 0.4rem 0 0; color: var(--gold-deep); }

table.ledger { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
table.ledger th { text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--gold); padding: 0.5rem 0.6rem; }
table.ledger td { border-bottom: 1px solid var(--line); padding: 0.6rem; }
table.ledger td.num { font-variant-numeric: tabular-nums; text-align: right; }
.table-scroll { overflow-x: auto; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 1.25rem; align-items: baseline; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-numeral { color: var(--gold-deep); font-family: var(--font-display); font-size: 1.3rem; min-width: 1.6rem; }
.step h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.step p { color: var(--muted); margin: 0.2rem 0 0; }

.footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: 0.9rem; color: var(--muted); margin-top: auto; }
.footer-row { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer-row p { margin: 0; }
.footer-legal { margin-top: 0.8rem; font-size: 0.83rem; }

.crumb { font-size: 0.9rem; color: var(--muted); padding-top: 1rem; }
.crumb a { border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .card, .cta, .cta-ghost, .link { transition: none; }
  html { scroll-behavior: auto; }
}
