/* VeloUp styles. Uses only the variables in tokens.css. Rules come from DESIGN.md. */

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--midnight);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--action-bar-h); /* room for the mobile bottom bar */
}

img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: var(--violet); }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: var(--space-4);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

p { max-width: 680px; margin-bottom: var(--space-4); }

.lead { font-size: var(--fs-lead); }
.small { font-size: var(--fs-small); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

section { padding-block: var(--section-pad); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  z-index: 1000;
  padding: var(--space-3) var(--space-4);
  background: var(--violet);
  color: var(--white);
  border-radius: var(--space-2);
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Focus (3px ring, offset 2px; Lavender on dark) ---------- */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.action-bar :focus-visible,
.wa-float:focus-visible {
  outline-color: var(--lavender);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-button);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-hover) var(--ease);
}
.btn-lg { min-height: 52px; }

.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover {
  background: var(--violet-dark);
  transform: translateY(-2px);
  box-shadow: var(--glow-violet);
}
.btn-primary:active { transform: none; box-shadow: none; }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn-secondary {
  background: transparent;
  color: var(--violet);
  border-color: var(--violet);
}
.btn-secondary:hover { background: rgba(109, 40, 217, 0.08); transform: translateY(-2px); }
.btn-secondary:active { transform: none; }

/* Secondary button on dark backgrounds: white */
.site-header .btn-secondary,
.site-footer .btn-secondary,
.action-bar .btn-secondary,
.site-nav .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
.site-header .btn-secondary:hover,
.action-bar .btn-secondary:hover,
.site-nav .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.btn-text {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.btn-text:hover { color: var(--violet-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--midnight);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--white);
}
.logo-up { color: var(--lavender); }

.header-cta { display: none; }

/* Hamburger (below 1024px) */
.menu-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 0;
  border-radius: var(--space-2);
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur-hover) var(--ease), opacity var(--dur-hover) var(--ease);
}
.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigation: slide-in panel below 1024px */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--space-5)) var(--pad) var(--space-6);
  background: var(--midnight);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 350ms var(--ease), visibility 0s linear 350ms;
}
.menu-open .site-nav {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.nav-list { display: flex; flex-direction: column; }
.nav-list li { border-bottom: var(--border-dark); }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
}
.nav-list a:hover { color: var(--lavender); }
.nav-list a[aria-current="page"] {
  color: var(--lavender);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-6);
}
.nav-actions .btn { width: 100%; }

/* No-JavaScript fallback header: always visible, simple row */
.site-nav--fallback {
  position: static;
  inset: auto;
  z-index: auto;
  flex: 1;
  padding: 0;
  background: transparent;
  overflow: visible;
  transform: none;
  visibility: visible;
  transition: none;
}
.site-nav--fallback .nav-list {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: var(--space-3);
}
.site-nav--fallback .nav-list li { border: 0; }
.site-nav--fallback .nav-list a { min-height: 44px; font-size: var(--fs-small); }
.site-header--fallback .header-cta { display: none; }
.site-header--fallback { height: auto; min-height: var(--header-h); padding-block: var(--space-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: var(--text-muted-dark);
  padding: var(--space-8) 0 var(--space-5);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
.footer-brand .logo { font-size: 1.5rem; margin-bottom: var(--space-3); }
.footer-tagline { color: var(--lavender); font-size: var(--fs-body); max-width: 320px; }
.site-footer h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-small);
  color: var(--white);
  margin-bottom: var(--space-3);
}
.footer-list li { margin-bottom: var(--space-1); }
.site-footer a { color: var(--lavender); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: var(--border-dark);
  font-size: var(--fs-smallest);
  color: var(--text-muted-dark);
}
.footer-bottom p { margin: 0; max-width: none; }

/* ---------- Mobile bottom action bar (phones) ---------- */
.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-3);
  align-items: center;
  height: var(--action-bar-h);
  padding: var(--space-2) var(--space-4);
  background: var(--midnight);
  border-top: var(--border-dark);
  transition: transform var(--dur-hover) var(--ease);
}
.action-bar .btn { min-height: 48px; padding-inline: var(--space-3); }
.menu-open .action-bar,
.field-focus .action-bar {
  transform: translateY(100%);
  visibility: hidden;
}

/* ---------- Floating WhatsApp button (tablet and desktop) ---------- */
.wa-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--midnight);
  border: 2px solid var(--lavender);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-hover) var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: var(--glow-violet); }
.wa-float::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 64px;
  top: 50%;
  padding: var(--space-2) var(--space-3);
  background: var(--midnight);
  border: var(--border-dark);
  border-radius: var(--space-2);
  color: var(--white);
  font-size: var(--fs-small);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity var(--dur-hover) var(--ease);
}
.wa-float:hover::after,
.wa-float:focus-visible::after { opacity: 1; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tablet (768px and up) ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .wa-float { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Desktop (1024px and up) ---------- */
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .site-header--fallback .header-cta { display: inline-flex; }

  .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex: 1;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav-list { flex-direction: row; gap: var(--space-1); }
  .nav-list li { border: 0; }
  .nav-list a {
    min-height: 44px;
    padding: 0 var(--space-3);
    font-size: var(--fs-body);
    font-weight: 500;
  }
  .nav-actions { display: none; }
}

/* ---------- Reduced motion: no animation, instant changes ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:hover,
  .btn-secondary:hover,
  .wa-float:hover { transform: none; }
}

/* ===== Home page components (DESIGN.md sections 6-9) ===== */

/* Section backgrounds and dark-section text colours */
.bg-white { background: var(--white); }
.bg-tint { background: var(--tint); }
.bg-raised { background: var(--midnight-raised); }
.on-dark { background: var(--midnight); color: var(--white); }
.bg-raised.on-dark { background: var(--midnight-raised); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark p { color: var(--text-muted-dark); }
.on-dark .lead { color: var(--white); }
.on-dark a:not(.btn) { color: var(--lavender); }

.display { font-size: var(--fs-display); line-height: var(--lh-display); }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: var(--space-3);
}
.on-dark .eyebrow { color: var(--lavender); }

/* Icons (stroke icons, colour follows the text) */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 32px; height: 32px; color: var(--violet); margin-bottom: var(--space-4); }

.hero-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.hero-actions .btn { width: 100%; }


/* Check lists */
.check-list { list-style: none; display: grid; gap: var(--space-4); }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 20px; height: 20px;
  background: var(--violet);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list-wide { margin-top: var(--space-5); }

.lead-service { display: grid; gap: var(--space-6); align-items: start; }
.lead-service .check-list {
  background: var(--tint);
  border: var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

/* Cards */
.card-grid { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.service-card {
  background: var(--white);
  border: var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}
.service-card p { margin-bottom: 0; color: var(--text-muted); }

/* Steps */
.steps { list-style: none; display: grid; gap: var(--space-4); margin-block: var(--space-5); }
.step-card {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--tint);
  border: var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
}
.step-card h3 { margin: 0; font-size: var(--fs-lead); }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
}


/* Closing call to action */
.cta-band { text-align: center; }
.cta-band p { margin-inline: auto; }
.cta-actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: stretch; margin-top: var(--space-5); }

@media (min-width: 768px) {
  .hero-actions, .cta-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .cta-actions { justify-content: center; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step-card { flex-direction: column; align-items: flex-start; padding: var(--space-5); }
  .lead-service { grid-template-columns: 1.1fr 1fr; gap: var(--space-7); }
}

/* ===== Inner pages ===== */
.page-hero { padding-block: var(--space-8); background: radial-gradient(60% 80% at 85% 0%, rgba(109, 40, 217, 0.30), transparent 70%), var(--midnight); }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero p { margin-bottom: 0; }
.service-detail { display: grid; gap: var(--space-5); align-items: start; }
.service-detail h2 { margin-bottom: var(--space-3); }
.badge {
  display: inline-block; margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--tint); border: var(--border-light);
  color: var(--violet-dark); font-weight: 500; font-size: var(--fs-small);
}
.steps-detail { list-style: none; display: grid; gap: var(--space-5); }
.steps-detail .step-card { flex-direction: column; align-items: flex-start; padding: var(--space-5); background: var(--white); box-shadow: var(--shadow-soft); }
.steps-detail .check-list { margin-top: var(--space-3); }
.info-grid { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.info-card { background: var(--white); border: var(--border-light); border-radius: var(--radius-card); padding: var(--space-5); box-shadow: var(--shadow-soft); }
.info-card h3 { margin-bottom: var(--space-2); }
.info-card p { margin-bottom: 0; color: var(--text-muted); }
@media (min-width: 768px) {
  .page-hero { padding-block: var(--space-9); }
  .service-detail { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-detail { grid-template-columns: repeat(3, 1fr); }
}

/* Secondary button on dark sections: white text and lavender border (violet text is not readable on Midnight) */
.on-dark .btn-secondary { color: var(--white); border-color: var(--lavender); }
.on-dark .btn-secondary:hover { background: rgba(196, 181, 253, 0.12); }

/* ===== FAQ, contact form, legal text ===== */
.faq-list { display: grid; gap: var(--space-3); max-width: 800px; }
.faq-item { background: var(--white); border: var(--border-light); border-radius: var(--radius-card); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 56px; padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-lead);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
  transform: rotate(45deg); transition: transform var(--dur-hover) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { padding: 0 var(--space-5) var(--space-5); margin: 0; color: var(--text-muted); max-width: none; }

.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
.numbered { list-style: none; counter-reset: n; display: grid; gap: var(--space-4); margin-bottom: var(--space-5); }
.numbered li { counter-increment: n; position: relative; padding-left: 3rem; }
.numbered li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--violet); color: var(--white); font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-small);
}
.contact-list { list-style: none; display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }

.form-card { background: var(--white); border: var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: var(--space-5); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 500; margin-bottom: var(--space-1); }
.field .optional { color: var(--text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--midnight); background: var(--white);
  border: 1px solid rgba(18, 14, 38, 0.35); border-radius: 8px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.field-error { color: var(--error); font-size: var(--fs-small); margin: var(--space-1) 0 0; max-width: none; }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-radius: 8px; max-width: none; }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--tint); border: 1px solid var(--violet); color: var(--midnight); }
.form-status.is-error { background: #FEF3F2; border: 1px solid var(--error); color: var(--error); }
.form-note { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-3); }

.legal { max-width: 720px; }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.legal h2:first-child { margin-top: 0; }
.legal ul { margin: 0 0 var(--space-4) var(--space-5); }
.legal .contact-list { margin-left: 0; }
.legal li { margin-bottom: var(--space-2); }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: var(--space-6); }
}

/* ===== Logo mark in header/footer ===== */
.logo { display: inline-flex; align-items: center; }
.logo-mark { width: 34px; height: auto; flex: none; margin-right: var(--space-2); }


/* ===== Scroll reveals ===== */
.motion-ready .reveal { opacity: 0; transform: translateY(16px); }
.motion-ready .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
  transition-delay: var(--d, 0ms);
}


/* ===== Hover and press (devices with a real pointer only) ===== */
.btn { transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease); }
.service-card, .info-card, .step-card { position: relative; transition: transform var(--dur-hover) var(--ease); }
.service-card::before, .info-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--glow-violet); opacity: 0; transition: opacity var(--dur-hover) var(--ease);
}
.btn:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .service-card:hover, .info-card:hover { transform: translateY(-4px); }
  .service-card:hover::before, .info-card:hover::before { opacity: 1; }
}
.service-card:focus-within, .info-card:focus-within { transform: translateY(-4px); }
.service-card:focus-within::before, .info-card:focus-within::before { opacity: 1; }

/* ===== Reduced motion: everything shows in its final, still state ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .motion-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .btn:active, .service-card:hover, .info-card:hover { transform: none !important; }
}

/* Only DM Sans 400 and 500 are loaded, so bold text uses 500 */
strong, b { font-weight: 500; }

.steps-detail .step-card h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: 0; }

/* ===================== Modern layer (UI polish) ===================== */
.arrow-mask { }
/* Buttons: soft gradient, glow, sliding arrow on large buttons */
.btn-primary { background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%); }
.btn-primary:hover { background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet-dark) 100%); }
.btn-primary.btn-lg { box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35); }
.btn-primary.btn-lg::after {
  content: ""; width: 18px; height: 18px; margin-left: var(--space-2); background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}
@media (hover: hover) { .btn-primary.btn-lg:hover::after { transform: translateX(4px); } }

/* Dot-grid texture on dark hero areas */
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(196, 181, 253, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.page-hero, .cta-band { position: relative; overflow: hidden; }
.page-hero > .container, .cta-band > .container { position: relative; z-index: 1; }
.page-hero::before {
  content: ""; position: absolute; right: -40px; top: 50%; width: 360px; height: 240px; transform: translateY(-50%);
  background: url("../assets/logo/veloup-mark.svg") center / contain no-repeat; opacity: 0.10; pointer-events: none;
}

.display { letter-spacing: -0.02em; }


/* Spotlight that follows the pointer */
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 40, 217, 0.12), transparent 65%);
  transition: opacity 300ms var(--ease);
}
.on-dark.spot::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 181, 253, 0.16), transparent 65%); }
@media (hover: hover) { .spot:hover::after { opacity: 1; } }


/* Why choose us: icon tiles */
.why-grid { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.why-grid li {
  position: relative; padding: var(--space-5) var(--space-5) var(--space-5) 4.25rem;
  background: var(--tint); border: var(--border-light); border-radius: var(--radius-card); font-weight: 500;
}
.why-grid li::before {
  content: ""; position: absolute; left: var(--space-5); top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* Founder note */
.founder { display: grid; gap: var(--space-5); align-items: center; }
.founder-mark {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px;
  background: var(--midnight); box-shadow: var(--shadow-soft);
}
.founder-mark .logo-mark { width: 52px; margin: 0; }
.founder h2 { margin-bottom: var(--space-3); }
.founder p { margin-bottom: 0; }
@media (min-width: 768px) { .founder { grid-template-columns: auto 1fr; gap: var(--space-6); } }


/* Step circles and cards: a little more presence */
.step-num { width: 44px; height: 44px; background: linear-gradient(135deg, var(--violet), var(--violet-dark)); }
.steps .step-card, .steps-detail .step-card { border-radius: 20px; }


h1, h2 { text-wrap: balance; }


/* Tilt needs a shared perspective */
.bento, .info-grid, .chat-section { perspective: 1100px; }
.bento-tile, .info-card, .chat { transition: rotate 200ms var(--ease), transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease); will-change: auto; }

/* Closing call to action: big faint logo mark */
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(720px, 90%); height: 360px; transform: translate(-50%, -50%);
  background: url("../assets/logo/veloup-mark.svg") center / contain no-repeat; opacity: 0.07; pointer-events: none;
}

/* Reading progress line (browsers that support scroll-linked animation) */
@supports (animation-timeline: scroll()) {
  body::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
    background: linear-gradient(90deg, var(--violet), var(--lavender)); transform-origin: 0 50%; transform: scaleX(0);
    animation: read-progress linear both; animation-timeline: scroll(root block);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  .bento-tile, .info-card, .chat { rotate: none !important; }
}

/* ===== Viewing modes (?motion=calm / ?motion=still) ===== */
.mode-calm .spot::after, .mode-calm .service-card::before, .mode-calm .info-card::before { display: none; }
.mode-calm .bento-tile, .mode-calm .info-card, .mode-calm .chat { rotate: none !important; }
.mode-still *, .mode-still *::before, .mode-still *::after { animation: none !important; transition: none !important; }
.mode-still .reveal { opacity: 1 !important; transform: none !important; }
.mode-still .spot::after { display: none; }
.mode-still body::before { display: none; }

/* ===== Pune page: comparison table and area list ===== */
.table-wrap { margin-top: var(--space-5); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--border-light); border-radius: var(--radius-card); overflow: hidden; }
.compare th, .compare td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: var(--border-light); }
.compare thead th { background: var(--tint); font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-small); }
.compare tbody th { font-weight: 500; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .badge { margin: var(--space-1) 0 0; display: inline-block; }
@media (max-width: 767px) {
  .compare thead { position: absolute; left: -9999px; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: var(--border-light); padding: var(--space-3) 0; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: var(--space-2) var(--space-5); }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--fs-small); color: var(--text-muted); }
}
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.area-list li { padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--tint); border: var(--border-light); font-weight: 500; }
.page-hero .hero-actions { margin-top: var(--space-5); }
.table-wrap + p { margin-top: var(--space-4); }

/* ===================== Warm Loop (DESIGN.md section 14) ===================== */

/* Base: cream paper with a very faint grain */
body {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .05 0 0 0 0 .15 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--lavender); color: var(--midnight); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }
.display { font-size: var(--fs-display); line-height: 0.95; letter-spacing: -0.04em; }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--violet); }
.eyebrow { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; text-transform: none; }

.bg-white { background: transparent; }
.bg-tint { background: var(--paper); border-block: 1.5px solid var(--midnight); }

/* Buttons: solid colours, speech-bubble corner, no glow */
.btn { border-radius: var(--radius-ink); }
.btn-primary, .btn-primary:hover { background: var(--violet); box-shadow: none; }
.btn-primary:hover { background: var(--violet-dark); }
.btn-primary.btn-lg { background: var(--midnight); box-shadow: none; }
.btn-primary.btn-lg:hover { background: #241D3D; }
.btn-primary.btn-lg::after { background: var(--cyan); }
.btn-secondary { color: var(--midnight); border-color: var(--midnight); }
.btn-secondary:hover { background: rgba(18, 14, 38, 0.06); }

/* Header, mobile menu and bottom bar: cream instead of Midnight */
.site-header { background: rgba(255, 248, 238, 0.94); color: var(--midnight); border-bottom: 1px solid var(--rule); }
.logo { color: var(--midnight); font-weight: 800; }
.logo-up { color: var(--violet); }
.site-footer .logo { color: var(--white); }
.site-footer .logo-up { color: var(--lavender); }
.menu-toggle .bar { background: var(--midnight); }
.site-nav { background: var(--cream); }
@media (max-width: 1023px) { .nav-list li { border-bottom: 1px solid var(--rule); } }
.nav-list a { color: var(--midnight); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--violet); }
.site-header :focus-visible, .action-bar :focus-visible { outline-color: var(--violet); }
.site-header .btn-secondary, .site-nav .btn-secondary, .action-bar .btn-secondary { color: var(--midnight); border-color: var(--midnight); }
.site-header .btn-secondary:hover, .site-nav .btn-secondary:hover, .action-bar .btn-secondary:hover { background: rgba(18, 14, 38, 0.06); }
.action-bar { background: var(--cream); border-top: 1.5px solid var(--midnight); }
.action-bar .btn-primary { background: var(--violet); }
.wa-float { border-color: var(--midnight); }

/* Cards and panels: paper with an ink outline, no shadow */
.service-card, .info-card, .form-card, .faq-item, .steps-detail .step-card, .why-grid li, .compare {
  background: var(--paper); border: 1.5px solid var(--midnight); border-radius: var(--radius-ink); box-shadow: none;
}
.service-card::before, .info-card::before { display: none; }
.badge, .area-list li { background: var(--lav-soft); border-color: transparent; }
.compare thead th { background: var(--lav-soft); }
.step-num { background: var(--paper); color: var(--midnight); border: 2px solid var(--midnight); }
.numbered li::before { background: var(--paper); color: var(--midnight); border: 2px solid var(--midnight); }
.founder-mark { background: var(--paper); border: 1.5px solid var(--midnight); box-shadow: none; }

/* Closing band: a big dark ending with a slow cyan glow behind the button */
.cta-band { margin: var(--space-6) var(--space-3) var(--space-5); border-radius: 28px; padding-block: var(--space-9); }
.cta-band::before { left: auto; right: -60px; top: auto; bottom: -80px; width: 360px; height: 240px; transform: none; opacity: 0.12; }
.cta-band .hand { display: block; color: var(--lavender); font-size: 1.75rem; margin-bottom: var(--space-4); }
.cta-band h2 { hyphens: manual; font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem); line-height: 0.92; letter-spacing: -0.05em; max-width: 1000px; margin-inline: auto; }
.cta-band h2 span { color: var(--lavender); }
.cta-actions { position: relative; align-items: center; margin-top: var(--space-7); }
.cta-actions::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 420px; max-width: 100%; height: 200px; margin: -100px 0 0 -210px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(103, 232, 249, 0.5), rgba(103, 232, 249, 0));
  animation: cta-glow 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes cta-glow { 50% { transform: scale(1.25); opacity: 0.55; } }
.cta-band .btn { position: relative; }
.cta-band .btn-primary, .cta-band .btn-primary.btn-lg { background: var(--cyan); color: var(--midnight); }
.cta-band .btn-primary.btn-lg::after { background: var(--violet); }
.cta-band .btn-primary:hover { background: #A5F3FC; }
@media (min-width: 768px) { .cta-band { margin-inline: var(--space-5); border-radius: 36px; } }

/* ---------- Home hero ---------- */
.wl-hero { padding-block: var(--space-5) var(--space-8); }
.wl-hero .hand { display: inline-block; transform: rotate(-3deg); }
.wl-hero h1 { margin: var(--space-3) 0 var(--space-5); text-wrap: wrap; }
.nw { white-space: nowrap; }
.wl-hero h1 .v { color: var(--violet); }
.circ { position: relative; display: inline-block; z-index: 0; }
.circ svg { position: absolute; left: -0.18em; top: -0.05em; width: calc(100% + 0.36em); height: calc(100% + 0.18em); z-index: -1; overflow: visible; }
.circ path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-circle 1.1s 0.5s var(--ease) forwards; }
@keyframes draw-circle { to { stroke-dashoffset: 0; } }
.wl-hero .lead { color: var(--text-muted); max-width: 470px; }
.wl-link { font-weight: 500; color: var(--midnight); text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 4px; text-underline-offset: 6px; align-self: flex-start; padding-block: var(--space-2); }
.wl-hero .hero-actions { margin-top: var(--space-6); }
@media (min-width: 768px) { .wl-link { align-self: center; padding-block: 0; } }

/* Chat demo: phone with notes that pop out */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.stage-art { display: none; }
.phone { width: 290px; height: 600px; background: var(--midnight); border-radius: 42px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(18, 14, 38, 0.45); }
.phone-screen { height: 100%; border-radius: 33px; overflow: hidden; background: #EFE7DD; display: flex; flex-direction: column; }
.phone-top { background: var(--midnight); color: var(--white); padding: 30px 16px 12px; display: flex; align-items: center; gap: 10px; }
.phone-av { width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); color: var(--midnight); display: grid; place-items: center; font: 800 14px var(--font-heading); }
.phone-top b { display: block; font-size: 14px; font-weight: 500; }
.phone-top small { font-size: 11px; color: var(--lavender); }
.demo-chat { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.demo-chat[hidden] { display: none; }
.dm { max-width: 82%; margin: 0; padding: 8px 11px; border-radius: 12px; }
.dm-in { background: var(--white); align-self: flex-start; border-top-left-radius: 3px; }
.dm-out { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 3px; }
.dm-sys { align-self: center; background: #FFE9E3; color: #8A2B12; font-size: 12px; border-radius: 8px; }
.dm-ok { align-self: center; background: var(--cyan); color: var(--midnight); font-size: 12px; font-weight: 500; border-radius: 8px; }
.dm time { display: block; text-align: right; font-size: 10px; color: #5B5B5B; margin-top: 2px; }
.dm-typing { display: none; align-self: flex-end; gap: 4px; background: #DCF8C6; padding: 10px 12px; border-radius: 12px; }
.dm-typing.is-on { display: flex; }
.dm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #5F7A55; animation: typing-dot 1s infinite; }
.dm-typing i:nth-child(2) { animation-delay: 0.15s; }
.dm-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 50% { opacity: 0.25; } }
.demo-ready .dm { display: none; }
.demo-ready .dm.is-on { display: block; animation: dm-in 0.35s var(--ease) both; }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.note {
  --r: -3deg; position: relative; width: 86%; max-width: 280px; margin: 0; padding: 14px 14px 10px;
  font-size: 14px; line-height: 1.35; border-radius: 3px; transform: rotate(var(--r));
  box-shadow: 0 1px 0 rgba(18, 14, 38, 0.06), 0 10px 18px -12px rgba(18, 14, 38, 0.35);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.25s var(--ease);
}
.note-q { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.note-a { display: block; font: 600 1.3rem var(--font-hand); color: var(--violet); margin-top: 4px; }
.note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 66px; height: 22px; margin-left: -33px; background: rgba(196, 181, 253, 0.6); transform: rotate(-4deg); }
.note-1 { background: var(--paper); border: 1.5px solid var(--midnight); align-self: flex-start; }
.note-2 { --r: 4deg; background: var(--lav-soft); align-self: flex-end; }
.note-3 { --r: -2deg; background: var(--cyan); align-self: flex-start; }
.note-3 .note-a { color: var(--midnight); }
.note-3::before { background: rgba(255, 255, 255, 0.7); }
.demo-ready .note { opacity: 0; transform: translateY(14px) rotate(var(--r)) scale(0.9); }
.demo-ready .note.is-on { opacity: 1; transform: rotate(var(--r)); }
@media (hover: hover) {
  .note:hover, .demo-ready .note.is-on:hover { transform: rotate(0) translateY(-6px); box-shadow: 0 1px 0 rgba(18, 14, 38, 0.06), 0 22px 30px -14px rgba(18, 14, 38, 0.4); }
}
.stage-cap { align-self: flex-end; font: 600 1.2rem var(--font-hand); color: var(--text-muted); margin: 0; }

/* Services strip */
.svc-strip { padding-block: 0; background: var(--paper); border-block: 1.5px solid var(--midnight); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.svc-item { padding: var(--space-5) var(--space-3) var(--space-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.svc-item:nth-child(2n) { border-right: 0; }
.svc-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
.svc-num { font: 600 2rem var(--font-hand); color: var(--violet); line-height: 1; }
.svc-item h3 { font-size: 1.2rem; line-height: 1.12; margin: var(--space-2) 0; }
.svc-item p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.svc-more { margin: 0 auto; padding-block: var(--space-4); text-align: center; }

/* Missed-enquiry calculator */
.calc-grid { display: grid; gap: var(--space-6); align-items: center; }
.calc-grid h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1; }
.calc-grid .lead { color: var(--text-muted); }
.calc-panel { background: var(--paper); border: 1.5px solid var(--midnight); border-radius: 24px 24px 24px 6px; padding: var(--space-5); }
.calc-field { margin-bottom: var(--space-5); }
.calc-field label { display: flex; justify-content: space-between; gap: var(--space-3); font-weight: 500; font-size: 15px; margin-bottom: var(--space-2); }
.calc-field output { font: 800 1.125rem var(--font-heading); color: var(--violet); white-space: nowrap; }
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; margin: 8px 0; cursor: pointer;
  background: linear-gradient(90deg, var(--cyan) 0 var(--p, 50%), var(--lav-soft) var(--p, 50%));
}
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 3px solid var(--violet); transition: transform 0.15s; }
.calc-field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 3px solid var(--violet); }
.calc-field input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.calc-field input[type="range"]:focus-visible { outline: 3px solid var(--violet); outline-offset: 6px; }
.calc-result { border-top: 1.5px dashed var(--rule); padding-top: var(--space-5); }
.calc-result .hand { font-size: 1.4rem; }
.calc-amt { font: 800 clamp(2.75rem, 2rem + 3vw, 3.75rem)/1 var(--font-heading); letter-spacing: -0.04em; margin: var(--space-2) 0; }
.calc-how { font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-5); }

/* Steps joined by a dotted line that fills as you scroll */
.loop-steps-grid { display: grid; gap: var(--space-6); }
.loop-steps-grid h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1; margin-bottom: var(--space-3); }
.loop-wrap { position: relative; }
.loop-steps { list-style: none; display: grid; gap: var(--space-6); position: relative; }
.loop-line { display: none; }
.loop-step { position: relative; padding-top: 72px; }
.loop-dot { position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); border: 2px solid var(--midnight); display: grid; place-items: center; font: 800 1.375rem var(--font-heading); transition: background 0.4s, transform 0.4s var(--ease); }
.loop-step.is-done .loop-dot { background: var(--lav-soft); }
.loop-step:last-child.is-done .loop-dot { background: var(--cyan); transform: scale(1.12); }
.loop-step h3 { font-size: 1.375rem; line-height: 1.15; margin-bottom: var(--space-2); }
.loop-step p { font-size: 15px; color: var(--text-muted); margin: 0; }

@media (min-width: 768px) {
  .calc-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .calc-panel { padding: var(--space-6) var(--space-6) var(--space-5); }
  .loop-steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .loop-line { display: block; position: absolute; left: 27px; top: 12px; width: calc(66.6% + 13px); height: 30px; overflow: visible; }
  .loop-line .track { stroke: var(--lavender); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
  .loop-line .fill { stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--o, 1); }
}
@media (min-width: 1024px) {
  .wl-hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-5); align-items: center; }
  .svc-grid { grid-template-columns: repeat(5, 1fr); }
  .svc-item { border-bottom: 0; padding: var(--space-6) var(--space-4) var(--space-7); }
  .svc-item:nth-child(2n) { border-right: 1px solid var(--rule); }
  .svc-item:last-child { grid-column: auto; border-right: 0; }
  .svc-item:first-child { padding-left: 0; }
  .svc-item h3 { font-size: 1.3rem; }
  .stage { display: block; height: 720px; }
  .stage-art { display: block; position: absolute; left: -4%; top: 12%; width: 108%; opacity: 0.9; }
  .phone { position: absolute; left: 50%; top: 0; margin-left: -145px; }
  .note { position: absolute; width: 210px; }
  .note-1 { left: -4%; top: 150px; --r: -5deg; }
  .note-2 { right: -6%; top: 260px; }
  .note-3 { right: -7%; top: 430px; }
  .stage-cap { position: absolute; left: 0; bottom: 0; }
  .wl-hero .scene-tabs { position: absolute; left: 0; right: 0; top: 618px; }
  .loop-steps-grid { grid-template-columns: 1fr 2fr; gap: var(--space-7); }
}

@media (prefers-reduced-motion: reduce) {
  .circ path { stroke-dashoffset: 0; }
  .demo-ready .note { opacity: 1; transform: rotate(var(--r, 0deg)); }
  .loop-line .fill { stroke-dashoffset: 0; }
}
.mode-still .circ path { stroke-dashoffset: 0; }

/* ===================== Warm Loop additions (Nov 2026): demos, industries, founders, timeline ===================== */
.sec-head { margin-bottom: var(--space-6); }
.sec-head h2 { margin-bottom: var(--space-3); }
.sec-head .lead { color: var(--text-muted); }

/* Chat demo: industry tabs, who-is-speaking labels */
.stage [hidden] { display: none !important; }
.scene-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); order: -1; }
.scene-tab {
  position: relative; overflow: hidden; min-height: 40px; padding: 0 var(--space-4);
  font: 500 14px var(--font-body); color: var(--midnight); background: var(--paper);
  border: 1.5px solid var(--midnight); border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.scene-tab:hover { transform: translateY(-2px); }
.scene-tab[aria-pressed="true"] { background: var(--midnight); color: var(--white); }
/* while auto-playing, the active tab fills up until the next industry */
.scene-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.demo-ready:not(.is-manual) .scene-tab[aria-pressed="true"]::after { animation: tab-fill var(--scene-ms, 10s) linear both; }
@keyframes tab-fill { to { transform: scaleX(1); } }
.dm-who { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.dm-in .dm-who { color: #5B5B5B; }
.dm-out .dm-who { color: #2F6B2A; }
.phone-name { transition: opacity 0.3s var(--ease); }

/* How it works: phone next to a "what the assistant did" checklist */
.stage--flat { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.stage--flat .phone { height: 620px; }
.did { width: 100%; max-width: 440px; background: var(--paper); border: 1.5px solid var(--midnight); border-radius: var(--radius-ink); padding: var(--space-5); }
.did-title { font: 600 1.5rem var(--font-hand); color: var(--violet); margin-bottom: var(--space-3); }
.did-list { list-style: none; counter-reset: did; display: grid; gap: var(--space-3); margin: 0; }
.did-list:empty, .did-list:not(:has(.did-item:not([hidden]))) { display: none; }
.did-item {
  counter-increment: did; position: relative; display: block; width: auto; max-width: none; margin: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) 3.25rem; border-radius: 12px; background: transparent;
  transform: none; box-shadow: none; font-size: 15px; transition: background 0.4s var(--ease), opacity 0.4s var(--ease);
}
.did-item::before {
  content: counter(did); position: absolute; left: var(--space-3); top: var(--space-3); width: 28px; height: 28px; margin: 0;
  display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--midnight); background: var(--paper);
  font: 800 13px var(--font-heading); transform: none; transition: background 0.4s var(--ease);
}
.did-item b { display: block; font-weight: 500; }
.did-item span { color: var(--text-muted); font-size: 14px; }
.did-item.is-on { background: var(--lav-soft); }
.did-item.is-on::before { content: "\2713"; background: var(--cyan); }
.demo-ready .did-item { opacity: 0.45; transform: none; }
.demo-ready .did-item.is-on { opacity: 1; transform: none; }
.stage-note { font-size: var(--fs-small); color: var(--text-muted); text-align: center; margin: var(--space-5) auto 0; }

/* Who it's for */
.ind-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.ind-card {
  background: var(--paper); border: 1.5px solid var(--midnight); border-radius: var(--radius-ink); padding: var(--space-5);
  rotate: var(--tilt, -0.6deg); transition: rotate 0.3s var(--ease), translate 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ind-card:nth-child(2n) { --tilt: 0.7deg; }
.ind-card:nth-child(3n) { --tilt: -0.3deg; }
.ind-tag { font: 600 1.3rem var(--font-hand); color: var(--violet); }
.ind-card h3 { font-size: 1.25rem; margin: var(--space-1) 0 var(--space-2); }
.ind-card p { font-size: 15px; color: var(--text-muted); margin: 0; }
.ind-more { background: var(--lav-soft); border-style: dashed; }
@media (hover: hover) { .ind-card:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 18px 30px -18px rgba(18, 14, 38, 0.45); } }

.marquee { overflow: hidden; margin-top: var(--space-8); border-block: 1.5px solid var(--midnight); background: var(--paper); padding-block: var(--space-4); }
.marquee-track { display: flex; gap: var(--space-7); width: max-content; animation: marquee 45s linear infinite; }
.marquee span { font: 800 clamp(1.5rem, 1rem + 2vw, 2.5rem)/1 var(--font-heading); letter-spacing: -0.03em; white-space: nowrap; }
.marquee span:nth-child(2n) { color: transparent; -webkit-text-stroke: 1.5px var(--violet); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* What businesses lose without AI */
.miss { margin: var(--space-6) var(--space-3); border-radius: 28px; }
.miss h2 span { color: var(--lavender); }
.miss .lead { color: var(--text-muted-dark); }
.miss-list { list-style: none; display: grid; gap: 0; }
.miss-row { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-top: var(--border-dark); }
.miss-without { position: relative; justify-self: start; text-decoration: none; color: var(--text-muted-dark); }
/* the strike is a background on the inline text, so it crosses every wrapped line */
.miss-without span {
  background: linear-gradient(var(--lavender), var(--lavender)) no-repeat 0 58% / 100% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.8s var(--ease) 0.25s;
}
.motion-ready .miss-row:not(.is-in) .miss-without span { background-size: 0% 2px; }
.miss-with { color: var(--white); font-weight: 500; }
.miss-with::before { content: "\2192\00a0"; color: var(--cyan); }

/* Founders */
.founders-note { max-width: 780px; text-align: center; }
.fn-quote { position: relative; margin: var(--space-4) 0 var(--space-5); }
.fn-quote::before { content: "\201C"; display: block; font: 800 5rem/0.6 var(--font-heading); color: var(--violet); margin-bottom: var(--space-3); }
.fn-quote p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; max-width: none; }
.fn-sign { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); max-width: none; }
.fn-names { font: 600 1.75rem var(--font-hand); color: var(--violet); }
.fn-role { font-size: var(--fs-small); color: var(--text-muted); }
.founder-cards { list-style: none; display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.founder-card {
  background: var(--paper); border: 1.5px solid var(--midnight); border-radius: var(--radius-ink); padding: var(--space-6);
  rotate: var(--tilt, -0.8deg); transition: rotate 0.3s var(--ease), translate 0.3s var(--ease);
}
.founder-card:nth-child(2) { --tilt: 0.8deg; }
@media (hover: hover) { .founder-card:hover { rotate: 0deg; translate: 0 -6px; } }
/* keep the hover tilt smooth after the scroll reveal sets its own transition */
.motion-ready .ind-card.reveal.is-in, .motion-ready .founder-card.reveal.is-in { transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), rotate 0.3s var(--ease), translate 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.fc-avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--lav-soft); border: 2px solid var(--midnight); font: 800 1.5rem var(--font-heading); margin-bottom: var(--space-4); }
.founder-card h3 { margin-bottom: 0; }
.fc-role { font: 600 1.3rem var(--font-hand); color: var(--violet); margin-bottom: var(--space-3); }
.story { max-width: 820px; }
.story-text p { max-width: 720px; }

/* Timeline (How it works: first 14 days; About: approach) */
.timeline { list-style: none; position: relative; display: grid; gap: var(--space-6); padding-left: var(--space-6); }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--violet);
  transform-origin: top; transition: transform 1.2s var(--ease) 0.2s;
}
.motion-ready .timeline:not(.is-in)::before { transform: scaleY(0); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(-1 * var(--space-6) + 6px); top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--midnight); }
.tl-item:last-child::before { background: var(--cyan); }
.tl-when { font: 600 1.4rem var(--font-hand); color: var(--violet); }
.tl-item h3 { font-size: 1.25rem; margin: var(--space-1) 0 var(--space-2); }
.tl-item p { font-size: 15px; color: var(--text-muted); margin: 0; }

.need-grid { display: grid; gap: var(--space-5); }
.need-card { background: var(--paper); border: 1.5px solid var(--midnight); border-radius: var(--radius-ink); padding: var(--space-6); }
.need-card h2 { font-size: var(--fs-h3); }
.svc-for { font: 600 1.25rem var(--font-hand); color: var(--violet); }

/* Calculator: the amount gives a small bump when it changes */
.calc-amt.is-bump { animation: amt-bump 0.35s var(--ease); }
@keyframes amt-bump { 40% { transform: scale(1.04); color: var(--violet); } }

/* Privacy */
.legal-summary { background: var(--lav-soft); border-radius: var(--radius-ink); padding: var(--space-4) var(--space-5); max-width: none; margin-bottom: var(--space-6); }
.legal h3 { font-size: 1.05rem; margin: var(--space-4) 0 var(--space-2); }

@media (min-width: 768px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .miss { margin-inline: var(--space-5); border-radius: 36px; }
  .miss-row { grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
  .founder-cards, .need-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); padding-left: 0; padding-top: var(--space-6); }
  .timeline::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .motion-ready .timeline:not(.is-in)::before { transform: scaleX(0); }
  .tl-item::before { left: 0; top: calc(-1 * var(--space-6)); }
  .stage--flat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tabs tabs" "phone did"; align-items: center; column-gap: var(--space-7); }
  .stage--flat .scene-tabs { grid-area: tabs; }
  .stage--flat .phone { grid-area: phone; }
  .stage--flat .did { grid-area: did; }
}
@media (min-width: 1024px) {
  .ind-grid { grid-template-columns: repeat(4, 1fr); }
  .info-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .stage--flat { display: grid; height: auto; }
  .stage--flat .phone { position: relative; left: auto; margin: 0; }
  .stage--flat .note { position: relative; width: auto; }
  .stage--flat .did { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .miss-without span { background-size: 100% 2px !important; }
  .timeline::before { transform: none !important; }
  .ind-card, .founder-card { rotate: none; }
}
.mode-still .marquee-track { animation: none; }
