/* Plus Jakarta Sans (headings) and Inter (text), served from this site. SIL Open Font License: fonts/OFL-*.txt */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --ink: #0e1726;
  --muted: #4b5768;
  --line: #dde3ec;
  --accent: #1d4ed8;
  --accent-dark: #173fae;
  --accent-soft: #e9efff;
  --ok: #067647;
  --warn: #8f4f06;
  --warn-bg: #fff6e5;
  --radius: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --head: "Plus Jakarta Sans", var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; min-height: 60px; }
.brand { font: 800 1.2rem/1 var(--head); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand small { font: 500 0.78rem/1 var(--sans); color: var(--muted); margin-left: 8px; letter-spacing: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #9aa6bd; cursor: not-allowed; }
.btn.big { min-height: 54px; padding: 0 30px; font-size: 1.1rem; }
.btn.secondary { background: var(--accent-soft); color: var(--accent-dark); }
.btn.secondary:hover { background: #dbe6ff; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* first screen */
.hero { padding: 48px 0 40px; }
.hero.is-over { background: var(--accent-soft); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy > * + * { margin-top: 18px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 30em; }
.cta { margin-top: 28px !important; }
.privacy { font-size: 0.95rem; color: var(--muted); }
.feats { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: 4px; color: var(--muted); }
.feats li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.sample { font-size: 0.95rem; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(14, 23, 38, 0.08); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; }
.error { color: #b42318; background: #fef1f0; padding: 10px 14px; border-radius: 8px; }
/* wide screens: the gap between the hero picture and the pricing heading is 64 px (it was 104 px); phones keep their own spacing below */
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .hero { padding: 64px 0 28px; } #pricing:not(.is-sheet) { padding-top: 36px; } }

/* work area */
#work { padding: 28px 0 40px; background: var(--surface); }
.stepper { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.95rem; color: var(--muted); }
.stepper .is-current { color: var(--ink); font-weight: 700; }
.stepper .is-done button { color: var(--ok); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel > * + * { margin-top: 14px; }
.sub, .hint { color: var(--muted); font-size: 0.95rem; }
.h3 { margin-top: 28px !important; }
.row-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px !important; }
.row-actions.tight { margin-top: 10px !important; }
.notes p { padding: 8px 12px; border-radius: 8px; background: var(--surface); font-size: 0.95rem; }
.notes p + p { margin-top: 6px; }
.notes .warn { background: var(--warn-bg); color: var(--warn); }
.cols { display: grid; gap: 10px; }
.cols-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; align-items: center; font-weight: 600; }
select, input[type="text"], input[type="number"], input[type="date"] { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #c4cdda; border-radius: 8px; background: #fff; color: var(--ink); font: 400 0.95rem/1.2 var(--sans); }
/* Hint colour for empty fields: #667085 on white is 4.97:1 (AA needs 4.5). The date field is empty-pale like the text placeholders and dark once a date is chosen. */
input::placeholder { color: #667085; opacity: 1; }
input[type="date"] { -webkit-appearance: none; appearance: none; height: 42px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
input[type="date"].is-empty::-webkit-datetime-edit { color: #667085; }

.rules { display: grid; gap: 8px; }
.rule { display: grid; grid-template-columns: 1.6fr 0.9fr 0.6fr 1.1fr 42px; gap: 8px; align-items: end; }
.rule-head { align-items: center; }
.rule-head span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.rule .x { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.fld { display: grid; gap: 4px; min-width: 0; }
.cap { display: none; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.f-scope .cap { display: block; }
.adv-body { display: grid; gap: 18px; margin-top: 12px; }
.adv-rules { display: grid; gap: 10px; }
.rule-adv { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 8px; align-items: end; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.adv-who { align-self: center; overflow-wrap: anywhere; }
.cust-block > * + * { margin-top: 10px; }
.cust-block .h3 { margin-top: 0 !important; }
.panel > .cust-block { margin-top: 24px; }
.cust { display: grid; gap: 8px; }
.cust-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: center; }
.cust-row span { font-weight: 600; overflow-wrap: anywhere; }
.fold { border-top: 1px solid var(--line); padding-top: 10px; }
.fold summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.fold-body { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.fold-body .hint { flex-basis: 100%; }

.total { font-size: 1.05rem; }
/* amount and "invoices · hours" sit on one line when they fit and wrap as two blocks on a 320 px phone (no sideways scroll) */
.total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35em; }
.tmeta { white-space: normal; min-width: 0; }
.total b { font-family: var(--head); font-size: 1.5rem; letter-spacing: -0.02em; white-space: nowrap; }
.invs { display: grid; gap: 10px; }
.inv { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.inv summary { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.inv summary::-webkit-details-marker { display: none; }
.inv-name { font-weight: 700; overflow-wrap: anywhere; }
.inv-meta { color: var(--muted); font-size: 0.9rem; }
.inv-sum { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.lines { border-top: 1px solid var(--line); padding: 6px 14px 10px; font-size: 0.92rem; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 11em 7em; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.l-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.l-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.btn.outline { background: #fff; color: var(--accent-dark); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.outline:hover { background: var(--accent-soft); }
/* the free-preview band is amber so it does not read as one of the blue outline download buttons; the Upgrade button inside it is solid navy (white on #0f2557 is 14.8:1) */
.upgrade-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 10px 10px 10px 16px; border-radius: 10px; border: 1px solid #e6c15a; background: #fff1c9; color: #3d2a00; font-weight: 700; }
.upgrade-bar .btn { background: #0f2557; color: #fff; min-height: 44px; padding: 10px 18px; line-height: 1.25; text-align: center; }
.upgrade-bar .btn:hover { background: #0a1a40; }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.opt { display: grid; gap: 4px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.opt-check { grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.opt-check input { width: 18px; height: 18px; }

/* pricing */
#pricing { padding: 48px 0; }
#pricing h2 { margin-bottom: 14px; }
.offer { background: var(--accent-soft); color: var(--accent-dark); padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); margin-bottom: 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.plan .price { font: 800 2rem/1 var(--head); letter-spacing: -0.02em; }
.plan .price small { font: 500 0.9rem var(--sans); color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); }
.license-row { margin-top: 18px; display: grid; gap: 10px; }
#key-value { font: 600 1.05rem ui-monospace, Consolas, monospace; margin: 6px 0; }
#key-box { background: var(--surface); padding: 12px 14px; border-radius: 8px; }
#activate-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
#activate-form input { max-width: 340px; }
.ok { color: var(--ok); font-weight: 600; }

/* legal pages */
.prose { padding: 40px 24px 56px; }
.prose h1 { font-size: 2rem; margin-bottom: 12px; }
.prose h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 0.88rem; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer.site p + p { margin-top: 8px; }
/* merchant and trademark notes: small and quiet; #5f6b7d on white is 5.4:1 (WCAG AA needs 4.5:1) */
footer.site .fine { font-size: 0.76rem; line-height: 1.5; color: #5f6b7d; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 28px; }
  .panel { padding: 16px; }
  .cols-row, .cust-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rule-head { display: none; }
  .rule { grid-template-columns: minmax(0, 1fr) 5.4em; grid-template-areas: "p x" "r c" "s s"; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
  .cap { display: block; }
  .f-person { grid-area: p; }
  .f-rate { grid-area: r; }
  .f-cur { grid-area: c; }
  .f-from { grid-area: s; }
  .rule .x { grid-area: x; justify-self: end; }
  .rule-adv { grid-template-columns: minmax(0, 1fr); }
  .upgrade-bar { padding: 12px; }
  .upgrade-bar .btn { width: 100%; }
  .inv summary { grid-template-columns: minmax(0, 1fr) auto; }
  .inv-meta { grid-column: 1 / -1; order: 3; }
  .line { grid-template-columns: minmax(0, 1fr) auto; }
  .l-qty { grid-column: 1; order: 3; }
  .l-amt { grid-row: 1; grid-column: 2; }
  .btn.big { width: 100%; }
  .downloads .btn { width: 100%; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}

/* the Upgrade panel: the pricing section lifted over the page. It stays below the payment window (which sits above everything). */
.sheet-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.sheet-close:hover { background: var(--surface); color: var(--ink); }
#pricing.is-sheet { position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: 6vh 16px; background: rgba(14, 23, 38, 0.62); }
#pricing.is-sheet .wrap { position: relative; max-width: 680px; padding: 28px 24px 24px; background: var(--bg); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(14, 23, 38, 0.3); }
#pricing.is-sheet h2 { padding-right: 44px; }
body.sheet-open { overflow: hidden; }
@media (max-width: 720px) { #pricing.is-sheet { padding: 12px 8px; } #pricing.is-sheet .wrap { padding: 24px 16px 16px; } }
