.switchbot-page { --sb-line: #d8e5dd; }
.switchbot-page h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.switchbot-page h3 { font-size: 1.25rem; line-height: 1.3; }
.switchbot-page > .section { padding: 72px 0; }
.switchbot-page .section-heading { max-width: 820px; margin-bottom: 34px; }
.switchbot-page .section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.switchbot-page .button-outline { color: var(--green-900); border-color: var(--green-900); background: white; }
.switchbot-page .button-outline:hover { background: var(--mint-2); }
.switchbot-page :is(a, summary):focus-visible { outline: 3px solid var(--green-700); outline-offset: 5px; }
.switchbot-page section[id] { scroll-margin-top: 110px; }
.sb-hero { padding: 66px 0 48px; }
.sb-hero-grid { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 54px; }
.sb-hero h1 { font-size: clamp(2.25rem, 4vw, 3.35rem); line-height: 1.09; max-width: 690px; }
.sb-hero .eyebrow { margin-bottom: 19px; }
.sb-lead { margin-top: 24px; font-size: 1.1rem; line-height: 1.7; }
.sb-benefit-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 23px 0; list-style: none; }
.sb-benefit-chips li { background: var(--mint-2); color: var(--green-900); border: 1px solid #d8ecdf; border-radius: 100px; padding: 6px 11px; font-size: .85rem; font-weight: 650; }
.sb-hero .hero-actions { gap: 10px; }
.sb-flow-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 19px; color: var(--green-700); font-weight: 650; font-size: .92rem; }
.sb-hardware { margin: 0; min-width: 0; text-align: center; }
.sb-hardware-label { display: flex; justify-content: center; align-items: center; gap: 13px; color: var(--green-900); font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.sb-hardware-label span { color: #719382; font-weight: 400; }
/* Frame the official hardware, excluding the retail finish samples below it. */
.sb-hardware-visual { position: relative; width: 100%; max-width: 450px; aspect-ratio: 750 / 520; margin: 14px auto 10px; overflow: hidden; }
.sb-hardware img { position: absolute; top: -13.4615%; left: 0; display: block; width: 100%; height: auto; aspect-ratio: 1; }
.sb-hardware figcaption { max-width: 450px; margin-inline: auto; }
.sb-hardware figcaption > strong, .sb-hardware-note { display: block; }
.sb-hardware figcaption strong { color: var(--ink); font-size: .95rem; }
.sb-hardware-integration { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; padding: 15px 18px; border-block: 1px solid #c4dfce; color: var(--green-900); background: var(--mint-2); font-size: .93rem; font-weight: 750; }
.sb-hardware-integration > span { color: var(--green-700); font-size: 1.35rem; font-weight: 500; }
.sb-hardware-note { margin-top: 12px; font-size: .82rem; line-height: 1.55; color: var(--text); }
.sb-access { background: var(--soft); }
.sb-workflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 36px 0 32px; padding: 0; list-style: none; }
.sb-workflow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 17px; border: 1px solid var(--sb-line); border-radius: 16px; background: white; }
.sb-workflow li:not(:last-child)::after { content: '→'; position: absolute; right: -20px; top: 42%; color: var(--green-700); font-size: 1.25rem; }
.sb-step-number { color: var(--green-700); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.sb-workflow strong { color: var(--ink); line-height: 1.3; font-size: 1rem; }
.sb-workflow li > span:last-child { font-size: .85rem; line-height: 1.5; }
.sb-example { background: #fff; border: 1px solid var(--sb-line); border-radius: 22px; padding: 26px 32px; margin: 0; }
.sb-example > figcaption { color: var(--green-900); font-size: .83rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.sb-validity { display: grid; grid-template-columns: 1fr auto 1.35fr auto 1fr; gap: 24px; align-items: center; padding: 28px 0; text-align: center; }
.sb-validity-start, .sb-validity-end, .sb-example-pin { display: flex; align-items: center; flex-direction: column; }
.sb-validity-label { color: var(--green-700); font-weight: 800; font-size: .84rem; text-transform: uppercase; letter-spacing: .09em; }
.sb-validity :is(.sb-validity-start, .sb-validity-end) strong { display: block; margin-top: 7px; color: var(--ink); font-size: 1.8rem; line-height: 1.25; }
.sb-validity time { font-size: 1.45rem; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-validity-start > span:last-child, .sb-validity-end > span:last-child { font-size: .85rem; }
.sb-validity-arrow { color: var(--green-700); font-size: 1.6rem; }
.sb-example-pin { border-radius: 16px; padding: 20px 15px; background: var(--green-900); color: #fff; }
.sb-example-pin > span:first-child { font-size: .85rem; }
.sb-example-pin strong { color: #fff; font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: .12em; line-height: 1.6; font-variant-numeric: tabular-nums; }
.sb-pin-window { color: var(--mint); font-size: .8rem; }
.sb-expiry { text-align: center; background: var(--mint-2); padding: 12px 16px; border-radius: 10px; color: var(--green-900); font-size: .95rem; font-weight: 600; }
.sb-expiry > span { margin-right: 6px; }
.sb-example-note { margin-top: 13px; font-size: .79rem; color: var(--muted); text-align: center; }
.sb-configuration { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 34px; }
.sb-configuration article { position: relative; padding: 28px; border: 1px solid var(--sb-line); border-radius: 18px; }
.sb-configuration article:not(:last-child)::after { content: '+'; position: absolute; right: -29px; top: 44%; color: var(--green-700); font-size: 1.6rem; font-weight: 600; }
.sb-component { display: inline-block; color: var(--green-700); margin-bottom: 16px; font-size: .8rem; font-weight: 800; }
.sb-configuration p, .sb-benefits p { margin-top: 12px; font-size: .96rem; line-height: 1.7; }
.sb-keypad-note { border-left: 3px solid var(--green-700); padding: 4px 0 4px 19px; margin: 28px 0; max-width: 900px; }
.sb-keypad-note strong { color: var(--ink); }
.sb-keypad-note p { margin-top: 5px; font-size: .95rem; }
.sb-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; }
.sb-benefits article { border-top: 2px solid #b9d8c7; padding-top: 23px; }
.sb-context-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 27px; color: var(--green-700); font-weight: 700; }
.sb-catalog-note { border: 1px solid var(--sb-line); border-radius: 12px; background: var(--soft); padding: 16px 20px; font-size: .94rem; }
.switchbot-page .sb-products-heading { margin: 28px 0 18px; font-size: 1.3rem; }
.switchbot-page .sb-lock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.switchbot-page .sb-keypad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.switchbot-page .tt-photo { height: 270px; }
.sb-model-actions { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.sb-text-link { color: var(--green-700); font-weight: 700; }
.sb-doors { background: var(--soft); }
.sb-doors-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 68px; align-items: center; }
.sb-doors h2 { margin: 14px 0 22px; }
.sb-doors-grid > div > p:not(.eyebrow) { margin-bottom: 26px; }
.sb-doors .sb-text-link { display: block; margin-top: 18px; }
.sb-door-checklist { padding: 30px; background: white; border: 1px solid var(--sb-line); border-radius: 20px; }
.sb-door-checklist .check-list { margin-top: 21px; }
.sb-door-checklist > p:last-child { margin: 18px 0 0 !important; font-size: .9rem; color: var(--text); }
.sb-faq-layout { display: grid; grid-template-columns: .75fr 1.4fr; gap: 64px; }
.sb-faq-layout h2 { margin: 14px 0 20px; }
.sb-faq-list { display: grid; gap: 12px; }
.sb-faq-list .faq-item { margin: 0; }
.sb-final { padding: 48px 0; background: var(--green-900); color: white; }
.sb-final .container { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.sb-final h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.sb-final p { color: var(--mint); margin-top: 12px; max-width: 700px; }
.sb-final .button { flex-shrink: 0; }
@media (max-width: 1100px) {
    .sb-hero-grid { gap: 30px; }
    .switchbot-page > .section { padding: 64px 0; }
    .sb-workflow { gap: 17px; }
    .sb-workflow li { padding: 18px 13px; }
    .sb-workflow li:not(:last-child)::after { right: -16px; }
    .sb-configuration { gap: 28px; }
    .sb-configuration article { padding: 22px; }
    .sb-configuration article:not(:last-child)::after { right: -24px; }
    .sb-faq-layout, .sb-doors-grid { gap: 35px; }
}
@media (max-width: 800px) {
    .sb-hero { padding: 42px 0 32px; }
    .sb-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .sb-hero h1 { max-width: 680px; }
    .sb-hardware { max-width: 540px; width: 100%; margin-inline: auto; }
    .switchbot-page > .section { padding: 56px 0; }
    .sb-workflow { grid-template-columns: 1fr; gap: 19px; }
    .sb-workflow li { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding: 16px 19px; }
    .sb-step-number { grid-row: span 2; padding-top: 2px; }
    .sb-workflow li:not(:last-child)::after { content: '↓'; top: auto; right: auto; left: 27px; bottom: -25px; }
    .sb-configuration, .sb-benefits, .sb-doors-grid, .sb-faq-layout { grid-template-columns: 1fr; }
    .sb-configuration { gap: 28px; }
    .sb-configuration article:not(:last-child)::after { top: auto; right: auto; left: 25px; bottom: -35px; }
    .switchbot-page .sb-keypad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-final .container { align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 540px) {
    .sb-hero h1 { font-size: 2.3rem; }
    .sb-lead { font-size: 1.03rem; }
    .sb-hero .hero-actions { flex-direction: column; align-items: stretch; }
    .switchbot-page > .section { padding: 48px 0; }
    .switchbot-page .section-heading { margin-bottom: 28px; }
    .sb-example { padding: 24px 18px; }
    .sb-validity { grid-template-columns: 1fr; gap: 13px; padding: 24px 0; }
    .sb-validity-arrow { transform: rotate(90deg); line-height: 1; }
    .sb-example-pin { width: 100%; max-width: 280px; justify-self: center; padding: 16px; }
    .sb-example-pin strong { font-size: 2.6rem; }
    .sb-validity :is(.sb-validity-start, .sb-validity-end) strong { font-size: 1.6rem; }
    .sb-example > figcaption { text-align: center; }
    .switchbot-page .sb-lock-grid, .switchbot-page .sb-keypad-grid { grid-template-columns: 1fr; }
    .sb-door-checklist { padding: 24px; }
    .sb-benefits { gap: 24px; }
    .sb-model-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
}
