/* ================= SITETHREESIXTY - CRITICAL CSS ================= */
/*
 * Auto-generated - DO NOT EDIT
 * Edit source files in css/ directory then run ./build-css.sh
 *
 * Contains: Tokens, theme, layout, navigation (above-fold)
 * Load as: <link rel="stylesheet" href="css/critical.css">
 */

/* ========== FONT FACE — MUST BE FIRST ========== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('../assets/fonts/montserrat-ascii.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A3, U+00A9, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+20AC;
}

/* Matched fallback — same metrics as Montserrat to prevent CLS on font swap */
@font-face {
  font-family: 'Montserrat Fallback';
  src: local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto'), local('Arial');
  size-adjust: 113%;
  ascent-override: 85%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ========== TOKENS ========== */
/* ================================
   COLOR TOKENS
   Single source of truth for all colors
   Components reference these, never define colors
   Based on new design (v3)
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

:root {
  /* ========== PRIMARY COLORS ========== */
  --color-teal-400: #2dd4bf;
  --color-teal-500: #0d9488;
  --color-teal-700: #027373;
  --color-teal-800: #015858;
  --color-teal-900: #014444;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-green-100: #dcfce7;
  --color-green-800: #166534;
  --color-lime-400: #7deb7d;

  /* ========== UI COLORS ========== */
  --color-red-400: #f87171;
  --color-yellow-400: #fbbf24;

  /* ========== SECONDARY / NEUTRALS ========== */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #555e68;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-white: #EDEDF0;

  /* ========== SEMANTIC TOKENS ========== */
  /* Backgrounds */
  --bg-page: var(--color-white);
  --bg-white: #f5f5f8;
  --bg-section-alt: var(--color-white);
  --bg-dark: var(--color-gray-900);
  --bg-teal: var(--color-teal-700);

  /* Text */
  --text-primary: var(--color-gray-900);
  --text-secondary: var(--color-gray-600);
  --text-tertiary: var(--color-gray-500);
  --text-muted: var(--color-gray-400);
  --text-white: var(--color-white);
  --text-teal: var(--color-teal-700);
  --text-green: var(--color-green-500);

  /* Accents */
  --accent-primary: var(--color-teal-700);
  --accent-primary-hover: var(--color-teal-800);
  --accent-secondary: var(--color-green-500);

  /* Borders */
  --border-light: var(--color-gray-200);
  --border-medium: var(--color-gray-300, #d1d5db);
  --border-teal: var(--color-teal-700);

  /* ========== COMPONENT MAPPINGS ========== */
  /* Buttons */
  --button-primary-bg: var(--color-teal-700);
  --button-primary-bg-hover: var(--color-teal-800);
  --button-primary-text: var(--color-white);
  --button-secondary-bg: transparent;
  --button-secondary-border: var(--color-teal-700);
  --button-secondary-text: var(--color-teal-700);
  --button-green-bg: var(--color-green-600);
  --button-green-bg-hover: #15803d;
  --button-green-text: var(--color-white);

  /* Footer Logo */
  --footer-logo-teal: var(--color-teal-500);
  --footer-logo-green: var(--color-lime-400);

  /* Card Links */
  --card-link-color: var(--color-teal-400);

  /* Mockup UI Colors */
  --mockup-dot-red: var(--color-red-400);
  --mockup-dot-yellow: var(--color-yellow-400);
  --mockup-dot-green: var(--color-green-400);

  /* Navigation */
  --nav-bg: var(--color-white);
  --nav-text: var(--color-gray-600);
  --nav-text-hover: var(--color-gray-900);
  --nav-border: var(--color-gray-200);

  /* Cards */
  --card-bg: var(--color-white);
  --card-border: var(--color-gray-200);
  --card-border-hover: rgba(2, 115, 115, 0.3);
  --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Footer */
  --footer-bg: var(--color-gray-900);
  --footer-text: var(--color-gray-400);
  --footer-heading: var(--color-white);
  --footer-border: var(--color-gray-800);

  /* Hero gradient */
  --hero-gradient: linear-gradient(to bottom right, var(--color-teal-700), var(--color-teal-800), var(--color-teal-900));
  --hero-text-muted: rgba(204, 251, 241, 0.8);

  /* Badge/Tag colors */
  --badge-green-bg: var(--color-green-100);
  --badge-green-text: var(--color-green-800);
  --badge-teal-bg: rgba(2, 115, 115, 0.1);
  --badge-teal-text: var(--color-teal-700);

  /* Overlays */
  --overlay-white-10: rgba(255, 255, 255, 0.1);
  --overlay-white-20: rgba(255, 255, 255, 0.2);
}
/* ================================
   TYPOGRAPHY TOKENS
   Font definitions and text styling
   Montserrat for headings, system fonts for body
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

/* Typography Tokens */
:root {
  /* Font Families */
  --font-heading: 'Montserrat', 'Montserrat Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* Font Sizes - Mobile first, scale up on larger screens */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}
/* ================================
   EFFECTS TOKENS
   Shadows, transitions, radii, and visual effects
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

:root {
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-colors: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  --transition-all: all 200ms ease;

  /* Blur */
  --blur-sm: blur(4px);
  --blur-md: blur(12px);
  --blur-lg: blur(24px);
  --blur-xl: blur(40px);
  --blur-3xl: blur(64px);

  /* Backdrop blur for glass effects */
  --backdrop-blur: blur(8px);

  /* Z-index scale */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
}

/* ========== THEME ========== */
/* ================================
   THEME BASE
   Resets and foundational styles
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-lg);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-xl);
  }
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-colors);
}

a:hover {
  color: var(--accent-primary);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

::selection {
  background-color: var(--accent-primary);
  color: var(--text-white);
}

/* ========== LAYOUT ========== */
/* ================================
   LAYOUT STRUCTURE
   Containers, grid systems, and spacing
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

/* Container */
.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Narrow container for text content */
.container-narrow {
  max-width: 48rem;
}

.container-medium {
  max-width: 56rem;
}

/* Section spacing */
.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Section Headers — above-fold on desktop */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

.section-subtitle {
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Who We Are — above-fold on desktop */
.who-we-are-content {
  max-width: 62.5rem;
  margin: 0 auto;
  text-align: center;
}

.who-we-are-content p {
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.5rem;
}

.who-we-are-content p:last-of-type:not(.who-we-are-tagline) {
  margin-bottom: 2rem;
}

.who-we-are-tagline {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Grid systems */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

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

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Text alignment */
.text-center {
  text-align: center;
}

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

/* Margin utilities */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Max-width utilities */
.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

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

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== NAVIGATION ========== */
/* ================================
   NAVIGATION COMPONENT
   Clean, light design based on new v3
   NOTE: critical.css uses hardcoded values for performance
   ================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.logo-wrap {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  pointer-events: none;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
}

.logo-text-teal {
  color: var(--color-teal-700);
}

.logo-text-green {
  color: var(--color-green-500);
}

/* Desktop Navigation */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--nav-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}

.nav-link:hover {
  color: var(--nav-text-hover);
}

.nav-link-accent {
  color: var(--accent-primary);
}

.nav-link-accent:hover {
  color: var(--accent-primary-hover);
}

/* CTA Button in Nav */
.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-lg);
  transition: var(--transition-colors);
}

.nav-cta:hover {
  background: var(--button-primary-bg-hover);
  color: var(--button-primary-text);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-link {
  color: var(--nav-text);
  font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}

.mobile-link:hover {
  color: var(--nav-text-hover);
}

.mobile-link-accent {
  color: var(--accent-primary);
}

.mobile-cta {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 0.5rem;
}

/* Desktop Home Icon */
.nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--nav-text);
  transition: var(--transition-colors);
}

.nav-home:hover {
  color: var(--nav-text-hover);
}

.nav-home svg {
  stroke: currentColor;
}

/* Desktop Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--nav-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: var(--transition-colors);
}

.nav-dropdown-btn:hover {
  color: var(--nav-text-hover);
}

.nav-dropdown-btn svg {
  stroke: currentColor;
}

.nav-dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown.active .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 0.5rem 0;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown, 50);
}

.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--nav-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}

.nav-dropdown-link:hover {
  background: var(--color-gray-100);
  color: var(--nav-text-hover);
}

.nav-dropdown-link-accent {
  color: var(--accent-primary);
}

.nav-dropdown-link-accent:hover {
  color: var(--accent-primary-hover);
}

/* Mobile Navigation Container */
.nav-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none;
  }
}

.nav-home-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--nav-text);
  transition: var(--transition-colors);
}

.nav-home-mobile:hover {
  color: var(--nav-text-hover);
}

.nav-home-mobile svg {
  stroke: currentColor;
}

/* Login Icon Link */
.nav-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  color: var(--nav-text);
  text-decoration: none;
  transition: var(--transition-colors);
}

.nav-login:hover {
  color: var(--nav-text-hover);
}

.nav-login svg {
  stroke: currentColor;
}

.nav-login-text {
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Section Headers */
.mobile-section-header {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary, var(--color-gray-500, #6b7280));
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.mobile-section-header:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ========== HERO ========== */
/* ================================
   HERO CRITICAL CSS
   Only above-fold hero styles for fast first paint
   ================================ */

.hero {
  background: var(--hero-gradient);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.page-transatlantic .hero {
  background: url('../assets/images/US-UK-flags-blended-1200x675.webp') center / cover no-repeat;
  min-height: auto;
}

.page-transatlantic .hero-title {
  color: var(--color-gray-900, #111827);
}

.page-transatlantic .hero-subtitle {
  color: var(--color-gray-600, #4b5563);
  font-style: italic;
}

.page-transatlantic .hero-locale-us {
  display: none;
}

.page-about .hero {
  min-height: auto;
}

.page-about .hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: left;
  padding: 4rem 0 6rem;
}

.page-about .hero-subtitle {
  color: #fbbf24;
}

.page-charter-rate .hero-subtitle,
.page-whats-included .hero-subtitle,
.page-ecosystem .hero-subtitle {
  color: #fbbf24;
}

@media (min-width: 768px) {
  .page-about .hero-content {
    padding: 5rem 0 7rem;
  }
}

.hero-comparison {
  min-height: auto;
  text-align: center;
}

.hero-comparison .container {
  max-width: 42rem;
  padding-top: 3rem;
  padding-bottom: 21rem;
}

.locale-slider-container {
  position: relative;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.locale-layer-us {
  display: none;
}

@media (min-width: 768px) {
  .locale-layer-uk {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: #EDEDF0;
  }

  .locale-layer-us {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
}

.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  min-height: 50px;
}

@media (min-width: 768px) {
  .waves {
    height: 80px;
    min-height: 80px;
  }
}

.hero-grid {
  position: relative;
}

.hero-content {
  max-width: 42rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 6rem 0;
  }
}

.hero-image {
  display: none;
  position: absolute;
  right: -200px;
  top: 40%;
  transform: translateY(-50%);
}

@media (min-width: 924px) {
  .hero-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

.hero-laptop {
  width: 600px;
  height: auto;
  aspect-ratio: 750 / 485;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@media (min-width: 1024px) {
  .hero-laptop {
    width: 750px;
  }
}

@media (max-width: 1100px) {
  .hero-laptop {
    width: 525px;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #EDEDF0;
}

.hero-break {
  display: none;
}

@media (min-width: 1200px) {
  .hero-break {
    display: block;
  }
}

.hero-title em {
  font-style: italic;
  color: #fbbf24;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(204, 251, 241, 0.9);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: var(--text-xl);
  font-weight: 600;
}

.proof-badges {
  display: flex;
}

.proof-badge {
  width: 2rem;
  height: 2rem;
  background: rgba(2, 115, 115, 0.7);
  border: 2px solid var(--color-teal-700);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-left: -0.5rem;
}

.proof-badge:first-child {
  margin-left: 0;
}

.proof-text {
  color: rgba(153, 246, 228, 0.9);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-disclaimer {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: rgba(153, 246, 228, 0.5);
  max-width: 24rem;
  line-height: 1.4;
}

/* Hero Buttons - Critical for LCP */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: var(--transition-all);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-green {
  background: #15743d;
  color: #EDEDF0;
  border-color: #15743d;
}

.btn-green:hover {
  background: #166534;
  border-color: #166534;
  color: #EDEDF0;
}

.btn-ghost {
  background: var(--overlay-white-10, rgba(255,255,255,0.1));
  color: var(--text-white, #EDEDF0);
  border-color: var(--overlay-white-20, rgba(255,255,255,0.2));
  -webkit-backdrop-filter: var(--backdrop-blur, blur(8px));
  backdrop-filter: var(--backdrop-blur, blur(8px));
}

.btn-ghost:hover {
  background: var(--overlay-white-20, rgba(255,255,255,0.2));
  color: var(--text-white, #EDEDF0);
}

/* Above-fold reveal - Prevent flash of invisible content */
.hero .reveal-fade-up {
  opacity: 1;
  transform: none;
}

/* Wave Animation */
.waves use:nth-child(1) {
  animation: moveWaveRight 48s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -2s;
}

.waves use:nth-child(2) {
  animation: moveWaveLeft 68s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -3s;
}

.waves use:nth-child(3) {
  animation: moveWaveRight 88s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -4s;
}

.waves use:nth-child(4) {
  animation: moveWaveLeft 136s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -5s;
}

@keyframes moveWaveRight {
  0% {
    transform: translateX(-90px);
  }
  100% {
    transform: translateX(85px);
  }
}

@keyframes moveWaveLeft {
  0% {
    transform: translateX(85px);
  }
  100% {
    transform: translateX(-90px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waves use {
    animation: none;
  }
}

/* ================================
   OUR WORK HERO — Above-fold styles
   ================================ */

.page-our-work .hero-content {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.hero-title--xl {
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  animation: hero-slide-in 0.7s ease-out both;
}

@media (min-width: 768px) {
  .hero-title--xl {
    font-size: 3.5rem;
  }
}

.hero-slow-svg {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: middle;
  overflow: hidden;
}

.hero-subtitle--xl {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .hero-subtitle--xl {
    font-size: 2.25rem;
  }
}

@keyframes hero-slide-in {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Score Rings */
.hero-scores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero-scores {
    gap: 1.5rem;
  }
}

.hero-score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #84cc16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(132, 204, 22, 0.4), 0 0 48px rgba(132, 204, 22, 0.12);
  animation: pulse-glow 3s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-score-ring {
    width: 100px;
    height: 100px;
    border-width: 5px;
  }
}

.hero-score-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #84cc16;
  line-height: 1;
}

@media (min-width: 768px) {
  .hero-score-number {
    font-size: 2.25rem;
  }
}

.hero-score-label {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.125rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-score-label {
    font-size: 0.5625rem;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 24px rgba(132, 204, 22, 0.4), 0 0 48px rgba(132, 204, 22, 0.12);
  }
  50% {
    box-shadow: 0 0 32px rgba(132, 204, 22, 0.6), 0 0 64px rgba(132, 204, 22, 0.2);
  }
}

/* Subway-map Steps */
.hero-steps {
  display: flex;
  margin: 2rem auto 1.5rem;
  max-width: 48rem;
  position: relative;
}

.hero-steps::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.hero-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2, 77, 77, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: #EDEDF0;
  flex-shrink: 0;
}

.hero-step-text {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(204, 251, 241, 0.85);
  line-height: 1.5;
  padding: 0 0.375rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-step-text {
    font-size: 0.8125rem;
    padding: 0 0.75rem;
  }
}

/* Hero Test Input */
.hero-test-input-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}

.hero-test-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #EDEDF0;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.hero-test-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Disclaimers */
.hero-disclaimers {
  max-width: 36rem;
  margin: 0 auto;
}

.hero-disclaimers p {
  font-size: 0.625rem;
  color: rgba(204, 251, 241, 0.5);
  line-height: 1.5;
  margin: 0 0 0.5rem;
  text-align: center;
}

.hero-disclaimers a {
  color: rgba(204, 251, 241, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-disclaimers a:hover {
  color: rgba(204, 251, 241, 0.9);
}

/* Hero Test Button — Animated green CTA */
/* Pricing hero — wide H1 needs unconstrained container */
.page-pricing .hero {
  min-height: auto;
}

.page-pricing .hero-content {
  max-width: 100%;
  padding: 4rem 0 6rem;
}

.page-pricing .hero-subtitle {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .page-pricing .hero-subtitle {
    font-size: var(--text-2xl);
  }
}

/* Service Landing Pages — narrower centered hero */
.page-service .hero {
  min-height: auto;
}

.page-service .hero .container {
  text-align: center;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

@media (min-width: 768px) {
  .page-service .hero .container {
    padding: 5rem 1rem 7rem;
  }
}

/* FAQ hero — centre content, reduce empty space */
.page-faq .hero {
  min-height: auto;
  display: flex;
  align-items: center;
}
.page-faq .hero .container {
  text-align: center;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
  width: 100%;
}
@media (min-width: 768px) {
  .page-faq .hero .container {
    padding: 5rem 1rem 7rem;
  }
}

/* Locale content switching — prevent FOUC */
.locale-content-us { display: none; }
.locale-us .locale-content-uk { display: none; }
.locale-us .locale-content-us { display: block; }

/* Speed Test Button — Animated yellow CTA */
.btn-speed {
  position: relative;
  background: #fbbf24;
  color: #451a03;
  border-color: transparent;
  font-weight: 700;
  overflow: hidden;
  z-index: 0;
}

.btn-speed:hover {
  transform: translateY(-2px) scale(1.03);
  background: #84cc16;
  color: #052e16;
}

.btn-speed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(transparent 70%, #EDEDF0 100%);
  animation: spin-border 1.5s 2s linear infinite, chase-fade-in 0.6s 2s forwards;
  opacity: 0;
  z-index: -2;
  pointer-events: none;
}

.btn-speed::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--btn-speed-fill, #fbbf24);
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s;
}

.btn-speed:hover::after {
  background: #84cc16;
}

.card-dark .btn-speed {
  --btn-speed-fill: #fbbf24;
}

.btn-speed--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
}

@keyframes spin-border {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes chase-fade-in {
  to { opacity: 1; }
}

.btn-hero-test {
  position: relative;
  background: #22c55e;
  color: #052e16;
  border-color: transparent;
  font-weight: 700;
  overflow: hidden;
  z-index: 0;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-hero-test:hover {
  transform: translateY(-2px) scale(1.03);
  background: #4ade80;
  color: #052e16;
}

.btn-hero-test::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(transparent 70%, #EDEDF0 100%);
  animation: spin-border 1.5s 2s linear infinite, chase-fade-in 0.6s 2s forwards;
  opacity: 0;
  z-index: -2;
  pointer-events: none;
}

.btn-hero-test::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #22c55e;
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s;
}

.btn-hero-test:hover::after {
  background: #4ade80;
}

/* ========== BLOG ========== */
/* ================================
   BLOG CRITICAL CSS
   Above-fold styles for blog pages (render-blocking)
   Do NOT duplicate these properties in blog-post.css or blog-index.css
   ================================ */

.page-blog-post .blog-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.page-blog-index .blog-index-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
}

/* Skip Link — WCAG 2.1 Level A */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: var(--text-white);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    z-index: 100;
}

/* Prevent modal flash before deferred pricing.css loads */
.info-modal {
    opacity: 0;
    visibility: hidden;
}

