/* ============================================================
   Santander partnership page — supplementary styles
   Built on top of the Upscalers Q1 design system (style.css)
   ============================================================ */

/* ============================================================
   THEME OVERRIDE — remove teal/green, switch to charcoal
   Santander brand is red, so we keep accents neutral (black /
   warm grey) and let the red Santander logo carry the colour.
   ============================================================ */
:root, [data-theme="light"] {
  --color-primary:        #1A1916;   /* near-black */
  --color-primary-hover:  #3A3833;   /* warm dark grey */
  --color-primary-light:  #F1EFEA;   /* soft cream */
}
[data-theme="dark"] {
  --color-primary:        #E8E6E0;   /* cream on dark */
  --color-primary-hover:  #FFFFFF;
  --color-primary-light:  #2A2825;
}

/* Make sure the hero italic accent matches the new neutral palette
   instead of teal */
.hero-accent { color: var(--color-primary) !important; font-style: italic; }

/* Theme toggle / interactive icons stay neutral */
.theme-toggle { color: var(--color-text-muted); }
.theme-toggle:hover { color: var(--color-text); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.4rem; border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-2); text-decoration: none; }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: rgba(255,255,255,0.88); text-decoration: none; }

/* --- Hero adjustments --- */
.hero--partner { padding-bottom: var(--space-12); }
.hero-accent {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-weight: 400; color: var(--color-primary);
}
.hero-cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-6) 0 var(--space-8); }

/* --- Stat strip --- */
.stat-strip {
  background: var(--color-text); color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6); padding-top: var(--space-10); padding-bottom: var(--space-10);
}
.stat-value {
  font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em;
  color: #fff; line-height: 1;
}
[data-theme="dark"] .stat-value { color: var(--color-bg); }
.stat-unit { font-size: var(--text-lg); font-weight: 600; opacity: 0.8; margin-left: 2px; }
.stat-label {
  margin-top: var(--space-3); font-size: var(--text-sm);
  color: rgba(255,255,255,0.78); line-height: 1.4;
}
[data-theme="dark"] .stat-label { color: rgba(20,19,18,0.7); }
.stat-label span { display: block; font-size: var(--text-xs); color: rgba(255,255,255,0.5); margin-top: 2px; }
[data-theme="dark"] .stat-label span { color: rgba(20,19,18,0.5); }

/* --- Approach grid --- */
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5); margin-top: var(--space-8);
}
.approach-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: var(--transition);
}
.approach-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.approach-num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: var(--text-2xl); color: var(--color-primary); line-height: 1;
  margin-bottom: var(--space-4);
}
.approach-card h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.approach-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.55; }

/* --- Regulated grid --- */
.reg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5); margin-top: var(--space-8);
}
.reg-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.reg-card--feature {
  grid-column: span 3;
  background: var(--color-primary-light);
  border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.reg-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-primary); background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  padding: 0.3rem 0.6rem; border-radius: var(--radius-sm); margin-bottom: var(--space-4);
}
.reg-card--feature h3 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.reg-card--feature p { font-size: var(--text-base); color: var(--color-text-muted); max-width: 60ch; margin: 0; }
.reg-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-success-bg); color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: var(--space-4);
}
.reg-card h4 { font-size: var(--text-base); margin: 0 0 var(--space-2); }
.reg-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.5; }

/* --- Process track --- */
.process-track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5); margin-top: var(--space-8); position: relative;
}
.process-step { position: relative; padding-top: var(--space-2); }
.process-marker {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-4);
  position: relative; z-index: 2;
}
.process-step::after {
  content: ''; position: absolute; top: 20px; left: 40px; right: -20px;
  height: 1px; background: var(--color-border); z-index: 1;
}
.process-step:last-child::after { display: none; }
.process-step h4 { font-size: var(--text-base); margin: 0 0 var(--space-2); }
.process-step p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.5; }

/* --- Track record --- */
.deal-feature {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8); margin-top: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.deal-feature-head, .deal-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap;
}
.company-cell { display: flex; align-items: center; gap: var(--space-3); }
.company-logo-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-surface-2); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; overflow: hidden;
}
.company-logo { width: 30px; height: 30px; object-fit: contain; }
.company-name { display: block; font-size: var(--text-lg); font-weight: 700; line-height: 1.1; }
.company-desc { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.deal-feature-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4);
}
.dfm { display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4); background: var(--color-surface-2); border-radius: var(--radius-md); }
.dfm-v { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.dfm-v.pos { color: var(--color-success); }
.dfm-l { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.3; }
.dfm-l small { display: block; font-size: 0.68rem; color: var(--color-text-faint); }

.deal-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-5); }
.deal-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.deal-list { list-style: none; margin: 0; padding: 0; }
.deal-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.deal-list li:last-child { border-bottom: none; }
.deal-list li span { color: var(--color-text-muted); }
.deal-list li strong { text-align: right; }
.deal-list li strong.pos { color: var(--color-success); }

/* notable */
.notable {
  display: flex; align-items: center; gap: var(--space-5);
  margin-top: var(--space-8); flex-wrap: wrap;
  padding-top: var(--space-6); border-top: 1px solid var(--color-divider);
}
.notable-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.notable-logos { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.notable-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; padding: 0.4rem 0.85rem; font-size: var(--text-sm); font-weight: 600;
}
.notable-chip img { width: 18px; height: 18px; object-fit: contain; }
.notable-chip--text { color: var(--color-text); }

/* opening banner */
.opening-banner {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-6); padding: var(--space-5) var(--space-6);
  background: var(--color-primary-light);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: var(--radius-lg);
}
.opening-pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--color-primary);
  flex-shrink: 0; position: relative;
}
.opening-pulse::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--color-primary); opacity: 0.5;
  animation: pulsering 1.8s ease-out infinite;
}
@keyframes pulsering { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }
.opening-banner > div { display: flex; flex-direction: column; }
.opening-eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); font-weight: 700; }
.opening-name { font-size: var(--text-lg); font-weight: 700; }
.opening-tag { margin-left: auto; font-size: var(--text-xs); font-weight: 600; color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); padding: 0.3rem 0.7rem; border-radius: 999px; }

/* --- Collaboration --- */
.collab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.collab-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8); position: relative;
  transition: var(--transition);
}
.collab-card:hover { box-shadow: var(--shadow-md); }
.collab-num {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-5);
}
.collab-card h3 { font-size: var(--text-xl); margin: 0 0 var(--space-3); }
.collab-card p { font-size: var(--text-base); color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* --- Edge --- */
.edge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.edge-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.edge-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--color-primary-light); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5);
}
.edge-icon svg { width: 22px; height: 22px; }
.edge-card h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.edge-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.55; }

/* --- Contact --- */
.contact-section { background: var(--color-primary); }
[data-theme="dark"] .contact-section { background: var(--color-primary-light); }
.contact-inner { text-align: center; max-width: 760px; }
.contact-title {
  font-size: var(--text-2xl); font-weight: 700; color: #fff;
  letter-spacing: -0.02em; margin: var(--space-2) 0 var(--space-4);
}
[data-theme="dark"] .contact-title { color: var(--color-text); }
.contact-sub { font-size: var(--text-base); color: rgba(255,255,255,0.85); line-height: 1.65; margin: 0 auto var(--space-8); }
[data-theme="dark"] .contact-sub { color: var(--color-text-muted); }
.contact-cta-row { display: flex; align-items: center; justify-content: center; gap: var(--space-5); flex-wrap: wrap; }
.contact-locations { display: flex; gap: var(--space-2); }
.loc-chip {
  font-size: var(--text-sm); font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 0.5rem 0.9rem;
}
[data-theme="dark"] .loc-chip { color: var(--color-text); border-color: var(--color-border); }
.contact-signoff { margin-top: var(--space-8); font-size: var(--text-sm); color: rgba(255,255,255,0.7); font-style: italic; }
[data-theme="dark"] .contact-signoff { color: var(--color-text-muted); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .approach-grid, .reg-grid, .process-track, .edge-grid { grid-template-columns: 1fr 1fr; }
  .reg-card--feature { grid-column: span 2; }
  .process-step::after { display: none; }
  .deal-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stat-strip-inner, .approach-grid, .reg-grid, .process-track,
  .edge-grid, .collab-grid, .deal-pair { grid-template-columns: 1fr; }
  .reg-card--feature { grid-column: span 1; }
  .deal-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-feature { padding: var(--space-6); }
  .notable { flex-direction: column; align-items: flex-start; }
  .opening-tag { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .opening-pulse::after { animation: none; }
}

/* ==================================================================
   Perplexity card — neutral mono + warm orange accent.
   We override the brand blue/green with black + white + a deep warm
   orange so the mark stands out without competing with Upscalers teal.
================================================================== */
.company-logo-wrap--pplx {
  background: #0F0F10;
  border: 1px solid #0F0F10;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.company-logo-wrap--pplx .pplx-mark {
  width: 22px;
  height: 22px;
  position: relative;
  border-radius: 2px;
}
/* A simple geometric mark: white square with an orange diagonal accent,
   reading "P" by negative space. Pure CSS, no third-party logo. */
.company-logo-wrap--pplx .pplx-mark::before,
.company-logo-wrap--pplx .pplx-mark::after {
  content: "";
  position: absolute;
  inset: 0;
}
.company-logo-wrap--pplx .pplx-mark::before {
  background: #FFFFFF;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 55%, 0 55%);
}
.company-logo-wrap--pplx .pplx-mark::after {
  background: #E27A2B;     /* warm orange accent */
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  height: 40%;
  top: 60%;
}

/* Subtle treatment of the whole Perplexity card to match. */
.deal-card--pplx {
  border-color: #0F0F10;
}
.deal-card--pplx .company-name {
  color: #0F0F10;
}
.deal-card--pplx .badge-growth {
  background: #FCEFE3;
  color: #B45A12;
  border: 1px solid #F3D5B8;
}
.deal-card--pplx .deal-list li strong.pos {
  color: #B45A12;
}

/* Dark mode parity. */
[data-theme="dark"] .deal-card--pplx .badge-growth {
  background: #2A1A0C;
  color: #F3B27A;
  border-color: #4A2A14;
}
[data-theme="dark"] .deal-card--pplx .deal-list li strong.pos {
  color: #F3B27A;
}
[data-theme="dark"] .company-logo-wrap--pplx {
  background: #FFFFFF;
  border-color: #FFFFFF;
}
[data-theme="dark"] .company-logo-wrap--pplx .pplx-mark::before {
  background: #0F0F10;
}

/* ==================================================================
   Due Diligence section (#diligence)
   ================================================================== */

#diligence .section-title { margin-bottom: .35rem; }
#diligence .section-desc  { max-width: 56rem; }

/* Grid: 2 columns on desktop, full-width for featured / wide cards */
.dd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.dd-card--featured,
.dd-card--wide { grid-column: 1 / -1; }

/* Card shell */
.dd-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dd-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.18);
}
.dd-card--featured {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-surface) 55%);
  border-color: var(--color-primary);
}

/* Header */
.dd-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.dd-num {
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: -.02em;
  padding-top: .15rem;
}
.dd-q { display: flex; flex-direction: column; gap: .35rem; }
.dd-q-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}
.dd-q-title {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* Body */
.dd-card-body { display: flex; flex-direction: column; gap: 1rem; }

/* Q1 — Stats grid */
.dd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .9rem 1.5rem;
  margin: 0;
}
.dd-stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .85rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: 10px;
}
.dd-stat dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.dd-stat dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* Q2 — Key-value rows */
.dd-kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: .75rem 1.25rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: baseline;
}
.dd-kv:last-of-type { border-bottom: 0; }
.dd-k {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.dd-v { color: var(--color-text); }

/* Q3 — Fees */
.dd-fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.dd-fee {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .9rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: 10px;
}
.dd-fee-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.dd-fee-val {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.dd-fee--bank {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}
.dd-fee--bank .dd-fee-label { color: var(--color-primary); }
.dd-fee--bank .dd-fee-val   { color: var(--color-primary-hover); }

/* Q4 — Jurisdictions */
.dd-jur-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.dd-jur {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dd-jur-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.dd-jur-text {
  font-size: .9rem;
  color: var(--color-text);
  line-height: 1.4;
}
.dd-jur--ok      { background: var(--color-success-bg); border-color: var(--color-success); }
.dd-jur--ok .dd-jur-label { color: var(--color-success); }
.dd-jur--review  { background: var(--color-warning-bg); border-color: var(--color-warning); }
.dd-jur--review .dd-jur-label { color: var(--color-warning); }
.dd-jur--blocked { background: var(--color-error-bg); border-color: var(--color-error); }
.dd-jur--blocked .dd-jur-label { color: var(--color-error); }

/* Q5 — Reporting */
.dd-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.dd-report { display: flex; flex-direction: column; gap: .65rem; }
.dd-report-head {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-text-muted);
  font-weight: 700;
}
.dd-report-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.dd-report-list li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem .85rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
}
.dd-report-list li > span {
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-text);
}
.dd-report-list li > em {
  font-style: normal;
  font-size: .8rem;
  color: var(--color-text-muted);
}

/* Q4 — Jurisdiction lists inside cards */
.dd-jur-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
  color: var(--color-text);
  line-height: 1.5;
}
.dd-jur-list li { padding: .1rem 0; }

/* Q6 — Method tags */
.dd-method-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.dd-method-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--color-divider);
}
.dd-method-list li:last-child { border-bottom: 0; }
.dd-method-text { color: var(--color-text); font-size: .92rem; line-height: 1.5; flex: 1; min-width: 0; }
.dd-method-tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Q7 — Flow */
.dd-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  counter-reset: ddflow;
}
.dd-flow > li {
  counter-increment: ddflow;
  position: relative;
  padding: 1rem 1.1rem 1.1rem 3.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  min-height: 100%;
}
.dd-flow > li::before {
  content: counter(ddflow, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Hide the manual number — the ::before counter already shows it */
.dd-flow-step { display: none; }
.dd-flow-title {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text);
  margin-bottom: .25rem;
}
.dd-flow-body {
  display: block;
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Notes & placeholders */
.dd-note {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}
[data-placeholder] {
  color: var(--color-text-faint);
  font-style: italic;
  border-bottom: 1px dashed var(--color-text-faint);
  padding-bottom: 1px;
}
.dd-stat dd[data-placeholder],
.dd-fee-val[data-placeholder] {
  border-bottom: 0;
  font-weight: 500;
}

/* Footer CTA strip */
.dd-foot {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.dd-foot p { margin: 0; color: var(--color-text-muted); max-width: 48rem; }
.dd-foot .btn { flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .dd-grid { grid-template-columns: 1fr; }
  .dd-card--featured, .dd-card--wide { grid-column: auto; }
  .dd-report-grid,
  .dd-jur-row { grid-template-columns: 1fr; }
  .dd-kv { grid-template-columns: 1fr; gap: .15rem; }
  .dd-num { font-size: 2.2rem; }
  .dd-card { padding: 1.4rem 1.25rem; }
}

/* Dark mode parity */
[data-theme="dark"] .dd-stat,
[data-theme="dark"] .dd-fee,
[data-theme="dark"] .dd-report-list li,
[data-theme="dark"] .dd-jur,
[data-theme="dark"] .dd-flow > li {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="dark"] .dd-card--featured {
  background: linear-gradient(180deg, rgba(79,152,163,.10) 0%, var(--color-surface) 55%);
}
[data-theme="dark"] .dd-fee--bank {
  background: rgba(79,152,163,.14);
  border-color: var(--color-primary);
}
[data-theme="dark"] .dd-jur--ok      { background: rgba(67,122,34,.14); }
[data-theme="dark"] .dd-jur--review  { background: rgba(150,66,25,.16); }
[data-theme="dark"] .dd-jur--blocked { background: rgba(161,44,75,.16); }
[data-theme="dark"] .dd-method-tag {
  background: rgba(79,152,163,.16);
  color: var(--color-primary);
}

/* ==================================================================
   Santander co-branding (header + hero badge + footer)
   ================================================================== */

/* ----- Header co-brand lockup ----- */
.logo--cobrand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-x {
  font-size: .82rem;
  color: var(--color-text-faint);
  font-weight: 400;
  letter-spacing: .02em;
  padding: 0 .05rem;
  user-select: none;
}
.site-logo--partner {
  height: 16px;
  width: auto;
  object-fit: contain;
  display: block;
  /* let the logo keep its native red/grey colours in light mode */
}
/* On dark mode, lighten the gray "Private Banking" subtly so it stays readable */
[data-theme="dark"] .site-logo--partner {
  filter: brightness(1.08);
}

/* ----- Hero badge with logo lockup ----- */
.hero-badge--partner {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-right: .75rem;
}
.hero-badge--partner > span {
  /* keep existing uppercase styling from .hero-badge */
}
.hero-badge-logo {
  height: 14px;
  width: auto;
  object-fit: contain;
  display: block;
  position: relative;
  top: 1px;
}
[data-theme="dark"] .hero-badge-logo {
  filter: brightness(1.08);
}

/* ----- Footer co-brand lockup ----- */
.footer-logo--cobrand {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.footer-logo-mark {
  display: inline-flex;
  align-items: center;
}
.footer-logo-x {
  font-size: .8rem;
  color: var(--color-text-faint);
  padding: 0 .05rem;
  user-select: none;
}
.footer-logo-partner {
  height: 14px;
  width: auto;
  object-fit: contain;
  display: block;
}
[data-theme="dark"] .footer-logo-partner {
  filter: brightness(1.08);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .logo--cobrand { gap: .45rem; }
  .site-logo--partner { height: 14px; }
  .logo-x { font-size: .72rem; }
  .hero-badge--partner {
    /* allow wrap on small screens */
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    line-height: 1.4;
  }
  .hero-badge-logo { height: 12px; }
}

/* Header tightening to accommodate co-branded lockup on one line */
.header-inner { gap: 1.25rem; }
.main-nav { gap: 1.25rem; white-space: nowrap; }
@media (max-width: 1100px) {
  .main-nav { gap: 1rem; font-size: .88rem; }
}
@media (max-width: 980px) {
  .site-logo--partner { display: none; }
  .logo-x { display: none; }
}
