/* RankSurge qualify -> collect -> checkout funnel styles.
   SHARED by the homepage (#qualify) and /optin-v1/. Tokens + buttons come from
   styles.css. Keep the .optin-in / .qz-hp class names — the markup uses them. */

.btn-lg { min-height: 60px; padding: 18px 34px; font-size: 16px; }

.funnel { margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
.funnel-start { box-shadow: 0 12px 30px rgba(168, 214, 47, .35); }

.funnel-card {
	width: 100%; max-width: 520px; margin-top: 8px;
	border: 1px solid var(--line-dark); background: var(--paper);
	padding: clamp(24px, 4vw, 34px); text-align: left;
}
.funnel-step-h {
	font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px;
	letter-spacing: .06em; text-transform: uppercase; color: var(--gray); margin-bottom: 12px;
}
.funnel-step-h--win { color: var(--lime-deep); }
.funnel-step-h--no { color: var(--clay); }
.funnel-card h3 { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.funnel-card > .funnel-step > p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.funnel-card form { display: grid; gap: 12px; }

.optin-in {
	width: 100%; min-height: 54px; padding: 14px 16px;
	font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line-dark);
}
.optin-in:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Country code + number read as ONE field: a single border around the pair, with
   a hairline between them. The select is sized to its content so the number keeps
   the room, and it never shrinks below a tappable width on a phone. */
.optin-phone { display: flex; }
.optin-phone .optin-cc {
	flex: 0 0 auto; min-width: 92px; min-height: 54px; padding: 14px 10px;
	font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line-dark); border-right: 0;
	border-radius: 0; -webkit-appearance: none; appearance: none;
	background-image: linear-gradient( 45deg, transparent 50%, var(--ink) 50% ), linear-gradient( 135deg, var(--ink) 50%, transparent 50% );
	background-position: calc( 100% - 16px ) 50%, calc( 100% - 11px ) 50%;
	background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
	padding-right: 28px;
}
.optin-phone .optin-cc:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.optin-phone .optin-in { flex: 1 1 auto; min-width: 0; }

/* SMS consent: deliberately quiet fine print, but a full-size tap target. The
   box ships UNCHECKED and stays that way by default: pre-checked consent is not
   valid under TCPA and fails A2P carrier vetting. */
.optin-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; cursor: pointer; }
.optin-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.optin-consent span { font-size: 12px; line-height: 1.55; color: var(--gray); }
.optin-consent a { color: var(--gray); text-decoration: underline; }

.funnel-status {
	margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line);
	font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--gray);
}
.funnel-status.is-error { color: var(--clay); border-color: var(--clay); }
.funnel-fine { margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gray); }
.funnel-card .dr-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; color: var(--ink); background: var(--lime); padding: 3px 10px; margin-bottom: 14px; }

/* ---------- step 2: pick your keywords ----------
   The visitor's own live rankings (POST /api/rankings) become the thing they buy.
   Rows are full-width and 52px tall so a thumb can hit one, and nothing inside is
   wider than the card, so a 390px screen never scrolls sideways. */
.kw-load {
	font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--gray);
	border: 1px solid var(--line); padding: 12px 14px;
}
.kw-head {
	font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px;
	letter-spacing: .06em; text-transform: uppercase; color: var(--gray); margin-bottom: 9px;
}
.kw-list { display: grid; gap: 8px; }
.kw-row {
	display: flex; align-items: flex-start; gap: 12px;
	width: 100%; min-height: 52px; padding: 12px 13px;
	border: 1px solid var(--line); background: var(--paper);
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: border-color .15s ease, background .15s ease;
}
.kw-row:hover { border-color: var(--line-dark); }
.kw-row.is-on { border-color: var(--ink); background: var(--paper-2); }
.kw-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.kw-box {
	position: relative; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
	border: 1px solid var(--line-dark); background: var(--paper);
}
.kw-row.is-on .kw-box { background: var(--lime); border-color: var(--ink); }
.kw-row.is-on .kw-box::after {
	content: '✓'; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700; line-height: 1; color: var(--ink);
}
.kw-main { flex: 1; min-width: 0; }
.kw-word { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.kw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.kw-rank, .kw-vol, .kw-win { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; }
.kw-rank { font-weight: 700; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); padding: 4px 7px; }
.kw-row.is-on .kw-rank { background: var(--paper); }
.kw-vol { color: var(--gray); }
.kw-win { font-weight: 700; letter-spacing: .06em; color: var(--ink); background: var(--lime); padding: 4px 7px; }
.kw-note { margin-top: 9px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--clay); }
#kw-picker { margin-bottom: 18px; }

/* Both of these are appended INSIDE #details-form, under the button, so the price
   line and the quiet way out sit where the decision actually gets made. */
.kw-fine { font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.5; color: var(--gray); text-align: center; }
.kw-skip {
	display: block; width: 100%; min-height: 44px; padding: 11px 6px;
	font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gray);
	background: none; border: 0; cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px;
}
.kw-skip:hover { color: var(--ink); }
/* Nothing ticked yet, so the button says so instead of looking clickable. */
.funnel-card .btn:disabled { background: var(--line); color: var(--gray-2); cursor: not-allowed; box-shadow: none; }
/* The CTA now names the pick AND the price, which at 34px padding is wider than
   the card is on a 390px phone: .btn is nowrap, so it bled straight through the
   card border. It shrinks and wraps in here instead. */
.funnel-card .btn-block { min-width: 0; white-space: normal; padding-left: 18px; padding-right: 18px; }
/* And a notch down in size keeps every count from 1 to 10 on ONE line at 390px,
   so the price never dangles on a second row of its own. */
#details-form .btn-lg { font-size: 15px; }

/* Audit offer on the "not ready for a blast" step. The site failed the check
   because it has nothing ranking yet, which is exactly what the audit maps out,
   so the rejection carries the fix instead of dead-ending. */
.audit-offer {
	margin-top: 18px; padding: 18px 18px 16px;
	border: 1px solid var(--line-dark); background: var(--paper-2, #F4F2EC);
}
.audit-offer-h {
	font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--lime-deep); margin-bottom: 8px;
}
.audit-offer-title {
	font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px;
	line-height: 1.25; letter-spacing: -.01em; color: var(--ink); margin-bottom: 12px;
}
.audit-offer-list { list-style: none; margin: 0 0 16px; padding: 0; }
.audit-offer-list li {
	position: relative; padding-left: 22px; margin-bottom: 7px;
	font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.audit-offer-list li::before {
	content: '✓'; position: absolute; left: 0; top: 0;
	color: var(--lime-deep); font-weight: 700;
}
.audit-offer .funnel-fine { margin-top: 12px; text-align: center; }

/* The ranking page on each keyword row. Quiet, mono, never wraps. */
.kw-page { color: #8a8d92; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
