/* Homepage composition. Shared controls, typeface and colors inherit UI tokens. */
.home-page { --home-accent: var(--ui-primary); color: var(--ui-text); }
[data-theme='dark'] .home-page { --home-accent: #5eead4; }
.home-page .home-keyword { color: var(--home-accent); background: transparent; font: inherit; font-weight: 600; padding: 0; }
.home-page h1, .home-page h2, .home-page h3 { color: var(--ui-text); font-weight: 600; }
.home-page h2 { font-size: clamp(24px, 3vw, 28px); line-height: 1.4; margin: 0; }
.home-page h3 { font-size: 20px; line-height: 1.5; margin: 16px 0 8px; }
.home-page p { color: var(--ui-muted); line-height: 1.75; margin: 0; }
.home-page .home-eyebrow { color: var(--home-accent); font-size: 14px; font-weight: 500; letter-spacing: .06em; margin-bottom: 16px; }
.home-hero { position: relative; overflow: hidden; padding: 48px 0; text-align: center; border-bottom: 1px solid var(--ui-border); background: radial-gradient(ellipse at 50% 0, var(--ui-selected), transparent 72%); }
.home-hero::before { content: ''; position: absolute; width: 680px; height: 680px; border: 1px solid var(--ui-border); border-radius: 50%; left: calc(50% - 340px); top: -340px; opacity: .4; pointer-events: none; }
.home-hero__inner { position: relative; max-width: 880px; animation: home-enter .65s ease-out both; }
.home-hero h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 16px; }
.home-hero h1 span { display: block; max-width: 800px; margin: 16px auto 0; font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.home-hero .home-hero__tagline { font-size: 14px; margin-bottom: 24px; }
.home-dental-mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--ui-border); border-radius: 20px; background: var(--ui-surface); color: var(--home-accent); margin-bottom: 16px; }
.home-dental-mark svg { width: 44px; height: 44px; }
.home-signals { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; gap: 16px 24px; }
.home-signals li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ui-muted); }
.home-signals svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--home-accent); }
.home-network { margin: 0 0 48px; padding: 32px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: radial-gradient(ellipse at top, var(--ui-selected), var(--ui-surface)); }
.home-network__branches { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 48px; max-width: 880px; margin: 0 auto; }
.home-network__node, .home-network__hub { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px; position: relative; border: 1px solid var(--ui-border); background: var(--ui-surface); border-radius: 16px; }
.home-network__hub { border: 2px solid var(--home-accent); }
.home-network__hub::before, .home-network__hub::after { content: ''; position: absolute; width: 48px; height: 2px; top: 50%; background: var(--home-accent); }
.home-network__hub::before { right: 100%; }
.home-network__hub::after { left: 100%; }
.home-network__hub strong { font-size: 28px; font-weight: 600; }
.home-network__hub span { font-size: 14px; color: var(--ui-muted); }
.home-network__branches svg { width: 36px; height: 36px; color: var(--home-accent); }
.home-network__functions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; list-style: none; margin: 32px 0 16px; padding: 24px 0 0; border-top: 1px solid var(--ui-border); }
.home-network__functions li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.home-network__functions svg { width: 24px; height: 24px; color: var(--home-accent); flex-shrink: 0; }
.home-network figcaption { text-align: center; font-size: 14px; color: var(--ui-muted); }
.home-problem .home-problem__question { margin-top: 16px; font-size: 14px; }
.home-group__ai { display: flex; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ui-border); }
.home-group__ai svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--home-accent); }
.home-group__ai p { font-size: 14px; }
.home-group__ai span { display: block; color: var(--home-accent); font-weight: 500; margin-bottom: 4px; }
.home-ai .home-icon--ai { margin-bottom: 16px; }
.home-ai .home-ai__note { display: flex; gap: 12px; margin-top: 24px; padding: 16px; border: 1px solid var(--ui-border); border-radius: 12px; font-size: 14px; background: var(--ui-selected); }
.home-ai__note svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--home-accent); }
.home-hero .home-hero__intro { max-width: 620px; margin-inline: auto; font-size: 18px; }
.home-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.home-actions--start { justify-content: flex-start; }
.home-page .btn { min-height: 48px; white-space: normal; text-align: center; }
.home-page .btn svg, .home-text-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.home-hero .home-hero__audience { margin-top: 32px; font-size: 14px; }
.home-section { padding-block: 64px; }
.home-heading { margin-bottom: 32px; }
.home-heading > p:last-child:not(.home-eyebrow) { max-width: 80ch; margin-top: 16px; }
.home-grid { display: grid; gap: 24px; }
.home-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-problem { border-top: 1px solid var(--ui-border); padding-top: 24px; min-width: 0; }
.home-problem > svg { color: var(--home-accent); width: 24px; height: 24px; }
.home-ecosystem { background: var(--ui-selected); border-block: 1px solid var(--ui-border); }
.home-grid--ecosystem { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-group { display: flex; flex-direction: column; align-items: flex-start; }
.home-group .home-group__ai { margin-top: auto; }
.home-group > p, .home-group__products { margin-bottom: 24px; }
.home-card.home-group--featured { border-color: var(--home-accent); }
.home-group__products { list-style: none; padding: 0; display: grid; gap: 16px; width: 100%; }
.home-product { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; text-decoration: none; border-radius: var(--ui-radius); }
.home-product__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--ui-selected); color: var(--home-accent); }
.home-product__icon svg { width: 20px; height: 20px; }
.home-product__copy { display: grid; gap: 4px; min-width: 0; font-size: 14px; color: var(--ui-muted); overflow-wrap: anywhere; }
.home-product__copy strong { color: var(--ui-text); font-weight: 500; }
a.home-product:hover .home-product__copy strong { color: var(--home-accent); }
a.home-product:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 4px; }
.home-card { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); padding: 32px; min-width: 0; }
.home-card h3 { overflow-wrap: anywhere; }
.home-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ui-selected); color: var(--home-accent); }
.home-icon svg { width: 24px; height: 24px; }
.home-text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: 16px; color: var(--home-accent); }
.home-connection { border-block: 1px solid var(--ui-border); background: linear-gradient(110deg, var(--ui-selected), var(--ui-bg)); }
.home-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; border-block: 1px solid var(--ui-border); }
.home-flow li { position: relative; padding: 32px; }
.home-flow li + li { border-left: 1px solid var(--ui-border); }
.home-flow li + li::before { content: '\2192'; position: absolute; left: -12px; top: 32px; width: 24px; text-align: center; background: var(--ui-selected); color: var(--home-accent); }
.home-flow__group { color: var(--home-accent); font-size: 14px; font-weight: 500; }
.home-connection .home-connection__support { margin-top: 24px; }
.home-connection .home-note { margin-top: 8px; font-size: 14px; }
.home-closing { text-align: center; max-width: 720px; margin-inline: auto; }
.home-closing > p:not(.home-eyebrow) { margin: 16px 0 24px; }
@keyframes home-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
    .home-network__branches { gap: 24px; }
    .home-network__hub::before, .home-network__hub::after { width: 24px; }
    .home-network__node, .home-network__hub { padding: 16px; }
    .home-grid--ecosystem { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-card { padding: 24px; }
}
@media (max-width: 640px) {
    .home-network { padding: 24px 16px; }
    .home-network__branches { grid-template-columns: minmax(0, 1fr); max-width: 320px; }
    .home-network__hub::before, .home-network__hub::after { width: 2px; height: 24px; left: 50%; right: auto; }
    .home-network__hub::before { top: auto; bottom: 100%; }
    .home-network__hub::after { top: 100%; }
    .home-network__functions { justify-content: flex-start; gap: 16px; }
    .home-hero { padding-block: 56px 40px; }
    .home-section { padding-block: 40px; }
    .home-grid--three, .home-grid--ecosystem, .home-flow { grid-template-columns: minmax(0, 1fr); }
    .home-flow li { padding: 24px 0; }
    .home-flow li + li { border-left: 0; border-top: 1px solid var(--ui-border); }
    .home-flow li + li::before { content: '\2193'; left: auto; right: 0; top: -14px; }
    .home-actions { flex-direction: column; align-items: stretch; }
    .home-hero .home-hero__intro { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .home-hero__inner { animation: none; } }
.home-solution .home-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; color: var(--home-accent); font-weight: 500; }
.home-solution .home-link svg { width: 20px; height: 20px; }
