:root {
  color-scheme: light dark;
  --accent: #df3139;
  --accent-soft: rgba(223, 49, 57, 0.11);
  --success: #35ad74;
  --success-soft: rgba(53, 173, 116, 0.12);
  --bg: #f6f5f2;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: #ffffff;
  --surface-muted: #eeece8;
  --text: #17181b;
  --text-secondary: #5e6068;
  --text-tertiary: #85878e;
  --line: rgba(23, 24, 27, 0.10);
  --code-bg: #1a1b20;
  --code-text: #f3f3f4;
  --shadow: 0 18px 50px rgba(32, 25, 27, 0.08);
  --radius-large: 24px;
  --radius-medium: 16px;
  --page: min(1180px, calc(100vw - 40px));
  --article: 800px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --bg-elevated: rgba(18, 19, 23, 0.82);
    --surface: #15161a;
    --surface-muted: #1d1f24;
    --text: #f4f4f5;
    --text-secondary: #b8bac1;
    --text-tertiary: #858791;
    --line: rgba(255, 255, 255, 0.09);
    --code-bg: #090a0c;
    --code-text: #f3f3f4;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(223, 49, 57, 0.12), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(53, 173, 116, 0.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 58%, transparent);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
}

.header-inner {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(223, 49, 57, 0.18);
}

.header-actions,
.document-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-store-link,
.app-store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-store-link {
  min-height: 44px;
  padding: 8px 14px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
}

.app-store-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateY(-1px);
}

.nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--surface-muted);
}

.language-picker {
  position: relative;
  flex: 0 0 auto;
}

.language-picker::after {
  content: "⌄";
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--text-tertiary);
  pointer-events: none;
  transform: translateY(-56%);
}

.language-picker select {
  min-height: 44px;
  max-width: 190px;
  padding: 8px 34px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.language-picker select:hover { color: var(--text); }

.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;
}

[dir="rtl"] .language-picker::after { right: auto; left: 13px; }
[dir="rtl"] .language-picker select { padding: 8px 13px 8px 34px; }
[dir="rtl"] .article,
[dir="rtl"] th,
[dir="rtl"] td { text-align: right; }
[dir="rtl"] pre,
[dir="rtl"] code { direction: ltr; text-align: left; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.032em;
}

.app-store-cta {
  min-height: 54px;
  padding: 13px 21px;
  border-radius: 15px;
  background: #c52c36;
  color: #fff;
  box-shadow: 0 14px 34px rgba(223, 49, 57, 0.24);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.app-store-cta:hover {
  color: #fff;
  background: #ac2630;
  box-shadow: 0 18px 42px rgba(223, 49, 57, 0.30);
  transform: translateY(-2px);
}

.product-page {
  color-scheme: dark;
  --accent: #ef5058;
  --accent-soft: rgba(239, 80, 88, .10);
  --bg: #08090b;
  --bg-elevated: rgba(8, 9, 11, .92);
  --surface: #121316;
  --surface-muted: #1c1d21;
  --text: #f7f5f3;
  --text-secondary: #c0bdbf;
  --text-tertiary: #999599;
  --line: rgba(255,255,255,.12);
  background: radial-gradient(ellipse at 70% 4%, rgba(101,23,32,.18), transparent 34rem), var(--bg);
}
.product-page main > section { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.product-page h1, .product-page h2 { text-wrap: balance; letter-spacing: -.045em; }
.product-page p { text-wrap: pretty; }
.product-page h1, .product-page h2, .product-page p, .product-page li { overflow-wrap: anywhere; }
.product-page h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.product-nav { display: flex; align-items: center; gap: 2px; }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 88px);
}
.product-hero-copy { min-width: 0; }
.product-hero .eyebrow { letter-spacing: .035em; font-size: .875rem; text-transform: none; }
.product-hero h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 4.7vw, 4.25rem); line-height: 1.12; }
.product-hero-copy > p:not(.eyebrow) { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.65; }
.product-hero .app-store-cta { margin-top: 12px; }
.product-hero-copy > p.hero-note { margin: 16px 0 0; font-size: .875rem; }
.hero-screenshot, .screenshot-frame { min-width: 0; margin: 0; }
.hero-screenshot img, .screenshot-frame img { display: block; width: 100%; height: auto; }
.product-feature, .nfo-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.product-feature.feature-reverse { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.feature-reverse .feature-copy { grid-column: 2; grid-row: 1; }
.feature-reverse .screenshot-frame { grid-column: 1; grid-row: 1; }
.feature-copy h2 { margin-bottom: 20px; }
.feature-copy > p:not(.eyebrow) { margin: 0; color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.75; }
.source-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.source-list li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-secondary); font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; min-height: 44px; color: var(--text); text-decoration-color: var(--accent); }
[dir="rtl"] .text-link span { transform: scaleX(-1); }
.nfo-facts { border-inline-start: 1px solid var(--line); padding-inline-start: 36px; }
.nfo-facts article + article { margin-top: 28px; }
.nfo-facts h3 { margin: 0 0 8px; font-size: 1.125rem; }
.nfo-facts p { margin: 0; color: var(--text-secondary); font-size: 1rem; }
.platform-section { padding-block: 32px 64px; }
.platform-roles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; margin: 0; padding-top: 32px; border-top: 1px solid var(--line); }
.platform-roles dt { font-size: 1.125rem; font-weight: 700; }
.platform-roles dd { margin: 8px 0 0; color: var(--text-secondary); font-size: .9375rem; }
.plans-section { padding-block: 56px; border-top: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 32px; }
.plans-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.plans-grid article { padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.plans-grid h3 { margin-bottom: 20px; font-size: 1.5rem; }
.plans-grid ul { padding-inline-start: 20px; margin: 0; }
.plans-grid li { padding-inline-start: 4px; margin: 12px 0; color: var(--text-secondary); }
.plans-grid li::marker { color: var(--accent); }
.plan-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--text-secondary); }
.faq-section { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 48px; padding-block: 56px; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 22px 28px 22px 0; cursor: pointer; font-size: 1.0625rem; font-weight: 650; }
[dir="rtl"] .faq-list summary { padding: 22px 0 22px 28px; }
.faq-list p { color: var(--text-secondary); margin: 0 0 22px; }
.faq-list details > a { display: inline-block; margin-bottom: 22px; min-height: 44px; }
.download-section { padding-block: 72px; text-align: center; border-top: 1px solid var(--line); }
.download-section h2 { max-width: 760px; margin: 0 auto 16px; }
.download-section > p { color: var(--text-secondary); margin: 0 auto 28px; max-width: 640px; }
.download-section .contact-line { margin: 20px 0 0; font-size: .9375rem; }
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.document-hero {
  width: min(var(--article), calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 96px) 0 44px;
}

.document-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 60px);
}

.document-summary {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.55;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.document-layout {
  width: var(--page);
  margin: 0 auto;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--article));
  justify-content: center;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--bg-elevated);
}

.toc strong {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover { color: var(--accent); }

.article {
  min-width: 0;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.article h2 {
  margin: 64px 0 18px;
  padding-top: 2px;
  font-size: 29px;
}

.article h2:first-child { margin-top: 0; }

.article h3 {
  margin: 36px 0 12px;
  font-size: 21px;
}

.article p,
.article ul,
.article ol { margin: 0 0 20px; }

.article li + li { margin-top: 7px; }

.article strong { font-weight: 760; }

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--success) 32%, var(--line));
  border-radius: var(--radius-medium);
  background: var(--success-soft);
}

.callout.warning {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--accent-soft);
}

.callout p:last-child { margin-bottom: 0; }

.guide-details {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface-muted);
}

.guide-details summary {
  padding: 16px 18px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.guide-details[open] summary { border-bottom: 1px solid var(--line); }

.guide-details > :not(summary) {
  margin-right: 18px;
  margin-left: 18px;
}

.guide-details > :last-child { margin-bottom: 18px; }
.guide-details pre { margin-top: 18px; }

.code-wrap {
  position: relative;
  margin: 24px 0;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-medium);
  background: var(--code-bg);
  color: var(--code-text);
  font: 14px/1.62 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 56px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6d7dc;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.copy-button:hover { background: rgba(255, 255, 255, 0.14); }

.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td { border-bottom: 0; }
th { background: var(--surface-muted); }

code:not(pre code) {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-muted);
  font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.footer-inner {
  width: var(--page);
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (max-width: 860px) {
  .document-nav, .product-nav { display: none; }
  .product-hero, .product-feature, .product-feature.feature-reverse, .nfo-section, .faq-section { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .product-hero { padding-block: 36px 48px; }
  .product-hero-copy { text-align: center; max-width: 600px; margin-inline: auto; }
  .product-hero h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
  .hero-screenshot, .screenshot-frame { width: min(100%,640px); margin-inline: auto; }
  .feature-reverse .feature-copy, .feature-reverse .screenshot-frame { grid-column: auto; grid-row: auto; }
  .nfo-facts { padding-inline-start: 0; border-inline-start: 0; }
  .platform-roles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-layout { display: block; width: min(var(--article), calc(100vw - 28px)); }
  .toc { position: static; margin-bottom: 18px; }
}
@media (max-width: 560px) {
  :root { --page: calc(100vw - 32px); }
  body { font-size: 16px; }
  .header-inner { min-height: 64px; gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { min-width: 44px; min-height: 44px; }
  .brand span { display: none; }
  .brand img { width: 36px; height: 36px; }
  .app-store-link { min-height: 44px; padding: 8px 11px; font-size: .875rem; }
  .language-picker select { min-height: 44px; max-width: 132px; padding-block: 8px; font-size: .875rem; }
  .product-page main > section { width: calc(100% - 32px); }
  .product-hero .eyebrow { margin-bottom: 16px; font-size: .8125rem; }
  .product-hero h1 { margin-bottom: 16px; font-size: clamp(2rem,9vw,2.5rem); }
  .product-hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .product-hero-copy .hero-note { margin-top: 12px; }
  .app-store-cta { min-height: 52px; max-width: 100%; white-space: normal; text-align: center; }
  .product-feature, .nfo-section { padding-block: 48px; }
  .platform-section { padding-block: 16px 40px; }
  .plans-section, .faq-section { padding-block: 40px; }
  .plans-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .plans-grid article { padding: 24px; }
  .download-section { padding-block: 48px; }
  .document-hero { width: calc(100vw - 32px); padding-top: 40px; }
  .document-summary { font-size: 18px; }
  .article { padding: 26px 20px; border-radius: 20px; }
  .article h2 { margin-top: 50px; font-size: 26px; }
  .footer-inner { padding: 24px 0; display: block; }
  .footer-links { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.no-script-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.no-script-languages a { min-height: 44px; display: inline-flex; align-items: center; }

@media print {
  .site-header,
  .toc,
  .copy-button,
  .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .document-hero,
  .document-layout { width: 100%; padding: 0; }
  .article { padding: 0; border: 0; box-shadow: none; background: #fff; }
  a { color: #000; }
}
