:root{
  --bg:#f8eee3;
  --paper:#fffaf4;
  --paper-strong:#fffdf9;
  --ink:#1f2330;
  --muted:#625a56;
  --brand-ink:#251f23;
  --brand-red:#a33c2d;
  --brand-red-deep:#7b2419;
  --brand-gold:#d6ad68;
  --brand-mist:#f3ddd2;
  --accent:#db6b35;
  --accent-deep:#9e411f;
  --teal:#0f7b7d;
  --teal-soft:#d8eeee;
  --plum:#5f4a5d;
  --gold:#e7bc66;
  --line:rgba(83,59,47,.12);
  --line-strong:rgba(83,59,47,.2);
  --shadow:0 22px 50px rgba(92,60,43,.12);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
  --radius-sm:14px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(231,188,102,.42), transparent 24%),
    radial-gradient(circle at 86% 10%, rgba(15,123,125,.18), transparent 20%),
    linear-gradient(180deg, #f7eee4 0%, #f6ede2 46%, #f8f3eb 100%);
  font:16px/1.65 "Manrope","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
}
body[data-page="assessment"]{--accent:#137b7d;--accent-deep:#0c5859;--gold:#94d0bf}
body[data-page="plans"]{--accent:#b85c2a;--accent-deep:#7f3816;--gold:#efc88a}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}

.site-shell{position:relative;overflow:hidden;min-height:100vh}
.bg-orb{position:absolute;border-radius:999px;pointer-events:none;filter:blur(12px);opacity:.56}
.bg-orb.one{width:360px;height:360px;top:90px;left:-120px;background:radial-gradient(circle,rgba(231,188,102,.5) 0%,rgba(231,188,102,0) 72%)}
.bg-orb.two{width:300px;height:300px;top:320px;right:-90px;background:radial-gradient(circle,rgba(15,123,125,.26) 0%,rgba(15,123,125,0) 72%)}
.bg-orb.three{width:260px;height:260px;bottom:120px;left:18%;background:radial-gradient(circle,rgba(95,74,93,.18) 0%,rgba(95,74,93,0) 72%)}

.ticker{
  position:relative;
  z-index:2;
  overflow:hidden;
  background:rgba(36,31,35,.92);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ticker-track{
  display:flex;
  gap:12px;
  width:max-content;
  padding:12px 24px;
  animation:openTicker 28s linear infinite;
}
.ticker-track span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:rgba(255,248,242,.9);
  white-space:nowrap;
  font-size:13px;
}
.ticker-track span::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--accent));
  box-shadow:0 0 0 4px rgba(219,107,53,.15);
}

.page-wrap{
  position:relative;
  z-index:2;
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:22px 0 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.brand-mark{
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:grid;
  place-items:center;
  padding:6px;
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,250,245,.96),rgba(255,241,231,.88));
  border:1px solid rgba(163,60,45,.14);
  box-shadow:0 18px 34px rgba(102,46,34,.14);
  transition:transform .22s ease, box-shadow .22s ease;
}
.brand:hover .brand-mark{
  transform:translateY(-2px) rotate(-1.5deg);
  box-shadow:0 24px 40px rgba(102,46,34,.18);
}
.brand-mark svg{
  width:100%;
  height:100%;
  display:block;
  filter:drop-shadow(0 10px 18px rgba(93,31,21,.18));
}
.brand-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.brand-copy strong,
.page-hero h1,
.section-head h2,
.card-title,
.detail-title,
.result-title,
.footer-title{
  font-family:"Noto Serif SC","Songti SC","STZhongsong",serif;
}
.brand-copy strong{
  display:block;
  color:var(--brand-ink);
  font-size:26px;
  line-height:1.08;
  letter-spacing:.04em;
}
.brand-copy span{
  display:block;
  color:rgba(98,90,86,.82);
  font-size:13px;
  letter-spacing:.08em;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin-inline:auto;
  padding:8px;
  border:1px solid rgba(104,74,56,.12);
  border-radius:999px;
  background:rgba(255,251,246,.82);
  backdrop-filter:blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 18px 34px rgba(105,76,57,.08);
}
.nav a,
.nav .nav-current{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  color:rgba(69,57,52,.82);
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav a:hover{
  color:var(--brand-red-deep);
  background:rgba(163,60,45,.08);
  transform:translateY(-1px);
}
.nav a.active,
.nav .nav-current{
  color:#fffaf5;
  background:linear-gradient(135deg,var(--brand-red),#d16f59);
  box-shadow:0 14px 28px rgba(140,49,34,.24);
}
.nav .nav-current{
  cursor:default;
}

.top-actions{
  display:flex;
  align-items:center;
  justify-self:end;
  gap:10px;
}
.top-actions .customer-link{
  border-color:rgba(15,123,125,.18);
  background:rgba(15,123,125,.08);
  color:var(--teal);
}
.top-actions .customer-link:hover{
  color:#0c5f61;
  border-color:rgba(15,123,125,.26);
  background:rgba(15,123,125,.14);
}
.top-actions .customer-link.secondary{
  background:rgba(255,255,255,.72);
  color:var(--accent-deep);
  border-color:rgba(219,107,53,.14);
}
.top-actions .customer-link.secondary:hover{
  color:var(--brand-red-deep);
  border-color:rgba(219,107,53,.22);
  background:rgba(255,250,245,.92);
}
.top-actions .internal-entry{
  background:transparent;
  border-style:dashed;
  border-color:rgba(123,36,25,.12);
  color:rgba(98,90,86,.62);
}
.top-actions .internal-entry:hover{
  color:rgba(98,90,86,.86);
  border-color:rgba(123,36,25,.22);
  background:rgba(255,250,245,.68);
}
.subtle-link{
  color:rgba(98,90,86,.84);
  font-size:13px;
}
.tiny-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(123,36,25,.1);
  background:rgba(255,250,245,.62);
  color:rgba(98,90,86,.78);
  font-size:13px;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.tiny-link:hover{
  color:var(--brand-red-deep);
  border-color:rgba(123,36,25,.18);
  background:rgba(255,250,245,.84);
}
.subtle-link:hover{color:rgba(98,90,86,.92)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 22px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  font-weight:700;
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn.primary{
  color:#fff8f3;
  background:linear-gradient(135deg,var(--accent),#ff9461);
  box-shadow:0 18px 34px rgba(219,107,53,.25);
}
.btn.soft{
  color:var(--teal);
  border-color:rgba(15,123,125,.18);
  background:rgba(15,123,125,.08);
}
.btn.ghost{
  border-color:var(--line);
  background:rgba(255,255,255,.7);
}
.btn.ghost:hover{
  background:rgba(255,255,255,.9);
}
.btn.slim{
  min-height:40px;
  padding:0 18px;
  font-size:14px;
}

.page-main{padding:12px 0 72px}
.page-hero,
.page-section,
.panel,
.result-card,
.detail-panel,
.question-card,
.saved-card{
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.page-hero{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  gap:24px;
  padding:30px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg,rgba(255,252,247,.86),rgba(255,249,242,.72));
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(219,107,53,.16);
  background:rgba(255,249,242,.86);
  color:var(--accent-deep);
  font-size:13px;
  letter-spacing:.06em;
}
.eyebrow::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--gold));
}
.page-hero h1{
  margin:18px 0 0;
  font-size:clamp(36px,4.8vw,66px);
  line-height:1.08;
  letter-spacing:-.03em;
}
.page-hero h1 span{color:var(--accent-deep)}
.lead{
  margin:16px 0 0;
  max-width:640px;
  color:var(--muted);
  font-size:17px;
}
.chip-row,.stat-grid,.tool-grid,.content-grid,.list-grid,.footer-grid,.summary-grid,.plan-grid,.saved-grid,.question-grid{display:grid}
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}
.chip-row{
  grid-template-columns:repeat(6,max-content);
  gap:10px;
  margin-top:24px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  font-size:13px;
  cursor:pointer;
  transition:all .2s ease;
}
.chip.active{
  color:#fff8f3;
  border-color:transparent;
  background:linear-gradient(135deg,var(--accent),#ff9461);
  box-shadow:0 14px 26px rgba(219,107,53,.18);
}
.chip.muted{background:rgba(248,242,235,.86);color:var(--muted)}

.stat-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:30px;
}
.stat-card{
  padding:18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.78);
}
.stat-card strong{
  display:block;
  font-size:30px;
  line-height:1;
  color:var(--accent-deep);
}
.stat-card span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
}

.hero-side{
  position:relative;
  overflow:hidden;
  padding:22px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(231,188,102,.2) 0%, rgba(231,188,102,0) 34%),
    linear-gradient(160deg,rgba(41,37,44,.98),rgba(92,57,48,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  color:#fff8f2;
}
.hero-side::after{
  content:"";
  position:absolute;
  inset:auto -80px -80px auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(231,188,102,.28) 0%,rgba(231,188,102,0) 72%);
  pointer-events:none;
}
.hero-side > *{
  position:relative;
  z-index:1;
}
.hero-side h2{
  margin:20px 0 0;
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.06));
  font-size:28px;
  line-height:1.18;
}
.hero-side p{
  margin:14px 0 0;
  color:rgba(255,248,242,.76);
}
.pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.pill-list span{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  font-size:12px;
}
.mini-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.mini-card{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.mini-card strong{display:block;font-size:15px}
.mini-card span{
  display:block;
  margin-top:8px;
  color:rgba(255,248,242,.72);
  font-size:13px;
}
.hero-entry-list{
  display:grid;
  gap:12px;
  margin-top:18px;
}
.hero-entry{
  display:grid;
  gap:8px;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.06));
  color:#fff8f2;
  transition:transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.hero-entry:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.08));
  box-shadow:0 16px 28px rgba(18,14,18,.18);
}
.hero-entry small{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(255,241,231,.84);
  font-size:12px;
  letter-spacing:.08em;
}
.hero-entry small::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand-gold),#f0d9ac);
  box-shadow:0 0 0 4px rgba(214,173,104,.12);
}
.hero-entry strong{
  font-family:"Noto Serif SC","Songti SC","STZhongsong",serif;
  font-size:24px;
  line-height:1.12;
}
.hero-entry span{
  color:rgba(255,248,242,.72);
  font-size:14px;
  line-height:1.7;
}
.hero-entry-secondary{
  margin-top:12px;
  background:linear-gradient(135deg,rgba(214,173,104,.16),rgba(255,255,255,.08));
  border-color:rgba(214,173,104,.2);
}
.hero-entry-primary{
  background:linear-gradient(135deg,rgba(214,173,104,.24),rgba(255,255,255,.1));
  border-color:rgba(214,173,104,.28);
  box-shadow:0 18px 32px rgba(18,14,18,.18);
}
.hero-entry-primary strong{
  color:#fffaf5;
}
.hero-entry-primary span{
  color:rgba(255,248,242,.82);
}
.hero-entry-primary small{
  color:#ffe7ba;
}

.page-section{
  margin-top:24px;
  padding:28px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg,rgba(255,252,247,.84),rgba(255,250,243,.68));
}
.section-head{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:22px;
}
.section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-deep);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.section-label::before{
  content:"";
  width:28px;
  height:1px;
  background:linear-gradient(90deg,var(--accent),transparent);
}
.section-head h2{
  margin:0;
  font-size:clamp(28px,3.5vw,42px);
  line-height:1.16;
}
.section-head p{margin:0;color:var(--muted);max-width:760px}

.tool-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.tool-card{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:22px;
  border-radius:26px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.82);
  transition:transform .22s ease, box-shadow .22s ease;
}
.tool-card:hover,.result-card:hover{transform:translateY(-3px)}
.tool-index{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(135deg,var(--accent),#f39a59);
  color:#fff8f3;
  font-weight:800;
  letter-spacing:.12em;
}
.card-title{
  margin:0;
  font-size:24px;
  line-height:1.2;
}
.tool-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.tool-card ul{
  display:grid;
  gap:8px;
  margin:0;
  padding:16px 0 0;
  list-style:none;
  border-top:1px solid var(--line);
}
.tool-card li{
  position:relative;
  padding-left:16px;
  font-size:14px;
}
.tool-card li::before{
  content:"";
  position:absolute;
  top:9px;
  left:0;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
}
.tool-card b{
  margin-top:auto;
  color:var(--accent-deep);
}

.summary-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.summary-card{
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.8);
  border:1px solid var(--line);
}
.summary-card small{display:block;color:var(--muted);font-size:13px}
.summary-card strong{display:block;margin-top:8px;font-size:24px;color:var(--accent-deep)}

.filter-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.field label{
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}
.field input,
.field select,
.field textarea{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid var(--line-strong);
  border-radius:16px;
  background:rgba(255,255,255,.84);
  color:var(--ink);
}
.field textarea{
  min-height:120px;
  resize:vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:rgba(219,107,53,.55);
  box-shadow:0 0 0 4px rgba(219,107,53,.12);
}

.filter-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.list-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  gap:18px;
  margin-top:18px;
}
.stack{
  display:grid;
  gap:14px;
}
.result-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:22px;
  border-radius:28px;
  background:rgba(255,255,255,.84);
}
.result-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.result-title{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.result-sub{
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
}
.badge-row,.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  background:rgba(255,247,241,.84);
  border:1px solid rgba(219,107,53,.14);
  color:var(--accent-deep);
}
.badge.secondary{
  background:rgba(15,123,125,.08);
  border-color:rgba(15,123,125,.14);
  color:var(--teal);
}
.score-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.score-box{
  padding:14px;
  border-radius:18px;
  background:rgba(248,242,235,.86);
  border:1px solid var(--line);
}
.score-box small{display:block;color:var(--muted);font-size:12px}
.score-box strong{display:block;margin-top:8px;font-size:20px}

.detail-panel{
  position:sticky;
  top:18px;
  padding:24px;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,252,247,.92),rgba(255,248,242,.78));
}
.detail-title{
  margin:0;
  font-size:30px;
  line-height:1.12;
}
.detail-copy{
  margin:14px 0 0;
  color:var(--muted);
  font-size:14px;
}
.detail-block{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.detail-block h3{
  margin:0 0 10px;
  font-size:15px;
}
.detail-list{
  display:grid;
  gap:10px;
}
.detail-list .item{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  border:1px solid var(--line);
}
.detail-list .item strong{display:block}
.detail-list .item span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}

.notice{
  padding:18px;
  border-radius:20px;
  background:rgba(15,123,125,.08);
  border:1px solid rgba(15,123,125,.14);
  color:var(--teal);
  font-size:14px;
}

.question-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.question-card{
  padding:22px;
  border-radius:26px;
  background:rgba(255,255,255,.82);
}
.question-card h3{
  margin:0 0 8px;
  font-size:20px;
}
.question-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.option-grid{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.option{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.8);
}
.option input{margin:0}

.result-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.feature-card{
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.84);
  border:1px solid var(--line);
}
.feature-card h3{
  margin:0 0 10px;
  font-size:20px;
}
.feature-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.plan-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.plan-bucket{
  display:grid;
  gap:12px;
  padding:20px;
  border-radius:26px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.84);
}
.plan-bucket h3{
  margin:0;
  font-size:24px;
}
.plan-item{
  padding:16px;
  border-radius:20px;
  background:rgba(248,242,235,.86);
  border:1px solid var(--line);
}
.plan-item h4{
  margin:0;
  font-size:17px;
}
.plan-item p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}
.prob{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.prob.safe{background:#dff3ec;color:#0e7660}
.prob.good{background:#e9f1ff;color:#2251bb}
.prob.watch{background:#fef1d5;color:#b85c09}
.prob.high-risk{background:#fde1df;color:#b7332b}

.saved-grid{
  grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);
  gap:18px;
}
.saved-card{
  padding:22px;
  border-radius:28px;
  background:rgba(255,255,255,.82);
}
.saved-list{
  display:grid;
  gap:12px;
}
.saved-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(248,242,235,.78);
}
.saved-item strong{display:block}
.saved-item span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
.empty-state{
  padding:30px 18px;
  border-radius:22px;
  border:1px dashed var(--line-strong);
  color:var(--muted);
  text-align:center;
  background:rgba(255,255,255,.54);
}

.footer{
  padding:0 0 34px;
}
.footer-shell{
  padding:28px 30px 22px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg,rgba(44,39,44,.96),rgba(58,44,40,.94));
  color:rgba(255,248,242,.88);
  box-shadow:var(--shadow);
}
.footer-grid{
  grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,.9fr));
  gap:20px;
}
.footer-title{
  font-size:28px;
  margin:0;
}
.footer-shell p{
  margin:12px 0 0;
  max-width:420px;
  color:rgba(255,248,242,.68);
  font-size:14px;
}
.footer-links{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.footer-links a{
  color:rgba(255,248,242,.74);
  font-size:14px;
}
.footnote{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,248,242,.48);
  font-size:13px;
}
.footer-customer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.footer-customer-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
  text-decoration:none;
  font-size:13px;
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.footer-customer-link:hover{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.3);
  color:#fff;
}

.hidden{display:none!important}
.fade-in{animation:fadeUp .45s ease both}
.mt-0{margin-top:0!important}

@keyframes openTicker{from{transform:translateX(0)}to{transform:translateX(-30%)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

@media (max-width:1120px){
  .page-hero,.list-grid,.saved-grid,.footer-grid{grid-template-columns:1fr}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
  }
  .brand{flex:1 1 auto}
  .top-actions{margin-left:auto}
  .nav{
    order:3;
    width:100%;
    max-width:none;
    justify-content:flex-start;
    margin-inline:0;
    overflow-x:auto;
    flex-wrap:nowrap;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{display:none}
}

@media (max-width:780px){
  .page-wrap{width:min(var(--max), calc(100% - 20px))}
  .topbar{flex-wrap:wrap;padding-top:18px}
  .top-actions{width:100%;justify-content:space-between;flex-wrap:wrap}
  .page-hero,.page-section,.footer-shell,.detail-panel{padding-left:18px;padding-right:18px}
  .cta-row,.chip-row,.stat-grid,.tool-grid,.summary-grid,.filter-grid,.score-grid,.question-grid,.result-columns,.plan-grid,.footer-grid,.saved-grid,.mini-grid{grid-template-columns:1fr}
  .nav{padding:8px;gap:6px}
  .nav a{min-height:42px;padding:0 16px}
  .cta-row .btn{width:100%}
  .result-top,.saved-item{flex-direction:column}
  .page-hero h1{font-size:clamp(32px,10vw,52px)}
  .brand-mark{
    width:56px;
    height:56px;
    flex-basis:56px;
  }
  .brand-copy strong{font-size:22px}
}
