/* Public homepage composition; colors follow the shared public palette. */
.home-page {
    --c-bg: #ffffff; --c-bg-warm: #f4f5f7; --c-surface: #ffffff;
    --c-text-bright: #0e1014; --c-text: #3b4049; --c-text-dim: #565c66;
    --c-border: #e7e8ec; --c-border-h: #8b919b;
    --c-accent: #7a193d; --c-accent-hover: #5c102c;
    --max-w: 1200px; --nav-h: 76px;
}
.home-page::before { content: none; }
.home-page .nav { background: #ffffff; border-bottom: 1px solid var(--c-border); backdrop-filter: none; }
.home-page .nav__inner { gap: 24px; }
.home-page .nav__logo-svg { height: 28px; }
.home-page .nav__links { gap: 28px; }
.home-page .nav__link { color: var(--c-text); }
.home-page .nav--open { height: auto; }
.home-page .btn { min-height: 44px; border-radius: 7px; box-shadow: none; transition: background .15s, border-color .15s; }
.home-page .btn--lg { font-size: 15px; padding: 13px 22px; }
.home-page .btn--primary:hover { transform: none; box-shadow: none; }
.home-page .home-nav-start { border: 1px solid var(--c-border-h); }
.home-page .home-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--c-text-bright); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home-page .home-text-link:hover { color: var(--c-accent); }
.home-page .hero { padding: calc(var(--nav-h) + 76px) 0 0; }
.home-page .hero > .container { display: block; }
.home-page .home-hero-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 64px; margin-bottom: 52px; }
.home-page .hero__title { font-family: var(--font-body); font-size: 72px; font-weight: 700; line-height: 1.02; letter-spacing: -.055em; margin: 0; color: var(--c-text-bright); }
.home-page .hero__content { max-width: none; }
.home-page .hero__subtitle { font-size: 18px; line-height: 1.55; margin: 0 0 24px; max-width: 42ch; }
.home-page .hero__actions { margin: 0; gap: 24px; align-items: center; }
.home-page .home-hero-note { font-size: 13px; color: var(--c-text-dim); margin-top: 14px; }
.home-page .home-workspace { margin: 0; min-width: 0; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: var(--c-surface); box-shadow: 0 12px 32px rgba(14,16,20,.045); }
.home-page .home-workspace__caption { padding: 14px 22px; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; gap: 16px; color: var(--c-text-dim); font-size: 12px; background: var(--c-bg-warm); }
.home-page .home-workspace__caption span:first-child { color: var(--c-text); font-weight: 500; }
.home-page .home-workspace__shell { display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.home-page .home-workspace__sidebar { padding: 28px 16px; border-right: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.home-page .home-workspace__sidebar strong { padding: 0 10px; font-size: 12px; color: var(--c-text-bright); margin-bottom: 20px; overflow-wrap: anywhere; }
.home-page .home-workspace__sidebar > span { padding: 8px 10px; color: var(--c-text-dim); }
.home-page .home-workspace__current { background: var(--c-bg-warm); border-radius: 5px; color: var(--c-text-bright) !important; font-weight: 600; }
.home-page .home-workspace__main { min-width: 0; padding: 26px 28px 20px; }
.home-page .home-workspace__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.home-page .home-workspace__heading h2 { font-size: 20px; font-weight: 700; color: var(--c-text-bright); }
.home-page .home-workspace__heading > span { font-size: 12px; color: var(--c-text-dim); }
.home-page .home-workspace__table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.home-page .home-workspace__table th { font-size: 12px; font-weight: 500; color: var(--c-text-dim); padding: 10px 12px; background: var(--c-bg-warm); }
.home-page .home-workspace__table td { padding: 17px 12px; border-bottom: 1px solid var(--c-border); color: var(--c-text); }
.home-page .home-workspace__table td:first-child { color: var(--c-text-bright); font-weight: 500; }
.home-page .home-workspace__table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-page .home-workspace__selected { background: #fafafb; }
.home-page .home-status { font-size: 12px; font-weight: 500; white-space: nowrap; }
.home-page .home-status--failed { color: #991b1b; }
.home-page .home-workspace__detail { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; padding-top: 22px; }
.home-page .home-workspace__detail strong { font-size: 13px; color: var(--c-text-bright); font-weight: 600; }
.home-page .home-workspace__detail p { font-size: 12px; line-height: 1.6; margin-top: 6px; max-width: 62ch; color: var(--c-text-dim); }
.home-page .home-workspace__response { border-left: 1px solid var(--c-border); padding-left: 24px; }
.home-page .home-workspace__response span { display: block; font-size: 12px; color: var(--c-text-dim); margin-bottom: 6px; }
.home-page .home-workspace__response code { font-family: var(--font-mono); font-size: 12px; color: var(--c-text-bright); }
.home-page .home-workspace__note { font-size: 11px; color: var(--c-text-dim); padding: 12px 22px; border-top: 1px solid var(--c-border); }
.home-page .home-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; }
.home-page .home-facts { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.home-page .home-facts p { font-size: 13px; color: var(--c-text-dim); }
.home-page .features { padding: 100px 0; }
.home-page .section-header { text-align: left; margin-bottom: 32px; }
.home-page .section-header__title { font-family: var(--font-body); font-weight: 700; font-size: 40px; line-height: 1.12; letter-spacing: -.035em; color: var(--c-text-bright); }
.home-page .section-header__subtitle { font-size: 16px; line-height: 1.65; max-width: 60ch; margin: 20px 0; }
.home-page .home-operations { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 100px; align-items: start; }
.home-page .home-process { list-style: decimal; padding-left: 32px; }
.home-page .home-process li { padding: 0 0 24px 12px; margin-bottom: 24px; border-bottom: 1px solid var(--c-border); }
.home-page .home-process li:last-child { margin-bottom: 0; }
.home-page .home-process li::marker { font-size: 14px; color: var(--c-text-dim); }
.home-page .home-process h3 { font-size: 20px; font-weight: 600; color: var(--c-text-bright); margin-bottom: 8px; }
.home-page .home-process p { font-size: 15px; line-height: 1.65; max-width: 56ch; }
.home-page .home-process .home-text-link { margin-top: 4px; }
.home-page .home-residency { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding: 44px; margin: 64px 0 80px; background: var(--c-bg-warm); border-radius: 8px; }
.home-page .home-residency h2 { font-size: 30px; line-height: 1.16; letter-spacing: -.025em; color: var(--c-text-bright); margin-bottom: 20px; }
.home-page .home-residency p { font-size: 15px; line-height: 1.7; max-width: 52ch; }
.home-page .home-residency__policy { align-self: end; }
.home-page .home-residency__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }
.home-page .home-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-page .home-directory-heading h2 { font-size: 30px; }
.home-page .feature-list { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.home-page .feature-list__item { padding: 20px 0; }
.home-page .feature-list__item > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.home-page .feature-list__item p { font-size: 13px; max-width: 40ch; margin-top: 0; }
.home-page .feature-list__item p a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }
.home-page .api-section { padding: 80px 0; background: var(--c-bg-warm); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.home-page .home-api-top { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.3fr); gap: 60px; align-items: start; margin-bottom: 52px; }
.home-page .home-api-example { min-width: 0; }
.home-page .code-block { box-shadow: none; border-radius: 8px; }
.home-page .code-block__header { padding: 8px; background: var(--c-surface); }
.home-page .code-block__tabs { margin: 0; gap: 0; flex-wrap: wrap; }
.home-page .code-block__tab { font-family: var(--font-body); font-size: 12px; min-height: 44px; padding: 10px 12px; border-radius: 5px; }
.home-page .code-block__tab--active { background: var(--c-text-bright); color: var(--c-surface); box-shadow: none; }
.home-page .code-block__body { padding: 24px; font-size: 12px; min-height: 330px; }
.home-page .api-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.home-page .api-section__grid > * { min-width: 0; }
.home-page .endpoint-group__title, .home-page .api-section__sdks-title { font-size: 14px; text-transform: none; letter-spacing: 0; }
.home-page .endpoint { flex-wrap: wrap; }
.home-page .endpoint__path { overflow-wrap: anywhere; }
.home-page .sdk-card { background: var(--c-surface); border-radius: 6px; box-shadow: none; }
.home-page .sdk-card__code { overflow-x: auto; }
.home-page .feature-card__link { text-decoration: underline; text-underline-offset: 4px; color: var(--c-text-bright); display: inline-flex; align-items: center; min-height: 44px; }
.home-page .pricing { padding: 96px 0 80px; }
.home-page .pricing .section-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0 64px; }
.home-page .pricing .section-header__subtitle { margin: 0; }
.home-page .pricing__toggle { grid-column: 2; flex-wrap: wrap; }
.home-page .pricing__toggle-switch::after { content: none; }
.home-page .pricing__toggle-switch { background: var(--c-text-bright) !important; }
.home-page .pricing__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; align-items: stretch; }
.home-page .pricing-card { border: 0; border-right: 1px solid var(--c-border); padding: 28px 18px; border-radius: 0; background: transparent; box-shadow: none; display: flex; flex-direction: column; min-width: 0; transition: none; }
.home-page .pricing-card:last-child { border-right: 0; }
.home-page .pricing-card:hover { box-shadow: none; }
.home-page .pricing-card__header { min-height: 118px; margin-bottom: 16px; }
.home-page .pricing-card__name { font-size: 15px; font-weight: 600; }
.home-page .pricing-card__price { font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.home-page .pricing-card__price span { font-size: 13px; }
.home-page .pricing-card__features { margin-bottom: 24px; }
.home-page .pricing-card__features li { font-size: 13px; padding: 8px 0; }
.home-page .pricing-card > .btn { margin-top: auto; font-size: 13px; padding: 10px; }
.home-page .fact-sheet__row dt { text-transform: none; letter-spacing: 0; font-size: 13px; }
.home-page .fact-sheet__row dd { font-size: 13px; }
.home-page .cta { padding: 0 0 80px; }
.home-page .cta__inner { background: var(--c-text-bright); border: 0; border-radius: 10px; padding: 48px; display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 12px 32px; }
.home-page .cta__inner::before { content: none; }
.home-page .cta__title { font-family: var(--font-body); font-size: 36px; font-weight: 700; letter-spacing: -.035em; color: #ffffff; }
.home-page .cta__text { color: #d1d5db; font-size: 15px; margin: 0; max-width: 54ch; }
.home-page .cta__actions { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; flex-direction: column; gap: 4px; }
.home-page .cta .btn--ghost { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.home-page .cta .btn--ghost:hover { background: #24272e; }
.home-page .footer { background: var(--c-bg-warm); padding: 56px 0 24px; }
.home-page .footer__grid { grid-template-columns: 1.8fr 1.2fr 1fr 1fr; gap: 48px; }
.home-page .footer__tagline { max-width: 26ch; }
.home-page .footer__col-title { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--c-text-bright); }
.home-page .footer__col a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.home-page .footer__bottom { margin-top: 32px; }
@media (max-width: 1024px) {
    .home-page .nav__inner { gap: 16px; }
    .home-page .nav__logo-svg { height: 24px; }
    .home-page .nav__links { gap: 18px; }
    .home-page .nav__actions { gap: 8px; }
    .home-page .nav__actions .btn { padding-left: 12px; padding-right: 12px; font-size: 13px; }
    .home-page .home-hero-intro { gap: 40px; }
    .home-page .hero__title { font-size: 60px; }
    .home-page .hero__subtitle { font-size: 16px; }
    .home-page .hero__actions { gap: 12px; flex-wrap: wrap; }
    .home-page .home-operations { gap: 56px; }
    .home-page .home-api-top { gap: 32px; }
    .home-page .home-residency { gap: 40px; padding: 32px; }
    .home-page .pricing__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-page .pricing-card { border-bottom: 1px solid var(--c-border); }
    .home-page .pricing-card:nth-child(3) { border-right: 0; }
    .home-page .pricing-card:nth-last-child(-n+2) { border-bottom: 0; }
    .home-page .footer__grid { gap: 24px; }
}
@media (max-width: 768px) {
    .home-page { --nav-h: 64px; }
    .home-page .hero { padding-top: calc(var(--nav-h) + 48px); }
    .home-page .home-hero-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 32px; }
    .home-page .hero__title { font-size: 54px; }
    .home-page .hero__subtitle { max-width: 54ch; }
    .home-page .home-workspace__shell { grid-template-columns: minmax(0, 1fr); }
    .home-page .home-workspace__sidebar { display: none; }
    .home-page .home-workspace__main { padding: 20px; }
    .home-page .home-workspace__table th:nth-child(4), .home-page .home-workspace__table td:nth-child(4) { display: none; }
    .home-page .home-workspace__detail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .home-page .home-workspace__response { border: 0; padding: 12px 0 0; border-top: 1px solid var(--c-border); }
    .home-page .home-workspace__response span { display: inline; margin-right: 16px; }
    .home-page .features { padding: 64px 0; }
    .home-page .home-operations, .home-page .home-residency, .home-page .home-api-top, .home-page .api-section__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .home-page .section-header__title { font-size: 34px; }
    .home-page .home-residency { margin: 48px 0; }
    .home-page .home-residency h2 { font-size: 28px; }
    .home-page .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
    .home-page .home-directory-heading { align-items: start; }
    .home-page .home-directory-heading h2 { font-size: 28px; }
    .home-page .api-section { padding: 64px 0; }
    .home-page .home-api-top { gap: 8px; }
    .home-page .pricing { padding: 64px 0; }
    .home-page .pricing .section-header { display: block; }
    .home-page .pricing .section-header__subtitle { margin-top: 20px; }
    .home-page .cta { padding-bottom: 48px; }
    .home-page .cta__inner { display: block; padding: 32px; }
    .home-page .cta__title { font-size: 32px; }
    .home-page .cta__text { margin-top: 12px; }
    .home-page .cta__actions { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; margin-top: 24px; gap: 12px; }
    .home-page .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .home-page .container, .home-page .nav__inner { padding-left: 20px; padding-right: 20px; }
    .home-page .hero__title { font-size: 40px; }
    .home-page .hero__actions { gap: 8px 20px; }
    .home-page .hero__actions .btn { width: auto; }
    .home-page .home-workspace__caption { padding: 12px 16px; flex-direction: column; gap: 4px; }
    .home-page .home-workspace__main { padding: 16px; }
    .home-page .home-workspace__heading > span { display: none; }
    .home-page .home-workspace__table th:nth-child(2), .home-page .home-workspace__table td:nth-child(2) { display: none; }
    .home-page .home-workspace__table th, .home-page .home-workspace__table td { padding-left: 8px; padding-right: 8px; }
    .home-page .home-workspace__table td { font-size: 12px; }
    .home-page .home-workspace__note { padding: 12px 16px; }
    .home-page .home-facts { justify-content: flex-start; gap: 0 20px; padding: 20px 0; }
    .home-page .home-facts p { padding: 6px 0; }
    .home-page .home-facts .home-text-link { flex-basis: 100%; }
    .home-page .section-header__title { font-size: 30px; }
    .home-page .section-header__subtitle { font-size: 15px; }
    .home-page .home-process { padding-left: 24px; }
    .home-page .home-process li { padding-left: 4px; }
    .home-page .home-residency { padding: 24px; gap: 24px; }
    .home-page .home-residency h2 { font-size: 25px; }
    .home-page .home-directory-heading { display: block; margin-bottom: 16px; }
    .home-page .feature-list { grid-template-columns: minmax(0, 1fr); }
    .home-page .code-block__body { padding: 16px; font-size: 11px; min-height: 310px; }
    .home-page .code-block__tab { font-size: 12px; padding: 10px 12px; }
    .home-page .fact-sheet__row { display: block; }
    .home-page .fact-sheet__row dd { text-align: left; max-width: none; margin-top: 4px; }
    .home-page .cta__inner { padding: 28px 24px; }
    .home-page .cta__title { font-size: 28px; }
    .home-page .footer__grid { gap: 28px 16px; }
    .home-page .footer__brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Keep secondary reference material available without extending the main story. */
.home-page .home-api-reference { border-top: 1px solid var(--c-border); }
.home-page .home-api-reference summary { cursor: pointer; min-height: 56px; padding: 16px 0; color: var(--c-text-bright); font-size: 15px; font-weight: 600; }
.home-page .home-api-reference[open] .api-section__grid { padding: 20px 0 8px; }
.home-page .home-pricing-hint { display: none; }
@media (max-width: 768px) {
    .home-page .home-pricing-hint { display: block; margin: 0 0 12px; font-size: 13px; color: var(--c-text-dim); }
    .home-page .pricing__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; align-items: stretch; }
    .home-page .pricing-card, .home-page .pricing-card:nth-child(3) { flex: 0 0 248px; padding: 24px; border: 0; border-right: 1px solid var(--c-border); scroll-snap-align: start; }
    .home-page .pricing-card:nth-child(even) { border-right: 1px solid var(--c-border); }
    .home-page .pricing-card:last-child { border-right: 0; }
    .home-page .pricing-card__header { min-height: 118px; }
}

/* Owner guides provide a plain-language route before integration details. */
.home-page .home-owner-guides { margin-bottom: 64px; }
.home-page .home-owner-guides .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .home-owner-guides .feature-list__item p { max-width: 52ch; font-size: 15px; }
@media (max-width: 768px) {
    .home-page .home-owner-guides { margin-bottom: 48px; }
    .home-page .home-owner-guides .feature-list { grid-template-columns: minmax(0, 1fr); }
}

.home-page .cta__inner :focus-visible { outline-color: #ffffff; }
