/* Country landing pages (public/country/<cc>.html — served as /<cc>).
   Self-contained on purpose: these pages load style.css + account-pill.css
   + this file, NOT index.css, so every homepage-language component used
   here (status strip, audit console, bracket CTA) is redefined under a
   .country-* / body.country-page scope with the same fallback tokens
   chrome.css uses — the --qc-* custom properties only exist where
   index.css is loaded, so no rule below may depend on them resolving. */

/* style.css's global reset locks BOTH html and body with
   `overflow:hidden; height:100%` (the prelaunch splash lock). This sheet
   released only body.country-page below, leaving the OUTER html element
   clipping the overflow — so the market pages could not be scrolled at all.
   Release html too (the same escape hatch signup.css / about.css / terms.css
   use). overflow-x stays clipped by chrome.css so the full-bleed header/footer
   never open a horizontal scrollbar. */
html:has(> body.country-page) {
  height: auto;
  overflow-y: auto;
}

body.country-page {
  padding: 0; /* body.tool-page pads 2rem; the strip + chrome must run full-bleed */
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #050f16;
  overflow-y: auto;
  height: auto;
}

/* ── market status strip (homepage .status-strip, market flavour) ── */

.country-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin: 0;
  padding: 0.45rem 1rem;
  font-family: var(--font, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qc-text-dim, #adcdda);
  background: rgba(4, 16, 22, 0.85);
  border-bottom: 1px solid rgba(47, 233, 255, 0.12);
  list-style: none;
}

.country-strip li { white-space: nowrap; }
.country-strip li::before { content: '[ '; color: rgba(47, 233, 255, 0.55); }
.country-strip li::after { content: ' ]'; color: rgba(47, 233, 255, 0.55); }

/* Phones: keep the market + currency truths, drop the benchmark cell —
   same collision-avoidance the homepage strip applies. */
@media (max-width: 640px) {
  .country-strip li:nth-child(3) { display: none; }
}

/* ── content column ── */

main.country-landing {
  flex: 1 0 auto;
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 1.6rem 0 4rem;
}

/* style.css's global `p` rule (max-width: 40rem; margin: auto;
   text-align: center) centers both the text AND the block — landing copy
   reads left-aligned on the column grid; components below re-constrain
   their own measure (62–76ch). */
main.country-landing p {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.country-landing .breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font, monospace);
  font-size: 0.85rem;
  margin: 0 0 2.2rem;
}

.country-landing .breadcrumb-link {
  color: var(--accent, #0ff);
  text-decoration: none;
}

.country-landing .breadcrumb-link:hover,
.country-landing .breadcrumb-link:focus {
  color: var(--accent-hover, #00e5cc);
  text-decoration: underline;
}

.country-landing .breadcrumb-separator { color: rgba(255, 255, 255, 0.4); }
.country-landing .breadcrumb-current { color: var(--qc-text-strong, #f1fbff); font-weight: 600; }

/* ── hero ── */

.country-hero {
  position: relative;
  text-align: left;
  padding-bottom: 2.6rem;
}

/* Extra glow concentrated behind the hero, layered over the shared ledger
   backdrop canvas (added to the generator template) for a lit focal point. */
.country-hero::before {
  content: '';
  position: absolute;
  inset: -30% -20% 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(47, 233, 255, 0.07), transparent 70%);
}

.country-hero > * { position: relative; }

.country-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--qc-text-strong, #f1fbff);
}

.country-landing .country-hero__lede {
  max-width: 62ch;
  margin: 0 0 1.8rem;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--qc-text-mid, #d4e9f4);
}

.country-landing .country-hero__lede strong { color: var(--qc-text-strong, #f1fbff); }

/* ── mini audit console (static homepage .console, no JS) ── */

.country-console {
  position: relative;
  max-width: 720px;
  margin: 0 0 1.9rem;
  border: 1px solid rgba(47, 233, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(47, 233, 255, 0.06), transparent 55%),
    rgba(3, 12, 18, 0.88);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(47, 233, 255, 0.14),
    inset 0 0 70px rgba(47, 233, 255, 0.04);
}

.country-console::after { /* scanlines */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}

.country-console__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: rgba(7, 32, 42, 0.95);
  border-bottom: 1px solid rgba(47, 233, 255, 0.25);
}

.country-console__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(47, 233, 255, 0.4); }
.country-console__dot:first-child { background: rgba(255, 107, 107, 0.55); }
.country-console__dot:nth-child(2) { background: rgba(255, 211, 105, 0.55); }

.country-console__title {
  margin-left: 0.55rem;
  font-family: var(--font, monospace);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--qc-text-dim, #adcdda);
  text-transform: uppercase;
}

.country-console__body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.4rem 1.15rem;
  font-family: var(--font, monospace);
  font-size: 0.9rem;
}

.country-console__body p { margin: 0 0 0.6rem; }
.country-console__body p:last-child { margin-bottom: 0; }

.country-console__prompt { color: var(--qc-text-faint, #9bc2ce); font-size: 0.84rem; }
.country-console__prompt b { color: #46d39a; }
.country-console__file { color: var(--qc-text-strong, #f1fbff); }

.country-console__line { color: var(--qc-text-mid, #d4e9f4); }

.country-console__ok {
  margin-left: 0.6rem;
  color: #46d39a;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ── bracket CTAs (homepage .primary-cta.cta-bracket) ── */

.country-landing .primary-cta {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(47, 233, 255, 0.55);
  border-radius: 999px;
  font-family: var(--font, monospace);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #041016;
  background: var(--qc-accent, #2fe9ff);
  box-shadow: 0 0 24px rgba(47, 233, 255, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.country-landing .primary-cta:hover,
.country-landing .primary-cta:focus {
  background: var(--accent-hover, #00e5cc);
  box-shadow: 0 0 34px rgba(47, 233, 255, 0.5);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .country-landing .primary-cta,
  .country-card { transition: none; }
  .country-landing .primary-cta:hover { transform: none; }
  .country-card:hover { transform: none; }
}

/* ── section scaffolding ── */

.country-landing section { margin-top: 3rem; }

.country-landing h2 {
  margin: 0 0 1.3rem;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  color: var(--qc-text-strong, #f1fbff);
}

/* Mono eyebrow tick in front of every section heading — the HUD voice. */
.country-landing h2::before {
  content: '▸ ';
  color: var(--qc-accent, #2fe9ff);
  font-family: var(--font, monospace);
  font-size: 0.8em;
}

/* ── vertical cards ── */

.country-verticals__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .country-verticals__grid { grid-template-columns: 1fr; }
}

.country-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.15rem 1.25rem 1.05rem;
  border: 1px solid rgba(47, 233, 255, 0.22);
  border-left: 3px solid rgba(47, 233, 255, 0.55);
  border-radius: 10px;
  background: rgba(7, 32, 42, 0.55);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.country-card:hover,
.country-card:focus {
  border-color: rgba(47, 233, 255, 0.6);
  background: rgba(12, 47, 61, 0.65);
  transform: translateY(-2px);
}

.country-card__name {
  font-family: var(--font, monospace);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--qc-accent, #2fe9ff);
}

.country-card__blurb {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--qc-text-mid, #d4e9f4);
}

.country-card__go {
  margin-top: auto;
  font-family: var(--font, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--qc-text-dim, #adcdda);
}

.country-card:hover .country-card__go,
.country-card:focus .country-card__go { color: var(--qc-accent, #2fe9ff); }

/* ── medical honesty note ── */

.country-landing .country-medical-note {
  max-width: 72ch;
  margin: 1.4rem 0 0;
  padding: 0.9rem 1.15rem;
  border-left: 3px solid rgba(255, 211, 105, 0.75);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 211, 105, 0.07);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--qc-text-mid, #d4e9f4);
}

.country-landing .country-medical-note strong { color: var(--qc-text-strong, #f1fbff); }

/* ── "what to expect" panel ── */

.country-landing .country-honesty__panel {
  max-width: 76ch;
  margin: 0;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(47, 233, 255, 0.18);
  border-radius: 10px;
  background: rgba(5, 19, 26, 0.6);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--qc-text-mid, #d4e9f4);
}

/* ── closing CTA row ── */

.country-cta__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Phones: stack the closing CTAs full-width so long labels don't orphan
   their bracket onto a second line. */
@media (max-width: 480px) {
  .country-cta__row { flex-direction: column; }
  .country-cta__row .primary-cta {
    display: block;
    text-align: center;
    font-size: 0.85rem; /* longest label ("check an auto repair estimate") must hold one line at 390px */
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}
