@import url('https://fonts.googleapis.com');
:root {
    --ink: #111111;
    --muted: #2b2b2b;
    --line: #111111;
    --paper: #ffffff;
    --bg: #ffffff;
    --link: #1d4ed8;
    --page-gap: clamp(8px, 0.8vw, 12px);
    --page-pad: clamp(6px, 0.65vw, 10px);
    --panel-pad: clamp(16px, 1.1vw, 22px);
    --media-width: 100%;
    --video-trigger-position: absolute;
    --video-trigger-left: clamp(12px, 1.2vw, 18px);
    --video-trigger-top: 50%;
    --video-trigger-right: auto;
    --video-trigger-bottom: auto;
    --video-trigger-transform: translate(0, -50%);
    --video-trigger-hover-transform: translate(2px, -50%);
    --video-trigger-radius: 50px;
    --video-trigger-size: 60px;
    --video-trigger-width: 50px;
    --video-trigger-margin: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100svh;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 55%, #ffffff 100%);
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

body.quote-open {
    overflow: hidden;
}

body.page-message-open {
    overflow: hidden;
}

.sheet {
    width: 100vw;
    max-width: 100vw;
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: var(--page-gap);
    padding: var(--page-pad);
    position: relative;
    transform: scale(var(--scale, 1));
    transform-origin: top left;
}

.panel {
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 26px;
    padding: var(--panel-pad);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    min-height: 0;
}

.panel.left {
    padding: 12px;
}

.panel.spec,
.panel.features {
    padding: 12px 16px;
    
}

.panel.model {
    padding: 12px 16px 10px;
}

.left {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    align-items: center;
    gap: var(--page-gap);
    min-height: 0;
    height: 100%;
}

.scale-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 8px;
    justify-self: start;
    align-self: center;
    flex-direction: column;
    align-items: flex-start;
}

.scale-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.scale-option {
    border: 2px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.scale-option.is-active {
    background: #e5efff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.scale-option:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.35);
    outline-offset: 2px;
}

.photo-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    border-radius: 20px;
    overflow: hidden;
}

.media-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.media-shell {
    width: 100%;
    height: 100%;
    overflow: hidden; /* required for clean crop */
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* IMPORTANT */
    object-position: center;  /* crop from center */
}

.product-photo.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.product-video {
    position: absolute;
    inset: 0;
    margin: auto;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    background: #000000;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-video.is-visible {
    display: block;
    width: 100%;
    height: 100%;
}

.video-trigger {
    position: var(--video-trigger-position);
    left: var(--video-trigger-left);
    right: var(--video-trigger-right);
    top: var(--video-trigger-top);
    bottom: var(--video-trigger-bottom);
    transform: var(--video-trigger-transform);
    display: grid;
    align-items: center;
    justify-items: center;
    width: var(--video-trigger-size);
    height: var(--video-trigger-size);
    padding: 0;
    border: 2px solid var(--line);
    background: var(--paper);
    border-radius: var(--video-trigger-radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
    z-index: 5;
    width: var(--video-trigger-width);
    margin: var(--video-trigger-margin);
}

.video-trigger::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 16px solid var(--ink);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.video-trigger:hover {
    transform: var(--video-trigger-hover-transform);
}

.video-trigger:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.35);
    outline-offset: 2px;
}

.video-thumb {
    display: none;
}

.video-label {
    display: none;
}

.caption {
    font-size: clamp(30px, 2vw, 42px);
    font-weight: 700;
    text-align: center;
}

.right {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: var(--page-gap);
    min-height: 0;
    height: 100%;
}

.model {
    text-align: center;
    display: grid;
    align-content: start;
    gap: 4px;
}

.model h1 {
    font-size: clamp(22px, 1.35vw, 30px);
    font-weight: 700;
    line-height: 1.15;
}

.model-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-row h1 {
  margin: 0;
}

.model-sub {
  margin-top: 6px;
  color: #555;
}

.model-description {
    margin-top: 0;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 400;
}

.spec h2,
.features h2 {
    font-size: clamp(10px, 1.0vw, 15px);
    margin-bottom: 8px;
}

.spec-list,
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: clamp(10px, 0.9vw, 12px);
    color: var(--muted);
    line-height: 1.28;
    align-content: start;
}

.spec-list strong,
.feature-list strong {
    color: var(--ink);
}

.spec,
.features {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.spec-list,
.feature-list {
    flex: 1;
}

.sublist {
    margin-left: 10px;
    display: grid;
    gap: 6px;
}

.sublist p::before {
    content: "- ";
}

.link-line {
    margin-top: 6px;
    font-weight: 600;
}

a {
    color: var(--link);
    text-decoration: none;
    font-weight: 700;
}

a:hover {
    text-decoration: underline;
}

.premium {
    margin-top: auto;
    font-size: clamp(18px, 1.05vw, 24px);
    font-weight: 700;
    text-align: center;
}

.bluetooth-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.quote-cta {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.lead-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lead-button,
.quote-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(12px, 0.68vw, 14px);
    font-weight: 700;
    padding: 9px 16px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.lead-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    text-decoration: none;
    cursor: pointer;
}

.lead-button-whatsapp {
    background: linear-gradient(135deg, #0f9d58, #0b7d46);
}

.lead-button-call,
.quote-button {
    background: linear-gradient(135deg, #111111, #2b2b2b);
}

.quote-button {
    cursor: pointer;
}

.info-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(12px, 0.68vw, 14px);
    font-weight: 700;
    padding: 9px 16px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
}

.lead-button:hover,
.quote-button:hover,
.info-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.lead-button:focus-visible,
.quote-button:focus-visible,
.quote-close:focus-visible,
.quote-secondary:focus-visible,
.quote-submit:focus-visible,
.quote-field input:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.3);
    outline-offset: 2px;
}

.quote-helper {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.password-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(10px);
}

.password-overlay[hidden] {
    display: none !important;
}

.password-dialog {
    position: relative;
    width: min(420px, 100%);
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.password-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-close:hover {
    background: #f5f5f5;
    border-radius: 50%;
}

.password-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--ink);
}

.password-content p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.password-form {
    display: grid;
    gap: 14px;
}

.password-form input {
    width: 100%;
    border: 2px solid #d9d9d9;
    border-radius: 14px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #ffffff;
}

.password-form input:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.password-status {
    min-height: 20px;
    font-size: 13px;
    color: var(--muted);
}

.password-status.is-error {
    color: #b42318;
}

.password-status.is-success {
    color: #027a48;
}

.password-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #111111;
    color: #ffffff;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.password-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.password-submit:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.3);
    outline-offset: 2px;
}

.password-submit[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(10px);
}

.quote-overlay[hidden] {
    display: none !important;
}

.quote-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.quote-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: #111111;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quote-copy {
    padding-right: 90px;
}

.quote-copy h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.quote-copy p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.quote-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.quote-field {
    display: grid;
    gap: 6px;
}

.quote-field span {
    font-size: 13px;
    font-weight: 700;
}

.quote-field input {
    width: 100%;
    border: 2px solid #d9d9d9;
    border-radius: 14px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #ffffff;
}

.quote-field input[readonly] {
    background: #f5f7fb;
    color: #4b5563;
}

.quote-status {
    min-height: 20px;
    font-size: 13px;
    color: var(--muted);
}

.quote-status.is-error {
    color: #b42318;
}

.quote-status.is-success {
    color: #027a48;
}

.quote-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-secondary,
.quote-submit {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.quote-secondary {
    background: #e5e7eb;
    color: #111111;
}

.quote-submit {
    background: #111111;
    color: #ffffff;
}

.quote-submit[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.page-message {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.page-message[hidden] {
    display: none !important;
}

.page-message-card {
    width: min(560px, 100%);
    background: #ffffff;
    border: 2px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
}

.page-message-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--link);
}

.page-message-card h1 {
    margin-top: 10px;
    font-size: 32px;
    line-height: 1.15;
}

.page-message-body {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.page-message-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
}

.page-message-link:hover {
    text-decoration: none;
}

@media (max-width: 980px) {
    body {
        overflow: auto;
        min-width: 100svw;
        min-height: 200svh;
    }
    .sheet {
        gap: 12px;
        grid-template-columns: 1fr;
    }
    .panel {
        border-radius: 20px;
        padding: 16px;
    }
    :root {
        --media-width: min(460px, 88%);
        --video-trigger-position: absolute;
        --video-trigger-left: 12px;
        --video-trigger-top: 50%;
        --video-trigger-right: auto;
        --video-trigger-bottom: auto;
        --video-trigger-transform: translate(0, -50%);
        --video-trigger-hover-transform: translate(2px, -50%);
        --video-trigger-radius: 50px;
        --video-trigger-size: 60px;
        --video-trigger-width: 50px;
        --video-trigger-margin: 0;
    }
    .lead-actions {
        width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
        overflow: auto;
        align-items: flex-start;
    }
    :root {
        --mobile-left-height: clamp(420px, 75svh, 640px);
        --mobile-model-height: clamp(90px, 18svh, 180px);
        --media-width: min(520px, 96%);
    }
    .sheet {
        display: flex;
        flex-direction: column;
        min-height: 100svh;
        height: auto;
        gap: 12px;
        padding: 10px;
    }
    .left {
        grid-template-rows: minmax(0, 1fr) auto;
        min-height: var(--mobile-left-height);
        height: auto;
        gap: 12px;
    }
    .panel {
        padding: 14px;
    }
    .photo-frame {
        height: auto;
    }
    .product-photo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 85vh; /* safer for header space */
    object-fit: contain;
    }
    .product-video {
        max-width: 100%;
        max-height: 72svh;
    }
    :root {
        --video-trigger-position: absolute;
        --video-trigger-left: 10px;
        --video-trigger-top: 50%;
        --video-trigger-right: auto;
        --video-trigger-bottom: auto;
        --video-trigger-transform: translate(0, -50%);
        --video-trigger-hover-transform: translate(2px, -50%);
        --video-trigger-radius: 50px;
        --video-trigger-size: 60px;
        --video-trigger-width: 50px;
        --video-trigger-margin: 0;
    }
    .caption {
        font-size: 20px;
        margin-top: auto;
        align-self: end;
    }
    .model h1 {
        font-size: 18px;
    }
    .panel.model {
        min-height: var(--mobile-model-height);
        display: grid;
        align-content: start;
    }
    .model-sub,
    .spec-list,
    .feature-list {
        font-size: 12px;
        line-height: 1.35;
    }
    .spec-list,
    .feature-list {
        grid-template-columns: 1fr;
    }
    .premium {
        font-size: 18px;
        margin-top: 10px;
    }
    .lead-actions {
        flex-direction: column;
    }
    .lead-button,
    .quote-button {
        width: 100%;
    }
    .page-message-card {
        padding: 22px 18px;
    }
    .page-message-card h1 {
        font-size: 26px;
    }
    .quote-dialog {
        border-radius: 22px;
        padding: 18px;
    }
    .quote-copy {
        padding-right: 0;
        margin-top: 42px;
    }
    .right {
        display: contents;
    }
    .right {
        gap: 12px;
    }
    .panel.spec {
        margin-top: auto;
    }
    .panel.spec h2 {
        margin-bottom: 0;
    }
    .spec-list {
        margin-top: clamp(10px, 10svh, 90px);
    }
}

@media (max-height: 700px) and (min-width: 601px) {
    .panel {
        padding: 2px;
    }
    .spec-list,
    .feature-list {
        font-size: 12px;
        line-height: 1.3;
        gap: 6px;
    }
    .caption {
        font-size: 20px;
    }
    .model h1 {
        font-size: 18px;
    }
    .quote-actions {
        justify-content: stretch;
    }
    .quote-secondary,
    .quote-submit {
        width: 100%;
    }
}
