/* ──────────────────────────────────────────────────────────────
   Page-specific shared styles
   Quiz · Insurance Compare · Portfolio · Blog · Services · About
   ────────────────────────────────────────────────────────────── */

/* ────── QUIZ ────── */
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.quiz-progress { background: var(--border); border-radius: 100px; height: 8px; margin-bottom: 32px; overflow: hidden; }
.quiz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--blue2)); height: 100%; border-radius: 100px; transition: width .4s ease; width: 20%; }
.quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.quiz-step-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.quiz-question { font-family: var(--ff-head); font-size: clamp(22px, 3vw, 30px); margin-bottom: 28px; line-height: 1.3; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--bg); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all .18s; font-size: 15px; font-weight: 500; }
.quiz-option:hover { border-color: var(--blue2); transform: translateX(2px); }
.quiz-option.selected { border-color: var(--blue); background: rgba(18,73,160,.04); box-shadow: 0 0 0 3px rgba(18,73,160,.08); }
.quiz-option-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted2); flex-shrink: 0; position: relative; }
.quiz-option.selected .quiz-option-radio { border-color: var(--blue); }
.quiz-option.selected .quiz-option-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.quiz-result { display: none; }
.quiz-result.show { display: block; }
.quiz-result h2 { font-family: var(--ff-head); font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 12px; color: var(--ink); }
.quiz-recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 28px; }
.quiz-rec { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.quiz-rec .lbl { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.quiz-rec .val { font-family: var(--ff-head); font-size: 22px; font-weight: 700; color: var(--blue); }

/* ────── INSURANCE COMPARE ────── */
.ic-wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.ic-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
.ic-card h2 { font-family: var(--ff-head); font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 8px; }
.ic-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.ic-type-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.ic-type-tab { padding: 14px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .18s; text-align: center; }
.ic-type-tab.active, .ic-type-tab:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.ic-result { display: none; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-top: 24px; }
.ic-result.show { display: block; }
.ic-result h3 { font-family: var(--ff-head); font-size: 22px; margin-bottom: 16px; }
.ic-result-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.ic-result-row:last-child { border-bottom: none; }
.ic-result-row .lbl { color: var(--muted); }
.ic-result-row .val { font-family: var(--ff-mono); font-weight: 700; color: var(--ink); }
.ic-insurer-list { margin-top: 20px; display: grid; gap: 10px; }
.ic-insurer { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.ic-insurer-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ic-insurer-tag { font-size: 11px; padding: 3px 10px; border-radius: 100px; background: rgba(13,123,110,.12); color: var(--teal); font-weight: 600; }
.ic-lead { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ────── PORTFOLIO ────── */
.pf-wrap { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.pf-steps { display: flex; justify-content: space-between; max-width: 540px; margin: 0 auto 40px; position: relative; }
.pf-steps::before { content: ''; position: absolute; top: 18px; left: 30px; right: 30px; height: 2px; background: var(--border); z-index: 0; }
.pf-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.pf-step-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); margin: 0 auto 8px; transition: all .25s; }
.pf-step.active .pf-step-circle { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf-step.done .pf-step-circle { background: var(--green); border-color: var(--green); color: #fff; }
.pf-step-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.pf-step.active .pf-step-label { color: var(--blue); }

.pf-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px; max-width: 540px; margin: 0 auto; box-shadow: var(--shadow); display: none; }
.pf-panel.active { display: block; }
.pf-panel h2 { font-family: var(--ff-head); font-size: 26px; margin-bottom: 8px; }
.pf-panel .sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.pf-secure-note { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-top: 18px; line-height: 1.55; }
.pf-otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.pf-otp-inputs input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-family: var(--ff-mono); font-weight: 700; border: 2px solid var(--border); border-radius: 10px; outline: none; transition: border-color .2s; }
.pf-otp-inputs input:focus { border-color: var(--blue); }

/* Dashboard */
.pf-dashboard { max-width: 1200px; margin: 0 auto; display: none; }
.pf-dashboard.active { display: block; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.pf-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.pf-stat .lbl { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pf-stat .val { font-family: var(--ff-mono); font-size: 24px; font-weight: 700; color: var(--ink); }
.pf-stat .delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.pf-dash-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; margin-bottom: 32px; }
.pf-alloc, .pf-holdings { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.pf-alloc h3, .pf-holdings h3, .pf-sips h3 { font-family: var(--ff-head); font-size: 18px; margin-bottom: 16px; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pf-table th { background: var(--bg); padding: 10px 12px; text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.pf-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.pf-table tbody tr:last-child td { border-bottom: none; }
.pf-table tbody tr:hover { background: var(--bg); }
.pf-sips { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }

/* ────── BLOG ────── */
.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-filter { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .18s; }
.blog-filter.active, .blog-filter:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .25s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar .card { padding: 22px; }
.blog-sidebar h4 { font-family: var(--ff-head); font-size: 17px; margin-bottom: 12px; }
.blog-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.blog-sidebar a { font-size: 13px; color: var(--muted); transition: color .2s; line-height: 1.5; }
.blog-sidebar a:hover { color: var(--blue); }

/* Blog article */
.article-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px; }
.article-head { margin-bottom: 32px; }
.article-head .cat { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.article-head h1 { font-family: var(--ff-head); font-size: clamp(28px, 4.5vw, 44px); margin: 14px 0 18px; line-height: 1.15; }
.article-meta { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.article-body { font-size: 16px; line-height: 1.8; color: #2a3548; }
.article-body h2 { font-family: var(--ff-head); font-size: 26px; margin: 32px 0 14px; color: var(--ink); }
.article-body h3 { font-family: var(--ff-head); font-size: 20px; margin: 24px 0 10px; color: var(--ink); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid var(--blue); background: var(--bg); padding: 16px 20px; margin: 20px 0; font-style: italic; color: var(--ink); font-size: 17px; border-radius: 0 8px 8px 0; }
.article-body strong { color: var(--ink); }
.article-cta { background: linear-gradient(135deg, var(--ink), var(--ink2)); color: #fff; border-radius: 16px; padding: 32px; margin: 40px 0; text-align: center; }
.article-cta h3 { font-family: var(--ff-head); font-size: 22px; color: #fff; margin-bottom: 10px; }
.article-cta p { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 20px; }

/* ────── SERVICES ────── */
.svc-page-wrap { padding: 56px 0; }
.svc-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.svc-content h2 { font-family: var(--ff-head); font-size: 28px; margin: 28px 0 12px; color: var(--ink); }
.svc-content h2:first-child { margin-top: 0; }
.svc-content p { color: #2a3548; line-height: 1.8; margin-bottom: 14px; font-size: 15px; }
.svc-content ul { margin: 0 0 18px 22px; line-height: 1.8; color: #2a3548; }
.svc-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0; }
.svc-process-step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.svc-process-step .num { font-family: var(--ff-head); font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.svc-process-step h3 { font-family: var(--ff-head); font-size: 16px; margin-bottom: 6px; }
.svc-process-step p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

.svc-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.svc-side .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.svc-side .card.dark { background: linear-gradient(135deg, var(--ink), var(--ink2)); color: #fff; }
.svc-side .card.dark h3 { color: #fff; }
.svc-side .card.dark p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* ────── ABOUT / CONTACT / LEGAL ────── */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; margin-top: 16px; }
.about-grid .num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.about-grid .num-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.about-grid .num-card .val { font-family: var(--ff-head); font-size: 30px; font-weight: 800; color: var(--blue); }
.about-grid .num-card .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.value-card .ico { font-size: 28px; margin-bottom: 10px; }
.value-card h3 { font-family: var(--ff-head); font-size: 17px; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.legal-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px; }
.legal-wrap h1 { font-family: var(--ff-head); font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal-wrap .updated { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.legal-wrap h2 { font-family: var(--ff-head); font-size: 22px; margin: 28px 0 12px; }
.legal-wrap p { font-size: 15px; line-height: 1.8; color: #2a3548; margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 18px 22px; line-height: 1.8; color: #2a3548; }

@media (max-width: 900px) {
  .quiz-recs { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
  .pf-dash-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .svc-grid-2, .about-grid { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .svc-process { grid-template-columns: repeat(2, 1fr); }
  .ic-type-tabs { grid-template-columns: repeat(2, 1fr); }
  .about-grid .num-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pf-stats { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .svc-process { grid-template-columns: 1fr; }
  .quiz-card, .ic-card, .pf-panel { padding: 24px; }
}
