/* Larrly onboarding — Wix intro flow (non-AI) */

:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --ink: #0a1628;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #25b8ad;
    --brand-dark: #1a9e94;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ob-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    position: relative;
    z-index: 10;
}
.ob-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}
.brand-mark {
    width: 22px; height: 26px; position: relative; flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after {
    content: ""; position: absolute; left: 5px;
    width: 14px; height: 16px; border-radius: 4px;
    background: var(--brand); transform: rotate(38deg);
}
.brand-mark::before { top: 0; }
.brand-mark::after { bottom: 0; opacity: .55; }

.ob-skip {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ob-skip:hover { text-decoration: underline; }

.ob-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 5;
}

.ob-card {
    width: 100%;
    max-width: 680px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 24px 80px rgba(0,0,0,.08);
    padding: 40px 48px 32px;
    position: relative;
}

.ob-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.ob-progress span {
    display: block;
    height: 100%;
    background: var(--brand);
    transition: width .4s ease;
}

.ob-card h1 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--ink);
}

.ob-input, .ob-textarea {
    width: 100%;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: box-shadow .15s;
    resize: vertical;
}
.ob-input:focus, .ob-textarea:focus {
    box-shadow: 0 0 0 3px rgba(37,184,173,.12);
}
.ob-input::placeholder, .ob-textarea::placeholder { color: #9ca3af; }
.ob-textarea { min-height: 100px; margin-bottom: 20px; }

.ob-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin: 20px 0 12px;
}

.ob-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ob-chip {
    padding: 10px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .12s, background .12s;
    font-family: inherit;
}
.ob-chip:hover { border-color: #cbd5e1; background: #fafafa; }
.ob-chip.selected {
    border-color: var(--brand);
    background: #e8fbf8;
    color: var(--brand-dark);
}

.ob-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 8px;
}
.ob-back {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.ob-back:hover { text-decoration: underline; }
.ob-actions { display: flex; align-items: center; gap: 20px; }
.ob-link-skip {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.ob-link-skip:hover { text-decoration: underline; }
.ob-btn-next {
    min-height: 44px;
    padding: 0 28px;
    border-radius: 999px;
    border: none;
    background: #374151;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.ob-btn-next:hover { background: #1f2937; }
.ob-btn-next:disabled { opacity: .45; cursor: not-allowed; }

/* Loading step */
.ob-loading h1 { font-size: 24px; margin-bottom: 28px; }
.ob-checklist { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ob-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--muted);
    transition: color .3s;
}
.ob-checklist li.done { color: var(--ink); font-weight: 500; }
.ob-check-icon {
    width: 22px; height: 22px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ob-checklist li.done .ob-check-icon { color: var(--brand); }
.ob-checklist li.pending .ob-check-icon { color: #d1d5db; }

@media (max-width: 720px) {
    .ob-card { padding: 28px 24px 24px; }
    .ob-header { padding: 16px 20px; }
}

.ob-theme-toggle {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--card);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--muted); margin-left: 8px;
}
.ob-theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .ob-theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .ob-theme-toggle .icon-moon { display: block; }

[data-theme="dark"] {
    --bg: #0b0f14;
    --card: #151b24;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --line: #1e293b;
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .ob-card { box-shadow: 0 4px 24px rgba(0,0,0,.3); }
[data-theme="dark"] .ob-textarea,
[data-theme="dark"] .ob-input { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .ob-chip { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .ob-chip.selected { background: rgba(37,184,173,.15); border-color: #25b8ad; color: #4fd1c5; }
[data-theme="dark"] .ob-btn-next { background: #25b8ad; }
[data-theme="dark"] .ob-skip { color: #cbd5e1; }
