/* Attachment algorithm, gated report, and brand typography */
[hidden] { display: none !important; }
body { font-family: 'Varela Round', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
h1, h2, h3, h4, .main-result strong, .metric-card strong { font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.platform-grid { grid-template-columns: repeat(4, 1fr); }
.field > span small { margin-left: 6px; color: #969eaa; font-size: 9px; font-weight: 500; }

.locked-report { position: relative; min-height: 280px; margin-top: 18px; overflow: hidden; border: 1px solid #dbe1e9; border-radius: 17px; background: #fff; }
.locked-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 28px; filter: blur(5px); opacity: .55; }
.locked-preview article { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.locked-preview span, .locked-preview strong, .locked-preview small { display: block; }
.locked-preview span, .locked-preview small { color: #7b8594; font-size: 10px; }
.locked-preview strong { margin: 8px 0; color: var(--blue); font-size: 24px; }
.locked-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; background: linear-gradient(180deg, rgba(255,255,255,.4), #fff 52%); text-align: center; }
.locked-overlay > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); }
.locked-overlay > span { margin-top: 8px; color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.locked-overlay h3 { margin: 4px 0; font-size: 21px; }
.locked-overlay p { margin: 0; color: var(--muted); font-size: 11px; }
.locked-overlay button { margin-top: 14px; padding: 11px 20px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; }
.locked-overlay small { margin-top: 7px; color: #949ca8; font-size: 8px; }

.unlocked-report { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.unlocked-heading span { color: var(--green); font-size: 10px; font-weight: 800; }
.unlocked-heading h2 { margin: 5px 0 18px; font-size: 26px; }
.cost-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cost-summary article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.cost-summary span, .cost-summary strong, .cost-summary small { display: block; }
.cost-summary span, .cost-summary small { color: #7d8796; font-size: 9px; }
.cost-summary strong { margin: 6px 0; color: var(--blue); font-size: 25px; }
.cost-summary .highlight { background: #f2f7fd; }
.cost-summary .saving { background: var(--green-soft); }
.cost-summary .saving strong { color: var(--green); }

.cost-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.cost-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border: 0; }
.cost-row span, .cost-row b { padding: 9px 12px; font-size: 10px; }
.cost-row b { text-align: right; }
.cost-row.heading { background: var(--paper); color: #7b8594; }
.cost-row.total { background: #f7f9fc; }
.cost-row.total span, .cost-row.total b { font-size: 12px; }
.muted-value { color: #99a1ad; }
.green-value { color: var(--green); }

.onboarding-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; margin-top: 14px; padding: 16px; border-radius: 11px; background: var(--paper); }
.onboarding-comparison div { text-align: center; }
.onboarding-comparison span, .onboarding-comparison strong, .onboarding-comparison small { display: block; }
.onboarding-comparison span, .onboarding-comparison small { color: #7d8796; font-size: 9px; }
.onboarding-comparison strong { margin: 4px 0; font-size: 20px; }
.onboarding-comparison > i { color: #a7afba; }
.onboarding-comparison .fast strong { color: var(--green); }

.elastic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.elastic-grid article { padding: 18px; border-radius: 12px; background: var(--paper); }
.elastic-grid article > span { color: var(--orange); font-size: 8px; font-weight: 800; }
.elastic-grid h4 { margin: 5px 0 9px; font-size: 14px; }
.elastic-grid strong { display: block; color: var(--blue); font-size: 20px; }
.elastic-grid p { margin: 8px 0; color: #5f6b7d; font-size: 10px; }
.elastic-grid small { color: #8a93a0; font-size: 9px; line-height: 1.6; }

.recommendation-card { display: flex; align-items: center; gap: 25px; margin-top: 14px; padding: 25px; border-radius: 16px; background: linear-gradient(135deg, #17283e, #2e4b6e); color: #fff; }
.recommendation-card > div:first-child { margin-right: auto; }
.recommendation-card span { color: #f29a6b; font-size: 9px; font-weight: 850; }
.recommendation-card h3 { margin: 5px 0; font-size: 23px; }
.recommendation-card p { max-width: 730px; margin: 0; color: rgba(255,255,255,.72); font-size: 11px; }
.recommendation-card ul { display: flex; gap: 18px; margin: 12px 0 6px; padding: 0; list-style: none; font-size: 10px; }
.recommendation-card small { color: rgba(255,255,255,.55); font-size: 8px; }
.recommendation-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.recommendation-actions a { padding: 10px 13px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }
.recommendation-actions a.primary { background: var(--orange); }

/* Readable type scale aligned with the DSR diagnosis tool */
body { font-size: 16px; line-height: 1.7; }
.hero .eyebrow { font-size: 12px; }
.hero h1 { font-size: clamp(43px, 5.8vw, 64px); }
.hero p { font-size: 18px; line-height: 1.8; }
.hero-points { font-size: 13px; }
.hero-card small { font-size: 12px; }
.hero-card strong { font-size: 16px; }
.panel-heading h2 { font-size: 24px; }
.panel-heading p { font-size: 12px; line-height: 1.6; }
.input-panel legend, .field > span { font-size: 13px; }
.field > span small { font-size: 11px; }
.choice-button { font-size: 13px; }
.promotion-grid .choice-button small { font-size: 10px; }
.field input, .field select { font-size: 14px; }
.with-unit b { font-size: 12px; }
.primary-button { font-size: 14px; }
.privacy-note { font-size: 11px; }
.form-error { font-size: 12px; }
.empty-preview .eyebrow { font-size: 12px; }
.empty-preview h2 { font-size: 23px; }
.empty-preview > p { font-size: 13px; }
.empty-preview li { font-size: 12px; }
.quick-heading span, .quick-heading small { font-size: 11px; }
.quick-heading h2 { font-size: 24px; }
.main-result span, .main-result small { font-size: 11px; }
.quick-metrics span { font-size: 10px; }
.quick-metrics strong { font-size: 22px; }
.quick-gap { font-size: 12px; }
.quick-note { font-size: 11px; }
.view-report { font-size: 12px; }
.report-header h2 { font-size: 31px; }
.report-header p { font-size: 12px; }
.text-button { font-size: 12px; }
.metric-card span, .metric-card small { font-size: 10px; }
.report-card header span { font-size: 10px; }
.report-card h3 { font-size: 20px; }
.report-card header small { font-size: 10px; }
.traffic-bar b { font-size: 11px; }
.traffic-bar span { font-size: 10px; }
.traffic-summary { font-size: 11px; }
.gap-figure span, .gap-figure small { font-size: 11px; }
.gap-scale span { font-size: 10px; }
.gap-explain { font-size: 12px; }
.schedule-row { min-height: 64px; }
.schedule-row > span { font-size: 12px; }
.schedule-row.heading span { font-size: 10px; }
.schedule-summary span { font-size: 10px; }
.schedule-summary strong { font-size: 18px; }
.risk-item > span { font-size: 9px; }
.risk-item strong { font-size: 13px; }
.risk-item p { font-size: 11px; }
.locked-preview span, .locked-preview small { font-size: 11px; }
.locked-overlay > span { font-size: 10px; }
.locked-overlay h3 { font-size: 23px; }
.locked-overlay p { font-size: 13px; }
.locked-overlay button { font-size: 13px; }
.locked-overlay small { font-size: 10px; }
.unlocked-heading span { font-size: 11px; }
.unlocked-heading h2 { font-size: 29px; }
.cost-summary span, .cost-summary small { font-size: 11px; }
.cost-row { min-height: 50px; }
.cost-row span, .cost-row b { font-size: 12px; }
.cost-row.total span, .cost-row.total b { font-size: 14px; }
.onboarding-comparison span, .onboarding-comparison small { font-size: 11px; }
.elastic-grid article > span { font-size: 10px; }
.elastic-grid h4 { font-size: 16px; }
.elastic-grid p { font-size: 12px; }
.elastic-grid small { font-size: 11px; }
.recommendation-card span { font-size: 10px; }
.recommendation-card h3 { font-size: 25px; }
.recommendation-card p { font-size: 13px; }
.recommendation-card ul { font-size: 12px; }
.recommendation-card small { font-size: 10px; }
.recommendation-actions a { font-size: 12px; }
.report-disclaimer { font-size: 11px; }
.dialog-heading span { font-size: 10px; }
.dialog-heading h2 { font-size: 24px; }
.dialog-heading p { font-size: 12px; }
.lead-form .field > span { font-size: 12px; }
.consent { font-size: 12px; }
.success-toast { font-size: 12px; }
footer { font-size: 11px; }

@media (max-width: 900px) {
  .cost-summary, .elastic-grid { grid-template-columns: 1fr 1fr; }
  .recommendation-card { align-items: stretch; flex-direction: column; }
  .recommendation-actions { width: 100%; }
  .recommendation-actions a { flex: 1; text-align: center; }
}

@media (max-width: 690px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .locked-preview, .cost-summary, .elastic-grid { grid-template-columns: 1fr; }
  .cost-row { grid-template-columns: 1fr .85fr .85fr; }
  .onboarding-comparison { grid-template-columns: 1fr; }
  .onboarding-comparison > i { transform: rotate(90deg); }
  .recommendation-card ul { align-items: flex-start; flex-direction: column; gap: 4px; }
  .recommendation-actions { flex-direction: column; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .report-header h2 { font-size: 26px; }
  .cost-row span, .cost-row b { padding: 10px 8px; font-size: 11px; }
}
