#hero {
  padding-top: 60px;
}

#hero .hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 252, 0.95));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 18;
  background: radial-gradient(120% 120% at 20% 20%, rgba(61, 165, 199, 0.12), transparent 60%),
              radial-gradient(100% 100% at 80% 0%, rgba(15, 23, 42, 0.08), transparent 55%),
              var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-glow {
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(244, 247, 252, 0.35));
  z-index: 0;
}

.demo-video {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 1;
  transition: transform 0.2s ease-out;
  background: radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.08), transparent 35%),
              linear-gradient(160deg, #f6f8fc 0%, #e9eef8 100%);
}

.section-disclaimer {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.web-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
}



.web-bar {
  height: 10px;
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 12px;
}

.web-body {
  display: grid;
  gap: 10px;
}

.web-block {
  background: var(--accent-soft);
  border-radius: 12px;
  height: 36px;
}

.web-block.short {
  width: 70%;
}

#platforms {
  padding-top: 12px;
}

.platforms-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.platform-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.94));
  border: 1px solid rgba(90, 105, 142, 0.06);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  align-self: flex-start;
  flex: 1 1 320px;
}

.platform-panel::after {
  content: '';
  position: absolute;
  inset: 14px auto auto 14px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(77, 134, 255, 0.12), transparent 60%);
  filter: blur(6px);
  z-index: 0;
}

.platform-panel.web-panel::after {
  inset: auto -40px -40px auto;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.14), transparent 62%);
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.platform-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.9rem;
}

.platform-chip.alt {
  background: #eef5ff;
  color: #3a7bd5;
}

.platform-chip.ghost {
  background: rgba(59, 130, 246, 0.08);
  color: #1f2937;
}

.platform-heading h3 {
  margin: 0 0 6px;
}

.platform-body {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.platform-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.05);
  flex: 1 1 220px;
}

.benefit-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08);
}

.benefit-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.device-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.phone-shell {
  background: linear-gradient(160deg, #0f172a, #1f2937 45%, #0ea5e9 120%);
  border-radius: 30px;
  padding: 18px 14px;
  width: min(360px, 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 90px;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 14px;
}

.story-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.story-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
}

.story-content h3 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
}

.story-content p {
  color: #1f2937;
}

.story-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.story-text {
  color: var(--muted);
  font-weight: 600;
}

.story-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.story-progress {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.story-progress span {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  flex: 1 1 0;
}

.story-progress .active {
  background: #a5f3fc;
  box-shadow: 0 0 0 4px rgba(165, 243, 252, 0.2);
}

.mobile-footnote {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.web-panel {
  background: linear-gradient(145deg, #f8fbff, #ffffff);
}

.web-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.web-filters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  width: fit-content;
}

.filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1);
}

.web-shell {
  width: min(420px, 100%);
  background: #f9fbff;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.web-shell-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.web-shell-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  flex-shrink: 0;
}

.web-shell-search {
  height: 32px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-weight: 700;
  flex: 1 1 0;
}

.web-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(37, 99, 235, 0.02));
  border-radius: 12px;
  padding: 10px;
}

.web-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  min-width: 180px;
}

.web-card h3 {
  font-size: 1.05rem;
}

.web-card p {
  color: var(--muted);
  font-weight: 600;
}

.web-meta {
  color: #2563eb;
  font-weight: 800;
  font-size: 0.95rem;
}

.platform-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 1;
}

.sync-eyebrow {
  font-weight: 800;
  margin: 0 0 4px;
}

.sync-body {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.sync-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.library-section {
  padding: 0 0 20px;
}

.library-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
}

.library-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.community-invite {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.community-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(20, 184, 166, 0.08), transparent 50%),
              radial-gradient(100% 70% at 0% 20%, rgba(14, 165, 233, 0.08), transparent 50%);
}

.community-card > * {
  position: relative;
  z-index: 1;
}

.community-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #f1f6fb;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.community-icon svg {
  width: 62px;
  height: 62px;
}

.community-copy p {
  color: var(--muted);
  font-weight: 600;
}

.community-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
}

.founder-section {
  padding: 32px 0 12px;
}

.founder-card {
  background: linear-gradient(135deg, #f4f7fb, #e9f3f8);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.founder-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.founder-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(160deg, #0ea5e9, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.founder-description {
  color: var(--muted);
  font-weight: 600;
}

.founder-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.icon-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.icon-link:hover {
  transform: translateY(-1px);
  color: #0ea5e9;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

.founder-note {
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

.founder-note p {
  margin: 0;
}

.founder-note em {
  font-style: normal;
  color: var(--muted);
}

.library-preview {
  width: 100%;
  background: #ffffff;
}

.library-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.toolbar-dots {
  display: inline-flex;
  gap: 8px;
}

.toolbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.library-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.search-icon {
  font-size: 1.05rem;
  color: var(--muted);
}

.search-placeholder {
  color: var(--muted);
  font-weight: 600;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.library-card {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.library-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.library-meta {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.library-company {
  color: var(--muted);
  font-weight: 600;
}

.library-country {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grid {
  display: grid;
  gap: 20px;
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card.soft {
  background: #fcfdff;
}

.purpose-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.purpose-card {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}

.purpose-icon {
  min-width: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.purpose-icon svg {
  width: 26px;
  height: 26px;
}

.purpose-content p {
  color: var(--muted);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.card-body p {
  color: var(--muted);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 8px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 999px;
}

.timeline-step {
  position: relative;
  padding: 14px 14px 14px 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(61, 165, 199, 0.12);
}

.timeline-step h3 {
  margin: 0;
}

.timeline-step p {
  color: var(--muted);
  margin: 0;
}

.timeline .step-number {
  margin: 0;
  justify-self: start;
}

.interest-preview {
  gap: 14px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.preview-text {
  color: var(--muted);
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-results {
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.chip-results .label {
  font-weight: 800;
  margin-bottom: 8px;
}

.chip-founder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.chip-founder-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-founder-list li::before {
  content: '•';
  color: var(--accent);
  font-size: 1.2rem;
}


.selector-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selector-label {
  font-weight: 700;
  color: var(--text);
}

#industrySelect {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.bio-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.bio-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: center;
}

.bio-photo {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.bio-info h3 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.bio-info p {
  color: var(--muted);
  font-weight: 600;
}

.hint-text {
  color: var(--muted);
  font-style: italic;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 240px;
  text-align: left;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.flip-front {
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
}

.flip-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.flip-back ul {
  padding-left: 18px;
}

.flip-back li {
  margin-bottom: 6px;
}

#cta {
  padding: 0 24px 72px;
}

.cta-card {
  background: linear-gradient(150deg, #f5f8fb 0%, #eef4f8 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  box-shadow: var(--shadow-soft);
}

.cta-copy h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 8px 0 12px;
  color: var(--heading);
}

.cta-subtext {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-pill:hover,
.primary-pill:focus-visible {
  background: #0c9bcf;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent);
}

.cta-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Policy and utility pages */
.policy-wrapper,
.error-wrapper {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.policy-card,
.error-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-updated {
  color: var(--muted);
  font-weight: 600;
}

.policy-card h1,
.error-card h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-section ul {
  padding-left: 1.2em;
  color: var(--muted);
}

.policy-section li {
  margin-bottom: 6px;
}

.error-card {
  align-items: flex-start;
  gap: 12px;
}

.error-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f7f9fc;
  color: var(--text);
  font-weight: 700;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  width: min(520px, 100%);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-card .eyebrow {
  color: var(--accent);
}

.modal-card p {
  color: var(--muted);
}

.contact-email {
  font-weight: 800;
  color: var(--text);
}

footer {
  background: linear-gradient(180deg, #f9fbfd 0%, #f5f8fb 100%);
  border-top: 1px solid var(--border);
  padding: 40px 24px 36px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.footer-links a,
.footer-links button {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links button:hover,
.footer-links button:focus-visible {
  color: var(--accent-dark);
  background: rgba(14, 165, 233, 0.08);
}

.footer-note {
  max-width: 860px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.footer-inner .brand-name {
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2px 0 0;
}

.footer-inner .site-logo {
  box-shadow: none;
  background: #fff;
}

.copyright {
  color: var(--muted);
  font-size: 0.92rem;
}
