/* Fair Cut — cutting-mat grid, cobalt ink, price-sticker yellow, shipping-label panels. Square corners, no shadows. */
:root {
  --bg: #f5f4ef; --white: #fff; --ink: #15172a; --muted: #555a6e; --line: #c7c9d4; --grid: #e2e4ee;
  --cobalt: #2340c0; --cobalt-dk: #1a2f8f; --sun: #f6c945; --loss: #c2381f; --gain: #1f7a4a;
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif; --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--body);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0v32' fill='none' stroke='%23e2e4ee' stroke-width='1'/%3E%3C/svg%3E"); }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -.015em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-stretch: 100%; }
.mark { background: var(--sun); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
p { margin: 0 0 1em; }
.kicker { font: 700 .76rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 14px; }
.lede { font-size: 1.12rem; max-width: 37em; color: #2b2e42; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-head { background: var(--white); border-bottom: 2px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 22px; flex: none; }
.brand span { font: 900 1.25rem/1 var(--head); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font: 600 .92rem/1 var(--body); padding: 9px 10px; }
.nav a:hover { color: var(--cobalt); }
.nav a[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--sun); }

/* Cut line divider */
.cut { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 700 .7rem/1 var(--head); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 20px; }
.cut svg { width: 20px; height: 14px; flex: none; color: var(--ink); }
.cut::after { content: ""; flex: 1; border-top: 2px dashed var(--ink); opacity: .45; }

/* Hero */
.hero { padding: 60px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }
.btn { display: inline-block; background: var(--cobalt); color: #fff; text-decoration: none; border: 2px solid var(--cobalt); font: 700 .95rem/1 var(--body); padding: 14px 20px; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 10px 14px; font-size: .86rem; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Shipping label (hero specimen + results) */
.slip { position: relative; background: var(--white); border: 2px solid var(--ink); }
.slip-top { background: var(--ink); color: #fff; display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; font: 700 .72rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; }
.slip-body { padding: 16px 18px 14px; }
.slip .rows { list-style: none; margin: 0; padding: 0; }
.slip .rows li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.slip .rows li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.slip .rows li.sum { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 9px; font-weight: 700; }
.slip .rows li.minus span:last-child { color: var(--loss); }
.slip .rows li.head { border-bottom: 2px solid var(--ink); font: 700 .7rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.slip .bar { display: block; width: 100%; height: 26px; margin-top: 12px; color: var(--ink); }
.sticker { position: absolute; right: -18px; top: -26px; width: 116px; height: 116px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); transform: rotate(-9deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.05; }
.sticker b { font: 900 1.55rem/1 var(--head); font-stretch: 100%; }
.sticker small { font: 700 .62rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* Sections */
.block { padding: 60px 0; border-top: 2px solid var(--ink); background: var(--white); }
.block.plain { background: transparent; }
.two { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; border-left: 2px solid var(--ink); }
.tools a { display: block; padding: 0 20px 22px; text-decoration: none; color: var(--ink); border-right: 2px solid var(--ink); }
.tools .no { display: block; font: 900 3.2rem/1 var(--head); font-stretch: 75%; color: var(--cobalt); border-top: 6px solid var(--cobalt); padding-top: 12px; margin: 0 -20px 10px; padding-left: 20px; }
.tools .t { display: block; font: 800 1.2rem/1.15 var(--head); margin-bottom: 8px; }
.tools .d { display: block; font-size: .93rem; color: var(--muted); }
.tools .go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--cobalt); }
.tools a:hover .t { text-decoration: underline; text-decoration-thickness: 2px; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li { padding: 18px 0; border-bottom: 2px dashed var(--line); }
.quotes li:first-child { border-top: 2px solid var(--ink); }
.quotes q { display: block; font: 600 1.12rem/1.4 var(--body); quotes: "“" "”"; }
.quotes .src { font-size: .8rem; color: var(--muted); }
.quotes .fix { display: block; margin-top: 6px; font-size: .95rem; color: #2b2e42; }

/* Paid band */
.shelf { background: var(--cobalt); color: #fff; padding: 60px 0; border-top: 2px solid var(--ink); }
.shelf h2 { color: #fff; }
.shelf p, .shelf li { color: #e3e8ff; }
.shelf a { color: #fff; }
.shelf ul { margin: 0 0 24px; padding: 0; list-style: none; }
.shelf li { padding: 9px 0 9px 24px; border-bottom: 1px dashed #6f84e0; position: relative; }
.shelf li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 2px; background: var(--sun); }
.shelf .btn { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.shelf .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.shelf .price { display: inline-block; background: var(--sun); color: var(--ink); font: 800 1rem/1 var(--head); padding: 8px 12px; margin-bottom: 14px; }
.shelf small { display: block; margin-top: 14px; color: #cbd4ff; font-size: .85rem; }

/* Tool pages */
.tool-head { padding: 44px 0 30px; }
.tool-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.tool-wrap { background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tool { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding: 34px 0 56px; align-items: start; }
fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
legend { font: 800 1.05rem/1.2 var(--head); font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; padding: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
legend b { background: var(--ink); color: #fff; font: 800 .78rem/1 var(--head); padding: 5px 7px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.field { margin: 0 0 16px; min-width: 0; }
label, .lab { display: block; font: 600 .88rem/1.3 var(--body); margin-bottom: 6px; }
input[type=text], select { width: 100%; font: 600 1rem/1.3 var(--body); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; font-variant-numeric: tabular-nums; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315172a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--cobalt); }
input[aria-invalid="true"] { border-color: var(--loss); background: #fdeeea; }
.affix { position: relative; }
.affix i { position: absolute; top: 50%; transform: translateY(-50%); left: 12px; font-style: normal; font-weight: 600; color: var(--muted); pointer-events: none; }
.affix input { padding-left: 30px; }
.affix.suf i { left: auto; right: 12px; }
.affix.suf input { padding-left: 12px; padding-right: 36px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.seg { display: flex; flex-wrap: wrap; border: 2px solid var(--ink); width: fit-content; max-width: 100%; }
.seg label { margin: 0; padding: 9px 13px; cursor: pointer; border-right: 2px solid var(--ink); background: var(--white); font-size: .88rem; }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: -3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cobalt); }
details.rates { border: 2px solid var(--ink); background: var(--bg); margin: 0 0 28px; }
details.rates summary { cursor: pointer; padding: 12px 14px; font: 700 .95rem/1.3 var(--body); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.rates summary::-webkit-details-marker { display: none; }
details.rates summary::after { content: "Edit"; color: var(--cobalt); text-decoration: underline; font-weight: 600; }
details.rates[open] summary::after { content: "Close"; }
details.rates summary span { font-weight: 500; color: var(--muted); font-size: .85rem; }
details.rates .in { padding: 4px 14px 2px; border-top: 2px dashed var(--line); }

.result { position: sticky; top: 16px; }
.result .big-lab { font: 700 .72rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result .big { font: 900 clamp(2.4rem, 5vw, 3.3rem)/1 var(--head); font-stretch: 100%; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.result .big.loss { color: var(--loss); }
.bigs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.bigs > div { display: flex; flex-direction: column; justify-content: flex-end; }
.bigs .big { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.result .note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.result .actions { margin-top: 16px; }
.msg { font-size: .88rem; margin-top: 12px; padding: 8px 10px; background: #fdf3d3; border-left: 4px solid var(--sun); }
.msg:empty { display: none; }
.verdict { display: inline-block; font: 800 .8rem/1 var(--head); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border: 2px solid var(--ink); margin-top: 8px; }
.verdict.profit { background: var(--sun); }
.verdict.loss { background: var(--loss); color: #fff; border-color: var(--loss); }

.cmp { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 8px 4px; text-align: right; border-bottom: 1px dashed var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; padding-left: 0; }
.cmp thead th { font: 700 .66rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.cmp td.k { font-weight: 800; }
.cmp tr.neg td.k { color: var(--loss); }
.cmp-wrap { overflow-x: auto; }

/* Explainer + prose */
.explain { padding: 52px 0; }
.explain .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.explain p, .explain li { font-size: .95rem; color: #2b2e42; }
.formula { background: var(--white); border: 2px solid var(--ink); padding: 10px 12px; font: 600 .9rem/1.55 var(--body); font-variant-numeric: tabular-nums; margin: 0 0 14px; }
.ref { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); font-size: .92rem; }
.ref th, .ref td { text-align: left; padding: 9px 12px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.ref thead th { background: var(--ink); color: #fff; font: 700 .7rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; }
.ref td:nth-child(2) { white-space: nowrap; font-weight: 700; }
.checked { display: inline-block; background: var(--sun); border: 2px solid var(--ink); font: 700 .78rem/1 var(--head); font-stretch: 112%; padding: 6px 9px; margin-bottom: 14px; }
.prose { max-width: 44em; padding: 8px 0 60px; }
.prose h2 { margin-top: 1.3em; font-size: 1.6rem; }

/* Footer */
.site-foot { background: var(--ink); color: #cfd2e2; padding: 40px 0 46px; font-size: .9rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
.site-foot a { color: #fff; }
.site-foot strong { display: block; font: 900 1.1rem/1 var(--head); font-stretch: 125%; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px dashed #4a4e68; padding-top: 16px; margin: 0; font-size: .8rem; color: #9fa3ba; }

/* Mobile summary bar */
.peek { display: none; }
@media (max-width: 900px) {
  .hero .wrap, .two, .tool { grid-template-columns: 1fr; gap: 36px; }
  .tools { grid-template-columns: 1fr 1fr; border-left: 0; }
  .tools a { border-right: 0; padding: 0 0 24px; }
  .tools .no { margin: 0 0 10px; padding-left: 0; }
  .tools a:nth-child(odd) { padding-right: 18px; }
  .result { position: static; }
  .explain .cols, .site-foot .wrap { grid-template-columns: 1fr; gap: 22px; }
  .sticker { right: 8px; top: -34px; width: 96px; height: 96px; }
  .sticker b { font-size: 1.3rem; }
  .peek { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 18px calc(11px + env(safe-area-inset-bottom)); border-top: 4px solid var(--sun); }
  .peek.off { display: none; }
  .peek-l { font: 700 .66rem/1.2 var(--head); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: #b9bdd3; max-width: 76px; }
  .peek-v { font: 900 1.15rem/1 var(--head); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .peek-go { font-weight: 700; font-size: 1.1rem; color: var(--sun); white-space: nowrap; }
  body.has-peek .site-foot { padding-bottom: 90px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; padding-bottom: 6px; }
  .nav { margin-left: -10px; gap: 0; }
  .nav a { padding: 8px 9px; font-size: .86rem; }
  .hero { padding: 36px 0 56px; }
  .block, .shelf { padding: 44px 0; }
  .tools { grid-template-columns: 1fr; }
  .tools a:nth-child(odd) { padding-right: 0; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid2 > .field > label, .grid3 > .field > label { min-height: 2.6em; display: flex; align-items: flex-end; }
  .grid2 > .field > label.check { min-height: 0; }
  .cmp { font-size: .8rem; }
  .cmp th, .cmp td { padding: 7px 2px; }
  .ref td:nth-child(2) { white-space: normal; }
}
@media print { .site-head, .site-foot, .shelf, .actions, .peek { display: none; } }
