@charset "UTF-8";

:root {
  --paper: #f7f5ec;
  --white: #fffef8;
  --ink: #214c3e;
  --text: #36483d;
  --muted: #616d60;
  --line: #d8ddcd;
  --serif: Georgia, 'Times New Roman', 'Songti SC', 'Noto Serif CJK SC', serif;
  --sans: 'Avenir Next', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 500; }
h1 { font-family: var(--serif); }
.wrap { width: min(980px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--white); z-index: 9; }
.skip:focus { top: 10px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; line-height: 1.3; color: var(--ink); font-size: 18px; font-weight: 600; flex-shrink: 0; }
.brand img { border: 1px solid var(--line); border-radius: 11px; }
.brand small { display: block; font-weight: 400; font-size: 10px; letter-spacing: .06em; margin-top: 5px; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.site-header nav a:hover, .text-link:hover, .footer-links a:hover, .related a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.site-header nav a[aria-current=page]:after { position: absolute; content: ''; bottom: 4px; left: 0; right: 0; height: 1px; background: var(--ink); }
.site-header .language { border-left: 1px solid var(--line); padding-left: 24px; gap: 5px; }
.language-picker { position: relative; min-width: 0; }
.language-picker summary { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:after { content: '⌄'; font-size: 13px; color: var(--muted); }
.language-picker summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.language-picker .language-menu { position: absolute; z-index: 8; inset-inline-end: 0; top: calc(100% + 8px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: min(310px,calc(100vw - 40px)); gap: 0 14px; padding: 12px 16px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 25px #214c3e12; }
.language-picker:not([open]) .language-menu { display: none; }
.language-picker .language-menu a { font-size: 12px; padding: 6px 0; line-height: 1.5; min-height: 44px; }
.language-picker .language-menu a[aria-current=page] { font-weight: 600; }
.language-picker .language-menu a[aria-current=page]:after { display: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }

.overview { padding-block: 54px 58px; }
.app-intro { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 100px; max-width: 820px; margin-inline: auto; }
.app-summary { min-width: 0; }
.app-summary h1 { font-size: 40px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 20px; }
.overview-description { max-width: 440px; font-size: 16px; line-height: 1.95; color: var(--muted); }
.product-features { margin-top: 24px; }
.product-features h2 { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.product-features ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.product-features li + li { margin-top: 6px; }
.product-features strong { font-weight: 500; color: var(--text); }
.overview-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }
.app-preview { width: 230px; max-width: 100%; justify-self: center; }
.app-preview img { width: 100%; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.app-preview figcaption { margin-top: 12px; text-align: center; font-size: 11px; line-height: 1.6; color: var(--muted); }

.site-footer { display: flex; justify-content: space-between; gap: 36px; border-top: 1px solid var(--line); padding: 26px 0 32px; }
.footer-name { font-size: 18px; color: var(--ink); font-family: var(--serif); }
.site-footer small { font-size: 11px; display: block; margin-top: 12px; color: var(--muted); }
.footer-links { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0 24px; font-size: 12px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.document { padding: 44px 0 60px; }
.document-heading { max-width: 720px; margin-bottom: 36px; }
.document-heading h1 { font-size: 34px; line-height: 1.4; letter-spacing: -.02em; margin: 0 0 14px; }
.document-intro { font-size: 15px; line-height: 1.95; color: var(--muted); }
.updated { font-size: 12px; color: var(--muted); margin-top: 16px; }
.document-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 54px; align-items: start; }
.toc { position: sticky; top: 24px; }
.toc > p { font-size: 11px; color: var(--muted); padding: 15px 0 8px; border-top: 1px solid var(--line); }
.toc nav { display: grid; }
.toc nav a { font-size: 12px; line-height: 1.8; min-height: 44px; display: flex; align-items: center; padding: 7px 0; color: var(--muted); }
.toc nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.document-body { max-width: 760px; min-width: 0; }
.document-body section { border-top: 1px solid var(--line); padding: 23px 0 27px; scroll-margin-top: 24px; }
.document-body h2 { font-size: 19px; line-height: 1.6; margin-bottom: 12px; }
.document-body p, .document-body li { font-size: 14px; line-height: 2; color: var(--muted); overflow-wrap: anywhere; }
.document-body p + p { margin-top: 12px; }
.document-body ul { padding-left: 21px; margin: 12px 0 0; }
.document-body li + li { margin-top: 8px; }
.related { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-size: 12px; margin-top: 16px; }
.related span { color: var(--muted); }
.related a { min-height: 44px; }
.not-found { padding-block: 80px; }
.not-found h1 { font-size: 34px; }
.not-found p { margin: 18px 0 25px; }

@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-header > nav { width: 100%; justify-content: space-between; }
  .wrap { width: calc(100% - 56px); }
  .site-header nav { gap: 18px; }
  .site-header .language { padding-left: 18px; }
  .app-intro { gap: 48px; grid-template-columns: minmax(0, 1fr) 210px; }
  .app-preview { width: 210px; }
  .app-summary h1 { font-size: 36px; }
  .document-layout { gap: 32px; grid-template-columns: 160px minmax(0, 1fr); }
}

[dir=rtl] .product-features ul { padding-left: 0; padding-right: 18px; }
[dir=rtl] .document-body ul { padding-left: 0; padding-right: 21px; }
[dir=rtl] .icon-chevron { transform: scaleX(-1); }
[dir=rtl] .toc, [dir=rtl] .marketing-hero-copy, [dir=rtl] .document-body { text-align: right; }

/* H5 layout preserves readable text, touch targets, and device safe areas. */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; padding: calc(16px + env(safe-area-inset-top, 0px)) 0 8px; gap: 12px; }
  .brand { font-size: 18px; min-width: 0; min-height: 44px; }
  .brand img { width: 40px; height: 40px; flex-shrink: 0; }
  .brand small { font-size: 9px; }
  .site-header nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; font-size: 13px; }
  .site-header nav a { min-width: 0; min-height: 44px; gap: 8px; padding: 8px 0; line-height: 1.5; overflow-wrap: anywhere; }
  .site-header nav a[aria-current=page]:after { right: auto; width: 28px; bottom: 4px; }
  .site-header .language { border-left: 0; padding-left: 0; }
  .overview { padding-block: 32px 38px; }
  .app-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .app-summary h1 { font-size: 32px; margin: 0 0 15px; }
  .overview-description { max-width: 520px; font-size: 15px; line-height: 1.95; }
  .overview-links { gap: 6px 25px; margin-top: 16px; }
  .app-preview { width: 220px; }
  .app-preview img { border-radius: 18px; }
  .app-preview figcaption { font-size: 11px; }
  .site-footer { padding: 22px 0 calc(26px + env(safe-area-inset-bottom, 0px)); flex-direction: column; gap: 16px; }
  .footer-links { gap: 0 24px; font-size: 13px; }
  .site-footer small { margin-top: 10px; }
  .document { padding: 30px 0 40px; }
  .document-heading { margin-bottom: 26px; min-width: 0; }
  .document-heading h1 { font-size: 30px; margin: 0 0 13px; line-height: 1.4; }
  .document-intro { font-size: 15px; }
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .toc nav a { font-size: 13px; min-height: 44px; padding: 8px 0; line-height: 1.6; overflow-wrap: anywhere; }
  .document-body h2 { font-size: 19px; }
  .document-body section { padding: 23px 0; }
  .document-body li + li { margin-top: 10px; }
  .related { gap: 6px 20px; font-size: 13px; }
  .related span { flex-basis: 100%; }
  .not-found { padding-block: 55px; }
  .not-found h1 { font-size: 30px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .site-header nav { column-gap: 16px; }
  .toc nav { grid-template-columns: minmax(0, 1fr); }
  .footer-links { column-gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header nav, .toc, .overview-links, .footer-links { display: none; }
  .wrap { width: 100%; }
  .document-layout { display: block; }
  .site-footer { margin-top: 26px; }
  a { text-decoration: underline; }
}
