@import url('fonts.css');

:root {
  --bg:        #F7F9F8;
  --bg-2:      #EEF3F1;
  --surface:   #FFFFFF;
  --surface-2: #F2F6F5;
  --text:      #0D2422;
  --muted:     #4F6461;
  --border:    #DDE6E4;
  --accent:    #0C6E63;
  --accent-2:  #095A51;
  --accent-ink:#FFFFFF;
  --accent-soft:#E4F0ED;
  --shadow:    0 1px 2px rgba(13, 36, 34, .04), 0 12px 32px -16px rgba(13, 36, 34, .16);

  --font-display: 'Switzer', 'Switzer Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Switzer', 'Switzer Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1200px;
  --read: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 64px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  --step--1: clamp(.86rem, .83rem + .12vw, .92rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.075rem);
  --step-1:  clamp(1.14rem, 1.07rem + .32vw, 1.32rem);
  --step-2:  clamp(1.32rem, 1.18rem + .66vw, 1.74rem);
  --step-3:  clamp(1.75rem, 1.38rem + 1.7vw, 2.8rem);
  --step-4:  clamp(2.2rem, 1.5rem + 3.3vw, 4.1rem);
  --sec-pad: clamp(64px, 9vw, 120px);
}
@media (min-width: 1024px) { :root { --head-h: 68px; } }

@font-face { font-family: 'Switzer Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 98%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; font-synthesis: none; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; border-radius: 10px; }
.skip-link:focus { left: 12px; top: 12px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 100; }
.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; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--read) + 2 * var(--gutter)); }
section { padding-block: var(--sec-pad); }
.section--alt { background: var(--surface); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.028em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.012em; line-height: 1.28; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--accent); }

html:is([lang="ru"], [lang="uk"], [lang="bg"], [lang="sr"]) body { font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[lang="el"] body { font-family: 'Switzer', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Greek", "Noto Sans", Roboto, Arial, sans-serif; }
html:is([lang="ru"], [lang="uk"], [lang="bg"], [lang="sr"], [lang="el"]) :is(h1, h2, h3) { font-family: inherit; letter-spacing: -.012em; }
html:is([dir="rtl"], [lang="hi"], [lang="ja"], [lang="ko"], [lang^="zh"]) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.34; }
html:is([dir="rtl"], [lang="hi"], [lang="ja"], [lang="ko"], [lang^="zh"]) :is(.kicker, .badge, .entry__label, .foot-h, .nf__more) { letter-spacing: 0; text-transform: none; }

html:is([dir="rtl"], [lang="hi"], [lang="ja"], [lang="ko"], [lang^="zh"]) :is(.kicker, .badge, .entry__label, .foot-h, .nf__more, .nf__code, .card__num) { font-family: inherit; }
html[lang="ko"] :is(h1, h2, h3, p, li, blockquote, summary, dd, dt) { word-break: keep-all; }
html[lang="ja"] :is(h1, h2, h3) { word-break: auto-phrase; }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.lead { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.why .wrap, .features .wrap > .kicker, .features .wrap > h2, .faq > .wrap > h2, .emotional .wrap, .cta .wrap { text-align: center; }
.features .wrap { display: flex; flex-direction: column; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .2s ease; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -12px rgba(12, 110, 99, .7); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
@media (min-width: 560px) { .btn--block { width: auto; } }

.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--border); }
.site-head__in { display: flex; align-items: center; min-height: var(--head-h); min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; flex: 0 0 auto; color: var(--text); }
.brand__mark { width: 28px; height: 28px; flex: 0 0 auto; color: var(--accent); }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; white-space: nowrap; padding: 10px 2px; transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ''; position: absolute; inset-inline: 2px; bottom: 5px; height: 1.5px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after { transform: scaleX(1); }
.head-cta { min-height: 42px; padding: 0 18px; font-size: .9rem; }
@media (max-width: 400px) { .site-head .wrap { padding-inline: 12px; } .brand { font-size: 1rem; gap: 8px; } .brand__mark { width: 26px; height: 26px; } }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); display: grid; place-items: center; padding-block: clamp(40px, 7vh, 88px) clamp(72px, 10vh, 112px); background: var(--bg); }
.hero__art { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 48%, rgba(247, 249, 248, .9) 0%, rgba(247, 249, 248, .66) 58%, rgba(247, 249, 248, 0) 100%); }
.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 16px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); background: rgba(255, 255, 255, .7); border: 1px solid var(--border); border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.3 7 10.8l4.6-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero h1 { max-width: 20ch; margin: 0 auto .2em; }
html:is([lang="ja"], [lang^="zh"], [lang="ko"], [lang="hi"], [dir="rtl"]) .hero h1 { max-width: 15em; font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.4rem); }
.hero__sub { color: var(--muted); font-size: var(--step-1); max-width: 54ch; margin: 14px auto 0; line-height: 1.58; }
.hero__note { margin-top: 18px; color: var(--muted); font-size: var(--step--1); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); background: rgba(255, 255, 255, .7); border: 1px solid var(--border); border-radius: 50%; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: nudge 2.6s ease-in-out infinite; }
.hero__scroll svg { width: 20px; height: 20px; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }
@media (max-height: 640px) { .hero__scroll { display: none; } }

.entry { width: 100%; max-width: 760px; margin: 26px auto 0; }
.entry__label { margin: 0 0 12px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; max-width: 100%; background: rgba(255, 255, 255, .72); color: var(--text); border: 1px solid var(--border); border-radius: 999px; font: inherit; font-size: var(--step--1); line-height: 1.3; text-align: center; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .15s ease, color .15s ease; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 639px) { .entry__chips > *:nth-child(n+3) { display: none; } }
.entry__form { display: flex; align-items: flex-end; gap: 10px; text-align: start; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--r-lg); padding: 10px 10px 10px 22px; box-shadow: inset 0 0 0 1px var(--border), 0 24px 60px -28px rgba(13, 36, 34, .35); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); transition: box-shadow .2s ease; }
.entry__form:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgba(12, 110, 99, .12), 0 24px 60px -28px rgba(13, 36, 34, .35); }
.entry__form textarea { flex: 1 1 auto; min-width: 0; border: 0; outline: none; resize: none; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; padding: 11px 0; min-height: 44px; max-height: 40vh; }
@media (min-width: 720px) { .entry__form textarea { font-size: 17px; } }
.entry__form textarea::placeholder { color: #6B7E7B; opacity: 1; }
.entry__form textarea:focus-visible { outline: none; }
.entry__go { flex: 0 0 auto; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: background .15s ease; }
.entry__go:hover { background: var(--accent-2); }
.entry__go svg { width: 22px; height: 22px; }
html[dir="rtl"] .entry__form { padding: 10px 22px 10px 10px; }
.entry__note { margin: 14px 0 0; color: var(--muted); font-size: var(--step--1); }

.why h2 { max-width: 22ch; margin-inline: auto; }
.why h2 span { display: block; color: var(--accent); }
.why__body { margin: 32px auto 0; max-width: 960px; display: grid; gap: 18px; text-align: start; }
.why__body p { color: var(--muted); line-height: 1.76; }
@media (min-width: 860px) { .why__body { grid-template-columns: 1fr 1fr; gap: 48px; } }

.features h2 { max-width: 22ch; }
.cards { margin: 44px auto 0; width: 100%; max-width: 1100px; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; text-align: start; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; background: var(--surface); }
.card__num { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.card__num::before { content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230C6E63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.3 7 10.8l4.6-5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }

.emotional { position: relative; overflow: hidden; background: var(--accent); color: #FFFFFF; }
.emotional::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 15% 30%, rgba(255, 255, 255, .12), transparent 70%); }
.emotional .wrap { position: relative; }
.emotional h2 { font-size: var(--step-4); max-width: 18ch; margin-inline: auto; }
.emotional h2 em { color: #CDEDE7; }
.emotional p { margin: 16px auto 0; max-width: 48ch; color: #DDF0EC; font-size: var(--step-1); }

.faq > .wrap { max-width: calc(var(--read) + 2 * var(--gutter)); }
.faq__list { margin: 36px auto 0; border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); padding: 0 4px; }
.qa > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 600; line-height: 1.4; }
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after { content: '+'; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; line-height: 1; transition: transform .2s ease; }
.qa[open] > summary::after { content: '−'; background: var(--accent); color: var(--accent-ink); }
.qa > summary:hover { color: var(--accent); }
.qa__a { color: var(--muted); padding: 0 0 22px; line-height: 1.68; }

.learn-sec { border-top: 1px solid var(--border); }
.learn-sec .wrap--narrow { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.learn-sec__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 0 0 8px; }
.learn-sec__head h2 { margin: 0; overflow-wrap: anywhere; }
.learn-sec__lead { color: var(--muted); margin: 0 auto 34px; text-align: center; max-width: 56ch; }
.learn-all { order: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.learn-all::after { content: '→'; transition: transform .15s ease; }
html[dir="rtl"] .learn-all::after { content: '←'; }
.learn-all:hover::after { transform: translateX(3px); }
html[dir="rtl"] .learn-all:hover::after { transform: translateX(-3px); }
.learn-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .learn-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .learn-grid { grid-template-columns: repeat(4, 1fr); } }
.learn-card { display: flex; flex-direction: column; min-height: 44px; padding: 8px 8px 18px; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.38; background: var(--surface); transition: box-shadow .2s ease, border-color .2s ease; }
.learn-card span { padding: 0 8px; }
.learn-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }

.cta { position: relative; overflow: hidden; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .wrap > p:not(.cta__note) { color: var(--muted); margin: 14px auto 30px; max-width: 48ch; font-size: var(--step-1); }
.cta__note { margin-top: 16px; color: var(--muted); font-size: var(--step--1); }
.nt-star { color: var(--accent); text-decoration: none; font-weight: 700; font-size: .45em; vertical-align: super; line-height: 1; margin-inline-start: .12em; }
.nt-star:hover { text-decoration: underline; }
.nt-note { max-width: 62ch; margin: 0 auto; padding: 0 var(--gutter) 40px; color: var(--muted); font-size: var(--step--1); text-align: center; }
.nt-note a { color: var(--muted); }
.nt-note a:hover { color: var(--accent); }

.site-foot { background: var(--surface); border-top: 1px solid var(--border); padding-block: 64px 28px; }
.foot-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.foot-brand { font-size: 1.26rem; }
.foot-brand .brand__mark { width: 36px; height: 36px; }
.foot-tag { color: var(--muted); margin: 0; max-width: 46ch; }
.foot-cta { margin-top: 6px; }
.foot-cols { display: grid; gap: 28px 24px; margin: 48px auto 0; max-width: 1060px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1fr 1.5fr 1.1fr 1.4fr; gap: 32px; } }
.foot-h { margin: 0 0 8px; font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; padding-block: 4px; color: var(--muted); text-decoration: none; font-size: .94rem; line-height: 1.38; }
.foot-col a:hover { color: var(--accent); }
.foot-col a[aria-current="true"] { color: var(--text); font-weight: 600; }
@media (max-width: 899px) { .foot-col--guides { grid-column: 1 / -1; } .foot-col a { min-height: 44px; } }

.foot-langs { columns: 2; column-gap: 18px; }
@media (min-width: 900px) { .foot-langs { columns: 2; } }
.foot-note { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: var(--step--1); }

.lang { position: relative; flex: 0 0 auto; --tick: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E"); }
.lang-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font: inherit; font-size: var(--step--1); line-height: 1; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.lang-trigger:hover { color: var(--text); border-color: var(--muted); }
.lang-trigger[aria-expanded="true"] { color: var(--text); border-color: var(--accent); }
.lang-globe { width: 17px; height: 17px; flex: 0 0 auto; }
.lang-caret { width: 11px; height: 11px; flex: 0 0 auto; opacity: .7; transition: transform .15s; }
.lang-trigger[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-pop { position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; max-height: min(64vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; display: flex; flex-direction: column; gap: 1px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.lang-pop[hidden] { display: none; }
.lang-pop a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: var(--step--1); line-height: 1.25; white-space: nowrap; }
.lang-pop a:hover, .lang-pop a:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.lang-pop a.is-cur { color: var(--accent); font-weight: 600; }
.lang-pop a::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; background: currentColor; opacity: 0; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.lang-pop a.is-cur::before { opacity: 1; }
@media (max-width: 560px) { .lang-cur, .lang-caret { display: none; } .lang-trigger { padding: 0; width: 44px; height: 44px; justify-content: center; border-color: transparent; background: transparent; } .lang-globe { width: 21px; height: 21px; } .lang-pop { min-width: 200px; max-height: min(60vh, 400px); } }

.doc { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.doc--art { max-width: calc(var(--read) + 2 * var(--gutter)); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; padding: 11px 0; margin: -11px 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--text); }
.crumbs-sep { opacity: .5; }
.doc--hub .crumbs { justify-content: center; }
.doc--hub > h1 { text-align: center; max-width: 20ch; margin-inline: auto; }
html[lang] .doc .meta.hub-lead { font-size: var(--step-1) !important; line-height: 1.55; color: var(--muted); text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .hub-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .hub-list { grid-template-columns: repeat(3, 1fr); } }
.hub-list li { display: flex; }
.hub-list a { display: flex; flex-direction: column; width: 100%; padding: 8px 18px 20px; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.04rem; line-height: 1.38; background: var(--surface); transition: box-shadow .2s ease, border-color .2s ease; }
.hub-list a:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); }
.hub-list a > p, html[lang] .hub-list a > p { margin: 8px 0 0; color: var(--muted); font-weight: 400; font-size: .95rem; line-height: 1.55; }
.hub-list a > .card-thumb { width: calc(100% + 20px); max-width: none; margin: 0 -10px 16px; }
.card-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-sm); margin: 0 0 14px; background: var(--surface-2); }
.learn-card--cover { flex-direction: column; align-items: stretch; }

.doc--art h1 { font-size: var(--step-4); line-height: 1.08; margin: 0 0 16px; }
html:is([lang="ja"], [lang^="zh"], [lang="ko"], [lang="hi"], [dir="rtl"]) :is(.doc--art h1, .doc--hub > h1) { font-size: var(--step-3); line-height: 1.35; }
.doc .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin: 0 0 28px; }
.meta__dot { opacity: .6; }
.learn-cover { display: block; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; width: min(960px, calc(100vw - 2 * var(--gutter))); max-width: none; margin: 0 0 36px; margin-inline: calc((min(960px, calc(100vw - 2 * var(--gutter))) - 100%) / -2); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: var(--shadow); }
.doc .tldr { position: relative; margin: 0 0 32px; padding: 22px 24px; background: var(--accent-soft); border-radius: var(--r); font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.doc--art > p { font-size: 1.08rem; line-height: 1.78; color: #1F3532; }
.doc--art h2 { font-size: var(--step-2); line-height: 1.2; margin: 44px 0 12px; }
.toc { margin: 8px 0; padding: 6px 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 600; font-size: .95rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '▾'; color: var(--accent); transition: transform .2s ease; }
.toc[open] summary::after { transform: rotate(180deg); }
.toc ol { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 2px; }
.toc li::marker { color: var(--accent); font-family: var(--font-mono); }
.toc a { display: inline-flex; min-height: 36px; align-items: center; color: var(--muted); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.toc a:hover { color: var(--accent); }
.doc--art details:not(.toc) { border-bottom: 1px solid var(--border); padding: 0 4px; margin: 0; }
.doc--art details:not(.toc):first-of-type { border-top: 1px solid var(--border); }
.doc--art details:not(.toc) summary { cursor: pointer; list-style: none; font-weight: 600; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; line-height: 1.4; }
.doc--art details:not(.toc) summary::-webkit-details-marker { display: none; }
.doc--art details:not(.toc) summary::after { content: '+'; flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; line-height: 1; }
.doc--art details[open]:not(.toc) summary::after { content: '−'; background: var(--accent); color: var(--accent-ink); }
.doc--art details:not(.toc) p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.doc .cta-box { margin-top: 44px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.doc .cta-box > p { font-weight: 600; font-size: var(--step-1); line-height: 1.4; margin: 0 0 16px; }
.cta-box--ask .entry__form { margin: 0 0 12px; background: var(--bg); backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--border); }
.cta-box__link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.cta-box__link:hover { text-decoration: underline; }
.learn-links ul { margin: 0; padding-inline-start: 20px; }
.learn-links li { margin: 2px 0; }
.learn-links a { display: inline-block; padding-block: 8px; }
.learn-links a { color: var(--accent); }
.doc .learn-related { background: none; border: 0; padding: 0; margin-top: 56px; box-shadow: none; }
.learn-related > p { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; margin: 0 0 18px; }
.learn-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .learn-related ul { grid-template-columns: 1fr 1fr; } }
.learn-related li { margin: 0; display: flex; }
.learn-related a { display: flex; flex-direction: column; width: 100%; padding: 8px 8px 16px; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.38; background: var(--surface); transition: box-shadow .2s ease; }
.learn-related a span { padding: 0 8px; }
.learn-related a:hover { box-shadow: var(--shadow); }
.learn-related .card-thumb { margin-bottom: 12px; }
.doc .doc-back { margin-top: 32px; text-align: center; }
.doc .doc-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.doc .doc-back a::before { content: '←'; }
html[dir="rtl"] .doc .doc-back a::before { content: '→'; }

.support { padding-block: clamp(36px, 6vw, 80px) clamp(64px, 9vw, 112px); }
.support .wrap--narrow { max-width: calc(640px + 2 * var(--gutter)); text-align: center; }
.support h1 { font-size: var(--step-3); }
.support .lead { max-width: 52ch; margin-inline: auto; }
.form { margin-top: 32px; display: grid; gap: 18px; text-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .15s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(12, 110, 99, .12); }
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { color: var(--muted); font-size: var(--step--1); margin: 0; }
.form__foot .btn { width: 100%; }
.form__note { color: var(--muted); font-size: var(--step--1); margin-top: 12px; text-align: center; }
.notice { border-radius: var(--r); padding: 18px 20px; text-align: start; margin-top: 24px; }
.notice--err { background: #FDECEA; border: 1px solid #F3C2BC; color: #7A1E14; }
.notice--ok { background: var(--accent-soft); text-align: center; padding: 36px 24px; }
.notice ul { margin: 0; padding-inline-start: 18px; }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.legal { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal h1 { font-size: var(--step-3); text-align: center; }
.legal__updated { color: var(--muted); font-size: var(--step--1); text-align: center; }
.legal > .wrap > .lead { text-align: center; max-width: 56ch; margin-inline: auto; margin-bottom: 24px; }

.legal__sec { padding-block: 0; }
.legal__sec h2 { font-size: var(--step-1); padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--border); }
.legal p, .legal li { color: #2A3F3C; line-height: 1.75; }
.legal a { color: var(--accent); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: .5em; }
.legal__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-decoration: none; font-size: .9rem; }
.legal__nav a:hover { border-color: var(--accent); color: var(--accent); }

.nf { min-height: calc(100svh - var(--head-h) - 120px); display: grid; place-items: center; padding-block: 64px; text-align: center; }
.nf__in { display: flex; flex-direction: column; align-items: center; }
.nf__code { font-family: var(--font-mono); font-weight: 400; font-size: clamp(4.4rem, 2.6rem + 8vw, 8rem); line-height: .95; margin: 0 0 14px; color: var(--accent); letter-spacing: -.04em; }
.nf h1 { font-size: var(--step-3); }
.nf .lead { max-width: min(46ch, 100%); margin-inline: auto; }
.nf__actions .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding-block: 10px; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.nf__more { margin: 44px 0 10px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nf__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 560px; width: 100%; }
.nf__list a { display: flex; align-items: center; min-height: 52px; padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; text-align: start; }
.nf__list a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 639px) {
  h1, h2 { letter-spacing: -.016em; }
  .hero { padding-block: 28px 76px; }
  .hero::before { background: linear-gradient(180deg, rgba(247, 249, 248, .5) 0%, rgba(247, 249, 248, .88) 34%, rgba(247, 249, 248, .94) 100%); }
  .hero__sub { font-size: 1.05rem; }
  .badge { max-width: 100%; border-radius: 16px; letter-spacing: .02em; text-align: center; justify-content: center; }
  .entry { margin-top: 24px; }
  .entry__form { padding-inline-start: 18px; }
  .card { padding: 24px 20px 22px; }
  .doc--art > p { font-size: 1.04rem; line-height: 1.72; }
  .doc .tldr { font-size: 1.04rem; padding: 18px; }
  .doc .cta-box { padding: 22px 18px; }
  .site-foot { padding-top: 48px; }
}
html[lang] .hub-list a > p { font-size: .95rem; line-height: 1.55; }

html[lang] body :is(h1, h2, h3) { hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }

.foot-col summary { list-style: none; cursor: default; }
.foot-col summary::-webkit-details-marker { display: none; }
.foot-col summary .foot-h { display: block; }
.foot-col li { margin: 0; }
.foot-cur { display: none; }

html:lang(ar) .foot-h, html:lang(fa) .foot-h, html:lang(he) .foot-h, html:lang(ur) .foot-h,
html:lang(hi) .foot-h, html:lang(bn) .foot-h, html:lang(ta) .foot-h, html:lang(th) .foot-h,
html:lang(my) .foot-h, html:lang(ja) .foot-h, html:lang(ko) .foot-h, html:lang(zh) .foot-h,
html:lang(zh-CN) .foot-h, html:lang(zh-TW) .foot-h { text-transform: none; letter-spacing: 0; font-size: .85rem; }
@media (max-width: 640px) {
  .site-foot { padding-block: 40px 20px; }
  .foot-top { gap: 10px; }
  .foot-cols { display: block; margin-top: 28px; max-width: none; }
  .foot-col details { border-top: 1px solid var(--border); }
  .foot-col summary {
    cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 52px;
    -webkit-tap-highlight-color: transparent;
  }
  .foot-col summary .foot-h { margin: 0; }
  .foot-col summary::after {
    content: ""; flex: none; width: 8px; height: 8px; margin-inline-end: 4px;
    border: solid var(--muted); border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .site-foot.foot-anim summary::after { transition: transform .2s; }
  .foot-col details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  .foot-cur { display: inline; margin-inline-start: auto; color: var(--muted); font-size: .9rem; }
  .foot-col details ul { padding-bottom: 8px; }
  .foot-col details a { min-height: 44px; font-size: .95rem; }
  .foot-langs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }

  .foot-legal { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--border); padding-top: 10px; }
  .foot-legal .foot-h { display: none; }
  .foot-legal ul { display: contents; }
  .foot-legal li { margin: 0 9px; }
  .foot-legal a { min-height: 40px; font-size: .85rem; }
  .foot-note { margin-top: 8px; padding-top: 10px; border-top: 0; }
}

.legal__dl { margin: 12px 0 18px; padding: 0; }
.legal__dl dt { margin: 16px 0 4px; font-weight: 700; color: var(--text); }
.legal__dl dd { margin: 0; color: var(--muted); }
.legal__dl dt a { color: var(--accent); }
