:root {
  --danger: #f87171;
  --success: #4ade80;
  /* Apple.com–like large radii + system type */
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    system-ui,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --maxw: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Non–iPhone screenshots: target 1600×1000 (16:10) for aligned grids. */
[data-theme="dark"] {
  color-scheme: dark;
  --text: #eef3f8;
  --muted: #8aa3bd;
  --border: rgba(255, 255, 255, 0.12);
  --bg-card: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(10, 22, 36, 0.72);
  --header-border: rgba(255, 255, 255, 0.09);
  --footer-bg: linear-gradient(180deg, rgba(12, 26, 42, 0.94), rgba(6, 14, 26, 0.98));
  --footer-line: rgba(255, 255, 255, 0.12);
  --nav-mobile-bg: rgba(10, 22, 36, 0.97);
  --shot-frame-bg: linear-gradient(165deg, rgba(20, 40, 60, 0.85), rgba(10, 24, 40, 0.75));
  --input-bg: rgba(0, 0, 0, 0.32);
  --input-focus-bg: rgba(255, 255, 255, 0.06);
  --help-subblock-bg: rgba(0, 0, 0, 0.2);
  --platforms-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  --accent: #3ebfb0;
  --accent-bright: #5fd4c5;
  --accent-2: #93b4f0;
  --accent-fill: #2d948a;
  --link-hover: #7ee8da;
  --shadow-soft:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 44px rgba(0, 0, 0, 0.35);
  --section-alt-bg: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] {
  color-scheme: light;
  --text: #132030;
  --muted: #4a5f78;
  --border: rgba(22, 48, 78, 0.1);
  --bg-card: rgba(255, 255, 255, 0.58);
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-border: rgba(22, 48, 78, 0.08);
  --footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(236, 244, 255, 0.94));
  --footer-line: rgba(22, 48, 78, 0.1);
  --nav-mobile-bg: rgba(255, 255, 255, 0.97);
  --shot-frame-bg: linear-gradient(165deg, #f0f4fb, #e2eaf5);
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-focus-bg: #fff;
  --help-subblock-bg: rgba(255, 255, 255, 0.72);
  --platforms-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(236, 244, 255, 0.42));
  --accent: #0f766e;
  --accent-bright: #0d9488;
  --accent-2: #4f46e5;
  --accent-fill: #0f766e;
  --link-hover: #115e59;
  --shadow-soft:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 12px 40px rgba(15, 45, 80, 0.1);
  --section-alt-bg: rgba(255, 255, 255, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

[data-theme="dark"] ::selection {
  background: rgba(95, 212, 197, 0.35);
  color: var(--text);
}

[data-theme="light"] ::selection {
  background: rgba(13, 148, 136, 0.22);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

[data-theme="dark"] body {
  background-color: #0a1626;
  background-image:
    linear-gradient(168deg, #1a3352 0%, #142a44 30%, #0f2238 58%, #0a1829 100%),
    radial-gradient(ellipse 100% 65% at 6% -8%, rgba(90, 170, 210, 0.2), transparent 52%),
    radial-gradient(ellipse 90% 55% at 96% 8%, rgba(70, 110, 200, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 45% at 48% 102%, rgba(25, 90, 130, 0.28), transparent 58%);
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-color: #f8fafc;
  background-image:
    linear-gradient(122deg, #dbeafe 0%, #e9d5ff 28%, #fce7f3 52%, #d1fae5 78%, #cffafe 100%),
    radial-gradient(ellipse 95% 60% at 100% -5%, rgba(251, 207, 232, 0.55), transparent 50%),
    radial-gradient(ellipse 75% 55% at 0% 100%, rgba(147, 197, 253, 0.45), transparent 48%),
    radial-gradient(ellipse 45% 35% at 72% 55%, rgba(253, 230, 138, 0.2), transparent 50%);
  background-attachment: fixed;
}

body.is-rtl {
  direction: rtl;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(1.65);
  -webkit-backdrop-filter: blur(22px) saturate(1.65);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .site-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 32px rgba(15, 45, 80, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.021em;
  transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-out);
}

.logo:hover {
  opacity: 0.92;
}

.logo:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: none;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease-smooth), opacity 0.2s;
}

.logo:hover .logo-img {
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border-bottom: none;
  transition: color 0.22s var(--ease-smooth), background 0.22s var(--ease-smooth), box-shadow 0.22s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

[data-theme="light"] .nav-link:hover {
  background: rgba(22, 48, 78, 0.06);
}

[data-theme="light"] .nav-link.is-active {
  background: rgba(22, 48, 78, 0.1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem 0.15rem 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.22s var(--ease-smooth), background 0.22s;
}

[data-theme="light"] .nav-lang {
  background: rgba(22, 48, 78, 0.04);
  border-color: rgba(22, 48, 78, 0.1);
}

.nav-lang:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .nav-lang:hover {
  border-color: rgba(22, 48, 78, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.nav-lang .lang-select {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a0b8' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}

[data-theme="light"] .nav-lang .lang-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234d6078' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
}

.nav-lang .lang-select:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-lang .lang-select:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 2px rgba(95, 212, 197, 0.25);
}

.nav-lang .lang-select:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  box-shadow: none;
}

body.is-rtl .nav-lang .lang-select {
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  background-position: left 0.6rem center;
}

.nav-cta {
  margin-inline-start: 0.25rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

/* Icons use currentColor (stroke/fill); bump contrast vs header background */
[data-theme="dark"] .theme-toggle {
  color: #f0f4fa;
}

[data-theme="light"] .theme-toggle {
  color: #0b1220;
  border-color: rgba(22, 48, 78, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-toggle:hover {
  color: #ffffff;
}

[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(22, 48, 78, 0.28);
  background: #ffffff;
  color: #050a12;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: block;
}

.theme-toggle__icon--sun,
.theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-smooth),
    background 0.25s var(--ease-smooth),
    border-color 0.25s,
    filter 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  box-shadow: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-fill);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: none;
}

[data-theme="light"] .btn-primary:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

/* Product page: full-bleed promo carousel (fade, edge-to-edge) */
.product-promo-carousel {
  width: 100%;
  margin: 0;
  border-block: 1px solid var(--border);
  background: #070d16;
}

[data-theme="light"] .product-promo-carousel {
  background: #e2eaf4;
}

.product-promo-carousel__inner {
  position: relative;
  width: 100%;
  max-width: none;
}

.product-promo-carousel__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: clamp(220px, 42vw, 580px);
  background: transparent;
}

.product-promo-carousel__track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  height: 100%;
}

.product-promo-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-promo-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Full-bleed bar uses section background; image sits in a capped column, centered. */
.product-promo-carousel__frame {
  width: 100%;
  max-width: min(var(--maxw), 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.product-promo-carousel__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.product-promo-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 24, 0.45);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s var(--ease-smooth), border-color 0.25s, transform 0.2s var(--ease-out), opacity 0.2s;
}

.product-promo-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.product-promo-carousel__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.product-promo-carousel__arrow--prev {
  left: max(0.75rem, env(safe-area-inset-left, 0px));
}

.product-promo-carousel__arrow--next {
  right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.product-promo-carousel__arrow:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

[data-theme="light"] .product-promo-carousel__arrow {
  border-color: rgba(22, 48, 78, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

[data-theme="light"] .product-promo-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(22, 48, 78, 0.28);
}

.product-promo-carousel__dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 1.35rem 1rem 1.15rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 55%, transparent 100%);
  pointer-events: none;
}

.product-promo-carousel__dots > * {
  pointer-events: auto;
}

[data-theme="light"] .product-promo-carousel__dots {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
}

.product-promo-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: width 0.35s var(--ease-out), background 0.25s, border-color 0.25s, opacity 0.25s;
  opacity: 0.75;
}

.product-promo-carousel__dot:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.45);
}

.product-promo-carousel__dot.is-active {
  width: 26px;
  opacity: 1;
  background: var(--accent-bright);
  border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .product-promo-carousel__dot {
  border-color: rgba(22, 48, 78, 0.25);
  background: rgba(22, 48, 78, 0.15);
}

[data-theme="light"] .product-promo-carousel__dot:hover {
  background: rgba(22, 48, 78, 0.28);
}

[data-theme="light"] .product-promo-carousel__dot.is-active {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
}

@media (prefers-reduced-motion: reduce) {
  .product-promo-carousel__slide {
    transition-duration: 0.01ms;
  }

  .product-promo-carousel__arrow:active {
    transform: translateY(-50%);
  }

  .product-promo-carousel__dot {
    transition: none;
  }
}

.screenshot-lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}

.screenshot-lightbox:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.screenshot-lightbox .screenshot-img {
  pointer-events: none;
}

.goverlay {
  background: rgba(4, 10, 18, 0.9) !important;
}

[data-theme="light"] .goverlay {
  background: rgba(248, 250, 252, 0.94) !important;
}

.glightbox-clean .gdesc-inner,
.glightbox-clean .gslide-description {
  background: var(--bg-card) !important;
  color: var(--text) !important;
}

.hero-bg {
  position: absolute;
  inset: -40% -20% auto;
  height: 85%;
  pointer-events: none;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 78% 58% at 50% 0%, rgba(100, 200, 185, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 22%, rgba(110, 145, 220, 0.12), transparent 56%);
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(14, 165, 233, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 42% at 15% 35%, rgba(168, 85, 247, 0.1), transparent 55%);
}

@keyframes hero-inner-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.hero-inner {
  position: relative;
  text-align: center;
  max-width: min(920px, 100%);
  margin-inline: auto;
  animation: hero-inner-enter 0.72s var(--ease-out) both;
}

.hero-icon-wrap {
  margin-bottom: 1.25rem;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: none;
}

[data-theme="light"] .hero-badge {
  border-color: rgba(22, 48, 78, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-fill);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-title__line {
  display: block;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--text);
}

.hero-title__accent {
  display: block;
  font-size: clamp(1.3rem, 3.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-align: center;
  max-width: 24ch;
  background: linear-gradient(
    100deg,
    #ec4899,
    #a855f7,
    #6366f1,
    #0ea5e9,
    #14b8a6,
    #22c55e,
    #eab308,
    #f97316,
    #ec4899
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hero-title-accent-flow 12s ease-in-out infinite;
}

@keyframes hero-title-accent-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none;
  }

  .hero-title__accent {
    animation: none;
    background-position: 20% 50%;
  }
}

.hero-subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.235rem);
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.47059;
}

.hero-subtitle--lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
  max-width: min(42rem, 100%);
}

.hero-subtitle__line {
  display: block;
  margin: 0;
  line-height: 1.5;
}

.hero-subtitle__lead {
  font-weight: 700;
  color: var(--text);
}

.hero-subtitle--lines .hero-subtitle__lead {
  margin-inline-end: 0.15em;
}

body.is-rtl .hero-subtitle--lines .hero-subtitle__lead {
  margin-inline-end: 0;
  margin-inline-start: 0.15em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-meta {
  margin: 0 0 2rem;
}

.text-link {
  color: var(--accent-bright);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.text-link:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.text-link:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.hero-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hero-pills li {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

[data-theme="light"] .hero-pills li {
  background: rgba(255, 255, 255, 0.52);
}

.hero-pills li:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .hero-pills li:hover {
  border-color: rgba(22, 48, 78, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

/* Sections */
.section {
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
}

.section--surface {
  background: var(--section-alt-bg);
  border-block: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 600;
  margin: 0 auto 2rem;
  text-align: center;
  letter-spacing: -0.025em;
  position: relative;
  padding-bottom: 1.1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(120px, 40%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), var(--accent-2), transparent);
  opacity: 0.95;
}

.glass {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s var(--ease-out);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0.85;
}

[data-theme="light"] .glass::before {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  opacity: 1;
}

.feature-card.glass:hover,
.store-card.glass:hover,
.lite-pro-card.glass:hover,
.feature-row.glass:hover,
.help-block.glass:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .feature-card.glass:hover,
[data-theme="light"] .store-card.glass:hover,
[data-theme="light"] .lite-pro-card.glass:hover,
[data-theme="light"] .feature-row.glass:hover,
[data-theme="light"] .help-block.glass:hover {
  border-color: rgba(22, 48, 78, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 48px rgba(15, 45, 80, 0.1);
}

.platforms {
  background: var(--platforms-bg);
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

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

.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: none;
}

.section-sub {
  margin: -0.5rem auto 2rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.47059;
}

.muted-center {
  text-align: center;
}

/* Home: iPhone strip */
.ios-strip-section {
  padding-top: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.ios-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.65rem, 2vw, 1.15rem);
  justify-content: center;
  align-items: flex-end;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ios-strip__item {
  flex: 0 0 auto;
  width: min(18vw, 200px);
  min-width: 132px;
  scroll-snap-align: start;
  animation: ios-strip-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--strip-i, 0) * 0.09s);
}

@media (min-width: 960px) {
  .ios-strip {
    overflow-x: visible;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 0;
    gap: clamp(0.5rem, 1.25vw, 1rem);
    scroll-snap-type: none;
  }

  .ios-strip__item {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    scroll-snap-align: unset;
  }

  .ios-strip__item .screenshot-slot {
    width: 100%;
  }

  .ios-strip__item .screenshot-frame--natural {
    width: 100%;
    max-width: none;
  }
}

.ios-strip__item .screenshot-slot {
  margin: 0;
}

.ios-strip__item .screenshot-frame--natural {
  border-radius: var(--radius-sm);
  background: var(--shot-frame-bg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.ios-strip__item:hover .screenshot-frame--natural {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.ios-strip__item .screenshot-frame--natural .screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(52vh, 520px);
  object-fit: contain;
  object-position: center top;
}

.ios-strip__item .screenshot-caption {
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.5rem;
  opacity: 0.88;
}

@keyframes ios-strip-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

.screenshots-section {
  padding-top: 2rem;
}

.product-gallery-intro {
  padding-bottom: 0.25rem;
}

.product-gallery-block {
  padding-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-gallery-block:last-of-type {
  margin-bottom: 0;
}

.gallery-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  text-align: center;
  color: var(--text);
  letter-spacing: -0.02em;
}

.gallery-sub {
  margin: 0 auto 1.5rem;
  max-width: 48ch;
}

.screenshot-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* macOS / iPad / Watch: same cell width, 16:10 frames (non–iPhone). */
.screenshot-grid--macos,
.screenshot-grid--ipad {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

.screenshot-grid--iphone {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  justify-content: center;
  align-items: end;
}

@media (min-width: 1000px) {
  .screenshot-grid--iphone {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: var(--maxw);
    margin-inline: auto;
  }
}

.screenshot-grid--watch {
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  justify-content: center;
}

/* Home: desktop/tablet/watch preview — unified frames */
.screenshot-grid--unified {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  margin-bottom: 2.5rem;
}

.screenshot-grid--iphone-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  max-width: var(--maxw);
  margin-inline: auto;
}

.screenshot-grid--iphone-row .screenshot-slot {
  flex: 0 1 240px;
  max-width: 280px;
}

@media (min-width: 960px) {
  .screenshot-grid--iphone-row:has(.screenshot-slot:nth-child(5)) {
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 1.25vw, 1rem);
  }

  .screenshot-grid--iphone-row:has(.screenshot-slot:nth-child(5)) .screenshot-slot {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

.screenshot-slot {
  margin: 0;
}

.screenshot-frame--natural {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--shot-frame-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 140px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.screenshot-frame--natural:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .screenshot-frame--natural {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 10px 36px rgba(15, 45, 80, 0.07);
}

[data-theme="light"] .screenshot-frame--natural:hover {
  border-color: rgba(22, 48, 78, 0.18);
}

/* iPhone: native portrait aspect from image (no 16:10), contain inside frame */
.screenshot-slot--iphone .screenshot-frame--natural {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: auto;
  min-height: 0;
}

.screenshot-slot--iphone .screenshot-frame--natural .screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 780px);
  object-fit: contain;
  object-position: center top;
}

/* macOS, iPad, Watch, default, mac-* : unified 16:10 showcase */
.screenshot-slot:not(.screenshot-slot--iphone) .screenshot-frame--natural {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.screenshot-slot:not(.screenshot-slot--iphone) .screenshot-frame--natural .screenshot-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  background: repeating-linear-gradient(
    -12deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.06) 12px,
    rgba(255, 255, 255, 0.06) 24px
  );
}

.screenshot-frame.is-missing .screenshot-placeholder {
  display: flex;
}

.screenshot-frame.is-missing .screenshot-img {
  display: none;
}

.screenshot-placeholder-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.screenshot-placeholder-file {
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px dashed var(--border);
}

.screenshot-caption {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 4.5vw, 3rem);
  max-width: 1080px;
  margin-inline: auto;
}

.cta-strip-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}

.cta-strip-sub {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.47059;
}

.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero */
.page-hero {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 1.25rem;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 15% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.85;
  pointer-events: none;
}

[data-theme="light"] .page-hero::before {
  background: linear-gradient(90deg, transparent, rgba(22, 48, 78, 0.14), transparent);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.95;
}

.page-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.page-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 65ch;
  font-size: 1.1rem;
}

.page-lead.muted {
  font-size: 0.95rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Product page: multi-app picker (future-proof) */
.product-page-toolbar {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.product-page-toolbar__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.product-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.product-switcher__link:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--link-hover);
}

.product-switcher__link.is-active {
  border-color: var(--accent-bright);
  background: rgba(95, 212, 197, 0.12);
  color: var(--accent-bright);
}

[data-theme="light"] .product-switcher__link.is-active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-fill);
}

.product-page-toolbar__mobile-select {
  display: none;
  width: min(100%, 22rem);
}

@media (max-width: 599px) {
  .product-switcher--wide {
    display: none !important;
  }

  .product-page-toolbar__mobile-select {
    display: block;
  }
}

@media (min-width: 600px) {
  .product-page-toolbar__mobile-select {
    display: none !important;
  }
}

.product-picker {
  min-width: 12rem;
  max-width: min(100%, 22rem);
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 0.85rem, calc(100% - 0.75rem) 0.85rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-picker:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.product-picker:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 2px rgba(95, 212, 197, 0.22);
}

[data-theme="light"] .product-picker:focus {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

body.is-rtl .product-picker {
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  background-position: 0.85rem 0.85rem, 0.55rem 0.85rem;
}

.product-store-notice {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Product feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin-inline: auto;
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem 1.75rem;
  align-items: start;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-2);
  opacity: 0.92;
}

.feature-row h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

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

.lite-pro-card {
  padding: 2rem;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.lite-pro-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
}

.lite-pro-card .audience {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Support */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.store-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-card h2 {
  margin: 0;
  font-family: var(--font-display);
}

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

.inline-links {
  text-align: center;
  font-size: 1rem;
}

.inline-links a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.inline-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--link-hover);
}

.contact-hint {
  color: var(--muted);
  margin-top: 0;
}

.contact-hint--secondary {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.contact-email-callout {
  margin-top: 1rem;
}

.contact-email-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
  word-break: break-all;
}

.contact-email-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--link-hover);
}

.contact-form {
  max-width: 520px;
  margin-top: 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  width: 100%;
}

.contact-captcha-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.contact-captcha-visual img {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.contact-captcha-input {
  flex: 1 1 140px;
  min-width: 8rem;
  max-width: 16rem;
}

.contact-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 2px rgba(95, 212, 197, 0.22);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  max-width: 520px;
}

.alert-success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--success);
}

.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

/* Help & privacy */
.help-blocks,
.legal-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.help-block {
  padding: 1.5rem 1.75rem;
}

.help-block h2,
.legal-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.help-block p,
.legal-block p {
  margin: 0;
  color: var(--muted);
}

.legal-block {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-block:last-child {
  border-bottom: 0;
}

/* Help detail */
.help-lead {
  color: var(--accent);
  font-weight: 500;
  margin-top: 0;
}

.help-list {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.25rem;
  color: var(--muted);
}

.help-list li {
  margin-bottom: 0.45rem;
}

.help-subblocks {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.help-subblock {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--help-subblock-bg);
}

.help-subblock h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  color: var(--text);
}

.help-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Privacy / Markdown legal doc */
.page-hero--legal {
  padding-bottom: 0.5rem;
}

.legal-section {
  padding-top: clamp(1.25rem, 4vw, 2rem);
}

/* Same content width rhythm as Help (full container / --maxw); was 820px and looked narrow. */
.legal-doc {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-doc--surface {
  padding: 1.5rem 1.75rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .legal-doc--surface {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88));
}

.legal-doc--surface.glass {
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}

.legal-doc > h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.legal-doc > h1 + p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.legal-doc h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.65rem;
}

.legal-doc h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.5rem;
}

.legal-doc li p {
  margin: 0.25rem 0 0;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc a:hover {
  color: var(--link-hover);
}

.legal-doc strong {
  color: var(--text);
  font-weight: 600;
}

body.is-rtl .legal-doc ul,
body.is-rtl .legal-doc ol {
  padding-inline-start: 1.35rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--footer-line), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s var(--ease-smooth), background-size 0.28s var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent-bright);
  background-size: 100% 1px;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0.35rem 0;
}

.footer-disclaimer {
  max-width: 70ch;
  opacity: 0.85;
}

.footer-icp {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-icp__placeholder {
  margin: 0;
  color: var(--muted);
  opacity: 0.9;
}

.footer-icp__text,
.footer-icp__link {
  margin: 0;
  color: var(--muted);
}

.footer-icp__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent-bright);
}

.footer-icp__link:hover {
  color: var(--link-hover);
}

.site-main {
  min-height: calc(100vh - var(--header-h) - 200px);
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    gap: 0.25rem;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .nav-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  [data-theme="light"] .nav-link.is-active {
    background: rgba(22, 48, 78, 0.1);
  }

  .nav-lang {
    width: 100%;
    justify-content: stretch;
    padding: 0.25rem 0.5rem;
  }

  .nav-lang .lang-select {
    width: 100%;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

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

@media (max-width: 600px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-num {
    margin-bottom: -0.5rem;
  }
}

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

  .btn:active {
    transform: none;
  }

  .ios-strip__item {
    animation: none;
  }

  .ios-strip__item:hover .screenshot-frame--natural {
    transform: none;
  }

  .feature-card.glass:hover,
  .store-card.glass:hover,
  .lite-pro-card.glass:hover,
  .feature-row.glass:hover,
  .help-block.glass:hover {
    transform: none;
  }

  .footer-links a {
    transition: none;
  }
}
