/* ==========================================================================
   IMYBOSS — design tokens
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #000000;
  --color-surface: #0d0d0d;           /* role cards, subtle lift */
  --color-surface-2: #1a1a1a;          /* hover/active state */
  --color-text: #ffffff;
  --color-text-muted: #b0b0b0;
  --color-text-dim: #6a6a6a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --color-accent: #ffffff;             /* no colored accent; the photo + socials carry color */

  /* Social brand colors */
  --color-linkedin: #0A66C2;
  --color-whatsapp: #25D366;
  --color-facebook: #1877F2;
  --color-instagram-from: #f09433;
  --color-instagram-via-1: #e6683c;
  --color-instagram-via-2: #dc2743;
  --color-instagram-via-3: #cc2366;
  --color-instagram-to: #bc1888;

  /* Role accent colors (homepage role-card icons) */
  --color-role-consultant: #9AFF9A;    /* lightbulb glyph */
  --color-role-entrepreneur: #D2B8FF;  /* up-trend chart glyph */
  --color-role-manager: #FF6F80;       /* arrow-in-circle glyph */

  /* Service-group accents — Set up / Operate / Grow (FR: Lancement / Gestion /
     Croissance). Same brand hues as the role icons; used on the landing hero
     accent verbs and the Set up/Operate/Grow spine. */
  --color-group-setup:   var(--color-role-consultant);   /* #9AFF9A */
  --color-group-operate: var(--color-role-entrepreneur); /* #D2B8FF */
  --color-group-grow:    var(--color-role-manager);      /* #FF6F80 */

  /* Typography */
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl:  clamp(2rem, 1.6rem + 2vw, 2.75rem);
  --text-4xl:  clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  --text-5xl:  clamp(3rem, 2.2rem + 4vw, 5rem);
  --text-6xl:  clamp(3.5rem, 2.5rem + 5vw, 6rem);
  --text-button: 1.5625rem;         /* 25px, non-fluid — font-size for all .btn elements */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 840px;
  --container-padding: clamp(1.25rem, 5vw, 2.5rem);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-button: 12px;        /* button-specific: rounded rectangle, not pill */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--color-bg);
  overflow-x: clip; /* kill horizontal scroll without breaking position: sticky */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; transition: opacity var(--transition-fast); }
a:hover { opacity: 0.75; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-size: var(--text-button);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-border-strong);
}

.btn--primary:hover {
  opacity: 1;
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  opacity: 1;
  background: var(--color-text);
  color: var(--color-bg);
}

/* Adjacent buttons get horizontal breathing room. Applies anywhere two .btn
   elements sit as siblings — landing hero, every closing callout, anywhere else
   we put two CTAs side by side. On narrow screens where buttons wrap, the
   wrapped button keeps its margin — acceptable; rare for both CTAs to wrap. */
.btn + .btn {
  margin-left: var(--space-4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Three group-colour dots next to the wordmark (Set up / Operate / Grow). */
.brand-dots {
  display: inline-flex;
  gap: 5px;
  margin-inline-start: var(--space-2);
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}
.brand-dot--1 { background: var(--color-group-setup); }
.brand-dot--2 { background: var(--color-group-operate); }
.brand-dot--3 { background: var(--color-group-grow); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  position: relative;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav__item {
  position: static;
}

.site-nav__link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-transform: uppercase;
  transition: opacity var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link--active {
  opacity: 0.7;
}

/* Services dropdown — shows on hover (mouse) or focus-within (keyboard). On mobile the
   submenu collapses to inline indented items inside the hamburger drawer (see media query). */
.site-nav__submenu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 180px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s;
  z-index: 50;
}

/* Invisible bridge across the gap so the pointer can travel from the nav item
   into the panel without the menu closing mid-way. */
.site-nav__submenu::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(-1 * var(--space-2));
  height: var(--space-2);
}

.site-nav__item:hover .site-nav__submenu,
.site-nav__item:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__sublink {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.site-nav__sublink:hover,
.site-nav__sublink--active {
  opacity: 0.7;
}

/* Services mega-menu — three columns, one per service group (Set up / Operate /
   Grow), each carrying its group accent. Reuses the .site-nav__submenu show/hide. */
.site-nav__submenu--mega {
  flex-direction: row;
  display: grid;
  grid-template-columns: repeat(3, minmax(212px, 1fr));
  gap: var(--space-7);
  width: max-content;
  max-width: min(880px, calc(100vw - var(--container-padding) * 2));
  padding: var(--space-6) var(--space-7);
  left: auto;
  right: 0;
}

.nav-mega__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.nav-mega__col--setup   { --mega-accent: var(--color-group-setup); }
.nav-mega__col--operate { --mega-accent: var(--color-group-operate); }
.nav-mega__col--grow    { --mega-accent: var(--color-group-grow); }

.nav-mega__group {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--mega-accent, var(--color-border-strong));
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}
.nav-mega__group:hover { opacity: 0.7; }
.nav-mega__num {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--mega-accent);
}

.nav-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.nav-mega__link { display: block; }
.nav-mega__link-title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.nav-mega__link:hover .nav-mega__link-title { color: var(--color-text); }
.nav-mega__link-desc {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-dim);
}

.lang-switcher {
  display: flex;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lang-switcher__link {
  padding: var(--space-1) var(--space-3);
  color: var(--color-text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.lang-switcher__link--active {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base);
}

.menu-toggle__bar + .menu-toggle__bar { margin-top: 6px; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--container-padding);
    gap: var(--space-6);
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .site-nav[aria-expanded="true"] { transform: translateX(0); }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    width: 100%;
  }

  .site-nav__link { font-size: var(--text-xl); }

  /* Mobile: submenu always visible inline, indented under its parent. */
  .site-nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    padding: var(--space-3) 0 0 var(--space-5);
    min-width: 0;
    box-shadow: none;
  }

  .site-nav__sublink { font-size: var(--text-lg); }

  /* Mega-menu stacks to one column inside the mobile drawer. */
  .site-nav__submenu--mega {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    width: 100%;
    max-width: none;
  }
  .nav-mega__group { font-size: var(--text-base); }
  .nav-mega__link-title { font-size: var(--text-base); }
  .site-nav__submenu::before { display: none; }

  /* === Mobile polish (2026-05-30) === */

  /* Belt-and-braces: keep the nav drawer out of layout + a11y when closed,
     so it can't take horizontal space even if transform misbehaves. */
  .site-nav { visibility: hidden; pointer-events: none; }
  .site-nav[aria-expanded="true"] { visibility: visible; pointer-events: auto; }

  /* IMYBOSS wordmark reads larger on small screens. */
  .site-header__brand { font-size: var(--text-3xl); }

  /* Centered, not left-anchored, on mobile across the main content blocks. */
  .page-hero,
  .page-hero__eyebrow,
  .page-hero__title,
  .page-hero__lede,
  .section__header,
  .section__eyebrow,
  .section__title,
  .section-lede,
  .callout,
  .cta-band,
  .landing-hero,
  .landing-hero__inner,
  .hero-stats,
  .principle {
    text-align: center;
  }
  .cta-band__actions,
  .callout__actions,
  .hero-stats,
  .page-hero {
    justify-content: center;
    align-items: center;
  }

  /* === Mobile polish v2 (2026-05-30) === */

  /* Nav drawer: scrollable so the whole menu is reachable, and explicit z-index
     so its solid black background sits cleanly above page content. */
  .site-nav {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
    background: #000;
  }

  /* Buttons fit phone width: smaller text, wrap allowed, max-width capped. */
  .btn {
    font-size: var(--text-lg);
    padding-block: var(--space-3);
    padding-inline: var(--space-4);
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }
  /* Adjacent CTAs stack vertically on phones instead of pushing each other off-screen. */
  .btn + .btn { margin-left: 0; margin-top: var(--space-3); }

  /* First section sits visibly closer to the sticky header on mobile
     (heavy --space-10 top padding was leaving a lot of dead space). */
  .page-hero,
  .landing-hero,
  .hero {
    padding-block: var(--space-3) var(--space-6);
  }

  /* Any first section under <main> sits tight to the sticky header
     (was leaving --space-9 / --space-10 dead band above the first paint). */
  main > *:first-child,
  main > .section:first-child,
  main > section:first-child {
    padding-top: var(--space-3);
  }
  /* Kill the browser-default top margin on the first text element in the hero,
     so the visible gap is exactly the section's padding, nothing more. */
  .page-hero > :first-child,
  .landing-hero > :first-child,
  .landing-hero__inner > :first-child,
  .hero > :first-child,
  .hero__inner > :first-child,
  .page-hero h1, .page-hero h2,
  .landing-hero h1, .landing-hero h2 { margin-top: 0; }

  /* Compact the nav drawer so the mega-menu doesn't hide the rest
     (Process / About / Pricing / Get a Quote) below the fold. */
  .site-nav__link { font-size: var(--text-lg); }
  .site-nav__list { gap: var(--space-3); }
  .site-nav__submenu--mega { gap: var(--space-3); }
  .nav-mega__link-desc { display: none; }

  /* ─────────────────────────────────────────────────────────────
     COMPREHENSIVE MOBILE PASS (2026-05-30)
     Goal: ship a phone-correct version of every component in
     one block so we stop patching reports one by one.
     ───────────────────────────────────────────────────────────── */

  /* A. TAP TARGETS — WCAG AA minimum 44×44. */
  .menu-toggle { width: 44px; height: 44px; padding: 6px; }
  .lang-switcher__link {
    padding-block: var(--space-2);
    padding-inline: var(--space-3);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* B. HERO TYPE — let oversized titles wrap cleanly on a 360px screen. */
  .landing-hero__title { font-size: var(--text-5xl); line-height: 1.05; max-width: none; }
  .page-hero__title    { font-size: var(--text-4xl); line-height: 1.1; max-width: none; }
  .landing-hero__lede,
  .page-hero__lede     { font-size: var(--text-base); max-width: none; margin-inline: auto; }

  /* C. SECTION RHYTHM — heavy desktop padding scales down (was --space-9/10). */
  .section      { padding-block: var(--space-6); }
  .stats-strip  { padding-block: var(--space-5); }
  .section__header { margin-bottom: var(--space-5); }

  /* D. HERO-STATS — stack vertically so the 3 numbers don't crush together. */
  .hero-stats {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }

  /* E. CARDS — uniform tighter padding so content gets the width. */
  .service-card,
  .spine-card,
  .package,
  .principle,
  .role-card,
  .problem-card,
  .market-card { padding: var(--space-5) var(--space-4); }
  .cf-form     { padding-inline: 0; }

  /* F. PRICING — compact tiers, scrollable horizontal tab strips. */
  .pricing__panel-title  { font-size: var(--text-3xl); }
  .pricing__panel-lede   { font-size: var(--text-base); max-width: none; }
  .pricing__nav,
  .pricing__countries,
  .pricing__forms {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .pricing__nav::-webkit-scrollbar,
  .pricing__countries::-webkit-scrollbar,
  .pricing__forms::-webkit-scrollbar { display: none; }
  .pricing__tab,
  .pricing__country,
  .pricing__form-tab {
    flex: 0 0 auto;
    font-size: var(--text-sm);
    padding-block: var(--space-2);
    padding-inline: var(--space-3);
    min-height: 44px;
  }
  .pricing__tier        { padding: var(--space-4); gap: var(--space-3); }
  .pricing__tier-price  { font-size: var(--text-2xl); }
  .pricing__tier-buy    { min-height: 44px; padding-inline: var(--space-4); }

  /* G. FORMS — collapse split rows + phone code at the 768 line; ensure 44px inputs. */
  .form__row--split,
  .form__phone,
  .form__checkgroup { grid-template-columns: 1fr; gap: var(--space-3); }
  .form__legend  { font-size: var(--text-base); }
  .form__label   { font-size: var(--text-sm); }
  .form__input,
  .form__select,
  .form__textarea {
    font-size: var(--text-base);
    min-height: 44px;
  }
  .form__submit { width: 100%; }

  /* H. PACKAGES, RELATED, TIMELINE — center their content under centered headers. */
  .package,
  .related-services__link,
  .timeline__item { text-align: center; }
  .timeline__item { padding-inline: 0; }
  .package__cta,
  .package__list { align-items: center; }
  .package__list { padding-inline: 0; }

  /* I. FOOTER — stack centered with comfortable gaps. */
  .site-footer__grid    { gap: var(--space-5); text-align: center; }
  .site-footer__block   { align-items: center; }
  .site-footer__list    { align-items: center; }
  .site-footer__socials { justify-content: center; }
  .site-footer__bottom  { text-align: center; }

  /* J. BACK-TO-TOP — sized for thumb, kept off the bottom-right corner edge. */
  .to-top { inset-inline-end: var(--space-4); inset-block-end: var(--space-4); }

  /* K. SAFE-INSET FOR NOTCHED PHONES (uses logical inset). */
  body { padding-inline: env(safe-area-inset-left); }
}

/* ==========================================================================
   Hero — portrait on top, text below (matches current Divi layout)
   ========================================================================== */

.hero {
  padding-block: var(--space-9) var(--space-8);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

.hero__portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  max-width: 520px;
  width: 100%;
  justify-self: start;
}

@media (max-width: 960px) {
  .hero__portrait {
    justify-self: center;
    max-width: 440px;
  }
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Desktop: 2-col hero layout constrains .hero__content to ~half the container,
   so shrink the title to keep "Omar Aldalati" on one line. Mobile (1-col)
   keeps --text-6xl and naturally wraps to two lines. */
@media (min-width: 961px) {
  .hero__title {
    font-size: clamp(3.25rem, 2.25rem + 2vw, 4.5rem);
  }
}

.hero__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__contact-line {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0;
}

.hero__contact-line a:hover { opacity: 0.7; }

.hero__socials {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ==========================================================================
   Social icons — branded colors
   ========================================================================== */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  border: 1px solid #ffffff;
  color: #ffffff;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
}

.social-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.social-icon--linkedin  { background: var(--color-linkedin); }
.social-icon--whatsapp  { background: var(--color-whatsapp); }
.social-icon--facebook  { background: var(--color-facebook); }
.social-icon--instagram {
  background: linear-gradient(
    45deg,
    var(--color-instagram-from) 0%,
    var(--color-instagram-via-1) 25%,
    var(--color-instagram-via-2) 50%,
    var(--color-instagram-via-3) 75%,
    var(--color-instagram-to) 100%
  );
}

/* ==========================================================================
   Roles (3 cards under hero)
   ========================================================================== */

.roles {
  padding-block: var(--space-8);
}

.roles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.role-card {
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-align: center;
}

.role-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateY(-4px);
}

.role-card__icon {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
}

.role-card__icon svg {
  width: 100%;
  height: 100%;
}

.role-card__icon--consultant   { color: var(--color-role-consultant); }
.role-card__icon--entrepreneur { color: var(--color-role-entrepreneur); }
.role-card__icon--manager      { color: var(--color-role-manager); }

.role-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.role-card__body {
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: var(--text-base);
}

.roles__cta {
  text-align: center;
}

/* ==========================================================================
   Section heading (reusable for Experience / Education)
   ========================================================================== */

.section {
  padding-block: var(--space-9);
}

.section__header {
  margin-bottom: var(--space-8);
  text-align: left;
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Small uppercase eyebrow above a section title — gives each section a quiet
   label so the page isn't a stack of identical white h2s. */
.section__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-4);
}

/* Tonal section — lifts a whole section onto the surface ladder (#0d0d0d on
   #000) to create rhythm between sections. Cards inside lift one more rung so
   they don't dissolve into the tonal background. */
.section--tonal {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section--tonal .problem-card,
.section--tonal .principle {
  background: var(--color-surface-2);
}

/* ==========================================================================
   Timeline (experience + education)
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: var(--space-6);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border-strong);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-7);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--space-6) * -1 + 2px);
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-text);
}

.timeline__date {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.timeline__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* Sub-CTA pattern — a single button that ends a section as a secondary CTA (not wrapped
   in a .callout). Centers the button horizontally and gives it breathing room from the
   preceding content block. Applied to any .btn that's the immediate next sibling of:
     - .timeline      — landing's "How it works" → "See the full process"
     - .section-lede  — about's Markets/Founder sections, etc.
   .timeline has no bottom margin so it needs explicit margin-top; .section-lede already
   has margin-bottom: var(--space-7), so the centering rule alone is enough there. */
.timeline + .btn,
.section-lede + .btn {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.timeline + .btn {
  margin-top: var(--space-7);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-border);
}

.site-footer__socials {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-7);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin-bottom: var(--space-7);
  text-align: left;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
}

.site-footer__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.site-footer__text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Footer nav lists — vertical stack of links inside a footer column. Muted by
   default; global a:hover already brings them back to full opacity. */
.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__link {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.site-footer__bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-dim);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Page hero — shared interior hero (left-anchored, echoes .landing-hero)
   ========================================================================== */

.page-hero {
  padding-block: var(--space-10) var(--space-8);
}

.page-hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-5);
}

.page-hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 24ch;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
}

.page-hero__lede {
  max-width: 54ch;
  margin: 0 0 var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ==========================================================================
   Services grid (3 group cards — Set up / Operate / Grow)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding-bottom: var(--space-9);
}

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

.service-card {
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateY(-4px);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card__body {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Stretched-link wrapper: the card title becomes a link that covers the entire card via a
   pseudo-element. Used on the Services page to route each group card to its detail page. */
.service-card { position: relative; }
.service-card__title-link {
  color: inherit;
  text-decoration: none;
}
.service-card__title-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ==========================================================================
   Service detail list (12 numbered items, grouped by Set up / Operate / Grow)
   ========================================================================== */

.services-detail {
  padding-block: var(--space-9);
  border-top: 1px solid var(--color-border);
}

/* Services hub only — extra breathing room between the spine cards and the
   divider line above the detailed list (the hub is the one place the spine
   sits directly on top of it). */
.services-detail--gap { margin-top: var(--space-7); }

.services-detail__group + .services-detail__group {
  margin-top: var(--space-8);
}

.services-detail__group-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-strong);
}

/* Group accent — colours the group-title underline with its service-group hue,
   tying each detail group to its spine card (Services hub). */
.services-detail__group--setup   .services-detail__group-title { border-bottom-color: var(--color-group-setup); }
.services-detail__group--operate .services-detail__group-title { border-bottom-color: var(--color-group-operate); }
.services-detail__group--grow    .services-detail__group-title { border-bottom-color: var(--color-group-grow); }

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.service-item:last-child { border-bottom: 0; }

.service-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text-dim);
  letter-spacing: -0.02em;
  line-height: 1;
}

.service-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}

/* Stretched-link wrapper: makes the entire service-item clickable via a pseudo-element
   from the title link. Used on group pages and Services hub to route each item to its
   service detail page. Mirrors the pattern on .service-card__title-link. */
.service-item { position: relative; }
.service-item__title-link {
  color: inherit;
  text-decoration: none;
}
.service-item__title-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-item__body {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 680px;
}

@media (max-width: 640px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .service-item__number { font-size: var(--text-2xl); }
  .service-item__title { font-size: var(--text-xl); }
  .service-item__body { font-size: var(--text-base); }
}

/* Optional pill tag next to a service-item title — used on Grow to label Define / Reach / Convert. */
.service-item__tag {
  display: inline-block;
  margin-left: var(--space-3);
  padding: 2px 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  vertical-align: middle;
}

/* ==========================================================================
   Section lede (generic paragraph below a section header)
   ========================================================================== */

/* Used wherever a section needs an introductory paragraph below its h2:
   markets section, Mission, Markets we serve, Founder cross-link, etc. */
.section-lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: var(--space-7);
}

/* ==========================================================================
   Markets served (8 country cards on the Set up page)
   ========================================================================== */

.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

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

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

.market-card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.market-card:hover {
  background: var(--color-surface-2);
  animation: market-card-heartbeat 1.3s ease-in-out infinite;
}

/* Heartbeat while hovered: a single beat then a rest, looping for as long as
   the cursor stays on the card (keeps the -2px lift). */
@keyframes market-card-heartbeat {
  0%   { transform: translateY(-2px) scale(1); }
  15%  { transform: translateY(-2px) scale(1.05); }
  30%  { transform: translateY(-2px) scale(1); }
  100% { transform: translateY(-2px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .market-card:hover { animation: none; transform: translateY(-2px); }
}

/* Stretched link — the whole market card routes to its company-formation
   country page (used on the Set up + Company-formation pages). */
.market-card__link { color: inherit; }
.market-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }

.market-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.market-card__forms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* Country flag — replaces the legal-form list in a market card. Framed with a
   hairline so white/black flag bands read against the dark card. */
.market-card__flag {
  display: block;
  width: 60px;
  height: 40px;
  margin-top: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  overflow: hidden;
}

.market-card__flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Service-page components (per-service detail pages under /en/setup/X/, etc.)
   ========================================================================== */

/* "What's included" bullet list — em-dash markers, not browser-default discs. */
.service-included {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
}

.service-included li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text);
}

.service-included li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-text-dim);
}

/* "Related services" — 3-up grid of linked cards (number + title + arrow). */
.related-services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 720px) {
  .related-services { grid-template-columns: 1fr; }
}

.related-services__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.related-services__link:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.related-services__number {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-dim);
  letter-spacing: -0.02em;
}

.related-services__title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}

.related-services__arrow {
  color: var(--color-text-dim);
  font-size: var(--text-lg);
  transition: transform var(--transition-fast);
}

.related-services__link:hover .related-services__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Hero stats strip (About page) — quick numeric summary right after the hero
   ========================================================================== */

.stats-strip {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  text-align: center;
}

.hero-stats__item {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.hero-stats__value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* Landing variant — left-aligned to match the left-anchored landing hero, with
   the numerals enlarged into a single oversized typographic moment. */
.hero-stats--landing {
  justify-content: flex-start;
  gap: var(--space-6) var(--space-9);
  text-align: left;
}

.hero-stats--landing .hero-stats__value {
  font-size: var(--text-5xl);
}

/* ==========================================================================
   Principles grid (About page) — 4 cards stating the practice's approach
   ========================================================================== */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.principle {
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.principle:hover {
  background: var(--color-surface-2);
  transform: translateY(-2px);
}

.principle__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.principle__body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Problem / value-prop comparison (landing page) — two-column "without / with" cards
   ========================================================================== */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.problem-card {
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.problem-card--with {
  border-color: var(--color-border-strong);
}

.problem-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.problem-card--without .problem-card__title { color: var(--color-text-muted); }
.problem-card--with .problem-card__title { color: var(--color-text); }

.problem-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.6;
}

.problem-card__list li {
  position: relative;
  padding-left: var(--space-6);
}

.problem-card--without .problem-card__list li {
  color: var(--color-text-muted);
}

.problem-card--without .problem-card__list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--color-text-dim);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1;
}

.problem-card--with .problem-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1;
}

/* ==========================================================================
   Callout block (generic highlight section)
   ========================================================================== */

.callout {
  padding: var(--space-8) var(--space-7);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-block: var(--space-7);
}

.callout__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-4);
}

.callout__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}

.callout__body {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto var(--space-5);
}

/* ==========================================================================
   Forms (quote request)
   ========================================================================== */

.form {
  max-width: 720px;
  margin-inline: auto;
}

.form__intro {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-7);
  text-align: center;
}

.form__section {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-7) 0;
}

.form__legend {
  display: block;
  width: 100%;
  padding: 0 0 var(--space-4);
  margin-bottom: var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-bottom: 1px solid var(--color-border);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form__row--split {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .form__row--split { grid-template-columns: 1fr; }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form__field:last-child { margin-bottom: 0; }

.form__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.form__required {
  color: var(--color-text-dim);
  font-weight: 400;
  margin-left: 2px;
}

.form__optional {
  color: var(--color-text-dim);
  font-weight: 400;
  margin-left: 2px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-base), background var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.form__input:hover,
.form__select:hover,
.form__textarea:hover {
  background: var(--color-surface-2);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-text);
  background: var(--color-surface-2);
}

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

.form__select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 16px;
  padding-right: calc(var(--space-4) * 2 + 16px);
}

.form__select option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Replace the browser's default blue highlight on the hovered/selected option
   with a brand accent. Native dropdown styling is browser-dependent; this is
   honoured by Chromium-based browsers. */
.form__select option:checked,
.form__select option:hover,
.form__select option:focus {
  background: var(--color-group-setup);
  color: var(--color-bg);
}

/* Phone field — country dial-code select + number input */
.form__phone {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr;
  gap: var(--space-3);
}

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

.form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form__conditional[hidden] { display: none; }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-text);
  cursor: pointer;
}

/* Checkbox group — compact multi-select list (e.g. "Also interested in").
   Auto-fit grid keeps the 12-item service list to a few short rows. */
.form__checkgroup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.form__submit {
  width: 100%;
  margin-top: var(--space-5);
}

@media (min-width: 560px) {
  .form__submit { width: auto; min-width: 220px; }
}

.form__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.form__hint {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-top: var(--space-1);
}
.form__hint a { color: var(--color-text-muted); text-decoration: underline; }
.form__hint a:hover { color: var(--color-text); }

/* Quote page — form beside a context / trust sidebar */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}

.quote-layout .form { max-width: none; margin-inline: 0; }
.quote-layout .form__actions { justify-content: flex-start; }

@media (min-width: 880px) {
  .quote-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-8); }
  .quote-aside { position: sticky; top: var(--space-7); }
}

.quote-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.quote-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
}

.quote-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.quote-card__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  counter-reset: step;
}

.quote-card__steps li {
  position: relative;
  padding-inline-start: calc(var(--space-7) + var(--space-1));
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  counter-increment: step;
  min-height: var(--space-6);
}

.quote-card__steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: var(--space-6);
  height: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-bg);
  background: var(--color-text);
  border-radius: var(--radius-full);
}

.quote-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.quote-card__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.quote-card__contact a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.quote-card__contact a:hover { color: var(--color-text-muted); }

.quote-card__link {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}
.quote-card__link:hover { color: var(--color-text-muted); }

/* ==========================================================================
   Landing page — hero, group accents, spine, CTA band
   ========================================================================== */

/* Group-accent text — tints an inline word (a hero verb, an eyebrow segment)
   with its service-group hue. */
.accent-setup   { color: var(--color-group-setup); }
.accent-operate { color: var(--color-group-operate); }
.accent-grow    { color: var(--color-group-grow); }

/* Landing hero — left-anchored, oversized headline. Homepage only; interior
   pages keep the centered .page-hero. */
.landing-hero {
  padding-block: var(--space-10) var(--space-8);
}

.landing-hero__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-5);
}

.landing-hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

.landing-hero__lede {
  max-width: 54ch;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-7);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* The flex gap handles spacing; cancel the global .btn + .btn margin here. */
.landing-hero__actions .btn + .btn { margin-left: 0; }

/* Spine — the Set up / Operate / Grow group cards. Each group carries a number
   + an accent hairline so the three-part structure teaches itself. */
.spine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

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

.spine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--spine-accent, var(--color-border-strong));
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.spine-card:hover {
  background: var(--color-surface-2);
  border-color: var(--color-border-strong);
  border-top-color: var(--spine-accent);
  transform: translateY(-4px);
}

.spine-card--setup   { --spine-accent: var(--color-group-setup); }
.spine-card--operate { --spine-accent: var(--color-group-operate); }
.spine-card--grow    { --spine-accent: var(--color-group-grow); }

.spine-card__num {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--spine-accent);
  margin-bottom: var(--space-4);
}

.spine-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}

.spine-card__link { color: inherit; }
.spine-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.spine-card__body {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.spine-card__cta {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color var(--transition-fast);
}

.spine-card__cta span {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.spine-card:hover .spine-card__cta { color: var(--color-text); }
.spine-card:hover .spine-card__cta span { transform: translateX(4px); }

/* CTA band — the landing's closing call to action. A more emphatic finale than
   the generic .callout: stronger border, more air, larger title. */
.cta-band {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-9) var(--space-8);
  text-align: center;
  margin-block: var(--space-7);
}

.cta-band__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-4);
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.cta-band__body {
  max-width: 56ch;
  margin: 0 auto var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.cta-band__actions .btn + .btn { margin-left: 0; }

/* ==========================================================================
   Pricing page — service tabs + per-service panels
   ========================================================================== */

.pricing {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* Left: service list (tablist), grouped by Set up / Operate / Grow */
.pricing__nav {
  position: sticky;
  top: var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (max-width: 860px) {
  .pricing__nav { position: static; }
}

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

.pricing__group-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-2);
}

.pricing__group--setup   .pricing__group-title { color: var(--color-group-setup); }
.pricing__group--operate .pricing__group-title { color: var(--color-group-operate); }
.pricing__group--grow    .pricing__group-title { color: var(--color-group-grow); }

.pricing__tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.pricing__tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.pricing__tab--active {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  font-weight: 600;
}

/* Right: one panel per service (only the active one is shown) */
.pricing__panel[hidden] { display: none; }

.pricing__panel-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-3);
}

.pricing__panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.pricing__panel-lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

.pricing__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-dim);
  max-width: 64ch;
}

.pricing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.pricing__actions .btn + .btn { margin-left: 0; }

/* Per-country price cards (Company formation) */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.price-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.price-card__country {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.price-row__type {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.price-row__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  white-space: nowrap;
}

/* ==========================================================================
   Packages — 3-tier pricing cards (company formation: per country + form)
   ========================================================================== */

.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

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

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.package--featured {
  border-color: var(--color-border-strong);
  border-top-color: var(--color-group-setup);
}

.package__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 14px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-group-setup);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.package__tier {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-3);
}

.package__price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.package__price-note {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-bottom: var(--space-5);
}

.package__list {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.package__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.package__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-text-dim);
}

.package__cta { margin-top: auto; }
.package__cta .btn { width: 100%; }

/* Company-formation country page — a form section (title + its packages) */
.cf-form + .cf-form { margin-top: var(--space-8); }

.cf-form__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.cf-form__title a { color: inherit; }

.cf-form__note {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

/* Per-form official-fee line (the fee on top of the IMYBOSS service price). */
.fee-note {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 64ch;
}

/* On country pages the fee line sits just above the package grid — give it room. */
.fee-note + .packages { margin-top: var(--space-6); }

/* Pricing panel — country sub-tabs (pills) + per-country form sub-tabs */
.pricing__countries {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.pricing__country {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.pricing__country:hover { color: var(--color-text); border-color: var(--color-border-strong); }

.pricing__country--active {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

.pricing__country-panel[hidden] { display: none; }

.pricing__forms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.pricing__form-tab {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.pricing__form-tab:hover { color: var(--color-text); border-color: var(--color-border-strong); }

.pricing__form-tab--active {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  font-weight: 600;
}

.pricing__form-panel[hidden] { display: none; }

/* Keep the panel column from blowing out horizontally inside the 260px+1fr grid */
.pricing__panels { min-width: 0; }

/* Compact 3-tier list — used in the pricing panel (narrow column, no wide cards) */
.pricing__tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.pricing__tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.pricing__tier--featured { border-color: var(--color-border-strong); }

.pricing__tier-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.pricing__tier-name {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.pricing__tier-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing__tier-sum {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing__tier-buy {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-button);
  color: var(--color-text);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.pricing__tier-buy:hover { background: var(--color-text); color: var(--color-bg); opacity: 1; }

.pricing__full-link { margin-top: var(--space-2); font-size: var(--text-sm); }

/* Jump nav — company-formation country page (skip to a legal form) */
.cf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.cf-nav__link {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.cf-nav__link:hover { background: var(--color-text); color: var(--color-bg); opacity: 1; }

/* ==========================================================================
   Back-to-top button (injected by js/main.js on every page)
   ========================================================================== */

.to-top {
  position: fixed;
  inset-block-end: var(--space-5);
  inset-inline-end: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  color: var(--color-text);
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover { transform: translateY(-3px); }

.to-top svg { width: 38px; height: 38px; }

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity var(--transition-base), visibility var(--transition-base); transform: none; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
