
:root {
    --ah-primary: #1672c4;
    --ah-primary-dark: #0f5b9f;
    --ah-ink: #17212b;
    --ah-muted: #66717d;
    --ah-bg: #f5f8fb;
    --ah-card: #ffffff;
    --ah-border: #dce4ec;
    --ah-radius: 22px;
    --ah-shadow: 0 18px 55px rgba(23, 33, 43, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ah-portal {
    margin: 0;
    background: var(--ah-bg);
    color: var(--ah-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
.ah-shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.ah-header { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--ah-border); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); }
.ah-header-inner, .ah-footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ah-brand { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 750; color: var(--ah-primary); }
.ah-brand img { max-height: 42px; max-width: 220px; }
.ah-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ah-primary); color: #fff; font-weight: 800; }
.ah-help-link { font-weight: 650; color: var(--ah-primary); text-decoration: none; }
.ah-main { padding-block: 70px; min-height: calc(100vh - 145px); }
.ah-hero { max-width: 760px; margin-bottom: 38px; }
.ah-eyebrow, .ah-pill { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; background: #e7f2fc; color: var(--ah-primary-dark); font-weight: 750; font-size: .82rem; padding: 7px 12px; }
.ah-hero h1 { font-size: clamp(2.35rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.05em; margin: 18px 0; }
.ah-hero p { color: var(--ah-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 680px; margin: 0; }
.ah-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.ah-device-card, .ah-panel, .ah-download-card, .ah-note, .ah-qr-strip, .ah-qr-card, .ah-contact-card, .ah-faq details, .ah-recommendation {
    background: var(--ah-card);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-shadow);
}
.ah-device-card { padding: 28px; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.ah-device-card:hover { transform: translateY(-4px); border-color: #9cc8ec; }
.ah-device-card.is-recommended { outline: 3px solid rgba(22,114,196,.18); }
.ah-device-icon { display: inline-grid; place-items: center; min-width: 64px; height: 42px; padding: 0 13px; background: #edf5fc; color: var(--ah-primary-dark); border-radius: 13px; font-size: .85rem; font-weight: 800; }
.ah-device-card h2, .ah-panel h2, .ah-download-card h2, .ah-qr-strip h2, .ah-contact-card h2 { margin: 20px 0 8px; font-size: 1.55rem; }
.ah-device-card p, .ah-panel p, .ah-download-card p, .ah-qr-strip p, .ah-contact-card p { color: var(--ah-muted); }
.ah-text-link { color: var(--ah-primary); font-weight: 750; }
.ah-panel, .ah-download-card, .ah-contact-card { padding: 30px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr); gap: 35px; align-items: center; margin-top: 28px; }
.ah-panel-stacked { grid-template-columns: 1fr; }
.ah-environment-form label { font-weight: 750; display: block; margin-bottom: 8px; }
.ah-input-row { display: flex; gap: 10px; }
.ah-domain-input { display: flex; min-width: 0; flex: 1; align-items: center; background: #fff; border: 1px solid #bfcbd6; border-radius: 14px; overflow: hidden; }
.ah-domain-input:focus-within { border-color: var(--ah-primary); box-shadow: 0 0 0 4px rgba(22,114,196,.12); }
.ah-domain-input input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 15px; font: inherit; }
.ah-domain-input span { color: var(--ah-muted); padding-right: 14px; white-space: nowrap; }
.ah-field-help, .ah-form-error { font-size: .9rem; margin: 8px 0 0; }
.ah-form-error { color: #b42318 !important; }
.ah-button { border: 0; border-radius: 14px; padding: 14px 18px; font: inherit; font-weight: 780; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; text-align: center; }
.ah-button-primary { background: var(--ah-primary); color: #fff; }
.ah-button-primary:hover { background: var(--ah-primary-dark); }
.ah-button-secondary { background: #edf3f8; color: var(--ah-ink); }
.ah-button-disabled { background: #dfe5ea; color: #7c8791; cursor: not-allowed; }
.ah-button-large { padding: 17px 24px; font-size: 1.05rem; }
.ah-section { margin-top: 50px; }
.ah-section > h2 { font-size: 2rem; margin-bottom: 22px; }
.ah-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: ahstep; }
.ah-steps li { counter-increment: ahstep; background: #fff; border: 1px solid var(--ah-border); border-radius: 18px; padding: 24px; }
.ah-steps li::before { content: counter(ahstep); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ah-primary); color: #fff; font-weight: 800; margin-bottom: 18px; }
.ah-steps strong, .ah-steps span { display: block; }
.ah-steps span { color: var(--ah-muted); margin-top: 6px; }
.ah-note { padding: 24px; margin-top: 26px; border-left: 5px solid var(--ah-primary); }
.ah-note p { margin-bottom: 0; color: var(--ah-muted); }
.ah-qr-strip { padding: 26px; margin-top: 28px; display: grid; grid-template-columns: 1fr 120px auto; align-items: center; gap: 24px; }
.ah-qr-strip img { width: 120px; height: 120px; border-radius: 12px; }
.ah-qr-card { max-width: 520px; padding: 34px; text-align: center; margin-inline: auto; }
.ah-qr-card img { width: min(340px, 100%); height: auto; }
.ah-faq { display: grid; gap: 14px; }
.ah-faq details { padding: 20px 22px; }
.ah-faq summary { cursor: pointer; font-weight: 760; }
.ah-faq p { color: var(--ah-muted); margin-bottom: 0; }
.ah-contact-card { margin-top: 28px; }
.ah-recommendation { padding: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.ah-recommendation strong { flex: 1; }
.ah-footer { border-top: 1px solid var(--ah-border); background: #fff; color: var(--ah-muted); }
.ah-footer a { color: var(--ah-primary); text-decoration: none; }

@media (max-width: 860px) {
    .ah-card-grid, .ah-steps { grid-template-columns: 1fr 1fr; }
    .ah-panel, .ah-download-card, .ah-contact-card { grid-template-columns: 1fr; }
    .ah-qr-strip { grid-template-columns: 1fr 110px; }
    .ah-qr-strip .ah-button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .ah-main { padding-block: 42px; }
    .ah-card-grid, .ah-steps { grid-template-columns: 1fr; }
    .ah-input-row { flex-direction: column; }
    .ah-domain-input span { font-size: .9rem; }
    .ah-qr-strip { grid-template-columns: 1fr; text-align: center; }
    .ah-qr-strip img { margin-inline: auto; }
    .ah-header-inner { min-height: 64px; }
    .ah-help-link { font-size: .9rem; }
}
@media print {
    .ah-header, .ah-footer, .ah-hero, .ah-qr-card .ah-button { display: none !important; }
    body.ah-portal { background: #fff; }
    .ah-main { padding: 0; }
    .ah-qr-card { box-shadow: none; border: 0; }
}
.ah-login-panel .ah-button { justify-self: end; }
.ah-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--ah-muted); font-size: .95rem; }
.ah-meta span:not(:last-child)::after { content: "•"; margin-left: 14px; opacity: .55; }
.ah-release-notes { margin-top: 10px; color: var(--ah-muted); }
.ah-steps-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .ah-login-panel .ah-button { justify-self: stretch; } .ah-steps-three { grid-template-columns: 1fr; } }
