/* Version 4.4: subscription-first pages. Uses the colour tokens defined in styles.css. */

.v44-hero h1 em {
  font-style: normal;
  color: var(--green2);
}
body.dark .v44-hero h1 em {
  color: var(--lime);
}
.v44-how a.text-link {
  color: inherit;
  text-decoration: underline;
}

/* Problem cards */
.v44-problem-grid,
.v44-guide-grid,
.v44-country-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.v44-problem,
.v44-guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.v44-problem:hover,
.v44-guide-card:hover {
  transform: translateY(-2px);
}
.v44-problem h3,
.v44-guide-card h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}
.v44-problem p,
.v44-guide-card p {
  margin: 0;
  color: var(--muted);
}
.v44-problem .text-link {
  margin-top: auto;
  padding-top: 8px;
}
.v44-problem-num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.v44-problem-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green2);
}
body.dark .v44-problem-label {
  color: var(--lime);
}
.v44-guide-card .tag {
  align-self: flex-start;
}
.v44-country-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v44-country-card h3 {
  margin: 0 0 4px;
}
.v44-country-card.is-mine,
.v44-guide-card.is-mine {
  outline: 2px solid var(--green2);
}
.v44-principles {
  margin: 28px 0;
}

/* Two-column tool layout */
.v44-two-col {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) {
  .v44-two-col {
    grid-template-columns: 1fr;
  }
}
.v44-tool .ev4-form {
  display: grid;
  gap: 8px;
}
.v44-inline-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.v44-result {
  margin-top: 16px;
}
.v44-result h2 {
  margin-top: 0;
}
.v44-result .v44-big {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 750;
  line-height: 1.15;
  margin: 6px 0;
}
.v44-tips ul,
.v44-list {
  padding-left: 1.2em;
}
.v44-tips li,
.v44-list li {
  margin: 6px 0;
}

/* Guides */
.v44-guide h2 {
  margin-top: 0;
}
.v44-steps {
  padding-left: 1.3em;
}
.v44-steps li {
  margin: 8px 0;
}
.v44-proof {
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.v44-proof h3 {
  margin: 0 0 6px;
}
.v44-proof ul {
  margin: 0;
  padding-left: 1.2em;
}
.v44-message {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  margin: 6px 0 10px;
}
.v44-reviewed {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
}
.v44-sources {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.v44-sources h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.v44-sources ul {
  margin: 0;
  padding-left: 1.1em;
}
.v44-country-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.v44-country-tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.88rem;
  background: var(--surface);
}
.v44-country-tabs a.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.v44-bank-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}
.v44-bank-head h2 {
  margin: 0;
}
.v44-bank {
  margin-bottom: 16px;
}

/* Still charged */
.v44-situations {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}
@media (max-width: 760px) {
  .v44-situations {
    grid-template-columns: 1fr;
  }
}
.v44-situation h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.v44-situation p:last-child {
  margin-bottom: 0;
}
.v44-situation.is-urgent {
  border-color: #dccba4;
  background: var(--warm);
  color: var(--warmtext);
}
.v44-situation.is-urgent .text-link {
  color: inherit;
}
.v44-routes h3 {
  margin: 18px 0 4px;
  font-size: 1rem;
}
.v44-routes h2 + h3 {
  margin-top: 8px;
}
.v44-stale {
  font-size: 0.9rem;
}
.v44-link-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

/* Optional settings tucked into <details> */
.ev4-form details,
.ev4-advanced {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 6px 0;
}
.ev4-form details > summary,
.ev4-advanced > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.92rem;
}
.ev4-form details[open] > summary,
.ev4-advanced[open] > summary {
  margin-bottom: 10px;
}
.ev4-form details label:not(.ev4-consent),
.ev4-advanced label:not(.ev4-consent) {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
}
.ev4-advanced select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.ev4-form details .button {
  margin-top: 10px;
}

/* Who's billing me */
.v44-channels .v44-channel {
  margin-bottom: 12px;
}
.v44-channel h3 {
  margin-top: 0;
}
.v44-channel.is-match {
  outline: 2px solid var(--green2);
}
code {
  background: var(--soft);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* Subscription Check additions */
.v44-total {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  margin: 8px 0 16px;
}
.v44-total b {
  font-size: 1.5rem;
}
.v44-candidate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 6px;
}
.v44-hints {
  margin-top: 18px;
}
.v44-hints ul {
  padding-left: 1.2em;
}

/* Rotate table */
.v44-table {
  width: 100%;
  border-collapse: collapse;
}
.v44-table th {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px;
}
.v44-table td {
  padding: 4px 6px;
}
.v44-table input {
  width: 100%;
  min-width: 90px;
}
@media (max-width: 560px) {
  .v44-inline-fields {
    grid-template-columns: 1fr;
  }
}
.v44-inline-fields > div {
  display: grid;
  gap: 7px;
  align-content: start;
}
.v44-hints li .v44-candidate-links {
  display: inline-flex;
  margin: 0 0 0 10px;
}
.v44-guide-card.v44-not-here {
  opacity: 0.55;
  order: 1;
}

/* =====================================================================
   SubAuditKit design layer (4.8). Self-hosted Inter, midnight + indigo,
   and a highlighter-yellow "audit mark" for the numbers that matter.
   Loaded last, so it refines the older styles without changing markup.
   ===================================================================== */
@font-face { font-family: 'Inter'; src: url('/assets/vendor/fonts/inter-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/vendor/fonts/inter-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/vendor/fonts/inter-600.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/vendor/fonts/inter-700.woff') format('woff'); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('/assets/vendor/fonts/inter-display-800.woff') format('woff'); font-weight: 700 900; font-style: normal; font-display: swap; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-feature-settings: 'cv11', 'ss01';
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
h1, h2, .v44-big {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h3 { font-weight: 650; letter-spacing: -0.015em; }
p { line-height: 1.7; }
small, .small { font-size: 12.5px; }
::selection { background: var(--lime); color: #0e1424; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 3px;
}

/* Shell, sidebar, top bar ----------------------------------------------- */
.sidebar { padding: 26px 18px 22px; }
.brand { gap: 12px; letter-spacing: 0; }
.brand img { border-radius: 11px; box-shadow: 0 6px 16px #4338ca33; }
.brand-name { font-family: 'Inter Display', 'Inter', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand-name b { color: var(--green); font-weight: 800; }
.brand small { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 650; letter-spacing: 0.16em; margin-top: 3px; }
.nav-heading { font-size: 10.5px; letter-spacing: 0.14em; margin: 30px 12px 8px; }
.nav-link { font-size: 14px; font-weight: 500; border-radius: 11px; margin: 2px 0; padding: 10px 12px; }
.nav-link.active {
  background: var(--soft);
  color: var(--green);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--green);
}
body.dark .nav-link.active { color: #c7d2fe; background: #1e2645; box-shadow: inset 3px 0 0 #818cf8; }
.side-note {
  background: var(--midnight);
  color: #e9edf7;
  border: 1px solid #ffffff12;
  position: relative;
  overflow: hidden;
}
.side-note::after {
  content: '';
  position: absolute;
  inset: auto -30px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #6366f155, transparent 70%);
}
.side-note .smallcap { color: var(--lime); }
.side-note h3 { color: #fff; font-size: 19px; }
.side-note p { color: #aeb6cc; font-size: 12px; }
.side-note a { color: #fff; }
.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.breadcrumb { font-size: 13px; }
.breadcrumb span { color: var(--line); }
.region-label select { font-size: 12.5px; border-radius: 10px; }
.preview-banner { font-size: 10.5px; border-radius: 10px; border-style: dashed; }
.preview-banner span { font-size: 12px; }

/* Buttons, panels, tags ----------------------------------------------- */
.button { font-size: 14px; font-weight: 600; border-radius: 12px; min-height: 46px; padding: 12px 20px; }
.primary {
  background: linear-gradient(180deg, #4f46e5, #4338ca);
  color: #fff;
  box-shadow: 0 1px 0 #ffffff26 inset, 0 8px 20px #4338ca40;
}
.primary:hover { filter: brightness(1.06); }
.ghost, .outline { border-color: var(--line); }
.ghost:hover, .outline:hover { border-color: #c7cbe0; }
.panel { border-radius: var(--radius); }
.tag { font-size: 10.5px; font-weight: 650; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 999px; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; }
.text-link { color: var(--green); font-weight: 600; }
body.dark .text-link { color: #a5b4fc; }
.notice { font-size: 13.5px; border-radius: 14px; }
.ev4-form label, .ev4-filter-label { font-size: 13px; }
.ev4-form input:not([type='checkbox']):not([type='hidden']), .ev4-form select { border-radius: 11px; font-size: 14px; }
.ev4-form input:focus, .ev4-form select:focus { border-color: #818cf8; }
.ev4-consent { font-size: 13px !important; }

/* Hero ----------------------------------------------------------------- */
.v44-hero { padding: 36px 0 26px; gap: 48px; }
.hero .eyebrow { color: var(--green); }
.status-dot { background: var(--ok); box-shadow: 0 0 0 4px #0e9f6e22; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.04em; }
.v44-hero h1 em { color: var(--ink); background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding: 0 2px; }
.v44-hero h1 em::after { display: none; }
body.dark .v44-hero h1 em { color: #fff; background: linear-gradient(transparent 60%, #4338ca 60%, #4338ca 92%, transparent 92%); }
.hero-copy > p { font-size: 17px; line-height: 1.7; max-width: 520px; }
.hero-proof { font-size: 13px; gap: 10px 22px; }
.hero-proof span { display: inline-flex; gap: 6px; align-items: center; }

/* The audit card: a statement being checked, with found lines highlighted. */
.audit-card {
  margin: 0;
  background: var(--midnight);
  color: #e9edf7;
  border-radius: 22px;
  padding: 18px 18px 14px;
  border: 1px solid #ffffff14;
  box-shadow: 0 30px 60px -20px #0f163066, 0 0 0 8px #4338ca0d;
  position: relative;
  overflow: hidden;
  transform: rotate(1.2deg);
}
.audit-card::before {
  content: '';
  position: absolute;
  inset: -40% -30% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #6366f140, transparent 65%);
  pointer-events: none;
}
.audit-card-head { display: flex; align-items: center; gap: 9px; padding: 2px 4px 14px; border-bottom: 1px dashed #ffffff26; }
.audit-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px #ffe16b22; }
.audit-file { font-size: 12.5px; color: #c3cae0; font-weight: 500; }
.audit-badge { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: #8b93b0; border: 1px solid #ffffff22; border-radius: 999px; padding: 3px 9px; }
.audit-lines { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.audit-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
}
.audit-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; letter-spacing: 0.01em; }
.audit-tag { font-size: 10.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.audit-amount { font-weight: 650; min-width: 64px; text-align: right; }
.audit-lines .is-found { background: var(--lime); color: #1b1d10; }
.audit-lines .is-found .audit-tag { background: #1b1d1014; }
.audit-lines .is-check { background: #ffffff0d; border: 1px dashed #ffe16b80; }
.audit-lines .is-check .audit-tag { color: var(--lime); border: 1px solid #ffe16b66; }
.audit-lines .is-plain { color: #7f88a6; }
.audit-lines .is-plain .audit-tag { border: 1px solid #ffffff1f; }
.audit-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 6px 10px; border-top: 1px dashed #ffffff26; }
.audit-total span { font-size: 13px; color: #aeb6cc; }
.audit-total b { font-family: 'Inter Display', 'Inter', sans-serif; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.audit-total small { font-size: 14px; color: #aeb6cc; font-weight: 500; margin-left: 2px; }
.audit-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #8b93b0; padding: 0 6px; }
.audit-foot span:first-child { color: #6ee7b7; }

.audit-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 6px 0 10px;
}
.audit-steps > div { display: grid; gap: 4px; padding: 20px 22px; position: relative; }
.audit-steps > div + div { border-left: 1px solid var(--line); }
.audit-steps b { font-size: 15px; }
.audit-steps small { font-size: 13px; }
.audit-step-num { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--green); }
@media (max-width: 760px) {
  .audit-steps { grid-template-columns: 1fr; }
  .audit-steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .audit-card { transform: none; }
}

/* Problem cards and country cards -------------------------------------- */
.v44-problem, .v44-guide-card { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.v44-problem:hover, .v44-guide-card:hover { border-color: #a5b4fc; box-shadow: 0 14px 34px -14px #4338ca40; }
.v44-problem-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
}
.v44-problem-label { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
body.dark .v44-problem-label { color: var(--muted); }
.v44-problem h3 { font-size: 19px; }
.v44-country-card.is-mine, .v44-guide-card.is-mine { outline: 2px solid var(--green); outline-offset: -1px; }
.v44-country-tabs a { font-weight: 550; }
.v44-country-tabs a.active { background: var(--green); border-color: var(--green); }

/* Numbers that matter get the audit mark ------------------------------- */
.v44-total b, .v44-result .v44-big { font-variant-numeric: tabular-nums; }
.v44-total b { background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 92%, transparent 92%); padding: 0 3px; color: var(--ink); }
body.dark .v44-total b { background: linear-gradient(transparent 55%, #4338ca 55%, #4338ca 92%, transparent 92%); }
.ev4-record { border-radius: 16px; }
.v44-situation.is-urgent { border-color: #f1c66a; }
.v44-steps li::marker { color: var(--green); font-weight: 700; }

/* Footer -------------------------------------------------------------- */
.footer b { font-family: 'Inter Display', 'Inter', sans-serif; font-size: 17px; letter-spacing: -0.02em; }

/* Readable type on phones: the older styles shrank text to 8-11px. */
@media (max-width: 980px) {
  .hero-actions .button, .button { font-size: 14px; }
  .breadcrumb { font-size: 13px; }
  .region-label select { font-size: 12.5px; }
  .section-title p, .principles small, .section-title > .text-link { font-size: 13px; }
  .preview-banner { font-size: 10.5px; }
  .preview-banner span { font-size: 12px; }
  .footer .footer-fine { font-size: 11.5px; }
  .eyebrow { font-size: 10.5px; }
  .hero-proof { font-size: 12.5px; }
  .toast { font-size: 13px; }
  .facts, .facts strong, .catch, .compare-btn, .record-row, .results-head { font-size: 13px; }
  .review-line, .card-top .tag { font-size: 11px; }
  .topbar { height: 64px; }
}
@media (max-width: 470px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .audit-lines li { font-size: 12.5px; padding: 9px 10px; gap: 8px; }
  .audit-tag { display: none; }
  .audit-steps > div { padding: 16px 18px; }
}
body.dark .v44-hero h1 em { background: linear-gradient(transparent 60%, #4338caaa 60%, #4338caaa 92%, transparent 92%); }
