:root {
    --ink: #080808;
    --paper: #fff;
    --paper-dark: #EBECEF;
    --red: #c0122f;
    --blue: #1e90ff;
    --muted: #767269;
}

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

/*body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(8, 8, 8, 0.0125) 1px, transparent 3px),
        linear-gradient(90deg, rgba(8, 8, 8, 0.0125) 1px, transparent 3px);
    background-size: 24px 24px;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
}*/

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper-dark);
    background-image:
        linear-gradient(rgba(8, 8, 8, 0.025) 1px, transparent 3px),
        linear-gradient(90deg, rgba(8, 8, 8, 0.025) 1px, transparent 3px);
    background-size: 24px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--ink);
    color: #fff;
    border-bottom: 5px solid var(--blue);
}

.header-inner {
    width: 100%;
    min-height: 80px;
    padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem 3rem;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: clamp(1.3rem, 2.25vw, 1.95rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.08em;
    white-space: nowrap;
}

.brand-accent { color: var(--red); }

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.7rem 1.6rem;
}

.site-nav a {
    position: relative;
    padding: 0.35rem 0;
    color: #efefef;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--blue); }

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-nav .nav-featured { color: var(--blue); }

.site-nav .nav-buy {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--blue);
    border-radius: 2px;
    background: var(--red);
    color: #fff;
    line-height: 1;

    box-shadow:
        3px 3px 0 rgba(30, 144, 255, 0.9),
        4px 4px 8px rgba(30, 144, 255, 0.7),
        5px 5px 16px rgba(30, 144, 255, 0.45);

    transition:
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.site-nav .nav-buy:hover,
.site-nav .nav-buy:focus-visible {
    background: var(--blue);
    color: var(--ink);

    box-shadow:
        3px 3px 0 var(--red),
        4px 4px 8px rgba(192, 18, 47, 0.7),
        5px 5px 16px rgba(192, 18, 47, 0.45);
}

.site-nav .nav-buy::after {
    content: none;
}

.brand:focus-visible,
.site-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.page {
    position: relative;
    flex: 1;
    min-height: 58vh;
    overflow: hidden;
}

.page-content {
    min-height: auto;
    padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
    overflow: visible;
}

.v1content {
    /*width: min(100%, 1300px);*/
    width: min(100%, 1200px);
    margin: 0 auto;
}

.v1content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.v1content-intro {
    max-width: 820px;
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
}

.step-section {
    --step-indent: 134px;
    padding: clamp(1.25rem, 2.25vw, 1.75rem);
    border: 1px solid #cfd1d5;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(8, 8, 8, 0.035);
}

.step-heading {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.step-number {
    margin: 0;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.controls,
.flash-step > .step-copy,
.flash-action,
.screen-carousel {
    margin: 0 var(--step-indent);
}

.controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.screen-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.screen-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 var(--step-indent) 1.1rem;
}

.screen-filter {
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    border: 1px solid #bfc1c6;
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.screen-filter:hover {
    border-color: var(--blue);
    background-color: #4d5056;
    color: var(--blue);
}

.screen-filter.is-active {
    background-color: #5f6268;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(8, 8, 8, 0.07) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(8, 8, 8, 0.07) 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0;
    color: #fff;
}

.screen-filter.is-active:hover {
    border-color: var(--blue);
    background-color: #4d5056;
    color: var(--blue);
}

.screen-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.screen-stage-preview {
    width: min(100%, 640px);
    padding: clamp(1rem, 3vw, 1.75rem);
    border-radius: 16px;
    background: linear-gradient(155deg, #34363c, #101114);
    box-shadow:
        0 22px 45px rgba(8, 8, 8, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.screen-stage-image {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid #fff;
    border-radius: 2px;
    box-sizing: border-box;
}

.carousel-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-height: 0;
    border: 1px solid #bfc1c6;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.carousel-nav:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: scale(1.06);
}

.screen-stage-info {
    text-align: center;
}

.screen-stage-label {
    margin: 0 0 0.35rem;
    color: var(--ink);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    letter-spacing: -0.02em;
}

.screen-stage-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.screen-stage-palette {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.palette-swatch {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(8, 8, 8, 0.2);
    border-radius: 50%;
    background: var(--swatch-color, #ccc);
}

.screen-thumbs {
    display: flex;
    gap: 0.9rem;
    padding-bottom: 0.2rem;
    padding-top: 0.2rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.screen-thumb {
    flex: 0 0 auto;
    width: 132px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border: 1px solid #bfc1c6;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    cursor: pointer;
    scroll-snap-align: center;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.screen-thumb:hover { border-color: #7c7e84; }

.screen-thumb.is-active {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.16);
    transform: translateY(-2px);
}

.screen-thumb img,
.screen-thumb-empty {
    width: 100%;
    aspect-ratio: 296 / 128;
    border: 1px solid #cfd1d5;
    border-radius: 4px;
    background: var(--paper-dark);
    object-fit: contain;
}

.screen-thumb-label {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.field {
    min-width: 0;
}

.field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea,
button {
    min-height: 50px;
    border-radius: 3px;
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #bfc1c6;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

input::placeholder,
textarea::placeholder { color: #96979b; }

input:hover,
select:hover,
textarea:hover { border-color: #7c7e84; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(30, 144, 255, 0.24);
    outline-offset: 2px;
    border-color: var(--blue);
}


.field-note {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 1.0rem;
    line-height: 1.45;
}

.step-copy,
.flash-action {
    max-width: 950px;
}

.flash-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.flash-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: min(100%, 220px);
    padding: 0.4rem .9rem .4rem .5rem;
    border: 2px solid #55585e;
    border-radius: 3px;

    background-color: #5f6268;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(8, 8, 8, 0.07) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(8, 8, 8, 0.07) 75%);
    background-size: 4px 4px;
    background-position:
        0 0,
        0 4px,
        4px -4px,
        -4px 0;

    color: #fff;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.flash-button-step {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
}

.flash-button:hover {
    border-color: var(--blue);
    background-color: #4d5056;
    color: var(--blue);
}

.flash-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.flash-button.is-done {
    border-color: #17643c;
}

.flash-button.is-done .flash-button-step::before {
    content: "\2713";
}

.flash-button.is-done .flash-button-step {
    font-size: 0;
}

#status {
    position: relative;
    min-height: 1.5rem;
    margin: 1.15rem 0 0;
    padding-left: 1.1rem;
    color: #3e3f43;
    font-size: 0.9rem;
    line-height: 1.5;
}

#status:not(:empty)::before {
    content: "";
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--blue);
}

#status.success { color: #17643c; }
#status.success::before { background: #17643c; }
#status.error { color: var(--red); }
#status.error::before { background: var(--red); }

.progress {
    margin-top: 1.1rem;
    padding: 1rem;
    border: 1px solid #bfc1c6;
    background: var(--paper-dark);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

#progress-percent { color: var(--blue); }

progress {
    display: block;
    width: 100%;
    height: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #cfd1d5;
    accent-color: var(--blue);
}

progress::-webkit-progress-bar { background: #cfd1d5; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }

.site-footer {
    width: 100%;
    border-top: 1px solid rgba(8, 8, 8, 0.22);
    background: var(--paper-dark);
}

.footer-inner {
    min-height: 70px;
    padding: 1.35rem clamp(1.25rem, 4vw, 4.5rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-inner p { margin: 0; }
.footer-inner p:last-child { text-align: right; }
.footer-note { color: var(--muted); font-weight: 400; }

.footer-brand {
    display: inline-flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.footer-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 150ms ease;
}

.footer-links a:hover { color: var(--blue); }

.footer-copyright {
    color: var(--muted);
    font-weight: 400;
}

@media (max-width: 1080px) {
    .header-inner { align-items: flex-start; flex-direction: column; }
    .site-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .header-inner { min-height: auto; padding-block: 1.4rem 1.6rem; gap: 1.35rem; }
    .brand { font-size: 1.5rem; }
    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.55rem 1rem;
    }
    .site-nav a { font-size: 0.95rem; white-space: normal; }
    .site-nav .nav-buy { justify-self: start; }
    .page { min-height: 45vh; }
    .page-content { min-height: auto; padding: 1.5rem 1rem 2.5rem; }
    .v1content h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
    .step-heading { grid-template-columns: 1fr; gap: 0.45rem; }
    .step-section { --step-indent: 0px; }
    .controls { grid-template-columns: 1fr; }
    .flash-buttons { flex-direction: column; align-items: stretch; }
    .flash-button { width: 100%; }
    .screen-stage { gap: 0.6rem; }
    .carousel-nav { width: 38px; height: 38px; font-size: 1.3rem; }
    .screen-thumb { width: 104px; }
    .footer-inner { grid-template-columns: 1fr auto; }
    .footer-note { display: none; }
    .footer-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.model-viewer {
    position: relative;
    width: min(100%, 1100px);
    margin: 0 auto;
    overflow: hidden;
    
    border-radius: 9px;
    
    box-shadow: 0 2px 10px rgba(8, 8, 8, 0.4);
}

#threeContainer {
    width: 100%;
    height: clamp(320px, 60vh, 720px);
    overflow: hidden;
    
}

#threeContainer canvas { display: block; }

.model-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    
}

.model-viewer-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.model-viewer-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#toggleCase,
#toggleOrbit {
    appearance: auto;
    width: 16px;
    height: 16px;
    min-height: 0;
    padding: 0;
    margin: 0;
    flex: 0 0 16px;
    accent-color: var(--blue);
}

@media (max-width: 640px) {
    #threeContainer { height: clamp(280px, 52vh, 520px); }
    .model-viewer-controls { align-items: stretch; flex-direction: column; }
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    width: min(100%, 1300px);
    margin: 0 auto;
    padding-block: clamp(0.5rem, 2vw, 1.5rem);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -140px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(192, 18, 47, 0.14), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -160px;
    right: -140px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.16), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.accent-word { color: var(--red); }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid rgba(8, 8, 8, 0.12);
    list-style: none;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-stats strong {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-text.v1content { margin: 0; }

.hero-text h1 { max-width: none; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-media .model-viewer { margin: 0; }

.hero-media {align-self: stretch;}

@media (max-width: 900px) {
    .hero-section { grid-template-columns: 1fr; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.7rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.btn::after {
    content: "\2192";
    margin-left: 0.55rem;
    transition: transform 150ms ease;
}

.btn:hover::after { transform: translateX(3px); }

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--red);
    border-color: var(--blue);
    color: #fff;
    box-shadow:
        3px 3px 0 rgba(30, 144, 255, 0.9),
        4px 4px 8px rgba(30, 144, 255, 0.5);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--blue);
    color: var(--ink);
    box-shadow:
        3px 3px 0 var(--red),
        4px 4px 8px rgba(192, 18, 47, 0.5);
}

.btn-secondary {
    background: transparent;
    border-color: #bfc1c6;
    color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
}

.btn:focus-visible { outline: 3px solid rgba(30, 144, 255, 0.24); outline-offset: 2px; }

.page-section + .page-section { 
    /*margin-top: 1rem; */
    margin-top: 2rem; 
}

.section-heading {
    margin: 0 0 1.5rem;
    color: var(--ink);
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.spec-highlight {
    display: inline-block;
    /*background: linear-gradient(100deg, #5f5a4d 40%, #e8c873 50%, #5f5a4d 60%);*/

    background: linear-gradient(
        100deg,
        var(--red) 40%,
        var(--blue) 50%,
        var(--red) 60%
    );

    background-size: 250% 100%;
    background-position: 150% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: #5f5a4d;
    -webkit-text-fill-color: transparent;
    animation: spec-shine 4s ease-in-out infinite;
}

@keyframes spec-shine {
    0%, 15% { background-position: 150% 0; }
    85%, 100% { background-position: -50% 0; }
}

.counting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.counting-card {
    padding: 1.35rem 1.5rem;
    border: 1px solid #cfd1d5;
    border-radius: 7px;
    background: var(--paper-dark);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.counting-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(8, 8, 8, 0.08);
}

.counting-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: rgba(30, 144, 255, 0.1);
    color: var(--blue);
}

.counting-icon svg { width: 20px; height: 20px; }

.counting-card h3 {
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.counting-card p {
    margin: 0;
    color: #3e3f43;
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .counting-grid { grid-template-columns: 1fr; }
}

.variety-card {
    position: relative;
    text-align: center;
}

.variety-image {
    display: block;
    width: 100%;
    aspect-ratio: 296 / 128;
    margin-bottom: 1rem;
    border: 1px solid #cfd1d5;
    border-radius: 4px;
    background: var(--paper-dark);
    object-fit: contain;
}

.variety-card .screen-stage-palette {
    margin-bottom: 0.9rem;
}


.counting-card .variety-price {
    margin: 0.9rem 0 0;
    color: var(--ink);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.steps-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.steps-list::before {
    content: "";
    position: absolute;
    top: 1.125rem;
    bottom: 1.125rem;
    left: 1.125rem;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), rgba(30, 144, 255, 0.1));
}

.steps-list li {
    position: relative;
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.steps-index {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.steps-list p {
    margin: 0.25rem 0 0;
    color: #3e3f43;
    font-size: 1rem;
    line-height: 1.6;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cfd1d5;
    font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #cfd1d5;
    text-align: left;
}

.specs-table thead th {
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.specs-table tbody th[scope="row"] {
    width: 38%;
    color: var(--ink);
    font-weight: 700;
}

.specs-table tbody td { color: #3e3f43; }

.specs-table tbody tr:last-child th,
.specs-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
    .specs-table { display: block; overflow-x: auto; }
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #cfd1d5;
    border-radius: 8px;
    background: var(--paper-dark);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.spec-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(8, 8, 8, 0.08);
}

.spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(192, 18, 47, 0.08);
    color: var(--red);
}

.spec-icon svg { width: 22px; height: 22px; }

.spec-card dt {
    margin: 0 0 0.2rem;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.spec-card dd {
    margin: 0;
    color: #3e3f43;
    font-size: 0.92rem;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .specs-grid { grid-template-columns: 1fr; }
}

.steps-list + .v1content-intro {
    max-width: none;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.faq-item {
    padding: 1rem 1.25rem;
    border: 1px solid #cfd1d5;
    border-radius: 7px;
    background: var(--paper-dark);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 800;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
    margin: 0.75rem 0 0;
    color: #3e3f43;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .hero-media #threeContainer { height: clamp(240px, 50vh, 380px); }
}


.screen-instructions .instructions-intro {
    margin: 0 0 1.25rem;
    color: #3e3f43;
    font-size: 1rem;
    line-height: 1.6;
}

.screen-instructions .instructions-ready {
    display: block;
    margin-top: 0.35rem;
    color: #17643c;
    font-weight: 700;
}

.screen-instructions .instructions-warning {
    margin: 0 0 1.5rem;
    color: var(--red);
    font-size: 1rem;
    line-height: 1.6;
}

.shipping-flag {
  display: block;
  width: 28px;
  height: auto;
  margin-top: 8px;
}

.ready-section {
    position: relative;
    overflow: hidden;
}

.ready-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--blue));
}

.feature-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    list-style: none;
}

.feature-checklist li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
}

.feature-checklist svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #17643c;
}

.ready-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.shipping-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.shipping-note .shipping-flag { margin-top: 0; }

.hw-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.hw-gallery-full {
    grid-template-columns: 1fr;
}

.hw-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hw-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #cfd1d5;
    border-radius: 6px;
    background: var(--paper-dark);
    object-fit: contain;
}

.hw-figure figcaption {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 800px) {
    .hw-gallery { grid-template-columns: 1fr; }
}

.bom-wrap {
    overflow-x: auto;
    border: 1px solid #cfd1d5;
    border-radius: 8px;
    background: #fff;
}

.bom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.bom-table thead tr { border-bottom: 2px solid #cfd1d5; }

.bom-table thead th {
    padding: 0.6rem 0.9rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.bom-table tbody tr { border-bottom: 1px solid #cfd1d5; }
.bom-table tbody tr:last-child { border-bottom: none; }
.bom-table tbody tr:hover { background: rgba(8, 8, 8, 0.025); }

.bom-table tbody td {
    padding: 0.55rem 0.9rem;
    vertical-align: middle;
    line-height: 1.4;
}

.bom-table td.qty {
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--red);
    font-weight: 700;
}

.bom-table td.designator {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: var(--muted);
}

.bom-table td.value { font-weight: 600; }

.bom-table td.footprint {
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    color: var(--muted);
}

.bom-table td.lcsc {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.bom-table td.bom-pending {
    padding: 1.25rem 0.9rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
}

.buy-link {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    border: 1px solid #cfd1d5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 150ms ease, color 150ms ease;
}

.buy-link:hover { border-color: var(--blue); color: var(--blue); }

.repo-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #cfd1d5;
    border-radius: 8px;
    background: var(--paper-dark);
}

.repo-icon { flex-shrink: 0; }

.repo-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.repo-content strong {
    color: var(--ink);
    font-size: 1rem;
}

.repo-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.repo-link {
    width: fit-content;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.repo-link:hover { color: var(--blue); }

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .repo-card { align-items: flex-start; }
}

/* ---- Contact page ---- */

.contact-info-copy {
    margin: 0 0 1.5rem;
    color: #3e3f43;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-email {
    color: var(--red);
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.contact-email:hover { color: var(--blue); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field-optional {
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.contact-submit { align-self: flex-start; }

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.flash-messages {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.flash-message {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.flash-success {
    background: rgba(23, 100, 60, 0.1);
    color: #17643c;
}

.flash-error {
    background: rgba(192, 18, 47, 0.08);
    color: var(--red);
}

/* ---- Admin ---- */

.admin-header .site-nav a {
    font-size: 0.9rem;
}

.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(2rem, 8vh, 5rem);
}

.admin-login-card {
    width: min(100%, 380px);
}

.admin-login-card form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.admin-comments-wrap { font-size: 0.9rem; }

.admin-comment-message {
    max-width: 420px;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-comment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-comment-actions form { margin: 0; }

.admin-comment-actions button {
    min-height: 0;
    width: 100%;
    background: none;
    cursor: pointer;
}

.build-log-table tbody td {
    padding: 0.35rem 0.9rem;
    line-height: 1.25;
}

.build-log-fields {
    font-size: 0.85rem;
    color: var(--muted);
}

.build-log-fields strong { color: var(--ink); font-weight: 600; }

tr.is-unread { background: rgba(30, 144, 255, 0.045); }

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-unread {
    background: rgba(30, 144, 255, 0.12);
    color: var(--blue);
}

.status-read {
    background: rgba(8, 8, 8, 0.07);
    color: var(--muted);
}

.admin-pagination {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.admin-empty {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---- Terms of service ---- */

.tos-updated {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tos-copy {
    margin: 0 0 0.9rem;
    color: #3e3f43;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tos-copy:last-child { margin-bottom: 0; }

.tos-disclaimer {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #cfd1d5;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
