:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #222; background: #fafafa; --accent: #002247; --accent-hover: #003566; --secondary: #d80013; }
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -60px; left: 20px; padding: 12px; background: #fff; }
.skip:focus { top: 12px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; border-bottom: 1px solid #e5e5e5; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 68px; height: 76px; }
.brand-logo { display: block; width: 48px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { color: var(--accent); font-size: 25px; line-height: 1; font-weight: 750; letter-spacing: -.055em; }
.brand-name span { color: var(--secondary); }
.brand-caption { color: #77818d; font-size: 10px; line-height: 1.4; letter-spacing: .015em; }
.accent { color: var(--accent); }
nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
nav a { font-size: 13px; color: #666; text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--secondary); }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-color: var(--secondary); }
.menu-account { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 20px; border-left: 1px solid #e1e5ea; }
.menu-account-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.menu-account-label { color: #777; font-size: 10px; line-height: 1.4; }
.menu-account-email { max-width: 180px; overflow: hidden; color: var(--accent); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.menu-logout { position: relative; flex-shrink: 0; margin: 0; }
.menu-logout-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--accent); cursor: pointer; text-decoration: none; }
.menu-logout-button:hover { background: #fbedef; color: var(--secondary); }
.menu-icon-action { position: relative; flex-shrink: 0; }
.menu-dashboard-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; color: var(--accent); text-decoration: none; }
.menu-dashboard-button:hover, .menu-dashboard-button[aria-current="page"] { background: #eef2f6; color: var(--accent); text-decoration: none; }
.menu-tooltip { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; padding: 7px 10px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; line-height: 1.4; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; }
.menu-logout:hover .menu-tooltip, .menu-logout:focus-within .menu-tooltip { opacity: 1; visibility: visible; }
.menu-icon-action:hover .menu-tooltip, .menu-icon-action:focus-within .menu-tooltip { opacity: 1; visibility: visible; }
.hero { padding-block: 100px 88px; max-width: 760px; }
.intro { margin: 0 0 24px; color: #777; font-size: 13px; }
h1 { margin: 0; color: var(--accent); font-size: clamp(38px, 6.4vw, 64px); line-height: 1.1; font-weight: 500; letter-spacing: -.05em; text-wrap: balance; }
.hero .accent { color: var(--secondary); }
.lead { max-width: 530px; margin: 26px 0 0; color: #666; font-size: 18px; line-height: 1.7; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.primary { display: inline-block; padding: 13px 19px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font-size: 14px; text-decoration: none; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary:active { transform: translateY(0); }
.text-link { font-size: 14px; }
.text-link:hover, .note a:hover { color: var(--accent); }
section { scroll-margin-top: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-block: 36px 60px; border-top: 1px solid #e5e5e5; }
.number { color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
h2 { margin: 0; color: var(--accent); font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; }
h3 { margin: 16px 0 10px; font-size: 16px; font-weight: 500; }
.steps p { margin: 0; color: #666; font-size: 14px; line-height: 1.8; }
.example { display: grid; gap: 32px; padding-block: 64px; border-top: 1px solid #e5e5e5; }
.example-heading { max-width: 640px; }
.example-heading h2 { font-size: clamp(28px, 4vw, 38px); }
.example-heading .example-eyebrow { margin: 0 0 14px; color: var(--secondary); font-size: 12px; }
.example-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.example-card-heading { display: flex; align-items: center; gap: 10px; padding: 18px; border-bottom: 1px solid #e5eaf0; }
.example-card-heading h3 { flex: 1; margin: 0; color: var(--accent); font-size: 14px; font-weight: 600; line-height: 1.5; }
.example-step { color: var(--secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.example-format { padding: 4px 7px; border-radius: 3px; background: #eef2f7; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.example-format-pdf { background: #fcebed; color: var(--secondary); }
.example-arrow { display: grid; place-items: center; color: var(--secondary); }
.example-input { display: flex; flex-direction: column; }
.example-input pre { flex: 1; padding: 24px 18px; }
.example-input .code-label { font-size: 11px; }
.example-result { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid #dce3eb; border-radius: 4px; background: #eef2f7; }
.example-result .example-card-heading { background: #fff; border-radius: 4px 4px 0 0; }
.example-document { flex: 1; margin: 20px; padding: 22px; border: 1px solid #dce3eb; border-top: 3px solid var(--accent); border-radius: 2px; background: #fff; box-shadow: 0 5px 16px #00224708; }
.example-document-heading { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; color: var(--accent); font-size: 15px; font-weight: 600; }
.example-document-heading span + span { color: #68788a; font-size: 10px; font-weight: 400; }
.example-document-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.example-document-fields > div { grid-column: 1 / -1; }
.example-document-fields > .example-document-half { grid-column: auto; }
.example-document-fields dt { margin-bottom: 6px; color: #68788a; font-size: 10px; }
.example-document-fields dd { margin: 0; padding: 8px 10px; border: 1px solid #dce3eb; border-radius: 2px; color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.example-document-status { display: flex; align-items: center; gap: 7px; margin: 18px 0 0; color: var(--accent); font-size: 11px; }
.example-card-note { margin: 0; padding: 13px 18px; border-top: 1px solid #e5eaf0; color: #68788a; font-size: 11px; line-height: 1.7; }
.example-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.example-footer p { max-width: 590px; margin: 0; color: #68788a; font-size: 13px; line-height: 1.8; }
.example-footer a { flex-shrink: 0; color: var(--accent); }
.home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding-block: 56px 64px; border-top: 1px solid #e5e5e5; }
.home-faq .example-eyebrow { margin: 0 0 14px; color: var(--secondary); font-size: 12px; }
.home-faq-items details { padding-block: 20px; border-bottom: 1px solid #e1e5ea; }
.home-faq-items details:first-child { padding-top: 0; }
.home-faq-items summary { color: var(--accent); font-size: 15px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.home-faq-items summary::marker { color: var(--secondary); }
.home-faq-items summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-faq-items p { margin: 14px 0 0; color: #666; font-size: 14px; line-height: 1.85; }
.home-faq-items a { color: var(--accent); }
.section-copy p { color: #666; font-size: 15px; line-height: 1.8; margin: 18px 0 0; }
.code { min-width: 0; border: 1px solid #e2e2e2; border-radius: 4px; background: #fff; }
.code:hover { border-color: #b8c6d5; }
.code-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eee; }
.code-label { margin: 0; font-size: 12px; color: #777; }
button { padding: 5px 7px; border: 0; background: transparent; color: #555; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button:hover { color: #111; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; }
pre { margin: 0; padding: 24px 20px; overflow-x: auto; line-height: 1.9; tab-size: 2; }
.json-key { color: var(--accent); }
.json-string { color: var(--secondary); }
.endpoint { margin: 0; padding: 13px 18px; border-top: 1px solid #eee; color: #666; overflow-x: auto; }
.endpoint code { white-space: nowrap; font-size: 11px; }
.documentation { padding-block: 56px 64px; border-top: 1px solid #e5e5e5; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading p { margin: 0; color: #777; font-size: 13px; }
.route { display: grid; grid-template-columns: 54px minmax(0, 1fr) 240px; align-items: baseline; gap: 22px; padding-block: 21px; border-top: 1px solid #e9e9e9; }
.method { font-size: 11px; font-weight: 600; color: var(--accent); }
.method-post { color: var(--secondary); }
.route:hover { background: #f0f3f7; }
.route code { overflow-wrap: anywhere; line-height: 1.7; }
.route p { margin: 0; color: #666; font-size: 13px; line-height: 1.6; }
.note { margin: 24px 0 0; color: #777; font-size: 13px; line-height: 1.8; }
footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px 36px; border-top: 1px solid #e5e5e5; color: #888; font-size: 12px; }
footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a { color: #777; font-size: 12px; }
@keyframes enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .intro, h1, .lead, .actions { animation: enter 550ms ease-out both; }
    h1 { animation-delay: 60ms; }
    .lead { animation-delay: 120ms; }
    .actions { animation-delay: 180ms; }
    a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
    .primary { transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease; }
    .primary:hover { transform: translateY(-2px); }
    .primary:active { transform: translateY(0); }
    .code { transition: border-color 200ms ease; }
    .route { transition: background-color 180ms ease; }
    .brand-symbol { transition: transform 180ms ease; }
    .brand:hover .brand-symbol { transform: translateY(-2px); }
    .menu-tooltip { transition: opacity 140ms ease, visibility 140ms ease; }
}
@media (max-width: 720px) {
    .brand { gap: 10px; }
    .brand-symbol { width: 46px; height: 54px; }
    .brand-logo { width: 32px; height: 42px; }
    .brand-name { font-size: 19px; }
    .brand-caption { display: none; }
    .wrap { width: calc(100% - 40px); }
    header { padding-block: 24px; flex-wrap: wrap; row-gap: 20px; }
    nav { gap: 18px; }
    .hero { padding-block: 68px 58px; }
    .lead { font-size: 16px; }
    .steps { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 44px; }
    .steps h3 { margin-top: 8px; }
    .example { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
    .example-flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .example-arrow svg { transform: rotate(90deg); }
    .example-footer { align-items: start; flex-direction: column; gap: 16px; }
    .example-card-heading { padding: 16px; }
    .example-document { margin: 16px; padding: 18px; }
    .home-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 44px; }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .documentation { padding-block: 42px; }
    .route { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; }
    .route p { grid-column: 2; }
    footer { flex-direction: column; gap: 12px; }
}
@media (max-width: 380px) {
    .brand { gap: 8px; }
    .brand-symbol { width: 38px; height: 46px; }
    .brand-logo { width: 28px; height: 36px; }
    .brand-name { font-size: 17px; }
    nav { gap: 12px; }
    nav a { font-size: 12px; }
}
@media (max-width: 520px) {
    header > nav { width: 100%; justify-content: space-between; gap: 12px; }
    .menu-account { width: 100%; margin-top: 6px; padding: 14px 0 0; border-left: 0; border-top: 1px solid #e5e5e5; justify-content: space-between; }
    .menu-account-email { max-width: min(240px, 65vw); }
}
