/* ============================================================
   Inscend Brand Help Center — shared styles
   Matches the design system used on brand-website/index.html:
   violet accent, Inter font, card-based sections. Keep in sync
   with the :root tokens below if the main site's palette changes.
   ============================================================ */

:root {
    --violet-700: #4636b0;
    --violet-600: #5b4fd6;
    --violet-100: #ece8fb;

    --ink-900: #1e1b29;
    --ink-700: #3d3650;
    --ink-500: #675f78;
    --ink-300: #948caa;

    --line-200: #e2ddee;
    --line-300: #cdc4e2;

    --surface-1: #ffffff;
    --surface-2: #f6f4fb;

    --good: #1f8a5c;
    --good-soft: #e4f5ec;
    --warn: #92400e;
    --warn-soft: #fffbeb;
    --warn-icon: #f59e0b;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(30, 20, 50, .06);
    --shadow-md: 0 8px 24px rgba(40, 25, 80, .10);
    --shadow-lg: 0 24px 60px rgba(30, 20, 50, .16);

    --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink-900);
    line-height: 1.6;
    background: var(--surface-1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--violet-600);
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-600);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--violet-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(40,25,80,.08);
}
.btn-primary:hover { background: var(--violet-700); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--ink-900);
    border-color: var(--line-300);
}
.btn-ghost:hover { border-color: var(--ink-500); }

.btn-quiet {
    background: transparent;
    color: var(--ink-700);
    padding: 13px 4px;
}
.btn-quiet:hover { color: var(--violet-600); }

/* ---------- Header (copied from index.html) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--line-200);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 26px;
    width: auto;
    filter: brightness(0);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink-700);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.current { color: var(--ink-900); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink-900);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 65px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--surface-1);
    z-index: 199;
    padding: 24px 32px 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    overflow-y: auto;
}
.mobile-menu.active { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--line-200); }
.mobile-menu ul li a {
    display: block;
    padding: 18px 2px;
    text-decoration: none;
    color: var(--ink-900);
    font-weight: 600;
    font-size: 17px;
}
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.mobile-menu-actions .btn { width: 100%; }

@media (max-width: 920px) {
    .main-nav, .nav-actions { display: none; }
    .hamburger { display: flex; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line-200);
    padding: 16px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-500);
}

.breadcrumb-list a {
    text-decoration: none;
    color: var(--ink-500);
    font-weight: 500;
}
.breadcrumb-list a:hover { color: var(--ink-900); }

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--line-300);
}

.breadcrumb-list li:last-child {
    color: var(--ink-900);
    font-weight: 600;
}

/* ---------- Help hub hero ---------- */
.help-hero {
    padding: 72px 0 56px;
    text-align: center;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line-200);
}

.help-hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.help-hero-title {
    font-size: 44px;
    line-height: 1.15;
    margin: 18px 0 16px;
}

.help-hero-subtitle {
    font-size: 18px;
    color: var(--ink-500);
    line-height: 1.6;
}

/* ---------- Hub card grid ---------- */
.help-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 32px;
}

.help-group-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--surface-1);
    border: 1px solid var(--line-200);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.help-card:hover {
    border-color: var(--violet-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.help-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--violet-100);
    color: var(--violet-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.help-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-900);
}

.help-card-desc {
    font-size: 14.5px;
    color: var(--ink-500);
    line-height: 1.5;
}

.help-card-steps {
    font-size: 13px;
    color: var(--ink-300);
    font-weight: 700;
    margin-top: auto;
}

/* ---------- Tutorial page hero ---------- */
.tutorial-hero {
    padding: 56px 0 44px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line-200);
}

.tutorial-hero-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
}

.tutorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--violet-100);
    color: var(--violet-700);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.tutorial-title {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.tutorial-subtitle {
    font-size: 17px;
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: var(--ink-300);
    font-weight: 600;
}

.tutorial-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Tutorial body ---------- */
.tutorial-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.simple-summary {
    background: var(--surface-2);
    border-left: 4px solid var(--violet-600);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 48px;
    font-size: 16px;
    color: var(--ink-900);
    font-weight: 500;
    line-height: 1.6;
}

.simple-summary strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-500);
    font-weight: 700;
    margin-bottom: 8px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-200);
}

.step:last-of-type { border-bottom: none; }

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--violet-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
}

.step-content { flex: 1; min-width: 0; }

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    color: var(--ink-700);
    margin-bottom: 12px;
}

.step-content ul {
    margin: 0 0 12px 20px;
    color: var(--ink-700);
    font-size: 16px;
}

.step-content li { margin-bottom: 8px; }

/* ---------- Screenshot placeholder ---------- */
.screenshot-placeholder {
    width: 100%;
    min-height: 220px;
    background: var(--surface-2);
    border: 2px dashed var(--line-300);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink-300);
    text-align: center;
    padding: 24px;
    margin: 16px 0 20px;
}

.screenshot-placeholder svg { width: 30px; height: 30px; }

.screenshot-placeholder .ph-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-500);
}

.screenshot-placeholder .ph-hint {
    font-size: 12.5px;
    color: var(--ink-300);
    max-width: 420px;
}

/* ---------- Step screenshot (real image, replaces the placeholder above once shot) ---------- */
.step-screenshot {
    width: 100%;
    margin: 16px 0 20px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--surface-2);
}

.step-screenshot img {
    width: 100%;
    display: block;
}

/* ---------- Tip / warning callouts ---------- */
.callout {
    display: flex;
    gap: 14px;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 4px 0 20px;
    font-size: 15px;
    line-height: 1.55;
}

.callout svg { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.callout-tip { background: var(--good-soft); color: var(--good); }
.callout-tip svg { stroke: var(--good); }

.callout-warning { background: var(--warn-soft); color: var(--warn); }
.callout-warning svg { stroke: var(--warn-icon); }

.callout strong { font-weight: 700; }

/* ---------- Word lookup (glossary) ---------- */
.word-box {
    background: var(--surface-2);
    border: 1px solid var(--line-200);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 4px 0 20px;
    font-size: 14.5px;
    color: var(--ink-700);
}

.word-box b { color: var(--ink-900); }

/* ---------- Next steps / related ---------- */
.next-steps {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line-200);
}

.next-steps-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.next-step-card {
    display: block;
    background: var(--surface-2);
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.next-step-card:hover {
    background: var(--surface-1);
    border-color: var(--violet-600);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.next-step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-300);
    font-weight: 700;
    margin-bottom: 6px;
}

.next-step-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink-900);
}

/* ---------- Still stuck CTA ---------- */
.help-cta {
    margin-top: 56px;
    text-align: center;
    background: var(--ink-900);
    padding: 44px 24px;
    border-radius: var(--radius-lg);
}

.help-cta h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.help-cta p { color: var(--ink-300); font-size: 15px; margin-bottom: 20px; }

.help-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.help-cta .btn-ghost:hover { border-color: #fff; }

.help-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Footer (copied from latest design: index.html) ---------- */
.footer { background: var(--ink-900); color: #cdc6de; padding-top: 64px; }
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 56px;
}
.footer-top > * { min-width: 0; }
.footer-wordmark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-img { height: 24px; width: auto; }
.footer-desc { font-size: 14px; line-height: 1.7; color: var(--ink-300); max-width: 280px; margin-bottom: 22px; }

.social-row { display: flex; gap: 10px; }
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.social-link:hover { background: rgba(255,255,255,.18); }
.social-link svg { width: 16px; height: 16px; }

.footer-col-title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a8299;
    margin-bottom: 18px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; font-size: 14.5px; color: #cdc6de; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 0;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #8a8299;
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { text-decoration: none; color: #8a8299; }
.footer-bottom-links a:hover { color: #fff; }
.footer-address { font-size: 13px; color: #6f6784; max-width: 300px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .help-hero { padding: 48px 0 36px; }
    .help-hero-title { font-size: 32px; }
    .help-content { padding: 48px 20px; }
    .tutorial-hero { padding: 40px 0 32px; }
    .tutorial-title { font-size: 28px; }
    .tutorial-body { padding: 36px 20px 60px; }
    .step { flex-direction: column; gap: 12px; }
    .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .help-hero-title { font-size: 26px; }
    .tutorial-title { font-size: 24px; }
    .container { padding: 0 20px; }
}
