/* ============================================================
   TornadoGate — geo-page.css
   Additive styles for the deep, data-driven GEO sections.
   Reuses design tokens from styles.css (--accent, --line, etc.).
   Loaded AFTER the region skin so it only adds new blocks —
   it does not restyle existing hero / risk-tier markup.
   ============================================================ */

/* Generic section rhythm for the new blocks */
.geo-sec { padding: 74px 0; }
.geo-sec.alt { background: var(--tint-soft); }
.geo-sec .section-head { margin-bottom: 40px; }

/* Intro lead paragraph under a section head */
.geo-lead { color: var(--muted); font-size: 18px; max-width: 680px; text-wrap: pretty; }

/* ---------- Market snapshot ---------- */
.snap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}
.snap-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.2,.8,.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.snap-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--accent), var(--accent-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s ease;
}
.snap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bfe8d4;
}
.snap-card:hover::before { transform: scaleY(1); }
.snap-card .snap-label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.snap-card .snap-value { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.snap-card .snap-note { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Prose (market overview, settlement intro) ---------- */
.geo-prose { max-width: 760px; }
.geo-prose p { color: var(--ink-soft); font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.geo-prose p:last-child { margin-bottom: 0; }

/* ---------- Payment methods table ---------- */
.pm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.pm-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pm-table th, .pm-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-table thead th {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--tint-soft);
}
.pm-table tbody tr:last-child td { border-bottom: none; }
.pm-table tbody tr { transition: background 0.15s ease; }
.pm-table tbody tr:hover { background: var(--tint-soft); }
.pm-table .pm-name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.pm-table .pm-note { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pm-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--tint);
  color: var(--accent-dark);
  white-space: nowrap;
}
.pm-tag.scope-local { background: #eaf5ff; color: #1d5fa8; }
.pm-tag.scope-international { background: #f0ecff; color: #5b46b8; }

/* ---------- Business models ---------- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.model-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfe8d4; }
.model-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.model-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Provider requirements ---------- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px 28px;
}
.req-item {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}
.req-item::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Settlement ---------- */
.settle-points { list-style: none; margin-top: 22px; display: grid; gap: 12px; max-width: 760px; }
.settle-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.settle-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Risk considerations ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.risk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.risk-card .risk-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 14px;
}
.risk-badge.low { background: #e4f7ec; color: #157a49; }
.risk-badge.mid { background: #fff4e0; color: #a5680c; }
.risk-badge.high { background: #fdecec; color: #b53535; }
.risk-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 9px; }
.risk-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Local specifics ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.spec-card h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.spec-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- How TornadoGate works (process) ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: proc; }
.proc-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  position: relative;
}
.proc-step .proc-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--tint);
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.proc-step h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; margin-bottom: 7px; }
.proc-step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- FAQ (native, no JS, indexable) ---------- */
.faq-list { max-width: 820px; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 22px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }

/* ---------- Sources & last reviewed ---------- */
.geo-foot-meta {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: grid;
  gap: 18px;
}
.src-head {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.src-list { list-style: none; display: grid; gap: 8px; }
.src-list li { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.src-list a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.src-list a:hover { text-decoration: underline; }
.reviewed { font-size: 14px; color: var(--muted); }
.reviewed b { color: var(--ink-soft); font-weight: 600; }
.geo-disclaimer { font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 820px; }

/* ---------- Related pages ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #bfe8d4; }
.rel-flag {
  width: 40px; height: 28px;
  border-radius: 5px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(6,78,59,0.14);
  outline: 1px solid rgba(0,0,0,0.07);
  outline-offset: -1px;
}
.rel-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: linear-gradient(135deg, var(--tint), #d4f3e4);
}
.rel-ico svg { width: 19px; height: 19px; }
.rel-card .rel-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.rel-card .rel-kind { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- Deep-dive sections (SBP, card acquiring, cross-border, compliance) ---------- */
.dd-panels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.dd-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.dd-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfe8d4; }
.dd-panel h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.dd-panel > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 13px; }
.dd-list { list-style: none; display: grid; gap: 10px; }
.dd-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.dd-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

/* ---------- Risk factors (shown above the risk-tier cards) ---------- */
.rf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.rf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.rf-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.rf-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Two-scenario comparison (local vs foreign company) ---------- */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 30px 14px;
  display: flex;
  flex-direction: column;
}
.cmp-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--tint);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 15px;
}
.cmp-col-head h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 9px; }
.cmp-col-head p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 6px; }
.cmp-rows { display: grid; }
.cmp-row { padding: 15px 0; border-top: 1px solid var(--line); }
.cmp-k {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.cmp-v { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- Pre-brief checklist ---------- */
.chk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px 20px;
}
.chk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.chk-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #bfe8d4; }
.chk-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--tint);
}
.chk-text { color: var(--ink-soft); font-size: 15px; line-height: 1.5; padding-top: 3px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .risk-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .cmp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .geo-sec { padding: 52px 0; }
  .geo-sec .section-head { margin-bottom: 30px; }
  .geo-lead { font-size: 16px; }
  .geo-prose p { font-size: 16px; }
  .snap-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .snap-card { padding: 16px; border-radius: 14px; }
  .snap-card .snap-value { font-size: 15px; }
  .req-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 15px; padding: 17px 46px 17px 18px; }
  .faq-item .faq-a { padding: 0 18px 18px; font-size: 14.5px; }
  .rel-grid { grid-template-columns: 1fr; }
  .pm-table th, .pm-table td { padding: 12px 14px; }
  .dd-panels { grid-template-columns: 1fr; gap: 12px; }
  .dd-panel { padding: 22px 20px; border-radius: 16px; }
  .rf-grid { grid-template-columns: 1fr; }
  .cmp-col { padding: 24px 22px 10px; border-radius: 18px; }
  .cmp-col-head h3 { font-size: 18px; }
  .chk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .snap-grid { grid-template-columns: 1fr; }
}
