/* ============================================================
   SCRYON DESIGN SYSTEM — styles.css
   Version 2.0 | Built with precision. Designed with magic.
   ============================================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Brand Colors */
  --sapphire: #003B49;
  --emerald: #007A78;
  --ivory: #F9F8F3;
  --graphite: #1D1D1D;
  --garnet: #D3273E;
  --taupe: #776B63;

  /* Gray Scale (WCAG-compliant for text) */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --dark-bg: #001f27;
  --card-border: rgba(119, 107, 99, 0.1);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.05);
  --card-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --card-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --card-shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing (8px grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 56px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
  --duration-slow: 400ms;
  --duration-slower: 700ms;

  --nav-height: 80px;
  --nav-offset: 80px;
}

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

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

body {
  background-color: var(--ivory);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
[hidden] { display: none !important; }
input, textarea, select { font-family: inherit; font-size: 16px; }
ul, ol { list-style: none; }

/* Scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--sapphire);
}

h1 { font-size: 3rem; }        /* 48px */
h2 { font-size: 2.25rem; }     /* 36px */
h3 { font-size: 1.875rem; }    /* 30px */
h4 { font-size: 1.5rem; }      /* 24px */
h5 { font-size: 1.125rem; }    /* 18px */

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.text-large { font-size: 1.125rem; }
.text-small { font-size: 0.875rem; }  /* 14px — minimum */
.text-body { font-size: 1rem; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.text-sapphire { color: var(--sapphire); }
.text-emerald { color: var(--emerald); }
.text-garnet { color: var(--garnet); }
.text-taupe { color: var(--taupe); }
.text-ivory { color: var(--ivory); }
.text-graphite { color: var(--graphite); }

/* Micro label */
.micro-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  margin-bottom: var(--sp-3);
}

.section-label--emerald {
  color: var(--emerald);
  border-color: rgba(0, 122, 120, 0.2);
  background: rgba(0, 122, 120, 0.05);
}

.section-label--sapphire {
  color: var(--sapphire);
  border-color: rgba(0, 59, 73, 0.2);
  background: rgba(0, 59, 73, 0.05);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.container--narrow { max-width: 960px; }
.container--wide { max-width: 1440px; }

.section {
  padding: var(--sp-12) 0;
}

.section--sm { padding: var(--sp-8) 0; }
.section--lg { padding: var(--sp-16) 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.flex-1 { flex: 1; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid rgba(119, 107, 99, 0.15);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sapphire);
  transition: opacity var(--duration) var(--ease);
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 4px;
}

.nav__link {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__link:hover {
  background: white;
  color: var(--sapphire);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav__link--active {
  background: white;
  color: var(--gray-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__login {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sapphire);
  transition: color var(--duration) var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
}

.nav__login:hover { color: var(--emerald); }

/* Mobile menu */
.nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--sapphire);
  flex-shrink: 0;
  position: relative;
}

.nav__hamburger:hover {
  background: var(--gray-50);
}

.nav__hamburger-icon {
  position: absolute;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.nav__hamburger-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-icon--open {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-icon--close {
  opacity: 1;
  transform: none;
}

.nav__mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-offset);
  background: rgba(0, 31, 39, 0.45);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.nav__mobile-backdrop.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-offset);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 151;
  padding: var(--sp-2) var(--sp-3) var(--sp-4);
  padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom));
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile-link {
  padding: 14px var(--sp-2);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  min-height: 52px;
  display: flex;
  align-items: center;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav__mobile-link:hover { background: var(--gray-50); }

.nav__mobile-link--active {
  background: rgba(0, 59, 73, 0.08);
  color: var(--sapphire);
  font-weight: 700;
}

.nav__mobile-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  margin-top: auto;
  border-top: 1px solid var(--gray-200);
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--sp-2) var(--sp-3);
  min-height: 56px;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  min-width: 44px;
}

.btn--primary {
  background: var(--sapphire);
  color: white;
  border: 2px solid var(--sapphire);
}

.btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(0, 59, 73, 0.25);
  transform: translateY(-2px);
}

.btn--secondary {
  background: white;
  color: var(--sapphire);
  border: 2px solid var(--gray-200);
}

.btn--secondary:hover {
  border-color: var(--sapphire);
  background: var(--gray-50);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn--ghost:hover {
  background: var(--gray-100);
}

.btn--emerald {
  background: var(--emerald);
  color: white;
  border: 2px solid var(--emerald);
}

.btn--emerald:hover {
  opacity: 0.9;
  box-shadow: 0 8px 24px rgba(0, 122, 120, 0.25);
  transform: translateY(-2px);
}

.btn--lg {
  font-size: 1.125rem;
  padding: var(--sp-2) var(--sp-4);
  min-height: 64px;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 8px var(--sp-2);
  min-height: 44px;
}

.btn--full { width: 100%; }

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn svg,
.btn i { transition: transform var(--duration) var(--ease); }
.btn:hover svg,
.btn:hover i { transform: translateX(2px); }

/* ---------- CARDS ---------- */
.card {
  background: white;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-4);
  box-shadow: var(--card-shadow);
  transition: all var(--duration) var(--ease);
}

.card--hover:hover {
  border-color: var(--sapphire);
  box-shadow: var(--card-shadow-md);
  transform: translateY(-4px);
}

.card--lg {
  padding: var(--sp-5);
  border-radius: var(--radius-2xl);
}

.card--dark {
  background: var(--sapphire);
  border-color: rgba(0, 122, 120, 0.2);
  color: white;
}

.card--dark h3,
.card--dark h4 { color: white; }
.card--dark p { color: rgba(249, 248, 243, 0.8); }

/* Icon box inside cards */
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}

.card__icon--emerald {
  background: rgba(0, 122, 120, 0.1);
  color: var(--emerald);
}

.card__icon--sapphire {
  background: rgba(0, 59, 73, 0.1);
  color: var(--sapphire);
}

.card__icon--garnet {
  background: rgba(211, 39, 62, 0.1);
  color: var(--garnet);
}

.card__icon--white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--emerald);
}

/* ---------- PILLS & STATUS BADGES ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.pill--emerald {
  background: rgba(0, 122, 120, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(0, 122, 120, 0.2);
}

.pill--sapphire {
  background: rgba(0, 59, 73, 0.1);
  color: var(--sapphire);
  border: 1px solid rgba(0, 59, 73, 0.2);
}

.pill--garnet {
  background: rgba(211, 39, 62, 0.1);
  color: var(--garnet);
  border: 1px solid rgba(211, 39, 62, 0.2);
}

.pill--taupe {
  background: rgba(119, 107, 99, 0.1);
  color: var(--taupe);
  border: 1px solid rgba(119, 107, 99, 0.2);
}

.pill--solid-sapphire {
  background: var(--sapphire);
  color: white;
  border: none;
}

/* ---------- FORMS & INPUTS ---------- */
.form-group {
  margin-bottom: var(--sp-3);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px var(--sp-2);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--graphite);
  background: white;
  transition: all var(--duration) var(--ease);
}

.form-input:focus {
  outline: none;
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(0, 59, 73, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #b91c1c;
}

/* ---------- TABLES ---------- */
.table-container {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.table th {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.table td {
  padding: var(--sp-2) var(--sp-3);
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
  min-height: 56px;
}

.table tbody tr:nth-child(even) {
  background: rgba(119, 107, 99, 0.03);
}

.table tbody tr {
  transition: background var(--duration) var(--ease);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

/* ---------- GLASSMORPHISM & DEPTH ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb--emerald {
  background: var(--emerald);
  opacity: 0.1;
  filter: blur(100px);
}

.orb--sapphire {
  background: var(--sapphire);
  opacity: 0.08;
  filter: blur(100px);
}

.orb--white {
  background: white;
  opacity: 0.05;
  filter: blur(80px);
}

.glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass--dark {
  background: rgba(0, 31, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Dot grid background */
.bg-dots {
  background-image: radial-gradient(circle at 50% 50%, var(--sapphire) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.03;
}

.bg-grid {
  background-image: linear-gradient(var(--emerald) 1px, transparent 1px),
                     linear-gradient(90deg, var(--emerald) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
}

/* ---------- SECTIONS ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--sp-12) 0;
}

.hero--dark {
  background: var(--sapphire);
  color: white;
}

.hero--dark h1,
.hero--dark h2 { color: var(--ivory); }
.hero--dark p { color: rgba(249, 248, 243, 0.8); }

.section--ivory { background: var(--ivory); }
.section--white { background: white; }
.section--sapphire { background: var(--sapphire); color: white; }
.section--sapphire h2,
.section--sapphire h3 { color: var(--ivory); }
.section--sapphire p { color: rgba(249, 248, 243, 0.8); }
.section--dark { background: var(--dark-bg); color: white; }

.section__header {
  text-align: center;
  margin-bottom: var(--sp-8);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section__header h2 { margin-bottom: var(--sp-2); }
.section__header p {
  font-size: 1.125rem;
  color: var(--taupe);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark-bg);
  color: white;
  padding: var(--sp-8) 0 var(--sp-4);
  border-top: 1px solid rgba(0, 122, 120, 0.2);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}

.footer__brand p {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: var(--sp-2);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: var(--sp-2);
}

.footer__link {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-300);
  padding: 6px 0;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.footer__link:hover { color: var(--emerald); }

.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-family: monospace;
}

/* ---------- MODAL ---------- */
dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 480px;
  width: 90%;
  margin: auto;
  border-radius: var(--radius-2xl);
}

dialog::backdrop {
  background: rgba(0, 31, 39, 0.7);
  backdrop-filter: blur(6px);
}

.modal {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--sp-5);
  box-shadow: var(--card-shadow-xl);
  border: 2px solid var(--gray-100);
}

.modal__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-50);
  color: var(--gray-400);
  transition: all var(--duration) var(--ease);
}

.modal__close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-radar { animation: radarSpin 8s linear infinite; }
.animate-pulse-slow { animation: pulse 3s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* ---------- FEATURE BLOCKS ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature__content h2 {
  margin-bottom: var(--sp-3);
}

.feature__content h3 {
  margin-bottom: var(--sp-2);
}

.feature__content p {
  font-size: 1.125rem;
  color: var(--taupe);
  margin-bottom: var(--sp-3);
  line-height: 1.7;
}

.feature__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.feature__check {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: var(--sp-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  box-shadow: var(--card-shadow);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.feature__check svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* Step indicator */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--emerald) 0%,
    var(--sapphire) 100%
  );
  opacity: 0.15;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--sp-3);
  border: 4px solid white;
  box-shadow: 0 0 20px rgba(0, 59, 73, 0.2);
  color: white;
}

.step__number--1 { background: var(--sapphire); }
.step__number--2 { background: var(--emerald); }
.step__number--3 { background: var(--garnet); }

.step h4 {
  font-family: var(--font-sans);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ---------- STAT COUNTERS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.stat {
  text-align: center;
  padding: var(--sp-4);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--taupe);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- CIRCULAR PROGRESS ---------- */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.score-ring__value {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-family: var(--font-sans);
}

/* ---------- BROWSER FRAME (Product Mockup) ---------- */
.browser-frame {
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--sp-1) var(--sp-1) 0;
  box-shadow: var(--card-shadow-lg);
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.browser-frame__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
}

.browser-frame__dot--red { background: #FF5F57; }
.browser-frame__dot--yellow { background: #FEBC2E; }
.browser-frame__dot--green { background: #28C840; }

.browser-frame__url {
  flex: 1;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--gray-600);
  font-family: monospace;
}

.browser-frame__content {
  background: var(--ivory);
  min-height: 300px;
  overflow: hidden;
}

/* ---------- INTEGRATION CARDS ---------- */
.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-4);
  background: white;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration) var(--ease);
}

.integration-card:hover {
  border-color: var(--sapphire);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-md);
}

.integration-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  font-size: 2rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
}

.integration-card__name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--sapphire);
  margin-bottom: 8px;
}

.integration-card__desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-item {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-2);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}

.faq-item:hover { border-color: var(--sapphire); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--sp-3);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sapphire);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  cursor: pointer;
  background: white;
  border: none;
  font-family: var(--font-sans);
}

.faq-question svg {
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
  color: var(--taupe);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  padding: 0 var(--sp-3);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 var(--sp-3) var(--sp-3);
}

.faq-answer p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ---------- RESPONSIVE LAYOUT UTILITIES ---------- */
.layout-split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

.layout-split--hero {
  grid-template-columns: 1fr 1.15fr;
  gap: var(--sp-6);
}

.layout-split--equal {
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.layout-split--wide-right {
  grid-template-columns: 1fr 1.35fr;
  gap: var(--sp-5);
}

.layout-split--sidebar {
  grid-template-columns: 240px 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.layout-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.layout-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.hero-title--md {
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  line-height: 1.12;
}

.section-title-lg {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.text-balance { text-wrap: balance; }

/* Stack multi-column inline grids in main content areas */
@media (max-width: 1024px) {
  .layout-split,
  .layout-split--hero,
  .layout-split--equal,
  .layout-split--wide-right,
  .layout-split--sidebar {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .layout-grid-3,
  .layout-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero .container > div[style*="grid-template-columns"]:not(.no-stack),
  .section .container > div[style*="grid-template-columns"]:not(.no-stack),
  .section .container > .reveal[style*="grid-template-columns"]:not(.no-stack) {
    grid-template-columns: 1fr !important;
    gap: var(--sp-4) !important;
  }

  .hero .container > div[style*="grid-template-columns: 1fr auto"],
  .section .container > div[style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  h1[style*="font-size: 3"] {
    font-size: clamp(1.875rem, 7vw, 2.5rem) !important;
    line-height: 1.12 !important;
  }

  h2[style*="font-size: 2.5rem"] {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .map-bento {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .section .container div[style*="grid-template-columns: repeat(3"],
  .section .container div[style*="grid-template-columns: repeat(4"],
  .section .container div[style*="grid-template-columns: 1fr 1fr 1fr"],
  .section .container div[style*="grid-template-columns: 1fr 1fr"],
  .section .container div[style*="grid-template-columns: 300px"],
  .section .container div[style*="grid-template-columns: 1fr auto 1fr"],
  .section .container div[style*="grid-template-columns: 1fr auto"],
  .browser-frame div[style*="grid-template-columns"],
  .screen-frame div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .section .container div[style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

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

  .screen-frame__viewport[style*="overflow: visible"] {
    overflow: hidden !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root {
    --nav-height: 64px;
    --nav-offset: 64px;
  }

  .nav__inner {
    padding: 0 var(--sp-2);
  }

  .nav__logo-text {
    font-size: 1.25rem;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__cta-desktop { display: none; }
  .nav__login { display: none; }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }

  .hero { min-height: auto; padding: var(--sp-8) 0; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .feature-row { grid-template-columns: 1fr; gap: var(--sp-4); }
  .feature-row--reverse { direction: ltr; }

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .stats { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .container { padding: 0 var(--sp-2); }

  .section__header p {
    font-size: 1rem;
  }

  .feature__content p {
    font-size: 1rem;
  }

  .stat__number {
    font-size: 2.25rem;
  }
}

.subnav-sticky {
  top: var(--nav-height);
}

@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
    --nav-offset: calc(60px + env(safe-area-inset-top, 0px));
  }

  .nav {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .nav__inner {
    height: var(--nav-height);
  }

  .hero[style*="min-height"] {
    min-height: auto !important;
  }

  .hero p[style*="font-size: 1.25rem"],
  .hero p[style*="font-size: 1.125rem"],
  .section p[style*="font-size: 1.25rem"] {
    font-size: 1rem !important;
    margin-bottom: 24px !important;
  }

  .hero .btn--lg,
  .hero .btn--primary,
  .section--sapphire .btn--lg,
  .cta-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  h2[style*="font-size: 2.75rem"] {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }

  .section { padding: var(--sp-8) 0; }
  .section--lg { padding: var(--sp-10) 0; }

  .footer__grid { grid-template-columns: 1fr; }

  .btn--lg { font-size: 1rem; padding: var(--sp-2) var(--sp-3); min-height: 56px; }

  .hero {
    padding: var(--sp-6) 0;
  }

  .map-bento {
    height: 280px;
  }

  .pill {
    font-size: 0.8125rem;
    padding: 6px 12px;
    white-space: normal;
    text-align: center;
  }

  .browser-frame__bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .browser-frame__url {
    min-width: 0;
    font-size: 0.625rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .browser-frame__content[style*="padding"] {
    padding: 16px !important;
  }

  .screen-frame__url {
    font-size: 0.5625rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .screen-frame__viewport {
    padding: 12px;
    min-height: 240px;
  }

  .card--lg {
    padding: var(--sp-3);
  }

  .mkt-seg-metrics {
    grid-template-columns: 1fr;
  }

  .scry-tab {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.5625rem;
  }

  .org-sponsor-row {
    flex-wrap: wrap !important;
  }

  .org-sponsor-row .org-invite-btn {
    width: 100%;
    text-align: center;
    margin-top: 6px;
    padding: 8px 10px;
  }

  .company-dash__grid {
    grid-template-columns: 1fr;
  }

  #svg2 {
    max-width: 100%;
    height: auto;
  }

  dialog {
    width: calc(100% - var(--sp-2));
    max-width: none;
    margin: var(--sp-2) auto;
  }

  .modal {
    padding: var(--sp-3);
  }

  #tab-chat .container[style*="min-height"] {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  #tab-chat textarea {
    font-size: 16px;
  }
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: var(--sp-3);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 48px;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--sapphire);
  box-shadow: 0 0 0 4px rgba(0, 59, 73, 0.08);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23776B63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- CARD VARIANTS ---------- */
.card--dark {
  background: var(--sapphire);
  border-color: rgba(0, 122, 120, 0.15);
  color: white;
}

.card--dark p {
  color: rgba(249, 248, 243, 0.7);
}

/* ---------- BUTTON VARIANTS ---------- */
.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--icon {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- PILL VARIANTS ---------- */
.pill--solid-sapphire {
  background: var(--sapphire);
  color: white;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill--garnet {
  background: rgba(211, 39, 62, 0.08);
  color: var(--garnet);
  border: 1px solid rgba(211, 39, 62, 0.15);
}

.pill--taupe {
  background: rgba(119, 107, 99, 0.08);
  color: var(--taupe);
  border: 1px solid rgba(119, 107, 99, 0.15);
}

/* ---------- TABLE ---------- */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

/* ---------- MICRO LABELS ---------- */
.micro-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

/* ---------- NARROW CONTAINER ---------- */
.container--narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ---------- NO SCROLLBAR ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- UTILITY ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bg-ivory { background: var(--ivory); }
.bg-white { background: white; }
.bg-sapphire { background: var(--sapphire); }
.bg-dark { background: var(--dark-bg); }

.border-bottom { border-bottom: 1px solid var(--gray-200); }
.border-top { border-top: 1px solid var(--gray-200); }

/* ---------- SCRYING ENGINE MAP ---------- */
.map-bento {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: var(--sapphire);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 59, 73, 0.4);
    border: 3px solid rgba(255,255,255,0.15);
}

#scrying-engine {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.map-ui-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}

.map-pin:hover { z-index: 20; }

.map-pin__dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.map-pin:hover .map-pin__dot { transform: scale(1.3); }

.map-pin__dot--hot {
    background: var(--emerald);
    box-shadow: 0 0 15px var(--emerald);
    animation: map-radar-pulse 2s infinite;
}

.map-pin__dot--cold {
    background: var(--garnet);
    box-shadow: 0 0 12px var(--garnet);
}

@keyframes map-radar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,122,120,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0,122,120,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,122,120,0); }
}

.map-pin__panel {
    position: absolute;
    background: rgba(0,59,73,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.map-pin__panel--pos-bottom {
    top: 24px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    transform-origin: top center;
}
.map-pin__panel--pos-bottom.is-open { transform: translateX(-50%) scale(1); }

.map-pin__panel--pos-top {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    transform-origin: bottom center;
}
.map-pin__panel--pos-top.is-open { transform: translateX(-50%) scale(1); }

.map-pin__panel--pos-right {
    left: 24px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transform-origin: center left;
}
.map-pin__panel--pos-right.is-open { transform: translateY(-50%) scale(1); }

.map-pin__panel--pos-left {
    right: 24px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transform-origin: center right;
}
.map-pin__panel--pos-left.is-open { transform: translateY(-50%) scale(1); }

.map-pin__panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.map-pin__panel--hot { border: 1px solid rgba(0,122,120,0.35); }
.map-pin__panel--cold { border: 1px solid rgba(211,39,62,0.35); }

.map-pin__type {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 2px;
}

.map-pin__score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

.map-pin__score--hot { background: rgba(0,122,120,0.2); color: var(--emerald); }
.map-pin__score--cold { background: rgba(211,39,62,0.2); color: var(--garnet); }
.map-pin__score svg { width: 12px; height: 12px; }

/* ---------- MODAL FORM REDESIGN ---------- */
dialog {
  max-width: 560px;
}

.modal-goal-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-goal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: white;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
}

.modal-goal-option:hover {
  border-color: var(--gray-300);
}

.modal-goal-option.is-selected {
  border-color: var(--sapphire);
  color: var(--sapphire);
  background: rgba(0, 59, 73, 0.02);
}

.modal-goal-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.modal-goal-option.is-selected input[type="radio"] {
  border-color: var(--sapphire);
  background: var(--sapphire);
}

.modal-goal-option.is-selected input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.modal-goal-info {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
  cursor: help;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-how-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
  background: none;
  border: none;
  width: 100%;
}

.modal-how-toggle:hover {
  color: var(--gray-600);
}

.modal-how-toggle svg {
  transition: transform var(--duration) var(--ease);
}

.modal-how-toggle.is-open svg {
  transform: rotate(180deg);
}

.modal-how-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  text-align: center;
}

.modal-how-content.is-open {
  max-height: 200px;
  padding-top: 8px;
}

.modal-how-content p {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- CARD DARK HOVER OUTLINE ---------- */
.card--dark.card--hover:hover {
  border-color: rgba(0, 122, 120, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 122, 120, 0.25), var(--card-shadow-md);
}

/* ---------- COMPANY INTELLIGENCE BLOCK ---------- */
.intel-block {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 32px;
  border: 2px solid var(--card-border);
  box-shadow: var(--card-shadow-lg);
  max-width: 520px;
  margin: 0 auto;
}

.intel-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: 16px;
}

.intel-section-title svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.intel-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.intel-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--emerald);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.intel-product-item svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.intel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.intel-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  background: white;
  transition: all var(--duration) var(--ease);
}

.intel-tag--lg {
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 18px;
  color: var(--sapphire);
}

.intel-tag--emerald {
  color: var(--emerald);
  border-color: rgba(0, 122, 120, 0.2);
  background: rgba(0, 122, 120, 0.04);
}

.intel-tag--taupe {
  color: var(--taupe);
  border-color: rgba(119, 107, 99, 0.2);
  background: rgba(119, 107, 99, 0.04);
}

.intel-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 16px;
}

.intel-tab {
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-400);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.intel-tab--active {
  color: var(--sapphire);
  border-bottom-color: var(--emerald);
}

.intel-attendee {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  margin-bottom: 8px;
  transition: all var(--duration) var(--ease);
}

.intel-attendee:hover {
  border-color: var(--gray-200);
  box-shadow: var(--card-shadow);
}

.intel-attendee__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}

.intel-attendee__info {
  flex: 1;
}

.intel-attendee__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sapphire);
}

.intel-attendee__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.intel-attendee__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.intel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  border: none;
}

.intel-btn--primary {
  background: var(--sapphire);
  color: white;
}

.intel-btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(0, 59, 73, 0.25);
}

.intel-btn--ghost {
  background: white;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.intel-btn--ghost:hover {
  border-color: var(--sapphire);
  color: var(--sapphire);
}

/* ---------- HERO MOCKUP CARD ---------- */
.hero-mockup {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 0;
  border: 2px solid var(--card-border);
  box-shadow: var(--card-shadow-xl);
  overflow: hidden;
  max-width: 800px;
  margin: 48px auto 0;
}

.hero-mockup__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

.hero-mockup__image {
  background: linear-gradient(135deg, var(--sapphire) 0%, var(--emerald) 100%);
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-mockup__image svg {
  opacity: 0.15;
  width: 80px;
  height: 80px;
}

.hero-mockup__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.hero-mockup__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-mockup__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.hero-mockup__kpi {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--gray-100);
}

.hero-mockup__kpi-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.hero-mockup__kpi-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sapphire);
}

.hero-mockup__actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
}

@media (max-width: 640px) {
  .hero-mockup__inner {
    grid-template-columns: 1fr;
  }
  .hero-mockup__image {
    min-height: 120px;
  }
  .hero-mockup__kpis {
    grid-template-columns: 1fr;
  }
  .hero-mockup__actions {
    grid-template-columns: 1fr;
  }
  .modal-row {
    grid-template-columns: 1fr;
  }
  .modal-goal-toggle {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SCREEN FRAME — Animated Hero Mockup
   ============================================ */
.screen-frame {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,59,73,0.12), 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.screen-frame__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.screen-frame__dots {
  display: flex;
  gap: 6px;
}

.screen-frame__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
}

.screen-frame__dots span:first-child { background: #FF5F57; }
.screen-frame__dots span:nth-child(2) { background: #FFBD2E; }
.screen-frame__dots span:last-child { background: #28CA41; }

.screen-frame__url {
  flex: 1;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.screen-frame__viewport {
  position: relative;
  padding: 20px;
  min-height: 310px;
  overflow: hidden;
}

.screen-panel {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.screen-panel--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

/* "View Full Report" CTA inside the screen */
.screen-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 20px;
  background: var(--sapphire);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: default;
  transition: all 0.3s ease;
  position: relative;
}

/* Animated cursor dot */
.screen-cta__cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.screen-cta__cursor svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.screen-cta--clicking {
  transform: scale(0.96);
  filter: brightness(1.1);
  box-shadow: 0 0 0 3px rgba(0,59,73,0.2);
}

/* Scroll-up animation inside panels */
@keyframes scrollUpReveal {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Progress bar fill animation */
@keyframes fillBar {
  from { width: 0; }
}

.screen-signal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.screen-signal-bar__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-700);
  min-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-signal-bar__track {
  flex: 1;
  height: 7px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}

.screen-signal-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--emerald);
  animation: fillBar 1s ease-out forwards;
}

.screen-signal-bar__value {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--emerald);
  min-width: 26px;
  text-align: right;
}

/* Mini company row inside screen panel */
.screen-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  margin-bottom: 6px;
  cursor: default;
  transition: all 0.2s ease;
}

.screen-company-row--highlight {
  background: rgba(0,122,120,0.04);
  border-color: var(--emerald);
}

.screen-company-row__name {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sapphire);
}

.screen-company-row__score {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 800;
  border: 2px solid;
}

.screen-company-row__score--high {
  color: var(--emerald);
  border-color: var(--emerald);
  background: rgba(0,122,120,0.06);
}

.screen-company-row__score--mid {
  color: var(--taupe);
  border-color: var(--taupe);
  background: rgba(119,107,99,0.06);
}

.screen-company-row__pipeline {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-700);
  min-width: 56px;
  text-align: right;
}

/* ============================================
   COMPACT COMPANY DASHBOARD
   ============================================ */
.company-dash {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 0;
  border: 2px solid var(--card-border);
  box-shadow: var(--card-shadow-lg);
  max-width: 580px;
  margin: 0 auto;
  overflow: hidden;
}

.company-dash__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.company-dash__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--sapphire);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.company-dash__title {
  flex: 1;
  min-width: 0;
}

.company-dash__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sapphire);
  margin-bottom: 3px;
}

.company-dash__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.6875rem;
  color: var(--gray-500);
}

.company-dash__meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.company-dash__fit {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-dash__fit-num {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
}

.company-dash__fit-label {
  font-size: 0.375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  line-height: 1;
  margin-top: 1px;
}

.company-dash__body {
  padding: 16px 24px 20px;
}

.company-dash__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.company-dash__tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(0,122,120,0.08);
  color: var(--emerald);
  border: 1px solid rgba(0,122,120,0.15);
}

.company-dash__insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,122,120,0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--emerald);
  margin-bottom: 16px;
}

.company-dash__insight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  margin-top: 4px;
}

.company-dash__insight p {
  font-size: 0.75rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin: 0;
}

.company-dash__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.company-dash__stat {
  padding: 8px 10px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}

.company-dash__stat-label {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.company-dash__stat-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sapphire);
}

.company-dash__section-title {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-dash__tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.company-dash__tech-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  background: white;
}

.company-dash__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.company-dash__product-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--emerald);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.company-dash__signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.company-dash__signal-tag {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  border: 1px solid rgba(0,122,120,0.2);
  color: var(--emerald);
  background: rgba(0,122,120,0.04);
}

.company-dash__attendees {
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.company-dash__attendee {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.company-dash__attendee:hover {
  background: var(--gray-50);
}

.company-dash__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}

.company-dash__attendee-info {
  flex: 1;
}

.company-dash__attendee-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sapphire);
}

.company-dash__attendee-role {
  font-size: 0.625rem;
  color: var(--gray-500);
}

.company-dash__outreach-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--sapphire);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.5625rem;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================
   DARK CHAT VISUAL
   ============================================ */
.chat-visual {
  background: var(--dark-bg);
  border-radius: var(--radius-2xl);
  padding: 24px;
  border: 1px solid rgba(0,122,120,0.15);
  box-shadow: var(--card-shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.chat-visual .orb {
  opacity: 0.06;
}

.chat-visual__bot-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.chat-visual__bot-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-visual__bot-bubble {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  flex: 1;
  border: 1px solid var(--gray-200);
}

.chat-visual__bot-bubble p {
  font-size: 0.9375rem;
  color: var(--graphite);
  margin: 0;
  line-height: 1.5;
}

.chat-visual__user-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: flex-end;
}

.chat-visual__user-bubble {
  background: var(--sapphire);
  border-radius: var(--radius-md);
  padding: 16px;
  max-width: 70%;
  color: white;
}

.chat-visual__user-bubble p {
  font-size: 0.9375rem;
  margin: 0;
  color: white;
}

.chat-visual__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

@media (max-width: 768px) {
  .screen-frame__viewport {
    min-height: 280px;
    padding: 16px;
  }

  .screen-frame__viewport[style*="padding: 24px"] {
    padding: 12px !important;
  }

  .company-dash__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-dash__two-col {
    grid-template-columns: 1fr;
  }

  .chat-visual__user-bubble {
    max-width: 85%;
  }
}

/* CTA dual-button row */
.cta-actions {
  width: 100%;
}

@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
  }
}

/* ---- Privacy / legal page ---- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1.125rem; margin-top: 32px; margin-bottom: 12px; font-family: var(--font-sans); }
.legal-content p { font-size: 1rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { font-size: 1rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 8px; list-style: disc; }
.legal-toc { position: sticky; top: 104px; }
.legal-toc a { display: block; padding: 8px 16px; font-size: 0.875rem; font-weight: 600; color: var(--gray-600); border-radius: var(--radius-sm); transition: all var(--duration) var(--ease); min-height: 40px; display: flex; align-items: center; }
.legal-toc a:hover { background: var(--gray-100); color: var(--sapphire); }
@media (max-width: 1024px) {
  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--gray-200);
  }
  .legal-toc a {
    padding: 8px 12px;
    min-height: 44px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
  }
}

/* ---- Events directory page ---- */
.event-card {
  background: white;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.event-card:hover {
  border-color: var(--sapphire);
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-4px);
}
.event-card__hero {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card__hero--1 { background: linear-gradient(135deg, var(--emerald), var(--sapphire)); }
.event-card__hero--2 { background: linear-gradient(135deg, var(--sapphire), var(--dark-bg)); }
.event-card__hero--3 { background: linear-gradient(135deg, #1a4a5e, var(--sapphire)); }
.event-card__dots {
  position: absolute; inset: 0; opacity: 0.15;
  background-image: radial-gradient(circle at 50% 50%, white 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.event-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.event-card__tags { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.event-card__tag {
  font-size: 0.8125rem; font-weight: 600; padding: 4px 12px;
  background: var(--gray-50); color: var(--gray-600); border-radius: var(--radius-sm);
}
.event-card__hidden {
  position: absolute; bottom: 12px; right: 12px; z-index: 20;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 6px;
}
.match-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.match-pill--hot { background: rgba(0,122,120,0.1); color: var(--emerald); border: 1px solid rgba(0,122,120,0.2); }
.match-pill--warm { background: rgba(119,107,99,0.1); color: var(--taupe); border: 1px solid rgba(119,107,99,0.2); }
.tab-btn { padding: 12px 24px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.875rem; min-height: 44px; transition: all var(--duration) var(--ease); }
@media (max-width: 640px) {
  .tab-btn { padding: 10px 16px; font-size: 0.8125rem; flex: 1; min-width: 140px; }
}
.tab-btn--active { background: var(--sapphire); color: white; }
.tab-btn--inactive { background: var(--gray-100); color: var(--gray-600); }
.tab-btn--inactive:hover { background: var(--gray-200); }

/* ---- Sales hero (scry-* tab animation) ---- */
    @keyframes scryScoreRing {
        from {
            stroke-dasharray: 0 107;
        }

        to {
            stroke-dasharray: 100.6 6.4;
        }
    }

    .scry-panel {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 14px 16px;
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
        transform: translateY(6px);
        pointer-events: none;
    }

    .scry-panel.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .scry-tab {
        padding: 9px 12px;
        font-size: 0.625rem;
        font-weight: 700;
        color: var(--gray-400);
        cursor: default;
        position: relative;
        transition: color 0.3s;
    }

    .scry-tab.active {
        color: var(--sapphire);
    }

    .scry-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--sapphire);
        border-radius: 2px 2px 0 0;
    }

    .scry-book-btn {
        padding: 3px 9px;
        background: var(--emerald);
        color: white;
        border-radius: var(--radius-sm);
        font-size: 0.5625rem;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .scry-signal {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        font-size: 0.625rem;
        color: var(--gray-600);
        line-height: 1.4;
        margin-bottom: 5px;
    }

    .scry-signal-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--emerald);
        flex-shrink: 0;
        margin-top: 3px;
    }

/* ---- Organizers hero (org-sponsor-*) ---- */
    .org-sponsor-row {
        transition: all 0.25s ease;
        cursor: default;
    }

    .org-sponsor-row:hover {
        border-color: rgba(0, 122, 120, 0.3) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    }

    .org-invite-btn {
        padding: 4px 10px;
        background: var(--emerald);
        color: white;
        border-radius: var(--radius-sm);
        font-size: 0.5625rem;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .org-sponsor-row:hover .org-invite-btn {
        background: var(--sapphire);
    }

/* ---- Marketing hero (mkt-* screen animation) ---- */
.mkt-screen {
    position: absolute;
    inset: 0;
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease, transform .5s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.mkt-screen::-webkit-scrollbar {
    display: none;
}

.mkt-screen.active {
    opacity: 1;
    transform: translateY(0);
}

.mkt-screen .si {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}

.mkt-screen.active .si {
    opacity: 1;
    transform: translateY(0);
}

.mkt-screen.active .si:nth-child(1) {
    transition-delay: .1s
}

.mkt-screen.active .si:nth-child(2) {
    transition-delay: .2s
}

.mkt-screen.active .si:nth-child(3) {
    transition-delay: .25s
}

.mkt-screen.active .si:nth-child(4) {
    transition-delay: .35s
}

.mkt-screen.active .si:nth-child(5) {
    transition-delay: .45s
}

.mkt-screen.active .si:nth-child(6) {
    transition-delay: .55s
}

.mkt-screen.active .si:nth-child(7) {
    transition-delay: .65s
}

.mkt-screen.active .si:nth-child(8) {
    transition-delay: .75s
}

.mkt-screen.active .si:nth-child(9) {
    transition-delay: .85s
}

.mkt-screen.active .si:nth-child(10) {
    transition-delay: .95s
}

.mkt-hbar {
    height: 6px;
    border-radius: 99px;
    background: var(--gray-100);
    overflow: hidden;
}

.mkt-hbar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width .8s cubic-bezier(.4, 0, .2, 1);
}

.mkt-screen.active .mkt-hbar-fill {
    width: var(--w);
}

.mkt-lbl {
    font-size: .4375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-400);
}

.mkt-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: .875rem;
    color: var(--sapphire);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.mkt-seg {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.mkt-seg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mkt-seg-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mkt-seg-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mkt-seg-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.mkt-seg-metric {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    text-align: center;
    border: 1px solid var(--gray-100);
}

.mkt-seg-metric.accent {
    background: rgba(0, 122, 120, .05);
    border-color: rgba(0, 122, 120, .2);
}

.mkt-seg-metric .v {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: .6875rem;
    color: var(--sapphire);
}

.mkt-seg-metric.accent .v {
    color: var(--emerald);
}

.mkt-seg-metric .l {
    font-size: .375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
}

.mkt-seg-metric.accent .l {
    color: var(--emerald);
}

.mkt-slider {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mkt-slider-track {
    flex: 1;
    height: 4px;
    background: var(--gray-100);
    border-radius: 99px;
    position: relative;
}

.mkt-slider-fill {
    height: 100%;
    border-radius: 99px;
    position: absolute;
    left: 0;
    top: 0;
}

.mkt-slider-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    position: absolute;
    top: -3px;
}

.mkt-wc-word {
    opacity: 0;
    transform: scale(.8);
    transition: opacity .3s ease, transform .3s ease;
}

.mkt-screen.active .mkt-wc-word:nth-child(1) {
    transition-delay: .15s
}

.mkt-screen.active .mkt-wc-word:nth-child(2) {
    transition-delay: .25s
}

.mkt-screen.active .mkt-wc-word:nth-child(3) {
    transition-delay: .35s
}

.mkt-screen.active .mkt-wc-word:nth-child(4) {
    transition-delay: .45s
}

.mkt-screen.active .mkt-wc-word:nth-child(5) {
    transition-delay: .55s
}

.mkt-screen.active .mkt-wc-word:nth-child(6) {
    transition-delay: .65s
}

.mkt-screen.active .mkt-wc-word:nth-child(7) {
    transition-delay: .75s
}

.mkt-screen.active .mkt-wc-word:nth-child(8) {
    transition-delay: .85s
}

.mkt-screen.active .mkt-wc-word:nth-child(9) {
    transition-delay: .95s
}

.mkt-screen.active .mkt-wc-word:nth-child(10) {
    transition-delay: 1.05s
}

.mkt-screen.active .mkt-wc-word {
    opacity: 1;
    transform: scale(1);
}

@keyframes mktPulse {

    0%,
    100% {
        opacity: .6
    }

    50% {
        opacity: 1
    }
}

.mkt-dot {
    border-radius: 50%;
    position: absolute;
    animation: mktPulse 2s ease-in-out infinite;
}

/* ---- Marketing world map (svg2) ---- */
#svg2 path {
    fill: #ebebe5;
    stroke: #ffffff;
    stroke-width: 0.5px;
}

#svg2 #usa,
#svg2 #canada,
#svg2 #alaska,
#svg2 #hawaii {
    fill: #1A4B56 !important;
}

#svg2 #china,
#svg2 #australia,
#svg2 #brazil,
#svg2 #argentina,
#svg2 #mexico,
#svg2 #india,
#svg2 #sumatra,
#svg2 #java,
#svg2 #kalimantan,
#svg2 #sulawesi,
#svg2 #saudi,
#svg2 #chile,
#svg2 #peru,
#svg2 #colombia,
#svg2 #venezuela,
#svg2 #iran,
#svg2 #turkey,
#svg2 #honshu,
#svg2 #hokkaido,
#svg2 #kyushu,
#svg2 #shikoku,
#svg2 #south\ korea,
#svg2 #pakistan,
#svg2 #algeria,
#svg2 #nigeria,
#svg2 #south\ africa,
#svg2 #thailand,
#svg2 #vietnam,
#svg2 #egypt,
#svg2 #tasmania,
#svg2 #new\ zealand\ north\ island,
#svg2 #new\ zealand\ south\ island {
    fill: #72969C !important;
}

#svg2 #france,
#svg2 #germany,
#svg2 #ukraine,
#svg2 #poland,
#svg2 #italy,
#svg2 #uk,
#svg2 #spain,
#svg2 #sweden,
#svg2 #norway,
#svg2 #finland {
    fill: #1A4B56 !important;
}

#svg2 #russia {
    fill: #ebebe5 !important;
}

/* ---- Pricing page ---- */
.container--pricing {
  max-width: 1080px;
}

.pricing-header__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-sh {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.pricing-sh h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--sapphire);
  margin-bottom: var(--sp-2);
}

.pricing-sh p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--taupe);
  max-width: 560px;
  margin: 0 auto;
}

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

.pricing-hiw-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.pricing-hiw-card:hover {
  box-shadow: var(--card-shadow-md);
  transform: translateY(-2px);
}

.pricing-hiw-card--ai:hover {
  border-color: var(--emerald);
  box-shadow: 0 8px 24px rgba(0, 122, 120, 0.12);
}

.pricing-hiw-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--sapphire);
  margin-bottom: 10px;
}

.pricing-hiw-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.pricing-hiw-unit {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pricing-topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-topup {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}

.pricing-topup:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-lg);
}

.pricing-topup--featured {
  border: 2px solid var(--emerald);
}

.pricing-topup-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-topup-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--sapphire);
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-topup-price span {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-topup-credits {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--graphite);
  margin-bottom: 6px;
}

.pricing-topup-desc {
  font-size: 0.9375rem;
  color: var(--taupe);
  line-height: 1.5;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-custom {
  background: var(--sapphire);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pricing-custom__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--emerald);
  opacity: 0.12;
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.pricing-custom-header {
  text-align: center;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}

.pricing-custom-header h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 2.375rem;
  margin-bottom: 14px;
}

.pricing-custom-header p {
  color: rgba(249, 248, 243, 0.75);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-custom-body {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  align-items: center;
}

.pricing-custom-body h3 {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-custom-body > div > p {
  color: rgba(249, 248, 243, 0.75);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.pricing-feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.96875rem;
  color: #fff;
  line-height: 1.45;
}

.pricing-feat-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 122, 120, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-custom-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.pricing-custom-btn {
  background: #fff;
  color: var(--sapphire);
  font-size: 1rem;
  padding: 16px 32px;
  min-height: 56px;
  border: none;
}

.pricing-custom-btn:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.pricing-custom-cta p {
  color: rgba(249, 248, 243, 0.55);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .pricing-hiw-grid,
  .pricing-topup-grid,
  .pricing-custom-body {
    grid-template-columns: 1fr;
  }

  .pricing-custom {
    padding: 40px 24px;
  }

  .pricing-custom-header h2 {
    font-size: 1.875rem;
  }
}

/* ---- Cal.com scheduling modal ---- */
.scheduling-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.scheduling-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.scheduling-modal-open {
  overflow: hidden;
}

.scheduling-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: color-mix(in srgb, var(--sapphire) 55%, transparent);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.scheduling-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  max-height: min(92vh, 760px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--linen);
  box-shadow: 0 24px 48px rgba(0, 59, 73, 0.18);
  transform: translateY(0.75rem) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.scheduling-modal.is-open .scheduling-modal__panel {
  transform: translateY(0) scale(1);
}

.scheduling-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--taupe);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.scheduling-modal__close:hover {
  background: var(--gray-200);
  color: var(--sapphire);
}

.scheduling-modal__header {
  padding: 2rem 2rem 1rem;
  padding-right: 3.5rem;
}

.scheduling-modal__header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sapphire);
  margin-bottom: 0.5rem;
}

.scheduling-modal__header p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--taupe);
  margin: 0;
}

.scheduling-modal__frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  padding: 0 1.25rem;
}

.scheduling-modal__iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 520px;
  height: min(600px, calc(92vh - 12rem));
  border: none;
  border-radius: var(--radius-md);
  background: white;
}

.scheduling-modal__hint {
  max-width: 22rem;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  color: var(--taupe);
}

.scheduling-modal__external {
  display: inline-flex;
  align-self: center;
  margin: 0.5rem auto 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.scheduling-modal__external:hover {
  border-color: var(--emerald);
  background: var(--gray-50);
}

/* ---------- BLOG ---------- */
.blog-header,
.blog-post-header {
  padding: var(--sp-10) 0 var(--sp-6);
  border-bottom: 1px solid var(--gray-200);
}

.blog-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: var(--sp-2);
}

.blog-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.blog-eyebrow a:hover {
  text-decoration: underline;
}

.blog-lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin-top: var(--sp-2);
}

.blog-list-section {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-10);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.blog-search {
  position: relative;
  flex: 1;
  min-width: min(100%, 320px);
  max-width: 480px;
}

.blog-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.blog-search__input {
  padding-left: 48px;
  min-height: 52px;
}

.blog-toolbar__count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}

.blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-4);
}

.blog-grid__item.is-hidden {
  display: none;
}

.blog-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: var(--sapphire);
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-4px);
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.03);
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--emerald), var(--sapphire));
}

.blog-card__body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-1);
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}

.blog-card__title a {
  color: var(--sapphire);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--emerald);
}

.blog-card__excerpt {
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
  line-height: 1.6;
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--sp-2);
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-empty {
  color: var(--gray-600);
  text-align: center;
  padding: var(--sp-8) 0;
}

.blog-empty--search {
  padding: var(--sp-6) 0 var(--sp-2);
}

.blog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-6);
}

@media (min-width: 641px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-post-title {
  max-width: 48rem;
}

.blog-post-meta {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-top: var(--sp-2);
}

.blog-post-meta__sep {
  margin: 0 0.5rem;
}

.blog-post-body-section {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-10);
}

.blog-article {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  box-shadow: var(--card-shadow);
}

.blog-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-800);
}

.blog-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sapphire);
  margin: var(--sp-5) 0 var(--sp-2);
}

.blog-body h2:first-child {
  margin-top: 0;
}

.blog-body h3 {
  font-size: 1.125rem;
  color: var(--sapphire);
  margin: var(--sp-4) 0 var(--sp-2);
}

.blog-body p {
  margin-bottom: var(--sp-2);
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 var(--sp-3) var(--sp-3);
}

.blog-body li {
  margin-bottom: var(--sp-1);
}

.blog-body a {
  color: var(--emerald);
  font-weight: 500;
}

.blog-body a:hover {
  text-decoration: underline;
}

.blog-body strong {
  color: var(--graphite);
}

.blog-cta {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--sapphire);
  color: var(--ivory);
  border-radius: var(--radius-lg);
}

.blog-cta__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  color: var(--ivory);
}

.blog-cta__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(249, 248, 243, 0.9);
}

.blog-cta a {
  color: var(--ivory);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-cta a:hover {
  color: white;
}

.blog-back {
  margin-top: var(--sp-4);
}

.blog-back a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}

.blog-back a:hover {
  text-decoration: underline;
}

