:root {
    --primary: #0369a1;
    --primary-hover: #075985;
    --primary-soft: #e0f2fe;
    --accent: #15803d;
    --accent-soft: #dcfce7;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --bg: #f8fafc;
    --blue-bg: #f0f9ff;
    --paper: #ffffff;
    --line: #dbe7ef;
    --line-strong: #bae6fd;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --warning: #a16207;
    --warning-soft: #fefce8;
    --radius: 10px;
    --radius-sm: 7px;
    --font: "Atkinson Hyperlegible", system-ui, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, summary, [role="button"] { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
h2 { font-size: 1.25rem; margin-bottom: 8px; }
h3 { font-size: 1rem; }
p { color: var(--muted); }
code, .mono { font-family: var(--mono); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 6px; color: var(--primary); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.field-note { float: right; color: var(--faint); font-size: .78rem; font-weight: 400; }
.field-error { margin: -4px 0 0; color: var(--danger); font-size: .85rem; }

/* Shared controls */
.btn-primary, .btn-secondary, .btn-danger, .btn-ghost, .btn-outline {
    min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white;
    font-weight: 700; line-height: 1; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white; }
.btn-secondary, .btn-outline { color: var(--ink); background: var(--paper); border-color: var(--line-strong); }
.btn-secondary:hover, .btn-outline:hover { color: var(--primary-hover); background: var(--blue-bg); border-color: var(--primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: white; background: #991b1b; }
.btn-ghost { color: var(--ink-soft); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--primary); background: var(--primary-soft); }
.btn-sm { min-height: 36px; padding: 8px 12px; font-size: .86rem; }
.btn-lg { min-height: 50px; padding: 13px 20px; }
.btn-block { width: 100%; }
.text-danger { padding: 8px; border: 0; background: transparent; color: var(--danger); font-weight: 700; }
.text-danger:hover { text-decoration: underline; }
.icon-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }

/* Navigation */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--primary); border-radius: 50%; position: relative; }
.brand-mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.brand-mark span { position: absolute; width: 34px; height: 1px; background: var(--primary); transform: rotate(-35deg); }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.nav-container { width: min(1160px, calc(100% - 40px)); min-height: 68px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-nav { display: flex; align-items: center; gap: 24px; }
.public-nav > a:not(.btn-primary) { color: var(--ink-soft); font-weight: 700; }
.menu-button { width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; display: none; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

/* Public site */
.site-body { background: var(--paper); }
.site-main { min-height: 70vh; }
.hero { min-height: 670px; padding: 120px 0 90px; display: grid; place-items: center; text-align: center; position: relative; }
.hero-inner { width: min(820px, 100%); position: relative; z-index: 2; }
.hero h1 { max-width: 760px; margin: 18px auto; font-size: clamp(3rem, 7.5vw, 5.8rem); line-height: .98; }
.gradient-text { color: var(--primary); }
.hero-subtitle { max-width: 620px; margin: 0 auto 28px; font-size: 1.14rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--primary-hover); background: var(--blue-bg); font-size: .85rem; font-weight: 700; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-search { max-width: 680px; margin: 28px auto 0; padding: 7px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.hero-search input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; font-size: 1rem; }
.search-icon { flex: none; margin-left: 8px; color: var(--muted); }
.hero-search-results { max-width: 680px; margin: 4px auto; border: 1px solid var(--line); background: var(--paper); text-align: left; position: absolute; left: 0; right: 0; z-index: 10; }
.hsr-item { display: flex; flex-direction: column; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.hsr-item:hover { background: var(--blue-bg); }
.hsr-meta, .hsr-empty { color: var(--muted); font-size: .84rem; }
.hsr-empty { padding: 14px; }
.floating-icons { position: absolute; inset: 70px 0 auto; height: 600px; pointer-events: none; }
.float-icon { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); object-fit: contain; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); opacity: .72; transform: rotate(var(--rot)); }
.hero-glow, .scroll-hint { display: none; }
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stats-bar .stat { padding: 28px 18px; border-right: 1px solid var(--line); text-align: center; }
.stats-bar .stat:last-child { border-right: 0; }
.stat-num { display: block; color: var(--ink); font-size: 2rem; font-weight: 700; }
.stat-label { display: block; color: var(--muted); font-size: .86rem; }
.features, .how-it-works, .pricing, .faq { padding: 100px 0; }
.features > h2, .how-it-works > h2, .pricing > h2, .faq > h2 { max-width: 680px; margin: 0 auto 42px; text-align: center; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-kicker { text-align: center; color: var(--primary); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card p { margin-bottom: 0; }
.feature-icon { width: 44px; height: 44px; margin-bottom: 22px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: var(--radius-sm); }
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
.step-card { padding: 30px; border-block: 1px solid var(--line); }
.step-num { color: var(--primary); font-family: var(--mono); font-size: .8rem; }
.step-arrow { align-self: center; color: var(--faint); }
.pricing-grid { max-width: 860px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; }
.price-card { padding: 34px; border: 1px solid var(--line); }
.price-card + .price-card { border-left: 0; }
.price-card-featured { border-top: 4px solid var(--primary); }
.price { margin: 14px 0 20px; font-size: 2.4rem; font-weight: 700; }
.price span { color: var(--muted); font-size: .9rem; }
.price-card ul, .feature-list { padding: 0; margin: 0 0 26px; list-style: none; }
.price-card li { padding: 7px 0; color: var(--ink-soft); }
.price-card li.no { color: var(--faint); }
.badge-popular, .save-badge { color: var(--primary); font-size: .74rem; font-weight: 700; }
.billing-toggle { width: max-content; margin: 0 auto 18px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toggle-btn { min-height: 38px; padding: 7px 12px; border: 0; background: transparent; color: var(--muted); }
.toggle-btn.active { color: white; background: var(--primary); }
.payment-note { text-align: center; margin-top: 22px; }
.faq-list { max-width: 800px; margin: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 20px 4px; font-weight: 700; }
.faq-item p { max-width: 680px; padding-bottom: 20px; }
.final-cta { padding: 80px 0; }
.final-cta-box { padding: 64px 30px; text-align: center; color: white; background: var(--ink); border-radius: var(--radius); }
.final-cta-box h2 { color: white; font-size: clamp(2rem, 5vw, 3.6rem); }
.orbit-section { padding: 90px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; border-bottom: 1px solid var(--line); }
.orbit-copy { min-width: 0; }
.orbit-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.orbit-stage { position: relative; width: 470px; height: 470px; margin: auto; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; transform: translate(-50%,-50%); display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); z-index: 2; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1); border: 1px dashed var(--line-strong); border-radius: 50%; }
.o-slot { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translate(var(--r)); }
.o-icon { display: block; width: 44px; height: 44px; margin: -22px; padding: 8px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transform: rotate(calc(var(--a) * -1)); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 48px 0; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid p { max-width: 300px; margin-top: 14px; }
.footer-grid nav { display: grid; align-content: start; gap: 9px; }
.footer-grid nav a { color: var(--muted); }
.footer-copy { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: .84rem; }

/* Authenticated application shell */
.app-body { background: var(--bg); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; z-index: 50; }
.app-sidebar .brand { padding: 4px 8px 24px; }
.side-nav { display: grid; gap: 3px; }
.side-nav a, .side-footer > a, .nav-button { width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); display: flex; align-items: center; color: var(--ink-soft); background: transparent; font-weight: 700; text-align: left; }
.side-nav a:hover, .side-footer > a:hover, .nav-button:hover { color: var(--primary); background: var(--blue-bg); }
.side-nav a[aria-current="page"], .side-footer > a[aria-current="page"] { color: var(--primary-hover); background: var(--primary-soft); }
.side-footer { margin-top: auto; display: grid; gap: 2px; }
.account-chip { margin-top: 14px; padding: 14px 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--primary); font-weight: 700; }
.account-chip > span:last-child { min-width: 0; }
.account-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.account-chip small { display: block; color: var(--muted); font-size: .7rem; }
.app-column { min-width: 0; }
.mobile-appbar { display: none; }
.app-main { width: min(1280px, calc(100% - 64px)); margin: auto; padding: 34px 0 60px; }
.page-header { min-height: 90px; margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-header h1 { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p:last-child { margin-bottom: 0; }

/* Feedback */
.flash-stack { position: relative; z-index: 30; }
.flash { min-height: 48px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.flash-error { color: var(--danger); background: var(--danger-soft); border-color: #fecaca; }
.flash-success { color: var(--accent); background: var(--accent-soft); border-color: #bbf7d0; }
.flash-info { color: var(--primary-hover); background: var(--blue-bg); border-color: var(--line-strong); }
.flash-close { width: 36px; height: 36px; border: 0; background: transparent; color: currentColor; font-size: 1.3rem; }

/* Forms */
label, legend { display: block; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
input[type="email"], input[type="password"], input[type="text"], input[type="url"], input[type="number"], input[type="search"], select, textarea {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); color: var(--ink); background: var(--paper); outline: none;
}
textarea { min-height: 110px; resize: vertical; }
select[multiple] { min-height: 126px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
input:disabled { color: var(--muted); background: #f1f5f9; }
fieldset { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
legend { padding: 0 5px; }
.form-stacked { display: grid; gap: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.inline-help { display: block; padding-top: 8px; font-size: .86rem; }
.field-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .82rem; }

/* Workspace components */
.metric-strip { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--paper); }
.metric-strip div { padding: 18px 20px; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { display: block; font-size: 1.7rem; }
.metric-strip span { color: var(--muted); font-size: .8rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; }
.workspace-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.panel-header { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-header h2 { margin: 0; }
.job-list { display: grid; }
.job-row { padding: 16px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.job-row-main { min-width: 0; }
.job-title { color: var(--ink); font-weight: 700; }
.job-title:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.job-meta { margin: 3px 0; display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: .85rem; }
.source-line { margin: 0; color: var(--faint); font-size: .76rem; }
.compact-list { border-top: 1px solid var(--line); }
.compact-list > a { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.compact-list strong, .compact-list small { display: block; }
.compact-list small { color: var(--muted); }
.status-dot { width: 9px; height: 9px; display: inline-block; flex: none; border: 2px solid var(--faint); border-radius: 50%; }
.status-dot.is-live { border-color: var(--accent); background: var(--accent); }
.action-list { margin-top: 20px; display: grid; }
.action-list a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.action-list span, .action-list small { display: block; }
.action-list small { color: var(--muted); }
.empty-state { min-height: 150px; padding: 30px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.empty-state .btn-secondary { margin-top: 12px; }

.split-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.form-panel { position: sticky; top: 24px; }
.quota-chip, .plan-badge, .status-label, .save-state { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--primary-hover); background: var(--blue-bg); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.alert-list { border-top: 1px solid var(--line); }
.alert-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.alert-title { display: flex; align-items: center; gap: 9px; }
.alert-row p, .alert-row small { margin: 4px 0 0; color: var(--muted); }
.row-actions { display: flex; align-items: center; gap: 5px; }
.switch { position: relative; width: 46px; height: 28px; margin: 0; }
.switch input { position: absolute; opacity: 0; }
.switch > span:last-child { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .18s ease; }
.switch > span:last-child::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .18s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }

.tracker-summary { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tracker-summary span { padding: 7px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .82rem; }
.tracker-summary strong { color: var(--ink); }
.add-popover { position: relative; }
.add-popover summary { list-style: none; }
.add-popover summary::-webkit-details-marker { display: none; }
.add-popover[open] form { position: absolute; right: 0; top: 52px; z-index: 20; width: min(380px, calc(100vw - 40px)); padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { min-height: 440px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f1f5f9; }
.kanban-column > header { padding: 2px 3px 12px; display: flex; align-items: center; justify-content: space-between; }
.kanban-column > header h2 { margin: 0; font-size: .9rem; }
.kanban-column > header span { color: var(--muted); font-size: .78rem; }
.kanban-cards { min-height: 380px; display: grid; align-content: start; gap: 8px; }
.kanban-cards.is-over { outline: 2px dashed var(--primary); outline-offset: 3px; }
.kanban-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: grab; }
.kanban-card.is-dragging { opacity: .5; }
.kanban-card h3 { margin-bottom: 3px; }
.kanban-card p { margin-bottom: 3px; font-size: .84rem; }
.kanban-card small { color: var(--faint); }
.card-note { margin-top: 10px !important; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-soft) !important; }
.card-actions { margin-top: 10px; display: flex; align-items: center; gap: 4px; }

.upgrade-panel { max-width: 740px; padding: 46px; border: 1px solid var(--line-strong); border-left: 5px solid var(--primary); background: var(--paper); }
.upgrade-panel h2 { font-size: 2rem; }
.match-list { border-top: 1px solid var(--line); }
.match-row { padding: 17px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.score { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 700; }
.match-reason { margin: 8px 0 0; color: var(--ink-soft); font-size: .88rem; }

.settings-layout { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 30px; align-items: start; }
.settings-index { position: sticky; top: 24px; display: grid; }
.settings-index a { padding: 9px 0; color: var(--muted); }
.settings-sections { display: grid; gap: 12px; }
.settings-section { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scroll-margin-top: 24px; }
.settings-section > header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.settings-section > header h2 { margin: 0; }
.narrow-form { max-width: 480px; }
.token-box { padding: 13px; border: 1px solid var(--line-strong); background: var(--blue-bg); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.token-box code { overflow-wrap: anywhere; }
.danger-section { border-color: #fecaca; }
.danger-section details summary { color: var(--danger); font-weight: 700; }
.danger-section details form { margin-top: 16px; }

/* Authentication and pricing */
.auth-layout { min-height: calc(100vh - 69px); display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 70px; padding: 70px 0; }
.auth-intro h1 { max-width: 650px; font-size: clamp(2.7rem, 6vw, 5rem); }
.auth-intro > p { max-width: 580px; font-size: 1.08rem; }
.auth-intro ul { padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.auth-intro li { padding: 7px 11px; border: 1px solid var(--line-strong); color: var(--primary-hover); background: var(--blue-bg); }
.auth-card { padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--primary); background: var(--paper); }
.auth-card > p { margin-bottom: 22px; }
.auth-form { display: grid; gap: 10px; }
.auth-link { margin: 20px 0 0; text-align: center; font-size: .9rem; }
.error-page { max-width: 720px; min-height: 60vh; padding: 100px 0; }
.error-page h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
.pricing-header { max-width: 760px; margin: 80px auto 50px; text-align: center; }
.pricing-header h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.pricing-header > p:last-child { font-size: 1.1rem; }
.pricing-comparison { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pricing-plan { min-width: 0; padding: 30px; border-right: 1px solid var(--line); position: relative; }
.pricing-plan:last-child { border-right: 0; }
.pricing-plan.featured { border-top: 4px solid var(--primary); }
.featured-label { position: absolute; top: 10px; right: 12px; color: var(--primary); font-size: .72rem; font-weight: 700; }
.pricing-plan h2 { font-size: 2.25rem; }
.pricing-plan h2 span { color: var(--muted); font-size: .85rem; }
.pricing-plan ul { min-height: 180px; padding: 0; list-style: none; }
.pricing-plan li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.current-plan-note { display: block; color: var(--muted); text-align: center; }
.active-plan-banner { margin-bottom: 18px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 15px; color: var(--accent); background: var(--accent-soft); border: 1px solid #bbf7d0; }
.payment-explainer { margin: 24px 0 70px; padding: 28px; border: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.payment-explainer ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; counter-reset: pay; }
.payment-explainer li { counter-increment: pay; }
.payment-explainer li::before { content: "0" counter(pay); display: block; color: var(--primary); font-family: var(--mono); font-size: .76rem; }
.payment-explainer strong, .payment-explainer span { display: block; }
.payment-explainer span { color: var(--muted); font-size: .86rem; }
.payment-history { margin-bottom: 70px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.badge { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; }
.badge-paid { color: var(--accent); background: var(--accent-soft); border-color: #bbf7d0; }
.badge-pending { color: var(--warning); background: var(--warning-soft); border-color: #fde68a; }
.badge-expired, .badge-cancelled { color: var(--muted); background: #f1f5f9; }
.badge-refunded { color: var(--danger); background: var(--danger-soft); border-color: #fecaca; }
.access-pricing .pricing-plan.is-selected { background: var(--blue-bg); }
.access-order-form { margin-top: 20px; display: grid; gap: 12px; }
.network-confirm { min-height: 72px; padding: 11px; border: 1px solid var(--line-strong); display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: .82rem; font-weight: 400; cursor: pointer; }
.network-confirm input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.network-warning { margin-top: 24px; padding: 18px 20px; border: 1px solid #fcd34d; border-left: 5px solid var(--warning); background: var(--warning-soft); }
.network-warning strong, .network-warning p { display: block; }
.network-warning p { margin: 4px 0 6px; color: var(--ink-soft); }
.payment-watch { margin-bottom: 18px; padding: 15px 18px; border: 1px solid var(--line-strong); border-left: 5px solid var(--warning); background: var(--paper); display: grid; gap: 3px; }
.payment-watch span { color: var(--muted); }
.payment-watch.is-paid { border-left-color: var(--accent); background: var(--accent-soft); }
.billing-support { margin: -45px 0 70px; color: var(--muted); font-size: .88rem; }
.policy-page { max-width: 780px; margin: 72px auto 100px; }
.policy-page > header { padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.policy-page > header h1 { margin-bottom: 8px; font-size: clamp(2.7rem, 7vw, 4.8rem); }
.policy-page > header p:last-child { color: var(--muted); }
.policy-page section { padding: 27px 0; border-bottom: 1px solid var(--line); }
.policy-page section h2 { margin-bottom: 9px; font-size: 1.25rem; }
.policy-page section p { margin: 0; color: var(--ink-soft); }

@media (max-width: 1050px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .split-layout { grid-template-columns: 1fr; }
    .form-panel { position: static; }
    .pricing-comparison { grid-template-columns: 1fr; }
    .pricing-plan { border-right: 0; border-bottom: 1px solid var(--line); }
    .pricing-plan ul { min-height: 0; }
    .payment-explainer { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: 1fr 390px; gap: 32px; }
    .floating-icons { display: none; }
}

@media (max-width: 800px) {
    .container, .nav-container, .footer-grid, .footer-copy { width: min(100% - 28px, 1160px); }
    .menu-button { display: block; }
    .public-nav { position: absolute; top: 68px; left: 0; right: 0; padding: 14px; border-bottom: 1px solid var(--line); background: var(--paper); display: none; flex-direction: column; align-items: stretch; }
    .public-nav.is-open { display: flex; }
    .public-nav a { min-height: 44px; display: flex; align-items: center; }
    .app-shell { display: block; }
    .app-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 260px; transition: transform .2s ease; }
    .app-sidebar.is-open { transform: translateX(0); }
    .mobile-appbar { height: 60px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; gap: 8px; }
    .sidebar-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(15,23,42,.4); }
    .app-main { width: min(100% - 28px, 1280px); padding-top: 22px; }
    .metric-strip { grid-template-columns: 1fr 1fr; }
    .metric-strip div:nth-child(2) { border-right: 0; }
    .metric-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .auth-layout { min-height: auto; grid-template-columns: 1fr; padding: 50px 0; }
    .auth-intro h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .orbit-section { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
    .orbit-stage { transform: scale(.75); transform-origin: top center; margin-bottom: -110px; }
    .payment-explainer ol { grid-template-columns: 1fr; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-index { position: static; display: flex; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 560px) {
    .hero { min-height: 580px; padding: 80px 0 55px; }
    .hero h1 { font-size: 3.25rem; }
    .hero-search { align-items: stretch; flex-wrap: wrap; }
    .hero-search .search-icon { display: none; }
    .hero-search input { flex-basis: 100%; padding: 0 8px; }
    .hero-search button { width: 100%; }
    .stats-bar, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .stats-bar .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .features-grid { border-left: 0; }
    .feature-card { border-left: 0; border-right: 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { border-bottom: 0; }
    .step-card:last-child { border-bottom: 1px solid var(--line); }
    .step-arrow { display: none; }
    .price-card + .price-card { border-left: 1px solid var(--line); border-top: 0; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .metric-strip { grid-template-columns: 1fr; }
    .metric-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
    .job-row, .alert-row { align-items: flex-start; flex-direction: column; }
    .row-actions { width: 100%; justify-content: space-between; }
    .form-row { grid-template-columns: 1fr; }
    .workspace-panel, .settings-section, .auth-card { padding: 18px; }
    .match-row { grid-template-columns: 44px minmax(0,1fr); }
    .match-row form { grid-column: 2; }
    .token-box, .active-plan-banner { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .orbit-stage { transform: scale(.58); margin-bottom: -190px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
