:root {
  color-scheme: light;
  --bg: #f8f6f1;
  --panel: #ffffff;
  --ink: #182432;
  --muted: #63717b;
  --line: #dde4e7;
  --primary: #183b56;
  --primary-2: #10283b;
  --navy: #183b56;
  --teal: #3a8d8a;
  --accent: #b99654;
  --soft: #eef1f4;
  --warm: #f3ead8;
  --danger: #9b3d35;
  --warning: #c08b3e;
  --shadow: 0 18px 44px rgba(24, 36, 50, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(58, 141, 138, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 460px);
  color: var(--ink);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(24, 59, 86, 0.12);
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
.topbar nav,
.hero-actions,
.trust-band,
.preview-top,
.progress-head,
.basis {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 820;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(185, 150, 84, 0.45);
  background: linear-gradient(180deg, #ffffff, #f3ead8);
  box-shadow: inset 0 -1px 0 rgba(24, 36, 50, 0.08);
  color: var(--primary);
}

.topbar nav {
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  flex: 1 1 auto;
  justify-content: center;
  white-space: nowrap;
}

.nav-menu {
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  margin-left: 5px;
  font-size: 10px;
}

.nav-dropdown[open] summary {
  color: var(--primary-2);
}

.nav-dropdown div {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 210px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 8px;
}

.nav-dropdown div a {
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--muted);
}

.nav-dropdown div a:hover {
  background: var(--soft);
  color: var(--primary-2);
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.lang-switch a {
  min-width: 38px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
  text-decoration: none;
}

.lang-switch a.active {
  background: var(--primary);
  color: white;
}

.topbar nav a,
.top-login,
.top-cta,
.journey-grid a {
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--primary-2);
}

.top-cta {
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 9px 13px;
  background: var(--primary);
  color: white;
  font-weight: 760;
  font-size: 14px;
  white-space: nowrap;
}

.top-login {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.top-login:hover {
  border-color: rgba(24, 59, 86, 0.3);
  background: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.95fr);
  gap: clamp(28px, 4.5vw, 66px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 6vw, 88px) 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 241, 244, 0.76) 54%, rgba(243, 234, 216, 0.4)),
    linear-gradient(180deg, #fbfaf7, var(--bg));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.label,
.result-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 860px;
  font-size: clamp(40px, 4.55vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 14px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.primary:hover {
  background: var(--primary-2);
}

.button.secondary {
  border-color: rgba(24, 59, 86, 0.18);
  background: white;
  color: var(--primary);
}

.microcopy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-preview,
.form-card,
.result-card,
.module-grid article,
.lead-form,
.advisor-board,
.journey-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-preview {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 241, 0.86)),
    var(--panel);
  box-shadow: 0 24px 64px rgba(24, 36, 50, 0.11);
}

.preview-top {
  justify-content: space-between;
  gap: 18px;
}

.preview-top strong,
.advisor-board strong {
  display: block;
  font-size: 18px;
}

.status-pill {
  border-radius: 999px;
  background: rgba(58, 141, 138, 0.12);
  color: #1f6e6c;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 820;
}

.progress-card,
.answer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  padding: 16px;
}

.progress-head,
.basis {
  justify-content: space-between;
  gap: 12px;
}

.progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e7ea;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--primary));
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.stage-list span {
  border-radius: 8px;
  background: #eef1f4;
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
  font-weight: 740;
  text-align: center;
}

.stage-list .done {
  background: rgba(58, 141, 138, 0.12);
  color: #1f6e6c;
}

.stage-list .active {
  background: var(--warm);
  color: #73501c;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #ffffff;
}

.metric {
  display: block;
  color: var(--primary);
  font-size: 25px;
  font-weight: 860;
}

.preview-grid span:last-child,
.answer-card p,
.advisor-board p {
  color: var(--muted);
  line-height: 1.5;
}

.question {
  display: block;
  margin-bottom: 8px;
  font-weight: 820;
}

.basis {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.trust-band {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 clamp(18px, 6vw, 88px) 52px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 241, 244, 0.58));
}

.trust-band span,
.trust-band a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.evidence-grid,
.decision-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-card,
.decision-card {
  min-height: 212px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(24, 36, 50, 0.06);
}

.evidence-card span,
.decision-card span,
.task-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-card h3,
.decision-card h3 {
  color: var(--ink);
}

.evidence-card p,
.decision-card p {
  color: var(--muted);
  line-height: 1.55;
}

.evidence-card strong {
  display: block;
  margin-top: 14px;
  color: var(--primary);
  font-size: 13px;
}

.section {
  padding: 66px clamp(18px, 6vw, 88px);
  border-top: 1px solid rgba(24, 59, 86, 0.1);
}

.audience {
  background: white;
}

.section-head {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.journey-grid,
.module-grid,
.advisor-board,
.guide-grid {
  display: grid;
  gap: 14px;
}

.journey-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-section {
  background: #fbfaf7;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid a {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 20px;
  text-decoration: none;
}

.guide-grid a:hover {
  border-color: rgba(58, 141, 138, 0.45);
  box-shadow: 0 18px 44px rgba(24, 36, 50, 0.08);
}

.guide-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 860;
}

.guide-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
}

.guide-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.journey-grid a {
  min-height: 178px;
  padding: 20px;
  box-shadow: none;
}

.journey-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 18px;
}

.journey-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.platform-section {
  background:
    linear-gradient(180deg, #ffffff, #f8f6f1);
  color: var(--ink);
}

.platform-section .section-head p,
.platform-section .module-grid p {
  color: var(--muted);
}

.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-grid article {
  min-height: 232px;
  padding: 22px;
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(24, 36, 50, 0.06);
}

.app-preview .compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-preview .compact-grid article {
  min-height: 0;
  padding: 16px;
  background: #ffffff;
  border-color: var(--line);
}

.app-preview .compact-grid h3 {
  color: var(--ink);
}

.app-preview .compact-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.app-preview .compact-grid a {
  color: var(--accent);
}

.module-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 820;
  text-decoration: none;
}

.module-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 860;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
}

.prose {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.route-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: inline-size;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.route-row {
  display: grid;
  grid-template-columns: 0.85fr 0.55fr 1.1fr 1fr;
  width: max(860px, 100%);
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.route-row:first-child {
  border-top: 0;
}

.route-header {
  background: var(--primary-2);
  color: white;
  font-weight: 820;
}

.route-row:not(.route-header) span:first-child {
  font-weight: 820;
}

.route-row:not(.route-header) span:not(:first-child) {
  color: var(--muted);
}

.calculator {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 22px;
}

.form-card,
.result-card,
.lead-form {
  padding: 22px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

select:focus,
input:focus,
textarea:focus {
  outline: 3px solid rgba(58, 141, 138, 0.18);
  border-color: var(--primary);
}

.result-card {
  min-height: 100%;
  background: #fbfcfb;
}

.result-card ul {
  padding-left: 20px;
}

.result-card li {
  margin: 8px 0;
}

.tax-result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tax-result-header h3 {
  margin-bottom: 4px;
}

.tax-result-header p {
  color: var(--muted);
}

.confidence-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--primary-2);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 860;
}

.tax-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tax-result-panel,
.tax-result-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.tax-result-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.tax-result-panel strong {
  display: block;
  margin: 6px 0;
}

.tax-result-panel p,
.tax-result-section p {
  color: var(--muted);
  line-height: 1.55;
}

.tax-result-panel.accent {
  grid-column: 1 / -1;
  background: var(--soft);
}

.tax-result-section {
  margin-top: 12px;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.alert {
  border-radius: 8px;
  padding: 12px;
  background: #fff2ee;
  color: var(--danger);
  font-weight: 760;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checklist-grid label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
  color: var(--ink);
}

.checklist-grid input {
  width: 18px;
  height: 18px;
}

.advisors {
  background: white;
}

.advisor-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.advisor-board > div {
  border-left: 3px solid var(--teal);
  padding: 12px 16px;
  background: #fbfaf7;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
  background: var(--soft);
}

.cta-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.sources ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.sources a {
  color: var(--primary-2);
  font-weight: 760;
}

.content-hero {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 88px) 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 241, 244, 0.8), rgba(243, 234, 216, 0.45));
}

.content-hero > * {
  max-width: 900px;
}

.content-hero h1 {
  font-size: clamp(42px, 5vw, 68px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 72px);
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 720;
}

.article {
  display: grid;
  gap: 28px;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: clamp(20px, 3vw, 30px);
}

.article-card p,
.article-card li {
  color: var(--muted);
  line-height: 1.7;
}

.article-card li {
  margin: 8px 0;
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--warm);
  padding: 14px 16px;
  color: #493a1f;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.control-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 20px;
}

.control-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 19px;
}

.control-card p {
  color: var(--muted);
  line-height: 1.6;
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.85fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
}

.intake-form,
.intake-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.intake-summary {
  position: sticky;
  top: 92px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-field {
  grid-column: 1 / -1;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.summary-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 12px;
}

.summary-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.summary-list strong {
  display: block;
  margin-top: 4px;
}

.summary-list .full-summary {
  background: var(--soft);
}

.summary-list .full-summary strong {
  line-height: 1.5;
  font-weight: 760;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 67px);
  background: var(--bg);
}

.app-sidebar {
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 24px;
}

.family-switcher {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  padding: 16px;
}

.family-switcher span,
.app-nav span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.family-switcher strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
}

.app-nav {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.app-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 11px 12px;
  text-decoration: none;
  font-weight: 760;
}

.app-nav a:hover,
.app-nav a.active {
  border-color: rgba(58, 141, 138, 0.28);
  background: rgba(58, 141, 138, 0.08);
  color: var(--primary);
}

.app-main {
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.section,
.two-col > *,
.calculator > *,
.article,
.article-card,
.workspace-card,
.task-card,
.qa-panel,
.form-card,
.result-card {
  min-width: 0;
}

.app-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.app-header p {
  color: var(--muted);
  line-height: 1.6;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.workspace-card,
.task-card,
.qa-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
}

.workspace-card h2,
.task-card h3,
.qa-panel h3 {
  font-size: 24px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  padding: 14px;
}

.mini-stat strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
}

.timeline-list,
.document-list,
.advisor-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.timeline-item,
.document-item,
.advisor-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--line);
}

.timeline-item.done .step-dot,
.timeline-item.active .step-dot {
  background: var(--primary);
}

.timeline-item strong,
.document-item strong,
.advisor-item strong {
  display: block;
}

.timeline-item span,
.document-item span,
.advisor-item span {
  color: var(--muted);
  font-size: 13px;
}

.tag {
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-2);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 820;
}

.tag.warn {
  background: var(--warm);
  color: #765615;
}

.qa-panel textarea {
  min-height: 120px;
}

.answer-preview {
  margin-top: 14px;
  border-left: 3px solid var(--primary);
  background: #fbfcfb;
  padding: 14px;
}

.answer-preview p {
  color: var(--muted);
  line-height: 1.6;
}

.task-stack {
  display: grid;
  gap: 12px;
}

.task-card {
  box-shadow: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 88px);
  background: var(--primary-2);
  color: white;
}

.js .revealable {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .revealable.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .revealable {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1280px) {
  .topbar {
    gap: 10px;
    padding-inline: clamp(16px, 2.6vw, 34px);
  }

  .topbar nav {
    gap: 11px;
    font-size: 13px;
  }

  .top-login,
  .top-cta {
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (max-width: 1040px) {
  .topbar nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero,
  .two-col,
  .calculator,
  .cta-section,
  .app-shell,
  .workspace-grid,
  .intake-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: 0;
  }

  .app-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-nav span {
    grid-column: 1 / -1;
  }

  .journey-grid,
  .evidence-grid,
  .decision-grid,
  .module-grid,
  .advisor-board,
  .guide-grid,
  .article-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 40px;
  }

  .content-hero h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .app-sidebar {
    padding: 18px;
  }

  .family-switcher {
    padding: 14px;
  }

  .app-main {
    padding: 28px 18px;
  }

  .app-header {
    display: grid;
  }

  .app-header h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .app-header .button {
    width: 100%;
  }

  h2 {
    font-size: 31px;
  }

  .lead {
    font-size: 18px;
  }

  .app-preview {
    padding: 16px;
  }

  .stage-list,
  .preview-grid,
  .mini-grid,
  .control-grid,
  .field-grid,
  .tax-result-grid,
  .timeline-item,
  .document-item,
  .advisor-item,
  .journey-grid,
  .evidence-grid,
  .decision-grid,
  .module-grid,
  .advisor-board,
  .guide-grid,
  .article-layout,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .route-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .route-header {
    display: none;
  }

  .tax-result-header {
    display: grid;
  }

  .confidence-badge {
    width: fit-content;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .top-login,
  .top-cta {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 24px;
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--teal);
  outline: 2px solid rgba(58, 141, 138, 0.25);
}

.pricing-card .plan-name {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.pricing-card .plan-for {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 14px;
}

.pricing-card .price {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.pricing-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card .price-alt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.pricing-card .feature-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}

.pricing-card .feature-list li {
  padding: 7px 0 7px 24px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  position: relative;
}

.pricing-card .feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(58, 141, 138, 0.16);
  box-shadow: inset 0 0 0 4px rgba(58, 141, 138, 0.9);
}

.pricing-card .feature-list li:last-child {
  border-bottom: 0;
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(185, 150, 84, 0.14);
  color: var(--accent);
  border: 1px solid rgba(185, 150, 84, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.pricing-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
