:root {
  --teal: #00B5AD;
  --teal-l: #E0F7F6;
  --teal-d: #007A75;
  --orange: #F47421;
  --orange-l: #FFF0E6;
  --orange-d: #C05A10;
  --navy: #1B3A48;
  --mid: #4A6070;
  --muted: #7A909E;
  --light: #F5F7F8;
  --border: #DDE3E7;
  --white: #FFFFFF;
  --black: #111111;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background: var(--white); color: var(--black); line-height: 1.6; overflow-x: hidden; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 32px; max-width: 1160px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--orange); text-decoration: none; }
.nav-logo .logo-mark { width: 76px; height: 76px; flex-shrink: 0; }
.nav-logo .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 400; color: var(--mid); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--teal-d); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: transform .15s, box-shadow .15s; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(244,116,33,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,116,33,.4); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-d); }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.mob-toggle { display: none; background: none; border: none; cursor: pointer; }
.mob-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- NAV: PRODUCT DROPDOWN ---------- */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); margin-top: 14px; width: 560px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 20px 50px rgba(27,58,72,.15); padding: 24px 28px; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 600; }
.nav-item-dropdown:hover .nav-dropdown-panel, .nav-item-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-top { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.nav-links .nav-dropdown-top a { font-size: 13px; font-weight: 700; color: var(--orange); display: flex; align-items: center; gap: 4px; }
.nav-dropdown-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.nav-dropdown-col .bulls { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.nav-dropdown-col .bulls img, .step-bulls img { width: 32px; height: 32px; object-fit: contain; display: inline-block; }
.eyebrow-bulls img { width: 16px; height: 16px; object-fit: contain; display: inline-block; }
.step-bulls { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.eyebrow-bulls { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-col h4 { font-weight: 700; font-size: 14px; color: var(--navy); margin: 0 0 4px; }
.nav-dropdown-col p { font-size: 13px; color: var(--mid); margin: 0; line-height: 1.5; }

/* ---------- NAV: MOBILE MENU ---------- */
.mob-panel { display: none; flex-direction: column; gap: 2px; padding: 12px 20px 20px; border-top: 1px solid var(--border); background: #fff; }
.mob-panel a:not(.btn) { padding: 12px 0; font-size: 15px; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--border); }
.mob-panel .btn-primary { text-align: center; margin-top: 12px; }
.mob-panel.open { display: flex; }

/* ---------- HERO ---------- */
.hero { padding: 76px 0; background: radial-gradient(1200px 560px at 20% -10%, var(--teal-l) 0%, rgba(224,247,246,0) 65%), radial-gradient(900px 460px at 100% 0%, var(--orange-l) 0%, rgba(255,240,230,0) 55%), #FFFFFF; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero-inner { text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-l); color: var(--teal-d); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 7px 16px; border-radius: 20px; margin-bottom: 24px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.12; color: var(--navy); margin-bottom: 22px; letter-spacing: -1px; }
.hero h1 span { color: var(--orange); }
.hero p.sub { font-size: 17px; color: var(--mid); line-height: 1.65; max-width: 560px; margin: 0 0 32px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.hero-badge { text-align: center; }
.hero-badge img { width: 100%; max-width: 190px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(27,58,72,.22)); }

/* ---------- SECTION HEADER ---------- */
.sec { padding: 88px 0; }
.sec-alt { background: var(--light); }
.sec-teal { background: var(--teal-l); }
.sec-orange { background: var(--orange-l); }
.sec-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.sec-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.sec-head h2 { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.sec-head p { font-size: 16px; color: var(--mid); line-height: 1.65; }

/* ---------- PROBLEM ---------- */
.problem-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.problem-row { display: flex; gap: 16px; align-items: flex-start; border-radius: 10px; padding: 20px 22px; border: 1px solid; }
.problem-row.pt { background: var(--teal-l); border-color: rgba(0,181,173,.22); }
.problem-row.po { background: var(--orange-l); border-color: rgba(244,116,33,.2); }
.problem-row.wide { grid-column: 1 / -1; }
.problem-row .picon { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.problem-row.pt .picon { background: var(--teal); }
.problem-row.po .picon { background: var(--orange); }
.problem-row p { font-size: 15px; font-weight: 700; line-height: 1.5; }
.problem-row.pt p { color: var(--teal-d); }
.problem-row.po p { color: var(--orange-d); }
.problem-line { text-align: center; font-size: 19px; font-weight: 700; color: var(--navy); max-width: 560px; margin: 0 auto; }

/* ---------- SOLUTION / SCORE PREVIEW ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { font-size: 16px; color: var(--mid); line-height: 1.75; margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--navy); font-weight: 600; }
.check-list li i { color: var(--teal-d); font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.score-demo { background: var(--navy); border-radius: 12px; padding: 32px; box-shadow: 0 20px 50px rgba(27,58,72,.25); }
.score-demo .eyebrow2 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.score-demo .num { font-size: 64px; font-weight: 900; color: var(--teal); line-height: 1; }
.score-demo .num span { font-size: 22px; color: var(--orange); font-weight: 400; }
.score-demo .score-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.score-demo .score-cover { width: 64px; height: 92px; border-radius: 4px; overflow: hidden; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.score-demo .score-cover img { width: 100%; height: 100%; object-fit: cover; }
.score-demo .bars { margin-top: 24px; }
.score-demo .bar-row { margin-bottom: 14px; }
.score-demo .bar-meta { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.score-demo .bar-track { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.score-demo .bar-fill { height: 100%; background: var(--teal); border-radius: 3px; }

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--teal); border-radius: 10px; padding: 28px; position: relative; }
.step-card .step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.step-card:nth-child(even) { border-top-color: var(--orange); }
.step-card:nth-child(even) .step-num { background: var(--orange); }
.step-card:nth-child(3) .step-num { background: var(--navy); }
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--mid); line-height: 1.6; }

/* ---------- STRATEGY / CAMPAIGNS ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { background: var(--teal-l); color: var(--teal-d); font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 20px; }

.campaign-card { background: var(--teal-l); border: 1px solid rgba(0,181,173,.25); border-left: 4px solid var(--teal); border-radius: 10px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.campaign-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,181,173,.12); color: var(--teal-d); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.campaign-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; }

/* ---------- FUTURE ADS ---------- */
.soon-card { background: var(--white); border: 1.5px dashed var(--border); border-radius: 10px; padding: 36px; text-align: center; max-width: 640px; margin: 0 auto; }
.soon-badge { display: inline-block; background: var(--orange-l); color: var(--orange-d); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }

/* ---------- FINAL CTA ---------- */
.cta-band { background: var(--navy); border-radius: 16px; padding: 64px 48px; text-align: center; margin: 0 32px; }
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 30px; }

/* ---------- SIGN-UP PAGE ---------- */
.tag-orange { background: var(--orange-l); color: var(--orange-d); }
.tag-outline { background: transparent; border: 1px solid var(--border); color: var(--mid); }
.signup-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.signup-card { max-width: 480px; margin: 0; box-shadow: 0 20px 50px rgba(27,58,72,.1); }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--light); border: 1px solid var(--border); border-radius: 8px; padding: 14px 6px; margin: 18px 0 6px; text-align: center; }
.feature-strip div { display: flex; flex-direction: column; gap: 2px; }
.feature-strip strong { font-size: 12px; color: var(--navy); font-weight: 800; }
.feature-strip span { font-size: 10px; color: var(--muted); }

/* ---------- PRICING PAGE ---------- */
.pricing-toggle-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 44px; flex-wrap: wrap; }
.pricing-toggle { display: inline-flex; background: var(--light); border: 1px solid var(--border); border-radius: 24px; padding: 4px; }
.pricing-toggle button { border: none; background: none; padding: 9px 20px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--mid); cursor: pointer; font-family: inherit; }
.pricing-toggle button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(27,58,72,.12); }
.pricing-save-note { font-size: 13px; color: var(--teal-d); font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 22px; display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border-color: var(--teal); box-shadow: 0 12px 30px rgba(0,181,173,.15); }
.pricing-ribbon { position: absolute; top: -12px; left: 22px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.pricing-card h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.pricing-books { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 14px; }
.pricing-price { font-size: 32px; font-weight: 900; color: var(--navy); margin-bottom: 2px; }
.pricing-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.pricing-period-note { font-size: 12px; color: var(--muted); margin-bottom: 18px; min-height: 16px; }
.pricing-card .btn { width: 100%; justify-content: center; margin-bottom: 20px; }
.pricing-includes { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pricing-card ul { list-style: none; }
.pricing-card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mid); margin-bottom: 10px; line-height: 1.5; }
.pricing-card ul li i { color: var(--teal-d); font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.pricing-disclaimer { text-align: center; font-size: 13px; color: var(--muted); max-width: 640px; margin: 40px auto 0; line-height: 1.6; }

/* ---------- FOOTER ---------- */
.ftr { background: var(--navy); color: rgba(255,255,255,.4); padding: 40px 0 24px; margin-top: 40px; }
.ftr .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ftr-logo { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-weight: 800; font-size: 15px; }
.ftr-logo .logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.ftr-logo .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.ftr small { font-size: 12px; }

/* ---------- FORM (audit lead capture + onboarding second form) ---------- */
.audit-form { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; max-width: 460px; margin: 40px auto 0; text-align: left; }
.audit-form label { font-size: 12px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; margin-top: 14px; }
.audit-form label:first-child { margin-top: 0; }
.audit-form input, .audit-form select { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit; background: #fff; }
.audit-form input:focus, .audit-form select:focus { border-color: var(--teal); }
.audit-form .btn { width: 100%; justify-content: center; margin-top: 20px; }
.audit-form .fine { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }
#use-password-link, #use-code-link, #otp-resend { font-size: 14px; }
.audit-form .field-error { font-size: 12px; color: var(--orange-d); margin-top: 10px; text-align: center; display: none; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success i { font-size: 40px; color: var(--teal); margin-bottom: 12px; }
.form-success h4 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.form-success p { font-size: 13px; color: var(--mid); }

/* ---------- STANDALONE FORM PAGES (onboarding) ---------- */
.form-page { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; background: var(--light); }
.form-page-inner { max-width: 460px; width: 100%; text-align: center; }
.form-page-inner .sec-eyebrow { justify-content: center; }
.form-page-inner h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.form-page-inner > p { font-size: 15px; color: var(--mid); margin-bottom: 8px; }
.audit-form.standalone { margin-top: 28px; }

/* ---------- AUTH (Notion-style clean centered login/signup) ---------- */
.auth-logo { width: 44px; height: 44px; margin: 0 auto 20px; }
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }
.form-page-inner.auth-page h1 { font-size: 26px; margin-bottom: 6px; }
.auth-subtitle { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.audit-form.auth-card { border: none; box-shadow: none; padding: 0; background: transparent; margin-top: 32px; }
.audit-form.auth-card label:first-child { margin-top: 0; }
.auth-email-pill { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px; color: var(--navy); background: var(--light); margin-bottom: 4px; }
.auth-email-pill button { border: none; background: none; color: var(--muted); font-size: 14px; cursor: pointer; line-height: 1; padding: 4px; display: flex; }
.auth-email-pill button:hover { color: var(--navy); }
.otp-code-input { letter-spacing: 3px; font-size: 18px; text-align: center; font-family: 'SFMono-Regular', Consolas, monospace; }

/* ---------- DASHBOARD ---------- */
.dash-header { background: var(--navy); padding: 40px 0; }
.dash-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { color: #fff; font-size: 24px; font-weight: 800; }
.dash-header p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 32px; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.dash-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.dash-card p { font-size: 13px; color: var(--mid); line-height: 1.6; }
.dash-card.empty { border-style: dashed; background: var(--light); }
.dash-card .empty-badge { display: inline-block; background: var(--orange-l); color: var(--orange-d); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.dash-card .locked-icon { color: var(--muted); font-size: 18px; }
.score-card-wrap { margin-top: 32px; }
.score-card-wrap .split { align-items: stretch; }
.score-card-wrap .score-demo { height: 100%; }
.breakdown-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; }
.breakdown-card h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.breakdown-card > p { font-size: 14px; color: var(--mid); margin-bottom: 20px; }
.breakdown-card .bars { margin-top: 4px; }
.breakdown-card .bar-row { margin-bottom: 14px; }
.breakdown-card .bar-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--mid); margin-bottom: 6px; }
.breakdown-card .bar-track { height: 6px; background: var(--light); border-radius: 3px; overflow: hidden; }
.breakdown-card .bar-fill { height: 100%; background: var(--teal); border-radius: 3px; }
.loading-state { text-align: center; padding: 80px 0; color: var(--mid); font-size: 14px; }

/* ---------- DASHBOARD SHELL (sidebar nav) ---------- */
.shell { display: flex; min-height: 100vh; }
.shell-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 220px; flex-shrink: 0; background: var(--navy); display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.07); overflow-y: auto; z-index: 400; }
.shell-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--orange); font-weight: 800; font-size: 14px; letter-spacing: .3px; text-decoration: none; padding: 24px 12px 20px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.07); }
.shell-logo img { width: 40px; height: 40px; object-fit: contain; }

/* Sidebar book switcher, replaces the old "Your Books" card grid at the top
of Overview (ReaderBull_Next_Chat_Handover_Prompt.md item 5). */
.book-switcher { position: relative; padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.book-switcher-trigger { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--navy); border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 7px 10px; color: #fff; cursor: pointer; font-family: inherit; text-align: left; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.book-switcher-trigger:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.book-switcher-trigger i { font-size: 13px; color: #fff; flex-shrink: 0; }
.book-switcher-cover { width: 24px; height: 34px; border-radius: 3px; background: var(--light); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--muted); }
.book-switcher-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-switcher-label { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-switcher-menu { position: absolute; top: 100%; left: 12px; right: 12px; margin-top: 6px; background: #12262F; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 500; max-height: 340px; overflow-y: auto; padding: 6px; }
.book-switcher-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.book-switcher-item:hover { background: rgba(0,181,173,.12); }
.book-switcher-item.active { background: rgba(0,181,173,.18); }
.book-switcher-item-cover { width: 20px; height: 28px; border-radius: 3px; background: rgba(255,255,255,.15); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: rgba(255,255,255,.6); }
.book-switcher-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-switcher-item-title { flex: 1; min-width: 0; font-size: 12px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-switcher-item-score { font-size: 11px; font-weight: 800; color: var(--teal); flex-shrink: 0; }
.book-switcher-item-delete { flex-shrink: 0; color: rgba(255,255,255,.3); background: none; border: none; cursor: pointer; padding: 2px; font-size: 13px; line-height: 1; }
.book-switcher-item-delete:hover { color: #e57373; }
.book-switcher-add { display: flex; align-items: center; gap: 8px; padding: 9px 8px 8px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); color: var(--orange); font-size: 12px; font-weight: 700; text-decoration: none; border-radius: 0 0 6px 6px; }
.book-switcher-add:hover { background: rgba(244,116,33,.1); }

.shell-nav { padding: 16px 10px; }
.shell-section-label { color: rgba(255,255,255,.7); font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 0 8px; margin: 16px 0 6px; }
.shell-section-label:first-of-type { margin-top: 0; }
.shell-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 12px 0; }
.shell-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 5px; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 400; text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-family: inherit; margin-bottom: 2px; transition: background .15s, color .15s; }
.shell-nav-item i { font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }
.shell-nav-item:hover, .shell-nav-item.active { background: rgba(0,181,173,.12); color: var(--teal); }
.shell-nav-item.act { color: rgba(244,116,33,.65); }
.shell-nav-item.act:hover { background: rgba(244,116,33,.1); color: var(--orange); }
.shell-main { flex: 1; min-width: 0; margin-left: 220px; background: var(--light); }
.shell-topbar { display: flex; align-items: center; justify-content: flex-end; padding: 16px 32px; background: var(--white); border-bottom: 1px solid var(--border); }
.shell-topbar-actions { display: flex; align-items: center; gap: 22px; }
.shell-topbar-actions a { font-size: 13px; font-weight: 600; color: var(--mid); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.shell-topbar-actions a:hover { color: var(--teal-d); }
.shell-panel { padding: 32px; }
.shell-panel .split { align-items: stretch; }
.shell-panel .score-demo { height: 100%; }
.shell-empty { background: var(--white); border: 1.5px dashed var(--border); border-radius: 10px; padding: 60px 32px; text-align: center; max-width: 520px; margin: 40px auto; }
.shell-empty i { font-size: 28px; color: var(--muted); margin-bottom: 16px; }
.shell-empty h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.shell-empty p { font-size: 14px; color: var(--mid); line-height: 1.6; }
.shell-empty .soon-badge { margin-bottom: 12px; }
.legacy-frame-wrap { height: calc(100vh - 61px); }
.legacy-frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ---------- BOOK IMPORT FLOW (onboarding) ---------- */
.paste-box { width: 100%; min-height: 130px; border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; color: var(--navy); resize: vertical; outline: none; }
.paste-box:focus { border-color: var(--teal); }
.paste-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.paste-meta .detected { color: var(--teal-d); font-weight: 700; }

.import-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.import-card { display: flex; gap: 18px; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; align-items: center; }
.cover-ph { width: 64px; height: 96px; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; font-weight: 800; color: #fff; padding: 6px; line-height: 1.2; background: var(--navy); }
.cover-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.import-card-body { flex: 1; min-width: 0; }
.import-card-body h4 { font-size: 15px; color: var(--navy); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-card-body .asin { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.status-pill { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.status-pill.importing { background: var(--orange-l); color: var(--orange-d); }
.status-pill.imported { background: var(--teal-l); color: var(--teal-d); }
.status-pill.needs-details { background: var(--orange-l); color: var(--orange-d); }
.status-pill.submitted { background: var(--teal); color: #fff; }
.status-pill.error { background: #fdeaea; color: #b3261e; }

/* Amazon Ads status, score panel: discreet, blended into the dark score
card rather than a loud alert-style pill, matching the legacy Jordan
Truehart dashboard's treatment (a small dot plus muted label, not a
bright error-style badge), see ReaderBull_Next_Chat_Handover_Prompt.md
item 6. Deliberately not reusing .status-pill.error here, that class is
a bright pink/red "something's wrong" style used elsewhere for genuine
failures (e.g. a failed import), which is what made this feel loud. */
.ads-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: none; letter-spacing: .2px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.ads-pill .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ads-pill.active { border-color: rgba(0,181,173,.3); color: rgba(255,255,255,.85); }
.ads-pill.active .dot { background: var(--teal); }
.ads-pill.inactive { border-color: rgba(244,116,33,.25); }
.ads-pill.inactive .dot { background: var(--orange); }

/* ---- Ported from MASTER-TEMPLATE.html (added 5 August 2026) ----
   The real reference John hand-built the successful legacy dashboards
   from (/Users/johnhones/Claude/Projects/KDP Author Audit/MASTER-TEMPLATE.html),
   confirmed as the source of truth for what "the successful mvp" should
   look like, distinct from and more precise than the live GitHub Pages
   examples used for the 4 August rb-* pass above. Class names and values
   below are ported as close to verbatim as possible for real parity, not
   reinterpreted under the rb- naming. Checked against style.css and every
   .html file in this folder first, no collisions (index.html's existing
   .step-card .step-num rule is more specific than the bare .step-num
   added here, so the homepage's "How It Works" numbers are unaffected).
   The rb-* set above will be migrated to these names and removed once
   Overview's render functions are updated to match (see dashboard.html). */
.sec-label { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mb { margin-bottom: 24px; }
@media(max-width: 900px) {
  .g2 { grid-template-columns: 1fr; gap: 16px; }
}

.card { background: var(--white); border-radius: 10px; padding: 28px 32px; border: 1px solid var(--border); }
.card-hdr { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 15px; font-weight: 700; color: var(--teal-d); margin-bottom: 10px; line-height: 1.3; }
.card > p, .hb-card > p { font-size: 13px; color: var(--mid); line-height: 1.7; margin-bottom: 12px; }
.card > p:last-child, .hb-card > p:last-child { margin-bottom: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 20px; }
.stat-cell { background: var(--white); padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-cell > div:last-child { margin-top: auto; padding-top: 6px; }
.stat-v { font-size: 22px; font-weight: 800; color: var(--orange); }
.stat-l { font-size: 12px; color: var(--mid); margin-top: 3px; line-height: 1.4; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.b-teal   { background: var(--teal-l);   color: var(--teal-d); }
.b-orange { background: var(--orange-l); color: var(--orange-d); }
.b-navy   { background: rgba(27,58,72,.08); color: var(--navy); }
.b-muted  { background: var(--light);    color: var(--muted); }

.item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.item:last-child { margin-bottom: 0; }
.item-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.icon-teal   { background: var(--teal-l);   color: var(--teal-d); }
.icon-orange { background: var(--orange-l); color: var(--orange-d); }
.item-t { font-size: 15px; font-weight: 700; color: var(--teal-d); margin-bottom: 3px; }
.item-b { font-size: 13px; color: var(--mid); line-height: 1.6; }

.callout { border-left: 3px solid var(--teal); background: var(--teal-l); padding: 14px 18px; border-radius: 0 4px 4px 0; font-size: 13px; color: var(--navy); line-height: 1.65; }
.callout-orange { border-left-color: var(--orange); background: var(--orange-l); }
.callout strong { color: var(--black); }

.step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 4px; margin-bottom: 10px; }
.step:last-child { margin-bottom: 0; }
.step-teal   { background: var(--teal-l);   border-left: 4px solid var(--teal); }
.step-orange { background: var(--orange-l); border-left: 4px solid var(--orange); }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; color: #fff; }
.num-teal   { background: var(--teal); }
.num-orange { background: var(--orange); }
.step-t { font-size: 13px; font-weight: 700; color: var(--teal-d); margin-bottom: 4px; }
.step-b { font-size: 13px; color: var(--mid); line-height: 1.55; }

.hb-card { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--teal); border-radius: 10px; padding: 28px 32px; margin-bottom: 24px; }
.hb-eyebrow { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--teal-d); margin-bottom: 8px; }

.banner { background: var(--navy); color: #fff; border-radius: 10px; padding: 24px 32px; margin-bottom: 24px; }
.banner h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.banner p  { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.65; }
.banner-stat { display: inline-block; background: var(--teal); border: 1px solid var(--teal-d); color: #fff; padding: 8px 18px; border-radius: 3px; font-size: 13px; font-weight: 400; margin: 8px 6px 0 0; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th { background: var(--navy); color: rgba(255,255,255,.85); padding: 9px 12px; text-align: left; font-weight: 600; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.dash-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--mid); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:nth-child(even) td { background: var(--light); }
.dash-table .tc { text-align: center; } .dash-table .tr { text-align: right; }

.kw-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.kw-panel { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.kw-panel-hdr { background: #0d1f35; color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; min-height: 60px; box-sizing: border-box; }
.kw-panel-hdr span { font-size: 13px; font-weight: 700; }
.kw-count { background: var(--teal); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.kw-panel-hdr.rec .kw-count { background: var(--orange); }
.kw-search { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.kw-search input { flex: 1; border: 1px solid var(--border); border-radius: 4px; padding: 7px 10px; font-size: 12px; outline: none; color: var(--black); }
.kw-search input:focus { border-color: var(--teal); }
.kw-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.kw-table th { background: var(--light); color: var(--mid); padding: 8px 12px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.kw-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--mid); }
.kw-table tr:last-child td { border-bottom: none; }
.kw-table tr:hover td { background: var(--light); }
.kw-table .kw-word { color: var(--navy); font-weight: 500; }
.kw-vol { font-weight: 600; color: var(--navy); }
.comp-high { display: inline-block; background: #FEE2E2; color: #B91C1C; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.comp-med  { display: inline-block; background: #FEF3C7; color: #92400E; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.comp-low  { display: inline-block; background: var(--teal-l); color: var(--teal-d); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.kw-add { background: none; border: 1px solid var(--border); border-radius: 3px; padding: 3px 8px; font-size: 10px; color: var(--muted); cursor: pointer; transition: all .15s; }
.kw-add:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-l); }
.kw-add.added { border-color: var(--teal); color: var(--teal-d); background: var(--teal-l); cursor: default; }

@media(max-width: 900px) {
  .kw-tool { grid-template-columns: 1fr; }
}
@media(max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .hb-card { padding: 18px 16px; }
  .hb-eyebrow { font-size: 15px; }
  .step { padding: 12px 14px; }
}

.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--teal); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; margin-right: 6px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.detail-panel { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; margin-bottom: 24px; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.detail-head h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.detail-head .asin { font-size: 12px; color: var(--muted); }
.field-label { font-size: 12px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; margin-top: 18px; }
.field-label:first-of-type { margin-top: 0; }
.detail-panel select, .detail-panel textarea, .detail-panel input[type=text], .detail-panel input[type=number] { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit; }
.detail-panel textarea { min-height: 100px; resize: vertical; }
.detail-panel select:focus, .detail-panel textarea:focus, .detail-panel input:focus { border-color: var(--teal); }
.detail-panel .fine { margin-top: 6px; margin-bottom: 0; font-size: 11px; color: var(--muted); }
.char-count { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }

.upload-drop { border: 1.5px dashed var(--border); border-radius: 8px; padding: 24px; text-align: center; background: var(--light); position: relative; }
.upload-drop i { font-size: 22px; color: var(--muted); margin-bottom: 8px; display: block; }
.upload-drop p { font-size: 13px; color: var(--mid); margin-bottom: 2px; }
.upload-drop .fine { font-size: 11px; color: var(--muted); }
.upload-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-file-row { display: none; align-items: center; justify-content: space-between; background: var(--teal-l); border: 1px solid rgba(0,181,173,.25); border-radius: 8px; padding: 12px 16px; margin-top: 10px; font-size: 13px; color: var(--teal-d); font-weight: 600; }

.confirm-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--mid); }
.confirm-row input { margin-top: 3px; }
.detail-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.detail-error { font-size: 12px; color: var(--orange-d); margin-top: 10px; text-align: right; }

.modal-overlay { position: fixed; inset: 0; background: rgba(27,58,72,.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal-card { background: #fff; border-radius: 10px; padding: 28px; max-width: 420px; width: 90%; }
.modal-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.modal-card p { font-size: 14px; color: var(--mid); margin-bottom: 20px; line-height: 1.6; }
.modal-card input[type=email], .modal-card input[type=password] { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 14px; outline: none; font-family: inherit; margin-bottom: 4px; }
.modal-card input[type=email]:focus, .modal-card input[type=password]:focus { border-color: var(--teal); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Loading view swapped into the submit-confirm modal in onboarding.html
while api/enrich-audit.js runs (competitor lookup, keyword research,
AI narrative), which can take 15-30+ seconds. */
.submit-loading { text-align: center; padding: 12px 0; }
.submit-loading-icon { width: 64px; height: 64px; margin: 0 auto 18px; animation: submitLoadingPulse 1.4s ease-in-out infinite; }
.submit-loading-icon img { width: 100%; height: 100%; object-fit: contain; }
@keyframes submitLoadingPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .85; } }
.submit-loading-message { font-size: 14px; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.submit-loading-timer { font-size: 12px; color: var(--muted); }

/* ---------- FIREWORKS (onboarding.html, all books submitted) ---------- */
#firework-layer { position: fixed; inset: 0; pointer-events: none; z-index: 3000; overflow: hidden; }
.firework-particle {
  position: fixed;
  border-radius: 50%;
  opacity: 1;
  transform: translate(0, 0);
  transition: transform 900ms cubic-bezier(.15, .8, .3, 1), opacity 900ms ease-out;
  will-change: transform, opacity;
}

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.book-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.book-card-delete { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--light); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.book-card:hover .book-card-delete { opacity: 1; }
.book-card-delete:hover { background: #fdeaea; color: #b3261e; }
.book-card:hover { box-shadow: 0 8px 24px rgba(27,58,72,.1); transform: translateY(-2px); }
.book-card .cover-ph { width: 90px; height: 130px; margin: 0 auto 14px; }
.book-card h4 { font-size: 14px; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.book-card .score-badge { font-size: 22px; font-weight: 900; color: var(--teal-d); }
.book-card .score-badge span { font-size: 12px; color: var(--muted); font-weight: 400; }
.add-book-card { border: 1.5px dashed var(--border); background: var(--light); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; }
.add-book-card i { font-size: 24px; color: var(--muted); margin-bottom: 10px; }
.add-book-card span { font-size: 13px; font-weight: 700; color: var(--mid); }

@media(max-width: 640px) {
  .import-card { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .import-card .cover-ph { width: 48px; height: 72px; font-size: 8px; }
  .detail-panel { padding: 20px 16px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .book-card .cover-ph { width: 70px; height: 100px; }
  .modal-card { padding: 22px; }
}

@media(max-width: 900px) {
  .shell { flex-direction: column; }
  .shell-sidebar { position: static; width: 100%; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .shell-main { margin-left: 0; }
  .shell-logo { padding: 12px; border-bottom: none; flex-direction: row; }
  .shell-logo img { width: 26px; height: 26px; }
  .shell-nav { display: flex; flex-wrap: wrap; padding: 8px 10px; }
  .shell-section-label { display: none; }
  .shell-divider { display: none; }
  .shell-nav-item { width: auto; padding: 8px 12px; }
  .legacy-frame-wrap { height: 80vh; }
}

@media(max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { padding-left: 16px; padding-right: 16px; }
  .nav-logo { font-size: 18px; gap: 8px; }
  .nav-logo .logo-mark { width: 44px; height: 44px; }
  .nav-links .btn-primary.btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
  .mob-toggle { display: flex; flex-direction: column; justify-content: center; margin-left: 12px; }
  .nav-dropdown-panel { display: none !important; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .signup-card { max-width: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-inner { text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-badge { max-width: 300px; margin: 0 auto; justify-self: center; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .problem-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .cta-band { margin: 0 16px; padding: 48px 24px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-header .wrap { flex-direction: column; align-items: flex-start; }
}

@media(max-width: 420px) {
  .nav-inner { padding-left: 12px; padding-right: 12px; }
  .nav-logo { font-size: 16px; gap: 6px; }
  .nav-logo .logo-mark { width: 38px; height: 38px; }
  .nav-links .btn-primary.btn { padding: 9px 12px; font-size: 12px; }
  .hero-ctas .btn-lg { font-size: 14px; padding: 13px 20px; }
}

/* ---------- LEGAL PAGES (privacy, terms) ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.legal-note { background: var(--orange-l); border: 1px solid rgba(244,116,33,.2); border-radius: 8px; padding: 16px 20px; font-size: 13px; color: var(--orange-d); margin-bottom: 32px; line-height: 1.6; }
.legal-page h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 36px 0 12px; }
.legal-page p { font-size: 15px; color: var(--mid); line-height: 1.75; margin-bottom: 14px; }
.legal-page ul { margin: 0 0 14px 20px; }
.legal-page li { font-size: 15px; color: var(--mid); line-height: 1.75; margin-bottom: 8px; }
.legal-page a { color: var(--teal-d); font-weight: 600; }

/* ---------- COOKIE / LOCAL STORAGE NOTICE ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 10px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); z-index: 900; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 14px; }
.cookie-banner a { color: var(--teal); font-weight: 700; }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner .btn-sm { padding: 8px 16px; font-size: 12px; }
@media(max-width: 640px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; } }

/* ---------- FOOTER LINKS (privacy/terms) ---------- */
.ftr-links { display: flex; gap: 16px; }
.ftr-links a { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; }
.ftr-links a:hover { color: #fff; }
