/* ==========================================================================
   PAGE-LEVEL STYLES — Subpage hero variants, forms, legal, blog, glossary
   ========================================================================== */

/* ===== SUBPAGE HERO ===== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.page-hero.page-hero--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-warm-white);
}

.page-hero.page-hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(250, 249, 246, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-hero.page-hero--light {
  background-color: var(--color-bg-light);
  color: var(--color-near-black);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35rem 0.85rem;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.page-hero--dark .page-hero__badge {
  background-color: rgba(218, 119, 86, 0.15);
  color: var(--color-primary);
}

.page-hero--light .page-hero__badge {
  background-color: rgba(218, 119, 86, 0.1);
  color: var(--color-primary);
}

.page-hero__title {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-display);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

.page-hero--dark .page-hero__title {
  color: var(--color-warm-white);
}

.page-hero__subtitle {
  font-size: 1.125rem;
  line-height: var(--line-height-body);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

.page-hero--dark .page-hero__subtitle {
  color: var(--color-warm-gray);
}

.page-hero--light .page-hero__subtitle {
  color: var(--color-warm-gray);
}

.page-hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.page-hero--centered {
  text-align: center;
}

.page-hero--centered .page-hero__title,
.page-hero--centered .page-hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--centered .page-hero__ctas {
  justify-content: center;
}

@media (max-width: 767px) {
  .page-hero {
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  }
  .page-hero__title {
    font-size: var(--font-size-h1);
  }
  .page-hero__ctas {
    flex-direction: column;
  }
  .page-hero__ctas .btn {
    width: 100%;
    text-align: center;
  }
}


/* ===== VALUE PROPS STRIP ===== */
.value-props-strip {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-light-sand);
}

.value-props-strip .container {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.value-prop-item {
  text-align: center;
  max-width: 260px;
}

.value-prop-item strong {
  display: block;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
}

.value-prop-item span {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
  line-height: var(--line-height-body);
}

@media (max-width: 767px) {
  .value-props-strip .container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }
}


/* ===== FEATURE BLOCKS (Product/Solution pages) ===== */
.feature-block {
  padding: var(--space-4xl) 0;
}

.feature-block:nth-child(even) {
  background-color: var(--color-bg-section-alt);
}

.feature-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-block--reversed .feature-block__inner {
  direction: rtl;
}

.feature-block--reversed .feature-block__inner > * {
  direction: ltr;
}

.feature-block__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-block__content h2 {
  max-width: 480px;
}

.feature-block__content p {
  max-width: 440px;
}

.feature-block__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.feature-block__bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.feature-block__bullet svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .feature-block__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .feature-block--reversed .feature-block__inner {
    direction: ltr;
  }
}


/* ===== FORM STYLES ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-near-black);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem var(--space-md);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--color-near-black);
  background-color: var(--color-warm-white);
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239B9590' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (max-width: 767px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
}


/* ===== LEGAL / PROSE CONTENT ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
}

.legal-content h1 {
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--color-warm-gray);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--color-warm-gray);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  list-style-type: disc;
}

.legal-content ol li {
  list-style-type: decimal;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--color-near-black);
}


/* ===== BLOG LISTING ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card__img {
  width: 100%;
  height: 200px;
  background-color: var(--color-light-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-gray);
  font-size: var(--font-size-small);
}

.blog-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-eyebrow);
  color: var(--color-warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
  line-height: var(--line-height-heading);
}

.blog-card__excerpt {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
  line-height: var(--line-height-body);
}

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

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; }
}


/* ===== GLOSSARY ===== */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-light-sand);
  margin-bottom: var(--space-2xl);
  position: sticky;
  top: var(--nav-height);
  background-color: var(--color-bg-light);
  z-index: 10;
}

.glossary-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-warm-gray);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.glossary-nav a:hover,
.glossary-nav a.active {
  background-color: var(--color-primary);
  color: #fff;
}

.glossary-letter {
  margin-bottom: var(--space-2xl);
}

.glossary-letter h2 {
  font-size: var(--font-size-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-light-sand);
}

.glossary-entry {
  margin-bottom: var(--space-lg);
}

.glossary-entry h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
  margin-bottom: var(--space-xs);
}

.glossary-entry p {
  font-size: var(--font-size-body);
  color: var(--color-warm-gray);
  line-height: var(--line-height-body);
  max-width: 720px;
}


/* ===== CUSTOMER STORY CARDS ===== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.story-card {
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.story-card__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-card__metric-number {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.1;
}

.story-card__metric-label {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

.story-card__quote {
  font-size: var(--font-size-body);
  color: var(--color-near-black);
  line-height: var(--line-height-body);
  font-style: italic;
  flex: 1;
}

.story-card__author {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.story-card__role {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

@media (max-width: 991px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .story-grid { grid-template-columns: 1fr; }
}


/* ===== COUNTRY/GUIDE FACTS GRID ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.fact-card {
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.fact-card__value {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.fact-card__label {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

@media (max-width: 767px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== PRICING FULL PAGE ===== */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.pricing-toggle-label {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-warm-gray);
  cursor: pointer;
}

.pricing-toggle-label.active {
  color: var(--color-warm-white);
}

.pricing-full-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .pricing-full-cards { grid-template-columns: 1fr; max-width: 440px; }
}


/* ===== TEAM GRID (About page) ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--color-light-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-warm-gray);
}

.team-card__name {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.team-card__role {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

@media (max-width: 991px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .team-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   CUSTOMER STORY DETAIL PAGE
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-small);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--color-warm-gray);
}

.breadcrumb__current {
  color: var(--color-warm-gray);
}

/* Story layout: sidebar + content */
.story-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 991px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.story-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (max-width: 991px) {
  .story-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-light-sand);
    margin-bottom: var(--space-xl);
  }

  .story-sidebar__section {
    flex: 1;
    min-width: 200px;
  }
}

.story-sidebar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.story-sidebar__logo-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.story-sidebar__company {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.story-sidebar__heading {
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-eyebrow);
  color: var(--color-warm-gray);
  margin-bottom: var(--space-sm);
}

.story-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.story-sidebar__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.story-sidebar__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-sidebar__metric-number {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.1;
}

.story-sidebar__metric-label {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

.story-sidebar__toc {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.story-sidebar__toc-link {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.story-sidebar__toc-link:hover {
  color: var(--color-primary);
}

/* Story content */
.story-content {
  max-width: 720px;
}

.story-content__title {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-display);
  color: var(--color-near-black);
  margin-bottom: var(--space-2xl);
}

/* Pull quote */
.story-pullquote {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-light-sand);
  border-bottom: 1px solid var(--color-light-sand);
  text-align: center;
}

.story-pullquote__mark {
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--color-primary);
  font-family: Georgia, serif;
  font-weight: var(--font-weight-bold);
  display: block;
  margin-bottom: var(--space-md);
}

.story-pullquote__text {
  font-size: 1.375rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-near-black);
  line-height: var(--line-height-body);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
}

.story-pullquote__attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.story-pullquote__name {
  font-weight: var(--font-weight-bold);
  color: var(--color-near-black);
  font-size: var(--font-size-body);
}

.story-pullquote__role {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

/* Story sections */
.story-section {
  margin-bottom: var(--space-2xl);
}

.story-section h2 {
  margin-bottom: var(--space-md);
}

.story-section p {
  margin-bottom: var(--space-md);
}

/* At a Glance grid */
.story-glance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.story-glance-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-md);
  background-color: var(--color-bg-section-alt);
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-sm);
}

.story-glance-item strong {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.story-glance-item span {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

/* Results grid */
.story-results-grid {
  display: flex;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

/* Inline CTA */
.story-inline-cta {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background-color: var(--color-bg-section-alt);
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-lg);
  text-align: center;
}

.story-inline-cta h3 {
  color: var(--color-near-black);
  margin-bottom: var(--space-sm);
}

.story-inline-cta p {
  color: var(--color-warm-gray);
  margin-bottom: var(--space-lg);
}

.story-inline-cta .page-hero__ctas {
  justify-content: center;
}

@media (max-width: 767px) {
  .story-glance-grid {
    grid-template-columns: 1fr;
  }
  .story-content__title {
    font-size: var(--font-size-h1);
  }
}


/* ==========================================================================
   BOOK A DEMO PAGE
   ========================================================================== */

.demo-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.demo-form-wrapper .page-hero__title {
  font-size: var(--font-size-h1);
  color: var(--color-near-black);
}

.demo-form-wrapper .page-hero__subtitle {
  color: var(--color-warm-gray);
}

/* Trust badge */
.demo-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.demo-trust-stars {
  display: flex;
  gap: 2px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.demo-trust-rating {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

/* Trust logos */
.demo-trust-logos {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-light-sand);
}

/* Testimonials */
.demo-testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.demo-testimonial-item {
  padding: var(--space-md);
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-md);
}

.demo-testimonial-item p {
  font-size: var(--font-size-body);
  color: var(--color-near-black);
  font-style: italic;
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-body);
}

.demo-testimonial-item span {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
  font-weight: var(--font-weight-medium);
}

/* Why choose grid */
.demo-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.demo-why-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-near-black);
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-sm);
}

.demo-why-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .demo-why-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   COUNTRY CARDS
   ========================================================================== */

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.country-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background-color: #fff;
  border: 1px solid var(--color-light-sand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.country-card__flag {
  font-size: 2.5rem;
  line-height: 1;
}

.country-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.country-card__name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.country-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.country-card__detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-small);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-light-sand);
}

.country-card__detail strong {
  color: var(--color-near-black);
  font-weight: var(--font-weight-medium);
}

.country-card__detail span {
  color: var(--color-warm-gray);
}

.country-card .link-arrow {
  margin-top: auto;
}

@media (max-width: 767px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-option {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-light-sand);
}

.contact-option:last-child {
  border-bottom: none;
}

.contact-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(218, 119, 86, 0.1);
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-option__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-option__body strong {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-near-black);
}

.contact-option__body p {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
  margin: 0;
  line-height: var(--line-height-body);
}


/* ==========================================================================
   AI AGENTS PAGE
   ========================================================================== */

.ai-agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.ai-agent-card {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: 20px;
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-base);
}

.ai-agent-card:hover {
  transform: translateY(-4px);
}

.ai-agent-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-agent-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(218, 119, 86, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-agent-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.ai-agent-card h3 {
  color: var(--color-warm-white);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.ai-agent-card > p {
  color: var(--color-warm-gray);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  margin: 0;
}

.ai-agent-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.ai-agent-badge--live {
  background-color: rgba(218, 119, 86, 0.2);
  color: var(--color-primary);
}

.ai-agent-badge--soon {
  background-color: rgba(155, 149, 144, 0.2);
  color: var(--color-warm-gray);
}

.ai-agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.ai-agent-chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: var(--color-warm-gray);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

.ai-agent-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ai-agent-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

.ai-agent-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

/* Chat mockup */
.ai-chat-mockup {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ai-chat-msg {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.ai-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.ai-chat-avatar--user {
  background-color: var(--color-dark-border);
  color: var(--color-warm-gray);
}

.ai-chat-avatar--ai {
  background-color: var(--color-primary);
  color: #fff;
}

.ai-chat-msg p {
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  margin: 0;
  padding: var(--space-md);
  border-radius: var(--radius-md);
}

.ai-chat-msg--user p {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-warm-white);
}

.ai-chat-msg--ai p {
  background-color: rgba(218, 119, 86, 0.1);
  color: var(--color-warm-white);
}

/* Contract mockup */
.ai-contract-mockup {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ai-contract-step {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
}

.ai-contract-step__label {
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
}

.ai-contract-step__value {
  font-size: var(--font-size-small);
  color: var(--color-warm-white);
  font-weight: var(--font-weight-medium);
}

.ai-contract-generating {
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  padding: var(--space-md) 0;
}

.ai-contract-preview {
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

/* Payroll mockup */
.ai-payroll-mockup {
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ai-payroll-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-small);
  color: var(--color-warm-gray);
  padding: var(--space-xs) 0;
}

@media (max-width: 767px) {
  .ai-agents-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   BOOK A DEMO PAGE — REDESIGN
   ========================================================================== */

.demo-page {
  display: grid;
  grid-template-columns: 55% 1px 1fr;
  gap: 0 48px;
  align-items: start;
}

.demo-page__divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}

.demo-page__trust {
  position: sticky;
  top: 100px;
}

.demo-trust-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
}

/* Form fields */
.demo-field {
  margin-bottom: 16px;
}

.demo-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
}

.demo-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239B9590' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: var(--color-muted);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(218, 119, 86, 0.12);
}

.demo-field.has-error input,
.demo-field.has-error select,
.demo-field.has-error textarea {
  border-color: #EF4444;
}

.demo-field__error {
  display: none;
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
}

.demo-field.has-error .demo-field__error {
  display: block;
}

/* Interest pills */
.demo-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-pill {
  cursor: pointer;
}

.demo-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.demo-pill span {
  display: block;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-muted);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all 150ms ease;
  cursor: pointer;
}

.demo-pill input:checked + span {
  background: rgba(218, 119, 86, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 500;
}

.demo-pill span:hover {
  border-color: var(--color-accent);
}

/* Submit button */
.demo-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(218, 119, 86, 0.35);
}

.demo-submit:active {
  transform: translateY(0);
}

.demo-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Steps */
.demo-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.demo-step__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  background: rgba(218, 119, 86, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.demo-step strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.demo-step p {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* Why pills */
.demo-why-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.demo-why-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.demo-why-pill svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Demo includes */
.demo-includes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-include-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Language pill */
.demo-lang-pill {
  margin-top: 24px;
  padding: 10px 16px;
  background: rgba(218, 119, 86, 0.08);
  border: 1px solid rgba(218, 119, 86, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  text-align: center;
}

/* Success state */
.demo-success {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
}

.demo-success__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(218, 119, 86, 0.1);
  color: var(--color-accent);
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
}

/* Responsive */
@media (max-width: 991px) {
  .demo-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .demo-page__divider { display: none; }
  .demo-page__trust { position: static; order: -1; }
  .demo-trust-panel { padding: 24px; }
  .demo-why-pills { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .demo-pills { grid-template-columns: repeat(2, 1fr); }
  .demo-why-pills { grid-template-columns: repeat(2, 1fr); }
  .demo-success { padding: 40px 24px; }
}
