/* === DESIGN TOKENS (match golden-star-portal) === */
:root {
  --background: #f8f8f8;
  --foreground: #2a2a2a;
  --card: #ffffff;
  --card-foreground: #2a2a2a;
  --primary: #383838;
  --primary-hover: #2a2a2a;
  --primary-foreground: #faf9f0;
  --secondary: #f5f3e8;
  --secondary-hover: #ebe8d8;
  --secondary-foreground: #383838;
  --muted: #f4f3ed;
  --muted-foreground: #737060;
  --accent: #f5f3e8;
  --accent-foreground: #383838;
  --border: #e8e5d8;
  --ring: #383838;

  --gold: #E0BF4A;
  --gold-cta: #C5A55A;
  --gold-cta-hover: #B89A4F;
  --silver: #CBD0D8;
  --navy: #333D51;
  --cream: #F4F3EA;

  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;

  --radius: 1.25rem;        /* 20px */
  --radius-sm: 1rem;        /* 16px */
  --radius-md: 1.125rem;    /* 18px */
  --radius-lg: 1.25rem;     /* 20px */

  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-gold: 0 1px 3px rgba(217,170,56,0.08), 0 4px 12px rgba(217,170,56,0.12);

  --transition: 150ms ease-in-out;
}

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

html {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; }

.money {
  font-variant-numeric: tabular-nums;
}

/* === NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
}
.nav-brand:hover { color: var(--gold); }
.nav-logo { width: 28px; height: 28px; color: var(--gold); }
.nav-brand-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-mobile-group { display: none; }
.nav-divider { display: none; }

.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: var(--muted);
  color: var(--foreground);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  padding: 0.5rem 1.25rem !important;
  box-shadow: var(--shadow-xs);
}
.nav-cta:hover {
  background: var(--primary-hover) !important;
  color: var(--primary-foreground) !important;
}

/* Language toggle — segmented pill */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-right: 0.5rem;
  padding: 2px;
  border-radius: 9999px;
  background: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0.3rem 0.85rem;
  font: inherit;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 9999px;
  transition: color var(--transition), background var(--transition);
}
.lang-btn:hover { color: var(--foreground); }
.lang-btn.active {
  background: #ffffff;
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
}
.lang-sep { display: none; }
.lang-short { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--foreground);
}
.nav-toggle svg { display: block; }

/* === HERO === */
.hero {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: 72px;
  height: 72px;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: visible;
}
.hero-logo.visible { opacity: 1; }

.hero-circle {
  filter: blur(1px);
  transition: stroke-dashoffset 1.2s ease, filter 1.2s ease;
}
.hero-circle--outer { transition-delay: 0s; }
.hero-circle--inner { transition-delay: 0.15s; }
.hero-logo.visible .hero-circle {
  stroke-dashoffset: 0;
  filter: blur(0);
}

.hero-star {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}
.hero-logo.visible .hero-star {
  opacity: 1;
  animation: star-spin 1.2s ease-out 0.3s both;
}

@keyframes star-spin {
  from { transform: rotate(-180deg) scale(0.5); }
  to { transform: rotate(0deg) scale(1); }
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.8s ease, filter 1s ease;
}
.hero-title.visible {
  opacity: 1;
  filter: blur(0);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  font-weight: 400;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-ctas.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-xs);
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.hero-phone {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-phone.visible { opacity: 1; }
.hero-phone a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.hero-phone a:hover { color: var(--gold); }

/* === TASK CARDS === */
.cards-section {
  padding: 0 1.5rem 4rem;
}

.cards-divider {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  border: none;
  border-top: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.cards-divider.visible {
  opacity: 1;
}

.cards-grid {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--card-foreground);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, box-shadow var(--transition), opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  margin-bottom: 0.75rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* === CONTENT SECTIONS === */
.content-section {
  padding: 3rem 1.5rem 1.5rem;
}
.content-section--alt {
  background: var(--background);
}

.section-inner {
  max-width: 42rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-desc {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}
.section-desc a {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: none;
}
.section-desc a:hover { color: var(--gold); }

/* === CARD LABELS (match portal sub-card heading style) === */
.label-sm {
  font-size: 0.625rem;          /* 10px */
  font-weight: 600;
  color: rgba(42, 42, 42, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.5rem;
}

/* === SECTION GROUPS & SUB-CARDS === */
.section-group {
  margin-bottom: 2.5rem;
}
.section-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.subcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
.subcard-grid--tight { gap: 0.5rem; }
.subcard-grid--stack { grid-template-columns: 1fr; }

.subcard {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  scroll-margin-top: 5.5rem;
}

.subcard-num {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(42, 42, 42, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -0.125rem;
}

.subcard h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
}

.subcard p {
  color: var(--muted-foreground);
  line-height: 1.55;
  font-size: 0.8125rem;
}
.subcard p strong { color: var(--foreground); font-weight: 600; }

/* === AGREEMENT PAGE === */

/* Timeline */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  /* padding-top (0.5rem = 8px) + half dot height (20px) = 28px, minus half line thickness */
  top: calc(0.5rem + 20px - 1px);
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 0 0.25rem;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--card);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.timeline-step:last-child .timeline-dot {
  background: var(--gold);
  color: #fff;
}

.timeline-step:hover .timeline-dot {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
}
.timeline-step:hover:not(:last-child) .timeline-dot {
  background: var(--secondary);
}
.timeline-step:hover .timeline-label {
  color: var(--gold);
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
  transition: color var(--transition);
}

/* Scroll target offset — sticky nav is 4rem tall */
.scroll-target {
  scroll-margin-top: 5.5rem;
}

/* Callout box */
.callout {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 6px rgba(217,170,56,0.18), 0 8px 24px rgba(217,170,56,0.22);
}
.callout-title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.callout p {
  color: var(--foreground);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* Key terms grid */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.term-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.term-card h4 {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(42, 42, 42, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.5rem;
}
.term-card p {
  color: var(--foreground);
  line-height: 1.5;
  font-size: 0.875rem;
}

/* Example / narrative boxes */
.example-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}
.example-box h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}
.example-box p {
  color: var(--foreground);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.example-box p:last-child { margin-bottom: 0; }
.example-box ul {
  margin: 0.5rem 0 0.75rem 1.5rem;
  color: var(--foreground);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.example-highlight {
  font-weight: 600;
  color: var(--foreground);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--foreground);
  transition: color var(--transition);
}
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.closing .faq-answer {
  grid-template-rows: 0fr;
}
.faq-item.closing summary::after {
  transform: none;
}
.faq-item .faq-answer-inner {
  overflow: hidden;
}

.faq-item .faq-answer-inner p {
  padding: 0 1.5rem 1rem;
  color: var(--foreground);
  line-height: 1.65;
  font-size: 0.875rem;
}

/* === PORTAL GUIDE === */
.guide-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.guide-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-cta);
}

.guide-card-content { flex: 1; }

.guide-card-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--foreground);
}

.guide-card-content > p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.guide-steps {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem 0.875rem 2rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
}
.guide-steps li {
  color: var(--foreground);
  line-height: 1.6;
  font-size: 0.8125rem;
  margin-bottom: 0.4rem;
}
.guide-steps li:last-child { margin-bottom: 0; }
.guide-steps li strong { color: var(--foreground); font-weight: 600; }
.guide-steps a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}
.guide-steps a:hover { color: var(--gold); }
.guide-steps ul {
  margin-top: 0.25rem;
  padding-left: 1.25rem;
}

.guide-note {
  margin-top: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: var(--secondary);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8125rem;
  color: var(--foreground);
  line-height: 1.5;
}

.video-placeholder {
  margin-top: 0.75rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* === RESOURCES === */
.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.form-link svg { color: var(--gold); flex-shrink: 0; }
.form-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.form-link--dropdown {
  position: relative;
  cursor: pointer;
}
.dropdown-chevron {
  color: var(--muted-foreground) !important;
  margin-left: auto;
  transition: transform var(--transition);
}
.form-link--dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 10;
}
.form-link--dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background var(--transition);
}
.dropdown-menu a:hover {
  background: var(--secondary);
}

.forms-instructions {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.forms-instructions h3 {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(42, 42, 42, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.75rem;
}
.forms-instructions ol {
  padding-left: 1.25rem;
  color: var(--foreground);
  line-height: 1.7;
  font-size: 0.875rem;
}
.forms-instructions a {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: none;
}
.forms-instructions a:hover { color: var(--gold); }
.forms-note {
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  background: var(--secondary);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8125rem;
  color: var(--foreground);
}

/* === BOTTOM CTA === */
.bottom-cta {
  text-align: center;
  padding: 0 1.5rem 3.5rem;
}
.bottom-cta p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* === PRIVACY === */
.privacy-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--foreground);
}
.privacy-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--foreground);
}
.privacy-content p {
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}
.privacy-content a {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: none;
}
.privacy-content a:hover { color: var(--gold); }

/* === FOOTER === */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.footer.visible { opacity: 1; }
.footer a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover { color: var(--gold); }
.footer-line {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === RESPONSIVE === */
/* Nav collapses earlier than other content because the desktop nav doesn't
   fit comfortably below ~820px — would wrap "View My Account" and the CTA. */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-card);
  }
  .nav-toggle { display: block; }
  .nav-links.open .nav-mobile-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    width: 100%;
  }
  .nav-links.open .nav-mobile-group a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    transition: background var(--transition), color var(--transition);
  }
  .nav-links.open .nav-mobile-group a:hover {
    background: var(--muted);
    color: var(--foreground);
  }
  .nav-links.open .nav-divider {
    display: block;
    width: 100%;
    height: 1px;
    border: none;
    background: var(--border);
    margin: 0.25rem 0;
  }
}

@media (max-width: 700px) {
  .nav-inner { height: 3.5rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .btn { width: 100%; }

  .lang-full { display: none; }
  .lang-short { display: inline; }

  .cards-grid { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .forms-grid { grid-template-columns: 1fr; }
  .subcard-grid { grid-template-columns: 1fr; }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-left: 2rem;
  }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
    transform: none;
  }
  .timeline-step {
    flex-direction: row;
    gap: 1rem;
  }
  .timeline-label {
    text-align: left;
    max-width: none;
  }

  .guide-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* === SITE NOTIFICATIONS (toast / banner / modal) === */
#site-notifications {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gs-notif {
  --notif-accent: var(--gold);
  --notif-bg: #fdf6d9;
  --notif-fg: var(--foreground);
  --notif-shadow: 0 1px 2px rgba(224, 191, 74, 0.12), 0 6px 20px rgba(224, 191, 74, 0.18);
  color: var(--notif-fg);
  background: var(--notif-bg);
}
.gs-notif.gs-type-warning {
  --notif-accent: var(--warning);
  --notif-bg: var(--warning-bg);
  --notif-shadow: 0 1px 2px rgba(217, 119, 6, 0.12), 0 6px 20px rgba(217, 119, 6, 0.18);
}
.gs-notif.gs-type-urgent {
  --notif-accent: var(--danger);
  --notif-bg: var(--danger-bg);
  --notif-shadow: 0 1px 2px rgba(220, 38, 38, 0.15), 0 6px 20px rgba(220, 38, 38, 0.22);
}

.gs-notif-title {
  font-weight: 600;
  color: var(--foreground);
}
.gs-notif-message {
  color: var(--muted-foreground);
  line-height: 1.5;
}

.gs-notif-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.gs-notif-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--foreground);
}

/* Banner */
.gs-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--notif-accent) 40%, transparent);
  text-align: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.5s ease-out, opacity 0.4s ease-out;
}
.gs-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.gs-banner-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
@keyframes gs-banner-in {
  from { transform: translateY(-12px); }
  to { transform: translateY(0); }
}

/* Alerts (inline, above the action cards) */
.alerts-section {
  padding: 0 1.5rem;
}
.alerts-divider {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  border: none;
  border-top: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.alerts-divider.visible {
  opacity: 1;
}
.alerts-grid {
  max-width: 48rem;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.alerts-grid:empty {
  display: none;
}
.alerts-divider:has(+ .alerts-grid:empty) {
  display: none;
}
.gs-alert {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--foreground);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s ease, box-shadow var(--transition), opacity 0.6s ease;
}
.gs-alert.visible {
  opacity: 1;
  transform: translateY(0);
}
.gs-alert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.gs-alert .gs-notif-title {
  font-size: 0.95rem;
}
.gs-alert .gs-notif-message {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.gs-alert-chev {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted-foreground);
  transition: transform var(--transition);
}
.gs-alert-clickable {
  cursor: pointer;
}
.gs-alert-clickable:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.gs-alert-clickable:hover .gs-alert-chev {
  transform: translateX(3px);
  color: var(--foreground);
}

/* Modal */
.gs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.gs-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 8px 16px rgba(0, 0, 0, 0.12);
  animation: gs-modal-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.gs-modal .gs-notif-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.gs-modal .gs-notif-message {
  font-size: 0.95rem;
  color: var(--foreground);
}
.gs-modal .gs-notif-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.gs-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.gs-modal-ack,
.gs-modal-cta {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition);
}
.gs-modal-ack:hover,
.gs-modal-cta:hover {
  background: var(--primary-hover);
}
body.gs-modal-open {
  overflow: hidden;
}
@keyframes gs-modal-in {
  from { transform: translateY(12px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

/* Leaving */
.gs-notif-leaving,
.gs-modal-backdrop.gs-notif-leaving {
  opacity: 0;
  transition: opacity 180ms ease-in;
}

/* Mobile */
@media (max-width: 640px) {
  .gs-modal {
    padding: 1.25rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gs-banner,
  .gs-modal-backdrop,
  .gs-modal,
  .gs-alert,
  .gs-alert-clickable,
  .gs-alert-clickable:hover,
  .gs-notif-leaving {
    animation-duration: 1ms !important;
    animation-timing-function: linear !important;
    transition: none !important;
  }
}
