/* ------------------------------------------------------------------ *
 * Sucali Lab Brochure Studio — light glassmorphism theme
 * ------------------------------------------------------------------ */

:root {
    --radius: 16px;
    --bg: #f4f9fb;
    --fg: #1e293b;
    --muted: #64748b;
    --border: #dbe7ee;
    --primary: #0d9488;
    --primary-strong: #0e7490;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --line: rgba(15, 23, 42, 0.06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
dt {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

/* ------------------------------------------------------------------ */
/* Glass surface toolkit                                               */
/* ------------------------------------------------------------------ */
.glass {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.7) inset,
        0 18px 50px -28px rgba(15, 23, 42, 0.35);
}

.glass-soft {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 36px -26px rgba(15, 23, 42, 0.3);
}

.panel {
    border-radius: 28px;
    padding: 32px;
}

.panel-tight {
    border-radius: 18px;
    padding: 18px;
}

.center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

.muted.sm {
    font-size: 11px;
    line-height: 1.5;
}

.muted.xs {
    font-size: 11px;
}

.upper {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.kicker {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary-strong);
}

.num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-strong);
}

.ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.ico.accent {
    color: var(--primary-strong);
}

/* ------------------------------------------------------------------ */
/* Buttons + form controls                                             */
/* ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

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

.btn-lg {
    padding: 13px 22px;
    font-size: 14px;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-image: linear-gradient(90deg, #0d9488, #0e7490);
    color: #fff;
    box-shadow: 0 18px 40px -18px rgba(13, 148, 136, 0.7);
}

.btn-primary:hover {
    box-shadow: 0 22px 46px -18px rgba(13, 148, 136, 0.8);
}

.btn-outline {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.6);
    color: var(--slate-700);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-dark {
    background: var(--slate-900);
    color: #fff;
}

.btn-dark:hover {
    background: var(--slate-800);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-600);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.6);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: var(--slate-600);
    cursor: pointer;
}

.field {
    display: block;
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-bottom: 6px;
}

.input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--fg);
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.alert {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0 0;
}

.alert-error {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(254, 226, 226, 0.8);
    color: #991b1b;
}

.alert-ok {
    border: 1px solid rgba(13, 148, 136, 0.3);
    background: rgba(204, 251, 241, 0.8);
    color: #115e59;
}

/* ------------------------------------------------------------------ */
/* Ambient light                                                       */
/* ------------------------------------------------------------------ */
.ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
}

.orb-teal {
    top: -160px;
    right: -8%;
    width: 520px;
    height: 520px;
    background: rgba(45, 212, 191, 0.3);
}

.orb-cyan {
    bottom: -18%;
    left: -8%;
    width: 560px;
    height: 560px;
    background: rgba(34, 211, 238, 0.22);
}

.orb-sky {
    left: 35%;
    top: 30%;
    width: 380px;
    height: 380px;
    background: rgba(186, 230, 253, 0.3);
}

body.landing,
body.auth,
body.dashboard {
    background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 45%, #f0fdfa 100%);
}

/* ------------------------------------------------------------------ */
/* Landing                                                             */
/* ------------------------------------------------------------------ */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.brand-chip {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}

.brand-chip-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-chip-sub {
    margin-left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary);
}

.hero {
    padding: 40px 0 64px;
}

.reveal {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    animation: rise 0.6s ease both;
}

.reveal-delay {
    animation: rise 0.7s ease 0.15s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.badge-outline {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #0f766e;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin-top: 22px;
    font-size: clamp(32px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.grad-text {
    background-image: linear-gradient(90deg, #0d9488, #0e7490, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin: 20px auto 0;
    max-width: 560px;
    font-size: 16px;
    color: var(--slate-600);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-preview {
    position: relative;
    max-width: 900px;
    margin: 56px auto 0;
}

.glass-frame {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    padding: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 90px -40px rgba(15, 23, 42, 0.4);
}

.preview-inner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.preview-inner img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.preview-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(207, 250, 254, 0.6), rgba(255, 255, 255, 0.3) 55%, rgba(204, 251, 241, 0.6));
}

.preview-caption {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    padding: 26px;
    backdrop-filter: blur(20px);
}

.preview-title {
    margin-top: 4px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.preview-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--slate-600);
}

.float-chip {
    position: absolute;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 16px;
    box-shadow: 0 16px 34px -22px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    display: none;
}

.float-chip b {
    display: block;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--primary-strong);
}

.float-chip small {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate-500);
}

.float-chip--left {
    left: -24px;
    top: 64px;
    transform: rotate(-6deg);
}

.float-chip--right {
    right: -24px;
    bottom: 64px;
    transform: rotate(5deg);
}

@media (min-width: 900px) {
    .float-chip {
        display: block;
    }
}

.section {
    padding: 40px 0;
}

.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .feature-card.span-2 {
        grid-column: span 2;
    }
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
}

.feature-glow {
    position: absolute;
    right: -40px;
    top: -64px;
    width: 200px;
    height: 160px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.25);
    filter: blur(60px);
}

.feature-icon {
    position: relative;
    display: inline-flex;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.feature-icon.large {
    font-size: 22px;
    padding: 12px;
}

.feature-card h3 {
    position: relative;
    font-size: 16px;
    font-weight: 700;
}

.feature-card p {
    position: relative;
    margin-top: 8px;
    font-size: 14px;
    color: var(--slate-600);
}

.marquee-shell {
    overflow: hidden;
    border-radius: 18px;
    padding: 12px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.marquee-chunk {
    display: flex;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    margin-right: 32px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--slate-600);
}

.diamond {
    color: #5eead4;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.panel-head {
    max-width: 640px;
}

.panel-title {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.panel-title.sm {
    font-size: 17px;
    margin-top: 0;
}

.theme-grid {
    margin-top: 28px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
    .theme-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.mini-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    backdrop-filter: blur(12px);
}

.swatch {
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.mini-title {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
}

.mini-sub {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
}

.layout-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.layout-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 16px;
}

.layout-icon {
    display: inline-flex;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    color: var(--primary);
}

.split {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 860px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
}

.page-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-600);
}

.page-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.photo-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-pair img {
    width: 100%;
    height: 176px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.5);
}

.photo-pair img:last-child {
    margin-top: 24px;
}

.step-grid {
    margin-top: 32px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .step-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    border-radius: 18px;
    padding: 24px;
}

.step-card .num {
    font-size: 14px;
}

.step-card h3 {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
}

.step-card p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--slate-600);
}

.trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500);
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding: 32px 0;
    text-align: center;
    font-size: 12px;
    color: var(--slate-500);
}

.footer a {
    font-weight: 600;
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Auth                                                                */
/* ------------------------------------------------------------------ */
.auth-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 1;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 390px;
    border-radius: 20px;
    padding: 28px;
    z-index: 1;
}

.auth-head {
    text-align: center;
    margin-bottom: 18px;
}

.auth-logo {
    margin: 0 auto 12px;
    border-radius: 12px;
}

.auth-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--slate-900);
}

.auth-form {
    margin-top: 8px;
}

.auth-switch {
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--slate-500);
}

.auth-switch a {
    font-weight: 700;
    color: var(--primary-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 18px 0;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--border);
}

.divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    padding: 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--slate-500);
}

.auth-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 11px;
    color: var(--slate-500);
}

/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */
.dashboard {
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.dash-head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.page-title {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.dash-actions {
    display: flex;
    gap: 8px;
}

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

@media (min-width: 700px) {
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    border-radius: 18px;
    padding: 20px;
}

.stat-dot {
    color: var(--primary);
}

.stat-value {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
}

.stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--slate-500);
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.outline-grid {
    margin-top: 16px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

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

@media (min-width: 1000px) {
    .outline-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.outline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--slate-700);
}

.pill-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-600);
    backdrop-filter: blur(6px);
}

.export-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    transition: background 0.15s ease;
}

.export-row:hover {
    background: rgba(255, 255, 255, 0.85);
}

.export-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-700);
}

.export-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--slate-500);
}

.install-log {
    margin-top: 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--slate-600);
}

.install-log li {
    padding: 4px 0;
    border-bottom: 1px dashed var(--line);
}

/* ------------------------------------------------------------------ */
/* Builder                                                             */
/* ------------------------------------------------------------------ */
body.builder {
    background: #eef2f7;
}

.builder-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .builder-shell {
        grid-template-columns: 350px 1fr;
        height: 100vh;
        overflow: hidden;
    }
}

.studio-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    overflow-y: auto;
}

.studio-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.studio-title {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.signed-in {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-500);
}

.panel-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--slate-500);
    margin-bottom: 6px;
}

.theme-picker,
.layout-picker {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.theme-picker {
    grid-template-columns: 1fr 1fr;
}

.span-2 {
    grid-column: span 2;
}

.layout-picker {
    grid-template-columns: 1fr;
}

.theme-option,
.layout-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.2s ease;
}

.theme-option:hover,
.layout-option:hover {
    background: rgba(255, 255, 255, 0.75);
}

.theme-option.is-selected,
.layout-option.is-selected {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: 0 0 0 1px var(--bk-accent, #0d9488), 0 10px 24px -16px rgba(15, 23, 42, 0.5);
}

.swatch-dot {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.layout-option .layout-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    color: var(--slate-500);
    padding: 0;
}

.layout-option.is-selected .layout-icon {
    color: var(--bk-accent, #0d9488);
}

.theme-meta {
    min-width: 0;
}

.theme-name {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--slate-800);
}

.theme-hint {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
}

.check {
    margin-left: auto;
    font-weight: 700;
    color: var(--bk-accent, #0d9488);
}

.slot-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.slot {
    margin: 0;
}

.slot-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.slot-label:hover {
    border-color: rgba(45, 212, 191, 0.6);
    background: rgba(255, 255, 255, 0.75);
}

.slot-label img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
}

.slot-name {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-600);
}

.slot-upload {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #0d9488;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.slot-label:hover .slot-upload {
    opacity: 1;
}

.slot-custom {
    position: absolute;
    left: 8px;
    top: 8px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.9);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
}

.slot-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.share-box {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.share-box a {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.jump-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.jump-btn {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--slate-600);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.jump-btn:hover {
    background: rgba(255, 255, 255, 0.85);
}

.jump-btn.is-active {
    background: #fff;
    color: var(--bk-accent, #0d9488);
    box-shadow: 0 0 0 1px var(--bk-accent, #0d9488);
}

.preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 28px;
    background-image: linear-gradient(
        to bottom,
        var(--bk-wash-a, rgba(207, 250, 254, 0.6)),
        rgba(255, 255, 255, 0.35) 45%,
        var(--bk-wash-b, rgba(204, 251, 241, 0.5))
    );
}

.preview-head {
    display: flex;
    width: 100%;
    max-width: 860px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.preview-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.preview-doc {
    width: 794px;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Brochure document                                                   */
/* ------------------------------------------------------------------ */
.brochure-document {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.brochure-page {
    position: relative;
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    background: #fff;
    color: var(--slate-800);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 24px 48px -24px rgba(15, 23, 42, 0.25);
    font-family: var(--font);
}

.bk-accent {
    color: var(--bk-accent, #0d9488);
}

.bk-accent-strong {
    color: var(--bk-accent-strong, #0e7490);
}

.bk-gradient-text {
    background-image: linear-gradient(
        90deg,
        var(--bk-accent, #0d9488),
        var(--bk-accent-strong, #0e7490),
        var(--bk-accent, #0d9488)
    );
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.bk-backdrop {
    position: absolute;
    inset: 0;
}

.bk-cover-scrim {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.2) 45%, transparent);
}

.bk-cover-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-page-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 40px 64px;
}

.bk-foot {
    position: absolute;
    bottom: 24px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--slate-400);
}

.bk-foot--left {
    left: 40px;
}

.bk-foot--right {
    right: 40px;
    font-family: var(--mono);
    letter-spacing: 0.2em;
}

.bk-watermark {
    position: absolute;
    right: 24px;
    top: 8px;
    font-family: var(--mono);
    font-size: 190px;
    font-weight: 900;
    line-height: 1;
    color: var(--bk-accent, #0d9488);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}

.bk-kicker {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--bk-accent, #0d9488);
}

.bk-kicker.is-deep {
    color: color-mix(in srgb, var(--bk-accent, #0d9488) 45%, white);
}

.bk-h1 {
    margin-top: 12px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.bk-h1--lg {
    font-size: 48px;
    line-height: 1.05;
}

.bk-h2 {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.bk-h2--xl {
    font-size: 36px;
}

.bk-lead {
    margin-top: 12px;
    max-width: 620px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--slate-600);
}

.bk-lead--lg {
    max-width: 560px;
    font-size: 13.5px;
}

.bk-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bk-card-title {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--slate-900);
}

.bk-card-desc {
    font-size: 11px;
    line-height: 1.6;
    color: var(--slate-600);
}

.bk-card-desc--sm {
    font-size: 10.5px;
}

.bk-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-photo-card {
    overflow: hidden;
    padding: 0;
}

.bk-thumb {
    width: 96px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
}

.bk-mini-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--slate-500);
}

.bk-mini-label--gap {
    margin-top: 12px;
}

.bk-mono-accent {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--bk-accent-strong, #0e7490);
}

/* Cover — shared brand lockup */
.bk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-brand-icon {
    display: inline-flex;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    padding: 10px;
    backdrop-filter: blur(12px);
}

.bk-brand-icon svg {
    width: 20px;
    height: 20px;
    color: var(--bk-accent, #0d9488);
}

.bk-brand-name {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--slate-900);
}

.bk-brand-sub {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--bk-accent, #0d9488);
}

.bk-cover-body {
    justify-content: space-between;
}

.bk-cover-main--panel {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 96px;
}

.bk-cover-copy {
    max-width: 560px;
}

.bk-hi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bk-hi-card {
    padding: 12px 16px;
}

.bk-hi-value {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--bk-accent-strong, #0e7490);
}

.bk-hi-label {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate-600);
}

/* Cover — split variant */
.bk-cover-split-photo {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42%;
    overflow: hidden;
}

.bk-cover-split-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.35), transparent);
}

.bk-cover-split-rule {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-image: linear-gradient(180deg, var(--bk-accent, #0d9488), var(--bk-accent-strong, #0e7490));
}

.bk-cover-split-badge {
    position: absolute;
    right: 28px;
    bottom: 64px;
    padding: 16px 20px;
}

.bk-cover-body .bk-cover-main {
    max-width: 62%;
}

.bk-cover-foot {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 16px;
}

.bk-cover-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--slate-900);
}

.bk-cover-tag {
    margin-top: 2px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--bk-accent, #0d9488);
}

/* About */
.bk-about-grid {
    margin-top: 24px;
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
}

.bk-about-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-about-point {
    display: flex;
    gap: 12px;
    padding: 16px;
    flex: 1;
}

.bk-num {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--bk-accent, #0d9488);
}

.bk-about-cards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bk-about-cards .bk-card {
    padding: 16px;
}

/* Capabilities */
.bk-cap-grid {
    margin-top: 24px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bk-cap-card {
    overflow: hidden;
    padding: 0;
}

.bk-cap-photo {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bk-cap-photo-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1), transparent);
}

.bk-range-tag {
    position: absolute;
    left: 12px;
    bottom: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.65);
    padding: 4px 10px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--bk-accent-strong, #0e7490);
    backdrop-filter: blur(12px);
}

.bk-cap-body {
    padding: 16px;
}

.bk-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bk-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bk-cap-list {
    margin-top: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-cap-list-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    overflow: hidden;
    padding: 0;
    flex: 1;
}

.bk-cap-list-photo {
    position: relative;
    width: 172px;
    flex-shrink: 0;
    overflow: hidden;
}

.bk-cap-list-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45));
}

.bk-cap-list-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 12px 20px 12px 0;
}

.bk-cap-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.bk-cap-list-head .bk-card-title {
    font-size: 14.5px;
}

.bk-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 10px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--bk-accent-strong, #0e7490);
}

.bk-cap-list-body .bk-card-desc {
    margin-top: 6px;
    font-size: 11.5px;
}

.bk-spec-hint {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate-500);
}

.bk-cap-masonry {
    margin-top: 24px;
    flex: 1;
    columns: 2;
    column-gap: 16px;
}

.bk-cap-masonry > .bk-card {
    display: block;
    margin-bottom: 16px;
    break-inside: avoid;
}

.bk-note {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-top: 16px;
}

/* Discipline pages */
.bk-disc-head {
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bk-disc-icon {
    display: inline-flex;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.55);
    padding: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.bk-disc-icon svg {
    width: 28px;
    height: 28px;
    color: var(--bk-accent, #0d9488);
}

.bk-disc-grid {
    margin-top: 20px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 20px;
}

.bk-disc-photo {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
}

.bk-disc-range {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    backdrop-filter: blur(12px);
}

.bk-disc-range .bk-mono-accent {
    font-size: 15px;
}

.bk-specs-card {
    padding: 20px;
}

.bk-specs-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--slate-500);
}

.bk-specs {
    margin-top: 12px;
}

.bk-spec {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.bk-spec:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.bk-spec dt {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate-500);
}

.bk-spec dd {
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--slate-800);
}

.bk-shield {
    display: inline-flex;
    flex-shrink: 0;
}

.bk-shield svg {
    width: 16px;
    height: 16px;
    color: var(--bk-accent, #0d9488);
}

/* Facilities */
.bk-fac-hero {
    position: relative;
    width: 100%;
    height: 220px;
}

.bk-fac-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.1), transparent);
}

.bk-fac-hero-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 8px 16px;
}

.bk-fac-hero-strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-900);
}

.bk-fac-hero-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    padding: 12px;
    backdrop-filter: blur(12px);
}

.bk-fac-hero-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bk-accent-strong, #0e7490);
}

.bk-fac-cards {
    margin-top: 16px;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bk-fac-cards .bk-card {
    padding: 20px;
}

.bk-fac-rows {
    margin-top: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-fac-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    flex: 1;
}

.bk-fac-row .bk-fac-head {
    width: 236px;
    flex-shrink: 0;
}

.bk-fac-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-fac-icon {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    backdrop-filter: blur(6px);
}

.bk-fac-icon svg {
    width: 20px;
    height: 20px;
    color: var(--bk-accent, #0d9488);
}

.bk-fac-sub {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--bk-accent, #0d9488);
}

.bk-fac-head + .bk-card-desc {
    margin-top: 12px;
}

/* Industries */
.bk-ind-grid {
    margin-top: 24px;
    flex: 1;
    display: grid;
    gap: 16px;
}

.bk-ind-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.bk-ind-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bk-ind-grid .bk-card {
    padding: 20px;
}

.bk-ind-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Contact */
.bk-contact-body {
    justify-content: space-between;
}

.bk-contact-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bk-contact-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bk-contact-grid .bk-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.bk-contact-ico svg {
    width: 16px;
    height: 16px;
    color: var(--bk-accent, #0d9488);
}

.bk-contact-text {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--slate-800);
}

.bk-contact-strip {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.35);
    padding: 16px 24px;
    backdrop-filter: blur(12px);
}

.bk-contact-strip-name {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--slate-900);
}

.bk-contact-strip-note {
    max-width: 320px;
    text-align: right;
    font-size: 9px;
    line-height: 1.6;
    color: var(--slate-500);
}

/* ------------------------------------------------------------------ */
/* Print — only the brochure pages survive, one per A4 sheet           */
/* ------------------------------------------------------------------ */
@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    .no-print {
        display: none !important;
    }

    html,
    body {
        width: 210mm;
        background: #fff !important;
    }

    body * {
        visibility: hidden;
    }

    .brochure-page,
    .brochure-page * {
        visibility: visible;
    }

    .brochure-document {
        width: 210mm;
        position: absolute;
        inset: 0 auto auto 0;
        gap: 0;
    }

    .brochure-page {
        break-after: page;
        page-break-after: always;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .brochure-page:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .builder-shell {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .preview-area {
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .preview-doc {
        width: 210mm !important;
    }
}
