/* Sellculate design system — shared across all tool pages. */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --brand: #0e9f6e;      /* profit green */
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --accent: #2563eb;
  --warn: #b45309;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; margin-right: 9px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 900; }
.brand .tld { color: var(--brand); }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; margin-left: 22px; }
@media (max-width: 560px) {
  .site-header .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-top: 1px; }
  .nav a { margin-left: 0; margin-right: 18px; font-size: 14px; }
  .nav a:last-child { margin-right: 0; }
}

/* Hero */
.hero { padding: 44px 0 8px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 10px; }
.hero p.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 6px; max-width: 680px; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* Layout */
.calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: start; margin: 24px 0 8px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 700; display:flex; align-items:center; justify-content:space-between; }
.card .card-body { padding: 20px; }

/* Form */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.input-money, .input-pct, select, input[type="number"] {
  width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.money-wrap { position: relative; }
.money-wrap::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.money-wrap input { padding-left: 24px; }
.pct-wrap { position: relative; }
.pct-wrap::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .row2 { grid-template-columns: 1fr; } }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.preset { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background:#fff; color: var(--ink-soft); cursor: pointer; }
.preset.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.checkbox input { width: auto; }
details.advanced { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 12px; }
details.advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }

/* Results */
.result-hero { text-align: center; padding: 8px 0 14px; }
.result-hero .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.result-hero .profit { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0; }
.profit.pos { color: var(--brand-dark); }
.profit.neg { color: var(--danger); }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.pill { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 96px; }
.pill .v { font-weight: 800; font-size: 18px; }
.pill .k { font-size: 12px; color: var(--muted); }
.breakdown { margin-top: 16px; border-top: 1px solid var(--line); }
.breakdown .li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.breakdown .li .lbl { color: var(--ink-soft); }
.breakdown .li.neg .amt { color: var(--danger); }
.breakdown .li.total { font-weight: 800; border-bottom: none; padding-top: 12px; }
.breakdown .li .amt { font-variant-numeric: tabular-nums; }

/* Notes / content */
.note { font-size: 13px; color: var(--muted); margin-top: 14px; padding: 12px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; }
.section { background: var(--surface); border-top: 1px solid var(--line); margin-top: 36px; padding: 36px 0; }
.section h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 12px; }
.section h3 { font-size: 18px; margin: 22px 0 6px; }
.section p, .section li { color: var(--ink-soft); }
.fee-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.fee-table th, .fee-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fee-table th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, #ecfdf5, #eff6ff); border: 1px solid var(--brand-soft); border-radius: var(--radius); padding: 26px; margin: 36px 0; text-align: center; }
.newsletter h2 { margin: 0 0 6px; font-size: 22px; }
.newsletter p { color: var(--ink-soft); margin: 0 0 16px; }
.nl-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.nl-form input { flex: 1; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.nl-msg { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand-dark); min-height: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.disclosure { max-width: 620px; }
