/* ============================================================
   Link One — landing page
   Concept: the receipt. Paper, ink, dotted leaders, one printed strip.
   Type: Tajawal.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --green: #0e8250;
  --green-strong: #0a6b41;
  --green-soft: #dcefe4;
  --deep: #0a3d29;
  --tag: #ffd84d;

  --bg: #eef2ef;
  --paper: #ffffff;
  --ink: #10231a;
  --ink-2: #3a5247;
  --muted: #566b61;
  --line: #d5dfd9;
  --line-strong: #b4c5bb;

  --on-green: #ffffff;

  --radius: 10px;
  --radius-sm: 8px;

  --shadow: 0 24px 50px -28px rgba(10, 61, 41, 0.5);

  --font-display: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

html[data-theme="dark"] {
  --green: #35c584;
  --green-strong: #4bd897;
  --green-soft: #15291f;
  --deep: #0a3d29;

  --bg: #09130e;
  --paper: #111e17;
  --ink: #e8f2ec;
  --ink-2: #c0d3c8;
  --muted: #94a99e;
  --line: #213329;
  --line-strong: #324a3d;

  --on-green: #06231a;

  --shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.85);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.35;
}
p { margin: 0; }
a { color: inherit; }

::selection { background: var(--tag); color: #10231a; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  top: -80px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--on-green);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: auto; }

.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-strong); }
html[data-theme="dark"] .btn-primary:hover { color: #06231a; }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-tag { background: var(--tag); color: #10231a; }
.btn-tag:hover { background: #ffe37a; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-strong); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}
.brand-text small { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.icon-btn .icon { width: 20px; height: 20px; }

.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

.icon-close { display: none; }
.menu-toggle { display: none; }
.menu-toggle.is-open .icon-menu { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.3;
  text-wrap: balance;
}

.lead {
  margin-top: 22px;
  max-width: 34rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 2;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
}
.chips li { display: inline-flex; align-items: center; gap: 7px; }
.chips .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; }

/* Hero visual: the screen, and the receipt it prints */
.hero-visual { position: relative; }

.hero-shot { margin: 0; }
.hero-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.receipt-wrap {
  position: absolute;
  z-index: 2;
  top: 9%;
  left: -26px;
  width: 15.2rem;
  transform: rotate(-2.4deg);
  filter: drop-shadow(0 18px 22px rgba(8, 40, 27, 0.32));
}

.receipt {
  position: relative;
  padding: 18px 18px 20px;
  background: #fbfbf9;
  color: #17201b;
  font-size: 0.8rem;
  line-height: 1.65;
}
/* Prints once, when it scrolls into view (script.js adds .is-printing) */
.js .receipt-wrap:not(.is-printing) .receipt { opacity: 0; }
.receipt-wrap.is-printing .receipt {
  animation: print 2.6s steps(26, end) 0.15s both;
}
.receipt::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 9px;
  background: #fbfbf9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M0 0h14L7 9z'/%3E%3C/svg%3E") repeat-x 0 0 / 14px 9px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M0 0h14L7 9z'/%3E%3C/svg%3E") repeat-x 0 0 / 14px 9px;
}

.receipt-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px dashed #7d8a83;
  text-align: center;
}
.receipt-head strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  direction: ltr;
}
.receipt-head span { color: #55635b; font-size: 0.74rem; }

.receipt-lines { margin: 0; padding: 0; list-style: none; }
.receipt-lines li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 1px 0;
}
.receipt-lines i {
  flex: 1;
  min-width: 10px;
  border-bottom: 2px dotted #98a49d;
  transform: translateY(-3px);
}
.receipt-lines b { font-weight: 600; direction: ltr; }

.receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1.5px dashed #7d8a83;
  font-size: 0.98rem;
  font-weight: 800;
}
.receipt-total bdi {
  padding: 0 6px;
  background: var(--tag);
  direction: ltr;
}

.receipt-note {
  margin-top: 9px;
  color: #55635b;
  font-size: 0.74rem;
  line-height: 1.6;
}

.receipt-barcode {
  height: 30px;
  margin-top: 12px;
  background: repeating-linear-gradient(
    90deg,
    #17201b 0 2px, transparent 2px 4px,
    #17201b 4px 5px, transparent 5px 8px,
    #17201b 8px 11px, transparent 11px 13px
  );
  opacity: 0.88;
}

.is-printing .receipt-lines li,
.is-printing .receipt-head,
.is-printing .receipt-total,
.is-printing .receipt-note,
.is-printing .receipt-barcode {
  animation: line-in 0.25s ease both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.28s);
}

@keyframes print {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 -14px 0); }
}
@keyframes line-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Spec strip ---------- */
.specs { border-block: 1px solid var(--line-strong); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-grid > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 20px;
}
.stats-grid > div:first-child { padding-inline-start: 0; }
.stats-grid > div + div { border-inline-start: 1px dashed var(--line-strong); }
.stats-grid strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}
.stats-grid span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-tint {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px clamp(28px, 5vw, 72px);
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  text-wrap: balance;
}
.section-head p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.95;
  max-width: 34rem;
}

/* ---------- Business cards ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.biz-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.biz-card:hover { border-color: var(--ink); }

.biz-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--green-soft);
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  direction: ltr;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  pointer-events: none;
  z-index: 4;
}
.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(16, 35, 26, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  padding: 0;
}
.biz-card:hover .carousel-arrow,
.carousel-arrow:focus-visible { opacity: 1; }
@media (hover: none) {
  .carousel-arrow { opacity: 0.9; }
}
.carousel-arrow:hover { background: var(--green); }
.carousel-arrow svg { width: 18px; height: 18px; }

.carousel-dots {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 4;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.carousel-dot:hover { background: rgba(255, 255, 255, 0.9); }
.carousel-dot.is-active { width: 22px; background: var(--tag); }

.biz-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 22px 22px 24px;
}
.biz-body h3 { font-size: 1.25rem; font-weight: 800; }
.biz-body p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.85; }

.ticks {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line-strong);
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--green);
}

.demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.demo-note .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }

/* ---------- Features: an itemised ledger ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 6vw, 88px);
  border-top: 2px solid var(--ink);
}
.feature {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-content: start;
  column-gap: 16px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.feature-icon {
  grid-row: 1 / span 2;
  color: var(--green);
  padding-top: 3px;
}
.feature-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.feature h3 { font-size: 1.05rem; font-weight: 800; }
.feature p { margin-top: 4px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.8; }

/* ---------- Screens / tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--line-strong);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 12px 20px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--green); }

.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}
.shot figcaption {
  padding: 12px 2px 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
}
.steps h3 { font-size: 1.2rem; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 0.97rem; line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  border-top: 2px solid var(--ink);
}
.faq details { border-bottom: 1px dashed var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--green);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  max-width: 44rem;
  padding: 0 2px 22px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.95;
}

/* ---------- CTA: a coupon with a cut line ---------- */
.cta-section { padding-block: clamp(24px, 4vw, 56px); }
.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(36px, 5.5vw, 64px);
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  pointer-events: none;
}
.cta-copy { position: relative; flex: 1 1 320px; }
.cta-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; text-wrap: balance; }
.cta-copy p { margin-top: 12px; max-width: 34rem; color: rgba(255, 255, 255, 0.88); font-size: 1.04rem; line-height: 1.9; }
.cta-copy bdi { font-weight: 800; color: #fff; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  padding-top: 56px;
  background: #07140e;
  color: #d9e8e0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.brand-dark { color: #fff; }
.brand-dark .brand-text strong { color: #fff; }
.brand-dark .brand-text small { color: #8fa79b; }
.footer-col { text-align: right; }
.footer-col h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.97rem;
  font-weight: 800;
  text-align: right;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: #a3b9ae;
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 0.16s ease;
  text-align: right;
  direction: rtl;
}
.footer-col a:hover { color: #fff; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-col span[dir="ltr"] {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
.footer-muted { color: #86a095; font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8aa196;
  font-size: 0.83rem;
}

/* ---------- Phone: fixed order button ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .receipt-wrap { left: -14px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 16px;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav a:hover { background: var(--bg); }
  .nav a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; width: 100%; padding-bottom: 8px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .stats-grid > div:nth-child(n + 3) { border-top: 1px dashed var(--line-strong); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .mobile-cta {
    position: fixed;
    inset-inline: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 12px;
    background: var(--tag);
    color: #10231a;
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5);
  }
  .mobile-cta .icon { width: 20px; height: 20px; stroke-width: 2.2; }

  /* Smaller slides on phones: show each whole, on its own background */
  .biz-media { aspect-ratio: 16 / 11; background: #eaf5ef; }
  .carousel-slide img { object-fit: contain; object-position: center; }
  .biz-grid { grid-template-columns: 1fr; max-width: 520px; }
  .tab-panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .header-inner { gap: 8px; }
  .brand-text small { display: none; }
  .nav-cta { display: none; }
  .hero { padding-top: 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual { padding-bottom: 0; }
  .receipt-wrap { display: none; }
  .tabs { overflow-x: auto; }
  .tab { flex: 1; justify-content: center; padding: 12px 8px; font-size: 0.92rem; white-space: nowrap; }
  .tab .icon { display: none; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-grid > div { flex-direction: column; gap: 0; padding: 16px 14px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
