/* Layout: left-aligned editorial column on a 12-col grid; deep teal bands open and close the page,
   animated product scenes carry the middle on a pale green-grey ground. */
:root {
  --teal: #1f5a52;
  --teal-dark: #163f39;
  --teal-deep: #0f2d29;
  --accent: #a9d9cb;
  --accent-soft: #ffffff;
  --cream: #f7f3eb;
  --ink: #1c2a2b;
  --ink-soft: #4d5f5d;
  --mist: #eef3f0;
  --paper: #ffffff;
  --line: #d6e0dc;
  --line-dark: rgba(247, 243, 235, 0.16);
  --error: #a3391f;

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Poppins", "Inter", sans-serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h1: clamp(2.1rem, 4.2vw, 3.5rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --band: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 45, 41, 0.06), 0 18px 48px -18px rgba(15, 45, 41, 0.28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-feature-settings: "cv11", "ss03";
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.028em; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid #4a8c7a; outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band-mist { background: var(--mist); }
.band-cream { background: var(--cream); }
.band-dark { background: var(--teal-dark); color: var(--cream); }
.lede { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 40rem; }
.band-dark .lede { color: rgba(247, 243, 235, 0.78); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--font-body);
  padding: 0.95rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--cream); color: var(--teal-deep); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-teal { background: var(--teal); color: var(--cream); }
.btn-teal:hover { background: var(--teal-dark); }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--teal-dark); color: var(--cream);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.logo { display: inline-flex; color: var(--cream); text-decoration: none; flex: none; }
.logo svg { height: 2.6rem; width: auto; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: rgba(247, 243, 235, 0.82); }
.nav-links a:hover { color: var(--cream); }
.nav .btn { padding: 0.7rem 1.1rem; font-size: var(--fs-sm); }

/* Hero */
.hero { overflow-x: clip; background: var(--teal-dark); color: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.hero h1 { font-size: var(--fs-h1); font-weight: 600; max-width: 17em; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 0.12em; }
.hero-sub { font-size: var(--fs-lg); max-width: 38rem; margin-top: 1.5rem; color: rgba(247, 243, 235, 0.8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-visual { position: relative; margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }

/* Proof strip */
.proof { background: var(--mist); padding-block: clamp(3rem, 5vw, 4rem); }
.proof blockquote { margin: 0; display: grid; gap: 0.75rem; max-width: 44rem; }
.proof p { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; line-height: 1.25; color: var(--teal-dark); }
.attrib { font-size: var(--fs-sm); color: var(--ink-soft); font-style: normal; }
.attrib strong { color: var(--ink); font-weight: 600; }

/* Origin */
.origin-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.origin-body { display: grid; gap: 1.25rem; font-size: var(--fs-lg); line-height: 1.55; max-width: 38rem; }
.origin-body .ask { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--teal); }
.signoff { font-size: var(--fs-sm); color: var(--ink-soft); }

/* Feature rows */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 9vw, 7rem); }
.feature-copy { grid-column: span 5; display: grid; gap: 1.1rem; min-width: 0; }
.feature-media { grid-column: span 7; min-width: 0; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-media { order: 1; }
.kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--teal); }
.ticks { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.8rem; height: 0.42rem;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}
.media-stack { display: grid; gap: 1.25rem; }
.media-phone { display: grid; justify-content: center; grid-template-columns: minmax(0, 19rem); }

/* Invoice matching illustration */
.invoice-panel {
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--teal-dark); color: var(--cream); border-radius: calc(var(--radius) * 1.6);
  padding: clamp(1.75rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: start;
}
.invoice-copy { display: grid; gap: 1.1rem; max-width: 46rem; }
.invoice-copy p + p { max-width: 38rem; }
.invoice-copy .kicker { color: var(--accent); }
.invoice-copy p { color: rgba(247, 243, 235, 0.8); }

/* Why */
.why-list { margin: 0; display: grid; }
.why-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.5rem clamp(1.5rem, 5vw, 4rem); padding-block: 1.5rem; border-top: 1px solid var(--line-dark); }
.why-row:last-child { border-bottom: 1px solid var(--line-dark); }
.why-row dt { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.why-row dd { margin: 0; color: rgba(247, 243, 235, 0.78); max-width: 34rem; }

/* Quote */
.quote blockquote { margin: 0; display: grid; gap: 1.75rem; max-width: 58rem; }
.quote p { font-family: var(--font-display); font-size: clamp(1.6rem, 3.3vw, 2.6rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; color: var(--teal-dark); text-wrap: balance; }

/* Pricing */
.billing { display: inline-flex; gap: 0.3rem; padding: 0.3rem; background: var(--mist); border-radius: 999px; margin-bottom: 1.5rem; }
.billing-btn { font: 600 var(--fs-sm)/1 var(--font-body); color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; padding: 0.7rem 1.1rem; border-radius: 999px; transition: background-color 0.15s ease, color 0.15s ease; }
.billing-btn span { font-weight: 500; opacity: 0.8; margin-left: 0.3rem; }
.billing-btn[aria-pressed="true"] { background: var(--teal); color: var(--cream); }
.plan-billed { font-size: var(--fs-sm); margin-top: -0.4rem; }
.founding { margin-top: clamp(1.25rem, 3vw, 2rem); border: 1.5px solid var(--teal); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); display: grid; gap: 0.5rem; background: var(--cream); }
.founding p { color: var(--ink-soft); }
.founding strong { color: var(--ink); font-weight: 600; }
.founding-terms { font-size: var(--fs-sm); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.plan { border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; background: var(--paper); }
.plan p { color: var(--ink-soft); }
.plan .plan-price { color: var(--ink); font-size: var(--fs-base); }
.plan-price strong { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-right: 0.25rem; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan-scale { background: var(--teal-dark); color: var(--cream); border-color: var(--teal-dark); }
.plan-scale .kicker { color: var(--accent); }
.plan-scale p, .plan-scale .plan-price { color: rgba(247, 243, 235, 0.82); }
.plan-scale .plan-price strong { color: var(--cream); }
.plan-ticks { font-size: var(--fs-sm); gap: 0.55rem; margin-top: 0.25rem; }
.plan-scale .plan-ticks li { color: rgba(247, 243, 235, 0.88); }
.plan-scale .plan-ticks li::before { border-color: var(--accent); }
.plan-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 48rem; }
.plan-table { width: 100%; border-collapse: collapse; margin-top: clamp(2rem, 4vw, 3rem); font-size: var(--fs-sm); }
.plan-table th, .plan-table td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table thead th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); }
.plan-table thead th:not(:first-child), .plan-table td { text-align: center; width: 7.5rem; padding-right: 0; }
.plan-table tbody th { font-weight: 400; color: var(--ink-soft); }
.plan-table .plan-group th { font-weight: 600; color: var(--teal); padding-top: 1.5rem; border-bottom: 0; text-align: left; }
.plan-table .yes { color: var(--teal); font-weight: 700; font-size: 1.1rem; }
.plan-table .no { color: var(--line); }
.setup { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 0.75rem; max-width: 46rem; }
.setup p { color: var(--ink-soft); }
@media (max-width: 40rem) { .plans { grid-template-columns: minmax(0, 1fr); } .plan-table thead th:not(:first-child), .plan-table td { width: 5rem; } }

/* Newsletter band */
.news { padding-block: clamp(3rem, 6vw, 4.5rem); }
.news-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.news-copy { display: grid; gap: 0.75rem; }
.news-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.news-form { display: grid; gap: 0.5rem; }
.news-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.news-row input { background: var(--paper); }
@media (max-width: 60rem) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .news-row { grid-template-columns: minmax(0, 1fr); } }

/* Checkbox in the demo form */
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-weight: 400; font-size: var(--fs-sm); color: var(--ink-soft); cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--teal); }

/* Demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.demo-copy { display: grid; gap: 1.25rem; }
.demo-copy .email { font-weight: 600; color: var(--cream); user-select: all; }
.form { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) * 1.4); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
label { font-size: var(--fs-sm); font-weight: 600; }
label small { font-weight: 400; color: var(--ink-soft); font-size: inherit; }
input, textarea {
  font: inherit; color: var(--ink); background: var(--paper); width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.8rem 0.9rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 90, 82, 0.18); }
textarea { resize: vertical; min-height: 6.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.875rem; color: var(--ink-soft); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: var(--error); }

/* Footer */
.footer { background: var(--teal-deep); color: rgba(247, 243, 235, 0.72); padding-block: 2.5rem; font-size: var(--fs-sm); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.footer .logo svg { height: 2.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-left: auto; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer-base { width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }

/* Mobile sticky call to action */
.sticky-cta { display: none; }

/* Menu button: hidden on wide screens, shown under 60rem where the text links collapse */
.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(247, 243, 235, 0.3); border-radius: 0.6rem; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--cream); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 60rem) {
  .nav-inner { flex-wrap: wrap; gap: 1rem; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--line-dark); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 0.85rem 0.25rem; font-size: var(--fs-base, 1rem); border-bottom: 1px solid rgba(247, 243, 235, 0.08); }
  .nav-links a.btn { margin-top: 0.85rem; text-align: center; }
  .origin-grid, .invoice-panel, .demo-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .feature-copy, .feature-media { grid-column: 1 / -1; }
  .feature.flip .feature-copy { order: 0; }
  .why-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .origin-body { font-size: var(--fs-base); }
  .origin-body .ask { font-size: 1.4rem; }
  .form .btn { justify-self: stretch; }
  .hero-cta .btn { flex: 1 1 auto; }
  .nav .btn { display: none; }
  .nav.is-open .nav-links a.btn { display: inline-block; }
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--teal-dark); border-top: 1px solid var(--line-dark);
    transition: transform 0.2s ease;
  }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .footer { padding-bottom: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Specificity fix: the button inside the nav keeps its own colour */
.nav-links a.btn-primary { color: var(--teal-deep); }

/* Interactive use cases */
.cases-ui { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.case-tabs { display: grid; gap: 0.4rem; }
.case-tab {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; width: 100%;
  display: grid; gap: 0.15rem; padding: 1rem 1.2rem; border-radius: 12px;
  background: transparent; border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.case-tab strong { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.case-tab span { font-size: var(--fs-sm); color: var(--ink-soft); }
.case-tab:hover { background: rgba(255, 255, 255, 0.6); }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.45rem; }
.case-tags em { font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(31, 90, 82, 0.1); color: var(--teal); }
.case-tab[aria-selected="true"] .case-tags em { background: var(--teal); color: var(--cream); }
.what-more { margin-top: 0.75rem; font-size: var(--fs-sm); }
.what-more a { color: var(--teal); font-weight: 600; text-decoration: none; }
.what-more a:hover { text-decoration: underline; }
.case-tab[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 45, 41, 0.06); }
.case-tab[aria-selected="true"] strong { color: var(--teal); }
.case-panel { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.case-panel > p { color: var(--ink-soft); max-width: 36rem; }
.case-panels { display: grid; gap: 1.5rem; }
.js .case-panel:not(.is-active) { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.85rem 1rem; border-radius: 10px; background: var(--mist); }
.step-text { display: grid; gap: 0.1rem; min-width: 0; }
.step-text strong { font-weight: 600; }
.step-text span { font-size: var(--fs-sm); color: var(--ink-soft); }
.dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--teal); position: relative; flex: none; }
.dot::after { content: ""; position: absolute; left: 0.48rem; top: 0.5rem; width: 0.62rem; height: 0.32rem; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg); }
.state { font-size: 0.75rem; font-weight: 600; color: var(--teal-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; white-space: nowrap; }
@keyframes step-done { from { background: var(--line); } to { background: var(--teal); } }
@keyframes step-in { from { opacity: 0.35; } to { opacity: 1; } }
.js .case-panel.is-active .dot { animation: step-done 0.3s ease both; animation-delay: calc(var(--i) * 0.28s + 0.1s); }
.js .case-panel.is-active .state { animation: step-in 0.3s ease both; animation-delay: calc(var(--i) * 0.28s + 0.1s); }
@media (max-width: 60rem) {
  .cases-ui { grid-template-columns: minmax(0, 1fr); }
  .case-tab { background: var(--paper); border-color: var(--line); }
  .case-panel { margin-bottom: 0.6rem; }
  .case-panel h3 { display: none; }
  .case-panels:empty { display: none; }
}
@media (max-width: 40rem) {
  .step { grid-template-columns: auto minmax(0, 1fr); }
  .state { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .js .case-panel.is-active .dot, .js .case-panel.is-active .state { animation: none; }
}

/* What Leaption does: tabbed views */
.what-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.35rem; background: var(--mist); border-radius: 999px; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 100%; }
.what-tab { font: 600 1rem/1 var(--font-body); color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; padding: 0.85rem 1.35rem; border-radius: 999px; transition: background-color 0.15s ease, color 0.15s ease; }
.what-tab:hover { color: var(--ink); }
.what-tab[aria-selected="true"] { background: var(--teal); color: var(--cream); }
.what-panel + .what-panel { margin-top: clamp(4rem, 9vw, 7rem); }
.js .what-panel + .what-panel { margin-top: 0; }
.js .what-panel:not(.is-active) { display: none; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .what-panel.is-active { animation: view-in 0.28s ease both; }
.js .what-panel .feature { min-height: 26rem; }
@media (max-width: 60rem) { .js .what-panel .feature { min-height: 0; } }
@media (max-width: 40rem) {
  .what-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; width: 100%; }
  .what-tab { border-radius: 14px; padding: 0.85rem 0.5rem; font-size: var(--fs-sm); }
}
@media (prefers-reduced-motion: reduce) { .js .what-panel.is-active { animation: none; } }

/* The tab already names the view, so the small label above each heading is hidden when tabs are active */
.js .what-panel .feature-copy > .kicker { display: none; }

/* Long-form text pages (privacy) */
.prose { max-width: 44rem; display: grid; gap: 1.1rem; }
.prose h1 { font-size: var(--fs-h2); font-weight: 600; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.75rem; }
.prose h3 { font-size: 1.125rem; margin-top: 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose a { color: var(--teal); }
.prose-meta { font-size: var(--fs-sm); }
.prose mark { background: #fbe9b0; color: var(--ink); padding: 0.05em 0.3em; border-radius: 4px; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 30rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.prose th { color: var(--ink); font-weight: 600; }


/* ---------- Animated product scenes ---------- */
.demo { position: relative; width: 100%; overflow: hidden; font-family: var(--font-body); }
.demo-app { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #f4f6f5; }
.demo-phone { border-radius: 30px; padding: 0; background: #0f2d29; box-shadow: var(--shadow); border: 9px solid #0f2d29; }
.demo-phone .demo-stage { border-radius: 22px; overflow: hidden; }
.demo-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: #1c2a2b; font-size: 13px; line-height: 1.4; user-select: none; display: grid; grid-template-columns: 230px 1fr; background: #f4f6f5; }
.demo-phone .demo-stage, .demo-app .demo-stage.single { grid-template-columns: 1fr; }
.demo-stage h3 { font-size: 15px; font-weight: 600; margin: 0 0 2px; letter-spacing: 0; line-height: 1.3; }
.demo-stage [hidden] { display: none !important; }
.d-side { background: #eef3f0; border-right: 1px solid #dfe7e3; padding: 18px 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; }
.d-logo { color: #1f5a52; width: 112px; height: 37px; }
.d-nav { display: grid; gap: 2px; align-content: start; }
.d-nav span { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: #2f3f3d; font-size: 13.5px; }
.d-nav svg, .d-tabs svg { width: 18px; height: 18px; color: #4d5f5d; flex: none; }
.d-nav span.on { background: #d6e8e2; color: #163f39; font-weight: 600; }
.d-nav span.on svg { color: #163f39; }
.d-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1f5a52; color: #f7f3eb; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.d-avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.d-main { display: grid; grid-template-rows: 48px 1fr; min-width: 0; }
.d-main-plain { grid-template-rows: 1fr; grid-column: 1 / -1; }
.d-main-plain .d-body { padding: 22px; }
.d-top { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #dfe7e3; background: #fff; font-weight: 600; }
.d-top .d-btn { font-weight: 500; }
.d-body { position: relative; padding: 18px 22px; display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-content: start; min-width: 0; }
.d-banner { grid-column: 1 / -1; background: #163f39; color: #f7f3eb; border-radius: 12px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 24px; align-items: center; }
.d-banner small { display: block; font-size: 11px; opacity: 0.7; }
.d-banner strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-banner .d-insight { font-size: 13px; opacity: 0.9; max-width: 330px; }
.d-panel { background: #fff; border: 1px solid #dfe7e3; border-radius: 12px; padding: 14px 16px; min-width: 0; align-self: start; }
.d-muted { color: #5b6c69; font-size: 12px; }
.d-seg { display: inline-flex; gap: 2px; background: #eef3f0; border-radius: 8px; padding: 3px; margin: 10px 0 12px; font-size: 12px; }
.d-seg span { padding: 4px 10px; border-radius: 6px; color: #4d5f5d; }
.d-seg span.on { background: #fff; color: #163f39; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.d-rows { display: grid; gap: 8px; }
.d-rows.tight { gap: 6px; }
.d-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #e4ebe8; border-radius: 9px; background: #fbfcfb; }
.d-row b { font-weight: 600; display: block; }
.d-row .d-muted { font-size: 11.5px; }
.d-row.new { animation: d-row-in 0.45s ease both; border-color: #1f5a52; }
@keyframes d-row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.d-pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #e7ece9; color: #2f3f3d; white-space: nowrap; }
.d-pill.amber { background: #fdf0d5; color: #8a5a00; }
.d-pill.green { background: #d6e8e2; color: #163f39; }
.d-btn { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid #cfdad6; background: #fff; color: #1c2a2b; white-space: nowrap; display: inline-block; }
.d-btn.primary { background: #1f5a52; border-color: #1f5a52; color: #f7f3eb; }
.d-btn.wide { display: block; text-align: center; margin-top: 12px; }
.pressed { transform: scale(0.97); filter: brightness(0.92); }
.d-qa { display: grid; gap: 10px; align-content: start; }
.d-qa-head { display: flex; justify-content: space-between; align-items: start; }
.d-dots { display: flex; gap: 5px; padding-top: 6px; }
.d-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d6e0dc; }
.d-dots i.on { background: #1f5a52; }
.d-label { font-size: 11.5px; font-weight: 600; color: #2f3f3d; margin: 8px 0 4px; }
.d-input { position: relative; border: 1.5px solid #cfdad6; border-radius: 8px; padding: 8px 10px; min-height: 36px; font-size: 13px; color: #1c2a2b; background: #fff; }
.d-input.tall { min-height: 92px; }
.d-input.focus { border-color: #1f5a52; box-shadow: 0 0 0 3px rgba(31,90,82,.15); }
.d-input .ph { color: #8a9693; }
.caret { display: inline-block; width: 1px; height: 14px; background: #1c2a2b; vertical-align: -2px; margin-left: 1px; animation: d-blink 1s steps(2) infinite; }
@keyframes d-blink { to { opacity: 0; } }
.d-drop { background: #fff; border: 1px solid #cfdad6; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,45,41,.14); padding: 4px; margin-top: 4px; }
.d-drop div { padding: 7px 9px; border-radius: 6px; display: flex; justify-content: space-between; gap: 8px; }
.d-drop div.hl { background: #eef3f0; }
.d-chip { display: inline-flex; align-items: center; gap: 8px; background: #d6e8e2; color: #163f39; border-radius: 999px; padding: 5px 11px; font-weight: 600; font-size: 12.5px; }
.d-chip small { font-weight: 400; color: #2f3f3d; }
.d-confirm { border: 1px solid #e4ebe8; border-radius: 9px; background: #fbfcfb; padding: 4px 12px; margin-top: 10px; }
.d-confirm div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #e4ebe8; font-size: 12.5px; }
.d-confirm div:last-child { border-bottom: 0; }
.d-confirm span:first-child { color: #5b6c69; }
.d-success { display: grid; justify-items: center; gap: 6px; padding: 18px 8px 8px; text-align: center; }
.d-success .tick { width: 36px; height: 36px; border-radius: 50%; background: #d6e8e2; position: relative; }
.d-success .tick::after { content: ""; position: absolute; left: 11px; top: 9px; width: 11px; height: 6px; border-left: 2.5px solid #1f5a52; border-bottom: 2.5px solid #1f5a52; transform: rotate(-45deg); }
.d-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.d-qa .d-foot, .d-foot.split { justify-content: space-between; }
.d-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 24px; z-index: 5; pointer-events: none; transition: transform 0.7s cubic-bezier(.3,.7,.2,1); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.d-cursor.click { animation: d-click 0.22s ease; }
@keyframes d-click { 50% { scale: 0.85; } }
.d-email { position: absolute; right: 22px; bottom: 22px; width: 320px; background: #fff; border: 1px solid #dfe7e3; border-radius: 12px; box-shadow: 0 18px 48px -12px rgba(15,45,41,.35); overflow: hidden; animation: d-row-in 0.5s ease both; z-index: 4; }
.d-email-head { padding: 10px 14px; background: #f7f3eb; border-bottom: 1px solid #e4ebe8; display: grid; gap: 2px; }
.d-email-head small { font-size: 11px; color: #5b6c69; }
.d-email-head b { font-size: 13px; }
.d-email-body { padding: 12px 14px; font-size: 12.5px; line-height: 1.5; }
.d-toast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: #1c2a2b; color: #fff; font-size: 12.5px; padding: 8px 14px; border-radius: 8px; z-index: 4; animation: d-row-in 0.3s ease both; white-space: nowrap; }
.d-toast.mob { top: 112px; left: 7%; right: 7%; transform: none; white-space: normal; text-align: center; animation: none; }
.d-wiz { padding: 18px 22px; display: grid; align-content: start; gap: 10px; height: 100%; box-sizing: border-box; }
.d-wiz-head { display: flex; justify-content: space-between; align-items: start; }
.d-x { width: 30px; height: 30px; border: 1px solid #cfdad6; border-radius: 8px; display: grid; place-items: center; color: #4d5f5d; }
.d-steps { display: flex; justify-content: space-between; margin: 6px 0 10px; position: relative; font-size: 11.5px; font-weight: 600; color: #5b6c69; }
.d-steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 12px; height: 1.5px; background: #dfe7e3; }
.d-steps span { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 70px; }
.d-steps i { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid #cfdad6; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.d-steps span.on { color: #163f39; } .d-steps span.on i { background: #1f5a52; border-color: #1f5a52; color: #fff; }
.d-steps span.done i { background: #1f5a52; border-color: #1f5a52; position: relative; }
.d-steps span.done i::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.d-scanbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: #eef3f0; padding: 10px; border-radius: 10px; margin-bottom: 10px; }
.d-qty { font-variant-numeric: tabular-nums; color: #2f3f3d; letter-spacing: 0.2em; }
.d-summary { background: #eef3f0; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 8px; }
.d-match { grid-template-columns: 1fr auto auto; }
.d-match b { display: inline; }
.d-ok { color: #1f5a52; font-weight: 600; font-size: 12px; }
.d-check { grid-template-columns: auto 1fr auto; cursor: default; }
.d-cb { width: 16px; height: 16px; border: 1.5px solid #9aaba6; border-radius: 4px; background: #fff; position: relative; }
.d-check.on { background: #eef3f0; border-color: #1f5a52; }
.d-check.on .d-cb { background: #1f5a52; border-color: #1f5a52; }
.d-check.on .d-cb::after { content: ""; position: absolute; left: 4px; top: 3px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.d-inv { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 16px; align-items: start; }
.d-sheet { position: relative; background: #fff; color: #1c2a2b; border: 1px solid #cfdad6; border-radius: 8px; padding: 12px 14px 14px; font-size: 12.5px; min-height: 150px; }
.d-sheet-head { display: flex; justify-content: space-between; font-weight: 600; padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1px solid #1c2a2b; }
.d-sheet-head span:last-child { font-weight: 500; color: #4d5f5d; }
.d-sheet-row { display: grid; grid-template-columns: 28px 1fr; padding: 5px 4px; border-radius: 4px; border-bottom: 1px dashed #d6e0dc; transition: background-color 0.3s ease; }
.d-sheet-row span:first-child { color: #4d5f5d; font-variant-numeric: tabular-nums; }
.d-sheet-row.lit { background: #d6e8e2; }
.d-upload { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; background: rgba(238,243,240,.85); border-radius: 8px; border: 1.5px dashed #9aaba6; }
.d-flow { width: 32px; height: 2px; margin-top: 74px; background: #cfdad6; position: relative; transition: background-color 0.4s ease; }
.d-flow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); color: #cfdad6; transition: color 0.4s ease; }
.d-flow.on { background: #1f5a52; } .d-flow.on::after { color: #1f5a52; }
.d-matched { display: grid; gap: 8px; }
.d-mrow { grid-template-columns: 1fr auto; opacity: 0; transform: translateX(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.d-mrow.show { opacity: 1; transform: none; }
.d-portal { background: #fff; height: 100%; padding: 18px 16px 44px; box-sizing: border-box; position: relative; font-size: 13.5px; }
.d-phead { text-align: center; display: grid; gap: 8px; margin-bottom: 14px; }
.d-pstep { display: flex; justify-content: center; gap: 12px; font-size: 11.5px; color: #8a9693; }
.d-pstep .on { color: #1c2a2b; font-weight: 600; }
.d-portal h3 { font-size: 18px; }
.d-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.d-card { border: 1px solid #e4ebe8; border-radius: 10px; padding: 8px; display: grid; gap: 4px; font-size: 12.5px; }
.d-card b { font-weight: 600; } .d-card strong { font-weight: 600; }
.d-cover { height: 110px; border-radius: 6px; background: #eadbc8; border-left: 8px solid #c89a6e; display: grid; place-items: center; text-align: center; padding: 8px; font-weight: 600; font-size: 12px; color: #1c2a2b; }
.d-add { text-align: center; border-color: #1f5a52; color: #1f5a52; margin-top: 4px; }
.d-add.added { background: #d6e8e2; color: #163f39; border-color: #d6e8e2; }
.d-basket { position: absolute; left: 12px; right: 12px; bottom: 44px; background: #163f39; color: #f7f3eb; border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; animation: d-row-in 0.3s ease both; }
.d-basket .d-btn.primary { background: #f7f3eb; color: #163f39; border-color: #f7f3eb; }
.d-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; font-size: 12px; }
.d-pay span { border: 1.5px solid #cfdad6; border-radius: 8px; padding: 8px; text-align: center; }
.d-pay span.on { border-color: #1f5a52; background: #eef3f0; font-weight: 600; }
.d-ref { font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: 0.08em; }
.d-pfoot { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; }
.d-mob { background: #f4f6f5; height: 100%; position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; padding: 14px 14px 70px; box-sizing: border-box; }
.d-mob .d-rows { align-content: start; }
.d-mtop { display: flex; align-items: center; gap: 10px; }
.d-mlogo { width: 26px; height: 26px; border-radius: 50%; background: #1f5a52; }
.d-mtop b { flex: 1; }
.d-mbanner { background: #163f39; color: #f7f3eb; border-radius: 12px; padding: 12px 14px; }
.d-mbanner small { display: block; font-size: 11px; opacity: 0.7; } .d-mbanner b { font-size: 16px; }
.d-mrow2 { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px; background: #fff; border: 1px solid #e4ebe8; border-radius: 10px; align-items: center; }
.d-mrow2 b { display: block; font-weight: 600; }
.d-mrow2 .d-btn { grid-column: 2; justify-self: end; }
.d-fab { position: absolute; right: 16px; bottom: 74px; width: 48px; height: 48px; border-radius: 50%; background: #1f5a52; color: #fff; font-size: 26px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15,45,41,.3); }
.d-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: #fff; border-top: 1px solid #e4ebe8; display: grid; grid-template-columns: repeat(5, 1fr); font-size: 9.5px; }
.d-tabs span { display: grid; justify-items: center; align-content: center; gap: 3px; color: #5b6c69; }
.d-tabs span.on { color: #1f5a52; font-weight: 600; } .d-tabs span.on svg { color: #1f5a52; }
.d-day { font-size: 12px; font-weight: 600; color: #163f39; background: #d6e8e2; border-radius: 999px; padding: 4px 10px; }
.d-note { grid-template-columns: 1fr auto auto; transition: border-color 0.3s ease, background-color 0.3s ease; }
.d-note.lit { border-color: #1f5a52; background: #fff; }
.d-followup { margin-top: 10px; display: grid; gap: 6px; animation: d-row-in 0.4s ease both; }
.d-followup > b { font-size: 13px; }
.d-followup .d-row { border-color: #f0c98a; background: #fdf7ea; }
@media (prefers-reduced-motion: reduce) { .d-cursor, .d-stepcard { display: none; } .d-row.new, .d-email, .d-toast, .d-followup, .d-basket { animation: none; } }



/* Step card shown over each scene */
.d-stepcard { position: absolute; top: 18px; right: 18px; width: 270px; max-width: calc(100% - 36px); background: #f7f3eb; color: #1c2a2b; border-radius: 12px; padding: 13px 16px; box-shadow: 0 18px 40px -12px rgba(15,45,41,.45); display: grid; gap: 3px; z-index: 9; border-left: 4px solid #1f5a52; transition: opacity 0.3s ease; font-family: var(--font-body); }
.d-stepcard small { font-size: 11px; font-weight: 700; color: #1f5a52; letter-spacing: 0.05em; text-transform: uppercase; }
.d-stepcard b { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
/* The card always sits bottom-left. Wizard scenes keep a 100px clear strip at the bottom for it;
   on phone mocks it floats above the tab bar. */
.d-stepcard.pos-hero { top: auto; bottom: 22px; left: 22px; right: auto; width: 300px; }
.d-stepcard.pos-wiz { top: auto; bottom: 18px; left: 22px; right: auto; width: 300px; }
.d-wiz { padding-bottom: 100px; }
.d-stepcard.pos-phone { top: auto; bottom: 130px; left: 14px; right: 14px; width: auto; }

/* Narrow layout for wide scenes (phones): one column, sidebar hidden, card full width at the bottom */
.demo-stage.narrow { grid-template-columns: 1fr; }
.demo-stage.narrow .d-side, .demo-stage.narrow .d-hide-narrow, .demo-stage.narrow .d-insight, .demo-stage.narrow .d-seg, .demo-stage.narrow .d-email { display: none !important; }
.demo-stage.narrow .d-top { padding: 0 16px; }
.demo-stage.narrow .d-body { grid-template-columns: 1fr; padding: 14px 14px 136px !important; gap: 12px; }
.demo-stage.narrow .d-banner { grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 12px 14px; }
.demo-stage.narrow .d-banner { order: -2; }
.demo-stage.narrow .d-qa { order: -1; }
.demo-stage.narrow .d-toast { white-space: normal; left: 14px; right: 14px; top: auto; bottom: 100px; transform: none; text-align: center; }
.demo-stage.narrow .d-wiz { padding: 16px 14px 92px; }
.demo-stage.narrow .d-steps span { min-width: 0; font-size: 10.5px; }
.demo-stage.narrow .d-inv { grid-template-columns: 1fr; gap: 10px; }
.demo-stage.narrow .d-flow { width: 2px; height: 24px; margin: 0 auto; }
.demo-stage.narrow .d-flow::after { right: -3px; top: auto; bottom: -1px; transform: rotate(135deg); }
.demo-stage.narrow .d-stepcard.pos-hero, .demo-stage.narrow .d-stepcard.pos-wiz { left: 14px; right: 14px; bottom: 14px; width: auto; }

/* Hero step rail */
.hero-rail { display: grid; gap: 0.4rem; }
.hero-rail div { padding: 0.8rem 1rem; border-radius: 10px; color: rgba(247,243,235,.7); display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; font-size: 0.95rem; line-height: 1.35; transition: background-color 0.3s ease, color 0.3s ease; }
.hero-rail div i { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid rgba(247,243,235,.35); display: grid; place-items: center; font-style: normal; font-size: 0.75rem; font-weight: 700; }
.hero-rail div.done i { background: #a9d9cb; border-color: #a9d9cb; color: #0f2d29; }
.hero-rail div.on { background: var(--cream); color: var(--ink); font-weight: 600; }
.hero-rail div.on i { border-color: var(--teal); color: var(--teal); }
@media (max-width: 60rem) { .hero-visual { grid-template-columns: minmax(0, 1fr); } .hero-rail { display: none; } }

/* Scan delivery: invoices panel beside the scanner */
.d-deliv { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start; }
.d-invbox { background: #eef3f0; border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.d-invhead { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; }
.d-drop2 { border: 1.5px dashed #9aaba6; border-radius: 8px; background: #fff; padding: 14px 10px; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; }
.d-drop2 svg { width: 18px; height: 18px; color: #1f5a52; }
.d-file { background: #fff; border: 1px solid #e4ebe8; border-radius: 8px; padding: 10px; display: grid; gap: 8px; font-size: 12.5px; animation: d-row-in 0.3s ease both; }
.d-file > div:first-child { display: flex; justify-content: space-between; }
.d-from { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.d-select { border: 1px solid #cfdad6; border-radius: 6px; padding: 5px 8px; background: #fff; }
.d-select::after { content: "⌄"; float: right; color: #5b6c69; }
.d-invnote { font-size: 11px; text-align: center; line-height: 1.4; }
.d-scancol { display: grid; gap: 8px; }
.d-scancol .d-scanbar { margin-bottom: 0; }
.d-paste { text-align: right; font-size: 12px; }
.d-empty { text-align: center; padding: 24px 0; font-size: 13px; }
.demo-stage.narrow .d-deliv { grid-template-columns: 1fr; }

/* Campaign: designed email preview */
.d-design { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-top: 10px; border: 1px solid #e4ebe8; border-radius: 9px; padding: 10px; background: #fbfcfb; animation: d-row-in 0.3s ease both; }
.d-dpreview { background: #fff; border: 1px solid #e4ebe8; border-radius: 6px; padding: 8px; display: grid; gap: 4px; font-size: 8px; line-height: 1.3; }
.d-dpreview small { color: #1f5a52; font-weight: 600; font-size: 7px; }
.d-dpreview b { font-size: 9.5px; }
.d-dtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 2px 0; }
.d-dtiles i { height: 34px; border-radius: 3px; background: #e6ebe9; }
.d-dtiles i + i { background: #eadbc8; }
.d-dbtn { justify-self: start; background: #1f5a52; color: #f7f3eb; border-radius: 4px; padding: 3px 6px; font-weight: 600; }
.d-dmeta { display: grid; gap: 6px; align-content: start; font-size: 13px; }
.d-dmeta .d-muted { font-size: 11.5px; }

/* Sales loop */
.sales-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.sales-copy { display: grid; gap: 1.25rem; }
.sales-copy .lede { max-width: 32rem; }
.sales-steps { margin: 0.5rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.7rem; color: var(--ink-soft); }
.sales-steps li::marker { color: var(--teal); font-weight: 700; }
.sales-steps strong { color: var(--ink); font-weight: 600; }
.sales-visual { min-width: 0; }
.loop { width: 100%; height: auto; display: block; font-family: var(--font-body); }
@media (max-width: 60rem) { .sales-grid { grid-template-columns: minmax(0, 1fr); } .sales-visual { max-width: 36rem; } }
@media (max-width: 40rem) { .sales-visual { display: none; } }

/* Loop animation: a dot travels the ring; each stop pops as it is reached */
.loop-node { transition: transform 0.35s cubic-bezier(.3,1.4,.5,1); }
.loop-node.on { transform: scale(1.3); }
.loop-node.on circle { fill: var(--teal-dark); }
.loop-label text { transition: fill 0.3s ease; }
.loop-label.on text:first-child { fill: var(--teal); }
.loop-arc { transition: stroke-width 0.3s ease, opacity 0.3s ease; opacity: 0.45; }
.loop-arc.on, .loop-arc.done { opacity: 1; }
.loop-arc.on { stroke-width: 4; }
.loop-dot { filter: drop-shadow(0 2px 4px rgba(15,45,41,.35)); }
.sales-steps li { transition: color 0.3s ease; border-radius: 8px; padding: 0.15rem 0.5rem; margin-left: -0.5rem; }
.sales-steps li.on { background: rgba(31, 90, 82, 0.1); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .loop-node, .loop-label text, .loop-arc, .sales-steps li { transition: none; } .loop-arc { opacity: 1; } }

/* Pricing teaser on the home page, and the CTA band on the pricing page */
.pricing-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.pricing-teaser > div { display: grid; gap: 1rem; }
.pricing-teaser h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pricing-teaser .lede { max-width: 40rem; }
@media (max-width: 60rem) { .pricing-teaser { grid-template-columns: minmax(0, 1fr); } .pricing-teaser .btn { justify-self: start; } }
#pricing h1 { font-size: var(--fs-h2); font-weight: 600; }
/* Gift tiles in the ordering page scene */
.d-cover { border-left: 0; }
.d-card:nth-child(1) .d-cover { background: #e6ebe9; } .d-card:nth-child(2) .d-cover { background: #eadbc8; }
.d-card:nth-child(3) .d-cover { background: #e3e8dc; } .d-card:nth-child(4) .d-cover { background: #ecdfe6; }

/* ---------- Shop-type use-case pages (for-bookshops.html and friends) ---------- */
/* Page top: a dark band with the shop and its week, then the "today" paragraph. */
.shop-hero { background: var(--teal-dark); color: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.shop-hero .kicker { color: var(--accent); margin-bottom: 1rem; }
.shop-hero h1 { font-size: var(--fs-h1); font-weight: 600; max-width: 16em; }
.shop-hero .today { font-size: var(--fs-lg); max-width: 40rem; margin-top: 1.5rem; color: rgba(247, 243, 235, 0.8); }
.shop-hero .hero-cta { margin-top: 1.75rem; }
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
/* The week at a glance: one row per moment, linking down the page */
.week-rail { display: grid; gap: 0.4rem; align-self: center; }
.week-rail a { text-decoration: none; padding: 0.8rem 1rem; border-radius: 10px; color: rgba(247,243,235,.78); display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.7rem; align-items: start; font-size: 0.95rem; line-height: 1.35; border: 1px solid var(--line-dark); transition: background-color 0.15s ease, color 0.15s ease; }
.week-rail a:hover { background: var(--cream); color: var(--ink); }
.week-rail a i { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid rgba(247,243,235,.35); display: grid; place-items: center; font-style: normal; font-size: 0.75rem; font-weight: 700; }
.week-rail a:hover i { border-color: var(--teal); color: var(--teal); }
.week-rail small { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.week-rail a:hover small { color: var(--teal); }
.week-rail span { font-weight: 600; }
@media (max-width: 60rem) { .shop-hero-grid { grid-template-columns: minmax(0, 1fr); } .week-rail { display: none; } }
/* The moments: a numbered run of feature rows, copy on one side and the scene on the other. */
.moments { display: grid; gap: clamp(4rem, 9vw, 7rem); }
.moment { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.moment-copy { grid-column: span 5; display: grid; gap: 1rem; min-width: 0; }
.moment-media { grid-column: span 7; min-width: 0; }
.moment.flip .moment-copy { order: 2; }
.moment.flip .moment-media { order: 1; }
.moment .kicker { display: flex; align-items: center; gap: 0.6rem; }
.moment .kicker i { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--teal); color: var(--cream); display: grid; place-items: center; font-style: normal; font-size: 0.8rem; font-weight: 700; flex: none; }
.moment h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.moment .today-line { color: var(--ink-soft); }
.moment .today-line strong { color: var(--ink); font-weight: 600; }
.moment .steps { margin-top: 0.25rem; }
.moment .steps .state { display: none; }
.moment .steps .step { background: var(--paper); border: 1px solid var(--line); }
.band-mist .moment .steps .step { background: var(--paper); }
.moment-media .media-phone { grid-template-columns: minmax(0, 20rem); }
.moment-media .demo-app { background: #f4f6f5; }
/* "What you'd be on" */
.plan-pick { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.plan-pick-copy { display: grid; gap: 1rem; }
.plan-pick-copy .lede { max-width: 34rem; }
.plan-pick-card { border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.75rem; }
.plan-pick-card.is-scale { background: var(--teal-dark); color: var(--cream); border-color: var(--teal-dark); }
.plan-pick-card.is-scale .kicker { color: var(--accent); }
.plan-pick-card .plan-price { font-size: var(--fs-base); color: var(--ink); }
.plan-pick-card.is-scale .plan-price { color: rgba(247, 243, 235, 0.82); }
.plan-pick-card.is-scale .plan-price strong { color: var(--cream); }
.plan-pick-card .plan-billed { color: var(--ink-soft); }
.plan-pick-card.is-scale .plan-billed { color: rgba(247, 243, 235, 0.78); }
.plan-pick-card .ticks li { color: inherit; }
.plan-pick-card.is-scale .ticks li::before { border-color: var(--accent); }
.plan-pick-card .btn { justify-self: start; margin-top: 0.75rem; }
.plan-pick-card a.plan-link { font-size: var(--fs-sm); font-weight: 600; color: var(--teal); }
.plan-pick-card.is-scale a.plan-link { color: var(--accent); }
/* Hub page: one card per shop type */
.shop-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.shop-card { display: grid; gap: 0.75rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); background: var(--paper); text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.shop-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.shop-card h2 { font-size: var(--fs-h3); }
.shop-card p { color: var(--ink-soft); }
.shop-card .shop-card-more { font-weight: 600; color: var(--teal); margin-top: 0.5rem; }
.shop-card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.shop-card-list li::before { content: "·"; margin-right: 0.5rem; color: var(--teal); font-weight: 700; }
/* Cross-links at the foot of a use-case page */
.other-shops { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.5rem; font-weight: 600; }
.other-shops a { color: var(--teal); text-decoration: none; }
.other-shops a:hover { text-decoration: underline; }
@media (max-width: 60rem) {
  .moment-copy, .moment-media { grid-column: 1 / -1; }
  .moment.flip .moment-copy { order: 0; }
  .plan-pick { grid-template-columns: minmax(0, 1fr); }
  .shop-cards { grid-template-columns: minmax(0, 1fr); }
}
