/* ============ FLYDEE TESTS — LANDING ============ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFF7EE;
  --bg-warm: #FFE9D6;
  --ink: #1B1B3A;
  --ink-2: #4A4A6B;
  --ink-3: #8A8AA3;
  --line: #1B1B3A;
  --primary: #FF5A1F;
  --primary-dark: #E84A12;
  --green: #4FB930;
  --green-dark: #3A9920;
  --yellow: #FFC700;
  --blue: #2E7BE6;
  --pink: #FF4D8F;
  --purple: #7B5BFF;
  --card: #FFFFFF;
  --shadow-hard: 0 6px 0 var(--ink);
  --shadow-hard-sm: 0 4px 0 var(--ink);
  --shadow-soft: 0 12px 32px rgba(27, 27, 58, 0.08);
  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Unbounded', 'Onest', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

img, svg { display: block; max-width: 100%; }

/* ====== LAYOUT ====== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  object-fit: cover;
  display: block;
}
.f-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1.5px solid var(--ink);
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--primary); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 16px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--primary); color: white; }
.btn-green   { background: var(--green); color: white; }
.btn-yellow  { background: var(--yellow); color: var(--ink); }
.btn-white   { background: white; color: var(--ink); }
.btn-lg { padding: 20px 36px; font-size: 18px; border-radius: 18px; box-shadow: var(--shadow-hard); }
.btn-lg:hover { box-shadow: 0 7px 0 var(--ink); }
.btn-lg:active { box-shadow: 0 2px 0 var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 12px; }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 70px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 85% 20%, var(--bg-warm), transparent 60%),
    radial-gradient(700px 400px at 5% 80%, #FFE0CC, transparent 65%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 18px 0 22px;
  line-height: 0.98;
}
.hero h1 .h1-line { display: block; }
.hero h1 .accent {
  background: var(--yellow);
  padding: 0 12px;
  display: inline-block;
  border-radius: 12px;
  transform: rotate(-1deg);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.hero-sub {
  font-size: 20px;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.4;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 10px 18px 10px 14px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 8px;
}
.live-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}
.live-count {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.trust-strip {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero illustration */
.hero-art {
  position: relative;
  height: 480px;
}
.hero-art .card-stack {
  position: absolute;
  inset: 0;
}
.float-card {
  position: absolute;
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 18px;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
.fc-1 { top: 5%; left: 5%; width: 240px; --r: -4deg; animation-delay: 0s; }
.fc-2 { top: 30%; right: 0; width: 200px; --r: 5deg; animation-delay: -2s; }
.fc-3 { bottom: 5%; left: 18%; width: 260px; --r: -2deg; animation-delay: -4s; }

.fc-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.fc-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.fc-bar {
  height: 8px;
  border-radius: 100px;
  background: #F0F0F5;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}
.fc-bar > div { height: 100%; border-radius: 100px; }
.fc-score {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 36px;
}
.fc-emoji { font-size: 32px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 340px; }
  .fc-1 { width: 200px; }
  .fc-2 { width: 170px; }
  .fc-3 { width: 220px; }
}

/* ====== SECTION HEADERS ====== */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: white;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  max-width: 760px;
  margin: 0 auto 14px;
}
.section-head p {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ====== TEST GRID ====== */
.tests-section { background: white; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tests-grid .test-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 900px) {
  .tests-grid { grid-template-columns: repeat(2, 1fr); }
  .tests-grid .test-card.featured { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 480px) {
  .tests-grid { grid-template-columns: 1fr; }
  .tests-grid .test-card.featured { grid-column: auto; }
}

.test-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-hard-sm);
  text-align: left;
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  overflow: hidden;
}
.test-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--ink);
}
.test-card .tc-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 3px 0 var(--ink);
}
.test-card h3 {
  font-size: 22px;
  margin-top: 6px;
}
.test-card .tc-sub {
  color: var(--ink-2);
  font-size: 14px;
  flex: 1;
}
.test-card .tc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 4px;
}
.test-card.featured {
  background: var(--primary);
  color: white;
  min-height: 380px;
  padding: 32px;
}
.test-card.featured .tc-icon { background: white; }
.test-card.featured h3 { font-size: 36px; }
.test-card.featured .tc-sub { color: rgba(255,255,255,0.9); font-size: 16px; }
.test-card.featured .tc-foot { color: rgba(255,255,255,0.7); }
.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 var(--ink);
}
.start-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 12px 20px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 12px;
  box-shadow: 0 3px 0 var(--ink);
}
.soon-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F0F0F5;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tc-icon-alcohol  { background: #FFD3D3; }
.tc-icon-smoke    { background: #D5E5FF; }
.tc-icon-vape     { background: #E5D5FF; }
.tc-icon-gambling { background: #FFE7B0; }
.tc-icon-phone    { background: #C8F4D0; }
.tc-icon-social   { background: #FFD8EB; }
.tc-icon-food     { background: #FFE0C0; }

/* ====== TEST MODAL ====== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 58, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade 0.2s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  from { transform: scale(0.9) translateY(20px); opacity: 0 }
  to { transform: scale(1) translateY(0); opacity: 1 }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: white;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 0 var(--ink);
  z-index: 2;
}
.modal-body { padding: 36px 32px; }

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.progress-bar {
  flex: 1;
  height: 12px;
  background: #F0F0F5;
  border: 2px solid var(--ink);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  width: 0;
}
.progress-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.q-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-option {
  width: 100%;
  text-align: left;
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s, background 0.15s;
}
.q-option:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); background: #FFFCF5; }
.q-option:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* Result */
.result-head {
  text-align: center;
  margin-bottom: 28px;
}
.result-score {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  position: relative;
}
.result-emoji {
  font-size: 56px;
  text-align: center;
  margin-bottom: 12px;
}
.result-level {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 8px;
}
.result-desc {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 460px;
  margin: 0 auto;
}
.result-recs {
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
}
.result-recs h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  margin-bottom: 12px;
}
.result-recs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-recs li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}
.result-recs li::before {
  content: '✓';
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
  font-size: 12px;
}
.result-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 20px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 0 var(--ink);
}
.result-cta strong {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
}
.result-cta p { font-size: 14px; margin-bottom: 8px; }
.result-cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ====== CALCULATOR ====== */
.calc-section {
  padding: 100px 0;
}
.calc-card {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink);
  padding: 48px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  position: relative;
}
.calc-modes {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  margin-bottom: 28px;
}
.calc-mode {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.calc-mode:hover { color: white; }
.calc-mode.active {
  background: var(--yellow);
  color: var(--ink);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-card { padding: 32px 24px; }
}
.calc-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
  color: white;
}
.calc-sub {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  font-size: 15px;
}
.calc-field { margin-bottom: 22px; }
.calc-hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--yellow);
  padding: 10px 12px;
  border-radius: 6px;
}
.calc-hint b { color: var(--yellow); font-weight: 700; }
.calc-hint .dose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  color: rgba(255,255,255,0.85);
}
.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
}
.calc-field .val {
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
}
.calc-field input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  outline: none;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.calc-stat {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.calc-stat.feature {
  grid-column: span 2;
  background: var(--primary);
  border-color: var(--ink);
  box-shadow: 0 4px 0 #993000;
}
.calc-stat .cs-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.calc-stat.feature .cs-label { color: rgba(255,255,255,0.85); }
.calc-stat .cs-value {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  white-space: nowrap;
}
.calc-stat .cs-value.cs-value--text {
  font-size: clamp(16px, 2.1vw, 22px);
  letter-spacing: -0.01em;
  white-space: normal;
  hyphens: manual;
}
.calc-stat.feature .cs-value {
  font-size: clamp(26px, 4.6vw, 50px);
  white-space: nowrap;
}
@media (max-width: 540px) {
  .calc-results { grid-template-columns: 1fr; }
  .calc-stat.feature { grid-column: span 1; }
  .calc-stat[style*="span 2"] { grid-column: span 1 !important; }
  .calc-stat { padding: 18px; }
  .calc-stat .cs-value { font-size: 26px; }
  .calc-stat .cs-value.cs-value--text { font-size: 20px; }
  .calc-stat.feature .cs-value { font-size: 32px; }
}
.calc-stat .cs-unit {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.calc-cta {
  margin-top: 24px;
  text-align: center;
}
.calc-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  font-size: 15px;
}

/* ====== HOW IT WORKS / SEO content ====== */
.how-section { background: white; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-hard-sm);
}
.how-num {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}
.how-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.how-card p {
  color: var(--ink-2);
  font-size: 15px;
}

/* ====== SEO CONTENT BLOCK ====== */
.seo-section {
  padding: 90px 0;
}
.seo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) {
  .seo-grid { grid-template-columns: 1fr; gap: 32px; }
}
.seo-text h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 20px; }
.seo-text h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 19px;
  margin: 28px 0 10px;
}
.seo-text p {
  color: var(--ink-2);
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.65;
}
.seo-text ul {
  padding-left: 0;
  list-style: none;
  margin: 12px 0;
}
.seo-text ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.seo-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--ink);
}

.seo-aside {
  position: sticky;
  top: 100px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.seo-aside h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 14px;
}
.seo-aside p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
  font-size: 15px;
}
.signs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.signs-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  align-items: flex-start;
  color: rgba(255,255,255,0.9);
}
.signs-list li a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}
.signs-list li a:hover { opacity: 0.75; }
.signs-list li::before {
  content: '⚠';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  line-height: 24px;
  font-weight: 700;
}

/* ====== FAQ ====== */
.faq-section { background: var(--bg-warm); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: white;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
}
.faq-q {
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-q .plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 800px; }
.faq-a-inner {
  padding: 0 26px 26px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

/* ====== DOWNLOAD CTA ====== */
.dl-section {
  padding: 100px 0;
  text-align: center;
  background: var(--primary);
  color: white;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.dl-section::before, .dl-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}
.dl-section::before { top: -80px; left: -50px; }
.dl-section::after { bottom: -100px; right: -60px; width: 280px; height: 280px; }
.dl-section .wrap { position: relative; z-index: 1; }
.dl-section h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 18px;
  color: white;
}
.dl-section p {
  font-size: 19px;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}
.store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.store-row a {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.store-row a:hover { transform: translateY(-4px); }
.store-badge {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
@media (max-width: 540px) {
  .store-badge { height: 48px; }
}

/* ====== FOOTER ====== */
footer {
  padding: 50px 0 30px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; margin-right: 18px; }
footer a:hover { color: white; }
footer .f-logo { color: white; font-family: 'Unbounded', sans-serif; font-weight: 700; }

/* ====== UTILS ====== */
.hidden { display: none !important; }
.fade-in { animation: slidein 0.35s ease; }
@keyframes slidein {
  from { opacity: 0; transform: translateX(20px) }
  to { opacity: 1; transform: translateX(0) }
}

/* ====== INLINE TEST FORM (server-rendered) ====== */
.test-form {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 36px 32px;
  margin-top: 20px;
}
.test-form-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--ink);
  flex-wrap: wrap;
}
.test-form-head .tf-badge {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 13px;
}
.test-form-head .tf-meta {
  color: var(--ink-2);
  font-size: 14px;
}
.tf-question {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
  background: #FFFDF7;
}
.tf-question legend {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 0 6px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-left: -4px;
  margin-bottom: 12px;
  display: inline-block;
}
.tf-question .q-body {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--ink);
}
.tf-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tf-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: transform 0.1s, background 0.1s;
  font-size: 16px;
}
.tf-option:hover { background: var(--bg-warm); transform: translateY(-1px); }
.tf-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.tf-option:has(input:checked) {
  background: var(--bg-warm);
  box-shadow: var(--shadow-hard-sm);
}
.tf-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 2px dashed var(--ink);
  flex-wrap: wrap;
}
.tf-submit-note { color: var(--ink-2); font-size: 14px; }

/* ====== INLINE RESULT ====== */
.tf-result {
  display: none;
  margin-top: 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 32px;
  box-shadow: var(--shadow-hard);
  scroll-margin-top: 100px;
}
.tf-result.show { display: block; }
.tf-result h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.tf-result .res-emoji { font-size: 56px; margin-bottom: 6px; }
.tf-result .res-score {
  display: inline-block;
  background: var(--bg-warm);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-family: 'Unbounded', sans-serif;
  margin-bottom: 14px;
}
.tf-result .res-desc {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 18px;
}
.tf-result .res-recs h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.tf-result .res-recs ul { padding-left: 22px; }
.tf-result .res-recs li {
  margin-bottom: 8px;
  color: var(--ink);
}
.tf-result .res-cta {
  margin-top: 22px;
  background: var(--bg-warm);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.tf-result .res-cta strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
}
.tf-result .res-cta-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ====== BREADCRUMBS ====== */
.crumbs {
  padding: 16px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 6px; opacity: 0.5; }

/* ====== SPOKE-CARDS ON HUB ====== */
.spokes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.spoke-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
  height: 100%;
}
.spoke-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0 10px 0 var(--ink);
}
.spoke-card .sc-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-hard-sm);
}
.spoke-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.spoke-card .sc-test {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-warm);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.spoke-card p { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.spoke-card .sc-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 12px;
}

/* ============ MOBILE BURGER NAV (injected by nav.js) ============ */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 2px 0 var(--ink);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile[hidden] { display: none !important; }
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 22px;
  border-top: 2px solid var(--ink);
  background: var(--bg);
}
.nav-mobile a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 6px 0;
}

/* ============ MOBILE (<=768px) ============ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 18px; }

  /* Nav */
  .nav-inner { padding: 12px 16px; gap: 10px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; }
  .nav-inner > .btn { display: none; } /* desktop CTA */
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

  /* Crumbs */
  .crumbs { padding: 12px 0 0; font-size: 13px; }

  /* Hero */
  .hero { padding: 36px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); margin: 12px 0 14px; }
  .hero-sub { font-size: 16px; margin-bottom: 22px; }
  .hero-ctas { gap: 10px; margin-top: 22px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .live-pill { font-size: 13px; padding: 8px 14px 8px 12px; }
  .trust-strip { gap: 12px; font-size: 13px; margin-top: 18px; }

  /* Hide decorative floating cards on mobile — they crowd the hero */
  .hero-art { display: none; }

  /* Buttons */
  .btn { padding: 14px 20px; font-size: 14px; }
  .btn-lg { padding: 16px 24px; font-size: 15px; }

  /* Section heads */
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 34px); }
  .section-head p { font-size: 15px; }

  /* Spokes hub */
  .spokes-grid { gap: 14px; grid-template-columns: 1fr; }
  .spoke-card { padding: 22px 20px; border-radius: 22px; }
  .spoke-card h3 { font-size: 19px; }
  .spoke-card p { font-size: 14px; }
  .spoke-card .sc-icon { width: 56px; height: 56px; font-size: 28px; }

  /* Test cards (grid on hub variant) */
  .test-card { padding: 18px; }
  .test-card h3 { font-size: 19px; }
  .test-card.featured { padding: 24px; min-height: 240px; }
  .test-card.featured h3 { font-size: 26px; }

  /* Calculator */
  .calc-section { padding: 60px 0; }
  .calc-card { padding: 28px 20px; border-radius: 22px; }
  .calc-title { font-size: 24px; }
  .calc-sub { font-size: 14px; margin-bottom: 22px; }
  .calc-modes { padding: 4px; gap: 4px; margin-bottom: 22px; flex-wrap: wrap; max-width: 100%; }
  .calc-mode { padding: 8px 14px; font-size: 12px; }
  .calc-field { margin-bottom: 18px; }
  .calc-hint { font-size: 12px; }

  /* How-it-works */
  .how-card { padding: 22px; }
  .how-num { font-size: 38px; margin-bottom: 10px; }
  .how-card h3 { font-size: 19px; }
  .how-card p { font-size: 14px; }

  /* SEO content */
  .seo-section { padding: 60px 0; }
  .seo-aside { position: static; padding: 26px 22px; border-radius: 22px; }
  .seo-text h2 { font-size: 26px; }
  .seo-text h3 { font-size: 17px; margin: 22px 0 8px; }
  .seo-text p { font-size: 15px; }

  /* Test form (inline tests on spoke pages) */
  .test-form { padding: 22px 18px; border-radius: 22px; margin-top: 16px; }
  .tf-question { padding: 16px 16px; border-radius: 16px; margin-bottom: 14px; }
  .tf-question legend { font-size: 14px; }
  .tf-question .q-body { font-size: 16px; margin-bottom: 12px; }
  .tf-option { padding: 12px 12px; font-size: 15px; }
  .tf-submit-row { gap: 12px; padding-top: 14px; }
  .tf-submit-note { font-size: 13px; }
  .tf-result { padding: 22px 18px; border-radius: 22px; }
  .tf-result h3 { font-size: 22px; }
  .tf-result .res-emoji { font-size: 44px; }
  .tf-result .res-desc { font-size: 15px; }

  /* Modal (legacy hub modal) */
  .modal-body { padding: 24px 20px; }
  .q-text { font-size: 20px; margin-bottom: 18px; }
  .q-option { padding: 14px 16px; font-size: 15px; }
  .progress-row { gap: 12px; margin-bottom: 20px; }
  .result-score { width: 140px; height: 140px; }
  .result-emoji { font-size: 44px; }
  .result-level { font-size: 22px; }

  /* FAQ */
  .faq-q { padding: 18px; font-size: 15px; gap: 12px; }
  .faq-q .plus { width: 28px; height: 28px; font-size: 16px; }
  .faq-a-inner { padding: 0 18px 20px; font-size: 14px; }

  /* Download */
  .dl-section { padding: 60px 0; }
  .dl-section::before { width: 140px; height: 140px; top: -50px; left: -40px; }
  .dl-section::after { width: 180px; height: 180px; bottom: -60px; right: -40px; }
  .dl-section h2 { font-size: clamp(28px, 8vw, 38px); }
  .dl-section p { font-size: 15px; margin-bottom: 26px; }
  .store-row { gap: 10px; }
  .store-badge { height: 48px; }

  /* Footer */
  footer { padding: 32px 0 20px; font-size: 13px; }
  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
  }
  footer a { margin-right: 12px; }
}

/* ============ SMALL MOBILE (<=420px) ============ */
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .nav-inner { padding: 10px 12px; }
  .hero { padding: 26px 0 40px; }
  .hero h1 { font-size: 28px; line-height: 1.05; }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .section-head h2 { font-size: 24px; }
  .seo-aside h3 { font-size: 18px; }
  .calc-title { font-size: 22px; }
  .dl-section h2 { font-size: 26px; }
  .calc-stat { padding: 14px; }
  .calc-stat .cs-value { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .float-card, .live-dot::after { animation: none !important; }
}
