@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-400.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-500.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-600.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-700.ttf) format('truetype');
}
/* BeautyBrief palette: ink blue, warm ivory, powder blue and sand.
   Logo/favicons use the same ink blue #253b67 as the primary UI. */
:root {
  --blue-soft: #eff3f9;
  --sand: #ece5d8;
  --sand-soft: #f2eee5;
  --warm-ink: #655744;
}
/* The identity shares one palette across navigation, product cards and reading pages. */
.hero-orbit { background: var(--blue-tint); }
.art-sticker { color: var(--accent); }
.product-visual, .product-hero-image { background: var(--blue-tint); }
.product-card:nth-child(3n + 2) .product-visual { background: var(--sand); }
.product-card:nth-child(3n) .product-visual { background: var(--blue-soft); }
.primary:hover { background: #1b2e54; border-color: #1b2e54; opacity: 1; }
.round-arrow:hover { background: var(--blue-tint); opacity: 1; }
.secondary:hover { background: var(--blue-soft); opacity: 1; }

body { font-family: 'DM Sans', Arial, sans-serif; }
h1,h2,h3,h1 em,h2 em { font-family: 'DM Sans', Arial, sans-serif; }
h1,h2 { font-weight: 500; }
h1 em,h2 em { font-style: normal; font-weight: 600; }
.brand, footer .footer-brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: 'DM Sans', Arial, sans-serif; color: var(--accent);
  letter-spacing: -1.2px; font-weight: 700;
}
.brand-mark { width: 42px; height: 36px; object-fit: contain; flex-shrink: 0; }
.brand-wordmark { font-size: 29px; line-height: 1.2; }
.site-header { gap: 25px; }
.site-header nav { gap: 25px; }
.compact-hero h1 { font-weight: 500; line-height: 1.1; font-size: 62px; letter-spacing: -2.6px; }
.compact-hero .hero-intro { font-size: 17px; }
.product-copy h3 { font-weight: 600; }
.product-footer { flex-wrap: wrap; gap: 3px 9px; }
.brief-hero h1 { font-weight: 500; line-height: 1.17; }
.signal-box h2 { font-size: 24px; letter-spacing: -.7px; font-weight: 600; }
/* Semantic colors make the two review takeaways easy to distinguish. */
.quick-take .signal-box { background: #edf4ec; border-color: #cbdcca; }
.quick-take .signal-box h2 { color: #2f6349; }
.quick-take .signal-box.negative { background: #f9eded; border-color: #e6caca; }
.quick-take .signal-box.negative h2 { color: #904343; }
.evidence-detail>summary>span { font-weight: 600; }
.publisher-disclosure { font-size: 11px; line-height: 1.75; color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; }
.review-tags .publisher-tag { background: var(--sand); color: var(--warm-ink); }
.strip-logos { flex-wrap: wrap; }
footer .brand-mark { width: 32px; height: 28px; }
footer .brand-wordmark { font-size: 23px; }
footer>div { flex-wrap: wrap; gap: 8px 18px; }
@media(max-width:1050px) {
 .site-header nav { gap: 18px; }
 .brand-wordmark { font-size: 26px; }
 .brand-mark { width: 37px; height: 32px; }
 .compact-hero h1 { font-size: 55px; }
}
@media(max-width:760px) {
 .site-header { height: auto; min-height: 76px; flex-direction: row; justify-content: space-between; align-items: center; padding-block: 14px; gap: 12px; }
 .site-header .brand-wordmark { font-size: clamp(21px, 5.7vw, 26px); }
 .site-header .brand { gap: 8px; }
 .site-header .brand-mark { width: 30px; height: 28px; }
 .site-header nav { width: auto; flex: 0 0 auto; gap: 0; font-size: 11px; }
 .site-header nav > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
 .site-header nav > a:first-child, .site-header nav > .request-nav { display: none; }
 .site-header .demo-pill { margin-left: auto; }
 .compact-hero h1 { font-size: clamp(39px,10.8vw,49px); line-height: 1.1; letter-spacing: -1.9px; }
 .compact-hero .hero-intro { font-size: 15px; }
 .brief-hero h1 { font-size: 31px; line-height: 1.2; }
 .product-copy h3 { font-size: 16px; }
 .signal-box h2 { font-size: 22px; }
 footer>div { gap: 10px 18px; }
}

/* Product formula identity is visible before the summary and on catalog cards. */
.version-badge { display: inline-flex; width: fit-content; align-items: center; padding: .3rem .65rem; border: 1px solid #c6d1e3; border-radius: 6px; background: #edf2fa; color: #253b67; font-size: .76rem; font-weight: 700; line-height: 1.4; }
.product-intro > .version-badge { margin: .35rem 0 .05rem; }
.product-hero-copy > .version-badge { margin: .3rem 0; }
.version-context { color: var(--muted); font-size: .82rem; line-height: 1.5; margin: .35rem 0 1rem; }
.version-context p { margin: 0; }
.version-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .35rem; }
.version-links a { color: var(--accent); text-underline-offset: 3px; }

/* One native link covers each catalog card, including its summary and padding. */
a.product-card { display: block; cursor: pointer; }
a.product-card:hover { opacity: 1; }
a.product-card:focus-visible { outline: 3px solid #526da4; outline-offset: 4px; }
a.product-card .product-visual { display: flex; align-items: center; justify-content: center; }
a.product-card:hover .round-arrow, a.product-card:focus-visible .round-arrow { background: var(--blue-tint); }

/* Evidence coverage stays distinct from the product's satisfaction score. */
.evidence-badge { display:inline-flex; align-items:center; width:fit-content; max-width:100%; margin-top:14px; padding:5px 10px; border-radius:20px; font-size:12px; line-height:1.5; font-weight:650; color:#4a5363; background:#e9edf3; border:1px solid #d6dde8; }
.evidence-badge.limited { color:#71521f; background:#f8edda; border-color:#e4cfaa; }
.evidence-badge.broader { color:#294a78; background:#e8effa; border-color:#c7d6eb; }
.evidence-context { margin:4px 0 20px; }
.evidence-context .evidence-badge { margin-top:0; }
.evidence-context p { color:var(--muted); font-size:13px; line-height:1.65; margin:8px 0 0; max-width:52ch; }
.evidence-context a { text-decoration:underline; text-underline-offset:3px; }
.correction-prompt { border-top:1px solid var(--line); padding:25px 0; margin-top:20px; }
.correction-prompt p { margin:0 0 9px; color:var(--muted); }
.request-form select,.request-form textarea { width:100%; max-width:100%; border:1px solid #c8d1df; border-radius:10px; padding:12px; background:#fffefa; color:#28313e; font:inherit; }
.request-form textarea { resize:vertical; min-height:150px; }
.request-form select { text-overflow:ellipsis; }
.readiness-panel { border:1px solid #ccd7e7; border-radius:16px; padding:24px; margin:28px 0; background:#eff3fa; }
.readiness-panel h2 { font-size:26px; }
.readiness-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px 30px; }
.readiness-grid strong { color:#263c66; }
.readiness-grid p,.readiness-grid a { font-size:14px; line-height:1.7; }
.submitted-message { white-space:pre-wrap; overflow-wrap:anywhere; background:#f6f5f1; padding:16px; border-radius:10px; }
@media(max-width:640px) { .readiness-grid { grid-template-columns:1fr; } .readiness-panel { padding:20px; } .evidence-context p { font-size:13px; } }

/* Shared row tracks keep scores level without shortening product names or hiding versions. */
a.product-card { display: flex; flex-direction: column; }
.product-card .product-visual { flex-shrink: 0; }
.product-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-intro { min-width: 0; }
.product-copy .score-row { margin-top: auto; }
@supports (grid-template-rows: subgrid) {
 .product-grid > .product-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
 .product-grid > .product-card > .product-copy { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
 .product-copy .score-row { margin-top: 0; align-self: start; }
 .product-copy > .evidence-badge { align-self: start; }
 .product-copy > .product-footer { align-self: start; }
}

.back-to-top { display: none; }
@media(max-width:760px) {
 .back-to-top:not([hidden]) { display: grid; place-items: center; position: fixed; z-index: 20; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; padding: 0; border: 1px solid #ccd9ed; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 4px 16px #253b672b; }
 .back-to-top:hover { background: #1b2e54; opacity: 1; }
}
