/* ==========================================================================
   Ledgerly — design system
   Palette and structure derive from the Indian GST tax invoice: indigo ledger
   ink on cool paper, white document surfaces, seal gold used exactly once,
   and functional status colours that encode invoice state.
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ground:     #EDEFF3;
  --ground-2:   #E3E7EE;
  --paper:      #FFFFFF;
  --ink:        #12141C;
  --ink-2:      #4C5262;
  --ink-3:      #838A9B;
  --line:       #D7DBE4;
  --line-soft:  #E7EAF0;

  --indigo:     #26317C;
  --indigo-hi:  #3A49B4;
  --indigo-ink: #1A2158;
  --indigo-wash:#EEF0FA;

  --gold:       #C9962A;
  --paid:       #0F7A57;
  --paid-wash:  #E4F3EE;
  --due:        #B4451F;
  --due-wash:   #FBEDE7;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body:    "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-doc: 4px;
  --r-ui:  7px;

  --shadow-doc: 0 1px 2px rgba(18, 20, 28, .05), 0 12px 32px -12px rgba(18, 20, 28, .16);
  --shadow-lift: 0 2px 4px rgba(18, 20, 28, .05), 0 24px 56px -20px rgba(18, 20, 28, .26);

  --gut: clamp(20px, 5vw, 56px);
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--ground);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  font-variation-settings: "wdth" 100, "opsz" 48;
}

.h-xl { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.h-sm { font-size: 1.16rem; letter-spacing: -.015em; line-height: 1.25; }

.lede { font-size: clamp(1.05rem, 1.9vw, 1.28rem); line-height: 1.55; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--indigo); color: #fff; }

:focus-visible {
  outline: 2px solid var(--indigo-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: var(--gut); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-ui);
  font-size: .9rem; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 880px; }

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--dark { background: var(--indigo-ink); color: #B9C0E4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--paper { background: var(--paper); }

.rule { height: 1px; background: var(--line); border: 0; }

/* Anchor targets must clear the sticky nav when jumped to. */
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* invoice-style meta row — carries real metadata, not decoration */
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 20px;
}
.meta::before {
  content: ""; width: 22px; height: 1px; background: var(--indigo); opacity: .6;
}
.meta b { color: var(--indigo); font-weight: 600; }
.section--dark .meta { color: #8F9AD0; }
.section--dark .meta b { color: var(--gold); }
.section--dark .meta::before { background: var(--gold); opacity: .8; }

.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { margin-top: 18px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .meta { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--indigo);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--body); font-size: .97rem; font-weight: 600; letter-spacing: -.005em;
  padding: 14px 24px; border-radius: var(--r-ui); border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(38, 49, 124, .65); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; background: rgba(18,20,28,.03); }

.btn--onDark { --btn-bg: #fff; --btn-fg: var(--indigo-ink); }
.btn--onDark:hover { box-shadow: 0 10px 26px -10px rgba(0,0,0,.6); }

.btn--ghostDark {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn--ghostDark:hover { border-color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }

.btn--sm { padding: 10px 17px; font-size: .89rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--indigo); font-weight: 600; font-size: .96rem; text-decoration: none;
  border-bottom: 1px solid rgba(38,49,124,.3); padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.tlink:hover { border-color: var(--indigo); gap: 11px; }

/* ---------- nav (opaque, sticky) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); margin-right: auto;
  font-family: var(--display); font-weight: 700; font-size: 1.19rem; letter-spacing: -.03em;
}
.brand__mark {
  width: 27px; height: 27px; border-radius: 6px; flex: none;
  background: var(--indigo); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500;
  padding: 8px 13px; border-radius: var(--r-ui);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--ground); }
.nav__links a[aria-current="page"] { color: var(--indigo); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-ui);
  border: 1px solid var(--line); place-items: center;
}
.nav__burger span {
  display: block; width: 17px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease);
}
.nav__burger span::before { top: -5.5px; }
.nav__burger span::after { top: 5.5px; }
.nav.is-open .nav__burger span { transform: rotate(45deg); }
.nav.is-open .nav__burger span::before { transform: translateY(5.5px) rotate(-90deg); }
.nav.is-open .nav__burger span::after { opacity: 0; }

@media (max-width: 900px) {
  .nav__burger { display: grid; }
  .nav__links, .nav__cta {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gut); display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__cta { display: flex; top: auto; position: static; border: 0; padding: 12px 0 18px; gap: 10px; }
  .nav__cta { display: none; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.02rem; }
  .nav__in { position: relative; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 92px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(1100px 520px at 78% 8%, rgba(58, 73, 180, .10), transparent 62%),
    linear-gradient(180deg, #F4F6FA 0%, var(--ground) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* faint ledger ruling — the paper this product lives on */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(38,49,124,.055) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
}
.hero > * { position: relative; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 5vw, 68px); align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal; color: var(--indigo);
  position: relative; white-space: nowrap;
}
.hero__sub { max-width: 30em; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 26px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .73rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2); padding: 7px 14px 7px 10px; border-radius: 999px;
  margin-bottom: 26px;
}
.pill i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--paid);
  box-shadow: 0 0 0 3px var(--paid-wash);
}

.hero__notes {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: .88rem; color: var(--ink-3);
}
.hero__notes li { display: flex; align-items: center; gap: 7px; }
.hero__notes svg { color: var(--paid); flex: none; }

/* ---------- the signature: self-assembling GST invoice ---------- */
.demo { display: grid; gap: 12px; }

.demo__frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.demo__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #FBFCFE, #F5F7FA);
}
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo__path {
  font-family: var(--mono); font-size: .73rem; color: var(--ink-3); letter-spacing: -.01em;
}
.demo__clock {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--indigo);
  background: var(--indigo-wash); padding: 4px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.demo__clock i { width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); }
.demo.is-done .demo__clock { color: var(--paid); background: var(--paid-wash); }
.demo.is-done .demo__clock i { background: var(--paid); }

.inv { padding: clamp(16px, 2.4vw, 26px); position: relative; }

.inv__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding-bottom: 15px; border-bottom: 1.5px solid var(--ink);
}
.inv__title {
  font-family: var(--display); font-size: 1.02rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.inv__from { font-size: .78rem; color: var(--ink-3); margin-top: 3px; }
.inv__no { text-align: right; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); line-height: 1.75; }
.inv__no b { color: var(--ink); font-weight: 600; }

.inv__party {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.inv__party dt {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.inv__party dd { font-size: .87rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.inv__party .gstin { font-family: var(--mono); font-size: .76rem; color: var(--ink-2); font-weight: 400; }

.inv__tbl { margin-top: 6px; font-size: .82rem; }
.inv__tbl th {
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); text-align: right;
  padding: 9px 0 8px; border-bottom: 1px solid var(--line);
}
.inv__tbl th:first-child, .inv__tbl td:first-child { text-align: left; }
.inv__tbl td {
  padding: 9px 0; text-align: right; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.inv__tbl td:first-child { color: var(--ink); font-weight: 500; padding-right: 10px; }
.inv__tbl .hsn { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.inv__tbl .amt { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.demo .inv__tbl tbody tr {
  opacity: 0; transform: translateY(7px);
  transition: opacity .42s var(--ease), transform .42s var(--ease);
}
.demo .inv__tbl tbody tr.is-in { opacity: 1; transform: none; }

/* Five columns is too many on a phone. Shed them in order of least value and
   keep real gutters, so the figures never run together. */
@media (max-width: 560px) {
  .inv__tbl { font-size: .76rem; }
  .inv__tbl th:nth-child(2), .inv__tbl td:nth-child(2) { display: none; }   /* HSN */
  .inv__tbl th + th, .inv__tbl td + td { padding-left: 12px; }
  .inv__party { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 420px) {
  .inv__tbl th:nth-child(3), .inv__tbl td:nth-child(3) { display: none; }   /* Qty */
  .inv__tbl td:first-child { padding-right: 0; }
}

.inv__sums { margin-left: auto; width: min(100%, 290px); margin-top: 14px; }
.inv__sums div {
  display: flex; justify-content: space-between; gap: 18px;
  font-size: .82rem; padding: 6px 0;
}
.demo .inv__sums div {
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.inv__sums div.is-in { opacity: 1; transform: none; }
.inv__sums dt, .inv__sums span:first-child { color: var(--ink-3); }
.inv__sums span:last-child { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.inv__sums .total {
  border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 11px;
  font-family: var(--display); font-size: 1rem; font-weight: 700;
}
.inv__sums .total span:first-child { color: var(--ink); letter-spacing: -.02em; }
.inv__sums .total span:last-child { font-family: var(--mono); font-size: 1.06rem; font-weight: 600; }

.inv__words {
  margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line);
  font-size: .76rem; color: var(--ink-3);
}
.demo .inv__words { opacity: 0; transition: opacity .5s var(--ease); }
.inv__words.is-in { opacity: 1; }
.inv__words b { color: var(--ink-2); font-weight: 600; }

/* Sits in the empty gutter left of the totals column — must never cover the total. */
.stamp {
  position: absolute; left: clamp(20px, 4vw, 46px); bottom: clamp(66px, 7vw, 88px);
  display: grid; place-items: center; gap: 1px;
  width: 132px; height: 62px;
  border: 2.5px solid var(--gold); border-radius: 5px;
  color: var(--gold); text-align: center;
  font-family: var(--display); font-weight: 700; letter-spacing: .16em;
  transform: rotate(-9deg) scale(1.5); opacity: 0;
  transition: opacity .3s var(--ease), transform .45s cubic-bezier(.3, 1.5, .5, 1);
  pointer-events: none;
}
.stamp b { font-size: 1.5rem; line-height: 1; }
.stamp small {
  font-family: var(--mono); font-size: .53rem; letter-spacing: .1em; font-weight: 500;
}
.stamp.is-in { opacity: .92; transform: rotate(-9deg) scale(1); }

/* Narrow screens: the totals column fills the width, so there is no gutter to
   stamp into. Drop it into normal flow rather than let it cover the total. */
@media (max-width: 620px) {
  .stamp {
    position: static; margin: 18px auto 14px; width: 118px; height: 56px;
    transform: rotate(-6deg) scale(1.4);
  }
  .stamp.is-in { transform: rotate(-6deg) scale(1); }
  .stamp b { font-size: 1.32rem; }
}

.demo__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.demo__replay {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--indigo); font-weight: 500;
  border-bottom: 1px solid rgba(38,49,124,.25); padding-bottom: 1px;
  transition: border-color .2s var(--ease);
}
.demo__replay:hover { border-color: var(--indigo); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-doc); border-color: #C3C9D6; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }

.card__ic {
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--indigo-wash); color: var(--indigo);
}
.card__tag {
  margin-top: auto; padding-top: 18px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- social proof placeholder ---------- */
.proof { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 860px) { .proof { grid-template-columns: repeat(2, 1fr); } }
.proof__slot {
  height: 78px; border: 1px dashed #C6CCD8; border-radius: var(--r-doc);
  display: grid; place-items: center; gap: 2px;
  background: rgba(255,255,255,.5);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: #A6ADBC; text-align: center;
}
.proof__note {
  margin-top: 22px; padding: 16px 18px;
  border-left: 2px solid var(--gold); background: rgba(201, 150, 42, .07);
  border-radius: 0 var(--r-doc) var(--r-doc) 0;
  font-size: .9rem; color: var(--ink-2);
}
.proof__note b { color: var(--ink); }

/* ---------- comparison teaser ---------- */
.compare {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

.compare__bars { display: grid; gap: 14px; }
.compare__bar { display: grid; gap: 7px; }
.compare__bar .lbl {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: .88rem; color: #B9C0E4;
}
.compare__bar .lbl b { font-family: var(--mono); font-size: .95rem; color: #fff; font-weight: 500; }
.compare__bar .track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.compare__bar .fill {
  height: 100%; border-radius: 999px; background: rgba(255,255,255,.34);
  width: 0; transition: width 1.1s var(--ease);
}
.compare__bar.is-ours .fill { background: var(--gold); }
.compare__bar.is-ours .lbl b { color: var(--gold); }
.compare__foot {
  margin-top: 18px; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase; color: #7B85BC;
}

/* ---------- feature blocks (Features page) ---------- */
.feat {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(40px, 5vw, 62px);
  border-top: 1px solid var(--line);
}
.feat:first-of-type { border-top: 0; }
/* Swap the track widths too, so the mockup keeps the wider column either way. */
.feat--flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.feat--flip .feat__media { order: -1; }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 28px; }
  .feat--flip .feat__media { order: 0; }
}
.feat h2 { margin-bottom: 14px; }
.feat__list { margin-top: 20px; display: grid; gap: 9px; }
.feat__list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .93rem;
}
.feat__list svg { color: var(--paid); flex: none; margin-top: 5px; }

/* in-browser product mockups (drawn in HTML, not fake screenshots) */
.mock {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-doc); overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-bottom: 1px solid var(--line-soft); background: #F7F9FC;
  font-family: var(--mono); font-size: .68rem; color: var(--ink-3);
}
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock__body { padding: 18px; display: grid; gap: 11px; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: var(--r-doc);
  background: #FCFDFE; font-size: .85rem;
}
.row__main { display: grid; gap: 2px; min-width: 0; }
.row__main b { color: var(--ink); font-weight: 600; font-size: .89rem; }
.row__main span { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); }
.row__amt {
  margin-left: auto; font-family: var(--mono); font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row__av {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--indigo-wash); color: var(--indigo);
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
}

.tagx {
  font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.tagx--paid { background: var(--paid-wash); color: var(--paid); }
.tagx--due  { background: var(--due-wash);  color: var(--due); }
.tagx--wait { background: var(--ground-2);  color: var(--ink-2); }
.tagx--auto { background: var(--indigo-wash); color: var(--indigo); }

.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-doc);
  overflow: hidden;
}
.stat-strip div { background: var(--paper); padding: 13px; text-align: center; }
.stat-strip b {
  display: block; font-family: var(--mono); font-size: 1.15rem; color: var(--ink); font-weight: 600;
}
.stat-strip span {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- pricing ---------- */
.toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 4px; border-radius: 999px; margin-inline: auto;
}
.toggle button {
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  padding: 9px 20px; border-radius: 999px;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.toggle button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.toggle .save {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .06em;
  color: var(--paid); background: var(--paid-wash);
  padding: 2px 7px; border-radius: 999px; margin-left: 7px;
}
.toggle button[aria-pressed="true"] .save { background: rgba(255,255,255,.2); color: #fff; }

.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc);
  padding: 26px 22px 24px; display: flex; flex-direction: column; height: 100%;
  position: relative;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tier:hover { box-shadow: var(--shadow-doc); }
.tier--hero { border: 1.5px solid var(--indigo); box-shadow: var(--shadow-doc); }
.tier__flag {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--mono); font-size: .63rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; background: var(--indigo);
  padding: 4px 11px; border-radius: 999px;
}
.tier__name { font-family: var(--display); font-size: 1.22rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.tier__for { font-size: .87rem; margin-top: 5px; min-height: 2.6em; }
.tier__price {
  display: flex; align-items: baseline; gap: 3px; margin: 18px 0 3px;
  font-family: var(--display); color: var(--ink); letter-spacing: -.035em;
}
.tier__price .amt { font-size: 2.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier__price .per { font-family: var(--body); font-size: .88rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tier__note { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); min-height: 2.4em; line-height: 1.5; }
.tier .btn { margin: 18px 0 20px; }
.tier__feats { display: grid; gap: 10px; font-size: .89rem; }
.tier__feats li { display: flex; gap: 9px; align-items: flex-start; }
.tier__feats svg { color: var(--paid); flex: none; margin-top: 4px; }
.tier__feats .lead {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); display: block; padding-bottom: 2px;
}

/* comparison table — real table on desktop, stacked cards on mobile */
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--r-doc); background: var(--paper); overflow: hidden; }
.cmp { font-size: .92rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.cmp thead th {
  font-family: var(--display); font-size: .98rem; color: var(--ink); font-weight: 700;
  background: #F7F9FC; border-bottom: 1px solid var(--line); letter-spacing: -.015em;
}
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--ink); font-weight: 500; }
.cmp tbody th {
  font-weight: 500; color: var(--ink); text-align: left; font-family: var(--body); font-size: .92rem;
}
.cmp .grp th {
  background: #FAFBFD; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 10px 16px;
}
.cmp .yes { color: var(--paid); }
.cmp .no  { color: #C3C9D6; }
.cmp td span { font-family: var(--mono); font-size: .84rem; }

@media (max-width: 780px) {
  .cmp-wrap { border: 0; background: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { display: none; }
  .cmp tbody tr {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc);
    margin-bottom: 12px; padding: 6px 0;
  }
  .cmp tbody tr.grp {
    background: none; border: 0; margin: 22px 0 8px; padding: 0;
  }
  .cmp .grp th { background: none; padding: 0; }
  .cmp tbody th {
    font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink);
    padding: 12px 16px 8px; border-bottom: 1px solid var(--line-soft);
  }
  .cmp tbody td {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    text-align: right; padding: 9px 16px; border-bottom: 0; font-size: .92rem;
  }
  .cmp tbody td::before {
    content: attr(data-tier);
    font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-3); text-align: left;
  }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; text-align: left;
  font-family: var(--display); font-size: clamp(1.02rem, 1.7vw, 1.18rem); font-weight: 600;
  color: var(--ink); letter-spacing: -.02em; line-height: 1.35;
}
.faq__q:hover { color: var(--indigo); }
.faq__sign {
  flex: none; width: 22px; height: 22px; margin-top: 2px; position: relative;
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--indigo);
  transform: translate(-50%, -50%); transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.faq__sign::before { width: 13px; height: 1.5px; }
.faq__sign::after  { width: 1.5px; height: 13px; }
.faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; max-width: 68ch; font-size: .97rem; }
.faq__a p + p { padding-top: 0; }

/* ---------- templates ---------- */
.tpl { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc); overflow: hidden; }
.tpl:hover .tpl__paper { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
/* Fixed height so every card's body starts on the same line; the paper is
   deliberately cropped at the fold, as if sliding out of a folder. */
.tpl__view {
  padding: 26px 22px 0; background: linear-gradient(180deg, #F6F8FC, #EDF0F6);
  border-bottom: 1px solid var(--line); overflow: hidden;
  height: 232px;
}
.tpl__paper {
  background: #fff; border: 1px solid var(--line); border-radius: 3px 3px 0 0;
  padding: 15px; box-shadow: var(--shadow-doc);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  font-size: 9px; line-height: 1.4; color: var(--ink-3);
}
.tpl__paper .t-h {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 8px; margin-bottom: 9px; border-bottom: 1px solid var(--ink);
}
.tpl__paper .t-h b {
  font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--ink);
  text-transform: uppercase;
}
.tpl__paper .t-line { height: 5px; border-radius: 2px; background: var(--ground-2); margin-bottom: 5px; }
.tpl__paper .t-grid { display: grid; gap: 4px; margin-bottom: 9px; }
.tpl__paper .t-row {
  display: grid; grid-template-columns: 1fr 22px 34px; gap: 7px; align-items: center;
  padding-bottom: 4px; border-bottom: 1px solid var(--line-soft);
}
.tpl__paper .t-row i { height: 5px; border-radius: 2px; background: var(--ground-2); display: block; }
.tpl__paper .t-tot {
  display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 9px; color: var(--ink); font-weight: 600; border-top: 1.5px solid var(--ink); padding-top: 6px;
}
.tpl__paper .t-tax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8px; padding: 2px 0; }
.tpl__paper.is-mono { font-family: var(--mono); }
.tpl__paper.is-indigo .t-h { border-bottom-color: var(--indigo); }
.tpl__paper.is-indigo .t-h b { color: var(--indigo); }
.tpl__paper.is-indigo .t-tot { border-top-color: var(--indigo); color: var(--indigo); }
.tpl__paper.is-gold .t-h { border-bottom-color: var(--gold); }
.tpl__paper.is-gold .t-h b { color: var(--gold); }

.tpl__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tpl__body h3 { margin-bottom: 8px; }
.tpl__body p { font-size: .9rem; flex: 1; }
.tpl__specs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px;
}
.tpl__specs li {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: var(--ground); border-radius: 999px; padding: 4px 9px;
}

/* email gate */
.gate {
  position: fixed; inset: 0; z-index: 90; display: none;
  place-items: center; padding: 20px;
  background: rgba(18, 20, 28, .55); backdrop-filter: blur(3px);
}
.gate.is-open { display: grid; }
.gate__box {
  background: var(--paper); border-radius: 8px; width: min(100%, 460px);
  padding: 30px 28px 28px; box-shadow: var(--shadow-lift);
  position: relative;
  animation: pop .32s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.gate__x {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink-3);
}
.gate__x:hover { background: var(--ground); color: var(--ink); }
.gate__box h3 { margin-bottom: 8px; }
.gate__box > p { font-size: .93rem; margin-bottom: 20px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-2);
}
.field label .opt { color: var(--ink-3); text-transform: none; letter-spacing: 0; font-size: .72rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-ui);
  padding: 13px 14px; font-size: .97rem; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23838A9B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(38, 49, 124, .13);
}
.field input::placeholder, .field textarea::placeholder { color: #A6ADBC; }
.field .err { font-size: .8rem; color: var(--due); display: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--due); }
.field.is-bad .err { display: block; }
.form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__2 { grid-template-columns: 1fr; } }
.form__fine { font-size: .82rem; color: var(--ink-3); }

.ok {
  display: none; gap: 13px; align-items: flex-start;
  padding: 18px; border-radius: var(--r-doc);
  background: var(--paid-wash); border: 1px solid rgba(15, 122, 87, .25);
  font-size: .93rem; color: #0B5C42;
}
.ok.is-on { display: flex; }
.ok svg { color: var(--paid); flex: none; margin-top: 3px; }
.ok b { display: block; color: #0A4C37; margin-bottom: 3px; font-size: .98rem; }

/* contact split */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-doc); padding: clamp(24px, 3vw, 34px);
}
.panel--demo { background: var(--indigo-ink); border-color: var(--indigo-ink); color: #B9C0E4; }
.panel--demo h2, .panel--demo h3 { color: #fff; }

.slots { display: grid; gap: 8px; margin: 20px 0 22px; }
.slots li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-doc);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: .82rem; color: #D4D9F0;
}
.slots li span:last-child { color: var(--gold); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.dl { display: grid; gap: 18px; }
.dl__row { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.dl__row:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}
.dl dd { color: var(--ink); font-weight: 500; }
.dl dd a { color: var(--indigo); text-decoration: none; border-bottom: 1px solid rgba(38,49,124,.3); }

/* ---------- CTA band ---------- */
.band {
  background: var(--indigo-ink); color: #B9C0E4;
  padding-block: clamp(56px, 7vw, 88px);
  position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 100% at 50% 50%, #000, transparent);
}
.band > * { position: relative; }
.band h2 { color: #fff; margin-bottom: 16px; }
.band p { max-width: 52ch; margin-inline: auto; margin-bottom: 28px; }
.band .btn-row { justify-content: center; }
.band__fine {
  margin-top: 22px; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase; color: #7B85BC;
}

/* ---------- footer ---------- */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 30px; }
.foot__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__about { font-size: .9rem; max-width: 34ch; margin-top: 14px; }
.foot h4 {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 15px;
}
.foot__links { display: grid; gap: 10px; }
.foot__links a {
  text-decoration: none; font-size: .93rem; color: var(--ink-2);
  transition: color .18s var(--ease);
}
.foot__links a:hover { color: var(--indigo); }
.foot__base {
  padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-3);
}
.foot__base p { max-width: 62ch; }

/* ---------- scroll reveal ---------- */
.rev { opacity: 0; transform: translateY(18px); }
.rev.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rev { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .tpl:hover .tpl__paper { transform: none; }
}

/* ==========================================================================
   INTERACTIVE COMPONENTS
   ========================================================================== */

/* ---------- live invoice builder ---------- */
.ib {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px); align-items: start;
}
@media (max-width: 1000px) { .ib { grid-template-columns: 1fr; } }

.ib__panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc);
  padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 22px;
}
.ib__group { display: grid; gap: 12px; }
.ib__legend {
  font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 9px; border-bottom: 1px solid var(--line-soft);
}
.ib__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ib__row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .ib__row2, .ib__row3 { grid-template-columns: 1fr; } }

.ib__panel .field input, .ib__panel .field select { padding: 10px 12px; font-size: .92rem; }
.ib__panel .field label { font-size: .64rem; }

.ib__hint {
  font-size: .78rem; color: var(--indigo); font-weight: 500;
  display: flex; gap: 6px; align-items: flex-start;
}

.ib__styles { display: flex; flex-wrap: wrap; gap: 6px; }
.ib__style {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); background: var(--paper);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.ib__style:hover { border-color: var(--ink-3); }
.ib__style[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.ib__items { display: grid; gap: 8px; }
.ib__item {
  display: grid; gap: 6px;
  grid-template-columns: minmax(0, 1fr) 74px 52px 74px 62px 30px;
  align-items: center;
}
.ib__item input, .ib__item select {
  width: 100%; min-width: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-ui);
  padding: 9px 10px; font-size: .86rem; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ib__item .ib__num, .ib__item .ib__hsn { font-family: var(--mono); font-size: .8rem; text-align: right; }
.ib__item .ib__hsn { text-align: left; }
.ib__item select { font-family: var(--mono); font-size: .78rem; appearance: none; padding-right: 8px; }
.ib__item input:focus, .ib__item select:focus {
  outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(38, 49, 124, .13);
}
.ib__del {
  display: grid; place-items: center; width: 30px; height: 34px;
  border-radius: var(--r-ui); color: var(--ink-3);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.ib__del:hover { background: var(--due-wash); color: var(--due); }

@media (max-width: 700px) {
  .ib__item {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 30px;
    padding: 10px; border: 1px solid var(--line-soft); border-radius: var(--r-doc);
  }
  .ib__item .ib__desc { grid-column: 1 / -1; }
}

.ib__add {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  font-size: .89rem; font-weight: 600; color: var(--indigo);
  padding: 9px 15px; border-radius: var(--r-ui);
  border: 1px dashed rgba(38, 49, 124, .4);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.ib__add:hover { background: var(--indigo-wash); border-color: var(--indigo); }

.ib__preview { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 12px; }
@media (max-width: 1000px) { .ib__preview { position: static; } }

.ib__summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-doc);
  overflow: hidden;
}
.ib__summary div { background: var(--paper); padding: 12px 14px; }
.ib__summary b {
  display: block; font-family: var(--mono); font-size: 1.02rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ib__summary div:last-child b { color: var(--indigo); }
.ib__summary span {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}

.ib__paper {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc);
  padding: clamp(18px, 2.6vw, 30px); box-shadow: var(--shadow-doc);
}
.ib__paper .inv__tbl { margin-top: 4px; }
.ib-dim { color: var(--ink-3); font-style: italic; font-weight: 400; }

/* style variants — each changes what the document emphasises */
.ib__paper--minimal .inv__top { border-bottom-width: 1px; }
.ib__paper--minimal .inv__party { border-bottom-color: transparent; }
.ib__paper--gst { font-feature-settings: "tnum"; }
.ib__paper--gst .inv__top, .ib__paper--gst .inv__sums .total { border-color: var(--indigo); }
.ib__paper--gst .inv__title { color: var(--indigo); }
.ib__paper--service .inv__title, .ib__paper--product .inv__title { letter-spacing: .16em; }
.ib__paper--product .inv__tbl th { color: var(--ink-2); }
.ib__paper--export .inv__top, .ib__paper--export .inv__sums .total { border-color: var(--gold); }
.ib__paper--export .inv__title { color: var(--gold); }

.ib__lut {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-doc);
  background: rgba(201, 150, 42, .09); border-left: 2px solid var(--gold);
  font-family: var(--mono); font-size: .68rem; color: var(--ink-2); line-height: 1.5;
}

.ib__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ib__note {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); margin-left: auto;
}

/* ---------- plan recommender ---------- */
.rec {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-doc);
  padding: clamp(22px, 3vw, 34px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
@media (max-width: 860px) { .rec { grid-template-columns: 1fr; } }

.rec__controls { display: grid; gap: 20px; }
.rng { display: grid; gap: 8px; }
.rng__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: .92rem; color: var(--ink-2);
}
.rng__top b {
  font-family: var(--mono); font-size: .95rem; color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rng input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--ground-2); border-radius: 999px; padding: 0; border: 0;
}
.rng input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%; background: var(--indigo);
  border: 3px solid var(--paper); box-shadow: 0 1px 5px rgba(18,20,28,.3); cursor: pointer;
}
.rng input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--indigo);
  border: 3px solid var(--paper); box-shadow: 0 1px 5px rgba(18,20,28,.3); cursor: pointer;
}

.needs { display: flex; flex-wrap: wrap; gap: 7px; }
.need {
  font-size: .85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--paper);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.need:hover { border-color: var(--ink-3); }
.need[aria-pressed="true"] {
  background: var(--indigo-wash); border-color: var(--indigo); color: var(--indigo); font-weight: 600;
}

.rec__out {
  background: var(--indigo-ink); border-radius: var(--r-doc); padding: 24px 22px;
  color: #B9C0E4; position: sticky; top: calc(var(--nav-h) + 18px);
}
@media (max-width: 860px) { .rec__out { position: static; } }
.rec__label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: #8F9AD0;
}
.rec__plan {
  font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: #fff;
  letter-spacing: -.03em; margin: 4px 0 2px;
}
.rec__cost {
  font-family: var(--mono); font-size: 1.05rem; color: var(--gold); font-weight: 500;
  margin-bottom: 14px;
}
.rec__why { font-size: .88rem; line-height: 1.5; }
.rec__why li { display: flex; gap: 8px; padding: 4px 0; }
.rec__why svg { color: var(--gold); flex: none; margin-top: 5px; }
.rec__out .btn { margin-top: 18px; }
.rec__fine {
  margin-top: 14px; font-family: var(--mono); font-size: .62rem; letter-spacing: .05em;
  text-transform: uppercase; color: #7B85BC; line-height: 1.6;
}
.tier.is-rec { border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px rgba(201,150,42,.14); }

/* ---------- feature filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__count {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); margin-left: auto;
}
.feat.is-off { display: none; }

/* ---------- animated counters ---------- */
.count { font-variant-numeric: tabular-nums; }

/* ---------- demo slot picker ---------- */
.slots--pick li { padding: 0; background: none; border: 0; }
.slot {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-doc); text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-family: var(--mono); font-size: .8rem; color: #D4D9F0;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.slot:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.25); }
.slot span:last-child { color: var(--gold); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.slot[aria-pressed="true"] {
  background: rgba(201,150,42,.16); border-color: var(--gold); color: #fff;
}

/* ---------- print: the invoice only ---------- */
@media print {
  body.is-printing { background: #fff; }
  body.is-printing .nav,
  body.is-printing .foot,
  body.is-printing .band,
  body.is-printing .hero,
  body.is-printing .section:not(#builder),
  body.is-printing .ib__panel,
  body.is-printing .ib__summary,
  body.is-printing .ib__actions,
  body.is-printing .head,
  body.is-printing .skip { display: none !important; }
  body.is-printing #builder { padding: 0; }
  body.is-printing .ib { display: block; }
  body.is-printing .ib__paper {
    border: 0; box-shadow: none; padding: 0; border-radius: 0;
  }
  body.is-printing .ib__preview { position: static; }
}
