@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
  --purple: #7b2fbe;
  --purple-dark: #5a1f8e;
  --purple-deep: #3d1463;
  --pink: #e91e8c;
  --pink-soft: #fce4f2;
  --text: #1c1229;
  --muted: #5c4f6e;
  --line: #eadff5;
  --bg: #faf7fd;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(90, 31, 142, 0.12);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: Outfit, "Segoe UI", "Tahoma", sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  z-index: 100;
  inset-inline-start: 12px;
  top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .menu-toggle-bar {
    transition: none;
  }
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--pink);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", "Tahoma", sans-serif;
}

/* Language visibility */
html[lang="en"] [data-lang="ar"],
html[lang="ar"] [data-lang="en"] {
  display: none !important;
}

/* Header */
#site-header {
  min-height: var(--header-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  justify-self: start;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.nav a:hover:not(.btn),
.nav a.is-active:not(.btn) {
  color: var(--purple);
  background: #f3e9fb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}

.nav .nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f3e9fb;
  color: var(--purple-dark);
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(28, 18, 41, 0.4);
}

.lang-toggle,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
}

.lang-toggle {
  background: #f3e9fb;
  color: var(--purple-dark);
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.btn {
  padding: 12px 20px;
  min-height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 140%);
  touch-action: manipulation;
}

.btn:hover {
  color: var(--white);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--purple-dark);
  background: #f3e9fb;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.02rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(233, 30, 140, 0.45), transparent 36%),
    linear-gradient(145deg, var(--purple-deep) 0%, var(--purple) 52%, #9b3ed4 100%);
  padding: 72px 0 80px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 320px;
  height: 320px;
  border-radius: 40% 60% 70% 30%;
  background: rgba(255, 255, 255, 0.08);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffe6f5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  max-width: 16ch;
  text-wrap: balance;
}

.hero .lead {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: 1.15rem;
  color: #f3e9fb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  margin: 0;
  color: #e8d4f5;
  font-size: 0.95rem;
}

.hero .powered {
  margin: 0;
  color: #e8d4f5;
  font-size: 0.95rem;
}

.hero .powered a {
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.hero .powered a:hover {
  color: #ffd6ef;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section .intro {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 40rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.section-flush {
  padding-top: 0;
}

.section-tight {
  padding-top: 16px;
}

.section-legal {
  padding-top: 8px;
}

#main {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(90, 31, 142, 0.16);
  }
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3e9fb, var(--pink-soft));
  color: var(--purple);
  font-size: 1.3rem;
  font-weight: 800;
}

.steps {
  counter-reset: step;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 0.9rem;
  vertical-align: middle;
}

.howto {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: howto;
  display: grid;
  gap: 14px;
}

.howto li {
  counter-increment: howto;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.howto li::before {
  content: counter(howto);
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.howto h3,
.howto p {
  grid-column: 2;
}

.howto h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.howto p {
  margin: 0;
  color: var(--muted);
}

.callout {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.callout.accent {
  background: linear-gradient(135deg, #4a1a78, var(--purple));
  color: var(--white);
  border: 0;
}

.callout.accent p,
.callout.accent .intro {
  color: rgba(255, 255, 255, 0.9);
}

.cat-examples {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}

.cat-example {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.cat-example h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.cat-example p {
  margin: 0;
  color: var(--muted);
}

.cat-examples + .intro {
  margin-top: 1.25rem;
}
  color: #f3e9fb;
}

.countries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.pill.soon {
  background: #f3e9fb;
  color: var(--purple-dark);
}

.cta-band {
  text-align: center;
  padding: 64px 0 80px;
}

.cta-band .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.cta-band .intro {
  margin: 0 auto;
  color: var(--muted);
  max-width: 32rem;
}

.more-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Legal */
.legal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
}

.legal ul {
  padding-inline-start: 1.35rem;
}

.legal h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.page-hero {
  padding: 56px 0 12px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.page-hero .intro {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.guide-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.guide-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3e9fb;
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.guide-jump a:hover {
  color: var(--white);
  background: var(--purple);
}

#account,
#wallet,
#categories,
#payments,
#merchant,
#send,
#stats,
#gift,
#bank,
#consumers,
#merchant-faq {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px 4px;
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.shot-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  margin: 28px 0 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot {
  flex: 0 0 200px;
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.play-badge img {
  height: 60px;
  width: auto;
}

html[data-store="ios"] .play-badge {
  display: none;
}

html[data-store="android"] .hero-actions > .btn,
html[data-store="desktop"] .hero-actions > .btn,
html[data-store="android"] .cta-band .actions:has(.play-badge) > .btn,
html[data-store="desktop"] .cta-band .actions:has(.play-badge) > .btn {
  display: none;
}

.hero-actions .play-badge {
  margin-inline-start: -8px;
}

.page-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3e9fb;
  color: var(--purple-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-section {
  padding-top: 28px;
}

.contact-grid {
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-card .icon {
  flex-shrink: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.contact-card-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-card .contact-kicker {
  margin: 0 0 2px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-phones {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.contact-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contact-tel {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.wa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  background: #e9f9ef;
  color: #0f8a45;
  font-size: 0.82rem;
  font-weight: 700;
}

.wa-chip:hover {
  color: #0b6b38;
  background: #d4f3e0;
}

/* Footer */
#site-footer,
.site-footer {
  margin-top: auto;
}

.site-footer {
  background: var(--purple-deep);
  color: #e8d4f5;
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom));
}

.site-footer a {
  color: var(--white);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.powered-by {
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.powered-by a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  color: #cbb6e0;
}

.copyright b {
  color: var(--white);
  font-weight: 700;
}

.copyright-legal {
  display: block;
  margin-top: 6px;
}

.copyright-legal a {
  color: #e8d4f5;
}

.copyright-legal a:hover {
  color: var(--white);
}

/* Desktop download / QR */
.download-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(233, 30, 140, 0.4), transparent 36%),
    linear-gradient(145deg, var(--purple-deep) 0%, var(--purple) 55%, #9b3ed4 100%);
}

.download-shell .site-header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.download-shell .brand,
.download-shell .nav a {
  color: var(--white);
}

.download-shell .nav a:hover:not(.btn),
.download-shell .nav a.is-active:not(.btn) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.download-shell .lang-toggle {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.download-shell .menu-toggle {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.download-shell .site-header.is-open .nav {
  background: #3d1463;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.download-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 56px;
  text-align: center;
}

.download-main h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.download-main .lead {
  margin: 0 auto 28px;
  max-width: 28rem;
  color: #f3e9fb;
}

.qr-card {
  display: inline-block;
  background: var(--white);
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.qr-card img,
.qr-card svg {
  display: block;
  width: min(280px, calc(100vw - 96px));
  height: auto;
  aspect-ratio: 1;
}

html:not(.get-desktop) #get-desktop {
  display: none;
}

html:not(.get-android) #get-android {
  display: none;
}

html.get-desktop #get-opening,
html.get-android #get-opening {
  display: none;
}

.download-url {
  display: inline-block;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: #e8d4f5;
  word-break: break-all;
}

.download-url:hover {
  color: var(--white);
}

.coming-soon-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.download-shell .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.download-shell .btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.qr-file {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.qr-file:hover {
  color: var(--white);
}

.download-shell .site-footer {
  background: transparent;
}

[data-store-ios] {
  display: none;
}

html[data-store="ios"] [data-store-android] {
  display: none !important;
}

html[data-store="ios"] [data-store-ios] {
  display: inline;
}

.to-top {
  position: fixed;
  z-index: 36;
  inset-inline-end: 16px;
  bottom: -100px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 140%);
  box-shadow: 0 8px 20px rgba(90, 31, 142, 0.28);
  display: grid;
  place-items: center;
  touch-action: manipulation;
  transition: opacity 0.7s ease-in-out, bottom 0.7s ease-in-out;
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
}

.to-top:hover,
.to-top:focus-visible {
  color: var(--white);
  filter: brightness(1.08);
}

.to-top:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}


@media (max-width: 1100px) {
  .site-header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-store {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 41;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(90, 31, 142, 0.14);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 14px;
    justify-content: flex-start;
  }

  .nav .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .site-header {
    height: var(--header-h);
  }

  .site-header .inner {
    height: var(--header-h);
  }

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

  .section {
    padding: 56px 0;
  }

  .section-flush {
    padding-top: 0;
  }

  .section-tight {
    padding-top: 16px;
  }

  .section-legal {
    padding-top: 8px;
  }

  .callout {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 40px));
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav a {
    min-height: 44px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero h1 {
    max-width: none;
    font-size: 1.85rem;
  }

  .hero .lead {
    font-size: 1.02rem;
  }

  .hero-actions,
  .contact-hero-actions,
  .cta-band .actions,
  .download-actions {
    display: flex;
  }

  .hero-actions .btn,
  .contact-hero-actions .btn,
  .cta-band .btn,
  .more-features .btn,
  .download-actions .btn {
    width: 100%;
  }

  .section {
    padding: 40px 0;
  }

  .section-flush {
    padding-top: 0;
  }

  .section-tight {
    padding-top: 12px;
  }

  .section-legal {
    padding-top: 8px;
  }

  .page-hero {
    padding: 32px 0 8px;
  }

  .callout,
  .legal {
    padding: 20px;
    border-radius: 18px;
  }

  .cta-band {
    padding: 40px 0 56px;
  }

  .contact-phone {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-phone .wa-chip {
    width: 100%;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
    gap: 4px 12px;
  }

  .download-main {
    padding: 24px 0 40px;
  }

  .download-url {
    max-width: 100%;
    padding-inline: 8px;
  }

  .qr-card {
    padding: 12px;
  }

  body:not(.download-shell) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    display: block;
    position: fixed;
    z-index: 35;
    inset-inline: 0;
    bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(90, 31, 142, 0.08);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  .download-shell .mobile-cta {
    display: none !important;
  }

  body:has(.mobile-cta) .to-top.is-visible {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .brand span {
    display: none;
  }
}

@media print {
  .site-header,
  .mobile-cta,
  .to-top,
  .skip-link,
  .cta-band {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
    background: #fff;
  }
}
