/* ============================================================
   CSS custom properties
   ── Five variables are injected per-client from the CMS at
      render time (see page.tsx inline style on .site-wrapper):
        --color-primary   ← branding.primaryColor
        --color-secondary ← branding.secondaryColor
        --color-cta       ← branding.ctaColor
        --color-cta-text  ← branding.ctaTextColor
        --font-family     ← branding.fontFamily
   ── Everything else either derives from those five or is a
      fixed Groundwork design token (not client-configurable).
   ============================================================ */
:root {
  /* Injected from CMS — defaults used only when no client record exists */
  --color-primary: #0057B7;
  --color-secondary: #0A1628;
  --color-cta: #FFD000;
  --color-cta-text: #1a1a1a;
  --font-family: Inter, system-ui, -apple-system, sans-serif;

  /* Derived: these update automatically when primary/secondary change */
  --color-dark: var(--color-secondary);   /* footer background */

  /* Fixed Groundwork design tokens — same across all clients */
  --color-text: #19191e;
  --color-text-muted: #5a6277;
  --color-bg-light: #f5f7fa;
  --color-white: #ffffff;
  --color-border: #e0e4ec;
  --max-width: 1200px;
  --nav-h: 72px;
  --section-v: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.09);
  --shadow-nav: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   Shared utilities
   ============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-family);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { opacity: 0.78; transform: none; }

.btn-sm { padding: 10px 22px; font-size: 0.875rem; }

.btn-cta {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-color: var(--color-cta);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-bottom-bar {                                                                                                        
  background: var(--color-primary);                       
  color: var(--color-white);                                                                                           
}

.nav-bottom-bar .nav-link {                                                                                            
    color: var(--color-white);
  }

.nav-bottom-bar .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);                                                                                             
}  

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img { height: 40px; width: auto; }
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-login-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.15s;
}

.nav-login-link:hover { color: var(--color-primary); }

/* ── Mobile hamburger & menu ── */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background 0.15s;
}

.nav-hamburger:hover { background: rgba(255, 255, 255, 0.85); }

.nav-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.nav-mobile-link {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.12s, color 0.12s;
}

.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { background: var(--color-bg-light); color: var(--color-primary); }
.nav-mobile-link-login { color: var(--color-primary); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  overflow: clip;
  background: color-mix(in srgb, var(--color-primary) 12%, white);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 32px;
  gap: 48px;
  min-height: 520px;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-card-img {
  height: 340px;
  width: auto;
}

.hero-card-placeholder {
  width: 340px;
  height: 220px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================================
   Quick Actions
   ============================================================ */
.quick-actions {
  padding: var(--section-v) 0;
  background: var(--color-white);
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 20px 20px;
  background: color-mix(in srgb, var(--color-primary) 12%, white);
  border: none;
  border-radius: 40px;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.qa-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon img { width: 36px; height: 36px; object-fit: contain; }
.qa-icon svg { width: 30px; height: 30px; color: var(--color-cta-text); }

.qa-body { flex: 1; min-width: 0; }

.qa-title {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.qa-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.qa-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.qa-arrow svg { width: 18px; height: 18px; }

.qa-card:hover .qa-arrow {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   Register Banner
   ============================================================ */
.register-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--section-v) 0;
}

.register-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 72px;
  align-items: center;
}

.rb-media {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.rb-media img {
  max-height: 340px;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.rb-headline {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 480px;
}

.rb-body {
  font-size: 1rem;
  opacity: 0.88;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}

.rb-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rb-disclosure {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 32px;
  line-height: 1.55;
  max-width: 720px;
}

/* ============================================================
   Credit Cards
   ============================================================ */
.cards-section {
  padding: var(--section-v) 0;
  background: var(--color-bg-light);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card tile ── */
.card-tile {
  background: color-mix(in srgb, var(--color-primary) 8%, white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.card-tile-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
}

.card-tile-image:hover img {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

.card-tile-image img {
  transition: transform 0.2s ease;
}

.card-tile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.card-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c9d6e8 0%, #e8edf4 100%);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 0;
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 20px 6px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  z-index: 1;
}

/* ── Card tile body ── */
.card-tile-body {
  display: flex;
  flex-direction: column;
  padding: 16px;
  flex: 1;
  gap: 12px;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.45;
}

.feature-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.feature-icon-empty {
  border-radius: 50%;
  background: var(--color-border);
}

.feature-text { flex: 1; }
.feature-text strong { font-weight: 700; }

/* ── Learn more button ── */
.card-learn-more-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  background: var(--color-cta);
  color: var(--color-cta-text);
  border: none;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.card-learn-more-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.card-learn-more-btn svg { flex-shrink: 0; }

/* ── Card disclosures (tile) ── */
.card-disclosures {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-disclosure {
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.disc-num {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
}

.disc-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.disc-link:hover { opacity: 0.75; text-decoration: underline; }

/* ── Card modal ── */
.card-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.card-modal {
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  position: relative;
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto;
}

.card-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.12s;
}

.card-modal-close:hover { background: var(--color-bg-light); }

.card-modal-img-wrap {
  padding: 24px 24px 0;
}

.card-modal-img-wrap img {
  width: 52%;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image-placeholder.modal-placeholder {
  width: 52%;
  max-width: 260px;
  aspect-ratio: 1.586;
  border-radius: 10px;
  background: var(--color-bg-light);
}

.card-modal-names {
  padding: 16px 24px 16px;
  border-bottom: 1px solid var(--color-border);
}

.card-modal-client {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.card-modal-cardname {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Extended features */
.ext-features {
  list-style: none;
  padding: 0 24px;
}

.ext-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.ext-feature:last-child { border-bottom: none; }

.ext-feature-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.ext-feature-icon-empty {
  border-radius: 50%;
  background: var(--color-border);
}

.ext-feature-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.ext-feature-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.ext-feature-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.ext-feature-value strong { font-weight: 700; }

/* Paragraph features */
.para-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
}

.para-feature-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.para-feature-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Modal CTA */
.card-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 24px 0;
  padding: 16px 24px;
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.card-modal-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Modal disclosures */
.card-modal-disclosures {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 24px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

/* ============================================================
   App Download Banner
   ============================================================ */
.app-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--section-v) 0;
  overflow: hidden;
}

.app-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.ab-headline {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 16px;
  max-width: 460px;
}

.ab-body {
  font-size: 1rem;
  opacity: 0.88;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}

.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s, transform 0.1s;
}

.store-badge-link:hover { opacity: 0.85; transform: translateY(-1px); }

.store-badge-img {
  height: 44px;
  width: auto;
  display: block;
}

.ab-screenshot {
  flex-shrink: 0;
}

.ab-screenshot img {
  max-height: 380px;
  width: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

/* ============================================================
   Help & Support
   ============================================================ */
.help-section {
  padding: var(--section-v) 0;
  background: var(--color-white);
}

/* Quick link cards */
.help-ql-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.help-ql-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.help-ql-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.help-ql-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
}

.help-ql-title {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}

.help-ql-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* FAQ grid */
/* ── FAQ cards grid ── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-card {
  background: color-mix(in srgb, var(--color-primary) 8%, white);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.15s;
}

.faq-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); }

.faq-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 16px;
}

.faq-card-questions {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-card-question {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  line-height: 1.4;
}

.faq-card-question:first-child { border-top: 1px solid rgba(0,0,0,0.1); }

.faq-card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-cta, #f5c300);
  color: var(--color-cta-text);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 40px;
}

.faq-plus-icon { flex-shrink: 0; }

/* ── FAQ modal ── */
.faq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.faq-modal {
  background: color-mix(in srgb, var(--color-primary) 5%, white);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.12s;
}

.faq-modal-close:hover { background: var(--color-bg-light); }

.faq-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-right: 32px;
}

.faq-modal-intro {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.faq-modal-headline {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.faq-modal-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── FAQ accordion ── */
.faq-accordion { display: flex; flex-direction: column; }

.faq-accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  cursor: pointer;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.faq-accordion-trigger span { flex: 1; }
.faq-accordion-trigger .faq-plus-icon { color: var(--color-accent, #f5c300); }

.faq-accordion-answer {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding: 0 0 14px 30px;
}

/* ── "More frequently asked questions" button ── */
.faq-more-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-text);
  color: var(--color-white);
  border: none;
  border-radius: 40px;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  margin: 20px 0 8px;
  gap: 8px;
  transition: opacity 0.15s;
}

.faq-more-btn:hover { opacity: 0.85; }

/* ── Other category buttons ── */
.faq-modal-others {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.faq-other-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-cta, #f5c300);
  color: var(--color-cta-text);
  border: none;
  border-radius: 40px;
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  gap: 8px;
  transition: opacity 0.15s;
}

.faq-other-btn:hover { opacity: 0.85; }
.faq-arrow-icon { flex-shrink: 0; }

/* ============================================================
   Legal
   ============================================================ */
.legal-section {
  padding: var(--section-v) 0;
  background: var(--color-white);
}

.legal-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-item {
  border-radius: 48px;
  overflow: hidden;
}

.legal-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 14px;
  background: color-mix(in srgb, var(--color-primary) 8%, white);
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 48px;
  transition: background 0.15s;
}

.legal-summary::-webkit-details-marker { display: none; }
.legal-summary::marker { display: none; }
.legal-summary:hover { background: color-mix(in srgb, var(--color-primary) 14%, white); }
details[open] > .legal-summary { border-radius: 48px 48px 0 0; }

.legal-cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-cat-icon img { width: 36px; height: 36px; object-fit: contain; }
.legal-cat-icon svg { width: 30px; height: 30px; color: var(--color-cta-text); }

.legal-cat-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  width: 260px;
  flex-shrink: 0;
}

.legal-cat-divider {
  width: 2px;
  height: 48px;
  background: var(--color-text);
  flex-shrink: 0;
}

.legal-cat-desc {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.legal-cat-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.legal-cat-arrow svg { width: 22px; height: 22px; }
details[open] .legal-cat-arrow { transform: rotate(90deg); }

.legal-docs {
  background: color-mix(in srgb, var(--color-primary) 4%, white);
  border-radius: 0 0 32px 32px;
  padding: 16px 24px 20px 98px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-doc-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: opacity 0.15s;
}

.legal-doc-link:hover { opacity: 0.75; text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-bottom: 40px;
  margin-top: auto;
}

/* Hero logo — large, centered, colored */
.footer-hero-logo {
  display: flex;
  justify-content: center;
  padding: 56px 0 48px;
}

.footer-hero-logo-img {
  height: 100px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Mid section: columns + app badges */
.footer-mid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
}

.footer-col-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-col-links a {
  font-size: 0.875rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.footer-col-links a:hover { opacity: 1; }

.footer-col-body {
  font-size: 0.875rem;
  opacity: 0.75;
  line-height: 1.7;
  white-space: pre-line;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 40px 0 32px;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Numbered disclosures — left */
.footer-disc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disc-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.7rem;
  opacity: 0.55;
  line-height: 1.55;
}

.footer-disc-num { flex-shrink: 0; }
.footer-disc-text a { opacity: 0.75; text-decoration: underline; }

/* Legal text — center */
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal p {
  font-size: 0.7rem;
  opacity: 0.55;
  line-height: 1.65;
}

/* Copyright — right */
.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  font-size: 0.7rem;
  opacity: 0.55;
  line-height: 1.8;
}

/* Groundwork wordmark — bottom center */
.footer-wordmark {
  display: flex;
  justify-content: center;
  padding: 24px 0 16px;
  opacity: 0.6;
}

.footer-wordmark-img {
  height: 32px;
  width: auto;
}

/* ============================================================
   Legal doc page  (/legal/[slug])
   ============================================================ */
.legal-page-overlay {
  min-height: 100vh;
  background: #9ca3af;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
}

.legal-page-modal {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 800px;
  padding: 32px;
}

.legal-page-header {
  margin-bottom: 20px;
}

.legal-page-brand {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.legal-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.legal-page-body {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  min-height: 320px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-page-body p { margin-bottom: 12px; }
.legal-page-body p:last-child { margin-bottom: 0; }
.legal-page-body h1, .legal-page-body h2, .legal-page-body h3 {
  font-weight: 700;
  margin: 16px 0 8px;
}
.legal-page-body h1 { font-size: 1.125rem; }
.legal-page-body h2 { font-size: 1rem; }
.legal-page-body h3 { font-size: 0.9375rem; }
.legal-page-body ul, .legal-page-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-page-body ul { list-style: disc; }
.legal-page-body ol { list-style: decimal; }
.legal-page-body li { margin-bottom: 4px; }
.legal-page-body a { color: var(--color-primary); text-decoration: underline; }
.legal-page-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.legal-page-body th,
.legal-page-body td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.legal-page-body th {
  background: var(--color-bg-light);
  font-weight: 700;
}

/* ============================================================
   Promo Banner  (section 1.10)
   ============================================================ */
.promo-banner {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--section-v) 0;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.promo-banner-text { flex: 1; }

.promo-banner-headline {
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.promo-banner-sub {
  font-size: 0.9375rem;
  opacity: 0.82;
  line-height: 1.6;
}

.btn-solid-white {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   Info Columns  (section 1.11)
   ============================================================ */
.info-columns-section {
  padding: var(--section-v) 0;
  background: var(--color-bg-light);
}

.info-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.info-col-wrapper {
  display: flex;
  flex-direction: column;
}

.info-col-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  flex: 1;
}

.info-col-headline {
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 12px;
  color: var(--color-text);
}

.info-col-items { display: flex; flex-direction: column; }

.info-col-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-border);
}

.info-col-item:last-child { border-bottom: none; }

.info-col-item--faq {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}

.info-col-item--faq:hover { background: var(--color-bg-light); }

.info-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.info-item-icon-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.info-item-body { flex: 1; min-width: 0; }

.info-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.info-item-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  line-height: 1.45;
}

/* Contact bar */
.info-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow-card);
}

.info-contact-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--color-bg-light);
}

.info-contact-icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.info-contact-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
}

.info-contact-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.info-contact-details a { color: var(--color-primary); }

.btn-dark {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-color: var(--color-secondary);
  gap: 10px;
}

/* Info FAQ modal overrides (uses card-modal base) */
.info-faq-modal { max-width: 600px; }

.info-faq-modal-header {
  padding: 48px 24px 16px;
  border-bottom: 1px solid var(--color-border);
}

.info-faq-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.info-faq-modal-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.info-faq-modal .faq-accordion { padding: 0 24px 8px; }

/* ============================================================
   About Banner  (section 1.12)
   ============================================================ */
.about-banner {
  background: var(--color-bg-light);
  padding: var(--section-v) 0;
}

.about-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-banner-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.about-banner-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  border-radius: var(--radius);
}

.about-banner-headline {
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-banner-body {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.about-banner-body p { margin-bottom: 12px; }
.about-banner-body p:last-child { margin-bottom: 0; }

.about-banner-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.about-banner-link {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.about-banner-link:hover { opacity: 0.72; }

.about-banner-footer-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.82;
}

.about-banner-footer-body p { margin-bottom: 8px; }
.about-banner-footer-body p:last-child { margin-bottom: 0; }

/* ============================================================
   Responsive — tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-v: 64px;
  }

  .hero-headline { font-size: 2.125rem; }

  .qa-grid { grid-template-columns: repeat(2, 1fr); }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  .faq-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-bottom-grid { grid-template-columns: 1fr 1fr; }
  .footer-copyright { grid-column: 1 / -1; text-align: left; }

  .info-columns-grid { grid-template-columns: 1fr; }
  .about-banner-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-banner-headline { font-size: 1.875rem; }
}

/* ============================================================
   Responsive — mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-v: 48px;
    --nav-h: 64px;
  }

  .section-inner { padding: 0 20px; }
  .section-title { font-size: 1.5rem; margin-bottom: 32px; }

  /* Nav — hide center links and login on mobile, show hamburger */
  .nav-links { display: none; }
  .nav-login-link { display: none; }
  .nav-inner { gap: 16px; }
  .nav-hamburger { display: flex; }

  .hero-inner {
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .hero-card-img {
    height: 200px;
    width: auto;
  }

  .hero-headline { font-size: 1.875rem; }

  .hero-ctas { flex-direction: column; gap: 12px; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Quick Actions */
  .qa-grid { grid-template-columns: 1fr; }

  /* Register Banner */
  .register-banner-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .rb-media { display: none; }
  .rb-headline { font-size: 1.5rem; }
  .rb-ctas { justify-content: center; flex-direction: column; }
  .rb-ctas .btn { width: 100%; justify-content: center; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* App Banner */
  .app-banner-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .ab-screenshot { display: none; }
  .ab-headline { font-size: 1.625rem; }
  .store-badges { justify-content: center; }

  /* Help */
  .help-ql-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }

  /* Promo banner */
  .promo-banner-inner { flex-direction: column; text-align: center; }
  .promo-banner-headline { font-size: 1.625rem; }
  .promo-banner-inner .btn { width: 100%; justify-content: center; }

  /* Info columns */
  .info-contact-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .info-contact-left { flex-wrap: wrap; }

  /* About banner */
  .about-banner-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .about-banner-image { order: -1; }
  .about-banner-headline { font-size: 1.75rem; }

  /* Legal */
  .legal-list { max-width: 100%; }
  .legal-cat-title { min-width: 120px; font-size: 1.125rem; }
  .legal-cat-divider, .legal-cat-desc { display: none; }
  .legal-docs { padding-left: 80px; }

  /* Footer */
  .footer-hero-logo-img { height: 72px; }
  .footer-mid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-copyright { text-align: left; }
  .footer-badges { flex-direction: row; }
}

/* ============================================================
   Responsive — small mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-headline { font-size: 1.75rem; }
  .help-ql-grid { grid-template-columns: 1fr; }
  .store-badges { flex-direction: column; align-items: center; }
}
