/* ═══════════════════════════════════════════════════════════════════════════
   SnazzyGo — page layout.

   Section-by-section composition on top of organic.css. The canvas design
   carried all of this as inline style attributes; it lives here as classes so
   the markup stays readable and the breakpoints are in one place.
   ═══════════════════════════════════════════════════════════════════════════ */

.wrap { max-width: var(--measure); margin-inline: auto; }
.section { padding-block: var(--section-y); padding-inline: var(--gutter); }
.section-surface { background: var(--color-surface); }
.section-head { max-width: 32em; margin-bottom: clamp(22px, 3vw, 34px); }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.section-head p { font-size: 16px; line-height: 1.55; margin-top: 12px; }
.kicker { color: var(--color-accent-700); margin-bottom: 12px; font-weight: 600; }
.figure-num { font-family: var(--font-figure); }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px var(--gutter);
  flex-wrap: wrap;
  row-gap: 10px;
}
.site-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
}
/* The icon half of the logo. The wordmark beside it stays live text so it
   scales with the nav and stays selectable; the mark carries the brand. */
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
}
.nav-links .btn-primary {
  font-size: 14px;
  padding: 10px 20px;
  font-weight: 600;
}
.nav-toggle { display: none; }

/* A class selector beats the UA stylesheet's [hidden] rule, so any element
   given a display here needs its own [hidden] rule or the attribute does
   nothing. Spelled out in both directions rather than left to the cascade. */
.nav-links[hidden] { display: none; }

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: var(--color-divider);
    font-family: var(--font-body);
    font-weight: 600;
  }
  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 8px 4px;
  }
}

/* Above the breakpoint the links are always shown, collapsed state or not. */
@media (min-width: 781px) {
  .nav-links[hidden] { display: flex; }
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(36px, 6vw, 84px) var(--gutter) clamp(30px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--measure);
  margin-inline: auto;
}
.hero > div { min-width: 0; }
.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
  margin: 0 0 18px;
  text-wrap: pretty;
}
/* Two sentences, one per line — same reason as the #demo headline: left to
   itself the wrap lands mid-sentence, splitting "Bring them back." */
.hero h1 span { display: block; }
.hero-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
  max-width: 29em;
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions .btn {
  font-size: 16px;
  padding: 14px 28px;
  font-weight: 600;
}
.hero-note {
  font-size: 14px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--color-neutral-800);
}
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.hero-blob {
  position: absolute;
  width: min(110%, 560px);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--color-accent-200);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-receipt {
  position: absolute;
  bottom: 6%;
  right: 0;
  width: 200px;
  padding: 14px 16px;
  gap: 6px;
  background: var(--color-surface);
}
.hero-receipt .card-kicker { font-weight: 600; }
.hero-receipt-code {
  font-family: var(--font-figure);
  font-size: 18px;
  line-height: 1.2;
}
.hero-receipt-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-neutral-800);
}

@media (max-width: 560px) {
  .hero-stage { min-height: 480px; }
  /* Narrow enough that the card lands on the phone rather than beside it —
     drop it to the empty tail of the screen so it never covers a message. */
  .hero-receipt { right: auto; left: 0; width: 180px; bottom: -12px; }
}

/* ── phone mockups ───────────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: min(290px, 74vw);
  max-width: 100%;
  aspect-ratio: 9 / 18;
  border-radius: 44px;
  background: var(--color-neutral-900);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.6;
  flex: none;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--color-divider);
  flex: none;
}
.phone-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-accent);
  flex: none;
}
.phone-header p { margin: 0; }
.phone-header .name { font-size: 14px; font-weight: 600; }
.phone-header .sub { font-size: 11px; opacity: 0.6; }

/* — hero chat — */
.chat {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: var(--color-bg);
  overflow: hidden;
}
.chat-day {
  align-self: center;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-surface);
  opacity: 0.8;
}
.chat-in, .chat-out {
  max-width: 88%;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.chat-in {
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
  background: var(--color-surface);
}
.chat-out {
  align-self: flex-end;
  max-width: 70%;
  border-radius: 16px 16px 4px 16px;
  background: var(--color-accent-2-200);
}
.chat-code { font-weight: 600; color: var(--color-accent-800); }

/* ── three-up strip ──────────────────────────────────────────────────────── */
.strip {
  padding: clamp(10px, 2vw, 24px) var(--gutter) clamp(30px, 4vw, 48px);
  max-width: var(--measure);
  margin-inline: auto;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.strip-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.strip-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--color-accent-200);
  color: var(--color-accent-900);
  font-family: var(--font-figure);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 2px;
  flex: none;
}
.strip-num-alt {
  background: var(--color-accent-2-200);
  color: var(--color-accent-2-900);
}
.strip-item p { margin: 0; }
.strip-item .title { font-size: 17px; font-weight: 600; }
.strip-item .body { font-size: 14px; margin-top: 4px; line-height: 1.45; }

/* ── how it works ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 3vw, 36px);
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-accent-900);
  font-family: var(--font-figure);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 2px;
  margin-bottom: 18px;
}
.step p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ── for your shop ───────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.shop-grid > div { min-width: 0; }
.shop-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.shop-phones {
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
  justify-content: center;
  flex-wrap: wrap;
}
.shop-phones .phone { width: min(250px, 70vw); }
.dash {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}
.dash-title p { margin: 0; font-size: 11px; opacity: 0.6; font-weight: 600; }
.dash-title h4 { margin: 0; font-size: 19px; }
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dash-stat {
  padding: 9px 11px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.dash-stat p { margin: 0; }
.dash-stat .label { font-size: 10.5px; opacity: 0.65; font-weight: 600; }
.dash-stat .value {
  font-family: var(--font-figure);
  font-size: 22px;
  margin-top: 2px;
  line-height: 1;
}
.dash-stat .value-accent { color: var(--color-accent-900); }
.dash-chart-label { font-size: 10.5px; opacity: 0.65; font-weight: 600; margin: 0 0 7px; }
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 62px;
}
.dash-bars div {
  flex: 1;
  min-width: 0;
  border-radius: 5px 5px 2px 2px;
  background: var(--color-accent-200);
}
.dash-bars .is-peak { background: var(--color-accent); }
.dash-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
}
.dash-actions span {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.dash-actions .primary { background: var(--color-accent-700); color: var(--color-bg); }
.dash-actions .secondary { background: var(--color-bg); color: var(--color-text); }

.dash-chips { display: flex; gap: 7px; }
.dash-chips span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg);
}
.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.dash-row .count {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-accent-200);
  color: var(--color-accent-900);
  font-family: var(--font-figure);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.dash-row p { margin: 0; }
.dash-row .phone-no { font-size: 12.5px; font-weight: 600; }
.dash-row .meta { font-size: 10.5px; opacity: 0.6; }
.dash-suggest {
  margin-top: auto;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--color-accent-100);
}
.dash-suggest p { margin: 0; }
.dash-suggest .label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-800);
  font-weight: 600;
}
.dash-suggest .body { font-size: 12px; line-height: 1.4; margin-top: 4px; }
.dash-suggest .send {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-accent-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── onboarding ──────────────────────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.timeline-item { padding-top: 18px; border-top: 2px solid var(--color-divider); }
.timeline-time {
  font-family: var(--font-figure);
  font-size: 28px;
  color: var(--color-accent-2-800);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.timeline-item p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ── features ────────────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.features .card { padding: clamp(20px, 2.2vw, 26px); }
.features h3 { font-size: 19px; margin: 4px 0 2px; }
.features p { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ── store types ─────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.tab {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-divider);
}
.tab:hover { opacity: 0.88; }
/* The canvas sets the active chip to accent-900 on accent-500 (~3.8:1);
   accent-300 lifts the pair clear of AA without changing the look. */
.tab[aria-selected="true"] {
  background: var(--color-accent-300);
  color: var(--color-accent-900);
  border-color: var(--color-accent-300);
}
.case {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-bg);
}
.case[hidden] { display: none; }
.case > div { min-width: 0; }
.case h3 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 10px; }
.case p { font-size: 15.5px; line-height: 1.55; margin: 0; }
.case-message {
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--color-surface);
  font-size: 14px;
  line-height: 1.5;
  max-width: 26em;
}
/* Verticals whose sample message is held back for the demo call. Same bubble
   shape so the panel height stays steady as tabs switch; outlined rather than
   filled so it reads as "not shown yet" instead of as a real message. */
.case-message.is-withheld {
  background: transparent;
  border: 1px dashed var(--color-divider);
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.case-message.is-withheld a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}
.case-modules { display: flex; gap: 8px; flex-wrap: wrap; }
.case-modules .tag { font-weight: 600; }

/* ── pricing ─────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
}
.plan {
  padding: clamp(22px, 2.6vw, 30px);
  gap: 4px;
  background: var(--color-surface);
  color: var(--color-text);
}
.plan h3 { font-size: 22px; margin: 6px 0 2px; color: inherit; }
.plan-price {
  font-family: var(--font-figure);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
  color: inherit;
}
/* A word in the price slot ("Custom") carries far more width than a short
   numeral, so it reads oversized at the figure size. Step it down. */
.plan-price.is-text { font-size: clamp(22px, 2.2vw, 26px); }
.plan-per {
  font-size: 14px;
  margin: 0 0 14px;
  opacity: 0.85;
  color: inherit;
  font-weight: 600;
}
.plan-lines { display: flex; flex-direction: column; gap: 9px; }
.plan-lines span { font-size: 15px; line-height: 1.45; color: inherit; }
.plan .btn {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-divider);
  text-decoration: none;
}
.plan .card-kicker { color: var(--color-accent-700); font-weight: 600; }

.plan-featured {
  padding: clamp(26px, 3vw, 36px);
  background: var(--color-accent-800);
  color: var(--color-bg);
  box-shadow: var(--shadow-md);
}
.plan-featured .card-kicker { color: var(--color-accent-200); }
.plan-featured .btn {
  background: var(--color-accent-300);
  color: var(--color-accent-900);
  border: none;
}
.plan-featured .btn:hover { background: var(--color-accent-200); }

/* ── faq ─────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-divider);
}
.faq-item { border-bottom: 1px solid var(--color-divider); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-figure);
  font-size: 17px;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  font-size: 22px;
  color: var(--color-accent-700);
  display: inline-block;
  flex: none;
  transition: transform 0.18s;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}

/* ── demo ────────────────────────────────────────────────────────────────── */
.demo-panel {
  max-width: var(--measure);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-accent-800);
  color: var(--color-bg);
  /* The form sets the row height; without this the shorter text column
     stretches to match and its content clings to the top of the tile. */
  align-items: center;
}
.demo-panel > div, .demo-panel > form { min-width: 0; }
.demo-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--color-bg);
}
/* Two sentences, one per line. The full stop is the only right place to break
   this headline — left to itself, text-wrap: balance strands "Your" at the end
   of line one, away from "shop". Inherited balance now applies per sentence. */
.demo-panel h2 span { display: block; }
.demo-panel > div > p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 26em;
  color: var(--color-accent-100);
}
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-form[hidden] { display: none; }
.demo-form .field > label { color: var(--color-accent-100); font-weight: 600; }
.demo-form .input {
  background: var(--color-accent-900);
  border-color: var(--color-accent-700);
  color: var(--color-bg);
}
.demo-form .input::placeholder { color: color-mix(in srgb, var(--color-accent-100) 55%, transparent); }
.demo-form .input:focus-visible { outline-color: var(--color-accent-300); border-color: var(--color-accent-300); }
.demo-form .btn-primary {
  font-size: 16px;
  padding: 14px 28px;
  align-self: flex-start;
  background: var(--color-accent-300);
  color: var(--color-accent-900);
  font-weight: 600;
}
.demo-form .btn-primary:hover { background: var(--color-accent-200); }
.demo-hint { font-size: 13px; color: var(--color-accent-200); margin: 0; }
.demo-thanks {
  font-family: var(--font-figure);
  font-size: 22px;
  margin: 0;
  color: var(--color-bg);
}

/* ── floating WhatsApp button ────────────────────────────────────────────── */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: #25d366;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s;
}
.fab:hover { transform: scale(1.04); }
.fab svg { display: block; flex: none; }

@media (max-width: 560px) {
  .fab { padding: 0 18px 0 14px; height: 52px; font-size: 14px; right: 14px; bottom: 14px; }
}

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  padding: clamp(28px, 4vw, 48px) var(--gutter) calc(clamp(28px, 4vw, 48px) + 60px);
  border-top: 1px solid var(--color-divider);
}
.footer-top {
  max-width: var(--measure);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
/* The footer is where the full lockup gets room to breathe, so it runs as the
   complete logo — icon over wordmark — rather than the nav's mark-plus-text. */
.footer-logo {
  width: clamp(132px, 15vw, 168px);
  height: auto;
  display: block;
}
.footer-attrib {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 22em;
  color: var(--color-neutral-800);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.footer-contact {
  font-style: normal; /* <address> defaults to italic */
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-neutral-800);
}
.footer-contact p { margin: 0; }
.footer-contact p + p { margin-top: 12px; }
.footer-contact a {
  color: var(--color-accent-readable);
  font-weight: 600;
  text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-base {
  max-width: var(--measure);
  margin: clamp(26px, 3.5vw, 40px) auto 0;
  padding-top: clamp(18px, 2.5vw, 24px);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-neutral-800);
}

/* ── motion ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
