/* Rivit marketing site — shared styles for index, pricing, jobtread-xero-integration, contact.
   Tokens and type treatment carried over from the original waitlist page (Inter 500, tight
   tracking, square yellow buttons, panel-grey bands with white cards). */
:root {
  --yellow: #F2F71E;
  --yellow-press: #e3e81a;
  --ink: #111214;
  --line: #d9dadc;
  --panel: #f4f4f2;
  --card-line: #ececec;
  --grey-text: #a9a9a9;
  --body-text: #6a6c70;
  --inbox: #ececec;
  --approved: #e2f6e5;
  --approved-ink: #1e7a34;
  --synced: #ece6fb;
  --synced-ink: #5b3fc4;
  --review: #f0a53a;
  --wrap: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--yellow); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.05em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.lead {
  font-size: clamp(18px, 1.7vw, 21px);
  letter-spacing: -0.04em;
  color: var(--grey-text);
  line-height: 1.45;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--body-text);
  margin-bottom: 20px;
}
.eyebrow b { font-weight: 600; color: var(--ink); background: var(--yellow); padding: 2px 7px; }
p { color: var(--body-text); font-size: 15px; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 14px 22px;
  border: 1px solid transparent; border-radius: 0;
  background: var(--yellow); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .05s, border-color .15s;
}
.btn:hover { background: var(--yellow-press); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2c30; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--card-line);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 40px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-right: auto; list-style: none; }
.nav-links a { font-size: 14px; text-decoration: none; color: #3c3e42; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); box-shadow: 0 6px 0 -4px var(--yellow); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .signin { font-size: 14px; text-decoration: none; color: #3c3e42; }
.nav-cta .signin:hover { color: var(--ink); }
.nav-cta .btn { padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 128px 0 0; text-align: center; overflow: hidden; }
.hero h1 { max-width: 900px; margin: 0 auto 32px; }
.hero h1 mark, h2 mark { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 .06em; }
.hero .lead { max-width: 620px; margin: 0 auto 44px; }
.hero .btn-row { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--grey-text); }
.hero-stage {
  margin-top: 112px;
  background: var(--panel);
  border-top: 1px solid var(--card-line);
  padding: 96px 0 0;
}
.page-hero { padding: 128px 0 112px; }
.page-hero h1 { font-size: clamp(38px, 5.2vw, 62px); max-width: 880px; margin-bottom: 22px; }
.page-hero .lead { max-width: 660px; margin-bottom: 32px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- App mockup (hero) ---------- */
.mock {
  position: relative;
  max-width: 980px; margin: 0 auto;
  text-align: left;
}
.mock-window {
  background: #fff;
  border: 8px solid #101010; border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
  overflow: hidden;
}
.mock-top { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--card-line); }
.mock-top img { height: 20px; }
.mock-crumb { font-size: 12px; color: #85878c; }
.mock-crumb b { color: var(--ink); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 300px 1fr; min-height: 430px; }
.mock-doc { background: #fafaf8; border-right: 1px solid var(--card-line); padding: 26px; display: flex; justify-content: center; }
.receipt {
  width: 190px; background: #fff; border: 1px solid var(--card-line);
  padding: 18px 16px 22px; font-size: 9.5px; color: #55575b; line-height: 1.7;
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
  transform: rotate(-1.5deg);
  align-self: flex-start;
}
.receipt strong { display: block; text-align: center; font-size: 12px; color: var(--ink); letter-spacing: .08em; margin-bottom: 2px; }
.receipt .c { text-align: center; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt hr { border: 0; border-top: 1px dashed #c9cbce; margin: 8px 0; }
.receipt .t { font-weight: 700; color: var(--ink); font-size: 11px; }
.mock-fields { padding: 24px 26px 28px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.mock-head h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.mock-actions { display: flex; gap: 8px; }
.chip { font-size: 11px; font-weight: 600; padding: 7px 13px; border: 1px solid var(--card-line); border-radius: 7px; background: #fff; }
.chip.yel { background: var(--yellow); border-color: var(--yellow); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.f { min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f label { display: block; font-size: 10.5px; color: #85878c; margin-bottom: 5px; }
.f div {
  font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.f.review div { border-color: var(--review); box-shadow: 0 0 0 2px rgba(240,165,58,.16); }
.tick { color: var(--approved-ink); font-size: 11px; font-weight: 600; flex: 0 0 auto; }
.mock-lines { margin-top: 18px; border-top: 1px solid var(--card-line); font-size: 11.5px; }
.mock-lines .r { display: grid; grid-template-columns: 1fr 150px 70px; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f2f0; color: #2b2d31; }
.mock-lines .r.h { color: #85878c; font-size: 10px; }
.mock-lines .r span:last-child { text-align: right; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.pill.inbox { background: var(--inbox); color: #6a6c70; }
.pill.approved { background: var(--approved); color: var(--approved-ink); }
.pill.synced { background: var(--synced); color: var(--synced-ink); }
.pill.soon { background: var(--ink); color: var(--yellow); }
.float {
  position: absolute; z-index: 2;
  background: #fff; border: 1px solid var(--card-line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  padding: 13px 15px; font-size: 12px; color: var(--ink);
  display: flex; align-items: center; gap: 11px;
}
.float small { display: block; font-size: 11px; color: #85878c; font-weight: 500; }
.float .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: 0 0 auto; }
.float .dot svg { width: 15px; height: 15px; }
.float.a { left: -56px; top: 318px; }
.float.b { right: -48px; top: 250px; }

/* ---------- Sections ---------- */
.section { padding: 152px 0; }
.section.panel { background: var(--panel); border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark p, .section.dark .lead { color: #9a9ca1; }
.section.dark .eyebrow { color: #9a9ca1; }
.sec-head { max-width: 720px; margin-bottom: 80px; }
.sec-head h2 { margin-bottom: 22px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Works-with strip */
.strip { padding: 48px 0; border-bottom: 1px solid var(--card-line); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 38px; font-size: 14px; color: var(--grey-text); }
.strip-inner strong { font-weight: 600; color: var(--ink); font-size: 17px; letter-spacing: -0.03em; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 34px 30px 36px; }
.card h3::after { content: ""; display: block; width: 26px; height: 3px; margin: 10px 0 12px; background: var(--yellow); border-radius: 2px; }
.card p { font-size: 14px; line-height: 1.55; }
.card .num { display: block; font-size: 13px; font-weight: 600; color: var(--grey-text); margin-bottom: 34px; }
.card.soon { border-style: dashed; background: transparent; }
.card .pill { margin-bottom: 14px; }
.section.dark .card { background: #1a1c1f; border-color: #2a2c30; }
.section.dark .card h3 { color: #fff; }

/* Problem list */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 104px; align-items: start; }
.problem ul { list-style: none; border-top: 1px solid var(--line); }
.problem li { padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 17px; letter-spacing: -0.02em; display: flex; gap: 16px; }
.problem li span { color: var(--grey-text); font-size: 13px; font-weight: 600; padding-top: 4px; flex: 0 0 22px; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 104px; align-items: center; }
.split h2 { margin-bottom: 24px; }
.split .lead { margin-bottom: 36px; }
.checks { list-style: none; margin: 0 0 40px; }
.checks li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; color: #3c3e42; }
.checks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translateY(-3px); }
.section.dark .checks li { color: #d5d6d8; }
.section.dark .checks li::before { border-color: var(--yellow); }

/* Phone video */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 16;
  background: #000; border: 9px solid #101010; border-radius: 40px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.18);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px;
  border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .15s;
}
/* display: grid above beats the hidden attribute site.js sets on play, so say it outright. */
.play[hidden] { display: none; }
.play:hover { transform: scale(1.06); }
.play svg { width: 24px; height: 24px; margin-left: 3px; }

/* Flow diagram (integration) */
.flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; gap: 18px; align-items: stretch; }
.flow .node { background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 24px 22px; }
.flow .node.core { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow .node.core p { color: #9a9ca1; }
.flow .node h3 { margin-bottom: 10px; }
.flow .node img { height: 22px; margin-bottom: 14px; filter: invert(1); }
.flow .node ul { list-style: none; font-size: 13.5px; color: var(--body-text); }
.flow .node li { padding: 5px 0; }
.flow .arrow { align-self: center; font-size: 13px; color: var(--grey-text); text-align: center; line-height: 1.3; }
.flow .arrow b { display: block; font-size: 22px; color: var(--ink); font-weight: 500; }

/* Sync table */
.table-wrap { overflow-x: auto; border: 1px solid var(--card-line); border-radius: 12px; background: #fff; }
table.sync { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.sync th { text-align: left; font-size: 12px; font-weight: 600; color: #85878c; padding: 14px 20px; border-bottom: 1px solid var(--card-line); background: #fafaf8; }
table.sync td { padding: 16px 20px; border-bottom: 1px solid #f2f2f0; color: #3c3e42; vertical-align: top; }
table.sync tr:last-child td { border-bottom: 0; }
table.sync td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Quote */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.05em; line-height: 1.15; color: #fff; margin-bottom: 28px; }
.quote blockquote mark { background: none; color: var(--yellow); }
.quote cite { font-style: normal; font-size: 14px; color: #9a9ca1; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px; }
.quotes blockquote { font-size: clamp(22px, 2vw, 27px); letter-spacing: -0.045em; line-height: 1.2; color: #fff; margin-bottom: 28px; }
.quotes blockquote mark { background: none; color: var(--yellow); }
.quotes figcaption { font-size: 14px; color: #d5d6d8; }
.quotes figcaption img { height: 26px; width: auto; margin-bottom: 16px; }
.quotes figcaption img.inv { filter: invert(1); }
.quotes figcaption img.tall { height: 52px; }
.quotes figcaption small { display: block; margin-top: 6px; font-size: 13px; color: #7d7f84; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; gap: 64px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 40px 32px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border-color: var(--ink); box-shadow: 0 20px 44px rgba(0,0,0,.08); }
.plan .tag { position: absolute; top: -12px; left: 32px; background: var(--yellow); font-size: 12px; font-weight: 600; padding: 3px 10px; }
.plan h3 { font-size: 20px; letter-spacing: -0.03em; }
.plan .for { font-size: 14px; min-height: 44px; margin-top: 6px; }
.plan .price { font-size: 48px; letter-spacing: -0.06em; line-height: 1; margin: 22px 0 6px; }
.plan .price small { font-size: 15px; letter-spacing: -0.02em; color: var(--grey-text); font-weight: 500; }
.plan .docs { font-size: 14px; color: var(--ink); padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--card-line); }
.plan .checks { flex: 1; margin-bottom: 26px; }
.plan .checks li { font-size: 14px; padding: 7px 0 7px 28px; }
.plan .checks li::before { top: 13px; }
.fine { font-size: 13px; color: var(--grey-text); text-align: center; margin-top: 28px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 44px 28px 0; font-size: 17px; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: 26px; font-weight: 400; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 30px 0; }

/* CTA band */
.cta { background: var(--yellow); padding: 144px 0; text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto 22px; }
.cta p { color: #3c3e42; font-size: 17px; max-width: 560px; margin: 0 auto 40px; }
.cta .btn-row { justify-content: center; }
.cta .btn.ghost { border-color: var(--ink); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 104px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--card-line); border-radius: 12px; padding: 34px 30px; }
.field-row { display: flex; gap: 20px; }
.field { flex: 1; min-width: 0; margin-bottom: 22px; }
.field label { display: block; font-size: 14px; margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field textarea::placeholder { color: var(--grey-text); }
.field .opt { color: var(--grey-text); font-size: 12.5px; margin-left: 6px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,18,20,.08); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-msg:empty { margin-top: 0; min-height: 0; }
.form-msg.err { color: #c0392b; }
.success { display: none; padding: 26px 24px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf5; }
.success h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal-line { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--grey-text); }
.steps { list-style: none; counter-reset: s; margin-top: 34px; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; color: #3c3e42; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 20px; font-size: 13px; font-weight: 600; color: var(--grey-text); }
.steps li b { display: block; color: var(--ink); font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 104px 0 44px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 80px; border-bottom: 1px solid #2a2c30; }
.footer img { height: 28px; filter: invert(1); margin-bottom: 18px; }
.footer p { color: #9a9ca1; font-size: 14px; max-width: 300px; }
.footer h4 { font-size: 13px; font-weight: 600; color: #9a9ca1; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: 14px; text-decoration: none; color: #e6e7e8; }
.footer li a:hover { color: var(--yellow); }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #7d7f84; }

/* Video modal */
.video-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.85); }
.video-modal[hidden] { display: none; }
.video-modal video { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 12px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.video-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.video-close:hover { background: rgba(255,255,255,.24); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float.a { left: -12px; }
  .float.b { right: -12px; }
}
@media (max-width: 960px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan .for { min-height: 0; }
  .split, .problem, .form-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow b { transform: rotate(90deg); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 112px 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 20px; gap: 0; }
  /* The toggle sits after the links in the markup: keep it on the logo's row when the menu opens. */
  .nav.open .nav-toggle { order: 1; }
  .nav.open .nav-links { order: 2; }
  .nav.open .nav-cta { order: 3; }
  .nav.open .nav-links { display: block; width: 100%; margin: 8px 0 12px; }
  .nav.open .nav-links li { border-bottom: 1px solid var(--card-line); }
  .nav.open .nav-links a { display: block; padding: 14px 0; font-size: 16px; box-shadow: none; }
  .nav.open .nav-cta { display: flex; width: 100%; justify-content: space-between; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-doc { display: none; }
  .float { display: none; }
  .hero { padding-top: 76px; }
  .hero-stage { margin-top: 68px; padding-top: 44px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .mock-window { border-width: 6px; border-radius: 14px 14px 0 0; }
  .mock-fields { padding: 18px 16px 22px; }
  .mock-crumb { display: none; }
  .mock-lines .r { grid-template-columns: 1fr 64px; }
  .mock-lines .r span:nth-child(2) { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .cta { padding: 92px 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .sec-head { margin-bottom: 52px; }
  .page-hero { padding: 72px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 620px) {
  .strip-inner > span { flex-basis: 100%; text-align: center; }
}

/* ===== Home v2 (13 Nov 2026): product-led hero, proof strip, editorial sections ===== */
.card h3::after { display: none; }
.card h3 { margin-bottom: 10px; }
.lede { max-width: 760px; margin-bottom: 72px; }
.lede h2 { margin-bottom: 22px; }

/* Hero */
.hero2 { padding: 104px 0 0; overflow: hidden; }
.hero2-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: end; }
.hero2 h1 { font-size: clamp(44px, 6.6vw, 92px); letter-spacing: -0.06em; line-height: .98; }
.hero2 h1 mark { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 .04em; }
.hero2-side .lead { margin-bottom: 30px; }
.hero2 .hero-note { text-align: left; }
.stage { margin-top: 88px; background: var(--panel); border-top: 1px solid var(--card-line); padding: 72px 0 28px; }
.stage-note { font-size: 12.5px; color: var(--grey-text); text-align: center; margin-top: 22px; }

/* App replica */
.app { background: #fff; border: 1px solid #dcdcda; border-radius: 14px; box-shadow: 0 40px 80px -20px rgba(17,18,20,.22), 0 2px 6px rgba(17,18,20,.05); overflow: hidden; font-size: 12.5px; font-weight: 400; color: #000; text-align: left; }
.app-bar { height: 44px; display: flex; align-items: center; gap: 22px; padding: 0 16px; border-bottom: 1px solid var(--card-line); }
.app-bar img { height: 19px; }
.app-search { color: #a0a3b1; font-size: 12px; flex: 1; }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8.5px; font-weight: 600; flex: 0 0 auto; background: #ececea; color: #55575b; }
.av-k { background: #f6d5ea; color: #7a1f5c; } .av-j { background: #d9ecd2; color: #2c6b1d; } .av-s { background: #fde3c8; color: #8a4b0c; }
.app-grid { display: grid; grid-template-columns: 46px 232px minmax(0, 1fr) 372px; height: 560px; }
.app-rail { border-right: 1px solid var(--card-line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; }
.app-rail svg { width: 30px; height: 30px; padding: 7px; border-radius: 7px; fill: none; stroke: #3c3e42; stroke-width: 1.8; }
.app-rail svg.on { background: #ececea; }
.app-list { border-right: 1px solid var(--card-line); padding: 12px 8px; overflow: hidden; }
.app-find { display: block; border: 1px solid var(--card-line); border-radius: 7px; padding: 6px 10px; font-size: 11.5px; color: #a0a3b1; margin-bottom: 10px; }
.app-list h6 { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a0a3b1; margin: 12px 6px 6px; }
.app-list .row { display: flex; gap: 9px; align-items: center; padding: 7px 6px; border-radius: 7px; }
.app-list .row span:last-child { min-width: 0; }
.app-list .row b { display: block; font-weight: 500; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list .row i { display: block; font-style: normal; font-size: 10px; color: #85878c; white-space: nowrap; }
.app-list .row.new { background: #fbfcc4; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, padding .45s ease, opacity .35s ease; }
.app-list .row.new.on { max-height: 44px; padding-top: 7px; padding-bottom: 7px; opacity: 1; }
.app-doc { background: #f1f1ef; border-right: 3px solid #e3e4f5; padding: 12px 22px 22px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.doc-tools { display: flex; gap: 6px; margin-bottom: 12px; font-size: 11px; color: #3c3e42; }
.doc-tools span { background: #fff; border: 1px solid var(--card-line); border-radius: 6px; padding: 3px 9px; }
.paper { position: relative; width: 100%; max-width: 380px; flex: 1; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); padding: 20px 20px 16px; font-size: 9px; color: #333; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; overflow: hidden; }
.paper.on { opacity: 1; transform: none; }
.paper-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #b03030; padding-bottom: 8px; margin-bottom: 10px; }
.paper-head strong { font-size: 13px; line-height: 1.15; letter-spacing: -.01em; color: #111; }
.paper-head small { font-size: 7.5px; text-align: right; color: #666; }
.paper-title { border: 1px solid #333; text-align: center; font-weight: 600; padding: 3px; width: 62%; margin: 0 auto 10px; }
.paper-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.paper-boxes div { border: 1px solid #333; padding: 5px 7px; min-height: 44px; }
.paper-boxes u { display: block; text-decoration: none; font-weight: 600; font-size: 7.5px; margin-bottom: 2px; }
.paper table { width: 100%; border-collapse: collapse; border: 1px solid #333; }
.paper th { text-align: left; font-size: 7.5px; border-bottom: 1px solid #333; padding: 3px 5px; }
.paper td { padding: 3px 5px; }
.paper td:nth-child(n+2), .paper th:nth-child(n+2) { text-align: right; border-left: 1px solid #333; }
.paper tr:last-child td { padding-bottom: 70px; }
.paper-total { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; width: 58%; margin: 10px 0 0 auto; border: 1px solid #333; padding: 5px 8px; font-weight: 600; box-shadow: 2px 2px 0 #333; }
.scanline { position: absolute; left: 0; right: 0; top: -6px; height: 3px; background: var(--yellow); box-shadow: 0 0 18px 5px rgba(242,247,30,.75); opacity: 0; }
.paper.on .scanline { animation: scan 1.2s .1s ease-in-out 1; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.app-det { padding: 20px 22px; overflow: hidden; }
.det-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.det-head h5 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pill.st-draft { background: #ececec; color: #55575b; } .pill.st-appr { background: #e2f6e5; color: #1e7a34; } .pill.st-sync { background: #efe9fc; color: #5b21b6; } .pill.st-dup { background: #fdf0d4; color: #a4700c; margin-left: 6px; }
.app .pill, .shot .pill { font-weight: 400; font-size: 11px; border-radius: 6px; padding: 3px 9px; transition: background .3s, color .3s, transform .3s; }
.app .pill.bump { transform: scale(1.12); }
.fld { margin-bottom: 13px; }
.fld.two, .fld.three { display: grid; gap: 14px; }
.fld.two { grid-template-columns: 1fr 1fr; } .fld.three { grid-template-columns: 1.1fr 1fr 1fr; }
.fld label, .hist-label { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; color: #a0a3b1; margin-bottom: 4px; }
.fld p { font-size: 13px; color: #000; line-height: 1.35; min-height: 18px; position: relative; }
.fld p em { font-style: normal; font-size: 10px; font-weight: 600; color: #1e7a34; margin-left: 6px; white-space: nowrap; }
/* A value is a grey bar until Rivit has "read" it */
.app [data-on] { transition: opacity .3s ease, transform .3s ease; }
.fld p[data-on] { color: transparent; }
.fld p[data-on] em { opacity: 0; }
.fld p[data-on]::before { content: ""; position: absolute; left: 0; top: 3px; height: 11px; width: 68%; border-radius: 4px; background: #eeeeec; transition: opacity .25s; }
.fld p[data-on].on { color: #000; }
.fld p[data-on].on em { opacity: 1; transition: opacity .3s .15s; }
.fld p[data-on].on::before { opacity: 0; }
.match { border-radius: 8px; padding: 6px 8px; margin: -6px -8px; box-shadow: 0 0 0 1.5px transparent; transition: box-shadow .25s; }
/* One box round vendor, invoice details and summary while Rivit reads them. */
.match.read { margin-bottom: 7px; }
.match.read .fld:last-child { margin-bottom: 0; }
.match.checking { box-shadow: 0 0 0 1.5px #f0a53a, 0 0 0 5px rgba(240,165,58,.16); }
.totals { background: #fafaf8; border: 1px solid var(--card-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; opacity: .35; }
.totals.on { opacity: 1; }
.totals div { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.totals div span:first-child { font-size: 9.5px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; color: #a0a3b1; }
.totals:not(.on) div span:last-child { color: transparent; }
.totals .t { border-top: 1px solid var(--card-line); margin-top: 5px; padding-top: 7px; font-weight: 700; font-size: 14px; }
.totals .t span:first-child { color: #000; font-size: 12px; }
.hist-label { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-line); }
.hist { list-style: none; }
.hist li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 5px 0 5px 18px; position: relative; font-size: 12px; opacity: 0; transform: translateY(6px); }
.hist li.on { opacity: 1; transform: none; }
.hist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #c9cbce; background: #fff; }
.hist li.on::before { background: var(--yellow); border-color: #111214; }
.hist b { font-weight: 600; }
.hist small { font-size: 10px; color: #a0a3b1; white-space: nowrap; }

/* Proof strip */
.proof { border-bottom: 1px solid var(--card-line); padding: 44px 0; }
.proof-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px 72px; flex-wrap: wrap; }
.proof-label { display: block; font-size: 12.5px; color: var(--grey-text); margin-bottom: 18px; }
.proof-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.lg-tommico { height: 20px; width: auto; fill: #111214; }
.lg-pattern { height: 26px; width: auto; filter: invert(1); }
.lg-text { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.lg-int { font-size: 22px; font-weight: 600; letter-spacing: -.04em; }

/* Problem */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.facts > div { padding: 30px 36px 34px 0; }
.facts > div + div { padding-left: 36px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(40px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.06em; line-height: 1; margin-bottom: 18px; }
.facts p { font-size: 15px; max-width: 300px; }
.facts sup a, .calc sup a { color: var(--ink); text-decoration: none; font-weight: 600; }
.pains { list-style: none; columns: 2; column-gap: 72px; margin-top: 72px; border-top: 1px solid var(--line); padding-top: 8px; }
.pains li { break-inside: avoid; padding: 18px 0 18px 26px; position: relative; font-size: 17px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.pains li::before { content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 2px; background: var(--ink); }
.srcs { margin-top: 40px; font-size: 12px; color: var(--grey-text); }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1.05fr; gap: 88px; align-items: start; }
.how h2 { margin-bottom: 44px; }
.steps2 { list-style: none; counter-reset: st; border-top: 1px solid var(--line); }
.steps2 li { counter-increment: st; display: grid; grid-template-columns: 44px 96px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.steps2 li::before { content: "0" counter(st); font-size: 13px; font-weight: 600; color: var(--grey-text); padding-top: 2px; }
.steps2 b { font-weight: 600; }
.steps2 span { color: var(--body-text); line-height: 1.55; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.photos figure { border-radius: 10px; overflow: hidden; background: #ddd; }
.photos figure:nth-child(2) { margin-top: 48px; }
.photos figure:nth-child(3) { margin-top: 96px; }
.photos img { width: 100%; height: auto; }
.photos figcaption { grid-column: 1 / -1; font-size: 12.5px; color: var(--grey-text); margin-top: 6px; }

/* Bills list replica */
.shot { border: 1px solid #dcdcda; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -24px rgba(17,18,20,.18); padding: 26px 0 6px; font-weight: 400; margin-bottom: 88px; }
.shot-head { display: flex; justify-content: space-between; align-items: center; padding: 0 28px; margin-bottom: 18px; }
.shot-head h5 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.sbtn { display: inline-block; font-size: 12.5px; font-weight: 500; border: 1px solid var(--card-line); border-radius: 7px; padding: 8px 14px; margin-left: 8px; }
.sbtn.yel { background: var(--yellow); border-color: var(--yellow); }
.shot-tabs { display: flex; gap: 26px; padding: 0 28px; border-bottom: 1px solid var(--card-line); font-size: 13px; color: #55575b; overflow-x: auto; }
.shot-tabs span { padding-bottom: 12px; white-space: nowrap; }
.shot-tabs b { font-weight: 600; font-size: 11px; background: #ececea; border-radius: 4px; padding: 1px 6px; margin-left: 4px; color: #111; }
.shot-tabs .cur { color: #000; box-shadow: inset 0 -2px 0 var(--yellow); }
.shot-scroll { overflow-x: auto; }
.shot table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 12.5px; }
.shot th { text-align: left; font-size: 11.5px; font-weight: 400; color: #85878c; padding: 12px 14px; border-bottom: 1px solid var(--card-line); white-space: nowrap; }
.shot td { padding: 13px 14px; border-bottom: 1px solid #f2f2f0; white-space: nowrap; }
.shot th:first-child, .shot td:first-child { padding-left: 28px; }
.shot tr:last-child td { border-bottom: 0; }
.shot .r { text-align: right; }
.shot td .av { margin-right: 7px; vertical-align: middle; }

/* Feature list (replaces card grid) */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; border-top: 1px solid var(--ink); }
.feat > div { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.feat dt { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feat dd { font-size: 14.5px; color: var(--body-text); line-height: 1.55; }
.feat.three > div { border-bottom: 0; }

/* Case + calculator */
.case { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; margin-bottom: 96px; }
.case-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case blockquote { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.05em; line-height: 1.14; margin-bottom: 20px; }
.case-by { font-size: 14px; margin-bottom: 44px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.case-stats > div { padding: 22px 28px 0 0; }
.case-stats > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.case-stats span { display: block; font-size: 12.5px; color: var(--body-text); margin-bottom: 10px; }
.case-stats strong { display: block; font-size: clamp(38px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.case-stats small { font-size: 13px; color: var(--grey-text); }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: #fff; border-radius: 14px; overflow: hidden; }
.calc-in { padding: 48px; }
.calc-in h3 { font-size: 24px; font-weight: 500; letter-spacing: -.04em; margin-bottom: 34px; }
.calc label { display: block; font-size: 14px; color: #c9cacc; }
.calc-row { margin-bottom: 26px; }
.calc output { float: right; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Own-drawn slider (13 Nov 2026): a 26px thumb a finger can grab, and touch-action so a sideways drag
   moves the slider while an up-and-down one still scrolls the page. */
.calc input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin-top: 4px; background: transparent; cursor: pointer; touch-action: pan-y; --p: 50%; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--yellow) var(--p), #3a3c40 var(--p)); }
.calc input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--yellow) var(--p), #3a3c40 var(--p)); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -11px; border: 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.calc input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--yellow); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.calc input[type=range]:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }
.calc-out { background: var(--yellow); color: var(--ink); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.calc-out strong { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 500; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out span { font-size: 15px; }
.calc-out p { font-size: 13px; color: #3c3e42; border-top: 1px solid rgba(17,18,20,.25); padding-top: 18px; }

/* Testimonials v2 */
.quotes figcaption .lg-tommico { display: block; height: 18px; fill: #fff; margin-bottom: 18px; }
.quotes figcaption .lg-text { display: block; color: #fff; margin-bottom: 16px; }

@media (max-width: 1100px) {
  .app-grid { grid-template-columns: 46px minmax(0, 1fr) 360px; }
  .app-list { display: none; }
}
@media (max-width: 960px) {
  .hero2-head { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .how, .case, .calc { grid-template-columns: 1fr; }
  .how { gap: 56px; } .case { gap: 40px; }
  .case-photo { max-width: 260px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pains { columns: 1; }
}
@media (max-width: 820px) {
  .hero2 { padding-top: 64px; }
  .stage { margin-top: 56px; padding-top: 32px; }
  .app-grid { grid-template-columns: 1fr; height: auto; }
  .app-rail, .app-doc { display: none; }
}
@media (max-width: 620px) {
  .feat { grid-template-columns: 1fr; }
  .steps2 li { grid-template-columns: 36px 1fr; }
  .steps2 span { grid-column: 2; margin-top: 4px; }
  .calc-in, .calc-out { padding: 32px 24px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .fld.three { grid-template-columns: 1fr 1fr; }
  .proof-logos { gap: 28px; }
  .shot { margin-bottom: 56px; }
  .lede { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .paper.on .scanline { animation: none; }
}

/* Integration marks (13 Nov 2026) */
.mk { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; flex: 0 0 auto; }
/* The JobTread mark's letter strokes are transparent: on a dark card it needs its own white tile. */
.mk-pad { background: #fff; padding: 4px; box-sizing: border-box; width: 32px; height: 32px; }
.lg-int { display: inline-flex; align-items: center; gap: 10px; }
.mkh { display: flex; align-items: center; gap: 12px; font-size: 19px; }
.flow .node .mkh img { height: 28px; margin: 0; filter: none; }

/* Hero text centred again (13 Nov 2026): one column, headline over lead over buttons */
.hero2-head { display: block; text-align: center; }
.hero2 h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.05em; line-height: 1.08; max-width: 900px; margin: 0 auto 32px; }
.hero2-side .lead { max-width: 620px; margin: 0 auto 44px; }
.hero2-side .btn-row { justify-content: center; }
.hero2 .hero-note { text-align: center; }

/* Line icons: security list + how-it-works steps (13 Nov 2026) */
.ico { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sec-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 56px; border-top: 1px solid var(--ink); }
.sec-list > div { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.sec-list .ico { display: block; margin-bottom: 18px; }
.sec-list h3 { font-size: 16px; margin-bottom: 6px; }
.sec-list p { font-size: 14.5px; line-height: 1.5; }
.steps2 li::before { display: none; }
.steps2 li { grid-template-columns: 50px 96px 1fr; align-items: start; }
.steps2 .ico { width: 24px; height: 24px; margin-top: -2px; }
@media (max-width: 960px) { .sec-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .sec-list { grid-template-columns: 1fr; }
  .steps2 li { grid-template-columns: 40px 1fr; }
  .steps2 li span { grid-column: 2; }
}

.also { margin-top: 22px; font-size: 14px; }
.section.dark .also a { color: #e6e7e8; }

/* Forward by email (13 Nov 2026): the hero walkthrough alternates a site photo with an emailed bill,
   and the home page gets its own section. .v-photo / .v-mail are the two versions of one element. */
.app:not(.mail) .v-mail, .app.mail .v-photo { display: none !important; }
.av-m { background: var(--ink); }
.av-m svg { width: 12px; height: 12px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mailbar { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--card-line); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 11px; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.mailbar.on { opacity: 1; transform: none; }
.mailbar svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.mailbar span { min-width: 0; flex: 1; }
.mailbar b { display: block; font-weight: 600; }
.mailbar small { display: block; font-size: 10px; color: #85878c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailbar em { font-style: normal; font-size: 10px; background: var(--panel); border-radius: 5px; padding: 2px 7px; white-space: nowrap; }

.section.flush { padding-bottom: 0; }
.split.flip > :first-child { order: 2; }
.mailviz { width: 100%; max-width: 440px; margin: 0 auto; }
.mail-card, .mail-row { background: #fff; border: 1px solid #dcdcda; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(17,18,20,.18); }
.mail-card { padding: 22px 24px 24px; }
.mail-top { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.mail-top .av { width: 36px; height: 36px; font-size: 12px; }
.mail-top div { min-width: 0; }
.mail-top b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mail-top small { display: block; font-size: 12.5px; color: var(--body-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-top time { margin-left: auto; align-self: flex-start; font-size: 12px; color: var(--grey-text); white-space: nowrap; }
.mail-subj { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); margin-bottom: 8px; }
.mail-body { font-size: 14px; line-height: 1.55; margin-bottom: 18px; }
.mail-att { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-size: 13px; color: var(--ink); }
.mail-att .ico { width: 18px; height: 18px; }
.mail-att small { color: var(--grey-text); }
.mail-flow { display: flex; align-items: center; gap: 14px; padding: 12px 0 12px 41px; font-size: 12.5px; color: var(--body-text); }
.mail-flow i { position: relative; width: 1.5px; height: 46px; background: var(--ink); }
.mail-flow i::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.mail-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; }
.mail-row .av { width: 36px; height: 36px; }
.mail-row .av svg { width: 17px; height: 17px; }
.mail-row b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mail-row small { display: block; font-size: 12.5px; color: var(--body-text); }
.mail-amt { text-align: right; }
.mail-amt .pill { margin-top: 4px; font-weight: 400; border-radius: 6px; }
.mail-note { font-size: 12.5px; color: var(--grey-text); margin-top: 16px; }
@media (max-width: 960px) {
  .split.flip > :first-child { order: 0; }
  .mailviz { margin: 0; }
}

/* Hero walkthrough: the photo pass shows a real photographed receipt (13 Nov 2026). It is far taller
   than the pane, so it pans from its header down to the total while the fields fill in. */
.paper.pic { padding: 0; background: #d9a514; }
.paper.pic img { position: absolute; left: 0; top: 0; width: 100%; height: auto; transition: top 1.7s ease-in-out .25s, transform 1.7s ease-in-out .25s; }
.paper.pic.on img { top: 100%; transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .paper.pic img { transition: none; } }

/* Feature list icons (13 Nov 2026): the icon sits beside the title. */
.feat dt .fi { line-height: 0; }
.feat dt .ico { width: 22px; height: 22px; }

/* The Problem (14 Nov 2026): three questions a builder can't answer on bad data, and one closing line. */
.asks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.asks li { padding: 34px 36px 38px 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; color: var(--ink); }
.asks li + li { padding-left: 36px; border-left: 1px solid var(--line); }
.asks-fix { border-top: 1px solid var(--line); padding-top: 30px; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
@media (max-width: 960px) {
  .asks { grid-template-columns: 1fr; }
  .asks li { padding: 24px 0; }
  .asks li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* No sideways scroll on phones (13 Nov 2026). Grid children default to min-width:auto, so one
   unbreakable line (the long inbox address in .mailviz) was stretching the page to 405px. */
.split > *, .how > *, .case > *, .calc > *, .form-grid > *, .hero2-head > * { min-width: 0; }
.mail-top > div, .mail-row > div:not(.mail-amt) { min-width: 0; }
.mail-top small, .mail-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body { overflow-x: clip; }
