/* headline-analyzer.css
   Mirrors the ARC + RSA pattern (hero + methodology + form + per-headline cards).
   Dark theme, square. */

.ha-hero { padding-bottom: 50px !important; border-bottom: 0 !important; }
.ha-tool-section { padding-top: 50px !important; border-bottom: 0 !important; }
.ha-intro-section { border-bottom: 0 !important; padding-top: 50px !important; padding-bottom: 50px !important; }
@media (max-width: 991px) {
	.ha-hero { padding-bottom: 30px !important; }
	.ha-tool-section { padding-top: 30px !important; }
}

.ha-intro-prose { color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.7; font-weight: 300; margin: 0 0 16px; }
.ha-intro-prose:last-child { margin-bottom: 0; }
@media (min-width: 992px) { .ha-intro-section .col-md-7 { position: sticky; top: 140px; align-self: start; } }

.ha-intro-methodology { padding: 28px 28px 24px; background: linear-gradient(160deg, #101319 0%, #06070a 100%); border: 1px solid rgba(0, 180, 255, 0.2); border-top: 3px solid #00B4FF; margin-top: 20px; }
.ha-intro-method-head { margin: 0 0 6px; color: #ffffff; font-size: 18px; font-weight: 700; line-height: 1.3; }
.ha-intro-method-sub { margin: 0 0 18px; color: rgba(255, 255, 255, 0.55); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.ha-intro-method-list { list-style: none; margin: 0; padding: 0; }
.ha-intro-method-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0; color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 1.4; }
.ha-intro-method-list em { color: #00B4FF; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; font-family: Menlo, Consolas, monospace; text-transform: uppercase; }
@media (max-width: 991px) { .ha-intro-methodology { margin-top: 32px; } }

/* Form */
.ha-form { display: flex; flex-direction: column; gap: 24px; background: linear-gradient(160deg, #101319 0%, #06070a 100%); border: 1px solid rgba(255, 255, 255, 0.08); padding: 36px 32px 32px; margin-top: 40px; }
.ha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.ha-col { display: flex; flex-direction: column; gap: 16px; }
.ha-col .ha-submit-row { margin-top: auto; }
.ha-field-row { display: flex; flex-direction: column; gap: 6px; }
.ha-field-row label { color: rgba(255, 255, 255, 0.6); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.ha-form input[type="text"],
.ha-form input[type="email"] { appearance: none; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 15px; font-family: inherit; padding: 0 16px; height: 52px; width: 100%; box-sizing: border-box; }
.ha-form textarea { appearance: none; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 15px; font-family: inherit; padding: 14px 16px; min-height: 150px; width: 100%; box-sizing: border-box; line-height: 1.4; resize: vertical; }
.ha-form input:focus,
.ha-form textarea:focus { outline: none; border-color: #00B4FF; }
.ha-hint { color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.4; margin: 4px 0 0; }
.ha-hidden { display: none !important; }
.ha-submit-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; justify-content: flex-end; }
#ha-submit { height: 52px; white-space: nowrap; }
.ha-usage { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 700; }
.ha-error { margin: 16px 0 0; padding: 14px 18px; border: 1px solid rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.08); color: #ff8787; font-size: 14px; line-height: 1.5; }

/* Results */
.ha-results { display: block; margin-top: 40px; }

.ha-overall {
	border-left: 3px solid #00B4FF;
	padding: 16px 20px;
	background: rgba(0, 180, 255, 0.06);
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
	line-height: 1.65;
	font-weight: 300;
	margin-bottom: 24px;
}
.ha-overall-head { color: #00B4FF; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }

.ha-headline-list { display: flex; flex-direction: column; gap: 20px; }

.ha-card {
	position: relative;
	background: linear-gradient(160deg, #141821 0%, #06070a 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-top: 3px solid #00B4FF;
	padding: 28px 26px 26px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ha-card.is-best { border-top-color: #4ade80; }
.ha-card.is-best::before { content: 'BEST'; position: absolute; top: -11px; left: 20px; background: #4ade80; color: #000; padding: 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }

.ha-head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ha-head-info { min-width: 0; }
.ha-head-label { color: rgba(255, 255, 255, 0.55); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin: 0 0 8px; }
.ha-head-text { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -0.01em; word-break: break-word; }
.ha-head-stats { color: rgba(255, 255, 255, 0.55); font-size: 12px; margin: 10px 0 0; font-family: Menlo, Consolas, monospace; }

.ha-score-dial { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ha-score-num { font-size: 72px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -0.04em; text-shadow: 0 0 32px rgba(0, 180, 255, 0.3); }
.ha-score-num.is-excellent { color: #4ade80; text-shadow: 0 0 32px rgba(74, 222, 128, 0.3); }
.ha-score-num.is-strong    { color: #00B4FF; text-shadow: 0 0 32px rgba(0, 180, 255, 0.3); }
.ha-score-num.is-moderate  { color: #f4b942; text-shadow: 0 0 32px rgba(244, 185, 66, 0.3); }
.ha-score-num.is-weak      { color: #fb923c; text-shadow: 0 0 32px rgba(251, 146, 60, 0.3); }
.ha-score-num.is-poor      { color: #ff6b6b; text-shadow: 0 0 32px rgba(255, 107, 107, 0.3); }
.ha-score-label { color: rgba(255, 255, 255, 0.55); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; }

.ha-primary-fix { border-left: 3px solid #4ade80; padding: 16px 20px; background: rgba(74, 222, 128, 0.06); color: rgba(255, 255, 255, 0.88); font-size: 15px; line-height: 1.65; font-weight: 300; }
.ha-primary-fix-head { color: #4ade80; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }

.ha-checks { display: flex; flex-direction: column; gap: 10px; }
.ha-check { padding: 18px 20px; background: #000; border: 1px solid rgba(255, 255, 255, 0.08); border-left-width: 3px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 14px 24px; align-items: start; }
.ha-check.is-pass { border-left-color: #4ade80; }
.ha-check.is-warn { border-left-color: #f4b942; }
.ha-check.is-fail { border-left-color: #ff6b6b; }

.ha-check-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; grid-column: 1 / 2; padding-right: 28px; }
.ha-check-name { color: #fff; font-size: 17px; font-weight: 700; margin: 0; line-height: 1.3; }

.ha-check-chip-cell { grid-column: 2 / 3; grid-row: 1 / 2; justify-self: end; align-self: center; }
.ha-check-chip-cell .ha-check-chip { display: inline-flex; justify-content: center; width: 110px; box-sizing: border-box; }
.ha-check-chip { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding: 11px 14px; display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; }
.ha-check-chip.is-pass { color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.06); }
.ha-check-chip.is-warn { color: #f4b942; border: 1px solid rgba(244, 185, 66, 0.4); background: rgba(244, 185, 66, 0.06); }
.ha-check-chip.is-fail { color: #ff6b6b; border: 1px solid rgba(255, 107, 107, 0.4); background: rgba(255, 107, 107, 0.06); }

.ha-check-score-cell { grid-column: 2 / 3; grid-row: 2 / 3; justify-self: end; align-self: center; text-align: right; }
.ha-check-score-num { display: inline-block; color: rgba(255, 255, 255, 0.45); font-size: 24px; font-weight: 700; font-family: Menlo, Consolas, monospace; letter-spacing: -0.02em; line-height: 1; }
.ha-check-score-num strong { color: #ffffff; font-weight: 700; }

.ha-check-body { grid-column: 1 / 2; grid-row: 2 / 3; padding-right: 28px; }
.ha-check-finding { color: rgba(255, 255, 255, 0.68); font-size: 13px; line-height: 1.55; margin: 0 0 22px; font-weight: 300; }
.ha-check-fix { color: rgba(255, 255, 255, 0.88); font-size: 13px; line-height: 1.55; margin: 0; font-weight: 400; }
.ha-check-fix strong { color: #00B4FF; font-weight: 700; letter-spacing: 0.08em; font-size: 11px; text-transform: uppercase; margin-right: 6px; }

/* Actions */
.ha-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; justify-content: flex-end; }
.ha-action-btn { appearance: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.75); font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 20px; height: 48px; min-width: 180px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; white-space: nowrap; text-align: center; }
.ha-action-btn:hover,
.ha-action-btn:focus { background: #00B4FF; color: #ffffff; border-color: #00B4FF; outline: none; }

/* Upsell */
.ha-upsell { margin-top: 50px; display: grid; grid-template-columns: minmax(240px, 1fr) 3fr; gap: 48px; align-items: center; padding: 60px 56px; background: linear-gradient(135deg, #0a1a24 0%, #060a0f 60%, #0a0a0a 100%); border: 1px solid rgba(0, 180, 255, 0.25); border-top: 3px solid #00B4FF; box-shadow: 0 24px 48px -20px rgba(0, 180, 255, 0.15), 0 20px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.ha-upsell-score { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ha-upsell-score-number { display: flex; align-items: baseline; justify-content: center; line-height: 1; }
.ha-upsell-score-num { color: #fff; font-size: 128px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0 32px rgba(0, 180, 255, 0.4); }
.ha-upsell-score-label { color: rgba(255, 255, 255, 0.55); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; }
.ha-upsell-body { display: flex; flex-direction: column; gap: 14px; }
.ha-upsell-headline { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.ha-upsell-copy { color: rgba(255, 255, 255, 0.78); font-size: 20px; line-height: 1.55; font-weight: 300; margin: 0; }
.ha-upsell-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: flex-end; }
.ha-upsell-ctas .btn-mm,
.ha-upsell-ctas .btn-mm-ghost { height: 52px; display: inline-flex; align-items: center; }

/* Responsive */
@media (max-width: 991px) {
	.ha-grid { grid-template-columns: 1fr; gap: 16px; }
	.ha-head { grid-template-columns: 1fr; gap: 18px; }
	.ha-score-dial { align-items: flex-start; }
	.ha-upsell { grid-template-columns: 1fr; gap: 24px; padding: 40px 28px; }
	.ha-upsell-score-num { font-size: 96px; }
	.ha-upsell-ctas { justify-content: stretch; }
	.ha-upsell-ctas .btn-mm,
	.ha-upsell-ctas .btn-mm-ghost { flex: 1; }
}
@media (max-width: 575px) {
	.ha-form { padding: 28px 22px 24px; }
	.ha-check-head,
	.ha-check-body { padding-right: 0; }
	.ha-check-score-num { font-size: 20px; }
	.ha-check { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
	.ha-check-head { grid-column: 1 / 3; grid-row: 1 / 2; }
	.ha-check-chip-cell { grid-column: 1 / 2; grid-row: 2 / 3; justify-self: start; align-self: center; }
	.ha-check-score-cell { grid-column: 2 / 3; grid-row: 2 / 3; justify-self: end; align-self: center; text-align: right; }
	.ha-check-body { grid-column: 1 / 3; grid-row: 3 / 4; }
	.ha-head-text { font-size: 18px; }
}
@media (max-width: 480px) {
	.ha-upsell-ctas,
	.ha-submit-row,
	.ha-actions { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; width: 100% !important; justify-content: flex-start !important; }
	.ha-upsell-ctas .btn-mm,
	.ha-upsell-ctas .btn-mm-ghost,
	.ha-upsell-ctas .btn-mm-large,
	.ha-actions .ha-action-btn,
	#ha-submit { width: 100% !important; min-width: 0 !important; flex: 0 0 auto !important; white-space: nowrap !important; text-align: center !important; justify-content: center !important; padding-left: 12px !important; padding-right: 12px !important; font-size: 12.5px !important; letter-spacing: 0.08em !important; }
	.ha-usage { text-align: center; }
}
