@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #172126;
    --muted: #65707d;
    --paper: #F6F4EE;
    --panel: #ffffff;
    --line: #dce3df;
    --tech: #0B8F83;
    --tech-dark: #086b62;
    --warning: #C58A45;
    --night: #172126;
    --steel: #d7ded9;
    --copper: #C58A45;
    --warm: #F6F4EE;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

.page {
    min-height: 100vh;
}

.site-main {
    padding-top: 86px;
}

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(16px, 3vw, 36px);
    background: rgba(247, 248, 246, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 260px;
}

.brand-logo {
    width: clamp(168px, 18vw, 235px);
    max-height: 56px;
    height: auto;
    display: block;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.brand strong {
    display: block;
    max-width: 220px;
    color: var(--night);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.site-nav nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}

.site-nav nav a,
.account-pill {
    padding: 10px 14px;
    border-radius: 8px;
    color: #2b343d;
    font-size: 14px;
    white-space: nowrap;
}

.site-nav nav a.active {
    background: #e5f2ef;
    color: var(--tech-dark);
    font-weight: 700;
}

.site-nav nav a.nav-cta {
    background: var(--tech);
    color: #fff;
    font-weight: 800;
}

.account-pill {
    border: 1px solid var(--line);
    color: var(--muted);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement {
    padding: 12px clamp(20px, 5vw, 72px);
    background: #102028;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.product-hero {
    min-height: calc(92vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 44px;
    align-items: center;
    padding: 56px clamp(20px, 5vw, 72px) 48px;
    background: linear-gradient(135deg, #F6F4EE 0%, #edf4f1 100%);
}

.hero-brand-logo {
    width: min(360px, 82vw);
    height: auto;
    display: block;
    margin-bottom: 24px;
}

.hero-tagline {
    color: var(--night);
    font-weight: 800;
}

.hero-copy h1,
.process-head h1,
.page-head h1,
.success-page h1 {
    max-width: 760px;
    margin: 10px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy p,
.process-head p,
.page-head p,
.success-page p {
    max-width: 720px;
    color: #3e4852;
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    color: var(--tech-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-link,
.secondary-link,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--tech);
    cursor: pointer;
}

.primary-link,
.primary-button {
    background: var(--tech);
    color: #fff;
    font-weight: 800;
}

.secondary-link,
.secondary-button {
    background: #fff;
    color: var(--tech-dark);
    font-weight: 700;
}

.primary-button,
.secondary-button {
    width: 100%;
}

.device-stage {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
}

.hero-product-image {
    width: min(560px, 86vw);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(28px 34px 34px rgba(16, 24, 32, 0.2));
}

.device-shell {
    width: min(420px, 82vw);
    aspect-ratio: 0.76;
    border-radius: 34px;
    background: #f8f7f1;
    border: 1px solid #cfd8d4;
    box-shadow: 0 30px 80px rgba(16, 24, 32, 0.18), inset 0 0 0 10px #fff;
    position: relative;
}

.sensor-window {
    position: absolute;
    top: 52px;
    left: 50%;
    width: 96px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: 7px;
    background: var(--night);
}

.status-ring {
    position: absolute;
    width: 132px;
    height: 132px;
    top: 134px;
    left: 50%;
    transform: translateX(-50%);
    border: 14px solid #11a892;
    border-radius: 50%;
}

.water-line {
    position: absolute;
    left: 68px;
    right: 68px;
    bottom: 76px;
    height: 12px;
    border-radius: 999px;
    background: #1d2a33;
}

.telemetry-card {
    position: absolute;
    right: 2vw;
    bottom: 48px;
    width: 260px;
    padding: 18px;
    border-radius: 8px;
    background: #102028;
    color: #fff;
    box-shadow: 0 20px 42px rgba(16, 24, 32, 0.2);
}

.telemetry-card span,
.telemetry-card small {
    display: block;
    color: #b7c7c7;
}

.telemetry-card strong {
    display: block;
    margin: 6px 0;
    font-size: 28px;
}

.content-band,
.final-cta {
    padding: 68px clamp(20px, 5vw, 72px);
}

.muted-band {
    background: #edf2ef;
}

.section-head {
    max-width: 860px;
    margin-bottom: 24px;
}

.section-head h2,
.final-cta h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

.split-head {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.card-grid {
    display: grid;
    gap: 16px;
}

.card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.shell-showcase,
.success-note {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 8px 26px rgba(16, 24, 32, 0.05);
}

.info-card h2,
.info-card h3 {
    margin-top: 0;
}

.info-card p,
.boundary-note,
.policy-copy p,
.detail-list span,
.copy-stack p,
.check-list {
    color: #3e4852;
    line-height: 1.6;
}

.numbered {
    counter-increment: step;
}

.numbered::before {
    content: counter(step, decimal-leading-zero);
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--tech-dark);
    font-weight: 900;
}

.boundary-note {
    max-width: 980px;
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-list,
.spec-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-list.compact {
    grid-template-columns: 1fr;
}

.detail-list div,
.spec-table div {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.spec-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shell-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.shell-showcase {
    padding: 14px;
}

.shell-showcase img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    background: #f6f8f6;
}

.shell-showcase strong,
.shell-showcase span {
    display: block;
    margin-top: 8px;
}

.shell-showcase span {
    color: var(--muted);
    font-size: 13px;
}

.app-preview-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.phone-mock {
    min-height: 420px;
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 28px;
    border: 12px solid #11161c;
    border-radius: 34px;
    background: #f8fbf9;
    box-shadow: 0 22px 50px rgba(16, 24, 32, 0.16);
}

.phone-mock strong {
    font-size: 38px;
}

.phone-alert {
    padding: 14px;
    border-radius: 8px;
    background: #fff0df;
    color: #7a3e0d;
    font-weight: 700;
}

.check-list {
    padding-left: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.faq-grid.wide {
    max-width: 980px;
}

details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

.final-cta {
    text-align: center;
    background: #102028;
    color: #fff;
}

.final-cta .eyebrow {
    color: #bde9e2;
}

.product-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 28px;
    align-items: center;
}

.product-main-render {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 12px;
    background: #edf2ef;
    box-shadow: 0 20px 48px rgba(16, 24, 32, 0.12);
}

.included-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.included-list li {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf9;
}

.maker-row {
    color: inherit;
}

.consent-row {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500 !important;
}

.consent-row input {
    width: auto !important;
    min-height: auto !important;
    margin-top: 4px;
}

.text-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--tech-dark);
    font-weight: 800;
    cursor: pointer;
}

.maker-details {
    margin-top: 14px;
}

.preview-watermark {
    display: block;
    margin: -14px auto 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.policy-copy {
    max-width: 860px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 28px clamp(20px, 5vw, 72px);
    background: var(--night);
    border-top: 1px solid var(--line);
}

.site-footer p {
    max-width: 760px;
    color: #c6d2d0;
    line-height: 1.5;
}

.footer-logo {
    width: 220px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.footer-brand-line {
    color: #ffffff !important;
    font-weight: 800;
    margin-bottom: 8px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
}

.site-footer a {
    color: #e6f3f1;
    font-weight: 700;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-strip span {
    padding: 18px;
    text-align: center;
    border-right: 1px solid var(--line);
    color: #33404a;
    font-weight: 700;
}

.config-grid,
.cart-grid,
.designer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 28px clamp(20px, 5vw, 72px) 72px;
}

.post-payment-designer {
    display: grid;
    gap: 18px;
    padding: 0 clamp(20px, 5vw, 72px) 72px;
}

.design-progress,
.success-note,
.empty-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf9;
    padding: 16px;
}

.design-progress {
    display: grid;
    gap: 6px;
}

.design-progress strong {
    font-size: 20px;
}

.design-progress span,
.success-note p,
.empty-preview span {
    color: var(--muted);
    line-height: 1.55;
}

.custom-request-panel {
    display: grid;
    gap: 16px;
}

.generation-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f5f2;
    color: var(--tech-dark);
    font-weight: 800;
    white-space: nowrap;
}

.compact-button {
    max-width: 260px;
}

.compact-designer {
    padding: 0;
    grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
}

.preview-review-panel {
    min-width: 0;
}

.preview-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.preview-choice {
    display: grid;
    gap: 8px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
}

article.preview-choice {
    cursor: default;
}

.preview-choice.selected {
    border-color: var(--tech);
    box-shadow: 0 0 0 3px #dff3ef;
}

.preview-choice img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    background: #edf3f0;
}

.preview-choice span,
.preview-choice b {
    font-weight: 800;
}

.preview-choice small {
    color: var(--muted);
}

.preview-choice .compact-button {
    width: 100%;
    justify-content: center;
}

.locked-note {
    border-color: rgba(23, 33, 38, .18);
    background: rgba(23, 33, 38, .05);
}

.config-panel,
.checkout-card,
.designer-panel,
.preview-panel,
.account-card,
.empty-cart,
.loading-band,
.success-page {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 26px rgba(16, 24, 32, 0.06);
}

.config-panel h2,
.checkout-card h2,
.designer-panel h2,
.preview-panel h2 {
    margin-top: 0;
}

.product-row,
.shell-card,
.custom-callout,
.radio-row,
.check-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.product-row.selected,
.shell-card.selected {
    border-color: var(--tech);
    box-shadow: 0 0 0 3px #dff3ef;
}

.product-row small,
.shell-card small,
.radio-row small,
.custom-callout small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.app-panel p {
    color: #3e4852;
    line-height: 1.6;
}

.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.app-feature-grid span,
.selected-kit,
.mini-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf9;
}

.app-feature-grid span {
    padding: 12px;
    font-weight: 700;
    color: #26343b;
}

.shell-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shell-card {
    flex-direction: column;
    align-items: flex-start;
}

.shell-preview-image {
    width: 100%;
    aspect-ratio: 5 / 3.2;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #f8fbf9, #edf3f0);
    padding: 0;
}

.swatch {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.custom-callout {
    border-color: #c7984d;
    background: #fff7e8;
}

.custom-callout.selected {
    border-color: var(--tech);
    background: #e7f5f2;
    box-shadow: 0 0 0 3px #dff3ef;
}

.custom-choice {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 18px 0 10px;
    padding: 18px;
    border: 2px solid var(--copper);
    border-radius: 8px;
    background: #fff9ec;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(197, 138, 69, 0.16);
}

.custom-choice:hover {
    border-color: var(--tech);
    background: #f4fffc;
}

.custom-choice.selected {
    border-color: var(--tech);
    background: #e7f5f2;
    box-shadow: 0 0 0 3px #dff3ef, 0 14px 28px rgba(11, 143, 131, 0.18);
}

.choice-control {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--copper);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.custom-choice.selected .choice-control {
    background: var(--tech);
}

.choice-copy {
    display: grid;
    gap: 4px;
}

.choice-copy strong {
    font-size: 18px;
}

.choice-copy small {
    color: #47525c;
    line-height: 1.45;
}

.paid-preview-highlight {
    display: inline;
    padding: 2px 5px;
    border-radius: 5px;
    background: #fff2d8;
    color: #6d4312;
    font-weight: 900;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.custom-choice b {
    color: var(--tech-dark);
    font-size: 18px;
    white-space: nowrap;
}

.selected-note {
    margin: 0 0 12px;
    color: var(--tech-dark);
    font-weight: 800;
}

.custom-example-note {
    display: grid;
    gap: 4px;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(11, 143, 131, 0.34);
    border-left: 5px solid var(--tech);
    border-radius: 8px;
    background: #f0fbf8;
    color: #223139;
}

.custom-example-note strong {
    color: var(--tech-dark);
}

.custom-example-note span {
    color: #3e4c53;
    line-height: 1.5;
}

.custom-example-grid,
.custom-example-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.custom-example-grid article,
.custom-example-gallery article {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.custom-example-grid img,
.custom-example-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 6px;
    background: #edf3f0;
}

.custom-example-grid strong,
.custom-example-gallery strong {
    font-size: 14px;
}

.custom-example-grid span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.custom-example-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-example-gallery span {
    color: var(--muted);
    line-height: 1.5;
}

.custom-reference-case {
    align-content: start;
}

.reference-pair {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
}

.reference-pair figure {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.custom-example-grid .reference-pair img,
.custom-example-gallery .reference-pair img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f5f7f4;
    border: 1px solid rgba(23, 33, 38, 0.08);
}

.reference-pair figcaption {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-panel dl,
.device-card dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
}

.summary-panel dt,
.device-card dt {
    color: var(--muted);
}

.order-history-list {
    display: grid;
    gap: 20px;
    max-width: 1160px;
    margin: 0 auto 64px;
    padding: 0 20px;
}

.order-history-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.order-history-head,
.custom-shell-status-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.order-history-head h2 {
    margin: 4px 0;
}

.order-line-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.order-line-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.order-line-mini img,
.custom-shell-status-box img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.custom-shell-status-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(11, 143, 131, .28);
    border-radius: 8px;
    background: rgba(11, 143, 131, .07);
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    margin: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 20px;
}

.fine-print,
.upload-note {
    color: var(--muted);
    font-size: 13px;
}

.page-head,
.process-head {
    padding: 54px clamp(20px, 5vw, 72px) 22px;
}

.custom-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 clamp(20px, 5vw, 72px) 18px;
}

.flow-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.flow-step b {
    color: var(--tech);
}

.flow-step p {
    color: var(--muted);
    font-size: 14px;
}

.designer-panel label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

.designer-panel input,
.designer-panel select,
.designer-panel textarea,
.checkout-card input,
.account-card input,
.checkout-card select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.checkout-card label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

.checkout-disclosures {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf9;
    color: #3e4852;
    font-size: 13px;
    line-height: 1.45;
}

.constraint-box {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 8px;
    background: #f0f5f2;
}

.constraint-box span {
    color: #3f4b55;
}

.selected-kit {
    display: grid;
    gap: 4px;
    padding: 14px;
}

.selected-kit span {
    color: var(--muted);
}

.preview-panel {
    min-height: 520px;
}

.ai-preview-image {
    display: block;
    width: min(420px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f5f7f5;
    box-shadow: 0 16px 34px rgba(16, 24, 32, 0.12);
}

.preview-shell {
    width: min(360px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 24px;
    border-radius: 28px;
    background: #f1efe6;
    border: 1px solid #cbd4ce;
    position: relative;
    overflow: hidden;
}

.preview-shell::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    border: 2px solid color-mix(in srgb, var(--accent), transparent 35%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent), white 82%), transparent 62%);
}

.preview-lens {
    position: absolute;
    inset: 58px 88px auto;
    height: 30px;
    border-radius: 8px;
    background: #111b22;
}

.preview-port {
    position: absolute;
    left: 50%;
    bottom: 50px;
    width: 148px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #17232c;
}

.preview-badge {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.preview-shell.photorelief .preview-badge,
.preview-shell.petportrait .preview-badge {
    width: 116px;
    height: 116px;
    border-radius: 28px;
}

.preview-shell.logobadge .preview-badge {
    width: 132px;
    height: 76px;
    border-radius: 12px;
}

.preview-shell.colorway {
    background: linear-gradient(135deg, #f5f0e5 0 48%, #15394f 48% 100%);
}

.mini-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 14px;
}

.mini-summary dt {
    color: var(--muted);
}

.mini-summary dd {
    margin: 0;
    font-weight: 800;
}

.block-link {
    width: 100%;
    margin-top: 10px;
}

.preview-button {
    margin-top: 16px;
}

.cart-lines {
    display: grid;
    gap: 12px;
}

.cart-line,
.device-card,
.account-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.cart-shell-thumb {
    width: 92px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f5f7f5;
    flex: 0 0 auto;
}

.cart-line span,
.cart-line small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.line-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.line-controls input {
    width: 72px;
}

.line-controls button,
.auth-tabs button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.auth-tabs .active {
    background: #e5f2ef;
    border-color: var(--tech);
    color: var(--tech-dark);
    font-weight: 800;
}

.divider {
    text-align: center;
    color: var(--muted);
    margin: 14px 0;
}

.signed-in {
    padding: 12px;
    background: #eef5f1;
    border-radius: 8px;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px clamp(20px, 5vw, 72px) 72px;
}

.device-card {
    display: block;
}

.status-pill,
.alert-chip {
    display: inline-flex;
    margin: 14px 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e6f2ef;
    color: var(--tech-dark);
    font-size: 13px;
    font-weight: 800;
}

.alert-chip {
    background: #fff0df;
    color: var(--warning);
}

.account-card,
.empty-cart,
.loading-band,
.success-page,
.account-toolbar {
    margin: 24px clamp(20px, 5vw, 72px);
}

.error-text {
    color: #a3362c;
    font-weight: 700;
}

#blazor-error-ui {
    display: none;
}

@media (max-width: 900px) {
    .site-nav {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        width: 176px;
    }

    .brand strong {
        display: none;
    }

    .site-main {
        padding-top: 92px;
    }

    .account-pill {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav nav {
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .site-nav nav.open {
        display: flex;
    }

    .site-nav nav a {
        min-height: 44px;
    }

    .product-hero,
    .config-grid,
    .cart-grid,
    .designer-grid,
    .compact-designer,
    .custom-flow,
    .custom-example-gallery,
    .device-grid,
    .card-grid.three,
    .detail-list,
    .spec-table,
    .app-preview-grid,
    .faq-grid,
    .product-detail-head,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .trust-strip {
        grid-template-columns: 1fr 1fr;
    }

    .product-hero {
        min-height: auto;
        padding-top: 32px;
    }

    .split-head,
    .order-history-head,
    .custom-shell-status-box,
    .site-footer nav {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }

    .shell-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .telemetry-card {
        position: static;
        width: min(100%, 340px);
        margin: -42px auto 0;
    }
}

@media (max-width: 520px) {
    .hero-copy h1,
    .process-head h1,
    .page-head h1,
    .success-page h1 {
        font-size: 40px;
    }

    .shell-grid,
    .shell-strip,
    .custom-example-grid,
    .preview-choice-grid,
    .app-feature-grid {
        grid-template-columns: 1fr;
    }

    .custom-choice {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .custom-choice b {
        grid-column: 2;
    }

    .content-band,
    .final-cta {
        padding-block: 44px;
    }
}
