/* ---------- fonts (self-hosted — this site makes no third-party requests) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}

/* ---------- base ---------- */
:root {
  --bg: #0a1b1e;
  --bg-deep: #071316;
  --bg-soft: #102a2d;
  --line-soft: rgba(151, 185, 174, .16);
  --text: #eaf2ed;
  --muted: #97b0a7;
  --faint: #63807a;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --glint: #3ed3bd;
  --gold: #e9c46a;
  --paper: #ffffff;
  --danger: #dc2626;
  --radius: 10px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
h1, h2, h3 { line-height: 1.2; }
a { color: inherit; }
::selection { background: rgba(13, 148, 136, .4); }
:focus-visible { outline: 2px solid var(--glint); outline-offset: 2px; }

/* ---------- chrome ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 27, 30, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { text-decoration: none; font-size: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; }
.brand .mark { flex: none; }
.brand strong { font-family: var(--display); font-weight: 620; font-size: 1.25rem; letter-spacing: .005em; }
.topnav { display: flex; align-items: center; gap: 1.1rem; }
.topnav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.topnav a:hover { color: var(--text); }

.hero {
  padding: 4.5rem 1.25rem 3.5rem;
  background: radial-gradient(44% 52% at 72% 42%, rgba(13, 148, 136, .17), transparent 72%);
  overflow: hidden;
}
.hero-grid {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero h1 {
  font-family: var(--display); font-weight: 560; letter-spacing: -.01em;
  font-size: clamp(2.3rem, 5.4vw, 3.6rem); margin: 0 0 1rem;
}
.hero h1 em { font-style: italic; font-weight: 470; color: var(--glint); }
.hero-sub { color: var(--muted); font-size: 1.13rem; max-width: 30em; margin: 0 0 1.8rem; }
.hero-sub strong { color: var(--text); }
.cta-stack { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-stack .btn-primary { padding: .75rem 1.6rem; font-size: 1.02rem; }
.cta-micro { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--faint); }
.hero-side { position: relative; display: flex; justify-content: center; }
.ripples, .ripples::before, .ripples::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(62, 211, 189, .13);
}
.ripples { width: 290px; height: 290px; }
.ripples::before { width: 420px; height: 420px; }
.ripples::after { width: 560px; height: 560px; border-color: rgba(62, 211, 189, .06); }
.hero-side .receipt { margin: 0; position: relative; }
@media (max-width: 860px) {
  .hero { padding-top: 3.2rem; background: radial-gradient(70% 40% at 50% 8%, rgba(13, 148, 136, .15), transparent 72%); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .cta-stack { justify-content: center; }
}

/* the receipt — proof of the deal, printed like one */
.receipt {
  width: min(330px, 100%); margin: 0 auto 2.2rem;
  background: #fbf8ef; color: #40483f;
  font-family: var(--mono); font-size: .78rem; line-height: 1.45;
  text-align: left; padding: 1rem 1.1rem 1.2rem;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  transform: rotate(-1.4deg);
  position: relative;
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background:
    linear-gradient(-45deg, #fbf8ef 5.66px, transparent 0),
    linear-gradient(45deg, #fbf8ef 5.66px, transparent 0);
  background-size: 16px 16px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18));
}
.receipt-head {
  text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem;
  color: #6d7568; border-bottom: 1px dashed #c9c3b0; padding-bottom: .55rem; margin-bottom: .6rem;
}
.receipt-row { display: flex; align-items: baseline; gap: .45em; }
.receipt-row i { flex: 1; border-bottom: 1px dotted #b5ae99; transform: translateY(-.28em); }
.receipt-total {
  border-top: 1px dashed #c9c3b0; margin-top: .55rem; padding-top: .5rem;
  font-weight: 700; font-size: .9rem; color: #2e352d;
}
.receipt-foot { text-align: center; color: #8a917f; font-size: .68rem; margin-top: .7rem; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; cursor: pointer; text-decoration: none; display: inline-block;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: .6rem 1.2rem; font-size: .95rem; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary {
  background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 4px 16px rgba(13, 148, 136, .35);
}
.btn-primary:hover { background: var(--accent-dark); }
.topbar .btn-primary { box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(151, 185, 174, .35); }
.btn-ghost:hover { border-color: var(--muted); color: #fff; }
.btn-danger { color: #fca5a5; }
.btn-danger:hover { border-color: #fca5a5; color: #fecaca; }
.btn-pro {
  background: rgba(233, 196, 106, .1); color: var(--gold);
  border-color: rgba(233, 196, 106, .45);
  font-weight: 600; border-radius: 999px; padding: .45rem 1.1rem;
}
.btn-pro:hover { background: rgba(233, 196, 106, .2); border-color: var(--gold); }
.btn-block { display: block; width: 100%; }

/* ---------- workspace layout ---------- */
.workspace {
  max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem 4rem;
  display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 860px) { .workspace { grid-template-columns: 1fr; } }

.controls {
  position: sticky; top: 4.2rem;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .9rem;
}
@media (max-width: 860px) { .controls { position: static; } }
.control-group label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.control-group input, .control-group select {
  width: 100%; font: inherit; padding: .45rem .6rem;
  background: var(--bg-deep); color: var(--text);
  border: 1px solid rgba(151, 185, 174, .3); border-radius: 8px;
}
.control-actions { display: grid; gap: .55rem; margin-top: .3rem; }
.save-note { font-size: .78rem; color: var(--faint); text-align: center; margin: 0; }
.pdf-hint { font-size: .74rem; color: var(--faint); text-align: center; margin: -.2rem 0 0; }
.pro-tag { font-size: .68rem; color: var(--gold); }
.accent-group input[type=color] {
  padding: .15rem; height: 2.2rem; cursor: pointer;
}
.accent-group.locked input[type=color] { opacity: .55; }

.inv-section { border-top: 1px solid var(--line-soft); padding-top: .8rem; }
.inv-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
.inv-empty { font-size: .78rem; color: var(--faint); margin: 0; }
.inv-item { display: flex; align-items: stretch; gap: .3rem; margin-bottom: .35rem; }
.inv-item.current .inv-open { border-color: var(--accent); }
.inv-open {
  flex: 1; min-width: 0; font: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: baseline;
  background: var(--bg-deep); color: var(--text);
  border: 1px solid rgba(151, 185, 174, .25); border-radius: 8px; padding: .4rem .55rem;
  font-size: .78rem;
}
.inv-open:hover { border-color: var(--muted); }
.inv-num { font-weight: 600; white-space: nowrap; }
.inv-client { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-del {
  font: inherit; font-size: .8rem; cursor: pointer; border: 0; border-radius: 8px;
  background: none; color: var(--faint); padding: 0 .4rem;
}
.inv-del:hover { color: #fca5a5; background: rgba(220, 38, 38, .12); }
.backup-row {
  display: flex; gap: .45rem; justify-content: center; align-items: baseline;
  margin-top: .7rem; font-size: .76rem; color: var(--faint);
}
.linklike {
  font: inherit; font-size: .76rem; background: none; border: 0; padding: 0;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.linklike:hover { color: var(--text); }

/* ---------- the invoice sheet ---------- */
.sheet-wrap { min-width: 0; overflow-x: auto; }
@media (max-width: 640px) { .sheet { min-width: 560px; } }
.sheet {
  --sheet-accent: #0d9488;
  background: var(--paper); color: var(--ink);
  border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.45);
  padding: clamp(1.2rem, 4vw, 3rem);
  max-width: 800px; margin: 0 auto;
}
.sheet input, .sheet textarea {
  font: inherit; color: inherit; background: transparent;
  border: 1px dashed transparent; border-radius: 4px; padding: .15rem .3rem;
  width: 100%; resize: vertical; overflow: hidden;
}
.sheet input:hover, .sheet textarea:hover { border-color: var(--line); }
.sheet input:focus, .sheet textarea:focus { outline: none; border-color: var(--sheet-accent); background: #f8fafc; }
.sheet ::placeholder { color: #94a3b8; }

.sheet-head { display: flex; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.logo-slot { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
#logo-img { max-width: 190px; max-height: 90px; object-fit: contain; }
.logo-upload, .logo-remove {
  font: inherit; font-size: .82rem; cursor: pointer;
  color: var(--ink-soft); background: #f8fafc;
  border: 1px dashed #cbd5e1; border-radius: 8px; padding: .8rem 1.2rem;
}
.logo-remove { padding: .25rem .7rem; border-style: solid; }
.logo-upload:hover, .logo-remove:hover { border-color: var(--accent); color: var(--accent-dark); }

.doc-meta { text-align: right; min-width: 240px; }
.doc-title { font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; color: var(--ink); margin-bottom: .6rem; }
.meta-row { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.meta-row label { font-size: .8rem; color: var(--ink-soft); width: 2.6rem; text-align: right; }
.meta-row input { width: 150px; text-align: right; font-size: .92rem; }

.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 560px) { .parties { grid-template-columns: 1fr; } }
.party-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sheet-accent); margin-bottom: .35rem;
}
.doc-title { color: var(--sheet-accent); }

/* items table */
.items { width: 100%; border-collapse: collapse; margin-bottom: .4rem; }
.items th {
  text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding: .4rem .3rem;
}
.items td { border-bottom: 1px solid var(--line); padding: .25rem .15rem; vertical-align: middle; }
.items td textarea { resize: none; display: block; }
.col-qty { width: 4.5rem; } .col-rate { width: 7rem; } .col-amount { width: 8rem; } .col-x { width: 2rem; }
.items td.col-amount, .items th.col-amount { text-align: right; }
.items td.col-amount { font-variant-numeric: tabular-nums; padding-right: .4rem; }
.items input[type="number"] { text-align: right; }
.row-remove {
  font: inherit; cursor: pointer; border: 0; background: none;
  color: #cbd5e1; font-size: 1rem; padding: .2rem .4rem; border-radius: 6px;
}
.row-remove:hover { color: var(--danger); background: #fef2f2; }
.add-item { margin: .3rem 0 1.6rem; color: var(--accent-dark); border-color: #99f6e4; font-size: .88rem; padding: .4rem .9rem; }
.add-item:hover { border-color: var(--accent); color: var(--accent-dark); }

/* totals */
.totals { max-width: 320px; margin-left: auto; margin-bottom: 2rem; font-variant-numeric: tabular-nums; }
.totals-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .3rem .2rem; font-size: .95rem; color: var(--ink-soft);
}
.totals-grand {
  border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .5rem;
  color: var(--ink); font-weight: 700; font-size: 1.1rem;
}
.totals-due { color: var(--ink); font-weight: 700; background: #f0fdfa; border-radius: 6px; padding: .45rem .5rem; }
.paid-input input { width: 7rem; text-align: right; border-color: var(--line); border-style: solid; }

.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 560px) { .notes-grid { grid-template-columns: 1fr; } }
.notes-grid textarea { font-size: .9rem; color: var(--ink-soft); }

.sheet-footer {
  margin-top: 2.2rem; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .72rem; color: #94a3b8; text-align: center;
}
body.pro .sheet-footer { display: none; }

/* ---------- sheet themes ---------- */
/* Minimal — airy, thin rules, quiet color (free) */
.sheet.theme-minimal .doc-title { font-weight: 300; letter-spacing: .3em; color: var(--ink); }
.sheet.theme-minimal .party-label { color: var(--ink-soft); font-weight: 600; letter-spacing: .14em; }
.sheet.theme-minimal .items th { border-bottom: 1px solid var(--line); font-weight: 600; }
.sheet.theme-minimal .totals-grand { border-top: 1px solid var(--ink); }
.sheet.theme-minimal .totals-due { background: transparent; border: 1px solid var(--line); }

/* Serif — traditional, letterhead feel (Pro) */
.sheet.theme-serif { font-family: Georgia, "Times New Roman", Times, serif; }
.sheet.theme-serif .doc-title { font-weight: 400; letter-spacing: .18em; }
.sheet.theme-serif .party-label { letter-spacing: .12em; }
.sheet.theme-serif .items th { font-weight: 700; letter-spacing: .1em; }

/* Bold — accent band + filled table header (Pro) */
.sheet.theme-bold { border-top: 14px solid var(--sheet-accent); }
.sheet.theme-bold .doc-title {
  background: var(--sheet-accent); color: #fff;
  display: inline-block; padding: .15rem .8rem; border-radius: 4px;
}
.sheet.theme-bold .items th {
  background: var(--sheet-accent); color: #fff;
  border-bottom: 0; padding: .45rem .5rem;
}
.sheet.theme-bold .totals-grand { border-top: 2px solid var(--sheet-accent); }

/* ---------- marketing sections ---------- */
h2 { font-family: var(--display); font-weight: 550; letter-spacing: -.005em; }
.eyebrow {
  display: block; text-align: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; color: var(--glint);
  margin-bottom: .5rem;
}

.how { max-width: 960px; margin: 0 auto; padding: 3.5rem 1.25rem .5rem; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  list-style: none; padding: 0; margin: 1.4rem 0 0;
}
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 1.4rem; } }
.step-n { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; color: var(--glint); }
.steps h3 { font-family: var(--display); font-weight: 550; font-size: 1.18rem; margin: .45rem 0 .3rem; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

.privacy {
  max-width: 820px; margin: 3.2rem auto 0; padding: 2.8rem 1.25rem; text-align: center;
  border-top: 1px dashed rgba(151, 185, 174, .28); border-bottom: 1px dashed rgba(151, 185, 174, .28);
}
.privacy-big {
  font-family: var(--display); font-weight: 540; letter-spacing: -.005em;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 0 .8rem;
}
.privacy-big em { font-style: italic; color: var(--glint); }
.privacy-sub { color: var(--muted); max-width: 40em; margin: 0 auto; }

/* ---------- faq / footer ---------- */
.faq { max-width: 720px; margin: 0 auto; padding: 3rem 1.25rem; }
.faq h2 { text-align: center; margin-bottom: 1.5rem; font-size: 1.8rem; }
.faq details {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: .7rem;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .1rem; top: 50%;
  transform: translateY(-50%); color: var(--faint); font-size: 1.15rem;
  transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--glint); }
.faq p { color: var(--muted); margin-bottom: .2rem; }
.faq p strong { color: var(--text); }
.site-footer {
  text-align: center; color: var(--faint); padding: 3rem 1rem 3.2rem; font-size: .9rem;
  border-top: 1px dashed rgba(151, 185, 174, .28); margin-top: 3rem;
}
.site-footer p { margin: 0 0 .5rem; }
.foot-brand {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .7rem;
  font-family: var(--display); font-weight: 620; font-size: 1.05rem; color: var(--text);
}
.foot-fine { font-family: var(--mono); font-size: .72rem; color: var(--faint); letter-spacing: .04em; }

/* ---------- template strip (home) & template pages ---------- */
.tpl-strip { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.25rem 0; }
.tpl-strip h2 { text-align: center; margin-bottom: .4rem; font-size: 1.8rem; }
.tpl-sub { text-align: center; color: var(--muted); max-width: 38em; margin: 0 auto 1.4rem; }
.tpl-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .8rem; padding: 0; margin: 0 0 1rem; list-style: none;
}
.tpl-grid-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 1.5rem 0 2rem; }
.tpl-card {
  display: block; height: 100%; text-decoration: none; position: relative;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: .85rem 2.1rem .85rem 1rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tpl-card::after {
  content: "→"; position: absolute; right: .85rem; top: 50%;
  transform: translateY(-50%); color: var(--faint);
  transition: color .15s, transform .15s;
}
.tpl-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.tpl-card:hover::after { color: var(--glint); transform: translateY(-50%) translateX(3px); }
.tpl-card strong { display: block; margin-bottom: .15rem; }
.tpl-card span { color: var(--muted); font-size: .84rem; }
.tpl-all { text-align: center; margin: 0; }
.tpl-all a { color: var(--glint); }

.page { max-width: 760px; margin: 0 auto; padding: 1.2rem 1.25rem 3rem; }
.page h1 { font-family: var(--display); font-weight: 560; letter-spacing: -.01em; font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 1.2rem 0 .7rem; }
.page h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.page p, .page li { color: var(--text); }
.page .lede { color: var(--muted); font-size: 1.1rem; }
.page a { color: var(--glint); }
.page a.btn-primary { color: #fff; }
.crumbs { font-size: .82rem; color: var(--faint); margin-top: .8rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.cta-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 1.4rem 0 1.8rem; }
.cta-note { color: var(--muted); font-size: .85rem; max-width: 26em; }
.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: .55rem; }
.page .muted, .sample-table .muted { color: var(--muted); }
.page .small { font-size: .84rem; }
.sample-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
}
.sample-table th, .sample-table td {
  text-align: left; padding: .5rem .7rem;
  border-bottom: 1px solid var(--line-soft);
}
.sample-table th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sample-table .num { text-align: right; white-space: nowrap; }
.sample-table tr:last-child td { border-bottom: 0; }
.page details {
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: .7rem;
}
.page summary { cursor: pointer; font-weight: 600; color: var(--text); }
.page details p { color: var(--muted); margin-bottom: .2rem; }
.backlink { margin-top: 2.5rem; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 12, 14, .72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal {
  position: relative; background: var(--bg-soft); color: var(--text);
  border: 1px solid rgba(151, 185, 174, .25); border-radius: 14px;
  max-width: 420px; width: 100%; padding: 1.8rem;
}
.modal h3 { margin-top: 0; font-family: var(--display); font-weight: 560; font-size: 1.45rem; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem;
  font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem;
}
.modal-close:hover { color: #fff; }
.pro-price { color: var(--muted); }
.pro-price strong { color: var(--gold); font-size: 1.3rem; }
.pro-list { list-style: none; padding-left: 0; color: var(--text); margin-bottom: 1.3rem; }
.pro-list li { margin-bottom: .45rem; padding-left: 1.5rem; position: relative; }
.pro-list li::before { content: "✓"; position: absolute; left: 0; color: var(--glint); font-weight: 700; }
.unlock-row { display: flex; gap: .5rem; margin-top: 1.1rem; }
.unlock-row input {
  flex: 1; font: inherit; padding: .5rem .7rem;
  background: var(--bg-deep); color: var(--text);
  border: 1px solid rgba(151, 185, 174, .3); border-radius: 8px;
}
.pro-hint { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.pro-hint.ok { color: #4ade80; }
.pro-hint.err { color: #fca5a5; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .workspace { display: block; padding: 0; max-width: none; }
  .sheet { box-shadow: none; border-radius: 0; padding: 0; max-width: none; margin: 0; }
  .sheet input, .sheet textarea { border-color: transparent !important; background: transparent !important; }
  .sheet textarea { resize: none; overflow: hidden; }
  .totals-due { background: #f0fdfa; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .items thead { display: table-header-group; }
  .items tr, .totals, .notes-grid, .sheet-footer { break-inside: avoid; }
  .party-label, .doc-title { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet.theme-bold { border-top: 14px solid var(--sheet-accent); }
  .theme-bold .doc-title, .theme-bold .items th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .theme-minimal .totals-due { background: transparent; }
  input::placeholder, textarea::placeholder { color: transparent !important; }
  .sheet input[type=date]::-webkit-calendar-picker-indicator { display: none; }
}
