/* Luqma — Editorial hospitality redesign.
   Brand colour overrides applied throughout. No reference purple.
   Fonts: Newsreader (headings) + Instrument Sans (body/UI).
   All colour roles mapped to existing Luqma brand tokens. */

:root {
  --brand:        #e8542c;   /* primary accent — maps to reference --purple */
  --brand-hover:  #c8421d;   /* darker hover state */
  --ink:          #1a1410;   /* primary text */
  --muted:        #7a6f60;   /* secondary / subdued text */
  --paper:        #fff8f0;   /* main page surface */
  --soft:         #f6ede0;   /* subtle section surface */
  --tint:         #fbf3e8;   /* lighter tint */
  --dark:         #1a1410;   /* final CTA dark background */
  --line:         #d9cfc0;   /* dividers */
  --on-dark:      #f0e4d4;   /* text on dark surface */
  --on-dark-muted:#c0a890;   /* muted text on dark */
  --serif: "Newsreader", Georgia, serif;
  --sans:  "Instrument Sans", Arial, sans-serif;

  /* Legacy aliases — keeps assets/pages.css working on inner pages */
  --color-ink:        #1a1410;
  --color-ink-soft:   #2d241d;
  --color-cream:      #fff8f0;
  --color-cream-soft: #fbf3e8;
  --color-paper:      #f6ede0;
  --color-saffron:    #e8542c;
  --color-saffron-deep:#c8421d;
  --color-turmeric:   #f4b942;
  --color-mint:       #0f4c3a;
  --color-mint-soft:  #2a6e58;
  --color-taupe:      #d9cfc0;
  --color-taupe-soft: #ece4d4;
  --color-muted:      #7a6f60;
  --font-display:     "Newsreader", Georgia, serif;
  --font-body:        "Instrument Sans", Arial, sans-serif;
  --font-mono:        "JetBrains Mono", monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
h3 { font-weight: 500; }
em { font-style: italic; font-weight: 400; }
img, svg { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -999px;
  width: 1px; height: 1px;
  overflow: hidden;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  z-index: 999;
}
.skip-link:focus {
  position: fixed;
  left: 0; top: 0;
  width: auto; height: auto;
}

/* ── Container ── */
.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1360px, calc(100% - 72px));
  min-height: 86px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--brand);
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-mark svg { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Main nav */
.main-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.main-nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.main-nav a:hover { color: var(--ink); }

/* Nav actions */
.nav-actions { display: flex; gap: 22px; align-items: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn-primary { color: #fff; background: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-small { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: #2d241d; }
.btn-dark-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-dark-outline:hover { background: rgba(255,255,255,.08); }

/* Text link */
.text-link {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--brand);
  transition: color .15s;
}
.text-link:hover { color: var(--brand-hover); }

/* Mobile menu toggle — hidden at desktop */
.menu-toggle { display: none; }

/* ── Eyebrows / kickers ── */
.eyebrow, .kicker, .story-index {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
}
.eyebrow { grid-column: 1 / -1; margin-bottom: 26px; }
.eyebrow span { display: none; }
.kicker.light { color: #c0a890; }

/* section-heading shared */
.section-heading h2 { font-size: clamp(42px, 4.5vw, 64px); margin: 22px 0; }
.section-heading h2 em { font-style: italic; color: var(--brand); }
.section-heading p { font-size: 18px; color: var(--muted); max-width: 650px; margin-bottom: 0; }
section[id] { scroll-margin-top: 110px; }

/* ── Hero ── */
.hero { padding: 72px 0 0; }

.hero-copy {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  column-gap: 100px;
  align-items: start;
}
.hero h1 {
  grid-column: 1;
  grid-row: 2 / 5;
  font-size: clamp(54px, 5.9vw, 86px);
  margin: 0 0 55px;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.hero h1 em { display: block; color: var(--brand); }
.hero-lede {
  grid-column: 2;
  grid-row: 2;
  font-size: 19px;
  color: var(--muted);
  margin: 10px 0 28px;
  max-width: 440px;
}
.hero-actions {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-proof {
  grid-column: 2;
  grid-row: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-proof div { flex: 1; }
.hero-proof strong { display: block; font-size: 14px; font-weight: 500; }
.hero-proof span { font-size: 12px; color: var(--muted); display: block; }

/* Hero image frame */
.hero-media { margin-top: 50px; }
.hero-img-frame {
  width: 100%;
  height: 470px;
  overflow: hidden;
}
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hardware-caption {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* ── Trust strip ── */
.trust-strip { padding: 45px 0 55px; }
.trust-strip > .container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: center;
}
.trust-strip p { font-size: 13px; max-width: 180px; color: var(--muted); margin: 0; }
.logo-row { display: flex; justify-content: space-between; gap: 30px; align-items: center; flex-wrap: wrap; }
.logo-item { display: flex; align-items: center; }
.logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.8) brightness(0.5);
  opacity: 0.55;
  transition: opacity .2s, filter .2s;
}
.logo-item img:hover { filter: grayscale(0); opacity: 1; }
.logo-text {
  font-size: 16px;
  letter-spacing: .03em;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
}
.logo-text small { font-size: 11px; font-weight: 400; }

/* ── Flow section (#platform) ── */
.flow-section { background: var(--soft); padding: 100px 0; }
.flow-section > .container > .section-heading { max-width: 750px; }
.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 65px;
}
.flow-rail article { border-top: 1px solid #c9bfb0; padding: 20px 0 0; }
.flow-number { font-family: var(--sans); font-size: 14px; color: var(--brand); font-weight: 500; display: block; }
.flow-rail h3 { font-size: 21px; font-family: var(--sans); margin: 28px 0 12px; font-weight: 500; }
.flow-rail p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

/* ── Story sections ── */
.story-section { padding: 105px 0; }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.story-copy h2 { font-size: clamp(40px, 4.3vw, 60px); margin: 23px 0; }
.story-copy > p { font-size: 18px; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 30px 0; }
.check-list li { border-top: 1px solid var(--line); font-size: 15px; padding: 12px 0; }
.reverse { grid-template-columns: 1.15fr .85fr; }
.reverse .story-copy { order: 2; }
.dark-story { background: var(--soft); }

/* Feature image frames */
.feature-img-frame {
  overflow: hidden;
  min-height: 390px;
  border-radius: 2px;
}
.feature-img-frame img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* KDS image is transparent PNG — no background, let section surface show through */
.feature-img-kds {
  background: transparent;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img-kds img {
  object-fit: contain;
  min-height: auto;
  max-height: 450px;
  padding: 16px 0;
}

/* ── Ecosystem / modules (#solutions anchor in H) ── */
.ecosystem { padding: 95px 0; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 45px; }
.split-heading > div > h2 { font-size: clamp(42px, 4.5vw, 64px); margin: 22px 0; }
.split-heading p { font-size: 17px; max-width: 360px; color: var(--muted); margin: 0; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 65px; }
.module-card { display: grid; grid-template-columns: 38px 1fr; gap: 0 15px; padding: 27px 0; border-top: 1px solid var(--line); }
.module-card small { grid-column: 1; grid-row: 1 / 4; color: var(--brand); font-size: 13px; padding-top: 9px; font-family: var(--sans); }
.module-card h3 { grid-column: 2; font-size: 27px; font-family: var(--serif); font-weight: 400; margin: 0 0 6px; }
.module-card p { grid-column: 2; font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.module-card a { grid-column: 2; font-size: 13px; color: var(--brand); font-weight: 500; border-bottom: none; }
.module-card a:hover { text-decoration: underline; }

/* ── Video section ── */
.video-section { padding: 95px 0; background: var(--soft); }
.video-heading { max-width: 600px; margin-bottom: 48px; }
.video-heading h2 { font-size: clamp(38px, 4vw, 56px); margin: 18px 0 0; }
.video-frame { position: relative; max-width: 1100px; margin: 0 auto; }
/* 16:9 aspect ratio container — ready for iframe swap */
.video-poster {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--line);
}
.video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Customer story ── */
.customer-story { padding: 85px 0 110px; }
.customer-grid { display: grid; grid-template-columns: .7fr 1fr; gap: 115px; align-items: center; }
.customer-logo-frame {
  background: var(--soft);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.customer-logo-frame img {
  max-width: 180px;
  max-height: 110px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.4);
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 51px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 30px 0;
  color: var(--ink);
}
.quote-person {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.quote-person strong, .quote-person span { display: block; font-size: 14px; }
.quote-person span { color: var(--muted); }

/* ── Starter Kit ── */
.starter-kit { padding: 95px 0; background: var(--soft); }
.starter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.starter-copy h2 { font-size: clamp(46px, 5vw, 68px); margin: 24px 0; }
.starter-copy > p { font-size: 18px; color: var(--muted); }
.starter-price { margin: 30px 0; }
.starter-price > span, .starter-price small { display: block; font-size: 14px; color: var(--muted); }
.starter-price strong { font-family: var(--serif); font-size: 43px; font-weight: 400; display: block; }
.payment-explainer { margin-bottom: 30px; }
.payment-explainer > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #c9bfb0;
  padding: 12px 0;
  font-size: 14px;
}
.payment-explainer strong { font-weight: 500; }
.payment-explainer > p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.starter-media-frame {
  background: #ede4d6;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}
.starter-media-frame img {
  max-width: 100%;
  max-height: 570px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Pricing preview ── */
.pricing-preview { padding: 100px 0; }
.software-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 110px; }
.software-summary h2 { font-size: clamp(40px, 4vw, 60px); margin: 25px 0; }
.software-summary > div > p { font-size: 18px; color: var(--muted); }
.software-price { border-left: 1px solid var(--line); padding-left: 50px; }
.software-price > span { display: block; font-size: 14px; color: var(--muted); }
.software-price > strong { font-family: var(--serif); font-size: 52px; font-weight: 400; display: block; margin-top: 12px; }
.software-price p { font-size: 15px; color: var(--ink); margin: 10px 0 0; }
.exclusion { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); margin-top: 16px; }
.enterprise-strip {
  border-top: 1px solid var(--line);
  padding: 27px 0 0;
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  font-size: 15px;
}

/* ── FAQ section ── */
.faq-section { padding: 95px 0; }
.faq-list { max-width: 900px; margin-top: 50px; }
.faq-list details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { color: var(--muted); padding-top: 12px; font-size: 15px; line-height: 1.65; margin: 0; }

/* ── Final CTA ── */
.final-cta { background: var(--dark); color: var(--on-dark); padding: 95px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr; max-width: 780px; }
.final-cta .kicker { color: #c0a890; }
.final-cta h2 { font-size: clamp(48px, 5.5vw, 78px); margin: 22px 0; color: var(--on-dark); }
.final-cta p { font-size: 18px; color: var(--on-dark-muted); margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 20px; }
.final-cta small { font-size: 13px; color: var(--on-dark-muted); display: block; }
.final-cta .btn-light { background: var(--paper); color: var(--ink); }
.final-cta .btn-light:hover { background: #fff; }

/* ── Quote / contact section ── */
.quote-section { padding: 95px 0; background: var(--paper); border-top: 1px solid var(--line); }
.quote-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: start; }
.quote-copy h2 { font-size: clamp(38px, 4vw, 54px); margin: 0 0 24px; }
.quote-copy p { font-size: 17px; color: var(--muted); margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.contact-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-weight: 500; min-width: 80px; color: var(--muted); flex-shrink: 0; }
.contact-value { color: var(--ink); }
.contact-value a { color: var(--brand); }
.contact-value a:hover { text-decoration: underline; }

/* Form */
.quote-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-fine { font-size: 13px; color: var(--muted); margin: 4px 0 0; text-align: center; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success-icon { font-size: 32px; color: var(--brand); margin-bottom: 12px; }
.form-success h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 10px; }
.form-success p { font-size: 16px; color: var(--muted); }
.form-success a { color: var(--brand); }
.form-error { font-size: 14px; color: #c0392b; margin-top: 8px; }
.btn-block { width: 100%; }

/* ── Footer ── */
footer { padding: 65px 0 22px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 60px; }
.footer-brand { max-width: 220px; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 6px; }
.footer-brand .brand-mark svg { width: 34px; height: 34px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 14px; margin-bottom: 0; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col-head { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.footer-col a { color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-col address { font-style: normal; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .15s; }

/* ── Large screens ── */
@media (min-width: 1500px) { .hero h1 { font-size: 90px; } }

/* ── 1100px ── */
@media (max-width: 1100px) {
  .nav-wrap { gap: 28px; }
  .main-nav { gap: 18px; }
  .hero-copy { column-gap: 50px; }
  .hero-actions { gap: 15px; }
  .story-grid, .reverse, .starter-grid, .customer-grid, .software-summary, .quote-layout { gap: 55px; }
  .footer-links { gap: 30px; }
  .hero-proof { flex-wrap: wrap; }
  .hero-proof div { min-width: 100px; }
}

/* ── 820px ── */
@media (max-width: 820px) {
  .container { width: calc(100% - 48px); }
  .nav-wrap { width: calc(100% - 40px); min-height: 72px; gap: 20px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    padding: 25px;
    flex-direction: column;
    align-items: start;
    border-bottom: 1px solid var(--line);
    z-index: 39;
    gap: 0;
  }
  .main-nav.open a { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .main-nav.open a:last-child { border-bottom: none; }
  .menu-toggle {
    display: block;
    margin-left: auto;
    border: 0;
    background: none;
    padding: 10px;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 23px; height: 1px; margin: 6px 0; background: var(--ink); }
  .nav-actions .btn { font-size: 13px; padding: 10px 12px; min-height: 40px; }

  .hero { padding-top: 50px; }
  .hero-copy { display: block; }
  .hero h1 { font-size: 64px; max-width: 650px; margin-bottom: 30px; grid-column: auto; grid-row: auto; }
  .hero-lede { max-width: 580px; grid-column: auto; grid-row: auto; }
  .hero-actions { grid-column: auto; grid-row: auto; margin-bottom: 30px; }
  .hero-proof { grid-column: auto; grid-row: auto; justify-content: flex-start; max-width: 560px; flex-wrap: wrap; }
  .hero-proof div { flex: 1; min-width: 100px; }
  .hero-img-frame { height: 370px; }
  .feature-img-frame img { min-height: 300px; }
  .feature-img-kds { min-height: 360px; }
  .feature-img-kds img { max-height: 360px; }

  .trust-strip > .container { display: block; }
  .trust-strip p { max-width: none; margin-bottom: 24px; }
  .logo-row { justify-content: flex-start; gap: 28px; }

  .flow-rail { grid-template-columns: 1fr 1fr; }
  .story-grid, .reverse, .starter-grid, .customer-grid, .software-summary, .quote-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reverse .story-copy { order: 0; }
  .story-copy { max-width: 630px; }
  .story-section, .flow-section, .ecosystem, .video-section, .customer-story, .starter-kit, .pricing-preview, .faq-section, .quote-section { padding: 70px 0; }

  /* Explicit heights so height:100% on inner img resolves correctly in stacked layout */
  .feature-img-frame { height: 300px; min-height: 0; }
  .feature-img-kds { height: 360px; min-height: 0; }

  .split-heading { display: block; }
  .split-heading p { max-width: 550px; }
  .module-grid { gap: 0 30px; }

  .software-price { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 25px; }
  .software-price > strong { font-size: 42px; }

  .starter-media-frame { min-height: 400px; }
  .starter-media-frame img { max-height: 400px; }

  .customer-logo-frame { min-height: 280px; padding: 40px; }
  .quote-person { flex-wrap: wrap; }

  .enterprise-strip { flex-direction: column; align-items: start; }
  .footer-top { display: block; }
  .footer-links { margin-top: 35px; grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .form-row { grid-template-columns: 1fr; }
  .cta-grid { max-width: none; }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .nav-wrap { width: calc(100% - 32px); gap: 12px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 6px; }
  .brand-mark svg { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }

  .hero h1 { font-size: 52px; }
  .hero-lede { font-size: 17px; }
  .eyebrow { font-size: 11px; }
  .hero-img-frame { height: 340px; }
  .hero-img-frame img { max-height: 340px; }

  .flow-rail { gap: 20px; }
  .flow-rail h3 { font-size: 18px; }
  .flow-rail p { font-size: 14px; }

  .feature-img-frame { height: 260px; min-height: 0; }
  .feature-img-frame img { min-height: 0; }
  .feature-img-kds { height: 280px; min-height: 0; }
  .feature-img-kds img { max-height: 280px; }

  .module-grid { grid-template-columns: 1fr; }

  .customer-logo-frame { min-height: 200px; padding: 32px 24px; }
  .quote-block blockquote { font-size: 32px; }

  .starter-media-frame { min-height: 300px; }
  .starter-media-frame img { max-height: 300px; }
  .starter-copy h2 { font-size: 44px; }
  .starter-price strong { font-size: 36px; }

  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn { max-width: 100%; white-space: normal; }
}

/* ── WhatsApp floating button ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 0 20px 0 0;
  height: 56px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s, box-shadow .18s, transform .18s;
  white-space: nowrap;
}
.wa-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 22px rgba(0,0,0,.24);
  transform: translateY(-2px);
}
.wa-float:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 4px;
}
.wa-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-icon svg { width: 28px; height: 28px; }

@media (max-width: 480px) {
  .wa-float { padding: 0; border-radius: 50%; width: 56px; justify-content: center; right: 18px; bottom: 18px; }
  .wa-label { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
