/* Renew website. Colors come from the app's App Store artwork: brand blue #1F5FBF, accent orange #E8833A. */

:root {
  --brand: #1f5fbf;
  --brand-deep: #174a99;
  --brand-ink: #1f5fbf;
  --brand-soft: #e9f0fb;
  --accent: #e8833a;
  --bg: #ffffff;
  --bg-alt: #f2f2f7;
  --card: #ffffff;
  --text: #0b0f19;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.08), 0 24px 60px rgba(15, 23, 42, 0.16);
  --hero-bg: #1f5fbf;
  --hero-bg-2: #1a53a8;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #7aa7ff;
    --brand-soft: rgba(76, 141, 255, 0.14);
    --bg: #0b0e14;
    --bg-alt: #11151d;
    --card: #161b25;
    --text: #f2f4f8;
    --muted: #9aa3b2;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    --hero-bg: #184c9c;
    --hero-bg-2: #123c7d;
  }
}

/* Script-specific fonts and spacing */
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(ar) { --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
:lang(hi) { --font: -apple-system, BlinkMacSystemFont, "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 { line-break: strict; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
mark.todo { background: #ffe066; color: #000; padding: 0 4px; border-radius: 4px; font-weight: 600; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.page-home .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.scrolled) :is(.brand, .nav a, .lang summary) { color: #fff; }
.page-home .site-header:not(.scrolled) .btn-get { background: #fff; color: var(--brand); }
.page-home .site-header { position: fixed; inset-inline: 0; }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 22.5%; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; opacity: 0.85; }
.nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-get {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 16px; border-radius: 999px;
}
.btn-get:hover { filter: brightness(1.08); }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}

/* Language picker (works without JS: <details>) */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang-current { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .lang-current { display: none; } }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  width: min(340px, calc(100vw - 32px));
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  max-height: min(70vh, 560px); overflow: auto;
}
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 15px;
}
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

/* Language suggestion banner */
.lang-banner {
  display: none; position: fixed; z-index: 70; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 12px 12px 12px 18px; align-items: center; gap: 12px; flex-wrap: wrap;
}
.lang-banner.show { display: flex; }
.lang-banner p { flex: 1 1 200px; font-size: 15px; }
.lang-banner .btn-get { font-size: 14px; }
.lang-banner button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 999px; display: inline-flex;
}
.lang-banner button:hover { background: var(--bg-alt); color: var(--text); }

/* ---------- Buttons ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; color: #0b0f19; padding: 10px 22px 10px 10px; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 10px 30px rgba(8, 30, 70, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 14px 36px rgba(8, 30, 70, 0.3); }
.store-btn img { width: 44px; height: 44px; border-radius: 22.5%; }
.store-btn span { display: grid; line-height: 1.15; text-align: start; }
.store-btn small { font-size: 12px; font-weight: 500; color: #4b5565; }
.store-btn strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.store-btn.on-light { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.store-btn.on-light small { color: rgba(255,255,255,0.85); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--hero-bg) 70%, #5b8ff0) 0%, transparent 60%),
              linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-2) 100%);
  padding-top: calc(var(--header-h) + clamp(24px, 6vw, 72px));
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* Fade the cards out under the header and behind the text column. */
.hero > .hero-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 150px), linear-gradient(to right, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.22) 46%, #000 66%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 150px), linear-gradient(to right, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.22) 46%, #000 66%);
  mask-composite: intersect;
}
[dir="rtl"] .hero > .hero-bg {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 150px), linear-gradient(to left, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.22) 46%, #000 66%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 150px), linear-gradient(to left, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.22) 46%, #000 66%);
}
.final > .hero-bg {
  -webkit-mask-image: radial-gradient(ellipse 46% 60% at 50% 50%, rgba(0,0,0,0.12) 40%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 60% at 50% 50%, rgba(0,0,0,0.12) 40%, #000 100%);
}
@media (max-width: 860px) {
  .hero > .hero-bg, [dir="rtl"] .hero > .hero-bg {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.3) 160px, rgba(0,0,0,0.3) 55%, #000 75%);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.3) 160px, rgba(0,0,0,0.3) 55%, #000 75%);
  }
}
.m-card {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(150px * var(--s)); height: calc(96px * var(--s)); padding: calc(14px * var(--s));
  border-radius: calc(18px * var(--s));
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: var(--o, 1);
  animation: drift var(--t, 14s) ease-in-out var(--d, 0s) infinite alternate;
}
.m-card b {
  display: grid; place-items: center; width: calc(30px * var(--s)); height: calc(30px * var(--s));
  border-radius: calc(8px * var(--s)); background: rgba(255, 255, 255, 0.82); color: var(--c);
  font-weight: 700; font-size: calc(16px * var(--s));
}
.m-card i { position: absolute; height: calc(6px * var(--s)); border-radius: 9px; background: rgba(255, 255, 255, 0.35); }
.m-card i:nth-of-type(1) { left: calc(54px * var(--s)); top: calc(18px * var(--s)); width: 40%; }
.m-card i:nth-of-type(2) { left: calc(54px * var(--s)); top: calc(30px * var(--s)); width: 24%; opacity: 0.6; }
.m-card i:nth-of-type(3) { left: calc(14px * var(--s)); bottom: calc(18px * var(--s)); width: 62%; }
.m-card i:nth-of-type(3)::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: var(--p, 60%); border-radius: inherit; background: rgba(255, 255, 255, 0.6); }
.m-card u { position: absolute; right: calc(14px * var(--s)); bottom: calc(15px * var(--s)); width: calc(12px * var(--s)); height: calc(12px * var(--s)); border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx, 10px), var(--dy, -14px), 0); } }
@media (prefers-reduced-motion: reduce) { .m-card { animation: none; } }
@media (max-width: 860px) { .m-card.far { display: none; } }

.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: clamp(24px, 5vw, 64px);
}
.hero-copy { padding-bottom: clamp(32px, 6vw, 96px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 131, 58, 0.25); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); margin-top: 20px; color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero-cta .link-arrow { color: #fff; }
.hero-note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-device { position: relative; align-self: end; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(330px, 74vw); padding: 11px; border-radius: 56px; background: #0b0b0f;
  box-shadow: inset 0 0 0 2px #2b2d33, 0 30px 80px rgba(3, 14, 40, 0.45);
  margin-bottom: -150px;
}
.phone::before { /* side button */
  content: ""; position: absolute; inset-inline-end: -3px; top: 190px; width: 3px; height: 90px; border-radius: 0 3px 3px 0; background: #2b2d33;
}
.phone-screen { position: relative; border-radius: 45px; overflow: hidden; background: #f2f2f7; aspect-ratio: 480 / 1040; }
.phone-screen::after { /* Dynamic Island */
  content: ""; position: absolute; top: 2.3%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.3%; border-radius: 999px; background: #000;
}
.phone video, .phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; z-index: 2; inset-inline-end: -58px; bottom: 190px;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.video-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .chips { justify-content: center; }
  .hero-copy { padding-bottom: 8px; }
  .video-toggle { inset-inline-end: 20px; bottom: 176px; background: rgba(15, 23, 42, 0.45); }
  .phone { width: min(290px, 72vw); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand-ink); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 12px; }
:lang(ar) .kicker, :lang(hi) .kicker, :lang(ja) .kicker, :lang(ko) .kicker, :lang(zh-Hans) .kicker { text-transform: none; letter-spacing: 0; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--brand-ink); margin-top: 0.18em; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); padding-block: clamp(24px, 4vw, 48px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-media { order: -1; }
.feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.feature p { margin-top: 16px; font-size: 1.15rem; color: var(--muted); }
.shot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--shot-bg, var(--brand));
  box-shadow: var(--shadow); max-width: 460px; margin-inline: auto; width: 100%;
}
.shot img { width: 100%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .shot { max-width: 400px; }
}

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 5vw, 64px); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card .shot { border-radius: 0; box-shadow: none; max-width: none; aspect-ratio: 4 / 3.6; }
.card .shot img { height: 100%; object-fit: cover; object-position: top; }
.card-body { padding: 22px 24px 26px; }
.card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .card-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* Privacy band */
.privacy-band { background: #0b1a33; color: #fff; }
@media (prefers-color-scheme: dark) { .privacy-band { background: #0e1b31; } }
.privacy-band .section-head p { color: rgba(255, 255, 255, 0.75); }
.privacy-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.privacy-item { grid-column: span 2; }
.privacy-item:nth-child(n + 4) { grid-column: span 3; }
.privacy-item { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 22px; }
.privacy-item .icon { width: 30px; height: 30px; color: #8db4ff; }
.privacy-item h3 { font-size: 1.1rem; font-weight: 700; margin-top: 16px; letter-spacing: -0.01em; }
.privacy-item p { margin-top: 6px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
.privacy-band .more { text-align: center; margin-top: 36px; }
.privacy-band .more a { color: #a9c6ff; }
@media (max-width: 960px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .privacy-item, .privacy-item:nth-child(n + 4) { grid-column: auto; } .privacy-item:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Devices */
.devices { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.devices h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.devices > div > p { margin-top: 16px; font-size: 1.15rem; color: var(--muted); }
.devices .shot { max-width: none; }
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } }

/* Gallery */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin-top: 24px; }
.tabs button {
  border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600;
  padding: 8px 20px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.gallery-track {
  display: grid; grid-auto-flow: column; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.gallery-track[hidden] { display: none; }
.gallery-track.iphone { grid-auto-columns: clamp(200px, 23vw, 270px); }
.gallery-track.ipad { grid-auto-columns: clamp(260px, 32vw, 380px); }
.gallery-track a { scroll-snap-align: start; display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.gallery-track a:hover img { transform: scale(1.015); }
.gallery-track img { width: 100%; transition: transform 0.3s ease; }
.gallery-wrap { max-width: 1600px; margin-inline: auto; }

.lightbox { border: 0; padding: 0; background: rgba(5, 8, 15, 0.9); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: transparent; backdrop-filter: blur(6px); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox button {
  position: absolute; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox .lb-close { top: 12px; inset-inline-end: 12px; }
.lightbox .lb-prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lightbox .lb-prev .icon, [dir="rtl"] .lightbox .lb-next .icon { transform: scaleX(-1); }
@media (max-width: 600px) { .lightbox-inner { padding: 56px 12px 72px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin-inline: auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.plan h3 { font-size: 1.5rem; font-weight: 800; }
.plan .price { font-size: 1.05rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.plan.pro { background: linear-gradient(160deg, #2a6fd6 0%, var(--brand) 45%, #184c9c 100%); color: #fff; border-color: transparent; }
.plan.pro .price, .plan.pro .plan-note { color: rgba(255, 255, 255, 0.85); }
.plan.pro .check-list .icon { color: #fff; }
.plan .badge { position: absolute; top: clamp(24px, 4vw, 40px); inset-inline-end: clamp(24px, 4vw, 40px); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-note { margin-top: 22px; font-weight: 600; }
.price-note { text-align: center; color: var(--muted); margin-top: 24px; font-size: 15px; }
.upgrade { display: flex; gap: 16px; align-items: flex-start; max-width: 920px; margin: 32px auto 0; padding: 20px 24px; border-radius: var(--radius); background: var(--brand-soft); }
.upgrade .icon { width: 28px; height: 28px; color: var(--brand-ink); margin-top: 2px; }
.upgrade h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.upgrade p { margin-top: 4px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 1.15rem; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); font-size: 1.05rem; }
.faq .more { margin-top: 28px; text-align: center; }

/* Final CTA */
.final { position: relative; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-2) 100%); }
.final .app-icon { width: 104px; height: 104px; border-radius: 22.5%; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.final p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.final .store-btn { margin-top: 30px; }
.final .wrap { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 12px; }
:lang(ar) .footer-grid h2, :lang(hi) .footer-grid h2, :lang(ja) .footer-grid h2, :lang(ko) .footer-grid h2, :lang(zh-Hans) .footer-grid h2 { text-transform: none; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { margin-top: 12px; max-width: 30em; }
.footer-fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Document pages ---------- */
.doc-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 5vw, 48px); }
.doc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.doc-hero .doc-sub { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.doc-hero .doc-dates { margin-top: 8px; color: var(--muted); font-size: 15px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 18px; border-radius: 16px;
  background: var(--brand-soft); color: var(--text); font-size: 15px; max-width: 820px;
}
.notice .icon { color: var(--brand-ink); margin-top: 0.15em; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 112px); }
.doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: 14px; }
.toc details > summary { list-style: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; cursor: default; }
.toc details > summary::-webkit-details-marker { display: none; }
@media (min-width: 961px) { .toc details > summary { pointer-events: none; } .toc details > summary .icon { display: none; } }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc ol a { display: block; padding: 6px 14px; color: var(--muted); text-decoration: none; border-inline-start: 2px solid transparent; margin-inline-start: -1px; line-height: 1.35; }
.toc ol a:hover { color: var(--text); }
.toc ol a.active { color: var(--brand-ink); border-inline-start-color: var(--brand-ink); font-weight: 600; }
.contact-card { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.contact-card p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.contact-card .btn-get { margin-top: 14px; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc details { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--card); }
  .toc details > summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .toc details[open] > summary { margin-bottom: 10px; }
}

.prose { max-width: 760px; font-size: 1.04rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; margin-top: 2.2em; padding-top: 0.2em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin-inline: 0; padding: 12px 18px; border-inline-start: 3px solid var(--brand-ink); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
.prose code { font-size: 0.92em; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }
.prose a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--bg-alt); font-weight: 650; }
.prose td:first-child { font-weight: 600; min-width: 160px; }
.back-top { margin-top: 48px; font-size: 15px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 96px; height: 96px; border-radius: 22.5%; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.notfound p { color: var(--muted); margin-top: 12px; }
.notfound .langs { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 14px; }

@media print {
  .site-header, .site-footer, .toc, .lang-banner, .back-top, .skip { display: none !important; }
  .doc-layout { display: block; }
  body { font-size: 12pt; }
}
