/* ========================================
   GLOBAL STYLES - Variables, Resets, Base
   ======================================== */

/* Moving between the site's pages (the hero's "Continue" to the
   application chat, and back): one fades into the other, with no blank
   frame between them (start.css has the same for the chat) */
@view-transition {
  navigation: auto;
}

/* The next page fades in over the one left, which goes a beat later:
   never a blank white frame between them */
::view-transition-old(root) {
  animation: vt-out 0.25s 0.05s ease both;
}

::view-transition-new(root) {
  animation: vt-in 0.25s ease both;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* CSS Variables */
:root {
  --primary: #111;
  --primary-dark: #222;
  --text-primary: #111;
  --text-secondary: #666;
  --background: #fafafa;
  --background-alt: #fff;
  --hover-bg: #f8f8f8;
  --border: #eee;
  --icon-size: 20px;
  --section-width: 850px;
  --faq-answer: #666;
  --faq-question: #111;
  --section-subtitle: #666;
  --testimonial-badge: #bbb;
  --testimonial-desc: #666;
  --testimonial-card-border: #eee;
  --testimonial-card-bg: #fff;
  --country-status-bg: #f8f8f8;
  --country-status-color: #666;
  --country-status-available-bg: #eee;
  --country-status-available-color: #111;

  /* ========================================
     BORDER RADIUS SYSTEM - UNIFIED DESIGN
     ======================================== */
  --border-radius-xs: 3px; /* Small elements, dividers */
  --border-radius-sm: 6px; /* Small buttons, badges */
  --border-radius: 8px; /* Default cards, containers */
  --border-radius-md: 10px; /* Larger cards, sections */
  --border-radius-lg: 20px; /* Pills, status indicators */
  --border-radius-xl: 24px; /* Large containers */
  --border-radius-2xl: 32px; /* Extra large elements */
  --border-radius-full: 50%; /* Circular elements */

  /* ========================================
     SPACING SYSTEM - UNIFIED WHITE SPACE
     ======================================== */

  /* Section Spacing - Desktop */
  --section-padding-y: 2rem; /* Vertical padding for main sections - reduced from 6rem */
  --section-margin-y: 2rem; /* Vertical margin between sections - reduced from 6rem */
  --section-padding-y-mobile: 1rem; /* Mobile vertical padding - reduced from 4rem */
  --section-margin-y-mobile: 1rem; /* Mobile vertical margin - reduced from 4rem */

  /* Content Spacing */
  --content-padding: 2rem; /* Horizontal padding for content */
  --content-padding-mobile: 1rem; /* Mobile horizontal padding */

  /* Element Spacing */
  --spacing-xs: 0.25rem; /* 4px - Tiny gaps */
  --spacing-sm: 0.5rem; /* 8px - Small gaps */
  --spacing-md: 1rem; /* 16px - Medium gaps */
  --spacing-lg: 1.5rem; /* 24px - Large gaps */
  --spacing-xl: 2rem; /* 32px - Extra large gaps */
  --spacing-2xl: 2.5rem; /* 40px - Section gaps - reduced from 3rem */
  --spacing-3xl: 3rem; /* 48px - Large section gaps - reduced from 4rem */
  --spacing-4xl: 4rem; /* 64px - Hero section gaps - reduced from 6rem */
  --spacing-8xl: 8rem; /* 64px - Hero section gaps - reduced from 6rem */

  /* Component Spacing */
  --card-padding: 1rem; /* Card internal padding */
  --card-padding-mobile: 1rem; /* Mobile card padding */
  --button-padding-y: 0.75em; /* Button vertical padding */
  --button-padding-x: 1em; /* Button horizontal padding */
  --input-padding: 0.75rem 1rem; /* Input field padding */

  /* ========================================
     TYPOGRAPHY SYSTEM - DESKTOP FIRST
     ======================================== */

  /* Font Sizes - Desktop */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */
  --text-7xl: 4.5rem; /* 72px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
}

/* ========================================
   GLOBAL TYPOGRAPHY STYLES
   ======================================== */

/* Base Typography */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* background: var(----background-alt); */
  color: var(--text-primary);
  font-family: 'Geist', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
}

body {
  text-align: center;
}

/* The menu's links glide to their sections */
html {
  scroll-behavior: smooth;
}

/* Typography Scale Classes */
.text-xs {
  font-size: var(--text-xs);
}
.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}
.text-2xl {
  font-size: var(--text-2xl);
}
.text-3xl {
  font-size: var(--text-3xl);
}
.text-4xl {
  font-size: var(--text-4xl);
}
.text-5xl {
  font-size: var(--text-5xl);
}
.text-6xl {
  font-size: var(--text-6xl);
}
.text-7xl {
  font-size: var(--text-7xl);
}

/* Font Weight Classes */
.font-light {
  font-weight: var(--font-light);
}
.font-normal {
  font-weight: var(--font-normal);
}
.font-medium {
  font-weight: var(--font-medium);
}
.font-semibold {
  font-weight: var(--font-semibold);
}
.font-bold {
  font-weight: var(--font-bold);
}
.font-extrabold {
  font-weight: var(--font-extrabold);
}
.font-black {
  font-weight: var(--font-black);
}

/* Line Height Classes */
.leading-none {
  line-height: var(--leading-none);
}
.leading-tight {
  line-height: var(--leading-tight);
}
.leading-snug {
  line-height: var(--leading-snug);
}
.leading-normal {
  line-height: var(--leading-normal);
}
.leading-relaxed {
  line-height: var(--leading-relaxed);
}
.leading-loose {
  line-height: var(--leading-loose);
}

/* Letter Spacing Classes */
.tracking-tighter {
  letter-spacing: var(--tracking-tighter);
}
.tracking-tight {
  letter-spacing: var(--tracking-tight);
}
.tracking-normal {
  letter-spacing: var(--tracking-normal);
}
.tracking-wide {
  letter-spacing: var(--tracking-wide);
}
.tracking-wider {
  letter-spacing: var(--tracking-wider);
}
.tracking-widest {
  letter-spacing: var(--tracking-widest);
}

/* ========================================
   ELEMENT-SPECIFIC TYPOGRAPHY
   ======================================== */

/* Headings */
h1,
.h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h2,
.h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h3,
.h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

h4,
.h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

h5,
.h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

h6,
.h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

/* Body Text */
p,
.text-body {
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

/* Small Text */
small,
.text-small {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Caption Text */
.caption {
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Link Text */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-medium);
}

/* Base Link Styles */
a {
  color: var(--primary);
  text-decoration: none;
}

/* ========================================
   GLOBAL STYLES - MEDIA QUERIES
   ======================================== */

/* ========================================
   RESPONSIVE TYPOGRAPHY - TABLET
   ======================================== */

@media (max-width: 768px) {
  :root {
    /* Font Sizes - Tablet */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.375rem; /* 22px */
    --text-3xl: 1.75rem; /* 28px */
    --text-4xl: 2rem; /* 32px */
    --text-5xl: 2.5rem; /* 40px */
    --text-6xl: 3rem; /* 48px */
    --text-7xl: 3.5rem; /* 56px */
  }
}

/* ========================================
   RESPONSIVE TYPOGRAPHY - MOBILE
   ======================================== */

@media (max-width: 640px) {
  :root {
    /* Font Sizes - Mobile */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.375rem; /* 22px */
    --text-3xl: 1.625rem; /* 26px */
    --text-4xl: 1.875rem; /* 30px */
    --text-5xl: 2.25rem; /* 36px */
    --text-6xl: 2.75rem; /* 44px */
    --text-7xl: 3.25rem; /* 52px */
  }

  /* Adjust line heights for mobile */
  h1,
  .h1 {
    line-height: var(--leading-snug);
  }

  h2,
  .h2 {
    line-height: var(--leading-snug);
  }

  h3,
  .h3 {
    line-height: var(--leading-normal);
  }

  /* Adjust body text for better mobile readability */
  p,
  .text-body {
    line-height: var(--leading-normal);
  }
}

/* ========================================
   RESPONSIVE TYPOGRAPHY - SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
  :root {
    /* Font Sizes - Small Mobile */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.25rem; /* 20px */
    --text-3xl: 1.5rem; /* 24px */
    --text-4xl: 1.75rem; /* 28px */
    --text-5xl: 2rem; /* 32px */
    --text-6xl: 2.5rem; /* 40px */
    --text-7xl: 3rem; /* 48px */
  }

  /* Further adjust line heights for small mobile */
  h1,
  .h1 {
    line-height: var(--leading-normal);
  }

  h2,
  .h2 {
    line-height: var(--leading-normal);
  }
}

/* ========================================
   SECTION PADDING SYSTEM
   ======================================== */

/* Hero section maintains its own padding */
.hero {
  /* Hero section padding is handled in hero.css */
}

/* ========================================
   FOOTER STYLES
   ======================================== */
