/* ==========================================================================
   ASTROVIA - Apple/Stripe/Linear Level Design
   Billion-dollar SaaS standards: hierarchy, rhythm, restraint
   ========================================================================== */

/* Legacy variable mappings - maps old names to new token system */
:root, [data-theme="dark"] {
  --color-accent: var(--color-primary);
  --color-accent-light: var(--color-primary-subtle);
  --font-sans: var(--font-family);
  
  --bg-primary: var(--color-bg);
  --bg-secondary: var(--color-bg-secondary);
  --bg-tertiary: var(--color-bg-tertiary);
  --bg-muted: var(--color-bg-tertiary);
  
  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  
  --border-primary: var(--color-border);
  --border-subtle: var(--color-border-subtle);
  
  --nav-bg: rgba(10, 10, 15, 0.9);
}

[data-theme="light"] {
  --nav-bg: rgba(255, 255, 255, 0.9);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   LAYOUT - Containers with deliberate max-widths
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow { 
  max-width: 680px; 
}

.container--headline {
  max-width: 760px;
}

/* ==========================================================================
   SECTIONS - Vertical rhythm (96-120px between sections)
   ========================================================================== */

.section { 
  padding: 96px 0; 
}

.section--muted { 
  background: var(--bg-secondary); 
}

.section--statement { 
  padding: 120px 0; 
  text-align: center; 
}

.section--problem { 
  padding: 80px 0; 
}

.section--cta { 
  padding: 96px 0; 
  text-align: center; 
}

/* ==========================================================================
   NAV - Fixed, minimal, confident
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

.nav__logo-img {
  height: 22px;
  width: auto;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Theme-based logo switching */
.nav__logo-img--dark { display: none; }
.nav__logo-img--light { display: block; }

[data-theme="dark"] .nav__logo-img--dark { display: block; }
[data-theme="dark"] .nav__logo-img--light { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.nav__link:hover { color: var(--text-primary); }

/* Desktop dropdown menu */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1;
  transition: color 150ms ease;
}

.nav__dropdown-trigger:hover {
  color: var(--text-primary);
}

.nav__dropdown-icon {
  transition: transform 200ms ease;
}

.nav__dropdown:hover .nav__dropdown-icon,
.nav__dropdown[data-open="true"] .nav__dropdown-icon {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: 8px 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown[data-open="true"] .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav__dropdown:hover .nav__dropdown-icon,
.nav__dropdown:focus-within .nav__dropdown-icon {
  transform: rotate(180deg);
}

.nav__dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 150ms ease, color 150ms ease;
}

.nav__dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

/* Mobile nav hamburger */
.nav__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav__menu-icon--close { display: none; }

[data-nav-open="true"] .nav__menu-icon--open { display: none; }
[data-nav-open="true"] .nav__menu-icon--close { display: block; }

@media (max-width: 768px) {
  .nav__menu-toggle { display: flex; }
  .nav__links { display: none; }
  .theme-toggle--desktop { display: none !important; }
  .nav__actions { display: none !important; }
  
  .nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Nav drawer overlay */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 998;
}

[data-nav-open="true"] .nav-drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* Nav drawer slide-out */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-subtle);
  transform: translateX(-100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
}

[data-nav-open="true"] .nav-drawer {
  transform: translateX(0);
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-primary);
  min-height: 52px;
  box-sizing: border-box;
  position: relative;
}

.nav-drawer__close {
  position: absolute;
  left: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

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

.nav-drawer__logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-drawer__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  background: var(--bg-primary);
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.nav-drawer__tagline {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 2px 20px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.01em;
}

.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 0;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease;
  width: 100%;
  box-sizing: border-box;
}

.nav-drawer__content > .nav-drawer__nav .nav-drawer__link:first-child,
.nav-drawer__nav--tools .nav-drawer__link:first-child,
.nav-drawer__nav--contact .nav-drawer__link:first-child {
  border-top: none;
}

.nav-drawer__tools {
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.nav-drawer__tools-label {
  display: block;
  padding: 16px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.nav-drawer__link:hover {
  background: var(--bg-tertiary);
}

.nav-drawer__link--contact {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-drawer__section {
  padding: 14px 20px 20px;
}

.nav-drawer__section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.theme-toggle--drawer {
  width: 100%;
}

.theme-toggle--drawer .theme-toggle__option {
  flex: 1;
  justify-content: center;
}

.nav-drawer__footer {
  padding: 20px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-drawer__appearance {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-drawer__appearance .nav-drawer__section-label {
  margin-bottom: 0;
}

.nav-drawer__cta-btn {
  width: 100%;
}

/* Hide drawer on desktop */
@media (min-width: 769px) {
  .nav-drawer,
  .nav-drawer-overlay {
    display: none;
  }
}

/* Body scroll lock when nav open */
body[data-nav-open="true"] {
  overflow: hidden;
}

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */

.theme-toggle {
  display: flex;
  background: var(--bg-muted);
  border: 1px solid var(--border-primary);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.theme-toggle__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.theme-toggle__option:hover {
  color: var(--text-secondary);
}

.theme-toggle__option.is-active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-toggle__option svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .theme-toggle__option span { display: none; }
  .theme-toggle__option { padding: 6px 8px; }
}

/* ==========================================================================
   BUTTONS - Refined, confident
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 8px;
  transition: all 150ms ease;
}

.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }

.btn--primary { color: white; background: var(--color-accent); }
.btn--primary:hover { background: #1d4ed8; }

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}
.btn--ghost:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* ==========================================================================
   SECTION PILL - Light blue badge for section labels
   ========================================================================== */

.section-pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ==========================================================================
   HERO - Deliberate pacing, clear hierarchy
   ========================================================================== */

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 48px 0 40px;
  overflow: visible;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  overflow: visible;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__accent { color: var(--color-accent); }

.hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 420px;
}

.hero__tagline {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero__ctas { 
  display: flex; 
  gap: 12px; 
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: visible;
}

.hero__globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  padding: 16px;
  overflow: visible;
}

#globe-container { 
  width: 100%; 
  height: 100%; 
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: visible;
}

#globe-container.globe-ready {
  opacity: 1;
}

#globe-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.globe-texture-switcher {
  display: flex;
  gap: 8px;
  background: var(--bg-secondary);
  backdrop-filter: blur(8px);
  padding: 8px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.globe-texture-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 9999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 200ms ease;
  font-size: 18px;
}

.globe-texture-btn:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.globe-texture-btn.active {
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.15);
}

.globe-texture-btn i {
  font-size: 18px;
  line-height: 1;
}

.globe-info-tooltip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  color: var(--text-muted);
  cursor: help;
  transition: all 200ms ease;
}

.globe-info-tooltip:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.globe-info-tooltip:hover .globe-info-icon {
  opacity: 1;
}

.globe-info-content {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 280px;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.globe-info-tooltip:hover .globe-info-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.globe-info-content strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.globe-info-content p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.globe-info-content::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}

.globe-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 
    0 0 60px rgba(59, 130, 246, 0.2),
    inset -20px -20px 60px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 1024px) {
  .hero__container { 
    grid-template-columns: 1fr; 
    text-align: center; 
    padding: 48px 24px;
  }
  .hero__visual { order: -1; margin-bottom: 16px; }
  .hero__globe-wrapper { max-width: 380px; margin: 0 auto; padding: 16px; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { margin-bottom: 12px; }
  .hero__globe-wrapper { max-width: 320px; padding: 12px; }
}

/* ==========================================================================
   TRUST STRIP - Quiet, secondary, not hero
   ========================================================================== */

.trust-strip {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.trust-strip__inner {
  display: flex;
  justify-content: center;
}

.trust-strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.trust-item i {
  font-size: 16px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .trust-strip__items { gap: 20px; }
  .trust-item { font-size: 12px; }
  .trust-item i { font-size: 14px; }
}

@media (max-width: 480px) {
  .trust-strip__items { gap: 12px 20px; }
}

/* ==========================================================================
   STATEMENT SECTION - Single hero, clear hierarchy
   ========================================================================== */

.statement {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.statement__accent { color: var(--text-primary); }

.statement__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ==========================================================================
   FEATURE SECTION - Video + Content grid (Shopify Partner style)
   ========================================================================== */

.section--feature {
  padding: 96px 0;
  background: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.feature-media {
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0f;
}

.feature-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.feature-content {
  max-width: 480px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

.shopify-partners-logo {
  height: 52px;
  width: auto;
}

[data-theme="dark"] .shopify-partners-logo {
  filter: invert(1);
}

.feature-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.feature-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.feature-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.feature-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.feature-stat__number {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-stat__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}


@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .feature-content {
    max-width: 100%;
    text-align: center;
  }
  
  .feature-badge {
    justify-content: center;
  }
  
  .feature-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .feature-stats {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

/* ==========================================================================
   SECTION TITLES - Clear weight separation
   ========================================================================== */

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 64px;
  max-width: 640px;
}

/* ==========================================================================
   CAPABILITIES - Header + Cards with visual pause
   ========================================================================== */

.capabilities-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 64px;
}

.capabilities-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.capabilities-subheadline {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.capability-card {
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-primary);
  transition: transform 180ms ease;
}

.capability-card:hover {
  transform: translateY(-2px);
}

.capability-card__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.capability-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.capability-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   HOW IT WORKS - Horizontal flow with connectors
   ========================================================================== */

.how-it-works-header {
  text-align: center;
  margin-bottom: 56px;
}

.how-it-works-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 16px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.flow-step {
  text-align: left;
  padding: 24px 20px;
  position: relative;
}

.flow-step__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--color-accent);
  transition: transform 180ms ease;
}

.flow-step:hover .flow-step__icon {
  transform: scale(1.01);
}

.flow-step__connector {
  position: absolute;
  top: 52px;
  left: calc(20px + 56px + 12px);
  width: calc(100% - 56px - 32px - 12px);
  height: 1px;
  background: var(--border-subtle);
  opacity: 0.6;
}

.flow-step:last-child .flow-step__connector {
  display: none;
}

.flow-step__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.flow-step__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  
  .flow-step:nth-child(2) .flow-step__connector,
  .flow-step:nth-child(4) .flow-step__connector {
    display: none;
  }
}

@media (max-width: 600px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flow-step {
    text-align: center;
  }
  
  .flow-step__icon {
    margin: 0 auto 16px;
  }
  
  .flow-step__connector {
    display: none;
  }
}

/* ==========================================================================
   PRODUCT SHOWCASE - Tabbed Platform Preview (Apple/Stripe style)
   ========================================================================== */

.showcase-tabs {
  margin-top: 48px;
}

.showcase-tabs__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.showcase-tabs__tab {
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
  position: relative;
}

.showcase-tabs__tab:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.showcase-tabs__tab.is-active {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.showcase-tabs__tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.showcase-tabs__hero {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.showcase-tabs__panel {
  display: none;
  animation: showcaseFadeIn 300ms ease;
}

.showcase-tabs__panel.is-active {
  display: block;
}

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

.showcase-tabs__frame {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* Loading skeleton animation */
.showcase-tabs__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.showcase-tabs__frame:has(.showcase-tabs__image.loaded)::before {
  opacity: 0;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

[data-theme="dark"] .showcase-tabs__frame {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.showcase-tabs__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.showcase-tabs__placeholder svg {
  opacity: 0.3;
}

.showcase-tabs__label {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.8;
}

.showcase-tabs__sublabel {
  font-size: 14px;
  opacity: 0.6;
  max-width: 280px;
}

.showcase-tabs__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.showcase-tabs__image.loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .showcase-tabs__nav {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .showcase-tabs__tab {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .showcase-tabs__frame {
    aspect-ratio: 3 / 2;
    border-radius: 12px;
  }
  
  .showcase-tabs__label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .showcase-tabs__nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
  }
  
  .showcase-tabs__tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .showcase-tabs__tab.is-active::after {
    bottom: -4px;
    width: 20px;
  }
}

/* ==========================================================================
   COUNTRY LOOKUP - Tax data search
   ========================================================================== */

.lookup-container {
  max-width: 640px;
  margin: 0 auto;
}

.lookup-search {
  position: relative;
  margin-bottom: 32px;
}

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

.lookup-search__input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-size: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lookup-search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lookup-search__input::placeholder {
  color: var(--text-muted);
}

.lookup-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lookup-suggestions.active {
  display: block;
}

.lookup-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 100ms ease;
}

.lookup-suggestion:hover {
  background: var(--bg-muted);
}

.lookup-suggestion__flag {
  font-size: 20px;
}

.lookup-suggestion__name {
  font-size: 15px;
  color: var(--text-primary);
}

.lookup-suggestion__region {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

.lookup-result {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
}

.lookup-result__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.lookup-result__flag {
  font-size: 32px;
}

.lookup-result__country {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.lookup-result__region {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: 6px;
}

.lookup-result__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.lookup-stat {
  text-align: center;
  padding: 16px 12px;
  background: var(--color-bg-secondary, #f8fafc);
  border-radius: 12px;
  transition: background 150ms ease;
}

[data-theme="dark"] .lookup-stat {
  background: rgba(255, 255, 255, 0.04);
}

.lookup-stat__label {
  display: block;
  font-size: 11px;
  color: var(--color-text-tertiary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 10px;
}

.lookup-stat__value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

[data-theme="dark"] .lookup-stat__value {
  color: var(--color-text, #f8fafc);
}

.lookup-provenance {
  font-size: 14px;
  color: var(--color-text-secondary, #475569);
  line-height: 1.65;
  margin: 0 0 24px 0;
  padding: 20px 24px;
  background: var(--color-bg-secondary, #f8fafc);
  border-radius: 12px;
}

.lookup-provenance:empty {
  display: none;
}

[data-theme="dark"] .lookup-provenance {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary, #cbd5e1);
}

.lookup-provenance__notes {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.lookup-provenance__notes:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

[data-theme="dark"] .lookup-provenance__notes {
  border-color: rgba(255, 255, 255, 0.1);
}

.lookup-provenance__source {
  font-size: 13px;
  color: var(--color-text-tertiary, #64748b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lookup-provenance__source-label {
  opacity: 0.8;
}

.lookup-morph-container {
  position: relative;
  margin-top: 24px;
}

.lookup-morph-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: var(--color-primary, #2563eb);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 200ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lookup-morph-btn:hover {
  background: var(--color-primary-hover, #1d4ed8);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.lookup-morph-btn:active {
  transform: translateY(0);
}

.lookup-morph-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.lookup-morph-search {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 2px solid var(--color-primary, #2563eb);
  border-radius: 12px;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 200ms cubic-bezier(0.32, 0.72, 0, 1);
}

.lookup-morph-search-icon {
  flex-shrink: 0;
  color: var(--color-primary, #2563eb);
}

.lookup-morph-input {
  flex: 1;
  padding: 14px 12px;
  font-size: 15px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
}

.lookup-morph-input::placeholder {
  color: var(--text-muted);
}

.lookup-morph-container.is-searching .lookup-morph-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.lookup-morph-container.is-searching .lookup-morph-search {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.lookup-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.lookup-empty svg {
  opacity: 0.3;
  margin-bottom: 16px;
}

.lookup-empty p {
  font-size: 15px;
  margin: 0;
}

@media (max-width: 600px) {
  .lookup-result__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lookup-result__header {
    flex-wrap: wrap;
  }
  
  .lookup-result__region {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   CALCULATORS - Structured, after explanation
   ========================================================================== */

.calculator-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
}

.calculator-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 150ms ease;
}

.calculator-tab:hover { color: var(--text-secondary); }
.calculator-tab.active { color: var(--text-primary); background: var(--bg-primary); }

.calculator {
  padding: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.calculator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .calculator__grid { grid-template-columns: 1fr; gap: 32px; }
  .calculator { padding: 24px; }
}

.calculator__inputs { display: flex; flex-direction: column; gap: 24px; }

.calc-input label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.calc-input__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-input input[type="range"] {
  flex: 1;
  height: 4px;
  background: var(--bg-muted);
  border-radius: 9999px;
  appearance: none;
  cursor: pointer;
}

.calc-input input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 9999px;
  cursor: pointer;
}

.calc-input span {
  min-width: 60px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.calculator__results { display: flex; flex-direction: column; gap: 16px; }

.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--bg-muted);
  border-radius: 10px;
}

.calc-result--primary {
  padding: 28px;
  background: var(--color-accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.calc-result__label {
  font-size: 14px;
  color: var(--text-muted);
}

.calc-result__value {
  font-size: 18px;
  font-weight: 600;
}

.calc-result--primary .calc-result__value {
  font-size: 32px;
  color: var(--color-accent);
}

/* ==========================================================================
   SECURITY - Structured, enterprise-grade
   ========================================================================== */

.section--security {
  padding: 112px 0;
}

.security-header {
  text-align: center;
  margin-bottom: 72px;
}

.security-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 20px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
  max-width: 920px;
  margin: 0 auto;
}

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

.security-item__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--text-muted);
  opacity: 0.7;
}

.security-item__icon svg {
  width: 22px;
  height: 22px;
}

.security-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.security-item__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.security-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 80px;
  opacity: 0.65;
}

@media (max-width: 768px) {
  .section--security {
    padding: 88px 0;
  }
  
  .security-header {
    margin-bottom: 56px;
  }
  
  .security-grid {
    gap: 48px 56px;
  }
  
  .security-footer {
    margin-top: 56px;
  }
}

@media (max-width: 640px) {
  .section--security {
    padding: 72px 0;
  }
  
  .security-header {
    margin-bottom: 48px;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 400px;
  }
  
  .security-footer {
    margin-top: 48px;
  }
}

/* ==========================================================================
   RESULTS - Case study grid with metrics
   ========================================================================== */

.section--results {
  padding: 112px 0;
}

.results-header {
  text-align: center;
  margin-bottom: 56px;
}

.results-header .section-title {
  margin-bottom: 12px;
}

.results-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

.result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 200ms ease;
}

.result-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.result-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.result-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  min-height: 4.8em;
}

.result-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.result-card__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.result-card__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .section--results {
    padding: 80px 0;
  }
  
  .results-header {
    margin-bottom: 48px;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .result-card {
    padding: 24px;
  }
  
  .result-card__desc {
    min-height: auto;
  }
  
  .result-card__value {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .section--results {
    padding: 64px 0;
  }
  
  .result-card__metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   PRICING - Premium card layout
   ========================================================================== */

.section--pricing {
  padding: 96px 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.pricing-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08), 0 8px 32px rgba(37, 99, 235, 0.12);
}

.pricing-card--featured:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12), 0 12px 40px rgba(37, 99, 235, 0.16);
}

.pricing-card__badge-inline {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 4px;
  margin-bottom: 12px;
}

.pricing-card__header {
  margin-bottom: 24px;
}

.pricing-card__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card__amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pricing-card__amount--custom {
  font-weight: 800;
}

.pricing-card__period {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card__body {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-card__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 16px 0 0 0;
  font-style: italic;
}

.pricing-card__footer {
  margin-top: auto;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn--prominent {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Pricing responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    gap: 20px;
  }
  
  .pricing-card {
    padding: 28px;
  }
  
  .pricing-card__amount {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .section--pricing {
    padding: 64px 0;
  }
  
  .pricing-header {
    margin-bottom: 48px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .section--pricing {
    padding: 48px 0;
  }
  
  .pricing-header {
    margin-bottom: 40px;
  }
  
  .pricing-intro {
    font-size: 16px;
  }
  
  .pricing-card {
    padding: 24px;
  }
  
  .pricing-card__name {
    font-size: 20px;
  }
  
  .pricing-card__amount {
    font-size: 26px;
  }
}

/* ==========================================================================
   CTA - Clear, single action
   ========================================================================== */

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.cta-actions { 
  display: flex; 
  justify-content: center; 
}

/* ==========================================================================
   LLC CALCULATOR - Apple-Level U.S. Expansion Duty Optimization
   ========================================================================== */

.section--llc-calc {
  background: var(--bg-primary);
  padding: 96px 0;
  position: relative;
}

.section--llc-calc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 50%);
  pointer-events: none;
}

.section--llc-calc .container {
  position: relative;
  z-index: 1;
}

.llc-calc-header {
  text-align: center;
  margin-bottom: 56px;
}

.llc-calc-header .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.llc-calc-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

.llc-calc-grid {
  display: flex;
  gap: 32px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.llc-calc-panel {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.llc-calc-panel--inputs {
  min-height: 560px;
}

.llc-calc-panel--results {
  gap: 20px;
}

.llc-calc-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.llc-input-group {
  margin-bottom: 20px;
}

.llc-input-group:last-of-type {
  margin-bottom: 0;
}

.llc-input-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 450;
}

.llc-label-text {
  flex: 1;
}

.llc-label-value {
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  min-width: 56px;
  text-align: center;
}

.llc-input-field {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  font-feature-settings: "tnum";
  transition: all 0.15s ease;
}

.llc-input-field:hover {
  border-color: var(--border-primary);
}

.llc-input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-subtle);
  background: var(--bg-primary);
}

.llc-input-slider {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) var(--slider-progress, 50%), var(--bg-tertiary) var(--slider-progress, 50%), var(--bg-tertiary) 100%);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-top: 4px;
}

.llc-input-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.llc-input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid white;
}

.llc-input-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4), 0 6px 16px rgba(37, 99, 235, 0.25);
}

.llc-input-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--color-primary-subtle), 0 2px 8px rgba(37, 99, 235, 0.3);
}

.llc-input-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.llc-input-slider::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

.llc-input-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.llc-flag {
  font-size: 22px;
  line-height: 1;
}

.llc-lock-icon {
  margin-left: auto;
  opacity: 0.4;
  color: var(--text-muted);
}

.llc-admin-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
}

.llc-admin-section .llc-input-field {
  background: var(--bg-primary);
}

.llc-admin-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.llc-admin-summary {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.llc-admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.llc-admin-value {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
}

/* Results Panel Styling */
.llc-results-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.llc-result-card {
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.llc-result-card--b2c {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.llc-result-card--b2bc {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.llc-result-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.llc-result-card--b2c .llc-result-label {
  color: #dc2626;
}

.llc-result-card--b2bc .llc-result-label {
  color: var(--color-primary);
}

.llc-result-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.llc-result-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.llc-breakdown {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
}

.llc-breakdown-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}

.llc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.llc-breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.llc-breakdown-row--total {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border-primary);
  border-bottom: none;
}

.llc-breakdown-label {
  color: var(--text-secondary);
  font-weight: 400;
}

.llc-breakdown-row--total .llc-breakdown-label {
  font-weight: 600;
  color: var(--text-primary);
}

.llc-breakdown-value {
  color: var(--text-primary);
  font-weight: 600;
  font-feature-settings: "tnum";
}

.llc-breakdown-row--total .llc-breakdown-value {
  color: var(--color-primary);
  font-size: 16px;
}

.llc-breakdown-value--negative {
  color: #dc2626;
}

.llc-grand-total {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.llc-grand-total::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.llc-grand-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 10px;
  position: relative;
}

.llc-grand-value {
  font-size: 44px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
  letter-spacing: -0.025em;
  line-height: 1;
  position: relative;
}

.llc-grand-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.llc-grand-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
}

/* ==========================================================================
   FX SAVINGS CALCULATOR - Same Apple-level styling as LLC Calculator
   ========================================================================== */

.section--fx-calc {
  background: var(--bg-primary);
  padding: 96px 0;
  position: relative;
}

.section--fx-calc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.section--fx-calc .container {
  position: relative;
  z-index: 1;
}

.fx-calc-header {
  text-align: center;
  margin-bottom: 56px;
}

.fx-calc-header .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.fx-calc-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.fx-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.fx-calc-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fx-calc-panel:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.fx-calc-panel--inputs {
  min-height: auto;
}

.fx-calc-panel--results {
  gap: 16px;
  justify-content: flex-start;
}

/* Period Toggle */
.fx-period-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
  margin-bottom: 20px;
}

.fx-period-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fx-period-btn:hover {
  color: var(--text-primary);
}

.fx-period-btn--active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fx-label-note {
  font-weight: 400;
  color: var(--text-muted);
}

/* Breakdown Rows */
.fx-breakdown {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px 0;
}

.fx-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.fx-breakdown-row:last-child {
  border-bottom: none;
}

.fx-breakdown-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.fx-breakdown-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-feature-settings: "tnum";
}

/* Grand Total */
.fx-grand-total {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fx-grand-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.fx-grand-value {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}

.fx-calc-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.fx-input-group {
  margin-bottom: 24px;
}

.fx-input-group:last-child {
  margin-bottom: 0;
}

.fx-input-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.fx-label-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.fx-label-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  font-feature-settings: "tnum";
  min-width: 80px;
  text-align: right;
}

.fx-input-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) var(--slider-progress, 50%), var(--bg-tertiary) var(--slider-progress, 50%), var(--bg-tertiary) 100%);
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease;
}

.fx-input-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.fx-input-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid white;
}

.fx-input-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4), 0 6px 16px rgba(37, 99, 235, 0.25);
}

.fx-input-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--color-primary-subtle), 0 2px 8px rgba(37, 99, 235, 0.3);
}

.fx-input-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.fx-input-slider::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

.fx-input-helper {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Results Panel - Compact Layout */
.fx-results-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-result-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
}

.fx-result-mini--current {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.fx-result-mini--optimized {
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.fx-result-mini-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fx-result-mini--current .fx-result-mini-label {
  color: #dc2626;
}

.fx-result-mini--optimized .fx-result-mini-label {
  color: var(--color-primary);
}

.fx-result-mini-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}

/* Scale Chart */
.fx-scale-chart {
  margin-top: 8px;
}

.fx-scale-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.fx-scale-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-scale-row {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  gap: 10px;
  align-items: center;
}

.fx-scale-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.fx-scale-bar-wrap {
  background: var(--bg-tertiary);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.fx-scale-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fx-scale-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  font-feature-settings: "tnum";
}

/* Responsive: Tablet */
@media (max-width: 960px) {
  .section--fx-calc {
    padding: 72px 0;
  }
  
  .fx-calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
  }
  
  .fx-calc-panel--inputs {
    min-height: auto;
  }
  
  .fx-calc-header {
    margin-bottom: 40px;
  }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .section--fx-calc {
    padding: 56px 0;
  }
  
  .fx-calc-grid {
    gap: 20px;
  }
  
  .fx-calc-panel {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .fx-calc-panel--results {
    gap: 12px;
  }
  
  .fx-calc-panel-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  
  .fx-breakdown-row {
    padding: 10px 14px;
  }
  
  .fx-breakdown-value {
    font-size: 14px;
  }
  
  .fx-grand-total {
    padding: 14px 16px;
  }
  
  .fx-grand-value {
    font-size: 24px;
  }
  
  .fx-scale-row {
    grid-template-columns: 40px 1fr 56px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .fx-calc-panel,
  .fx-result-card,
  .fx-input-slider::-webkit-slider-thumb {
    transition: none;
  }
  
  .fx-calc-panel:hover {
    transform: none;
  }
}

/* Responsive: Tablet */
@media (max-width: 960px) {
  .section--llc-calc {
    padding: 72px 0;
  }
  
  .llc-calc-grid {
    flex-direction: column;
    gap: 24px;
    max-width: 560px;
  }
  
  .llc-calc-panel--inputs {
    min-height: auto;
  }
  
  .llc-calc-header {
    margin-bottom: 40px;
  }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .section--llc-calc {
    padding: 56px 0;
  }
  
  .llc-calc-grid {
    gap: 20px;
  }
  
  .llc-calc-panel {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .llc-calc-panel--results {
    gap: 16px;
  }
  
  .llc-calc-panel-title {
    font-size: 16px;
    margin-bottom: 18px;
  }
  
  .llc-input-group {
    margin-bottom: 16px;
  }
  
  .llc-results-cards {
    gap: 12px;
  }
  
  .llc-grand-total {
    padding: 22px 18px;
    border-radius: 14px;
  }
  
  .llc-grand-value {
    font-size: 34px;
  }
  
  .llc-result-card {
    padding: 16px;
    border-radius: 12px;
  }
  
  .llc-result-value {
    font-size: 26px;
  }
  
  .llc-admin-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .llc-breakdown {
    padding: 16px 18px;
    border-radius: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .llc-calc-panel,
  .llc-result-card,
  .llc-input-slider::-webkit-slider-thumb {
    transition: none;
  }
  
  .llc-result-card:hover,
  .llc-calc-panel:hover {
    transform: none;
  }
}

/* ==========================================================================
   CONTACT MODAL - Apple-level aesthetics
   ========================================================================== */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.contact-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 150ms ease;
}

.contact-modal.is-open .contact-modal__backdrop {
  opacity: 1;
}

.contact-modal__container {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 150ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.is-open .contact-modal__container {
  opacity: 1;
  transform: translateY(0);
}

.contact-modal__content {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.contact-modal__close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-modal__header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-modal__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.contact-modal__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form__group {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form__optional {
  font-weight: 400;
  color: var(--text-muted);
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-muted);
}

.contact-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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__submit {
  margin-top: 24px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
}

.contact-modal__success {
  text-align: center;
  padding: 24px 0;
}

.contact-modal__success-icon {
  color: #10b981;
  margin-bottom: 16px;
}

.contact-modal__success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.contact-modal__success-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
}

@media (max-width: 480px) {
  .contact-modal {
    padding: 16px;
  }
  
  .contact-modal__content {
    padding: 32px 24px;
    border-radius: 12px;
  }
  
  .contact-modal__title {
    font-size: 22px;
  }
}

/* Nav drawer CTA */
.nav-drawer__cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   FOOTER - Premium, structured layout
   ========================================================================== */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo-img {
  height: 16px;
  width: auto;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Footer theme-based logo switching */
.footer__logo-img--dark { display: none; }
.footer__logo-img--light { display: block; }

[data-theme="dark"] .footer__logo-img--dark { display: block; }
[data-theme="dark"] .footer__logo-img--light { display: none; }

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.footer__nav {
  display: flex;
  gap: 64px;
}

.footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.footer__nav-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.footer__nav-group a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  padding-top: 32px;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 0 32px;
  }
  
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer__brand {
    max-width: 100%;
    text-align: left;
  }
  
  .footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  
  .footer__nav-group:last-child {
    grid-column: span 2;
  }
}

.footer__link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease;
}

.footer__link-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   LEGAL MODALS - Privacy Policy & Terms
   ========================================================================== */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.legal-modal__container {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 200ms ease;
}

.legal-modal.is-open .legal-modal__container {
  transform: translateY(0);
}

.legal-modal__content {
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
}

.legal-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  z-index: 10;
}

.legal-modal__close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.legal-modal__header {
  margin-bottom: 32px;
  padding-right: 48px;
}

.legal-modal__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.legal-modal__updated {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.legal-modal__body {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.legal-section p {
  font-size: 15px;
  margin: 0 0 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-section li {
  font-size: 15px;
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-modal {
    padding: 16px;
  }
  
  .legal-modal__content {
    padding: 32px 24px;
  }
  
  .legal-modal__title {
    font-size: 24px;
  }
  
  .legal-modal__close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE - 768px and below
   ========================================================================== */

@media (max-width: 768px) {
  /* Hero - globe above text on mobile */
  .hero {
    padding: 80px 0 48px;
  }
  
  .hero__container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .hero__visual {
    order: 1;
  }
  
  .hero__content {
    order: 2;
  }
  
  .hero__title {
    font-size: 36px;
  }
  
  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__ctas {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero__globe-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .globe-texture-switcher {
    justify-content: center;
  }
  
  /* Trust strip - stack vertically, left-aligned for mobile */
  .trust-strip__inner {
    justify-content: flex-start;
  }
  
  .trust-strip__items {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .trust-item {
    font-size: 14px;
    font-weight: 500;
  }
  
  .trust-item i {
    font-size: 18px;
  }
  
  /* Statement section - maximize impact */
  .section--statement {
    padding: 80px 0;
  }
  
  .statement {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    text-align: left;
    margin-left: 0;
  }
  
  .statement__sub {
    text-align: left;
    margin-left: 0;
    font-size: 16px;
  }
  
  /* Feature grid */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .feature-media {
    order: 1;
  }
  
  .feature-content {
    order: 2;
    text-align: left;
  }
  
  .feature-badge {
    justify-content: flex-start;
  }
  
  .feature-headline {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  
  .feature-description {
    font-size: 16px;
  }
  
  .feature-stats {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 16px;
  }
  
  .feature-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  
  .feature-stat__number {
    font-size: 32px;
    font-weight: 700;
  }
  
  .feature-stat__label {
    font-size: 15px;
  }
  
  /* Capabilities */
  .capabilities-header {
    text-align: left;
  }
  
  .capabilities-headline {
    font-size: 28px;
  }
  
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* How It Works - vertical stack */
  .flow-steps {
    flex-direction: column;
    gap: 32px;
  }
  
  .flow-step {
    text-align: left;
  }
  
  .flow-step__connector {
    display: none;
  }
  
  .flow-step__title {
    font-size: 18px;
  }
  
  /* Country lookup */
  .lookup-container {
    max-width: 100%;
  }
  
  .lookup-result__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Calculators */
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  /* CTA section */
  .cta-title {
    font-size: 28px;
  }
  
  /* Section padding */
  .section {
    padding: 64px 0;
  }
}

/* ==========================================================================
   SMALL MOBILE - 480px and below
   ========================================================================== */

@media (max-width: 480px) {
  .hero__title {
    font-size: 28px;
  }
  
  .hero__subtitle {
    font-size: 15px;
  }
  
  .hero__globe-wrapper {
    max-width: 260px;
  }
  
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__ctas .btn {
    width: 100%;
  }
  
  .statement {
    font-size: clamp(1.5rem, 7vw, 1.75rem);
  }
  
  .statement__sub {
    font-size: 15px;
  }
  
  .trust-strip__items {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .trust-item {
    justify-content: flex-start;
  }
  
  .feature-stat__number {
    font-size: 28px;
  }
  
  .lookup-result__grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 15px;
  }
  
  .capability-card {
    padding: 24px;
  }
  
  .cta-title {
    font-size: 24px;
  }
  
  .nav-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

/* ==========================================================================
   EDGE CASE SMALL - 360px and below
   ========================================================================== */

@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }
  
  .hero__title {
    font-size: 24px;
  }
  
  .hero__globe-wrapper {
    max-width: 220px;
  }
  
  .nav__actions .btn--sm {
    padding: 0 8px;
    font-size: 12px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   COUNTRY LOOKUP - Additional Styles for Data Integration
   ========================================================================== */

/* Warning/alert badges in suggestions */
.lookup-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lookup-badge--warning {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.lookup-badge--alert {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

[data-theme="dark"] .lookup-badge--warning {
  background: rgba(234, 179, 8, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .lookup-badge--alert {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Warning styling for de minimis value */
.result-warning {
  color: #dc2626 !important;
  font-weight: 700;
}

.result-caution {
  color: #ca8a04 !important;
}

[data-theme="dark"] .result-warning {
  color: #f87171 !important;
}

[data-theme="dark"] .result-caution {
  color: #fbbf24 !important;
}

/* Alert text in notes */
.result-alert {
  display: block;
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 8px;
}

[data-theme="dark"] .result-alert {
  color: #f87171;
}

/* Official sources links - Apple-style flat design */
.lookup-result__sources {
  margin-top: 24px;
  padding: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lookup-result__sources strong {
  font-weight: 500;
  color: var(--color-text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lookup-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  background: transparent;
  border: none;
  color: var(--color-primary, #2563eb);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 150ms ease;
}

[data-theme="dark"] .lookup-source-link {
  color: #60a5fa;
}

.lookup-source-link:hover {
  opacity: 0.7;
}

.lookup-source-link .source-icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.lookup-source-link:hover .source-icon {
  opacity: 1;
}

/* Verified badge for official sources */
.lookup-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .lookup-verified-badge {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  color: #4ade80;
}

.lookup-verified-badge svg {
  width: 12px;
  height: 12px;
}

/* Last updated text - centered */
.lookup-last-updated {
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lookup-last-updated::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Disclaimer text - centered */
.lookup-disclaimer {
  display: block;
  margin: 24px 0 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
  opacity: 0.6;
  line-height: 1.5;
}

/* Enhanced result card with glass morphism */
.lookup-result {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.02);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.lookup-result:hover {
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .lookup-result {
  background: rgba(30, 30, 40, 0.8);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Enhanced stat cards */
.lookup-stat {
  text-align: center;
  padding: 16px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 180ms ease;
}

.lookup-stat:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
}

.lookup-stat__label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 600;
}

.lookup-stat__value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   MOBILE UX ENHANCEMENTS - iOS Safe Area & Apple-Level Polish
   ========================================================================== */

/* iOS Safe Area Support - ensure viewport-fit=cover is set in HTML */
/* 
  Strategy: Keep drawers/modals at full viewport height, add PADDING for safe areas
  This prevents gaps while ensuring content doesn't get hidden behind notch/home indicator
*/

/* Base fallbacks for all browsers */
.nav-drawer {
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  padding-bottom: 24px;
}

.nav-drawer__footer {
  padding-bottom: 20px;
}

/* Enhanced safe-area support for iOS/modern browsers */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  /* Add padding to account for notch/home indicator, NOT subtract from height */
  .nav-drawer {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 24px);
  }
  
  .nav-drawer__footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 24px));
  }
}

/* Contact Modal - Mobile Optimization */
@media (max-width: 640px) {
  .contact-modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .contact-modal__container {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
  }
  
  .contact-modal__content {
    overflow: visible;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 16px));
  }
  
  .contact-modal__header {
    margin-bottom: 20px;
  }
  
  .contact-modal__title {
    font-size: 22px;
  }
  
  .contact-modal__close {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
  }
  
  .contact-form__group {
    margin-bottom: 16px;
  }
  
  .contact-form__textarea {
    min-height: 80px;
  }
  
  .contact-form__submit {
    margin-top: 20px;
  }
}

/* Globe Texture Toggle - Ensure icons are visible */
.globe-toggle-btn {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-toggle-btn i,
.globe-toggle-btn svg {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Fallback icon styles if Phosphor icons don't load */
.globe-toggle-btn::before {
  display: none;
}

@media (max-width: 768px) {
  /* How Astrovia Works - Left-aligned with CSS Grid for existing DOM structure */
  .flow-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 16px;
    text-align: left;
  }
  
  .flow-step__icon {
    grid-column: 1;
    grid-row: 1 / -1;
    margin: 0;
    align-self: start;
  }
  
  .flow-step__connector {
    display: none;
  }
  
  .flow-step__title {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    margin-bottom: 4px;
  }
  
  .flow-step__text {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
  
  /* Trust strip - reduce padding */
  .trust-strip {
    padding: 16px 0;
  }
  
  .trust-strip__items {
    gap: 10px;
  }
  
  .trust-item {
    font-size: 13px;
  }
  
  /* Statement section - Bigger text, centered */
  .section--statement {
    padding: 64px 0;
  }
  
  .statement {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
  }
  
  .statement__sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }
  
  /* Hero CTA buttons - full width stack */
  .hero__ctas {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }
  
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Globe controls - larger touch targets */
  .globe-texture-switcher {
    gap: 8px;
  }
  
  .globe-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  
  /* Nav drawer improvements */
  .nav-drawer {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-drawer__content {
    flex: 1;
    overflow-y: auto;
  }
  
  .nav-drawer__footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  /* Statement - even more prominent */
  .statement {
    font-size: clamp(1.625rem, 9vw, 2rem);
    letter-spacing: -0.03em;
  }
  
  .statement__sub {
    font-size: 14px;
    max-width: 280px;
  }
  
  /* Trust strip - tighter on small screens */
  .trust-strip {
    padding: 12px 0;
  }
  
  .trust-item {
    font-size: 12px;
  }
  
  .trust-item i {
    font-size: 16px;
  }
  
  /* Flow steps - compact */
  .flow-steps {
    gap: 24px;
  }
  
  .flow-step {
    gap: 12px;
  }
  
  .flow-step__icon {
    width: 40px;
    height: 40px;
  }
  
  .flow-step__icon svg {
    width: 20px;
    height: 20px;
  }
  
  .flow-step__title {
    font-size: 16px;
  }
  
  .flow-step__text {
    font-size: 14px;
  }
  
  /* Pricing cards - stack properly */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pricing-card {
    padding: 24px 20px;
  }
}

/* Fix theme toggle icons visibility */
.theme-toggle__option svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

/* Ensure Phosphor icons load properly in drawer */
.theme-toggle--drawer .theme-toggle__option i,
.globe-toggle-btn i {
  font-family: 'Phosphor' !important;
  font-style: normal;
  font-weight: normal;
  display: inline-block;
}

/* SVG fallback for theme toggle if icons don't load */
.theme-toggle__option--light svg,
.theme-toggle__option--dark svg {
  display: block;
}

/* Contact Modal - Tablet Layout */
@media (max-width: 768px) {
  .contact-modal__container {
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }
  
  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}
