/* sellingfeescalculator.com — clean utility style (calculator first) */
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #15171a;
  --muted: #5b6168;
  --line: #e2e7f0;
  --line-strong: #c8d1e0;
  --brand: #16294f;        /* deep navy */
  --brand-ink: #0d1b38;
  --brand-tint: #eef2fa;
  --hl: #f5a524;           /* amber highlight, used sparingly */
  --neg: #b4321f;
  --radius: 10px;
  --max: 1120px;
  --read: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 750; margin: 48px 0 14px; }
h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
p { margin: 0; }
p + p, p + ul, ul + p, p + ol, ol + p, table + p, p + table { margin-top: 16px; }
ul, ol { padding-left: 22px; margin: 12px 0 0; }
li + li { margin-top: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }
.num, .money, td.n, th.n { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 9; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.logo svg { flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }

/* hero */
.hero { padding: 36px 0 8px; }
.hero .lede { color: var(--muted); font-size: 18px; margin-top: 10px; max-width: 760px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.stamp i { width: 8px; height: 8px; border-radius: 50%; background: var(--hl); display: inline-block; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin: 24px 0 8px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.panel h2.ph { font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.mode { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.mode button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: #fff; color: var(--muted); padding: 8px 14px; cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.inp { position: relative; }
.inp span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.inp span.r { left: auto; right: 12px; }
input[type=number], select { width: 100%; font: inherit; font-size: 16px; /* >=16px stops iOS zoom */ color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.inp input { padding-left: 26px; }
.inp.pct input { padding-left: 12px; padding-right: 30px; }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.big input { font-size: 22px; font-weight: 700; padding-top: 12px; padding-bottom: 12px; }
details.more { grid-column: 1 / -1; border-top: 1px dashed var(--line-strong); margin-top: 4px; padding-top: 10px; }
details.more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand); }
details.more .grid2 { margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check b { font-weight: 600; }

/* receipt */
.receipt { background: var(--bg-soft); border-color: var(--line); }
.big-out { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.big-out .k { font-size: 14px; color: var(--muted); font-weight: 600; }
.big-out .v { color: var(--brand); font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big-out .v.neg { color: var(--neg); }
.rows { list-style: none; padding: 0; margin: 12px 0 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed var(--line-strong); margin: 0; }
.rows li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows li.fee span:last-child { color: var(--neg); }
.rows li.tot { font-weight: 700; border-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.kpis b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.kpis small { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 12px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

/* compare */
.compare { margin-top: 16px; }
.compare table { margin-top: 0; }
.best { display: inline-block; font-size: 11px; font-weight: 700; color: #7a4d00; background: #fdf0d5; border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }

/* content */
.content { padding-bottom: 40px; }
.content .read > p:first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-soft); }
td.n, th.n { text-align: right; white-space: nowrap; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin-top: 8px; color: #2b2f33; }
.src { font-size: 14px; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 28px 0 40px; font-size: 14px; color: var(--muted); margin-top: 40px; }
.foot .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 6px 0 0; }
.foot li { margin: 4px 0; }
.foot b { color: var(--ink); }

@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid2 { gap: 10px; }
  .top .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .panel { padding: 16px; }
  .kpis b { font-size: 16px; }
  th, td { padding: 8px 6px; font-size: 14px; }
}
