/* Sai (사이) — website styles. Palette mirrors lib/core/design/app_colors.dart */
:root {
  --bg: #F7F8F5;
  --bg-tint: #EDF3EE;
  --surface: #FFFFFF;
  --surface-2: #F0F3EE;
  --surface-3: #E3EAE0;
  --text: #202B29;
  --text-strong: #12201C;
  --muted: #596762;
  --line: #DCE5D9;
  --primary: #246B60;
  --primary-strong: #1A5148;
  --primary-soft: #E0EEE7;
  --on-primary: #FFFFFF;
  --warm: #F2E6D5;
  --on-warm: #725638;
  --mint: #9BE3D3;
  --danger: #B3261E;
  --danger-soft: #FCE8E6;
  --shadow-sm: 0 1px 2px rgba(9, 20, 38, .05);
  --shadow: 0 10px 30px -12px rgba(9, 20, 38, .14);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Hiragino Sans", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans JP", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1513;
    --bg-tint: #13201C;
    --surface: #161F1C;
    --surface-2: #1B2723;
    --surface-3: #22302B;
    --text: #E3ECE8;
    --text-strong: #F4F8F6;
    --muted: #A3B4AD;
    --line: #2A3833;
    --primary: #84D0BB;
    --primary-strong: #A6E1D0;
    --primary-soft: #1D3831;
    --on-primary: #0B1F1A;
    --warm: #2E271D;
    --on-warm: #E8CFA6;
    --danger: #F2B8B5;
    --danger-soft: #3A1E1C;
    --shadow-sm: none;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1513; --bg-tint: #13201C; --surface: #161F1C; --surface-2: #1B2723; --surface-3: #22302B;
  --text: #E3ECE8; --text-strong: #F4F8F6; --muted: #A3B4AD; --line: #2A3833;
  --primary: #84D0BB; --primary-strong: #A6E1D0; --primary-soft: #1D3831; --on-primary: #0B1F1A;
  --warm: #2E271D; --on-warm: #E8CFA6; --danger: #F2B8B5; --danger-soft: #3A1E1C;
  --shadow-sm: none; --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) body, body:lang(ja), :lang(zh-Hant) body, body:lang(zh-Hant) { word-break: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 22px;
  line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 500;
  width: 1em; overflow: hidden; flex-shrink: 0;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 500; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); font-weight: 800; font-size: 18px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--line); }
.brand small { font-weight: 600; color: var(--muted); font-size: 13px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-strong); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 7px 10px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--text);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary .ms { font-size: 18px; color: var(--muted); }
.lang[open] > summary { border-color: var(--primary); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 6px; min-width: 180px; z-index: 60;
}
.lang-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current="true"] { color: var(--primary); background: var(--primary-soft); }
.lang-menu a span { color: var(--muted); font-size: 12px; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 15px;
  padding: 11px 20px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text-strong); border-color: var(--primary); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px 14px; margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .brand small { display: none; }
}

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 9px 18px 9px 14px; min-width: 176px; border: 1px solid #333; transition: transform .15s, box-shadow .15s;
}
.store:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .85; font-weight: 500; }
.store b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
:root[data-theme="dark"] .store, .store { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store { background: #000; border-color: #3a4a44; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); background: var(--primary-soft); font-weight: 700; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; }
.eyebrow .ms { font-size: 17px; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Hero */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mint) 45%, transparent) 0%, transparent 65%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ms { color: var(--primary); font-size: 19px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .shot { width: min(340px, 82%); max-height: 640px; object-fit: cover; object-position: top; border-radius: 34px; box-shadow: 0 30px 60px -24px rgba(18, 52, 44, .35); border: 1px solid var(--line); background: var(--surface); }
.float-char { position: absolute; width: 92px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .12)); animation: bob 6s ease-in-out infinite; }
.float-char.c1 { left: 2%; top: 18%; }
.float-char.c2 { right: 0; top: 46%; width: 104px; animation-delay: -2s; }
.float-char.c3 { left: 8%; bottom: 6%; width: 78px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-char { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero { padding: 36px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .shot { width: min(300px, 76%); }
  .float-char { width: 70px; } .float-char.c2 { width: 78px; } .float-char.c3 { width: 60px; }
}

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.compare .card { display: flex; flex-direction: column; gap: 12px; }
.compare .card.is-sai { border: 2px solid var(--primary); background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); position: relative; }
.compare .tag { font-weight: 700; font-size: 15px; color: var(--muted); }
.compare .is-sai .tag { color: var(--primary); }
.compare h3 { font-size: 20px; }
.compare p { color: var(--muted); font-size: 15.5px; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.icon-badge .ms { font-size: 26px; }
.is-sai .icon-badge { background: var(--primary); color: var(--on-primary); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-weight: 800; color: var(--primary); font-size: 14px; letter-spacing: .08em; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature .icon-badge { background: var(--primary-soft); color: var(--primary); }
.feature h3 { font-size: 18.5px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature .meta { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--on-warm); }
.feature .meta span { background: var(--warm); padding: 3px 9px; border-radius: 999px; display: inline-block; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 22px; margin: 0 -20px; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 236px; scroll-snap-align: center; }
.gallery img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 1290 / 2796; object-fit: cover; }
@media (min-width: 1100px) { .gallery { justify-content: center; gap: 14px; } .gallery figure { width: 146px; } .gallery-hint { display: none; } }
.gallery-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* Characters */
.chars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.char { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.char img { width: 72px; height: 72px; }
.char b { font-size: 14.5px; color: var(--text-strong); }
.char small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .chars { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .chars { grid-template-columns: repeat(2, 1fr); } }

/* More list */
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.more .card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.more .icon-badge { background: var(--warm); color: var(--on-warm); }
.more h3 { font-size: 17px; margin-bottom: 4px; }
.more p { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .more { grid-template-columns: 1fr; } }

/* Credits */
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.credits h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.credits h3 .ms { color: var(--primary); }
.credit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.credit-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.credit-list li:last-child { border-bottom: 0; }
.credit-list b { color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.credits-note { max-width: 920px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }
@media (max-width: 720px) { .credits { grid-template-columns: 1fr; } }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust .card { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.trust .ms { color: var(--primary); font-size: 28px; }
.trust h3 { font-size: 16.5px; }
.trust p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }
.notice { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; background: var(--warm); color: var(--on-warm); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14.5px; }
.notice .ms { margin-top: 1px; }
.notice strong { color: inherit; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; color: var(--text-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ms { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }

/* CTA */
.cta { text-align: center; }
.cta-box { background: linear-gradient(150deg, var(--primary) 0%, var(--primary-strong) 100%); color: var(--on-primary); border-radius: 32px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; overflow: hidden; }
.cta-box h2 { color: inherit; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.cta-box p { opacity: .9; max-width: 560px; }
.cta-box img.heart { width: 96px; }
.cta-box .stores { justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.footer-brand .brand { font-size: 17px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(160px, auto)); gap: 8px 32px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 520px) { .footer-links { grid-template-columns: 1fr 1fr; gap: 8px 16px; } }

/* ---------- Document (policy) pages ---------- */
.doc-hero { padding: 48px 0 28px; }
.doc-hero .wrap { max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.doc-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.doc-hero p { color: var(--muted); font-size: 16.5px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.doc-layout { max-width: 1040px; margin: 0 auto; padding: 0 20px 80px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.toc > b { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; line-height: 1.4; }
.toc a:hover { background: var(--surface-2); color: var(--text-strong); }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 40px; min-width: 0; }
.doc section { padding: 0; margin: 0 0 34px; }
.doc section:last-child { margin-bottom: 0; }
.doc h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; padding-top: 4px; display: flex; gap: 10px; align-items: baseline; }
.doc h2 .n { color: var(--primary); font-variant-numeric: tabular-nums; }
.doc h3 { font-size: 16.5px; margin: 18px 0 8px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--primary); }
.doc .table-wrap { overflow-x: auto; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
.doc .callout { background: var(--primary-soft); border-radius: 14px; padding: 14px 16px; margin: 6px 0 14px; font-size: 15px; color: var(--text); }
.doc .callout.warm { background: var(--warm); color: var(--on-warm); }
.doc .callout.danger { background: var(--danger-soft); color: var(--text); }
.doc .path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-weight: 700; }
.doc .path span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; font-size: 14px; }
.doc .muted { color: var(--muted); font-size: 14.5px; }
.doc .steps-list { counter-reset: s; list-style: none; padding: 0; }
.doc .steps-list li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; min-height: 28px; }
.doc .steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.doc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.doc .mini { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg); }
.doc .mini h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.doc .mini h3 .ms { color: var(--primary); }
.doc .mini p, .doc .mini ul { font-size: 14.5px; margin: 0; color: var(--muted); }
.doc-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
  .doc { padding: 26px 20px; border-radius: 20px; }
  .doc .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .toc ol { gap: 0; } }

/* ---------- Contact form ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 14.5px; color: var(--text-strong); }
.field .req { color: var(--danger); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; background: var(--surface-2); border-radius: 12px; padding: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { display: none; border-radius: 14px; padding: 16px; font-size: 15px; }
.form-status.ok { display: block; background: var(--primary-soft); }
.form-status.err { display: block; background: var(--danger-soft); }
.btn[disabled] { opacity: .6; cursor: progress; }
