/* ==========================================================================
   UKLabs — visual identity shared with orthodontic-laboratory.co.uk
   1. Tokens  2. Fonts & base  3. Shared components  4. Header / footer
   5. Home  6. Smile Simulator  7. Auth & account  8. MAXadmin  9. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --navy: #153863;
    --navy-rgb: 21, 56, 99;
    --navy-deep: #0b1a2e;
    --navy-mid: #0f2a44;
    --blue: #1f67b8;
    --blue-hover: #17539a;
    --blue-soft: #e8f1fb;
    --sky: #9cc3ff;
    --teal: #1fa5a8;
    --teal-bright: #2bb5b8;
    --teal-deep: #0b7a7d;      /* AA-safe teal for small text on light backgrounds */
    --teal-soft: #e3f4f4;
    --bg: #f8fafc;
    --paper: #ffffff;
    --surface: #f1f5f9;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --success: #067647;
    --success-soft: #ecfdf3;
    --warning: #b54708;
    --warning-soft: #fffaeb;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 3px rgba(15, 23, 42, .10), 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .10), 0 2px 4px -1px rgba(15, 23, 42, .06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .10), 0 4px 6px -2px rgba(0, 0, 0, .05);
    --shadow-xl: 0 24px 48px -12px rgba(11, 26, 46, .35);
    --focus: var(--blue);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --hero-gradient: radial-gradient(60% 80% at 85% 20%, rgba(43, 181, 184, .28), transparent 60%),
                     radial-gradient(40% 50% at 15% 90%, rgba(31, 103, 184, .25), transparent 60%),
                     linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 55%, #070f1b 100%);
}

/* 2. Fonts & base ------------------------------------------------------------ */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font: 400 15px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: 44px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.container { max-width: 1200px; margin: auto; padding: 0 40px; }
.muted { color: var(--muted); }
.pre-line { white-space: pre-line; }
.honeypot { position: absolute; left: -9999px; }

/* 3. Shared components -------------------------------------------------------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal-deep);
    margin-bottom: 20px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31, 165, 168, .18); display: inline-block; flex-shrink: 0; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid transparent;
    border-radius: var(--pill);
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.button .icon { width: 17px; height: 17px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(var(--navy-rgb), .25); }
.button.primary:hover:not(:disabled) { background: var(--blue); box-shadow: 0 8px 20px rgba(31, 103, 184, .32); }
.button.secondary { background: var(--paper); border-color: var(--line-strong); color: var(--navy); }
.button.secondary:hover:not(:disabled) { border-color: var(--navy); background: var(--blue-soft); }
.button.light { background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); }
.button.light:hover:not(:disabled) { background: #eef5ff; }
.button.outline { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.button.outline:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, .08); }
.button.small { padding: 8px 14px; font-size: 13px; }
.button.danger { background: var(--danger-soft); border-color: #fecdca; color: var(--danger); }
.button.danger:hover:not(:disabled) { background: #fee4e2; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--pill);
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--navy);
    background: var(--blue-soft);
}
.pill .icon { width: 13px; height: 13px; }
.muted-pill { align-self: flex-start; background: var(--surface); color: var(--muted); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.circle-arrow {
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--paper);
    color: var(--navy);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.circle-arrow .icon { width: 17px; height: 17px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-deep); }
.icon-tile .icon { width: 22px; height: 22px; }

.notice { padding: 13px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; margin: 16px 0; overflow-wrap: anywhere; }
.notice.error { color: var(--danger); background: var(--danger-soft); border: 1px solid #fecdca; }
.notice.success { color: var(--success); background: var(--success-soft); border: 1px solid #abefc6; }

.status { display: inline-flex; padding: 4px 10px; border-radius: var(--pill); font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.status.success, .status.active, .status.handled { background: var(--success-soft); color: var(--success); }
.status.failed, .status.inactive { background: var(--danger-soft); color: var(--danger); }
.status.pending, .status.new { background: var(--warning-soft); color: var(--warning); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack label, .field-label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.stack input, .stack textarea, .stack select, .filter-input {
    width: 100%;
    border: 1.5px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
    transition: border-color .15s, box-shadow .15s;
}
.stack input:focus, .stack textarea:focus, .stack select:focus, .filter-input:focus, .toolbar input:focus, .toolbar select:focus, .content-fields textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(31, 103, 184, .15);
}
.stack textarea { resize: vertical; min-height: 80px; }
.stack input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--navy); }
.stack .checkbox-field { flex-direction: row; align-items: center; }
.stack .help { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 13px 14px; background: var(--bg); white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
tbody tr:last-child td { border: 0; }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .icon { width: 36px; height: 36px; color: var(--line-strong); margin-bottom: 10px; }
.empty-state p { font-size: 14px; margin: 0; }

.loading-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-state h3 { font-size: 22px; margin-bottom: 8px; }
.loading-state p { font-size: 14px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--blue-soft); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 4. Header / footer ---------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1280px; margin: auto; padding: 0 40px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--navy); white-space: nowrap; }
.brand-mark { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(var(--navy-rgb), .25); }
.brand-mark .icon { width: 19px; height: 19px; stroke-width: 2; }
.brand-accent { color: var(--teal); }
.brand-dot { color: var(--teal); }
.brand.small { font-size: 20px; }
.brand.on-dark { color: #fff; }
.brand.on-dark .brand-accent { color: var(--teal-bright); }
.brand.on-dark .brand-mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.site-header nav a { color: var(--text); transition: color .15s; }
.site-header nav a:hover, .site-header nav a.active { color: var(--blue); }
.site-header nav .nav-signin { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-weight: 600; transition: background .2s; }
.site-header nav .nav-signin:hover { background: var(--blue); color: #fff; }
.site-header nav .nav-signin .icon { width: 16px; height: 16px; }
.site-header nav form { margin: 0; }
.nav-button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-button:hover { color: var(--blue); }

/* Secondary partner mark next to the main brand */
.header-brands { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-partner { display: inline-flex; align-items: center; gap: 12px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); border-radius: 2px; transition: opacity .2s var(--ease); }
.header-partner:hover { opacity: .8; }
.header-partner-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; max-width: 92px; color: var(--muted); }
.header-partner picture { display: block; line-height: 0; }
.header-partner .partner-logo { height: 34px; width: auto; display: block; }

.site-footer {
    --focus: var(--sky);
    position: relative;
    background: radial-gradient(50% 120% at 100% 0%, rgba(43, 181, 184, .14), transparent 60%), var(--navy-deep);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    overflow: hidden;
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(43, 181, 184, .55), transparent); }
.footer-main { max-width: 1280px; margin: auto; padding: 72px 40px 48px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.05fr) minmax(0, 1.2fr); gap: 48px; }
.footer-col { min-width: 0; }
.footer-title { margin: 0 0 18px; color: var(--teal-bright); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.footer-about .brand { margin-bottom: 20px; }
.footer-lead { margin: 0 0 14px; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.7; max-width: 340px; }
.footer-audience { margin: 0; color: rgba(255, 255, 255, .55); font-size: 13px; max-width: 340px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; color: rgba(255, 255, 255, .8); font-weight: 500; }
.footer-contact a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s var(--ease); }
.footer-contact a:hover { border-color: var(--teal-bright); }
.footer-links, .footer-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: rgba(255, 255, 255, .78); font-weight: 500; transition: color .2s var(--ease), padding .2s var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-trust li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.55; }
.footer-trust .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(43, 181, 184, .16); color: var(--teal-bright); stroke-width: 2.4; }
.footer-partner { padding: 26px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.footer-partner-logo { display: inline-block; line-height: 0; border-radius: 4px; }
.footer-partner picture { display: block; line-height: 0; }
.footer-partner .partner-logo { width: 150px; height: auto; display: block; }
.footer-partner p { margin: 18px 0 16px; color: rgba(255, 255, 255, .68); font-size: 13px; line-height: 1.65; }
.footer-partner-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 600; border-radius: 4px; }
.footer-partner-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.footer-partner-link:hover .icon { transform: translateX(3px); }
.footer-bottom { max-width: 1280px; margin: auto; padding: 22px 40px 28px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.footer-disclaimer { flex: 1 1 320px; }
.footer-note { color: rgba(255, 255, 255, .45); font-style: italic; }

/* 5. Home -------------------------------------------------------------------- */
.home-hero {
    --focus: var(--sky);
    position: relative;
    background: var(--hero-gradient);
    color: #fff;
    overflow: hidden;
    padding: 96px 0 104px;
}
.home-hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(43, 181, 184, .14), transparent 45%);
    pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.home-hero .eyebrow { color: var(--teal-bright); }
.home-hero .status-dot { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(43, 181, 184, .25); }
.home-hero h1 { color: #fff; font-size: 56px; line-height: 1.06; letter-spacing: -.035em; margin-bottom: 24px; max-width: 15ch; }
.home-hero h1 .hl { color: var(--sky); }
.home-hero .lead { color: rgba(255, 255, 255, .78); font-size: 18px; line-height: 1.7; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85); }
.hero-features span { display: inline-flex; align-items: center; gap: 8px; }
.hero-features .icon { width: 16px; height: 16px; color: var(--teal-bright); }

.hero-cards { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 440px; }
.hero-card {
    --focus: var(--sky);
    position: relative;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-card .eyebrow { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .8); }
.hero-card .eyebrow .status-dot { width: 7px; height: 7px; }
.hero-card strong { font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
.hero-card .icon-tile { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--teal-bright); margin-bottom: auto; }
.hero-card .circle-arrow { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.hero-card .circle-arrow .icon { width: 15px; height: 15px; transform: rotate(-45deg); }
.hero-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); }
.hero-card-visual { grid-row: 1 / span 2; padding: 26px; overflow: hidden; border-color: rgba(255, 255, 255, .22); }
.hero-card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .6s var(--ease); }
.hero-card-visual:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 46, .1) 0%, rgba(11, 26, 46, .35) 45%, rgba(11, 26, 46, .92) 100%); }
.hero-card-visual > * { position: relative; z-index: 1; }
.hero-card-visual:hover img { transform: scale(1.04); }
.hero-card-visual h3 { color: #fff; font-size: 26px; line-height: 1.15; margin: 0; }
.hero-card.teal { background: linear-gradient(145deg, #1a8f93 0%, #0f6f72 100%); border-color: rgba(255, 255, 255, .22); }
.hero-card.teal .icon-tile { background: rgba(255, 255, 255, .16); color: #fff; }

.catalog { padding: 88px 0 96px; }
.section-intro { display: flex; align-items: center; gap: 32px; margin-bottom: 32px; }
.section-intro h2 { margin: 0 0 6px; }
.section-intro p { margin: 0; font-size: 15px; }
.section-rule { height: 1px; background: var(--line); flex: 1; }
.tool-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.tool-card:hover .circle-arrow { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateX(3px); }
.tool-visual { height: 260px; position: relative; background: var(--surface); overflow: hidden; }
.tool-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 49%; transition: transform .6s var(--ease); }
.tool-card:hover img { transform: scale(1.03); }
.visual-pill { position: absolute; top: 18px; left: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.visual-icon { position: absolute; bottom: 16px; right: 18px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--navy); width: 42px; height: 42px; display: grid; place-items: center; }
.tool-info { padding: 28px 30px 26px; position: relative; flex: 1; display: flex; flex-direction: column; }
.tool-index { position: absolute; right: 30px; top: 30px; font-size: 12px; font-weight: 600; letter-spacing: .15em; color: var(--muted); }
.tool-info h3 { font-size: 26px; margin-bottom: 10px; padding-right: 50px; }
.tool-info p { font-size: 15px; max-width: 460px; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.tool-link { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--navy); }
.coming-card {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.coming-art { display: flex; justify-content: center; align-items: center; padding: 48px 0; gap: 12px; }
.coming-art span { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); width: 76px; height: 76px; display: grid; place-items: center; transform: rotate(-9deg); color: var(--blue); box-shadow: var(--shadow); }
.coming-art span:nth-child(2) { width: 92px; height: 92px; transform: rotate(7deg); background: var(--navy); color: #fff; }
.coming-art span:nth-child(3) { transform: rotate(15deg); color: var(--teal-deep); }
.coming-art .icon { width: 32px; height: 32px; stroke-width: 1.3; }
.coming-card h3 { font-size: 24px; margin-bottom: 10px; }
.coming-card p { font-size: 15px; line-height: 1.7; max-width: 320px; margin-bottom: 0; }

/* 6. Smile Simulator ---------------------------------------------------------- */
.simulator { padding-top: 36px; padding-bottom: 80px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 28px; transition: color .15s; }
.breadcrumb:hover { color: var(--blue); }
.tool-heading { margin-bottom: 36px; }
.tool-heading .eyebrow { margin-bottom: 14px; }
.tool-heading h1 { font-size: 44px; margin-bottom: 14px; }
.tool-heading .lead { max-width: 660px; font-size: 17px; line-height: 1.7; margin-bottom: 0; }
.simulator-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.upload-panel { padding: 26px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-heading h2 { font-size: 17px; letter-spacing: -.01em; margin: 0; }
.step-number { background: var(--navy); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.drop-zone {
    position: relative;
    display: flex;
    min-height: 220px;
    border: 1.5px dashed var(--line-strong);
    border-radius: 14px;
    text-align: center;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    padding: 22px 14px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.drop-zone:hover, .drop-zone.over { background: var(--blue-soft); border-color: var(--blue); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.drop-zone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.upload-icon { display: grid; place-items: center; margin: 0 auto 14px; width: 48px; height: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%; color: var(--blue); box-shadow: var(--shadow-sm); }
.drop-zone strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.drop-zone p { font-size: 13px; max-width: 240px; margin: 8px auto 12px; line-height: 1.6; }
.file-formats { font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.drop-zone img { max-width: 100%; max-height: 210px; object-fit: contain; display: block; border-radius: 8px; margin: auto; }
.drop-zone .filename { overflow-wrap: anywhere; margin-bottom: 0; }
.camera-row { display: none; margin-top: 12px; }
.camera-button { width: 100%; }
@media (hover: none) and (pointer: coarse), (max-width: 760px) { .camera-row { display: block; } }
.correction { border: 0; padding: 0; margin: 24px 0 22px; }
.correction legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.segmented { display: flex; background: var(--surface); padding: 4px; border-radius: var(--pill); gap: 4px; }
.segmented label { flex: 1; position: relative; cursor: pointer; text-align: center; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; border-radius: var(--pill); padding: 9px 6px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.segmented input:checked + span { background: var(--paper); color: var(--navy); font-weight: 600; box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.consent input { margin: 3px 0 0; accent-color: var(--navy); flex-shrink: 0; width: 15px; height: 15px; }
.generate { width: 100%; margin-top: 22px; justify-content: flex-start; padding: 14px 20px; }
.generate .icon:last-child { margin-left: auto; }
.quota-label { font-size: 12px; text-align: center; margin: 14px 0 0; color: var(--muted); }
.preview-panel { padding: 26px; }
.preview-panel .panel-heading { margin-bottom: 22px; }
.demo-badge { margin-left: auto; }
.comparison { position: relative; background: var(--surface); overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; --split: 50%; }
.comparison > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.comparison .after-image { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.comparison-tag { position: absolute; top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: var(--pill); background: rgba(11, 26, 46, .72); backdrop-filter: blur(4px); color: #fff; padding: 5px 11px; }
.before-tag { left: 14px; }
.after-tag { right: 14px; }
.comparison-line { position: absolute; left: var(--split); top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 4px rgba(0, 0, 0, .3); }
.comparison-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); font-size: 20px; font-weight: 700; box-shadow: var(--shadow-md); }
.watermark { position: absolute; bottom: 10px; right: 12px; background: rgba(11, 26, 46, .6); padding: 4px 8px; border-radius: 6px; color: #fff; font-size: 10px; max-width: 90%; text-align: right; }
.comparison input[type=range] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; z-index: 3; }
.comparison:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.comparison-hint { font-size: 13px; line-height: 1.7; text-align: center; margin: 16px 0 22px; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; line-height: 1.7; margin: 0; }
.privacy-note { display: flex; gap: 12px; padding: 22px 10px; color: var(--muted); }
.privacy-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--teal-deep); }
.privacy-note strong { font-size: 13px; font-weight: 600; display: block; color: var(--ink); }
.privacy-note p { font-size: 12px; line-height: 1.7; margin: 5px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.result-actions .button { font-size: 13px; padding: 10px 16px; }
.result-actions > span { width: 100%; font-size: 12px; color: var(--muted); margin-top: 4px; }

.access-block {
    --focus: var(--sky);
    margin-top: 20px;
    border-radius: var(--radius-lg);
    background: var(--hero-gradient);
    color: #fff;
    padding: 26px;
    box-shadow: var(--shadow-xl);
}
.access-block .icon-tile { background: rgba(255, 255, 255, .12); color: var(--teal-bright); }
.access-block h3 { color: #fff; font-size: 22px; margin: 16px 0 8px; }
.access-block p { color: rgba(255, 255, 255, .78); font-size: 14px; white-space: pre-line; }
.access-block .button { width: 100%; background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); }
.access-block .button:hover { background: #eef5ff; }
.text-link { display: block; text-align: center; font-size: 13px; margin-top: 14px; text-decoration: underline; text-underline-offset: 3px; color: rgba(255, 255, 255, .85); }
.text-link:hover { color: #fff; }

/* 7. Auth & account ------------------------------------------------------------ */
.auth-container { max-width: 680px; margin: auto; padding: 64px 24px 80px; }
.auth-card { padding: 40px; max-width: 440px; margin: auto; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 32px; margin: 22px 0 10px; }
.auth-card > .muted { font-size: 15px; margin-bottom: 26px; }
.auth-bottom { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-bottom a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-link { display: block; font-size: 14px; font-weight: 500; color: var(--blue); margin: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.fine-print { font-size: 12px; margin: 16px 0 0; }

.account-page { padding-top: 48px; padding-bottom: 80px; }
.account-page .tool-heading .lead { margin-bottom: 0; }
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.account-details, .activity-panel { padding: 28px; }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.account-details h2 { font-size: 24px; }
dl { margin: 24px 0; }
dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.account-details .button { width: 100%; margin-top: 18px; }

/* 8. MAXadmin ---------------------------------------------------------------- */
.admin-body { background: var(--surface); }
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    --focus: var(--sky);
    background: var(--hero-gradient);
    color: rgba(255, 255, 255, .8);
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-sidebar .brand { font-size: 23px; color: #fff; }
.admin-sidebar .brand .brand-accent { color: var(--teal-bright); }
.admin-sidebar .brand-mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.admin-wordmark { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-bright); margin: 16px 0 40px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; padding: 11px 14px; border-radius: 10px; color: rgba(255, 255, 255, .72); transition: background .15s, color .15s; }
.admin-sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-sidebar nav a.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(31, 103, 184, .35); }
.admin-sidebar nav .icon { width: 18px; height: 18px; }
.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px 10px 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.sidebar-bottom a:hover { color: #fff; }
.sidebar-bottom .nav-button { color: rgba(255, 255, 255, .7); text-align: left; }
.sidebar-bottom .nav-button:hover { color: #fff; }
.admin-main { padding: 30px 40px; min-width: 0; max-width: 1600px; width: 100%; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; font-size: 13px; color: var(--muted); }
.admin-topbar-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-user { display: flex; gap: 10px; align-items: center; }
.admin-user .avatar { width: 30px; height: 30px; margin: 0; font-size: 14px; }
.admin-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 28px; }
.admin-heading h1 { font-size: 32px; margin: 0 0 6px; }
.admin-heading p { font-size: 14px; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.stat-card .stat-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-card .icon { width: 18px; height: 18px; color: var(--blue); }
.stat-value { font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--navy); margin: 14px 0 6px; }
.stat-card p { font-size: 12px; margin: 0; }
.stat-cost-help { font-size: 12px; color: var(--muted); }
.admin-panel { padding: 26px; margin-bottom: 24px; }
.admin-panel h2 { font-size: 19px; margin-bottom: 8px; }
.admin-panel > .muted { font-size: 14px; }
.admin-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-two-columns .stack { max-width: 100%; }
.admin-panel .stack { margin-top: 22px; }
.settings-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-panel .button { align-self: flex-start; }
.settings-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-section h3 { font-size: 16px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-actions { display: flex; gap: 8px; }
.table-actions form { margin: 0; }
.table-actions .button { white-space: nowrap; }
.toolbar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.toolbar input, .toolbar select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--paper); color: var(--ink); }
.toolbar .button { padding: 10px 18px; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; font-size: 13px; color: var(--muted); }
.pagination a { color: var(--blue); font-weight: 600; }
.content-group { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin-bottom: 14px; overflow: hidden; }
.content-group summary { padding: 16px 22px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--bg); }
.content-group summary:hover { color: var(--blue); }
.content-fields { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.content-fields label { font-size: 13px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink); }
.content-fields label code { font-size: 11px; color: var(--muted); font-weight: 500; }
.content-fields textarea { resize: vertical; width: 100%; min-height: 80px; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 14px/1.6 var(--font); color: var(--ink); }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 14px 20px; border-radius: 14px; margin: 20px 0; }
.sticky-save span { font-size: 13px; color: var(--muted); }
.request-message { white-space: pre-line; max-width: 380px; overflow-wrap: anywhere; font-size: 13px; }
.setup-note { font-size: 13px; line-height: 1.7; background: var(--blue-soft); color: var(--navy); padding: 14px 16px; border-radius: 10px; }
.audit-list { list-style: none; padding: 0; margin: 15px 0 0; }
.audit-list li { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.audit-list small { color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; margin: 26px 0 24px; }
.bar-column { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 7px; color: var(--muted); font-size: 11px; min-width: 0; }
.bar-fill { width: 100%; max-width: 32px; background: linear-gradient(180deg, var(--teal), var(--blue)); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-column span { font-size: 11px; }
.admin-login-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.admin-auth-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.admin-auth-footer a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 9. Responsive ------------------------------------------------------------------ */
@media (min-width: 1500px) {
    .home-hero { padding: 112px 0 120px; }
    .home-hero h1 { font-size: 62px; }
}
@media (max-width: 1100px) {
    .container, .header-inner, .footer-main, .footer-bottom { padding-left: 28px; padding-right: 28px; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
    .header-partner-label { display: none; }
    .home-hero { padding: 72px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .home-hero h1 { font-size: 52px; max-width: 16ch; }
    .hero-cards { min-height: 0; grid-template-rows: auto; }
    .hero-card-visual { min-height: 320px; }
    .simulator-grid { grid-template-columns: 340px minmax(0, 1fr); }
    .admin-main { padding: 26px; }
    .admin-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .admin-sidebar { padding: 26px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-columns, .admin-two-columns { grid-template-columns: 1fr; }
    .tool-visual { height: 230px; }
}
@media (max-width: 760px) {
    .container, .header-inner, .footer-main, .footer-bottom { padding-left: 18px; padding-right: 18px; }
    .header-brands { gap: 12px; }
    .header-partner { padding-left: 12px; }
    .header-partner .partner-logo { height: 28px; }
    .header-inner { min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
    .site-header nav { gap: 14px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; margin-left: auto; }
    .site-header nav a, .site-header nav .nav-button { white-space: nowrap; }
    .site-header nav .nav-signin { padding: 8px 14px; }
    .site-header nav .nav-signin .icon { display: none; }
    .brand { font-size: 19px; gap: 8px; }
    .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
    .brand-mark .icon { width: 16px; height: 16px; }
    .header-inner { gap: 12px; }
    .home-hero { padding: 56px 0 64px; }
    .home-hero h1 { font-size: 40px; max-width: 100%; }
    .home-hero .lead { font-size: 16px; }
    .eyebrow { font-size: 11px; letter-spacing: .16em; }
    .hero-actions .button { width: 100%; }
    .hero-features { gap: 14px 20px; font-size: 13px; }
    .hero-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-card { padding: 18px; }
    .hero-card-visual { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
    .hero-card-visual h3 { font-size: 22px; }
    .hero-card strong { font-size: 14px; }
    .catalog { padding: 56px 0 64px; }
    .section-intro { gap: 18px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-visual { height: 220px; }
    .tool-info { padding: 24px 22px 22px; }
    .tool-index { right: 22px; top: 26px; }
    .coming-card { min-height: 260px; padding: 24px; }
    .coming-art { padding: 22px 0; justify-content: flex-start; }
    .coming-art span { width: 56px; height: 56px; }
    .coming-art span:nth-child(2) { width: 66px; height: 66px; }
    .coming-card h3 { font-size: 22px; }
    .coming-card p { max-width: 100%; }
    .footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 36px; }
    .footer-partner { padding: 22px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-disclaimer { flex: none; }
    .simulator { padding-top: 24px; padding-bottom: 56px; }
    .simulator-grid { grid-template-columns: 1fr; }
    .tool-heading h1 { font-size: 34px; }
    .tool-heading .lead { font-size: 15px; }
    .breadcrumb { margin-bottom: 20px; }
    .preview-panel { grid-row: 1; padding: 20px; }
    .upload-panel { padding: 22px; }
    .privacy-note { padding: 20px 5px; }
    .account-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
    .auth-container { padding-top: 36px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; padding: 20px 18px; }
    .admin-sidebar .brand { font-size: 21px; }
    .admin-wordmark { margin: 8px 0 18px; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .admin-sidebar nav a { font-size: 12px; padding: 8px 10px; }
    .admin-sidebar nav .icon { width: 15px; height: 15px; }
    .sidebar-bottom { margin-top: 16px; flex-direction: row; justify-content: space-between; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
    .admin-main { padding: 22px 18px; }
    .admin-topbar { margin-bottom: 24px; padding-bottom: 14px; }
    .admin-heading { align-items: flex-start; flex-wrap: wrap; }
    .admin-heading h1 { font-size: 26px; }
    .admin-heading p { font-size: 13px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 28px; }
    .stat-card .stat-label { font-size: 11px; }
    .admin-panel { padding: 18px; }
    .content-fields { grid-template-columns: 1fr; padding: 18px; }
    .inline-fields { grid-template-columns: 1fr; }
    .sticky-save { padding: 12px; gap: 10px; }
    .sticky-save span { font-size: 12px; }
    .toolbar { gap: 9px; }
    .toolbar input { max-width: 150px; }
    .audit-list li { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .tool-card:hover, .hero-card:hover, .button:hover:not(:disabled) { transform: none; }
}

/* Partner promotion (home page, below the catalogue) ------------------------ */
.partner-promo { padding: 0 0 96px; }
.promo-panel {
    --focus: var(--sky);
    position: relative;
    overflow: hidden;
    padding: 56px;
    border-radius: 28px;
    color: rgba(255, 255, 255, .78);
    background: var(--hero-gradient);
    box-shadow: 0 18px 36px -22px rgba(11, 26, 46, .45);
    isolation: isolate;
}
.promo-panel::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; bottom: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 181, 184, .32), transparent 65%); }
.promo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.promo-copy { max-width: 640px; }
.promo-copy .eyebrow { color: var(--teal-bright); }
.promo-copy h2 { margin: 14px 0 16px; color: #fff; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.promo-copy h2 .hl { color: var(--sky); }
.promo-copy .lead { margin: 0; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.7; }
.promo-logo { flex: none; display: block; line-height: 0; padding: 18px 20px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s var(--ease); }
.promo-logo:hover { background: rgba(255, 255, 255, .1); }
.promo-logo picture { display: block; line-height: 0; }
.promo-logo .partner-logo { width: 170px; height: auto; display: block; }
.promo-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.promo-service { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .72); transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.promo-service:hover { transform: translateY(-4px); border-color: rgba(43, 181, 184, .55); background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); }
.promo-service:nth-child(2) { background: linear-gradient(150deg, rgba(31, 165, 168, .55), rgba(11, 122, 125, .35)); border-color: rgba(43, 181, 184, .45); }
.promo-service .icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; margin-bottom: 6px; }
.promo-service .icon-tile .icon { width: 22px; height: 22px; }
.promo-tag { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-bright); }
.promo-service:nth-child(2) .promo-tag { color: #d6f5f5; }
.promo-service h3 { margin: 0; color: #fff; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; padding-right: 36px; }
.promo-service p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .74); }
.promo-service .circle-arrow { position: absolute; top: 24px; right: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; transition: transform .25s var(--ease), background .25s var(--ease); }
.promo-service .circle-arrow .icon { width: 16px; height: 16px; transform: rotate(-45deg); }
.promo-service:hover .circle-arrow { background: #fff; color: var(--navy); transform: scale(1.05); }
.promo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.promo-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.promo-benefits li { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 14px; font-weight: 500; }
.promo-benefits .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(43, 181, 184, .2); color: var(--teal-bright); stroke-width: 2.4; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.promo-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.promo-contact a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s var(--ease); }
.promo-contact a:hover { border-color: var(--teal-bright); }
@media (max-width: 1100px) {
    .promo-panel { padding: 44px 36px; }
    .promo-copy h2 { font-size: 34px; }
    .promo-services { grid-template-columns: 1fr; }
    .promo-service { padding-right: 70px; }
}
@media (max-width: 760px) {
    .partner-promo { padding-bottom: 64px; }
    .promo-panel { padding: 32px 22px; border-radius: 22px; }
    .promo-head { flex-direction: column-reverse; gap: 22px; }
    .promo-logo { padding: 12px 14px; }
    .promo-logo .partner-logo { width: 120px; }
    .promo-copy h2 { font-size: 28px; }
    .promo-copy .lead { font-size: 15px; }
    .promo-services { margin-top: 28px; gap: 14px; }
    .promo-service { padding: 22px 64px 22px 22px; }
    .promo-foot { flex-direction: column; align-items: flex-start; }
    .promo-actions, .promo-actions .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .promo-service, .promo-service:hover, .promo-service .circle-arrow { transform: none; transition: none; }
}
/* Request access: email call to action */
.access-email { display: grid; justify-items: start; gap: 10px; margin: 8px 0 22px; }
.access-email .button .icon { width: 18px; height: 18px; }
.access-email .fine-print { margin: 0; }

/* MAXadmin: password generator and copyable login details */
.password-field { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.password-field input { flex: 1; min-width: 0; margin-top: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }
.password-field .button { flex: none; }
.copy-status { align-self: center; font-size: 13px; font-weight: 500; color: var(--success); }
.credential-card { display: grid; gap: 16px; border: 1px solid rgba(31, 103, 184, .25); background: linear-gradient(160deg, var(--blue-soft), var(--paper)); }
.credential-card h2 { margin: 0 0 4px; }
.credential-card p { margin: 0; }
.credential-text { width: 100%; resize: vertical; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 760px) { .password-field { flex-wrap: wrap; } .password-field input { flex-basis: 100%; } }

/* Laboratory advertising on tool pages ----------------------------------- */
.lab-nudge { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(31, 165, 168, .35); background: linear-gradient(120deg, var(--teal-soft), var(--blue-soft)); color: var(--text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.lab-nudge:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lab-nudge-mark { display: grid; place-items: center; width: 64px; height: 48px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow-sm); }
.lab-nudge-mark picture { display: block; line-height: 0; }
.lab-nudge-mark .partner-logo { width: 50px; height: auto; display: block; }
.lab-nudge-copy { display: grid; gap: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lab-nudge-copy strong { color: var(--navy); font-size: 14px; font-weight: 700; }
.lab-nudge-action { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--pill); background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s var(--ease); }
.lab-nudge:hover .lab-nudge-action { background: var(--blue); }
.lab-nudge-action .icon { width: 15px; height: 15px; }

.lab-promo { margin-top: 64px; }
.lab-panel {
    --focus: var(--sky);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    grid-template-areas: "intro offer" "why offer" "steps steps" "call call";
    gap: 40px 48px;
    padding: 56px;
    border-radius: 28px;
    background: var(--hero-gradient);
    color: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 36px -22px rgba(11, 26, 46, .45);
}
.lab-panel::after { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; left: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 103, 184, .35), transparent 65%); }
.lab-intro { grid-area: intro; }
.lab-intro .eyebrow { color: var(--teal-bright); }
.lab-intro h2 { margin: 14px 0 16px; color: #fff; font-size: 38px; line-height: 1.14; font-weight: 700; letter-spacing: -.03em; }
.lab-intro h2 .hl { color: var(--sky); }
.lab-intro .lead { margin: 0; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.7; }
.lab-trust { margin: 18px 0 0; color: var(--teal-bright); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lab-offer { grid-area: offer; align-self: start; display: grid; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.lab-offer-logo { display: inline-block; line-height: 0; margin-bottom: 6px; border-radius: 4px; }
.lab-offer-logo picture { display: block; line-height: 0; }
.lab-offer-logo .partner-logo { width: 150px; height: auto; display: block; }
.lab-offer h3 { margin: 4px 0 0; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.lab-offer ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.lab-offer li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; }
.lab-offer li .icon, .lab-why .icon-tile .icon { stroke-width: 2.2; }
.lab-offer li .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(43, 181, 184, .2); color: var(--teal-bright); }
.lab-offer .button { width: 100%; justify-content: center; }
.lab-why { grid-area: why; }
.lab-why h3, .lab-steps h3 { margin: 0 0 18px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.lab-why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.lab-why li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.lab-why .icon-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--teal-bright); }
.lab-why .icon-tile .icon { width: 20px; height: 20px; }
.lab-why h4 { margin: 0 0 4px; color: #fff; font-size: 15px; font-weight: 600; }
.lab-why p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.6; }
.lab-steps { grid-area: steps; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.lab-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.lab-steps li { position: relative; display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .7); }
.lab-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--teal-bright); border-right: 2px solid var(--teal-bright); transform: rotate(45deg); opacity: .7; }
.lab-steps strong { color: #fff; font-size: 16px; font-weight: 700; }
.lab-step-number { color: var(--teal-bright); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.lab-call { grid-area: call; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.lab-call a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s var(--ease); }
.lab-call a:hover { border-color: var(--teal-bright); }
@media (max-width: 1100px) {
    .lab-panel { grid-template-columns: 1fr; grid-template-areas: "intro" "offer" "why" "steps" "call"; padding: 44px 36px; }
    .lab-intro h2 { font-size: 32px; }
    .lab-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lab-steps li::after { display: none; }
}
@media (max-width: 760px) {
    .lab-nudge { grid-template-columns: auto 1fr; }
    .lab-nudge-action { grid-column: 1 / -1; justify-content: center; }
    .lab-promo { margin-top: 44px; }
    .lab-panel { padding: 32px 22px; border-radius: 22px; gap: 32px; }
    .lab-intro h2 { font-size: 27px; }
    .lab-intro .lead { font-size: 15px; }
    .lab-why ul, .lab-steps ol { grid-template-columns: 1fr; }
    .lab-offer { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .lab-nudge, .lab-nudge:hover { transform: none; transition: none; } }

/* Thin laboratory bar under the header (tool pages) */
.lab-bar { --focus: var(--sky); display: block; background: linear-gradient(90deg, var(--navy-deep), var(--navy) 55%, #0e5f6e); color: rgba(255, 255, 255, .82); font-size: 13px; transition: filter .2s var(--ease); }
.lab-bar:hover { filter: brightness(1.12); }
.lab-bar-inner { max-width: 1280px; margin: auto; padding: 9px 40px; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; }
.lab-bar-label { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-bright); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.lab-bar .status-dot { width: 7px; height: 7px; background: var(--teal-bright); box-shadow: 0 0 0 3px rgba(43, 181, 184, .25); }
.lab-bar-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-bar-short { display: none; white-space: nowrap; }
.lab-bar-action { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.lab-bar-action .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lab-bar:hover .lab-bar-action .icon { transform: translateX(3px); }
@media (max-width: 1100px) { .lab-bar-inner { padding-left: 28px; padding-right: 28px; } }
@media (max-width: 760px) {
    .lab-bar-inner { padding: 8px 18px; gap: 10px; justify-content: space-between; }
    .lab-bar-text { display: none; }
    .lab-bar-short { display: inline; overflow: hidden; text-overflow: ellipsis; }
    .lab-bar-label { letter-spacing: .1em; }
}
@media (max-width: 420px) { .lab-bar-short { display: none; } }

/* Home catalogue art for tools without a photo ------------------------------- */
.tool-art { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-mid), var(--navy) 55%, var(--teal-deep)); }
.tool-art:before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; }
.art-materials { background: linear-gradient(135deg, var(--teal-deep), #0f6f72 50%, var(--navy)); }
.art-stl { background: linear-gradient(135deg, var(--navy-deep), var(--blue) 70%, var(--teal)); }
.tool-art-mark { position: relative; width: 104px; height: 104px; border-radius: 28px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; transform: rotate(-6deg); transition: transform .6s var(--ease); }
.tool-art-mark .icon { width: 46px; height: 46px; stroke-width: 1.3; }
.tool-card:hover .tool-art-mark { transform: rotate(0) scale(1.06); }

/* MAXadmin tools & workshop ---------------------------------------------------- */
.workshop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.workshop-head h2 { margin: 4px 0 0; }
.workshop-tool { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.workshop-tool .icon { width: 18px; height: 18px; color: var(--teal-deep); }
.workshop-message { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; background: var(--paper); }
.workshop-message.developer { background: var(--teal-soft); border-color: rgba(31, 165, 168, .35); margin-left: 28px; }
.workshop-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.workshop-meta strong { color: var(--ink); font-size: 13px; }
.workshop-body { font-size: 14px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.workshop-reply { margin-top: 20px; }
@media (max-width: 760px) { .workshop-message.developer { margin-left: 10px; } }
.workshop-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.workshop-gallery a { display: block; width: 140px; height: 105px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, transform .15s; }
.workshop-gallery a:hover { border-color: var(--blue); transform: translateY(-2px); }
.workshop-gallery img { width: 100%; height: 100%; object-fit: cover; }
