/* DocShift site styles.
   Brand from the logo: night ground, a gold scale for the document lines and the chevron,
   and one signal red that only ever means "this needs you".
   Self-hosted fonts only: no third-party requests. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Night (from the logo's ground) */
  --night: #0B0B09;
  --night-2: #14130F;
  --night-3: #1D1B16;
  --night-line: #2C2A23;
  --on-night: #EDE9DF;
  --on-night-dim: #A9A291;
  /* Gold scale (the logo's three lines and chevron) */
  --gold-1: #5A5040;
  --gold-2: #8B7240;
  --gold-3: #A8863A;
  --gold: #C9A052;
  --gold-hi: #E4C27A;
  --gold-wash: rgba(201, 160, 82, 0.16);
  /* Signal (the logo's dot). Only for "needs you". */
  --signal: #E61B1B;
  --signal-ink: #B3131A;
  --signal-wash: #FDEDEC;
  /* Day */
  --day: #F5F5F2;
  --white: #FFFFFF;
  --ink: #16150F;
  --ink-2: #57544B;
  --line: #DEDCD5;
  /* Highlighter on documents */
  --mark: rgba(201, 160, 82, 0.55);
  --mark-faint: rgba(201, 160, 82, 0.22);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --measure: 66ch;
  --wrap: 1200px;
  --r-sm: 6px;
  --r-md: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--day); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--night); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.after-note { margin-top: 1.1rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--white { background: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }

/* Night bands: hero, modes, page heroes, footer */
.night { background: var(--night); color: var(--on-night); }
.night h1, .night h2, .night h3 { color: #fff; }
.night .lede, .night .muted { color: var(--on-night-dim); }
.night a:not(.btn) { color: var(--on-night); }
.night a:not(.btn):hover { color: var(--gold-hi); }

/* Highlighter */
.hl { background: linear-gradient(transparent 14%, var(--mark) 14%, var(--mark) 86%, transparent 86%); padding: 0 .12em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; font: 600 1rem/1 var(--body); padding: .9rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: #2A281F; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }
.night .btn--ghost { color: var(--on-night); border-color: var(--night-line); }
.night .btn--ghost:hover { background: var(--night-3); border-color: var(--gold-2); color: #fff; }
.btn--small { min-height: 40px; padding: .6rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.chev { width: .7em; height: .7em; transition: transform .25s var(--ease); }
.btn:hover .chev { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 9, .97); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--night-line); color: var(--on-night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; color: var(--on-night); text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--on-night-dim); text-decoration: none; font-weight: 500; font-size: .97rem; transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--gold); }
.menu { display: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .55rem 1rem; border: 1.5px solid var(--night-line); border-radius: 999px; color: var(--on-night); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + .6rem); flex-direction: column; gap: .2rem; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: .6rem; min-width: 240px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
  .menu-panel a { padding: .75rem .8rem; color: var(--on-night); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
  .menu-panel a:hover { background: var(--night-3); }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(201, 160, 82, .13), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { max-width: 34rem; margin-bottom: 1.8rem; }
.beta-note { display: inline-flex; gap: .6rem; align-items: center; font-size: .92rem; color: var(--on-night-dim); margin: 1.4rem 0 0; }
.beta-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; box-shadow: 0 0 0 0 rgba(230, 27, 27, .6); animation: beacon 2.4s 3.2s ease-out 3; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(230, 27, 27, .55); } 100% { box-shadow: 0 0 0 12px rgba(230, 27, 27, 0); } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } .hero-art { max-width: 340px; } }

/* The animated mark: read the lines, flag the dot, take the action */
.hero-art { position: relative; }
.big-mark { width: 100%; height: auto; overflow: visible; }
.big-mark .ln { transform-box: fill-box; transform-origin: left center; }
.big-mark .dt { transform-box: fill-box; transform-origin: center; }
.big-mark .cv { transform-box: fill-box; transform-origin: center; }
.story { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .4rem 1.6rem; font-size: .95rem; color: var(--on-night-dim); }
.story li { display: flex; align-items: center; gap: .55rem; }
.story i { display: block; flex: none; }
.story .k-line { width: 18px; height: 4px; border-radius: 2px; background: var(--gold-2); }
.story .k-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.story .k-chev { width: 9px; height: 9px; border: solid var(--gold); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
@media (max-width: 520px) { .story { grid-template-columns: 1fr; } }

.js .big-mark .ln { transform: scaleX(0); }
.js .big-mark .dt { transform: scale(0); }
.js .big-mark .cv { opacity: 0; transform: translateX(-14%); }
.js .story li, .js .hero-copy > * { opacity: 0; transform: translateY(10px); }
.is-played .big-mark .ln { animation: grow .7s var(--ease) forwards; }
.is-played .big-mark .ln:nth-of-type(2) { animation-delay: .15s; }
.is-played .big-mark .ln:nth-of-type(3) { animation-delay: .3s; }
.is-played .big-mark .scan { animation: read 1.1s .55s ease-in-out forwards; }
.is-played .big-mark .dt { animation: pop .55s 1.55s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.is-played .big-mark .cv { animation: shoot .7s 2.05s var(--ease) forwards; }
.is-played .story li { animation: rise .5s var(--ease) forwards; }
.is-played .story li:nth-child(1) { animation-delay: .5s; }
.is-played .story li:nth-child(2) { animation-delay: 1.65s; }
.is-played .story li:nth-child(3) { animation-delay: 2.15s; }
.is-played .hero-copy > * { animation: rise .7s var(--ease) forwards; }
.is-played .hero-copy > :nth-child(2) { animation-delay: .1s; }
.is-played .hero-copy > :nth-child(3) { animation-delay: .2s; }
.is-played .hero-copy > :nth-child(4) { animation-delay: .3s; }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes pop { to { transform: scale(1); } }
@keyframes shoot { to { opacity: 1; transform: translateX(0); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes read { from { transform: translateX(-30%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(260%); opacity: 0; } }
.big-mark .scan { opacity: 0; }

/* Demo */
.demo-wrap { background: var(--night); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.demo-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.6rem; color: var(--on-night); }
.demo-intro h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.demo-intro p { margin: 0; color: var(--on-night-dim); font-size: .95rem; }
.demo { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 1rem .7rem 1.2rem; border-bottom: 1px solid var(--line); background: #FAFAF8; }
.demo-bar p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 920px) { .demo-body { grid-template-columns: 1fr; } }
.demo-doc { padding: clamp(1.25rem, 3vw, 2.75rem); background: radial-gradient(circle at 1px 1px, #D9D6CC 1px, transparent 0) 0 0 / 18px 18px, #EFEEE9; border-right: 1px solid var(--line); }
@media (max-width: 920px) { .demo-doc { border-right: 0; border-bottom: 1px solid var(--line); } }

.invoice { position: relative; overflow: hidden; background: #FFFEFB; color: #2A2A2A; font: 400 .86rem/1.5 var(--body); padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 1px 0 #d9d6cc, 0 22px 44px -20px rgba(22, 21, 15, .45); transform: rotate(-1.1deg); max-width: 480px; margin-inline: auto; transition: transform .6s var(--ease); }
.invoice.is-scanning, .invoice.is-done { transform: rotate(0deg); }
.invoice::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 0 58%, rgba(0, 0, 0, .035) 58.2%, transparent 59%); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(201, 160, 82, .22) 70%, rgba(201, 160, 82, .9) 98%, transparent); }
.invoice.is-scanning .scanline { animation: sweep 1.9s ease-in-out forwards; }
@keyframes sweep { 0% { opacity: 0; transform: translateY(-64px); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(520px); } }
.inv-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.inv-supplier { font: 700 1.05rem/1.2 var(--display); color: #1d1c16; }
.inv-title { font: 700 1.5rem/1 var(--display); letter-spacing: .04em; color: #8b8b8b; }
.inv-meta { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; margin: 0 0 1rem; }
.inv-meta dt { color: #777; }
.inv-meta dd { margin: 0; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: .8rem; font-variant-numeric: tabular-nums; }
.inv-table th { text-align: left; font-weight: 600; border-bottom: 1px solid #cfcac0; padding: .3rem 0; }
.inv-table td { padding: .3rem 0; border-bottom: 1px dotted #ddd8cd; }
.inv-table .r { text-align: right; padding-left: .7rem; }
.inv-totals { margin-left: auto; width: 62%; display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; font-variant-numeric: tabular-nums; }
.inv-totals .gross { font-weight: 700; border-top: 1px solid #cfcac0; padding-top: .2rem; }
.inv-foot { margin-top: 1rem; font-size: .78rem; color: #6d6d6d; }
.smudge { filter: blur(.55px); opacity: .78; }
.stamp { position: absolute; right: 1.2rem; top: 5.2rem; border: 2px solid rgba(139, 114, 64, .55); color: rgba(139, 114, 64, .7); font: 700 .8rem/1 var(--display); letter-spacing: .12em; padding: .35rem .5rem; transform: rotate(9deg); border-radius: 3px; }
.src { border-radius: 2px; transition: background-color .3s, box-shadow .3s; }
.src.is-marked { background: var(--mark-faint); box-shadow: 0 0 0 2px var(--mark-faint); }
.src.is-active { background: var(--mark); box-shadow: 0 0 0 3px var(--mark), 0 0 0 4.5px var(--ink); }
.src.is-flag { box-shadow: 0 0 0 3px rgba(230, 27, 27, .25), 0 0 0 4.5px var(--signal); background: rgba(230, 27, 27, .08); }
@media (max-width: 520px) { .invoice { font-size: .76rem; padding: 1.1rem 1rem; } .inv-totals { width: 80%; } .stamp { display: none; } }

.demo-panel { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.panel-head h3 { margin: 0; }
.status { font-size: .88rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .45rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.status.is-busy::before { background: var(--gold); animation: blink 1s steps(2, start) infinite; }
.status.is-flag::before { background: var(--signal); }
.status.is-ok::before { background: var(--gold-2); }
@keyframes blink { to { visibility: hidden; } }
.fields { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.field { border-bottom: 1px solid var(--line); opacity: .55; transition: opacity .35s; }
.field.is-filled { opacity: 1; }
.field-main { width: 100%; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 46px; padding: .55rem .5rem; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-sm); }
.field.is-filled .field-main:hover, .field.is-focus .field-main { background: #FAF6EC; }
.field-label { font-size: .88rem; color: var(--ink-2); }
.field-value { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.field-value:empty::before { content: ""; display: block; width: 60%; height: .7em; border-radius: 3px; background: linear-gradient(90deg, #EEECE6, #F7F6F2, #EEECE6); background-size: 200% 100%; }
.is-reading .field:not(.is-filled) .field-value:empty::before { animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.field.is-filled .field-value { animation: settle .4s var(--ease); }
@keyframes settle { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.conf { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.conf-bar { width: 40px; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.conf-bar i { display: block; height: 100%; background: var(--gold-2); border-radius: 3px; transition: width .6s var(--ease); }
.field.needs-review .conf-bar i { background: var(--signal); }
.field.needs-review .conf { color: var(--signal-ink); font-weight: 600; }
.field.needs-review .field-label::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .45rem; border-radius: 50%; background: var(--signal); vertical-align: middle; }
@media (max-width: 520px) { .field-main { grid-template-columns: 1fr auto; } .field-label { grid-column: 1 / -1; } }

.review-box { display: none; border: 1.5px solid var(--signal); background: var(--signal-wash); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.review-box.is-open { display: block; animation: settle .4s var(--ease); }
.review-box p { margin: 0 0 .7rem; font-size: .95rem; }
.review-box label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.review-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.review-row input { flex: 1 1 12rem; min-height: 44px; font: 500 1rem var(--body); padding: .6rem .8rem; border: 1.5px solid #E5A9A6; border-radius: var(--r-sm); background: #fff; font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .92rem; }
.checks li { display: flex; gap: .6rem; align-items: baseline; transition: color .3s; }
.checks li::before { content: ""; width: .72rem; height: .72rem; flex: none; border-radius: 50%; border: 2px solid var(--line); transform: translateY(1px); transition: background-color .3s, border-color .3s; }
.checks li.ok::before { background: var(--gold-2); border-color: var(--gold-2); }
.checks li.flag::before { background: var(--signal); border-color: var(--signal); }
.receipt { display: none; border-top: 1px dashed var(--line); padding-top: 1rem; font-size: .9rem; }
.receipt.is-open { display: block; animation: settle .45s var(--ease); }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .4rem 0 0; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.demo-note { margin: 1rem 0 0; font-size: .88rem; color: var(--on-night-dim); max-width: none; }

/* Commitments */
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.trust li { font-size: .97rem; line-height: 1.45; color: var(--ink-2); }
.trust strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; margin: .9rem 0 .25rem; }
.trust svg { width: 34px; height: 34px; }
@media (max-width: 880px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } }

/* Old way / new way */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.versus > div { padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--r-md); }
.versus .old { background: #EAE9E4; color: #4B483F; }
.versus .new { background: var(--night); color: var(--on-night); }
.versus .new h3 { color: #fff; }
.versus h3 { margin-bottom: 1.1rem; }
.versus ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.versus .new li::marker { color: var(--gold); font-weight: 600; }
.versus .tally { margin: 1.5rem 0 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.versus .new .tally { color: var(--gold-hi); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* Steps: a real sequence. The rule draws across when it scrolls into view. */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2) 40%, var(--gold)); transform-origin: left; transform: scaleX(1); }
.steps li { position: relative; padding: 1.6rem 1.6rem 0 0; counter-increment: s; }
.steps { counter-reset: s; }
.steps li::before { content: counter(s); display: block; font: 700 2.4rem/1 var(--display); color: var(--gold-2); margin-bottom: .9rem; }
.steps li:last-child::before { color: var(--gold); }
.steps p { font-size: .98rem; color: var(--ink-2); }
.js .steps::after { transform: scaleX(0); }
.js .steps li { opacity: 0; transform: translateY(12px); }
.steps.is-in::after { transition: transform 1.4s var(--ease); transform: scaleX(1); }
.steps.is-in li { transition: opacity .6s var(--ease), transform .6s var(--ease); opacity: 1; transform: none; }
.steps.is-in li:nth-child(2) { transition-delay: .3s; }
.steps.is-in li:nth-child(3) { transition-delay: .6s; }
.steps.is-in li:nth-child(4) { transition-delay: .9s; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mode { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; transition: border-color .25s, transform .25s var(--ease); }
.mode:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.mode h3 { margin: 0; }
.mode p { font-size: .96rem; color: var(--on-night-dim); margin: 0; }
.mode .leaves { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--night-line); font-size: .9rem; color: var(--on-night); }
.tag { align-self: flex-start; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 99px; background: var(--gold-wash); color: var(--gold-hi); }
.tag--later { background: rgba(255, 255, 255, .06); color: var(--on-night-dim); }
@media (max-width: 980px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }

/* Split content */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.list-plain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list-plain li { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.list-plain strong { font-family: var(--display); }
.night .list-plain, .night .list-plain li { border-color: var(--night-line); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.plan--focus { background: var(--night); color: var(--on-night); border-color: var(--night); box-shadow: 0 30px 60px -30px rgba(11, 11, 9, .6); }
.plan--focus h3 { color: #fff; }
.plan.plan--focus .who, .plan.plan--focus .price small { color: var(--on-night-dim); }
.plan h3 { margin: 0; }
.price { font: 700 2.4rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font: 400 .95rem var(--body); color: var(--ink-2); letter-spacing: 0; }
.plan .who { font-size: .93rem; color: var(--ink-2); margin: 0; }
.plan ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: .95rem; }
.plan li::marker { color: var(--gold-2); }
.plan .btn { margin-top: auto; }
.plan-flag { font-size: .8rem; font-weight: 600; color: var(--gold-hi); }
@media (max-width: 1020px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.enterprise-line { margin-top: 1.25rem; padding: 1.2rem 1.5rem; border: 1px dashed #C9C6BC; border-radius: var(--r-md); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.enterprise-line p { margin: 0; }
.partner { margin-top: 2.5rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: var(--gold-wash); border: 1px solid rgba(201, 160, 82, .45); border-radius: var(--r-md); padding: 1.5rem 1.7rem; }
.partner p { margin: 0; }
.partner .big { font: 700 2.6rem/1 var(--display); color: var(--gold-2); }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 720px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
table.data thead th { font-family: var(--display); font-size: 1rem; background: #FAFAF8; }
table.data tbody th { font-weight: 600; width: 22%; }
table.data tr:last-child > * { border-bottom: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary { cursor: pointer; font: 700 1.1rem/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--gold-2); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

/* Forms */
.form { position: relative; display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form .hint { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.form input[type=text], .form input[type=email], .form select, .form textarea { width: 100%; min-height: 48px; font: 400 1rem var(--body); padding: .75rem .85rem; border: 1.5px solid #C4C1B7; border-radius: var(--r-sm); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-wash); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; accent-color: var(--gold-2); }
.form-error { display: none; color: var(--signal-ink); background: var(--signal-wash); border: 1px solid #F1B5B5; padding: .8rem 1rem; border-radius: var(--r-sm); }
.form-error.is-open { display: block; }
.field-err { color: var(--signal-ink); font-size: .88rem; margin-top: .3rem; display: none; }
.field-err:not(:empty) { display: block; }
[aria-invalid="true"] { border-color: var(--signal) !important; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { margin-bottom: .4rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Inner page heroes */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.page-hero .lede { max-width: 44rem; }
.page-hero .corner-mark { position: absolute; right: max(2rem, 6vw); bottom: -18px; width: clamp(140px, 22vw, 280px); opacity: .22; pointer-events: none; }
@media (max-width: 700px) { .page-hero .corner-mark { display: none; } }
.page-hero + .section { padding-top: clamp(3rem, 6vw, 4.5rem); }

/* Receipt card on day pages */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2rem); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-dim); padding-block: 3.5rem 2.5rem; font-size: .93rem; border-top: 1px solid var(--night-line); }
.site-footer a { color: var(--on-night); overflow-wrap: anywhere; text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid > * { min-width: 0; }
.foot-grid h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); font-size: .85rem; max-width: none; }
.site-footer .brand { margin-bottom: 1rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .big-mark .ln, .js .big-mark .dt { transform: none; }
  .js .big-mark .cv, .js .story li, .js .hero-copy > *, .js .steps li { opacity: 1; transform: none; }
  .js .steps::after { transform: scaleX(1); }
}
