/* Self-hosted fonts (from Google Fonts, SIL Open Font License): Archivo variable (wdth 62-125, wght 400-800) and Kalam 400/700. Latin + Latin-ext only; Latin-ext carries the rupee sign. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/kalam-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/kalam-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/kalam-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/kalam-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The bill book: printed red headings and serial numbers on ruled paper, entries in carbon-blue handwriting,
   sections on the white, pink and yellow copies of a triplicate pad. Light by intent: these pages are read on phones in shops, in daylight. */

:root {
  --paper: #FCFCF9;        /* the original, white bond paper */
  --pink: #F9E4E6;         /* the duplicate copy */
  --yellow: #FAF2CC;       /* the triplicate copy */
  --ink: #1C1E2B;          /* printed body text */
  --ink-2: #4A4D5E;        /* secondary printed text */
  --red: #C1272D;          /* the printer's red: headings, rules, serial numbers */
  --red-deep: #9E1C22;
  --carbon: #283593;       /* carbon-copy blue: handwritten entries, actions */
  --carbon-deep: #1C2672;
  --rule: #C7D5EC;         /* the pale blue ruling */
  --rule-red: #E7A3A6;     /* the margin line */
  --violet: #5A3E9E;       /* rubber stamp */
  --ok: #1E7A4E;

  --f-print: 'Archivo', 'Segoe UI', sans-serif;
  --f-hand: 'Kalam', 'Segoe Print', cursive;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; scrollbar-color: #B9BED6 var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-print); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--carbon); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
::selection { background: rgba(40, 53, 147, .18); color: var(--carbon-deep); }
input, textarea { caret-color: var(--carbon); }
:focus-visible { outline: 2.5px solid var(--carbon); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--carbon); color: #fff; padding: .5rem .9rem; z-index: 50; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.hand { font-family: var(--f-hand); color: var(--carbon); font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border: 2px solid transparent; border-radius: 6px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ink { background: var(--carbon); color: #fff; }
.btn--ink:hover:not(:disabled) { background: var(--carbon-deep); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--sm { padding: .45rem .9rem; font-size: .92rem; }
.btn--big { padding: .9rem 1.5rem; font-size: 1.06rem; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1.5px solid var(--red); }
.top__bar { display: flex; align-items: center; gap: 1.4rem; max-width: var(--max); margin: 0 auto; padding: 12px var(--pad); }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; font-variation-settings: 'wdth' 75; color: var(--red); text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--red); text-decoration: underline; }
.finder { border-top: 1px solid var(--rule); }
.finder__row { display: flex; gap: .2rem; max-width: var(--max); margin: 0 auto; overflow-x: auto; padding: .35rem var(--pad); scrollbar-width: none; }
.finder__row::-webkit-scrollbar { display: none; }
.fchip { flex: 0 0 auto; padding: .25rem .7rem; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background-color .2s, color .2s; }
.fchip:hover { color: var(--ink); background: rgba(40, 53, 147, .07); }
.fchip.is-active { background: var(--carbon); color: #fff; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__title {
  font-weight: 800; font-variation-settings: 'wdth' 68; font-size: clamp(3rem, 7.6vw, 6rem);
  line-height: .92; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.hero__title .amp { color: var(--red); font-weight: 700; }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-2); }

/* the estimate sheet */
.est {
  position: relative; background: #fff; padding: 1.4rem 1.5rem 1.2rem 3rem;
  border: 1px solid #E4E2D8; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(28, 30, 43, .06), 0 14px 34px -12px rgba(28, 30, 43, .22);
  transform: rotate(-.6deg);
  background-image: linear-gradient(90deg, transparent 2.15rem, var(--rule-red) 2.15rem, var(--rule-red) calc(2.15rem + 1px), transparent calc(2.15rem + 1px));
}
.est__head { display: flex; align-items: baseline; gap: .8rem; padding-bottom: .7rem; border-bottom: 2px solid var(--red); }
.est__brand { font-weight: 800; font-variation-settings: 'wdth' 72; font-size: 1.35rem; color: var(--red); margin-right: auto; line-height: 1.1; }
.est__kind { font-weight: 700; color: var(--red); font-size: .95rem; }
.est__no { color: var(--red); font-size: .95rem; font-variant-numeric: tabular-nums; }
.est__no b { font-weight: 700; letter-spacing: .04em; }
.est__line { display: flex; align-items: baseline; gap: .7rem; margin-top: .9rem; border-bottom: 1px solid var(--rule); padding-bottom: .15rem; min-height: 2.2rem; }
.est__k { color: var(--red); font-weight: 600; font-size: .95rem; flex: 0 0 auto; }
.est__line .hand { font-size: 1.25rem; line-height: 1.3; }
.est__line--name input {
  flex: 1; min-width: 0; border: 0; padding: 0; background: transparent;
  font-family: var(--f-hand); font-size: 1.45rem; color: var(--carbon); line-height: 1.3;
}
.est__line--name input::placeholder { color: rgba(40, 53, 147, .42); }
.est__line--name input:focus-visible { outline: 0; }
.est__line--name:focus-within { border-bottom-color: var(--carbon); }
.est__table { width: 100%; margin-top: 1.1rem; border-collapse: collapse; }
.est__table thead th { text-align: left; color: var(--red); font-weight: 700; font-size: .88rem; padding: .3rem 0; border-bottom: 1.5px solid var(--red); }
.est__table thead th:last-child, .est__table td { text-align: right; }
.est__table tbody th, .est__table tbody td { padding: .38rem 0; border-bottom: 1px solid var(--rule); font-size: 1.12rem; line-height: 1.35; vertical-align: baseline; }
.est__table tbody th { text-align: left; padding-right: 1rem; }
.est__table tbody td { white-space: nowrap; }
.est__table tfoot th { text-align: left; color: var(--red); font-weight: 700; font-size: .95rem; padding-top: .7rem; border-top: 1.5px solid var(--red); }
.est__table tfoot td { padding-top: .7rem; border-top: 1.5px solid var(--red); font-size: 1.15rem; }
.stamp {
  position: absolute; right: 1.4rem; top: 6.6rem; padding: .25rem .8rem;
  border: 2.5px solid var(--violet); border-radius: 6px; color: var(--violet);
  font-weight: 800; font-variation-settings: 'wdth' 80; font-size: 1.05rem; letter-spacing: .06em;
  transform: rotate(-9deg); opacity: .78; pointer-events: none;
}
.est__cap { margin-top: 1rem; font-size: .88rem; color: var(--ink-2); }

/* the one authored moment: each line is written in, left to right */
.est .w { clip-path: inset(0 100% 0 0); }
.est.is-written .w { animation: write .9s var(--ease) forwards; }
.est.is-written #estDate { animation-delay: .15s; }
.est.is-written tbody tr th { animation-delay: calc(.45s + var(--i) * .32s); }
.est.is-written tbody tr td { animation-delay: calc(.65s + var(--i) * .32s); }
.est.is-written tfoot .w { animation-delay: 2.4s; }
.est.no-anim .w { animation: none; clip-path: none; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .est .w { animation: none !important; clip-path: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .est { transform: none; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--pink { background: var(--pink); }
.sec--yellow { background: var(--yellow); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__title {
  font-weight: 800; font-variation-settings: 'wdth' 70; font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1; letter-spacing: -.015em; color: var(--ink); text-wrap: balance;
}
.sec__sub { color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
.find .sec__sub, .enq .sec__sub { margin-top: 1rem; }
@media (max-width: 760px) { .sec__head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services ledger ---------- */
.ledger { border-top: 2px solid var(--red); counter-reset: led; }
.ledger__item {
  counter-increment: led; display: grid; grid-template-columns: 3.2rem minmax(0, 15rem) minmax(0, 1fr); gap: .4rem 2rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule); transition: background-color .5s;
}
.ledger__item::before { content: counter(led); color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: .3rem; border-right: 1px solid var(--rule-red); }
.ledger__item.is-flash { background: rgba(40, 53, 147, .07); }
.ledger__name { font-weight: 800; font-variation-settings: 'wdth' 78; font-size: 1.45rem; line-height: 1.15; }
.ledger__d { max-width: 62ch; }
.tagrow { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin-top: .7rem; }
.tagrow li { font-family: var(--f-hand); color: var(--carbon); font-size: 1.02rem; padding: 0 .55rem; border: 1.2px solid rgba(40, 53, 147, .35); border-radius: 999px; }
@media (max-width: 760px) {
  .ledger__item { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .ledger__body { grid-column: 2; }
}

/* domain tool, on the yellow copy */
.domain { margin-top: clamp(40px, 6vw, 72px); padding: clamp(20px, 3vw, 36px); background: var(--yellow); border-radius: 4px; }
.domain__h { font-weight: 800; font-variation-settings: 'wdth' 78; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; }
.field { display: grid; gap: .35rem; margin-top: 1.1rem; max-width: 28rem; }
.field > span { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.field input, .field textarea {
  padding: .65rem .85rem; border: 1.5px solid #B9B6A6; border-radius: 4px; background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--carbon); outline: 0; box-shadow: 0 0 0 3px rgba(40, 53, 147, .15); }
.field input::placeholder, .field textarea::placeholder { color: #85847A; }
.domain__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: 1.4rem; }
.domain__sub { color: var(--red); font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.domain__list li { font-size: 1.22rem; word-break: break-all; padding: .2rem 0; border-bottom: 1px solid rgba(193, 39, 45, .25); }
.domain__note { margin-top: 1.2rem; font-size: .93rem; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 640px) { .domain__out { grid-template-columns: minmax(0, 1fr); } }

/* ---------- find me ---------- */
.find { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.checks { margin-top: 1.8rem; border-top: 1.5px solid var(--red); }
.chk label { display: flex; align-items: flex-start; gap: .85rem; padding: .7rem 0; border-bottom: 1px solid rgba(193, 39, 45, .22); cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk__box { flex: 0 0 auto; width: 1.45rem; height: 1.45rem; margin-top: .1rem; border: 1.6px solid var(--ink); border-radius: 3px; background: #fff; position: relative; }
.chk__box::after, .need__box::after {
  content: ''; position: absolute; left: .12rem; top: -.35rem; width: 1.5rem; height: 1.2rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M3 13c3 2 5 5 7 8 4-8 10-14 17-19' fill='none' stroke='%23283593' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  clip-path: inset(0 100% 0 0); transition: clip-path .35s var(--ease);
}
.chk input:checked + .chk__box::after, .need input:checked + .need__box::after { clip-path: inset(0 0 0 0); }
.chk input:focus-visible + .chk__box, .need input:focus-visible + .need__box { outline: 2.5px solid var(--carbon); outline-offset: 3px; }
.score { margin-top: 1.6rem; }
.score__bar { height: 8px; background: rgba(28, 30, 43, .1); border-radius: 4px; overflow: hidden; }
.score__bar span { display: block; height: 100%; width: 0; background: var(--carbon); transition: width .5s var(--ease); }
.score__text { margin-top: .7rem; font-weight: 700; }
.score__gaps { color: var(--ink-2); margin: .2rem 0 1rem; max-width: 60ch; }
.find__honest { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed rgba(193, 39, 45, .45); font-size: .97rem; max-width: 62ch; }

.find__phone { position: sticky; top: 140px; }
.phone { max-width: 320px; margin: 0 auto; background: var(--ink); border-radius: 30px; padding: 12px; box-shadow: 0 18px 40px -16px rgba(28, 30, 43, .45); }
.phone__bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem; background: #fff; border-radius: 18px 18px 0 0; font-size: .78rem; border-bottom: 1px solid #E5E5E5; }
.phone__lock, .phone__speed { font-weight: 700; color: var(--red); }
.phone__lock.is-ok, .phone__speed.is-ok { color: var(--ok); }
.phone__url { flex: 1; text-align: center; color: var(--ink-2); }
.phone__screen { background: #fff; border-radius: 0 0 18px 18px; padding: .8rem; display: grid; gap: .55rem; }
.pl__photos { height: 96px; border-radius: 8px; background: #EEEDE8; display: grid; place-items: center; color: #77766C; font-size: .85rem; transition: background-color .3s, color .3s; }
.pl__photos.is-ok { background: #A9B7C9; color: #fff; font-weight: 700; }
.pl__name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; word-break: break-word; }
.pl__meta { font-size: .8rem; color: var(--ink-2); }
.pl__row { display: flex; gap: .5rem; align-items: center; font-size: .84rem; color: #8A3A3D; }
.pl__row i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.pl__row.is-ok { color: var(--ink); }
.pl__row.is-ok i { background: var(--ok); }
.pl__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .2rem; }
.pl__btn { text-align: center; padding: .45rem 0; border-radius: 6px; font-size: .8rem; font-weight: 700; background: #EEEDE8; color: #8C8B82; transition: background-color .3s, color .3s; }
.pl__btn.is-ok { background: var(--carbon); color: #fff; }
.phone__cap { margin-top: .8rem; text-align: center; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 900px) { .find { grid-template-columns: minmax(0, 1fr); } .find__phone { position: static; } }

/* ---------- live samples ---------- */
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 2px solid var(--ink); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: 0 0 auto; padding: .6rem 1.1rem; border: 1.5px solid #CFCDC2; border-bottom: 0; border-radius: 6px 6px 0 0;
  background: #F1F0EA; color: var(--ink-2); font-weight: 700; transition: background-color .2s, color .2s;
}
.tabs [role="tab"]:hover { color: var(--ink); background: #fff; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.demo { padding: clamp(20px, 3vw, 32px) 0 0; }
.demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.demo__lead { max-width: 60ch; }
.tag { font-family: var(--f-hand); color: var(--violet); border: 1.8px solid var(--violet); border-radius: 5px; padding: 0 .6rem; transform: rotate(-2deg); font-size: 1.02rem; }
.demo__cap { margin-top: 1.2rem; font-size: .9rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { padding: .4rem .9rem; border: 1.5px solid #B9B6A6; border-radius: 999px; background: #fff; font-weight: 600; font-size: .94rem; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: #fff; }

/* billing */
.bill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.bill__h { font-weight: 800; font-variation-settings: 'wdth' 80; font-size: 1.15rem; margin-bottom: .7rem; }
.bill__h--sp { margin-top: 1.4rem; }
.bill__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.item { display: grid; gap: .05rem; text-align: left; padding: .65rem .75rem; border: 1.5px solid #CFCDC2; border-radius: 6px; background: #fff; transition: border-color .2s, background-color .2s; }
.item:hover:not(:disabled) { border-color: var(--carbon); background: #F6F7FC; }
.item:disabled { opacity: .45; cursor: not-allowed; }
.item__n { font-weight: 700; font-size: .95rem; }
.item__p { font-variant-numeric: tabular-nums; }
.item__s { font-size: .8rem; color: var(--ink-2); }
.bill__sheet {
  background: #fff; padding: 1rem 1.1rem 1.1rem 2.2rem; border: 1px solid #E4E2D8; border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(28, 30, 43, .3);
  background-image: linear-gradient(90deg, transparent 1.45rem, var(--rule-red) 1.45rem, var(--rule-red) calc(1.45rem + 1px), transparent calc(1.45rem + 1px));
}
.bill__lines { display: grid; }
.bline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--rule); font-family: var(--f-hand); color: var(--carbon); font-size: 1.1rem; }
.bline__a { font-variant-numeric: tabular-nums; }
.bline__minus { width: 1.8rem; height: 1.8rem; border: 1.5px solid #CFCDC2; border-radius: 50%; background: #fff; color: var(--ink); line-height: 1; font-family: var(--f-print); }
.bline__minus:hover { border-color: var(--red); color: var(--red); }
.bill__empty { color: var(--ink-2); font-size: .95rem; padding: .4rem 0; }
.bill__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; padding-top: .6rem; border-top: 1.5px solid var(--red); color: var(--red); font-weight: 700; }
.bill__total strong { font-family: var(--f-hand); color: var(--carbon); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bill__btns { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.tile { padding: .7rem .8rem; background: #fff; border: 1px solid #E0DED3; border-radius: 6px; display: grid; gap: .1rem; }
.tile__k { font-size: .82rem; color: var(--ink-2); }
.tile__v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 85; }
.stock { display: grid; gap: .35rem; }
.stk { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 3.6rem; gap: .6rem; align-items: center; font-size: .9rem; }
.stk__bar { height: 7px; background: rgba(28, 30, 43, .1); border-radius: 4px; overflow: hidden; }
.stk__fill { display: block; height: 100%; background: var(--carbon); transition: width .4s var(--ease); }
.stk.is-low .stk__fill { background: var(--red); }
.stk.is-low .stk__c { color: var(--red); font-weight: 700; }
.stk__c { text-align: right; font-variant-numeric: tabular-nums; }
.msgs { display: grid; gap: .5rem; margin-top: 1rem; }
.msg { padding: .7rem .85rem; border-radius: 6px; background: #E6F0EA; font-size: .92rem; }
.msg--warn { background: var(--pink); }
.bill__reset { margin-top: 1rem; }
@media (max-width: 980px) { .bill { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .bill > :last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bill { grid-template-columns: minmax(0, 1fr); } }

/* dashboard */
#demo-dash .tiles { margin-bottom: 1.4rem; }
.chart {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 18px); align-items: end; height: 260px; padding: 0 .2rem; border-bottom: 2px solid var(--ink);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 52px; background-position: 0 -1px;
}
.bar { display: grid; align-content: end; justify-items: center; height: 100%; position: relative; }
.bar__v { font-family: var(--f-hand); color: var(--carbon); font-size: 1.05rem; opacity: 0; transition: opacity .2s; }
.bar:hover .bar__v, .bar:focus .bar__v { opacity: 1; }
.bar__fill { width: 100%; max-width: 54px; background: var(--carbon); border-radius: 3px 3px 0 0; transition: height .7s var(--ease), background-color .2s; }
.bar:hover .bar__fill, .bar:focus .bar__fill { background: var(--red); }
.bar__d { position: absolute; bottom: -1.7rem; font-size: .85rem; color: var(--ink-2); }
#demo-dash .demo__cap { margin-top: 2.4rem; }

/* automation */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.node { display: grid; gap: .25rem; align-content: start; padding: .9rem; background: #fff; border: 1.5px solid #D6D4C9; border-radius: 6px; transition: border-color .3s, background-color .3s; }
.node__n { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.node__t { font-weight: 800; font-variation-settings: 'wdth' 85; }
.node__d { font-size: .9rem; color: var(--ink-2); }
.node.on { border-color: var(--carbon); background: #F2F3FA; }
.node.done { border-color: var(--ok); }
.node.done .node__n { color: var(--ok); }
.flow__ctl { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.flow__log { font-family: var(--f-hand); color: var(--carbon); font-size: 1.1rem; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* chatbot */
.chatgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 52px); align-items: start; }
.chatbox { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; max-width: 520px; }
.chatbox__head { padding: .8rem 1rem; font-weight: 700; background: var(--carbon); color: #fff; transition: background-color .3s; }
.chatbox[data-chan="wa"] .chatbox__head { background: #1E6B4A; }
.chatbox[data-chan="mail"] .chatbox__head { background: var(--ink); }
.chatbox__log { display: grid; gap: .55rem; align-content: start; padding: 1rem; height: 300px; overflow-y: auto; overscroll-behavior: contain; background: #F7F6F1; }
.cb { max-width: 86%; padding: .55rem .8rem; border-radius: 12px; font-size: .95rem; line-height: 1.45; display: grid; gap: .1rem; animation: pop .3s var(--ease); }
.cb--bot { justify-self: start; background: #fff; border: 1px solid #E0DED3; border-bottom-left-radius: 3px; }
.cb--me { justify-self: end; background: var(--carbon); color: #fff; border-bottom-right-radius: 3px; }
.chatbox[data-chan="wa"] .cb--me { background: #1E6B4A; }
.chatbox[data-chan="mail"] .cb { border-radius: 4px; }
.cb--note { justify-self: stretch; max-width: 100%; background: transparent; border: 1.5px dashed var(--violet); color: var(--violet); font-family: var(--f-hand); font-size: 1rem; }
.cb__sub { font-size: .76rem; font-weight: 700; opacity: .75; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chatbox__quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem; border-top: 1px solid #E0DED3; }
.qbtn { padding: .35rem .75rem; border: 1.5px solid #B9B6A6; border-radius: 999px; background: #fff; font-weight: 600; font-size: .88rem; transition: border-color .2s, color .2s; }
.qbtn:hover { border-color: var(--carbon); color: var(--carbon); }
.chatbox__form { display: flex; gap: .5rem; padding: .7rem 1rem 1rem; border-top: 1px solid #E0DED3; }
.chatbox__form[hidden] { display: none; }
.chatbox__form input { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1.5px solid #B9B6A6; border-radius: 6px; }
.chatbox__form input:focus { outline: 0; border-color: var(--carbon); }
.chatside__list { display: grid; gap: .5rem; }
.chatside__list li { position: relative; padding-left: 1.6rem; }
.chatside__list li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 1.1rem; height: .9rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M3 13c3 2 5 5 7 8 4-8 10-14 17-19' fill='none' stroke='%23283593' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chatside__honest { margin-top: 1.2rem; padding: .9rem 1.1rem; background: var(--yellow); border-radius: 4px; font-size: .95rem; max-width: 52ch; }
@media (prefers-reduced-motion: reduce) { .cb { animation: none; } }
@media (max-width: 860px) { .chatgrid { grid-template-columns: minmax(0, 1fr); } }

/* ERP */
.erp { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.erp__mods { display: grid; gap: .3rem; }
.mod { text-align: left; padding: .6rem .9rem; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font-weight: 700; transition: background-color .2s, color .2s; }
.mod:hover { background: #F2F3FA; }
.mod[aria-pressed="true"] { background: var(--carbon); color: #fff; border-radius: 4px; }
.erp__detail { background: #fff; border: 1px solid #E4E2D8; border-radius: 3px; padding: clamp(18px, 3vw, 30px); min-height: 14rem; }
.erp__h { font-weight: 800; font-variation-settings: 'wdth' 75; font-size: 2rem; line-height: 1.05; color: var(--red); }
.erp__d { margin-top: .5rem; color: var(--ink-2); }
.erp__list { margin-top: 1rem; display: grid; gap: .1rem; }
.erp__list li { font-family: var(--f-hand); color: var(--carbon); font-size: 1.2rem; border-bottom: 1px solid var(--rule); padding: .15rem 0; }
.erp__when { margin-top: 1rem; font-weight: 700; color: var(--violet); }
@media (max-width: 700px) { .erp { grid-template-columns: minmax(0, 1fr); } .erp__mods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- process: counterfoils on a perforated pad ---------- */
.stubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: stub; background: #fff; border-radius: 4px; box-shadow: 0 12px 30px -18px rgba(28, 30, 43, .35); }
.stub { counter-increment: stub; padding: clamp(18px, 2.4vw, 28px); border-left: 2px dashed #D9D6C8; }
.stub:first-child { border-left: 0; }
.stub::before { content: 'Step ' counter(stub); display: block; color: var(--red); font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; margin-bottom: .8rem; }
.stub__t { font-weight: 800; font-variation-settings: 'wdth' 75; font-size: 1.6rem; line-height: 1.1; }
.stub__d { margin-top: .5rem; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) {
  .stubs { grid-template-columns: minmax(0, 1fr); }
  .stub { border-left: 0; border-top: 2px dashed #D9D6C8; }
  .stub:first-child { border-top: 0; }
}

/* ---------- enquiry ---------- */
.enq { border-top: 1.5px solid var(--red); }
.enq__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.enq__to { margin-top: 1.4rem; font-weight: 600; }
.enq__to a { font-family: var(--f-hand); font-size: 1.3rem; font-weight: 700; word-break: break-all; }
.enq__form { background: #fff; border: 1px solid #E4E2D8; border-radius: 3px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 14px 34px -18px rgba(28, 30, 43, .3); }
.fs { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.fs legend, .fs.field > span { font-weight: 700; color: var(--red); font-size: .95rem; margin-bottom: .6rem; padding: 0; }
.fs.field { max-width: none; margin-top: 0; }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.need { display: flex; align-items: flex-start; gap: .65rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: .97rem; }
.need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.need__box { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .15rem; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; background: #fff; }
.need__box::after { left: .05rem; top: -.3rem; width: 1.3rem; height: 1.05rem; }
.enq__btns { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 860px) { .enq__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .needs { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   v4: the carbon sheet. The dark ground is carbon paper; the copies sit on it.
   ===================================================================== */
html, body { overflow-x: clip; }
:root { --night: #0E1236; --night-2: #171C4D; --chalk: #F3F1EA; --chalk-dim: rgba(243, 241, 234, .74); --red-lite: #FF5B52; --carbon-lite: #A9B8FF; }

/* header on carbon */
.top { background: var(--night); border-bottom: 1px solid rgba(243, 241, 234, .12); }
.brand { color: var(--red-lite); }
.nav a { color: var(--chalk); }
.nav a:hover { color: var(--red-lite); }
.finder { border-top-color: rgba(243, 241, 234, .1); }
.fchip { color: var(--chalk-dim); }
.fchip:hover { color: var(--chalk); background: rgba(243, 241, 234, .08); }
.fchip.is-active { background: var(--red); color: #fff; }
.top .btn--ink { background: var(--red); }
.top .btn--ink:hover { background: var(--red-deep); }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--chalk);
  min-height: calc(100svh - 104px); display: flex; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero__light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px circle at var(--mx, 72%) var(--my, 38%), rgba(98, 122, 255, .30), transparent 62%),
    radial-gradient(900px circle at 92% 115%, rgba(193, 39, 45, .42), transparent 60%),
    radial-gradient(700px circle at -5% -10%, rgba(98, 122, 255, .16), transparent 60%); }
.hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero__title { color: var(--chalk); font-variation-settings: 'wdth' 62; font-size: clamp(3.6rem, 9.6vw, 8.6rem); line-height: .86; letter-spacing: -.025em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .ln > span { display: inline-block; will-change: transform; }
.hero__title .amp { color: var(--red-lite); font-style: normal; font-weight: 700; }
.hero__sub { color: var(--chalk-dim); }
.hero__note { color: rgba(243, 241, 234, .6); }
.hero .btn--line { color: var(--chalk); }
.hero .btn--line:hover { background: var(--chalk); border-color: var(--chalk); color: var(--night); }

/* the stack of copies, tilting with the pointer */
.stack { position: relative; transform-style: preserve-3d; transform: perspective(1500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sheet { border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 40px 70px -28px rgba(0, 0, 0, .7); }
.sheet--yellow, .sheet--pink { position: absolute; inset: 0; }
.sheet--yellow { background: #F6E9A8; --rest: translate3d(34px, 26px, -70px) rotate(6deg); transform: var(--rest); }
.sheet--pink { background: #F4CDD2; --rest: translate3d(17px, 13px, -35px) rotate(3deg); transform: var(--rest); }
.stack .est { --rest: translate3d(0, 0, 0) rotate(-1.8deg); transform: var(--rest); border: 0; }
.motion .stack .sheet { opacity: 0; }
.stack.is-in .sheet { animation: deal 1.15s var(--ease) both; }
.stack.is-in .sheet--pink { animation-delay: .1s; }
.stack.is-in .est { animation-delay: .2s; }
@keyframes deal { from { opacity: 0; transform: translate3d(-30px, 120%, 0) rotate(-16deg); } to { opacity: 1; transform: var(--rest); } }
.motion .stamp { opacity: 0; }
.stamp.is-slammed { animation: slam .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes slam { from { opacity: 0; transform: scale(2.6) rotate(-24deg); } to { opacity: .85; transform: scale(1) rotate(-9deg); } }
@media (max-width: 900px) { .hero { min-height: 0; } .hero__grid { grid-template-columns: minmax(0, 1fr); } .stack { margin-right: 18px; } .sheet--yellow { --rest: translate3d(14px, 14px, 0) rotate(3deg); } .sheet--pink { --rest: translate3d(7px, 7px, 0) rotate(1.5deg); } }

/* the marquee band */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: clamp(14px, 2vw, 22px) 0; }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marq 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.mq { font-weight: 800; font-variation-settings: 'wdth' 66; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; padding: 0 .5em; }
.mq--hand { font-family: var(--f-hand); font-weight: 400; color: #FAF2CC; font-size: clamp(1.5rem, 3vw, 2.4rem); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* bigger section titles everywhere */
.sec__title { font-variation-settings: 'wdth' 64; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .94; letter-spacing: -.02em; }

/* services as sheets sliding sideways while the section is pinned (wide screens only) */
.hs.is-pinned { overflow: hidden; }
.hs.is-pinned .ledger { display: flex; align-items: stretch; gap: 28px; width: max-content; padding: 28px var(--pad) 48px; border-top: 0; will-change: transform; }
.hs.is-pinned .ledger__item {
  flex: 0 0 auto; width: clamp(340px, 30vw, 430px); display: flex; flex-direction: column; gap: .8rem;
  padding: 30px 30px 26px; background: #fff; border: 0; border-radius: 3px; transform: rotate(var(--r, 0deg));
  box-shadow: 0 2px 4px rgba(28, 30, 43, .06), 0 30px 50px -28px rgba(28, 30, 43, .45);
}
.hs.is-pinned .ledger__item:nth-child(3n+2) { background: var(--pink); --r: .8deg; }
.hs.is-pinned .ledger__item:nth-child(3n+3) { background: var(--yellow); --r: -.6deg; }
.hs.is-pinned .ledger__item:nth-child(3n+1) { --r: -.4deg; }
.hs.is-pinned .ledger__item::before { content: counter(led, decimal-leading-zero); border: 0; padding: 0; font-weight: 800; font-variation-settings: 'wdth' 62; font-size: 4.6rem; line-height: .9; color: var(--red); }
.hs.is-pinned .ledger__name { font-size: 2rem; font-variation-settings: 'wdth' 70; line-height: 1; }
.hs.is-pinned .ledger__item.is-flash { outline: 3px solid var(--carbon); outline-offset: 4px; }
#services { padding-bottom: clamp(48px, 6vw, 80px); }
.hs:not(.is-pinned) { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* the statement */
.say { background: var(--night); color: var(--chalk); padding: clamp(96px, 14vw, 190px) 0; }
.say__big { font-weight: 800; font-variation-settings: 'wdth' 64; font-size: clamp(2.4rem, 6.2vw, 5.6rem); line-height: .98; letter-spacing: -.02em; max-width: 21ch; text-wrap: balance; }
.strike { color: rgba(243, 241, 234, .5); --s: 0%;
  background: linear-gradient(var(--red-lite), var(--red-lite)) no-repeat 0 58% / var(--s) .11em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.no-motion .strike, :root:not(.motion) .strike { --s: 100%; }
.say__small { margin-top: 2rem; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--carbon-lite); max-width: 40ch; }

/* counterfoils tear in */
.stubs { box-shadow: 0 30px 60px -30px rgba(28, 30, 43, .45); }

/* the enquiry on red */
.sec--red { background: var(--red); color: #fff; border-top: 0; }
.sec--red .sec__title { color: #fff; }
.sec--red .sec__sub { color: rgba(255, 255, 255, .86); }
.sec--red .enq__to { color: #fff; }
.sec--red .enq__to a { color: #fff; }
.sec--red .enq__form { color: var(--ink); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 40px 70px -30px rgba(60, 0, 0, .6); }
.sec--red :focus-visible { outline-color: #fff; }
.sec--red .enq__form :focus-visible { outline-color: var(--carbon); }

/* =====================================================================
   v5: the pen trail, the copies drifting apart, the scroll story, rising titles, magnetic buttons
   ===================================================================== */
.hero ::selection, .say ::selection, .story ::selection, .top ::selection { background: rgba(255, 91, 82, .45); color: #fff; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* sheets: once dealt, their transform can be pushed further by the scroll (custom properties) */
.stack .sheet { --sx: 0px; --sy: 0px; --sr: 0deg; }
.sr-bar { --bar: 0; }
.stack .sheet.is-settled { animation: none !important; opacity: 1;
  transform: var(--rest) translate3d(var(--sx, 0px), var(--sy, 0px), 0) rotate(var(--sr, 0deg)); }

/* rising section titles */
.rise-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.rise-w > span { display: inline-block; will-change: transform; }

/* the scroll story */
.story { background: var(--night); color: var(--chalk); }
.story__pin { min-height: 100svh; display: flex; align-items: center; padding: clamp(64px, 8vw, 110px) 0; }
.story__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.story__title { color: var(--chalk); }
.story__steps { margin-top: 2.2rem; display: grid; gap: 1.4rem; counter-reset: st; }
.story__step { counter-increment: st; padding-left: 3.2rem; position: relative; opacity: .38; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.story__step::before { content: counter(st); position: absolute; left: 0; top: .05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid currentColor;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.story__step.is-on { opacity: 1; transform: translateX(6px); }
.story__step.is-on::before { background: var(--red-lite); border-color: var(--red-lite); color: #fff; }
.story__step h3 { font-weight: 800; font-variation-settings: 'wdth' 72; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; }
.story__step p { margin-top: .35rem; color: var(--chalk-dim); max-width: 46ch; }

.slip { --slip-bg: #FFFFFF; --slip-fg: #1C1E2B; --slip-rule: #C7D5EC; --slip-line: #C1272D; --slip-accent: #C1272D;
  --slip-r: 3px; --slip-rot: -1.4deg; --margin-o: 1; --slip-tag: #5A3E9E;
  position: relative; border-radius: var(--slip-r, 3px); padding: 26px 28px 22px;
  background: var(--slip-bg, #fff); color: var(--slip-fg, var(--ink));
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 40px 80px -30px rgba(0, 0, 0, .75);
  transform: rotate(var(--slip-rot, -1.4deg)); }
.slip::before { content: ''; position: absolute; top: 0; bottom: 0; left: 18px; width: 1px; background: var(--rule-red); opacity: var(--margin-o, 1); }
.slip__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .7rem; border-bottom: 2px solid var(--slip-line, var(--red)); }
.slip__title { font-weight: 800; font-variation-settings: 'wdth' 72; font-size: 1.35rem; color: var(--slip-accent, var(--red)); }
.slip__tag { font-family: var(--f-hand); color: var(--slip-tag); border: 1.8px solid var(--slip-tag); border-radius: 5px; padding: 0 .55rem; transform: rotate(-3deg); font-size: .98rem; }
.slip__rows { margin-top: .5rem; }
.sr-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--slip-rule, var(--rule)); min-height: 3rem; }
.sr-name { position: relative; }
.sr-hand, .sr-type { display: block; white-space: nowrap; }
.sr-hand { font-family: var(--f-hand); color: var(--carbon); font-size: 1.25rem; }
.sr-type { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-weight: 600; opacity: 0; }
.sr-amt { position: relative; text-align: right; font-variant-numeric: tabular-nums; min-width: 5.5rem; }
.sr-amt .sr-hand { font-size: 1.25rem; }
.sr-amt .sr-type { left: auto; right: 0; }
.sr-bar { position: absolute; left: 0; bottom: .3rem; height: 6px; width: var(--w, 0%); border-radius: 3px; background: var(--red-lite);
  transform-origin: 0 50%; transform: scaleX(var(--bar, 0)); opacity: .9; }
.slip__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; padding-top: .6rem; border-top: 2px solid var(--slip-line, var(--red)); font-weight: 700; color: var(--slip-accent, var(--red)); }
.slip__total strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; color: var(--slip-fg, var(--ink)); font-variation-settings: 'wdth' 80; font-weight: 800; }

/* without the scroll animation (phones, reduced motion): show the finished, readable state */
.story:not(.is-live) .story__step { opacity: 1; transform: none; }
.story:not(.is-live) .story__step::before { background: transparent; border-color: currentColor; color: inherit; }
.story:not(.is-live) .sr-bar { transform: scaleX(1); }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .story__pin { min-height: 0; }
  .slip { transform: none; }
}

/* magnetic buttons ease back */
.btn.is-mag { transition: transform .45s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s, border-color .2s; }

/* the 404 page */
.nf { min-height: calc(100svh - 64px); }
.nf .wrap { position: relative; }
.nf__no { display: inline-block; font-family: var(--f-hand); color: var(--red-lite); font-size: 1.7rem; margin-bottom: .8rem; transform: rotate(-2deg); }
.nf .hero__title { max-width: 14ch; }

/* ---------- footer, toast ---------- */
.foot { background: var(--night); color: #D9DAE2; padding: 2rem 0; }
.foot__in { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: baseline; font-size: .95rem; }
.foot strong { color: #fff; font-weight: 800; font-variation-settings: 'wdth' 75; font-size: 1.15rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: .6rem 1.1rem; background: var(--ink); color: #fff; border-radius: 6px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 60; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
