:root {
    color-scheme: light;
    --bg: #f5f6fa;
    --card-bg: #ffffff;
    --text: #1f2430;
    --muted: #5e6470;
    --primary: #1d4dd8;
    --primary-dark: #163bb2;
    --border: #e2e4ea;
    --danger: #d33b3b;
    --success: #1f9d55;
    --header-height: 65px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
header.site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    /* Fixed on every page except the public card view itself - a
       visitor's card should render exactly like the finished
       product, not framed inside the app's own chrome. */
    position: sticky;
    top: 0;
    z-index: 100;
}
body:has(main.card-public) header.site {
    position: static;
}
header.site a.brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
}
nav a {
    margin-left: 1rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}
nav a:hover { color: var(--text); }
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin: 0;
    color: var(--text);
    line-height: 1;
}
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 35, 0.45);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mobile-nav-overlay[hidden] {
    display: none;
}
.mobile-nav-overlay.open {
    opacity: 1;
}
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78%;
    max-width: 300px;
    background: var(--card-bg);
    box-shadow: -4px 0 24px rgba(15, 20, 35, 0.18);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.mobile-nav-overlay.open .mobile-nav-drawer {
    transform: translateX(0);
}
.mobile-nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
    margin: 0;
    color: var(--muted);
    line-height: 1;
}
.mobile-nav-drawer nav {
    display: flex;
    flex-direction: column;
}
.mobile-nav-drawer nav a {
    margin-left: 0;
    padding: 0.9rem 0.2rem;
    font-size: 1.05rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
@media (max-width: 640px) {
    header.site nav#site-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
}
main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1rem;
}
main.wide {
    max-width: 900px;
}
main.landing {
    max-width: 1240px;
}
main.onboarding {
    max-width: 980px;
}
main.card-public {
    max-width: 1400px;
    width: 80%;
    margin: 1.2rem auto;
}
@media (max-width: 640px) {
    main.card-public {
        width: 100%;
    }
    .card-header-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}
h1 { font-size: 1.5rem; margin-top: 0; }
label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}
input[type=text], input[type=email], input[type=password], input[type=url] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}
button, .btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}
button:hover, .btn:hover { background: var(--primary-dark); }
.muted-link { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; display: block; }
.flash {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.flash.success { background: #e6f7ec; color: var(--success); }
.flash.error { background: #fdeaea; color: var(--danger); }
ul.errors {
    background: #fdeaea;
    color: var(--danger);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}
/* Honeypot: off-screen (not display:none, which some bots explicitly
   check for and skip) rather than truly invisible to a screen reader on
   its own - aria-hidden + tabindex="-1" on the field itself is what
   actually keeps it out of a real visitor's way. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
.password-field { position: relative; }
.password-field input { padding-right: 2.5rem; }
.password-toggle {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
}
.password-strength { margin-top: 0.5rem; }
.password-strength-bar {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger);
    transition: width 0.2s, background-color 0.2s;
}
.password-strength-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.2rem;
    display: block;
    min-height: 1.2em;
}
.password-requirements {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.3rem 0 0 0;
}
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin: 0 0 -1px 0;
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 999px;
    transition: background-color 0.2s;
}
.switch .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.switch input:checked + .slider {
    background: var(--primary);
}
.switch input:checked + .slider::before {
    transform: translateX(20px);
}
footer.site-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.2rem 2rem 2rem 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}
footer.site-footer .footer-links a {
    color: var(--muted);
    text-decoration: none;
}
footer.site-footer .footer-links a:hover {
    color: var(--text);
}
@media (max-width: 640px) {
    footer.site-footer {
        font-size: 0.95rem;
        gap: 0.8rem;
    }
    footer.site-footer .footer-links a,
    footer.site-footer .footer-lang-btn {
        display: inline-block;
        padding: 0.5rem 0.3rem;
    }
    footer.site-footer .footer-lang-btn {
        font-size: 1.3rem;
    }
    .footer-revoke-btn {
        padding: 0.5rem 0.9rem;
    }
}
.footer-revoke-btn {
    background: #e5e7eb;
    color: var(--muted);
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    cursor: default;
    margin: 0;
}
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
}
.hero .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: 2.1rem;
    margin: 0 0 0.8rem 0;
    line-height: 1.25;
}
.hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 1.6rem auto;
}
.hero .cta-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.hero .btn-light {
    background: #fff;
    color: var(--primary);
    margin-top: 0;
}
.hero .btn-light:hover { background: #eef0ff; }
.hero .cta-secondary {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
}
.hero .cta-secondary:hover { color: #fff; }
.hero .hero-note {
    margin: 1.4rem auto 0 auto;
    font-size: 0.85rem;
    opacity: 0.75;
}
.hero-demo-form {
    margin: 1.8rem 0 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-demo {
    background: #8b5807;
    color: #fff;
    margin: 0;
}
.btn-demo:hover {
    background: #714606;
}
.hero-demo-note {
    margin: 0.6rem 0 0 0;
    font-size: 0.85rem;
    opacity: 0.8;
}
.section-heading {
    text-align: center;
    margin: 3.5rem 0 2rem 0;
}
.section-heading h2 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
}
.section-heading p {
    color: var(--muted);
    margin: 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem;
    transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(20, 25, 40, 0.08);
}
.feature-card .icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.7rem;
}
.feature-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.02rem;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}
.badge-pro {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.phone-mockup-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}
.phone-mockup {
    width: 250px;
    flex-shrink: 0;
}
.phone-mockup-frame {
    border: 10px solid #1f2430;
    border-radius: 34px;
    overflow: hidden;
    background: #1f2430;
    box-shadow: 0 20px 45px rgba(20, 25, 40, 0.18);
}
.phone-mockup-frame::before {
    content: '';
    display: block;
    height: 18px;
    margin: 0 auto;
    width: 70px;
    background: #000;
    border-radius: 0 0 10px 10px;
}
.phone-mockup-frame iframe {
    display: block;
    width: 100%;
    height: 540px;
    border: none;
    background: #fff;
}
.phone-mockup-label {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}
/* A phone-shaped frame around content that's already showing a
   phone-width card layout reads as a toy on an actual phone screen
   ("Handy im Handy") - drop the decorative chrome and let it use
   most of the viewport width instead, so the card itself stays
   legible. */
@media (max-width: 640px) {
    .phone-mockup {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .phone-mockup-frame {
        border-width: 4px;
        border-radius: 18px;
        box-shadow: 0 10px 25px rgba(20, 25, 40, 0.15);
    }
    .phone-mockup-frame::before {
        height: 12px;
        width: 46px;
    }
    .phone-mockup-frame iframe {
        height: 620px;
    }
}
.design-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}
.design-tab-btn {
    margin: 0;
    padding: 0.5rem 1.1rem;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.design-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.8rem auto;
}
.steps h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
}
.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.cta-banner {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 18px;
    padding: 2.6rem 2rem;
    text-align: center;
    margin: 3.5rem 0 1rem 0;
}
.cta-banner h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}
.cta-banner p {
    color: var(--muted);
    margin: 0 0 0.4rem 0;
}
.cta-banner-muted {
    background: var(--bg);
    border: 1px solid var(--border);
}
.cta-banner-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}
.cta-banner-primary h2 {
    color: #fff;
}
.cta-banner-primary p {
    color: rgba(255, 255, 255, 0.85);
}
.cta-banner-primary .btn {
    background: #fff;
    color: var(--primary);
}
.cta-banner-primary .btn:hover {
    background: #eef1f8;
}
.teams-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, #1f2430, #384049);
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin: 2rem 0 1rem 0;
}
.teams-section-text {
    flex: 1 1 320px;
}
.teams-section .eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.teams-section h2 {
    margin: 0 0 1.2rem 0;
    font-size: 1.5rem;
}
.teams-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.teams-checklist li {
    padding-left: 1.6rem;
    position: relative;
    opacity: 0.92;
}
.teams-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #7ee0c4;
}
.teams-section-price {
    flex: 0 1 260px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
}
.teams-price {
    margin: 0 0 1.2rem 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
}
.teams-section-price .btn {
    background: #fff;
    color: #1f2430;
    width: 100%;
}
.teams-section-price .btn:hover {
    background: #eef1f8;
}
.faq-accordion {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.faq-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--muted);
    transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.4rem 1.2rem 1.4rem;
    color: var(--muted);
}
.faq-answer p {
    margin: 0;
    line-height: 1.55;
}
.price-highlight {
    text-align: center;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2.6rem 2rem;
}
.price-highlight-eyebrow {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
}
.price-highlight-amount {
    margin: 0 0 0.6rem 0;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
}
.price-highlight-note {
    margin: 0;
    color: var(--muted);
}
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.dashboard-header-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dashboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.dashboard-header h1 {
    margin: 0;
    font-size: 1.3rem;
}
.dashboard-header .muted-link {
    margin: 0.2rem 0 0 0;
}
.plan-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--muted);
    white-space: nowrap;
}
.plan-badge-pro {
    background: var(--primary);
}
.plan-badge-firma {
    background: linear-gradient(135deg, #1f2430, #384049);
}
.plan-badge-demo {
    background: #e08e0b;
}
.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.dashboard-menu {
    position: relative;
}
.dashboard-menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-menu-toggle:hover {
    background: var(--border);
}
.dashboard-menu-panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 170px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(20, 25, 40, 0.12);
    padding: 0.4rem;
    z-index: 20;
}
.dashboard-menu-panel a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
}
.dashboard-menu-panel a:hover {
    background: var(--bg);
}
.status-link-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.status-link {
    color: var(--muted);
}
.copy-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.2rem;
    border-radius: 6px;
    color: var(--muted);
}
.copy-btn:hover {
    background: var(--bg);
    color: var(--text);
}
/* An iframe preview (phone mockup) renders a public card page at a
   fixed height - if the card content is taller, the browser's
   default scrollbar breaks the native-app feel of the mockup. */
body:has(main.card-public) {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
body:has(main.card-public)::-webkit-scrollbar {
    width: 6px;
}
body:has(main.card-public)::-webkit-scrollbar-track {
    background: transparent;
}
body:has(main.card-public)::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}
.quick-actions .btn {
    margin: 0;
}
.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--border);
}
.dashboard-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}
.dashboard-preview-col {
    flex: 0 0 auto;
    margin: 0 auto;
}
.dashboard-stats-col {
    flex: 1 1 340px;
}
.stat-tile-grid {
    /* Flexbox (not grid) so a half-full last row shares the row's
       width evenly among just its own tiles instead of leaving a
       gap under whatever grid column an earlier row happened to
       define - e.g. 5 tiles at 3-per-row would otherwise strand a
       lone 4th tile in row 2 with empty space next to it. */
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.stat-tile {
    flex: 1 1 120px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.stat-tile .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    display: block;
}
.stat-tile .stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    display: block;
    margin-top: 0.3rem;
}
.stat-tile-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.stat-tile-primary .stat-value,
.stat-tile-primary .stat-label {
    color: #fff;
}
.onboarding-progress-wrap {
    margin: 0 0 1.5rem 0;
}
.onboarding-progress-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 0.5rem 0;
}
.onboarding-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.onboarding-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.2s;
}
.onboarding-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.onboarding-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.onboarding-nav button[type=submit] {
    margin-top: 0;
}
.onboarding-back-btn {
    background: var(--border);
    color: var(--text);
    margin-top: 0;
}
.onboarding-back-btn:hover {
    background: #d8dae2;
}
.onboarding-skip-btn {
    background: none;
    border: none;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin: 1rem 0 0 0;
    display: inline-block;
}
.onboarding-help {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0.3rem 0 1.3rem 0;
}
.onboarding-preview-col {
    display: none;
}
.onboarding-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0 0 0.6rem 0;
}
.onboarding-preview-label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}
.onboarding-preview-mode-toggle {
    display: flex;
    gap: 0.3rem;
}
.onboarding-preview-mode-btn {
    background: var(--border);
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
}
.onboarding-preview-mode-btn.active {
    background: var(--primary);
    opacity: 1;
}
.onboarding-preview-frame-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    height: 640px;
}
.onboarding-preview-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.onboarding-preview-frame-wrap.desktop-mode iframe {
    width: 1400px;
    height: 2100px;
    transform: scale(0.271);
    transform-origin: top left;
}
.onboarding-preview-toggle {
    display: block;
    width: 100%;
    margin: 1.5rem 0 0 0;
    background: var(--border);
    color: var(--text);
}
.onboarding-preview-toggle:hover {
    background: #d8dae2;
}
.onboarding-design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.onboarding-design-option {
    display: block;
    position: relative;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    padding: 0;
    text-align: left;
}
.onboarding-design-option.active,
.onboarding-design-option:has(input:checked) {
    border-color: var(--primary);
}
.onboarding-design-thumb-wrap {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
}
.onboarding-design-thumb-wrap iframe {
    border: none;
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
}
.onboarding-design-thumb-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.onboarding-design-label {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.onboarding-design-lock {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}
.onboarding-slug-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.onboarding-slug-preview {
    font-size: 0.95rem;
    color: var(--muted);
    word-break: break-all;
}
.onboarding-slug-status {
    font-size: 0.88rem;
    margin-top: 0.4rem;
    min-height: 1.3em;
}
.onboarding-slug-status.available { color: var(--success); }
.onboarding-slug-status.taken { color: var(--danger); }
.onboarding-checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.onboarding-checklist li {
    padding: 0.4rem 0;
    color: var(--text);
}
.onboarding-resume-box {
    text-align: center;
}
@media (min-width: 860px) {
    .onboarding-layout {
        grid-template-columns: 1fr 380px;
        align-items: start;
    }
    .onboarding-preview-col {
        display: block;
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
    }
    .onboarding-preview-toggle {
        display: none;
    }
}
.footer-lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 0;
    margin: 0 0 0 0.2rem;
    line-height: 1;
    vertical-align: middle;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 35, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}
.modal-overlay[hidden] {
    display: none;
}
.modal {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.6rem;
    max-width: 320px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(15, 20, 35, 0.25);
}
.modal h2 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}
.modal-lang-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.modal-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}
.modal-lang-option:hover {
    border-color: var(--primary);
}
.modal-lang-option.active {
    border-color: var(--primary);
    background: rgba(59, 91, 253, 0.06);
    font-weight: 600;
}
.modal-close {
    margin-top: 1.2rem;
    width: 100%;
    background: var(--border);
    color: var(--text);
}
.modal-close:hover { background: #d8dae2; }
