/* ============================================================
   AI LAYER (started as the index-ai preview, now the homepage)
   Used by index.html / index-es.html and, for the "How License Ladder
   works" method section, by how-it-works(-es).html. Everything here is
   additive: new class names, or overrides scoped to body[data-page="home"].

   Signature: the orange-to-green readiness gradient (red-to-green is
   the product's progress story). Used sparingly: the hero chip dot,
   the readiness ring glow, the memory curve line, and the coach
   preview frame.
   ============================================================ */

:root {
  --iq-grad: linear-gradient(90deg, var(--ll-orange-600) 0%, var(--ll-readiness-yellow) 52%, var(--ll-readiness-green) 100%);
  --iq-green-soft: #BDEBCF;
  --iq-panel: #0A1F38; /* = --ll-navy-800; the curve's cover rect must match it */
}

/* ---------- Soft pulse dot ---------- */
.iq-dot {
  position: relative; display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ll-readiness-green);
  box-shadow: 0 0 8px rgba(39,174,96,0.7);
}
.iq-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; opacity: 0;
}
.iq-dot.grad {
  width: 9px; height: 9px;
  background: conic-gradient(from 200deg, var(--ll-orange-600), var(--ll-readiness-yellow), var(--ll-readiness-green), var(--ll-orange-600));
  box-shadow: 0 0 10px rgba(243,156,18,0.75), 0 0 18px rgba(39,174,96,0.45);
}
.iq-dot.grad::after { background: var(--ll-readiness-green); }
.iq-dot.orange { background: var(--ll-orange-600); box-shadow: 0 0 8px rgba(232,71,44,0.7); }
@media (prefers-reduced-motion: no-preference) {
  .iq-dot::after { animation: iq-ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
}
@keyframes iq-ping {
  0%       { transform: scale(1);   opacity: 0.6; }
  75%,100% { transform: scale(2.9); opacity: 0; }
}

/* ---------- Small green tag pill (dashboard mock) ---------- */
.iq-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
  color: var(--iq-green-soft);
  background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.4);
  border-radius: var(--radius-pill); padding: 4px 10px 4px 9px;
}

/* ---------- "Coming soon" badge (coach only) ---------- */
.iq-soon {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
  color: #fff; background: rgba(232,71,44,0.2);
  border: 1px solid rgba(232,71,44,0.6); border-radius: var(--radius-pill);
  padding: 6px 12px 6px 10px;
  box-shadow: 0 0 22px -6px rgba(232,71,44,0.6);
}
.iq-soon.sm { font-size: 9.5px; padding: 4px 9px 4px 8px; gap: 6px; }

/* ============================================================
   1. HERO
   ============================================================ */
body[data-page="home"] .hero-kicker.ai-kicker {
  color: #fff; gap: 10px;
  border-color: rgba(39,174,96,0.42);
  background: linear-gradient(90deg, rgba(232,71,44,0.22) 0%, rgba(8,24,42,0.55) 48%, rgba(39,174,96,0.2) 100%);
  box-shadow: 0 10px 34px -14px rgba(39,174,96,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
body[data-page="home"] .ai-kicker .ai-kicker-sub { color: var(--ll-tan-cream); opacity: 0.85; }
@media (max-width: 760px) {
  /* the live homepage hides its kicker on phones; this one carries the positioning, so it stays */
  body[data-page="home"] .hero-kicker.ai-kicker { display: inline-flex !important; font-size: 11px !important; padding: 6px 13px; letter-spacing: 0.13em; }
  body[data-page="home"] .ai-kicker .k-dot,
  body[data-page="home"] .ai-kicker .ai-kicker-sub { display: none; }
  body[data-page="home"] .hero-kicker.ai-kicker + .hero-title { margin-top: 16px; }
}
/* hero badges: unchanged from the live homepage (no overrides here) */

/* ============================================================
   2. READINESS DASHBOARD
   ============================================================ */
.iq-ring { position: relative; flex: none; width: 92px; height: 92px; }
.iq-ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 210deg, var(--ll-orange-600), var(--ll-readiness-yellow), var(--ll-readiness-green), var(--ll-orange-600));
  filter: blur(10px); opacity: 0.42;
}
.iq-ring svg { position: relative; z-index: 1; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .iq-ring::before { animation: iq-spin 10s linear infinite; }
}
@keyframes iq-spin { to { transform: rotate(360deg); } }

.iq-ring-meta .iq-tag { margin-bottom: 8px; }

.iq-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  background: linear-gradient(90deg, rgba(39,174,96,0.10), rgba(11,39,66,0.5) 70%);
  border: 1px solid rgba(39,174,96,0.32); border-radius: 10px; padding: 12px 14px;
}
.iq-next-ico {
  width: 40px; height: 40px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: rgba(39,174,96,0.16); border: 1px solid rgba(39,174,96,0.4); color: #7FD6A2;
}
.iq-next-main { flex: 1 1 150px; min-width: 0; }
.iq-next-t { font-size: 14px; font-weight: 600; color: #fff; margin-top: 2px; }
.iq-next .iq-tag { margin-left: auto; }

/* ============================================================
   3. HOW LICENSE LADDER WORKS (the method: spaced repetition)
   ============================================================ */
.iq-how-head { max-width: 760px; }
.iq-how-head .lede { margin-top: 16px; }

.iq-curve {
  margin-top: 36px; position: relative; overflow: hidden;
  background: var(--iq-panel); color: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 70px -30px rgba(11,39,66,0.6), 0 0 0 1px rgba(173,207,238,0.1);
  padding: 22px 26px 20px;
}
.iq-curve::before { /* hairline signature along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--iq-grad); opacity: 0.85;
}
.iq-curve-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.iq-curve-ttl { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ll-tan-cream); opacity: 0.9; }
.iq-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(239,227,200,0.8); }
.iq-legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.iq-legend i { display: inline-block; flex: none; }
.iq-legend .lg-line { width: 22px; height: 3px; border-radius: 2px; background: var(--iq-grad); }
.iq-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ll-readiness-green); }
.iq-legend .lg-dash { width: 22px; height: 0; border-top: 2px dashed var(--ll-readiness-red); }

.iq-curve svg { display: block; width: 100%; height: auto; margin-top: 14px; }
/* two drawings of one curve: wide on desktop, a taller one on phones */
.iq-curve svg.fc-m { display: none; }
@media (max-width: 760px) { .iq-curve svg.fc-d { display: none; } .iq-curve svg.fc-m { display: block; } }
.iq-curve .fc-grid line { stroke: rgba(173,207,238,0.10); stroke-width: 1; }
.iq-curve .fc-axis { stroke: rgba(173,207,238,0.3); stroke-width: 1.5; }
.iq-curve .fc-thr { stroke: var(--ll-readiness-red); stroke-width: 2; stroke-dasharray: 7 6; opacity: 0.8; }
.iq-curve .fc-lbl { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.iq-curve .fc-lbl.thr { fill: #F08A7E; }
.iq-curve .fc-lbl.rev { fill: #9FE3BA; }
.iq-curve .fc-lbl.ax { fill: rgba(239,227,200,0.55); }
.iq-curve .fc-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(243,156,18,0.35)); }
.iq-curve .fc-cover { fill: var(--iq-panel); }
.iq-curve .fc-scan { stroke-width: 2; }
.iq-curve .fc-dot circle.core { fill: #fff; stroke: var(--ll-readiness-green); stroke-width: 3.5; }
.iq-curve .fc-dot circle.halo { fill: rgba(39,174,96,0.25); }
.iq-curve .fc-lift { stroke: rgba(159,227,186,0.7); stroke-width: 1.5; stroke-dasharray: 3 4; }
.iq-curve-cap { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: rgba(239,227,200,0.78); max-width: 72ch; }

/* animation: the cover slides right to "draw" the curve, dots pop as it passes them.
   8s cycle: draw 0-70%, hold, fade 90-97%, restart. */
@media (prefers-reduced-motion: no-preference) {
  .iq-curve .fc-d .fc-cover-g { animation: iq-draw 8s linear infinite; }
  .iq-curve .fc-d .fc-scan-g  { animation: iq-draw 8s linear infinite, iq-scanfade 8s linear infinite; }
  .iq-curve .fc-m .fc-cover-g { animation: iq-draw-m 8s linear infinite; }
  .iq-curve .fc-m .fc-scan-g  { animation: iq-draw-m 8s linear infinite, iq-scanfade 8s linear infinite; }
  .iq-curve .fc-plot    { animation: iq-plotfade 8s linear infinite; }
  .iq-curve .fc-dot.d1  { animation: iq-dot1 8s linear infinite; }
  .iq-curve .fc-dot.d2  { animation: iq-dot2 8s linear infinite; }
  .iq-curve .fc-dot circle.halo { transform-box: fill-box; transform-origin: center; animation: iq-halo 2s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .iq-curve .fc-cover-g, .iq-curve .fc-scan-g { display: none; }
}
/* travel = plot width in user units: 900 (wide drawing), 320 (phone drawing) */
@keyframes iq-draw     { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(900px); } }
@keyframes iq-draw-m   { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(320px); } }
@keyframes iq-scanfade { 0%, 66% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes iq-plotfade { 0%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes iq-dot1     { 0%, 16.6% { opacity: 0; } 18.5%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes iq-dot2     { 0%, 40% { opacity: 0; } 41.9%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes iq-halo     { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

/* the three steps */
.iq-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
@media (max-width: 900px) { .iq-steps { grid-template-columns: 1fr; gap: 16px; } }
.iq-step {
  background: var(--color-surface-card); border: 1px solid var(--color-border-subtle);
  border-radius: 14px; padding: 20px 20px 22px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.iq-step-top { display: flex; align-items: center; gap: 12px; }
.iq-step-n {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 15px; color: #fff; background: var(--ll-navy-900);
}
.iq-step:nth-child(2) .iq-step-n { background: var(--ll-readiness-yellow); }
.iq-step:nth-child(3) .iq-step-n { background: var(--ll-readiness-green); }
.iq-step h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ll-navy-900); }
.iq-step-lead { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--ll-navy-700); }
.iq-step-body { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--color-text-secondary); }

.iq-viz {
  margin-top: auto; background: var(--ll-navy-900); border-radius: 10px; padding: 12px 13px;
  display: flex; flex-direction: column; gap: 8px; color: var(--ll-tan-cream);
}
.iq-viz-l { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.7; }
.iq-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; min-width: 0; }
.iq-row .t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-row .d { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.iq-row .v { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.iq-g { color: #7FD6A2; } .iq-g.d, .d.iq-g { background: var(--ll-readiness-green); }
.iq-r { color: #F08A7E; } .iq-r.d, .d.iq-r { background: var(--ll-readiness-red); }
.iq-y { color: #F6BD5C; } .iq-y.d, .d.iq-y { background: var(--ll-readiness-yellow); }
.iq-n { color: #A9C3E0; } .iq-n.d, .d.iq-n { background: #7FA3CB; }
.iq-row .v.iq-n { border-color: rgba(127,163,203,0.45); background: rgba(127,163,203,0.12); }
.iq-row .v.iq-g { border-color: rgba(39,174,96,0.45); background: rgba(39,174,96,0.12); }
.iq-row .v.iq-r { border-color: rgba(231,76,60,0.5); background: rgba(231,76,60,0.12); }
.iq-row .v.iq-y { border-color: rgba(243,156,18,0.5); background: rgba(243,156,18,0.12); }
.iq-bar { flex: 1 1 22%; min-width: 36px; height: 7px; border-radius: 4px; background: rgba(173,207,238,0.14); overflow: hidden; }
.iq-bar i { display: block; height: 100%; border-radius: 4px; }
.iq-row .n { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 800; background: rgba(173,207,238,0.14); color: #fff; }
.iq-row.first .n { background: var(--ll-readiness-green); }

/* ============================================================
   4. PRACTICE: adaptive test builder toggle
   ============================================================ */
#practice .qb-head { flex-wrap: wrap; }
#practice .qb-focus {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 11px 12px 11px 14px; border-radius: 10px;
  background: rgba(39,174,96,0.09); border: 1px solid rgba(39,174,96,0.38);
}
#practice .qb-focus-txt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
#practice .qb-focus-t { font-size: 13.5px; font-weight: 600; color: #fff; }
#practice .qb-switch { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--ll-readiness-green); box-shadow: 0 0 14px -2px rgba(39,174,96,0.7), inset 0 1px 2px rgba(0,0,0,0.2); }
#practice .qb-switch i { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ============================================================
   5. AI STUDY COACH (coming soon)
   ============================================================ */
.iq-coach-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .iq-coach-grid { grid-template-columns: 1fr; gap: 32px; } }
.iq-coach-copy .eyebrow { margin-top: 18px; display: flex; }
body[data-page="home"] .iq-coach h2.display-sm { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; }
.iq-coach-copy .lede { margin-top: 18px; }
.iq-coach-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.iq-included {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9FE3BA; background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.4);
  border-radius: 999px; padding: 8px 14px;
}

.iq-chat-frame {
  position: relative; border-radius: 20px; padding: 18px;
  border: 1.5px dashed rgba(232,71,44,0.55);
  background: rgba(6,22,40,0.35);
}
.iq-frame-tab {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--ll-orange-600); border-radius: 999px; padding: 5px 13px;
  box-shadow: 0 6px 18px -6px rgba(232,71,44,0.8);
}
.iq-chat {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #0F2A48, #0A1F38);
  border: 1px solid rgba(173,207,238,0.2);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.iq-chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--iq-grad); }
.iq-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(173,207,238,0.14); }
.iq-avatar { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--ll-orange-600), var(--ll-readiness-yellow) 55%, var(--ll-readiness-green)); }
.iq-chat-who { flex: 1 1 auto; min-width: 0; }
.iq-chat-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.iq-chat-sub { font-size: 12px; color: rgba(239,227,200,0.65); margin-top: 1px; }
.iq-chat-body { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.iq-msg { max-width: 86%; font-size: 14.5px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; }
.iq-msg.me { align-self: flex-end; color: #fff; background: var(--ll-orange-600); border-bottom-right-radius: 4px; box-shadow: 0 10px 22px -12px rgba(232,71,44,0.8); }
.iq-msg.bot { align-self: flex-start; color: var(--ll-tan-cream); background: rgba(255,255,255,0.06); border: 1px solid rgba(173,207,238,0.16); border-bottom-left-radius: 4px; }
.iq-msg.bot b { color: #fff; font-weight: 700; }
.iq-msg.typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.iq-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(239,227,200,0.6); }
@media (prefers-reduced-motion: no-preference) {
  .iq-msg.typing span { animation: iq-bob 1.3s ease-in-out infinite; }
  .iq-msg.typing span:nth-child(2) { animation-delay: .15s; }
  .iq-msg.typing span:nth-child(3) { animation-delay: .3s; }
}
@keyframes iq-bob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.iq-chat-input {
  display: flex; align-items: center; gap: 10px; margin: 10px 16px 16px; padding: 10px 10px 10px 14px;
  border-radius: 12px; border: 1px solid rgba(173,207,238,0.2); background: rgba(255,255,255,0.03);
  font-size: 13px; color: rgba(239,227,200,0.5);
}
.iq-chat-input span:first-child { flex: 1 1 auto; min-width: 0; }
.iq-send { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(173,207,238,0.14); color: rgba(255,255,255,0.5); }

/* ============================================================
   MOBILE (<=760px): the homepage type scale forces h2 26 / p 17 /
   h3 17 with !important; these win on specificity inside the new
   blocks (same approach as assets/parts.css).
   ============================================================ */
@media (max-width: 760px) {
  body[data-page="home"] .iq-coach h2.display-sm { font-size: 31px !important; line-height: 1.1 !important; }
  body[data-page="home"] .iq-step h3.iq-step-h { font-size: 19px !important; }
  body[data-page="home"] .iq-step p.iq-step-lead { font-size: 16px !important; }
  body[data-page="home"] .iq-step p.iq-step-body { font-size: 15px !important; }
  body[data-page="home"] .iq-curve { padding: 18px 16px 16px; margin-top: 24px; }
  body[data-page="home"] .iq-curve-cap { font-size: 14px !important; }
  body[data-page="home"] .iq-tag { font-size: 9.5px; }
  body[data-page="home"] .iq-msg { font-size: 14.5px; }
  body[data-page="home"] .iq-chat-frame { padding: 12px; }
  body[data-page="home"] .iq-chat-body { padding: 16px 12px 6px; }
  body[data-page="home"] .iq-chat-input { margin: 8px 12px 12px; }
  body[data-page="home"] .iq-msg { max-width: 92%; }
}

/* Homepage: no hairlines between sections */
body[data-page="home"] .section + .section { border-top: 0 !important; }

/* ---------- The problem and the solution ----------
   Headline + one panel. Each row pairs a problem (left, muted) with its fix
   (right, on a green-tinted column), joined by an arrow. On phones the two
   halves stack and the arrow points down. */
#problem .section-intro { margin-bottom: 36px; }
#problem .section-intro::after { display: none !important; }
#problem .section-intro .body.mt-3 { margin: 14px auto 0; max-width: 66ch; }
#problem .ps-br { display: none; }
@media (min-width: 900px) { #problem .section-intro { max-width: 1160px; } }
@media (min-width: 1100px) { #problem .ps-br { display: inline; } }

#problem .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ps-panel { --ps-tint: rgba(39,174,96,0.09); max-width: 1000px; margin: 0 auto; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(173,207,238,0.16); background: linear-gradient(90deg, rgba(6,22,40,0.45) 50%, var(--ps-tint) 50%);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6); }
.ps-head, .ps-row { display: grid; grid-template-columns: 1fr 1fr; }
.ps-head { padding-top: 26px; }
.ps-head .ps-pill { justify-self: start; margin-left: 40px; }
.ps-rows { list-style: none; margin: 0; padding: 6px 0 10px; }
.ps-p, .ps-s { position: relative; padding: 20px 40px; }
.ps-s { padding-left: 48px; }

.ps-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: #fff;
  border: 1px solid rgba(232,71,44,0.5); background: linear-gradient(90deg, rgba(232,71,44,0.24) 0%, rgba(8,24,42,0.5) 100%);
  box-shadow: 0 10px 30px -14px rgba(232,71,44,0.6), inset 0 1px 0 rgba(255,255,255,0.06); }
.ps-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary-orange); box-shadow: 0 0 8px rgba(232,71,44,0.8); }
.ps-pill.good { border-color: rgba(39,174,96,0.5); background: linear-gradient(90deg, rgba(39,174,96,0.22) 0%, rgba(8,24,42,0.5) 100%);
  box-shadow: 0 10px 30px -14px rgba(39,174,96,0.6), inset 0 1px 0 rgba(255,255,255,0.06); }
.ps-pill.good::before { background: var(--ll-readiness-green); box-shadow: 0 0 8px rgba(39,174,96,0.8); }

#problem .ps-t { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; color: #fff; }
#problem .ps-d { margin: 6px 0 0 32px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.72); }
#problem .ps-p .ps-t { color: rgba(255,255,255,0.78); }
#problem .ps-p .ps-d { color: rgba(255,255,255,0.55); }
.ps-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.ps-p .ps-ic { color: #FF8A73; background: rgba(232,71,44,0.16); }
.ps-s .ps-ic { color: #fff; background: var(--ll-readiness-green); box-shadow: 0 0 12px rgba(39,174,96,0.45); }
.ps-arrow { position: absolute; left: -17px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #0E2A47; border: 1px solid rgba(173,207,238,0.22); }

.ps-close { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 28px 22px; text-align: left;
  border-top: 1px solid rgba(39,174,96,0.28); background: linear-gradient(90deg, rgba(39,174,96,0.07), rgba(39,174,96,0.16)), #0B2440; }
.ps-close p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.8); }
.ps-close strong { color: #fff; font-family: var(--font-display); font-weight: 800; }
.ps-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ll-readiness-green); box-shadow: 0 0 0 4px rgba(39,174,96,0.2), 0 0 14px rgba(39,174,96,0.8); }

@media (max-width: 760px) {
  #problem .section-intro { margin-bottom: 24px; }
  .ps-panel { background: rgba(6,22,40,0.45); border-radius: 18px; }
  .ps-head { display: flex; justify-content: center; gap: 10px; padding: 20px 12px 6px; }
  .ps-head .ps-pill { margin-left: 0; font-size: 10.5px !important; padding: 6px 11px; letter-spacing: 0.12em; }
  .ps-rows { padding: 8px 14px 14px; }
  .ps-row { grid-template-columns: 1fr; margin-top: 12px; }
  .ps-p { padding: 4px 6px 22px; }
  .ps-s { padding: 22px 16px 16px; border-radius: 14px; background: var(--ps-tint); border: 1px solid rgba(39,174,96,0.22); }
  .ps-arrow { left: 50%; top: 0; transform: translate(-50%, -50%) rotate(90deg); width: 30px; height: 30px; }
  #problem .ps-t { font-size: 17px !important; }
  #problem .ps-d { font-size: 15px !important; margin-left: 32px; }
  .ps-close { justify-content: flex-start; align-items: flex-start; padding: 16px 18px 18px; }
  .ps-dot { margin-top: 7px; }
  .ps-close p { font-size: 15px !important; }
}

/* Hero headline on one line on bigger screens: the text column opens up to the
   full container and the size is capped so the sentence fits inside it
   (18.4 / 21.6 = one-line width in ems for the English / Spanish headline). */
@media (min-width: 1100px) {
  body[data-page="home"] .hero-inner { max-width: none; }
  body[data-page="home"] .hero-title { font-size: min(76px, calc((min(100vw, 1200px) - 80px) / 18.4)) !important; }
  html[lang="es"] body[data-page="home"] .hero-title { font-size: min(76px, calc((min(100vw, 1200px) - 80px) / 21.6)) !important; }
  body[data-page="home"] .hero-title .accent { font-size: 40px; }
  body[data-page="home"] .hero-sub .hero-sub-meta { white-space: nowrap; }
}

/* ---------- Mobile polish (homepage + How It Works, both languages) ---------- */
/* hero: each "one payment / no subscriptions" item stays whole; on phones they stack as a tidy list */
.hero-sub-meta .hsm-i { white-space: nowrap; }
@media (max-width: 760px) {
  body[data-page="home"] .hero-sub-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  body[data-page="home"] .hero-sub-meta .hsm-dot { display: none; }
  body[data-page="home"] .hero-sub-meta .hsm-i { display: inline-flex; align-items: center; gap: 7px; }
  body[data-page="home"] .hero-sub-meta .hsm-i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ll-readiness-green); }
  /* deck chips and small labels stay readable */
  .part .decks-l { font-size: 11px !important; }
  .part .deck { font-size: 13px !important; }
  .part .deck em { font-size: 10.5px !important; }
}
/* long button labels wrap instead of running off narrow phones */
@media (max-width: 560px) {
  .part-cta .btn, .tour-cta .btn { width: 100%; white-space: normal; text-align: center; justify-content: center; line-height: 1.25; }
}
/* the main call to action on very narrow phones: full width, wraps instead of running off the screen */
@media (max-width: 400px) {
  .hero-cta .btn, .ph-cta .btn, .cta-row .btn-lg { width: 100%; white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 2px; }
}
/* How It Works: no hairlines between sections either */
body[data-page="how"] .section + .section { border-top: 0 !important; }
