:root {
  color-scheme: dark;
  --bg: #10070d;
  --panel: #1d1019;
  --panel-strong: #28101d;
  --text: #ffffff;
  --muted: #d8c9d2;
  --line: rgba(255, 255, 255, 0.14);
  --pink: #f33393;
  --pink-soft: rgba(243, 51, 147, 0.14);
  --green: #a7ff43;
  --control-bg: rgba(255, 255, 255, 0.04);
  --soft-card: rgba(255, 255, 255, 0.05);
  --hover-card: rgba(255, 255, 255, 0.07);
  --media-bg: #050305;
  --white-text: #ffffff;
  --bg-glow-a: rgba(243, 51, 147, 0.28);
  --bg-glow-b: rgba(243, 51, 147, 0.18);
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff8fc;
  --panel: #ffffff;
  --panel-strong: #fff0f7;
  --text: #1d1019;
  --muted: #614d5a;
  --line: rgba(29, 16, 25, 0.14);
  --pink: #d91f7a;
  --pink-soft: rgba(217, 31, 122, 0.12);
  --green: #4f8f10;
  --control-bg: rgba(29, 16, 25, 0.04);
  --soft-card: rgba(255, 255, 255, 0.78);
  --hover-card: rgba(217, 31, 122, 0.08);
  --media-bg: #ffffff;
  --white-text: #ffffff;
  --bg-glow-a: rgba(243, 51, 147, 0.14);
  --bg-glow-b: rgba(167, 255, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 18%, var(--bg-glow-a), transparent 32rem),
    radial-gradient(circle at 18% 12%, var(--bg-glow-b), transparent 26rem),
    var(--bg);
}

body > main {
  animation: page-enter 520ms ease both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  width: min(1240px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 18px;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: transparent;
  box-sizing: border-box;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: var(--bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(180px, 42vw);
  object-fit: contain;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 38px;
}

.brand-mark span {
  position: absolute;
  left: 6px;
  width: 24px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff5daf, #b8146a);
  box-shadow: 0 8px 18px rgba(243, 51, 147, 0.28);
  transform: skewY(-18deg) rotate(-8deg);
}

.brand-mark span:nth-child(1) {
  top: 2px;
  opacity: 0.72;
}

.brand-mark span:nth-child(2) {
  top: 12px;
  left: 2px;
}

.brand-mark span:nth-child(3) {
  top: 22px;
  left: 10px;
  opacity: 0.82;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  font-weight: 800;
}

.nav a,
.nav-dropdown__toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--text);
  font: inherit;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
}

.nav a:hover,
.nav a:focus,
.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus {
  border-color: rgba(243, 51, 147, 0.28);
  color: var(--pink);
  background: rgba(243, 51, 147, 0.08);
}

.nav a.active,
.nav-dropdown.active > .nav-dropdown__toggle,
.nav-dropdown.is-open > .nav-dropdown__toggle {
  border-color: rgba(243, 51, 147, 0.48);
  color: var(--pink);
  background: rgba(243, 51, 147, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav a.active::after,
.nav-dropdown.active > .nav-dropdown__toggle::after {
  display: none;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown__menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus,
.nav-dropdown__menu a.active {
  background: var(--hover-card);
}

.nav-dropdown__menu a::after {
  display: none;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 0 0 auto;
}

.language-switcher::before {
  content: "";
  position: absolute;
  left: 12px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--text);
  pointer-events: none;
}

.language-switcher::after {
  content: "";
  position: absolute;
  left: 16px;
  z-index: 1;
  width: 8px;
  height: 16px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-radius: 50%;
  color: var(--text);
  pointer-events: none;
}

.language-switcher[data-current-language="ckb"]::before {
  display: none;
}

.language-switcher[data-current-language="ckb"]::after {
  display: none;
}

.language-switcher.is-enhanced::before,
.language-switcher.is-enhanced::after {
  display: none;
}

.language-switcher.is-enhanced select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-switcher__button,
.language-switcher__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.language-switcher__button {
  position: relative;
  width: 100%;
  min-height: 40px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 32px 0 12px;
  background: var(--control-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.language-switcher__button::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.language-switcher__button:hover,
.language-switcher__button:focus,
.language-switcher.is-open .language-switcher__button {
  border-color: rgba(243, 51, 147, 0.5);
  color: var(--pink);
}

.language-switcher__flag {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.language-switcher__flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.language-switcher__label {
  white-space: nowrap;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  min-width: 100%;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.language-switcher__menu[hidden] {
  display: none;
}

.language-switcher__option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  text-align: start;
}

.language-switcher__option:hover,
.language-switcher__option:focus,
.language-switcher__option.is-selected {
  color: var(--pink);
  background: var(--hover-card);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: var(--control-bg);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  font: inherit;
  background: var(--control-bg);
}

.theme-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

/* Flat sun — shown in light mode */
.theme-toggle[data-theme-mode="light"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Crect x='11' y='1' width='2' height='3.5' rx='1'/%3E%3Crect x='11' y='19.5' width='2' height='3.5' rx='1'/%3E%3Crect x='1' y='11' width='3.5' height='2' rx='1'/%3E%3Crect x='19.5' y='11' width='3.5' height='2' rx='1'/%3E%3Cg transform='rotate(45 12 12)'%3E%3Crect x='11' y='1' width='2' height='3.5' rx='1'/%3E%3Crect x='11' y='19.5' width='2' height='3.5' rx='1'/%3E%3Crect x='1' y='11' width='3.5' height='2' rx='1'/%3E%3Crect x='19.5' y='11' width='3.5' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Crect x='11' y='1' width='2' height='3.5' rx='1'/%3E%3Crect x='11' y='19.5' width='2' height='3.5' rx='1'/%3E%3Crect x='1' y='11' width='3.5' height='2' rx='1'/%3E%3Crect x='19.5' y='11' width='3.5' height='2' rx='1'/%3E%3Cg transform='rotate(45 12 12)'%3E%3Crect x='11' y='1' width='2' height='3.5' rx='1'/%3E%3Crect x='11' y='19.5' width='2' height='3.5' rx='1'/%3E%3Crect x='1' y='11' width='3.5' height='2' rx='1'/%3E%3Crect x='19.5' y='11' width='3.5' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Flat moon — shown in dark mode */
.theme-toggle[data-theme-mode="dark"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 14.3A8.5 8.5 0 0 1 9.7 3 8.8 8.8 0 1 0 21 14.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 14.3A8.5 8.5 0 0 1 9.7 3 8.8 8.8 0 1 0 21 14.3z'/%3E%3C/svg%3E");
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: rgba(243, 51, 147, 0.5);
  color: var(--pink);
}

.language-switcher select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 38px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 14px center / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 9px center / 6px 6px no-repeat,
    var(--control-bg);
  -webkit-appearance: none;
  appearance: none;
}

.language-switcher:hover::before,
.language-switcher:hover::after,
.language-switcher:focus-within::before,
.language-switcher:focus-within::after {
  color: var(--pink);
}

.language-switcher select:hover {
  border-color: rgba(243, 51, 147, 0.5);
  color: var(--pink);
}

.language-switcher select[data-current-language="ckb"] {
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 14px center / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) right 9px center / 6px 6px no-repeat,
    url("./assets/ku-flag.png") left 12px center / 18px 18px no-repeat,
    var(--control-bg);
}

.language-switcher select:focus {
  outline: 2px solid rgba(243, 51, 147, 0.5);
  outline-offset: 2px;
}

.language-switcher option {
  color: #10070d;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .site-footer {
  direction: rtl;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .social-links {
  direction: ltr;
}

html[dir="rtl"] .store-row a,
html[dir="rtl"] .download-actions a {
  direction: ltr;
}

html[dir="rtl"] .language-switcher select {
  padding: 0 38px 0 34px;
  background-position:
    left 9px center,
    left 14px center,
    center;
}

html[dir="rtl"] .language-switcher select[data-current-language="ckb"] {
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) left 9px center / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) left 14px center / 6px 6px no-repeat,
    url("./assets/ku-flag.png") right 12px center / 18px 18px no-repeat,
    var(--control-bg);
}

html[dir="rtl"] .language-switcher__button {
  padding: 0 12px 0 32px;
}

html[dir="rtl"] .language-switcher__button::after {
  right: auto;
  left: 12px;
}

html[dir="rtl"] .language-switcher__menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-switcher::before {
  right: 12px;
  left: auto;
}

html[dir="rtl"] .language-switcher::after {
  right: 16px;
  left: auto;
}

.primary-button,
.ghost-button,
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, #f33393, #c8196f);
  color: var(--white-text);
}

.ghost-button {
  border: 1px solid var(--line);
  background: var(--control-bg);
}

.hero,
.section,
.download-band,
.site-footer,
.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: center;
  padding: 42px 0 58px;
}

.hero__copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1::first-line {
  color: var(--text);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__text,
.section p,
.download-band p,
.site-footer p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero__text {
  text-align: justify;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  max-width: 620px;
}

.hero-stats span {
  min-height: 82px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-card);
  color: var(--muted);
  font-weight: 800;
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.hero__actions,
.store-row,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions {
  margin-top: 28px;
}

.store-row {
  margin-top: 10px;
}

.store-row-title {
  margin: 24px 0 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.store-row-title + .download-actions {
  margin-top: 10px;
}

.store-row a,
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.store-badge {
  width: 156px;
  height: auto;
  display: block;
}

.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: min(290px, 72vw);
  aspect-ratio: 0.46;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 34px;
  background: var(--media-bg);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.42),
    0 0 54px rgba(243, 51, 147, 0.16);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card-marquee-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  padding: 18px 0 8px;
}

.card-marquee-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
}

.card-marquee {
  position: relative;
  display: flex;
  direction: ltr;
  gap: 16px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.card-marquee__track {
  display: flex;
  direction: ltr;
  flex: 0 0 auto;
  gap: 16px;
  width: max-content;
  will-change: transform;
  min-width: max-content;
  animation: card-marquee-scroll 28s linear infinite;
}

.card-marquee img {
  width: 118px;
  aspect-ratio: 1;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  object-fit: contain;
  background: #fff;
}

@keyframes card-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.section {
  padding: 54px 0;
}

.page-hero {
  min-height: 420px;
  display: grid;
  align-content: center;
  padding: 42px 0 58px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.page-hero p {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.split-page-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
}

.page-phone {
  width: min(300px, 80vw);
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.services {
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: block;
  min-height: 246px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(243, 51, 147, 0.12), var(--control-bg));
}

.service-card:hover,
.service-card:focus {
  border-color: rgba(243, 51, 147, 0.52);
  transform: translateY(-2px);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.section-link-row {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(243, 51, 147, 0.12), var(--control-bg));
}

.detail-card .service-icon {
  margin: 0;
  text-align: center;
}

.detail-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.detail-card p {
  margin-bottom: 0;
}

.detail-card-media img {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--media-bg);
  object-fit: cover;
}

.service-page-image {
  width: min(100%, 520px);
  max-height: 360px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--media-bg);
  object-fit: contain;
}

.detail-card-link:hover,
.detail-card-link:focus {
  border-color: rgba(243, 51, 147, 0.52);
  transform: translateY(-2px);
}

.service-hub,
.popular-services,
.all-services {
  border-top: 1px solid var(--line);
}

.service-category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.service-category-row span,
.service-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--control-bg);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
}

.popular-service-grid,
.service-tile-grid {
  display: grid;
  gap: 16px;
}

.popular-service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.service-tile {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.service-tile.featured {
  background: linear-gradient(180deg, rgba(243, 51, 147, 0.13), var(--panel));
}

.service-tile:hover,
.service-tile:focus {
  border-color: rgba(243, 51, 147, 0.52);
  transform: translateY(-2px);
}

.service-tile .service-icon {
  margin-bottom: 0;
  font-size: 1.9rem;
}

.service-tile h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.service-tile p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.service-cta {
  margin-top: 28px;
}

.service-cta .download-actions .primary-button,
.service-cta .download-actions .ghost-button {
  padding: 0 22px;
}

.service-cta .download-actions .primary-button {
  background: linear-gradient(135deg, #f33393, #c8196f);
  color: var(--white-text);
}

.service-cta .download-actions .ghost-button {
  border: 1px solid var(--line);
  background: var(--control-bg);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 18px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--pink);
  color: var(--white-text);
  font-weight: 900;
}

.account-types,
.security-section,
.agent-section,
.home-actions {
  border-top: 1px solid var(--line);
}

.home-action-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-action-tab {
  display: grid;
  align-content: start;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(243, 51, 147, 0.16), var(--soft-card));
}

.home-action-tab:hover,
.home-action-tab:focus {
  border-color: rgba(243, 51, 147, 0.56);
  transform: translateY(-2px);
}

.home-action-tab p {
  margin-bottom: 0;
}

.integration-overview {
  border-top: 1px solid var(--line);
}

.integration-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.integration-card-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.integration-card-grid span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 900;
}

.integration-card-grid p {
  margin-bottom: 0;
}

.integration-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.integration-checklist span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.account-type-grid,
.agent-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.agent-section--form-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.account-type-grid article,
.agent-notes article,
.agent-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.account-type-grid article {
  padding: 28px;
}

.account-type-grid p {
  margin-bottom: 0;
}

.compact-store-row {
  margin-top: 20px;
}

.contact-form-section {
  border-top: 1px solid var(--line);
}

.contact-form-section[hidden] {
  display: none;
}

.contact-form-section .section-heading {
  max-width: 680px;
  margin: 0 0 24px;
  text-align: start;
}

.contact-form-section .section-heading p:last-child {
  max-width: 620px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.contact-form {
  max-width: none;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(243, 51, 147, 0.12), transparent 46%),
    var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.contact-form-section > .contact-form {
  max-width: 920px;
  margin-inline: auto;
}

.contact-form textarea {
  min-height: 132px;
}

.contact-form .primary-button {
  min-height: 52px;
}

.career-openings-section {
  border-top: 1px solid var(--line);
}

.career-openings-section .section-heading {
  max-width: 680px;
  margin: 0 0 24px;
  text-align: start;
}

.career-list {
  display: grid;
  gap: 14px;
}

.career-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.career-card h3,
.career-card p {
  margin-bottom: 0;
}

.career-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details article {
  display: grid;
  gap: 8px;
  min-height: 130px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.contact-details span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.contact-details p,
.contact-details a {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.contact-details .text-link {
  width: max-content;
  color: var(--pink);
}

.phone-number {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  white-space: nowrap;
}

.agent-copy {
  align-self: start;
}

.agent-copy > p {
  max-width: 560px;
}

.agent-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.agent-notes article {
  min-height: 180px;
  padding: 20px;
}

.agent-notes p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.agent-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.agent-form label,
.permit-field {
  display: grid;
  gap: 8px;
}

.agent-form label span,
.permit-field legend {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.agent-form input,
.agent-form select,
.agent-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  background: var(--soft-card);
}

.agent-form input[type="file"] {
  padding: 9px 12px;
}

.agent-form input[type="file"]::file-selector-button {
  margin-inline-end: 12px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--pink);
  color: var(--white-text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.agent-form textarea {
  resize: vertical;
}

.agent-form input:focus,
.agent-form select:focus,
.agent-form textarea:focus {
  outline: 2px solid rgba(243, 51, 147, 0.5);
  outline-offset: 2px;
}

.agent-form option {
  color: #10070d;
}

.full-field,
.permit-field {
  grid-column: 1 / -1;
}

.permit-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.permit-field label {
  display: inline-flex;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  width: max-content;
  margin-top: 10px;
  margin-inline-end: 18px;
}

.permit-field input {
  width: auto;
  min-height: auto;
}

.text-link {
  color: var(--text);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-underline-offset: 4px;
}

.capabilities {
  border-top: 1px solid var(--line);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.capability-grid h3 {
  color: var(--text);
}

.capability-grid p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.wallet-transfer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.wallet-transfer__copy {
  max-width: 560px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.payment-methods article {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--hover-card), rgba(243, 51, 147, 0.08));
}

.payment-methods img,
.payment-methods .payment-method-icon {
  width: 100%;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.payment-methods .payment-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
}

.payment-methods .payment-method-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-methods h3 {
  margin-bottom: 0;
}

.payment-methods p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.app-screens {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.screen-copy {
  max-width: 520px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.feature-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
}

.capability-grid .service-icon {
  margin-bottom: 16px;
}

.pos-device-showcase,
.roll-paper-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
}

.pos-device-showcase__copy,
.roll-paper-showcase__copy {
  max-width: 620px;
}

.pos-device-showcase__image,
.roll-paper-showcase__image {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.24));
}

.screen-gallery {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.screen-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--media-bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.screen-image {
  aspect-ratio: 0.46;
  object-fit: cover;
  object-position: top center;
}

.customer-account-screens .screen-image {
  border-radius: 22px;
  overflow: hidden;
}

.pos-screenshots {
  border-top: 1px solid var(--line);
}

.pos-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.pos-screenshot-grid img {
  width: 100%;
  aspect-ratio: 333 / 592;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.about-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-detail article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.about-detail p {
  margin-bottom: 0;
}

.about-network {
  border-top: 1px solid var(--line);
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.network-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(243, 51, 147, 0.12), var(--control-bg));
}

.network-grid p {
  margin-bottom: 0;
}

.download-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(243, 51, 147, 0.18), var(--soft-card));
}

.download-band h2,
.download-band p {
  margin-bottom: 0;
}

.contact-band {
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #fff;
}

.product-card div {
  padding: 18px;
}

.product-card h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.product-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.gallery-section {
  border-top: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: var(--media-bg);
}

.gallery-card figcaption {
  padding: 16px 18px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
}

.site-footer p {
  margin-bottom: 0;
}

.delta-group-line {
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 0.85rem;
}

.delta-group-note {
  color: var(--muted);
  text-decoration: none;
}

.delta-group-note:hover {
  color: var(--pink);
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--control-bg);
}

.social-links a::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.social-links a[href*="facebook.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3.5l.5-4h-4V7a1 1 0 0 1 1-1h3V2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3.5l.5-4h-4V7a1 1 0 0 1 1-1h3V2z'/%3E%3C/svg%3E");
}

.social-links a[href*="instagram.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' x2='17.51' y1='6.5' y2='6.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' x2='17.51' y1='6.5' y2='6.5'/%3E%3C/svg%3E");
}

.social-links a[href*="tiktok.com"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-2.88 2.5 2.89 2.89 0 0 1-2.89-2.89 2.89 2.89 0 0 1 2.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 0 0-.79-.05A6.34 6.34 0 0 0 3.16 15.3 6.34 6.34 0 0 0 9.5 21.64a6.34 6.34 0 0 0 6.34-6.34V8.73a8.19 8.19 0 0 0 4.79 1.52V6.84a4.84 4.84 0 0 1-.99-.15z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-2.88 2.5 2.89 2.89 0 0 1-2.89-2.89 2.89 2.89 0 0 1 2.89-2.89c.28 0 .54.04.79.1v-3.5a6.37 6.37 0 0 0-.79-.05A6.34 6.34 0 0 0 3.16 15.3 6.34 6.34 0 0 0 9.5 21.64a6.34 6.34 0 0 0 6.34-6.34V8.73a8.19 8.19 0 0 0 4.79 1.52V6.84a4.84 4.84 0 0 1-.99-.15z'/%3E%3C/svg%3E");
}

.social-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    width: min(100% - 24px, 1240px);
    gap: 8px;
  }

  .brand-logo {
    height: 28px;
    max-width: min(150px, 36vw);
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  }

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

  .language-switcher {
    width: 42px;
  }

  .language-switcher__button,
  html[dir="rtl"] .language-switcher__button {
    min-width: 42px;
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .language-switcher__button::after,
  .language-switcher__label {
    display: none;
  }

  .language-switcher__flag {
    margin: 0;
  }

  .nav a,
  .nav-dropdown__toggle,
  .nav-dropdown__menu a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 0 12px;
    text-align: start;
  }

  .nav a:hover,
  .nav a:focus,
  .nav-dropdown__toggle:hover,
  .nav-dropdown__toggle:focus {
    background: var(--hover-card);
  }

  .nav a.active::after,
  .nav-dropdown.active > .nav-dropdown__toggle::after {
    display: none;
  }

  .nav-dropdown {
    display: grid;
    width: 100%;
  }

  .nav-dropdown__menu {
    position: static;
    left: auto;
    min-width: 0;
    display: none;
    margin: 4px 0 0;
    border: 0;
    padding: 0;
    padding-inline-start: 12px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
    left: auto;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: none;
    transform: none;
  }

  .nav-dropdown.is-open:hover .nav-dropdown__menu,
  .nav-dropdown.is-open:focus-within .nav-dropdown__menu {
    display: grid;
    transform: none;
  }

  .hero,
  .app-screens,
  .pos-device-showcase,
  .roll-paper-showcase,
  .wallet-transfer,
  .about,
  .download-band,
  .split-page-hero,
  .about-detail,
  .network-grid,
  .home-action-tabs,
  .account-type-grid,
  .agent-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
  }

  .contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-service-grid,
  .service-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-card-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .screen-gallery {
    grid-template-columns: minmax(220px, 300px);
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .download-band,
  .site-footer,
  .page-hero {
    width: min(100% - 20px, 1240px);
  }

  .site-header {
    gap: 6px;
    padding: 12px 8px;
  }

  .brand-logo {
    height: 24px;
    max-width: min(118px, 34vw);
  }

  .menu-toggle,
  .theme-toggle,
  .language-switcher,
  .language-switcher__button,
  html[dir="rtl"] .language-switcher__button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
  }

  .hero {
    padding-top: 28px;
  }

  /* Leaflet map tiles should never expand page width */
  .leaflet-container,
  .leaflet-pane,
  .leaflet-map-pane {
    max-width: 100%;
    overflow: hidden;
  }

  .service-grid,
  .popular-service-grid,
  .service-tile-grid,
  .contact-details,
  .capability-grid,
  .product-grid,
  .gallery-grid,
  .pos-screenshot-grid,
  .payment-methods,
  .feature-list,
  .integration-checklist,
  .screen-gallery,
  .detail-card,
  .agent-form,
  .agent-notes {
    grid-template-columns: 1fr;
  }

  .career-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .career-card .primary-button {
    width: 100%;
  }

  .page-hero {
    min-height: auto;
    padding: 44px 0 34px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .screen-image {
    max-width: 260px;
    margin: 0 auto;
  }

  .card-marquee img {
    width: 92px;
    padding: 8px;
  }

  .download-actions a,
  .store-row a,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
