/* ============================================================
   Rotonda POS — Business Setup Guide Styles
   Extends styles.css (uses same CSS variables)
   ============================================================ */

/* ══ Language Switcher ══ */
.lang-switcher {
    position: relative;
    margin-right: 4px;
}
.lang-switcher-btn {
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}
.lang-switcher-btn:hover {
    border-color: var(--primary);
    background: var(--container);
}
.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    list-style: none;
    margin: 0;
    padding: 4px;
    min-width: 80px;
    box-shadow: var(--shadow-md);
    z-index: 200;
}
.lang-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    border-radius: 7px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.04em;
    transition: background .15s;
}
.lang-option:hover {
    background: var(--container);
    color: var(--primary);
}

/* ══ Guide Hero ══ */
.guide-hero {
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(145deg, var(--container) 0%, #f3f5f8 55%, var(--bg) 100%);
}

.guide-hero-content {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.guide-hero-content .badge {
    margin-bottom: 1.25rem;
}

.guide-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 1rem;
}

.guide-hero h1 .accent { color: var(--primary); }

.guide-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

/* ══ Branch Selector ══ */
.branch-section {
    padding: 3rem 0 4rem;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.branch-card-guide {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.branch-card-guide:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(70,130,255,.3);
}

.branch-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg, var(--container));
    color: var(--color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-card-guide h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.branch-card-guide p {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.branch-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}

.branch-card-guide:hover .branch-cta { gap: 0.75rem; }

/* ══ Guide Path Sections ══ */
.guide-path {
    display: none;
    padding: 3rem 0 5rem;
}

.guide-path.active { display: block; }

/* Back link */
.back-link-guide {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.back-link-guide:hover { opacity: 0.75; }

/* Path header */
.path-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.path-header .section-label {
    margin-bottom: 1rem;
}

.path-header h2 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.path-header p {
    font-size: 1rem;
    color: var(--muted);
}

/* ══ Progress Tracker ══ */
.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.progress-step {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    padding: 0.4rem 0.625rem;
    border-radius: 100px;
    transition: all 0.2s;
}

.progress-step.active {
    background: var(--primary);
    color: #fff;
}

.progress-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.progress-step.active .progress-num {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.progress-line {
    width: 24px;
    height: 2px;
    background: var(--surface-2);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ══ Step Cards ══ */
.step-card-guide {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.step-card-guide:hover { box-shadow: var(--shadow-md); }

.step-card-guide.highlight-step {
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.step-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.step-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: var(--container);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
}

.step-badge-important {
    background: #fef2f2;
    color: #dc2626;
}

.step-card-header h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.step-sub {
    font-size: 0.9375rem;
    color: var(--muted);
}

.step-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg, var(--container));
    color: var(--color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card-body {
    padding: 1.75rem;
}

.step-card-body p {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-card-body h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* Guide lists */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-list li {
    font-size: 0.9375rem;
    color: var(--muted);
    padding-left: 1.375rem;
    position: relative;
    line-height: 1.65;
}

.guide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
}

/* ══ Callout Boxes ══ */
/* Reset the absolute-positioned .callout from styles.css */
.step-card-body .callout,
.completion-card-guide .callout {
    position: static;
    z-index: auto;
    max-width: none;
    width: auto;
    display: block;
    box-shadow: none;
    font-weight: 400;
}

.callout {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.callout strong {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.callout-blue {
    background: var(--container);
    border: 1px solid rgba(70,130,255,0.2);
    color: #1e3a5f;
}
.callout-blue strong { color: var(--primary); }

.callout-green {
    background: #e8f5e9;
    border: 1px solid rgba(46,125,50,0.2);
    color: #1b5e20;
}
.callout-green strong { color: #2e7d32; }

.callout-yellow {
    background: #fff8e0;
    border: 1px solid rgba(196,154,0,0.2);
    color: #5d4e00;
}
.callout-yellow strong { color: #c49a00; }

.callout-red {
    background: #fef2f2;
    border: 1px solid rgba(220,38,38,0.2);
    color: #7f1d1d;
}
.callout-red strong { color: #dc2626; }

/* ══ Feature Grid ══ */
.guide-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.guide-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.guide-feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.guide-feature-item > div {
    font-size: 0.875rem;
    color: var(--text);
}

.guide-feature-item span {
    display: block;
    color: var(--muted);
    font-size: 0.8125rem;
    margin-top: 0.125rem;
}

/* ══ Completion Card ══ */
.completion-card-guide {
    background: linear-gradient(135deg, var(--container) 0%, #f3f5f8 100%);
    border: 1px solid rgba(70,130,255,0.2);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.completion-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: var(--shadow-md);
}

.completion-card-guide h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.completion-card-guide > p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    max-width: 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.check-list li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.15;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234682ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 6 5 9 10 3'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons for guide pages */
.btn-guide-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
    transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-guide-primary:hover {
    background: var(--primary-d);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(70,130,255,.34);
}

.btn-guide-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 22px;
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--container);
    transition: transform .18s ease, background .2s ease, border-color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-guide-outline:hover {
    background: var(--container);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ══ Privacy page ══ */
.page-hero {
    padding: clamp(96px, 14vw, 140px) 0 clamp(40px, 6vw, 64px);
    background: radial-gradient(900px 400px at 70% -10%, var(--container), transparent 60%);
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin: 16px 0 12px;
}

.page-hero .last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.prose {
    max-width: 740px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 10vw, 120px);
}

.prose h2 {
    font-size: 22px;
    margin: 48px 0 12px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.prose ul {
    margin: 10px 0 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prose ul li {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.65;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.perm-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 24px;
    margin: 16px 0;
}

.perm-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text);
}

.perm-card p {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ══ Responsive ══ */
@media (max-width: 860px) {
    .branch-grid {
        grid-template-columns: 1fr;
    }

    .guide-feature-grid {
        grid-template-columns: 1fr;
    }

    .step-card-header {
        flex-direction: column;
    }

    .step-icon-wrap {
        align-self: flex-start;
    }

    .progress-tracker {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .progress-line {
        width: 16px;
    }
}

@media (max-width: 600px) {
    .guide-hero {
        padding: 3rem 0 2.5rem;
    }

    .branch-section {
        padding: 2rem 0 3rem;
    }

    .guide-path {
        padding: 2rem 0 4rem;
    }

    .step-card-header,
    .step-card-body {
        padding: 1.25rem;
    }

    .completion-card-guide {
        padding: 2rem 1.5rem;
    }

    .completion-actions {
        flex-direction: column;
    }

    .completion-actions .btn-guide-primary,
    .completion-actions .btn-guide-outline {
        width: 100%;
        justify-content: center;
    }
}
