:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #fff;
  --text: #162033;
  --muted: #536276;
  --line: rgba(28, 45, 72, .13);
  --accent: #0b6bcb;
  --accent-2: #46a7ff;
  --accent-soft: #e6f2ff;
  --shadow: 0 24px 70px rgba(20, 42, 72, .16), 0 2px 10px rgba(20, 42, 72, .08);
  --radius: 24px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1118;
    --surface: rgba(27, 35, 48, .78);
    --surface-solid: #18202c;
    --text: #f2f6fb;
    --muted: #b2bfd0;
    --line: rgba(210, 225, 244, .14);
    --accent: #68b7ff;
    --accent-2: #9fd2ff;
    --accent-soft: rgba(45, 137, 220, .16);
    --shadow: 0 28px 80px rgba(0, 0, 0, .42), 0 2px 10px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(900px 620px at 12% -10%, rgba(79, 173, 255, .24), transparent 70%),
    radial-gradient(700px 520px at 98% 18%, rgba(112, 82, 255, .13), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }
main, section, header, footer, nav, .hero, .hero > *, .split-section > *, .intent-panel-grid > *, .feature-grid > *, .compat-grid > *, .language-grid > * { min-width: 0; }
p { margin: 0 0 1rem; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  transform: translateY(-160%); background: var(--surface-solid); padding: .7rem 1rem;
  border-radius: 10px; box-shadow: var(--shadow);
}
.skip-link:focus { transform: none; }

.site-header {
  max-width: 1200px; margin: 0 auto; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.brand img { border-radius: 10px; box-shadow: 0 6px 18px rgba(17, 98, 182, .24); }
nav { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--muted); font-size: .9rem; padding: .55rem .72rem; border-radius: 10px; }
nav a:hover, nav a:focus-visible { color: var(--text); background: var(--surface); outline: none; }

main { max-width: 1200px; margin: 0 auto; padding: 0 28px 90px; }
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; padding: 58px 0 88px; }
.hero-copy { max-width: 610px; }
.eyebrow { color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; margin-bottom: 13px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(4.3rem, 9vw, 8.6rem); font-weight: 730; letter-spacing: -.075em; overflow-wrap: anywhere; hyphens: auto; }
h2 { font-size: clamp(2.2rem, 4vw, 4.1rem); font-weight: 720; margin-bottom: 18px; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 8px; }
.tagline { font-size: clamp(1.45rem, 2.4vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 620; margin: 14px 0 20px; }
.lead, .section-lead { color: var(--muted); font-size: 1.08rem; max-width: 68ch; }
.microcopy { color: var(--muted); font-size: .8rem; margin-top: 15px; }
.hero-actions { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.button, .availability {
  display: inline-flex; align-items: center; min-height: 47px; border-radius: 13px;
  padding: .75rem 1.15rem; font-weight: 650; text-decoration: none; font-size: .94rem;
}
.button.primary { color: white; background: linear-gradient(145deg, var(--accent-2), var(--accent)); box-shadow: 0 12px 28px rgba(11, 107, 203, .24); }
.button.primary:hover { filter: brightness(1.06); }
.availability { color: var(--text); background: var(--surface); border: 1px solid var(--line); }

.app-frame {
  width: 100%; max-width: 100%; min-width: 0;
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(32px) saturate(1.3);
  transform: perspective(1500px) rotateY(-3deg) rotateX(1.5deg); min-height: 560px;
}
.frame-caption { height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 15px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.22); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff605c; } .dot.yellow { background: #ffbd44; } .dot.green { background: #00ca4e; }
.frame-caption span:nth-child(4) { margin-left: 10px; font-weight: 600; }
.fake-toolbar { height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow: hidden; }
.fake-toolbar span { background: var(--accent-soft); color: var(--accent); border-radius: 7px; padding: 7px 10px; font-size: .72rem; font-weight: 650; }
.paper { width: min(76%, 430px); min-height: 390px; margin: 28px auto 20px; padding: 42px 44px; background: #fff; color: #202634; border-radius: 2px; box-shadow: 0 18px 48px rgba(15,29,48,.18); }
.paper p { font-family: "Segoe UI Variable Display", Georgia, serif; font-size: 1.25rem; font-weight: 700; margin: 0 0 20px; }
.paper p:nth-of-type(2) { font-size: .82rem; font-weight: 500; color: #667085; margin: 22px 0 18px; }
.paper span { display: inline-block; height: 6px; width: 100%; border-radius: 6px; background: #dce4ee; margin: 0 0 10px; }
.paper span.short { width: 60%; }
.paper br { content: ""; display: block; margin-bottom: 9px; }
.fake-status { height: 35px; display: flex; align-items: center; justify-content: flex-end; padding: 0 15px; font-size: .7rem; color: var(--muted); border-top: 1px solid var(--line); }

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.feature-grid { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { min-height: 170px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); backdrop-filter: blur(20px); }
.feature-card p { margin: 30px 0 0; font-size: .94rem; }
.feature-index { font-size: .72rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.split-section > div:last-child { padding: 28px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--line); }
.check-list { padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.compat-grid > div { padding: 23px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.compat-grid p { color: var(--muted); font-size: .9rem; margin: 0; }
.faq details { border-top: 1px solid var(--line); padding: 0 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 640; padding: 21px 2px; font-size: 1.02rem; }
.faq summary::marker { color: var(--accent); }
.faq details p { color: var(--muted); max-width: 82ch; padding: 0 24px 20px 18px; }

.locale-hub { max-width: 960px; text-align: center; padding-top: 90px; min-height: 700px; }
.hub-icon { border-radius: 22px; box-shadow: 0 18px 40px rgba(11, 107, 203, .24); margin-bottom: 30px; }
.locale-hub h1 { font-size: clamp(4rem, 9vw, 7rem); }
.locale-hub .tagline, .locale-hub .lead { margin-left: auto; margin-right: auto; }
.locale-hub h2 { font-size: 1.25rem; margin-top: 48px; letter-spacing: -.01em; }
.language-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.language-grid a { display: block; padding: 13px 16px; border-radius: 12px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.language-grid a:hover { border-color: var(--accent); }

.policy { max-width: 900px; padding-top: 70px; }
.policy h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 38px; }
.policy-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); }
.policy-body h1 { display: none; }
.policy-body h2 { font-size: 1.8rem; margin-top: 52px; }
.policy-body h3 { margin-top: 30px; }
.policy-body p, .policy-body li { color: var(--muted); }
.policy-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.site-footer { max-width: 1200px; margin: 0 auto; padding: 44px 28px 58px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 20px; color: var(--muted); }
.site-footer strong { color: var(--text); }
.site-footer p { max-width: 65ch; font-size: .86rem; margin: 7px 0 0; }
.footer-links { display: flex; gap: 16px; align-items: start; }
.footer-links a { font-size: .86rem; }
.disclaimer { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-frame { transform: none; }
}

/* Multilingual intent pages and language navigation */
.language-switcher { position: relative; flex: 0 0 auto; }
.language-switcher summary {
  list-style: none; cursor: pointer; padding: .55rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; color: var(--muted); background: var(--surface); font-size: .86rem;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: " ▾"; }
.language-switcher[open] summary { color: var(--text); border-color: var(--accent); }
.language-switcher:not([open]) > .language-menu { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(300px, 82vw);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 9px;
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.language-menu a { padding: .55rem .65rem; font-size: .84rem; white-space: nowrap; }
.language-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }

.intent-page { max-width: 1120px; padding-top: 24px; }
.breadcrumbs { margin: 0 0 34px; color: var(--muted); font-size: .84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .55rem; color: var(--line); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.intent-hero { max-width: 920px; padding: 44px 0 60px; }
.intent-hero h1 { font-size: clamp(2.9rem, 6.2vw, 6rem); letter-spacing: -.055em; text-wrap: balance; }
.intent-intro { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.7; max-width: 76ch; margin-top: 22px; }
.intent-panel-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; margin-bottom: 74px; }
.intent-panel {
  padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: 0 18px 50px rgba(20, 42, 72, .08); backdrop-filter: blur(20px);
}
.intent-panel h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: 24px; }
.arrow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.arrow-list li { position: relative; padding-left: 28px; color: var(--muted); }
.arrow-list li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 750; }
.requirement-panel dl { display: grid; gap: 15px; margin: 12px 0 22px; }
.requirement-panel dl div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.requirement-panel dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.requirement-panel dd { margin: 4px 0 0; font-weight: 620; }
.requirement-panel p { color: var(--muted); font-size: .9rem; }
.intent-guide { border-top: 1px solid var(--line); }
.step-list { list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 0 0; margin: 0; }
.step-list li { counter-increment: steps; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted); }
.step-list li::before { content: "0" counter(steps); display: block; color: var(--accent); font-weight: 750; margin-bottom: 32px; }
.intent-faq { border-top: 1px solid var(--line); }
.intent-card-grid { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.intent-card-grid li, .intent-card-grid a { height: 100%; }
.intent-card-grid a {
  display: flex; flex-direction: column; gap: 9px; padding: 22px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); text-decoration: none; transition: transform .16s ease, border-color .16s ease;
}
.intent-card-grid a:hover, .intent-card-grid a:focus-visible { transform: translateY(-3px); border-color: var(--accent); outline: none; }
.intent-card-grid strong { font-size: 1rem; line-height: 1.3; }
.intent-card-grid span { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.related-section { border-top: 1px solid var(--line); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin: 72px 0 30px; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 8px; }
.cta-band p { color: var(--muted); }
.button.secondary { color: var(--text); background: var(--surface-solid); border: 1px solid var(--line); }

/* Responsive layout: constrained grid/flex children prevent intrinsic content
   from widening the page or being clipped on small screens. */
@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand language" "nav nav";
    align-items: center;
    gap: 12px 16px;
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .brand { grid-area: brand; min-width: 0; }
  .site-header nav {
    grid-area: nav;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .language-switcher { grid-area: language; justify-self: end; margin-left: 0; min-width: 0; }
  .language-switcher summary { max-width: 100%; white-space: nowrap; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 40px;
    padding-top: 26px;
  }
  .hero-copy { width: 100%; max-width: none; }
  .app-frame { transform: none; width: 100%; max-width: 100%; min-height: 500px; }
  .feature-grid, .compat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intent-panel-grid, .step-list, .intent-card-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header, main, .site-footer { padding-left: 18px; padding-right: 18px; }
  nav { gap: 0; max-width: 100%; }
  nav a { padding: .45rem .5rem; font-size: .8rem; overflow-wrap: anywhere; }
  .language-menu { right: 0; left: auto; width: min(300px, calc(100vw - 36px)); }
  h1 { font-size: clamp(3.6rem, 20vw, 5.4rem); overflow-wrap: anywhere; }
  .intent-hero h1 { font-size: clamp(1.7rem, 9vw, 3.2rem); }
  .hero { gap: 30px; padding-bottom: 55px; }
  .hero-copy, .tagline, .lead, .intent-intro, .section-lead { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .tagline { font-size: clamp(1.3rem, 7vw, 1.8rem); }
  .lead, .section-lead { font-size: 1rem; }
  .hero-actions { width: 100%; }
  .hero-actions .availability, .hero-actions .button { width: 100%; justify-content: center; text-align: center; }
  .app-frame { transform: none; min-height: 440px; }
  .fake-toolbar { height: auto; min-height: 72px; padding: 12px 14px; flex-wrap: wrap; }
  .paper { width: calc(100% - 36px); padding: 28px 24px; }
  .feature-grid, .compat-grid, .language-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { min-height: auto; }
  .section { padding: 62px 0; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .footer-links { flex-wrap: wrap; }
  .intent-panel { padding: 24px 20px; }
  .intent-card-grid a { padding: 18px; }
  .policy-body { padding: 24px 20px; }
}

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "language" "nav";
    align-items: start;
  }
  .language-switcher { justify-self: start; }
  h1 { font-size: clamp(3.2rem, 19vw, 4.6rem); }
  .intent-hero h1 { font-size: clamp(1.55rem, 8.2vw, 2.4rem); hyphens: auto; overflow-wrap: break-word; }
  .language-menu { left: 0; right: auto; width: calc(100vw - 36px); }
}

