/* ==========================================================================
   0. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
  /* Brand Colors */
  --tlg-coral: #FA7268;
  --tlg-coral-light: #ff9b94;
  --tlg-navy: #0D3B66;
  --tlg-navy-dark: #0b355a;
  --tlg-ink: #0f172a;
  --tlg-slate: #475569;
  --tlg-slate-light: #64748b;
  --tlg-muted: #5A6B7B;

  /* Surfaces */
  --tlg-bg: #ffffff;
  --tlg-bg-soft: #f8fafc;
  --tlg-bg-section: #F7F9FB;
  --tlg-glass: rgba(255,255,255,.86);

  /* Borders & Shadows */
  --tlg-border: rgba(15,23,42,.10);
  --tlg-border-soft: rgba(15,23,42,.06);
  --tlg-shadow-sm: 0 4px 12px rgba(2,6,23,.06);
  --tlg-shadow-md: 0 10px 28px rgba(13,59,102,.08);
  --tlg-shadow-lg: 0 24px 60px rgba(13,59,102,.14);
  --tlg-shadow-xl: 0 18px 50px rgba(2,6,23,.16);

  /* Spacing Scale */
  --tlg-space-xs: 4px;
  --tlg-space-sm: 8px;
  --tlg-space-md: 16px;
  --tlg-space-lg: 24px;
  --tlg-space-xl: 32px;
  --tlg-space-2xl: 48px;
  --tlg-space-3xl: 64px;

  /* Layout */
  --tlg-max-w: 1240px;
  --tlg-pad: 16px;
  --tlg-pad-md: 24px;
  --tlg-pad-lg: 32px;

  /* Typography */
  --tlg-font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --tlg-font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --tlg-radius-sm: 8px;
  --tlg-radius-md: 14px;
  --tlg-radius-lg: 16px;
  --tlg-radius-xl: 20px;
  --tlg-radius-2xl: 24px;
  --tlg-radius-pill: 999px;

  /* Transitions */
  --tlg-ease: cubic-bezier(.4,0,.2,1);
  --tlg-transition-fast: .14s var(--tlg-ease);
  --tlg-transition: .2s var(--tlg-ease);
  --tlg-transition-slow: .3s var(--tlg-ease);

  /* Header */
  --tlg-header-h: 72px;
  --tlg-dock-safe: 60px;

  /* Cheatsheet link buttons */
  --cs-coral-rgb: 250,114,104;
  --cs-green-rgb: 34,197,94;
  --cs-border-alpha: 0.30;
  --cs-bg-alpha: 0.02;
  --cs-border-hover: 0.48;
  --cs-bg-hover: 0.05;
}

@media (min-width: 768px) {
  :root {
    --tlg-pad: 24px;
    --tlg-header-h: 76px;
  }
}
@media (min-width: 1024px) {
  :root { --tlg-pad: 32px; }
}

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--tlg-font-body);
  color: var(--tlg-ink);
  background: var(--tlg-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Space for fixed header */
  padding-top: var(--tlg-header-h);
}

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

/* SVG base reset — display:block prevents inline gaps.
   Do NOT set width/height here; each component sizes its own icons.
   flex-shrink:0 prevents icons collapsing in flex containers. */
svg { display: block; flex-shrink: 0; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--tlg-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Body lock for drawer */
body.tlg-menu-lock { overflow: hidden !important; }

/* Dock body padding */
body.tlg-has-dock {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 980px) {
  body.tlg-has-dock { padding-bottom: 0; }
}

/* ==========================================================================
   2. UTILITY: Container
   ========================================================================== */
.tlg-container {
  width: 100%;
  max-width: var(--tlg-max-w);
  margin: 0 auto;
  padding: 0 var(--tlg-pad);
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.tlg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  font-family: var(--tlg-font);
}

.tlg-header-bar {
  height: var(--tlg-header-h);
  background: var(--tlg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--tlg-border);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  display: flex;
  align-items: center;
}

.tlg-header-wrap {
  width: 100%;
  padding: 0 var(--tlg-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Desktop: 3-column grid layout */
@media (min-width: 1024px) {
  .tlg-header-wrap {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    column-gap: 14px;
  }
  .tlg-header-left { justify-self: start; }
  .tlg-header-nav { justify-self: end; }
  .tlg-header-actions { justify-self: end; }
}

/* Tablet: simplified 2-col */
@media (min-width: 768px) and (max-width: 1023px) {
  .tlg-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Left: Brand + City --- */
.tlg-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tlg-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.tlg-logo {
  height: 42px;
  width: auto;
}
@media (min-width: 768px) { .tlg-logo { height: 46px; } }

/* City dropdown (desktop only) */
.tlg-city-desktop { display: none; }
@media (min-width: 768px) { .tlg-city-desktop { display: inline-block; } }

/* --- Desktop Nav --- */
.tlg-header-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
@media (min-width: 1024px) { .tlg-header-nav { display: flex; } }

.tlg-nav-link {
  color: var(--tlg-slate);
  text-decoration: none;
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tlg-transition-fast), opacity var(--tlg-transition-fast);
  opacity: .92;
}
.tlg-nav-link:hover { color: var(--tlg-coral); opacity: 1; }
.tlg-nav-link.is-active { color: var(--tlg-coral); opacity: 1; }

/* Hide nav icons on desktop (keep ext icon) */
@media (min-width: 1024px) {
  .tlg-header-nav .tlg-nav-ico { display: none !important; }
}

/* External link icon */
.tlg-ext-icon {
  width: 14px;
  height: 14px;
  opacity: .85;
  transform: translateY(-.5px);
}
.tlg-nav-link:hover .tlg-ext-icon { opacity: 1; }

/* --- Actions --- */
.tlg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tlg-divider {
  width: 1px;
  height: 26px;
  background: rgba(15,23,42,.12);
  display: none;
}
@media (min-width: 1024px) { .tlg-divider { display: block; } }

/* Icon buttons (login, social) */
.tlg-icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tlg-radius-lg);
  border: 1px solid var(--tlg-border);
  background: rgba(255,255,255,.88);
  box-shadow: var(--tlg-shadow-sm);
  text-decoration: none;
  transition: border-color var(--tlg-transition-fast);
}
.tlg-icon-btn:hover { border-color: rgba(250,114,104,.35); }

.tlg-icon-btn svg {
  width: 20px;
  height: 20px;
}

.tlg-login-btn { color: var(--tlg-coral); }

/* Facebook icon */
.tlg-fb-icon {
  width: 22px !important;
  height: 22px !important;
}

/* Social wrap */
.tlg-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 4px;
  margin-top: 2px;
}

/* CTA Button */
.tlg-header-cta {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, #134a82 0%, var(--tlg-navy) 100%);
  padding: 0 18px;
  border-radius: var(--tlg-radius-lg);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(13,59,102,.20);
  transition: transform var(--tlg-transition-fast), filter var(--tlg-transition-fast);
  gap: 10px;
  white-space: nowrap;
}
.tlg-header-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

.tlg-cta-icon {
  width: 18px !important;
  height: 18px !important;
  opacity: .95;
}

/* Show/hide desktop vs mobile */
.tlg-only-desktop { display: none; }
.tlg-only-mobile { display: inline-flex; }
@media (min-width: 1024px) {
  .tlg-only-desktop { display: inline-flex; }
  .tlg-only-mobile { display: none !important; }
}

/* Tablet: show burger, hide desktop CTA */
@media (min-width: 768px) and (max-width: 1023px) {
  .tlg-only-desktop { display: none !important; }
  .tlg-only-mobile { display: inline-flex; }
}

/* Burger */
.tlg-burger {
  width: 44px;
  height: 44px;
  border-radius: var(--tlg-radius-lg);
  border: 1px solid var(--tlg-border);
  background: rgba(255,255,255,.92);
  box-shadow: var(--tlg-shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}
.tlg-burger span {
  width: 18px;
  height: 2px;
  background: var(--tlg-coral);
  border-radius: 2px;
  display: block;
}

/* --- Dropdown Base --- */
.tlg-dd { position: relative; }

/* City pill */
.tlg-city-btn {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  border-radius: var(--tlg-radius-pill);
  padding: 0 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--tlg-ink);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--tlg-shadow-sm);
  position: relative;
  top: -2px;
}
.tlg-city-btn:hover { border-color: rgba(250,114,104,.35); }

.tlg-dd-chevron {
  width: 14px !important;
  height: 14px !important;
  color: var(--tlg-coral);
}

/* Dropdown menu */
.tlg-dd-menu {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--tlg-border);
  border-radius: var(--tlg-radius-lg);
  box-shadow: var(--tlg-shadow-lg);
  padding: var(--tlg-space-sm);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.tlg-dd-menu.is-wide { min-width: 240px; }
.tlg-dd-menu-city { min-width: 0 !important; width: 100% !important; }

.tlg-dd.is-open > .tlg-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Guides: hover open on desktop */
@media (min-width: 1024px) {
  .tlg-header-nav, .tlg-dd { overflow: visible; }
  .tlg-guides-dd::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 12px;
    background: transparent;
  }
  .tlg-guides-dd:hover > .tlg-dd-menu,
  .tlg-guides-dd:focus-within > .tlg-dd-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Dropdown items */
.tlg-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: var(--tlg-radius-md);
  text-decoration: none;
  color: var(--tlg-ink);
  font-weight: 600;
  font-size: 14.5px;
  transition: color var(--tlg-transition-fast);
}
.tlg-dd-item:hover { color: var(--tlg-coral); }
.tlg-dd-item.is-active { color: var(--tlg-coral); }

/* ==========================================================================
   4. MOBILE DRAWER
   ========================================================================== */
.tlg-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.tlg-drawer.is-open { display: block; }

.tlg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.45);
}

.tlg-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82vw, 340px);
  background: #fff;
  border-left: 1px solid var(--tlg-border);
  box-shadow: var(--tlg-shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .22s ease;
}
.tlg-drawer.is-open .tlg-panel { transform: translateX(0); }

@media (max-width: 767px) {
  .tlg-panel {
    height: auto;
    bottom: var(--tlg-dock-safe);
    max-height: calc(100vh - var(--tlg-dock-safe));
    border-radius: 0 0 0 18px;
  }
}

.tlg-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tlg-space-md) var(--tlg-space-md) 10px;
}
.tlg-panel-title { font-weight: 900; color: var(--tlg-ink); font-size: 18px; }

.tlg-close-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--tlg-radius-lg);
  border: 1px solid var(--tlg-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tlg-ink);
  font-size: 18px;
}

.tlg-panel-nav {
  padding: 6px var(--tlg-space-md) 14px;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.tlg-m-section {
  padding: 10px 0;
  border-bottom: 1px solid var(--tlg-border-soft);
}
.tlg-m-section:last-child { border-bottom: 0; }

.tlg-nav-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tlg-coral);
  opacity: .95;
  flex: 0 0 16px;
}
.tlg-nav-ico svg { width: 16px !important; height: 16px !important; }

.tlg-m-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--tlg-radius-md);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--tlg-ink);
  -webkit-tap-highlight-color: transparent;
}
.tlg-m-link:hover { background: rgba(15,23,42,.05); }

.tlg-m-link .tlg-nav-ico {
  margin-top: 2px;
  flex: 0 0 auto;
}

.tlg-m-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--tlg-radius-md);
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 650;
  color: var(--tlg-ink);
  cursor: pointer;
}
.tlg-m-toggle-left { display: inline-flex; align-items: center; gap: 10px; }
.tlg-m-collapsible { padding: 8px 0 2px; }

.tlg-m-text-block { display: flex; flex-direction: column; min-width: 0; }
.tlg-m-title { line-height: 1.2; }
.tlg-m-desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #6B7280;
  max-width: 28ch;
}

.tlg-panel-cta {
  padding: 14px var(--tlg-space-md) 18px;
  border-top: 1px solid var(--tlg-border);
}

.tlg-cta-full {
  width: 100%;
  height: auto;
  padding: 14px 12px;
  border-radius: var(--tlg-radius-lg);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #134a82 0%, var(--tlg-navy) 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(13,59,102,.20);
  transition: transform var(--tlg-transition-fast), filter var(--tlg-transition-fast);
}
.tlg-cta-full:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.tlg-hero {
  padding: var(--tlg-space-xl) 0 var(--tlg-space-2xl);
  background:
    radial-gradient(circle at top right, rgba(250,114,104,.08), transparent 60%),
    radial-gradient(circle at bottom left, rgba(13,59,102,.05), transparent 60%);
}

.tlg-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .tlg-hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}
/* Tablet: keep single column but wider content */
@media (min-width: 768px) and (max-width: 1023px) {
  .tlg-hero { padding: var(--tlg-space-2xl) 0; }
  .tlg-hero-grid { gap: 32px; max-width: 680px; margin: 0 auto; }
}

.tlg-hero-badge {
  display: none;
  padding: 8px 16px;
  border-radius: var(--tlg-radius-pill);
  background: rgba(250,114,104,.08);
  color: var(--tlg-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(250,114,104,.15);
  margin-bottom: var(--tlg-space-lg);
  width: fit-content;
}
@media (min-width: 768px) { .tlg-hero-badge { display: inline-block; } }

.tlg-hero h1 {
  font-family: var(--tlg-font);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--tlg-navy);
  line-height: 1.1;
  margin-bottom: var(--tlg-space-md);
}

.tlg-hero-gradient-text {
  background: linear-gradient(135deg, var(--tlg-coral), var(--tlg-coral-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tlg-hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--tlg-slate);
  line-height: 1.6;
  margin-bottom: var(--tlg-space-xl);
  max-width: 560px;
}

/* --- Course Card --- */
.tlg-course-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--tlg-shadow-md);
  padding: 22px;
  max-width: 540px;
}

.tlg-course-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tlg-course-head svg { width: 22px !important; height: 22px !important; color: var(--tlg-coral); }
.tlg-course-title { font-weight: 800; font-size: 18px; color: var(--tlg-navy); }

.tlg-course-checklist {
  border-top: 1px solid rgba(15,23,42,.08);
  padding-top: 14px;
  margin: 14px -22px 0;
  list-style: none;
}
.tlg-course-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 7px 0;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.45;
  padding: 0 22px;
}

.tlg-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

/* Responsive copy */
.tlg-copy-short { display: none; }
.tlg-copy-long { display: inline; }
@media (max-width: 767px) {
  .tlg-copy-short { display: inline; }
  .tlg-copy-long { display: none; }
}

/* CTA Row */
.tlg-course-cta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 22px;
}
@media (max-width: 640px) {
  .tlg-course-cta { flex-direction: column; }
}

.tlg-course-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--tlg-radius-lg);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--tlg-transition-fast), transform var(--tlg-transition-fast);
  white-space: nowrap;
  min-width: 0;
}
.tlg-course-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }

.tlg-btn-primary {
  background: var(--tlg-navy);
  color: #fff;
  border: 1px solid var(--tlg-navy);
}
.tlg-btn-primary:hover { background: var(--tlg-navy-dark); transform: translateY(-1px); }

.tlg-btn-secondary {
  background: #f5867d;
  color: #fff;
  border: 1px solid #f5867d;
}
.tlg-btn-secondary:hover { background: #ec7268; transform: translateY(-1px); }

/* --- Hero Image --- */
.tlg-hero-image {
  border-radius: var(--tlg-radius-2xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--tlg-shadow-lg);
}
.tlg-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Reviews --- */
.tlg-review-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tlg-review-card {
  background: #fff;
  border: 1px solid var(--tlg-border-soft);
  border-radius: var(--tlg-radius-lg);
  padding: 14px 16px;
  box-shadow: var(--tlg-shadow-sm);
}

.tlg-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tlg-review-img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.tlg-review-stars {
  color: var(--tlg-coral);
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: 2px;
}

.tlg-review-meta {
  font-size: 13px;
  color: var(--tlg-slate-light);
  font-weight: 600;
}

.tlg-review-quote {
  font-size: 14px;
  line-height: 1.45;
  color: var(--tlg-navy);
  font-style: italic;
}

/* ==========================================================================
   6. TOOLKIT SECTION (Ecosystem Cards)
   ========================================================================== */
.tlg-toolkit {
  padding: var(--tlg-space-2xl) 0 var(--tlg-space-xl);
}

.tlg-section-header {
  text-align: center;
  padding: var(--tlg-space-xl) var(--tlg-pad);
  margin-bottom: var(--tlg-space-lg);
}

.tlg-section-header h2 {
  font-family: var(--tlg-font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--tlg-navy);
  line-height: 1.15;
  margin-bottom: var(--tlg-space-sm);
}

.tlg-section-header p {
  font-size: 17px;
  color: var(--tlg-muted);
}

/* Ecosystem grid */
.tlg-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tlg-space-lg);
}

@media (min-width: 640px) {
  .tlg-flow-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .tlg-flow-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet portrait: 2 cols looks great */
@media (min-width: 768px) and (max-width: 1023px) {
  .tlg-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tlg-space-lg);
  }
}

.tlg-flow-card {
  background: #fff;
  padding: var(--tlg-space-xl) var(--tlg-space-lg);
  border-radius: var(--tlg-radius-2xl);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--tlg-shadow-sm);
  transition: border-color var(--tlg-transition), box-shadow var(--tlg-transition), transform var(--tlg-transition);
}
.tlg-flow-card:hover {
  border-color: rgba(13,59,102,.12);
  box-shadow: var(--tlg-shadow-md);
  transform: translateY(-4px);
}

.tlg-flow-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--tlg-space-lg);
  transition: transform var(--tlg-transition);
}
.tlg-flow-card:hover .tlg-flow-icon { transform: scale(1.08); }
.tlg-flow-icon svg { width: 24px !important; height: 24px !important; }

.tlg-flow-icon.bg-blue { background: rgba(13,59,102,.08); color: #2563eb; }
.tlg-flow-icon.bg-rose { background: rgba(250,114,104,.08); color: #e11d48; }
.tlg-flow-icon.bg-amber { background: rgba(245,158,11,.08); color: #d97706; }
.tlg-flow-icon.bg-sky { background: rgba(14,165,233,.08); color: #0284c7; }
.tlg-flow-icon.bg-emerald { background: rgba(16,185,129,.08); color: #059669; }
.tlg-flow-icon.bg-purple { background: rgba(124,58,237,.08); color: #7c3aed; }

.tlg-flow-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tlg-ink);
  margin-bottom: var(--tlg-space-sm);
}
.tlg-flow-card p {
  color: var(--tlg-slate);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: var(--tlg-space-xl);
}

.tlg-flow-link {
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--tlg-transition);
}
.tlg-flow-link:hover { gap: 10px; }
.tlg-flow-link svg { width: 16px !important; height: 16px !important; }

.tlg-flow-link.c-blue { color: #2563eb; }
.tlg-flow-link.c-rose { color: #e11d48; }
.tlg-flow-link.c-amber { color: #d97706; }
.tlg-flow-link.c-sky { color: #0284c7; }
.tlg-flow-link.c-emerald { color: #059669; }
.tlg-flow-link.c-purple { color: #7c3aed; }

/* ==========================================================================
   7. ESSENTIALS SCROLLER (6-Pack)
   ========================================================================== */
.tlg-essentials {
  background: var(--tlg-bg-section);
  padding: var(--tlg-space-2xl) var(--tlg-space-md);
}

.tlg-essentials-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--tlg-space-lg);
}

.tlg-essentials-shell { position: relative; }

.tlg-essentials-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 0 14px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(13,59,102,.15) transparent;
}

.tlg-ess-card {
  flex: 0 0 280px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #E6EDF3;
  border-radius: var(--tlg-radius-xl);
  padding: 28px 24px 26px;
  text-align: center;
  position: relative;
  scroll-snap-align: start;
  transition: box-shadow var(--tlg-transition), transform var(--tlg-transition);
}
@media (hover: hover) and (pointer: fine) {
  .tlg-ess-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(13,59,102,.12);
  }
}

/* Tablet: slightly smaller cards to fit more */
@media (min-width: 768px) and (max-width: 1023px) {
  .tlg-ess-card { flex: 0 0 260px; min-width: 260px; }
}

.tlg-ess-step {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(13,59,102,.35);
}

.tlg-ess-icon-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.tlg-ess-icon-bg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tlg-ess-icon-bg svg { width: 28px !important; height: 28px !important; }

.tlg-ess-icon-bg.bg-blue { background: rgba(13,59,102,.08); }
.tlg-ess-icon-bg.bg-orange { background: rgba(250,114,104,.10); }
.tlg-ess-icon-bg.bg-indigo { background: rgba(99,102,241,.10); }
.tlg-ess-icon-bg.bg-yellow { background: rgba(245,158,11,.12); }
.tlg-ess-icon-bg.bg-purple { background: rgba(124,58,237,.10); }
.tlg-ess-icon-bg.bg-green { background: rgba(34,197,94,.10); }

.c-navy { color: var(--tlg-navy); }
.c-coral { color: var(--tlg-coral); }
.c-yellow { color: #B88900; }
.c-purple { color: #7C3AED; }
.c-green { color: #16A34A; }

.tlg-ess-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--tlg-navy); font-weight: 700; }
.tlg-ess-card p { margin: 0 0 14px; font-size: 14px; color: var(--tlg-muted); line-height: 1.4; }

.tlg-ess-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--tlg-coral);
  font-size: 14px;
}
.tlg-ess-link:hover { opacity: .78; }
.tlg-ess-link svg { width: 16px !important; height: 16px !important; color: var(--tlg-navy); }

/* Scroll chevrons */
.tlg-ess-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: var(--tlg-radius-pill);
  border: 1px solid rgba(13,59,102,.18);
  background: rgba(255,255,255,.92);
  box-shadow: var(--tlg-shadow-md);
  color: var(--tlg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity var(--tlg-transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.tlg-ess-nav svg { width: 22px !important; height: 22px !important; }
.tlg-ess-nav--left { left: -10px; }
.tlg-ess-nav--right { right: -10px; }
.tlg-ess-nav.is-hidden { opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  .tlg-ess-nav { width: 48px; height: 48px; }
  .tlg-ess-nav--left { display: none; }
}

.tlg-disclaimer {
  margin: 16px auto 0;
  max-width: 860px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(13,59,102,.55);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.tlg-footer-kit {
  --tlg-fk-coral: var(--tlg-coral);
  --tlg-fk-navy: var(--tlg-navy);
  --tlg-fk-ink: var(--tlg-ink);
  --tlg-fk-slate: var(--tlg-slate);
  font-family: var(--tlg-font);
}

.tlg-footer {
  background: #fff;
  border-top: 1px solid var(--tlg-border-soft);
  padding: 26px 0 42px;
  color: var(--tlg-ink);
}

.tlg-footer-inner {
  max-width: var(--tlg-max-w);
  margin: 0 auto;
  padding: 0 var(--tlg-pad);
}

.tlg-footer-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
}
@media (min-width: 768px) {
  .tlg-footer-top {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

.tlg-footer-brand { display: flex; align-items: center; text-decoration: none; }
.tlg-footer-logo { height: 40px; width: auto; }
@media (min-width: 768px) { .tlg-footer-logo { height: 44px; } }

.tlg-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
@media (max-width: 767px) {
  .tlg-footer-nav {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
}

.tlg-footer-link {
  color: rgba(71,85,105,.92);
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.2;
  transition: color var(--tlg-transition-fast);
}
.tlg-footer-link:hover { color: var(--tlg-coral); }

.tlg-footer-bottom {
  border-top: 1px solid rgba(15,23,42,.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .tlg-footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.tlg-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mobile footer grid — Share | Notes | Top on one row, copy below */
@media (max-width: 767px) {
  .tlg-footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
  }
  .tlg-footer-actions { display: contents; }
  .tlg-footer-bottom [data-tlg-share] { grid-column: 1; grid-row: 1; }
  .tlg-footer-bottom [data-tlg-notes] { grid-column: 2; grid-row: 1; }
  .tlg-footer-bottom [data-tlg-top] { grid-column: 3; grid-row: 1; }
  .tlg-footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
    margin-top: 6px;
  }
}

/* Shared button styles (footer + dock) */
.tlg-action-btn,
.tlg-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tlg-border-soft);
  background: var(--tlg-bg-soft);
  color: rgba(71,85,105,.95);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 12px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.tlg-action-btn:hover,
.tlg-top-btn:hover {
  background: rgba(15,23,42,.04);
  border-color: var(--tlg-border);
  transform: translateY(-1px);
}

.tlg-action-ico {
  display: inline-flex;
  color: var(--tlg-navy);
}
.tlg-action-ico svg { width: 16px !important; height: 16px !important; }

@media (max-width: 767px) {
  .tlg-action-btn,
  .tlg-top-btn { width: 100%; justify-content: center; }
  .tlg-btn-text,
  .tlg-top-text { font-size: 11px; }
}

.tlg-footer-copy {
  color: rgba(71,85,105,.64);
  font-weight: 550;
  font-size: 14px;
}

/* ==========================================================================
   9. TOAST
   ========================================================================== */
.tlg-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(15,23,42,.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--tlg-shadow-lg);
  font-size: 13px;
  font-weight: 600;
  display: none;
  z-index: 10001;
  pointer-events: none;
}
.tlg-toast.is-show { display: block; }

/* ==========================================================================
   10. DOCK (Sticky quick actions)
   ========================================================================== */
.tlg-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(241,245,249,.96);
  border-top: 1px solid var(--tlg-border);
  backdrop-filter: saturate(1.2) blur(6px);
  transition: transform .18s ease, opacity .18s ease;
}
.tlg-dock.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.tlg-dock-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.tlg-dock .tlg-action-btn,
.tlg-dock .tlg-top-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 767px) {
  .tlg-dock .tlg-btn-text,
  .tlg-dock .tlg-top-text { font-size: 11px; }
}

/* Desktop floating dock */
@media (min-width: 980px) {
  .tlg-dock {
    left: auto;
    right: 14px;
    bottom: 14px;
    width: 190px;
    border: 1px solid var(--tlg-border);
    border-radius: var(--tlg-radius-lg);
    padding: 10px;
    background: rgba(241,245,249,.92);
    box-shadow: var(--tlg-shadow-xl);
  }
  .tlg-dock-inner { grid-template-columns: 1fr; gap: 8px; }
  .tlg-dock .tlg-action-btn,
  .tlg-dock .tlg-top-btn {
    background: #fff;
    border: 1px solid var(--tlg-border);
    border-radius: var(--tlg-radius-md);
    padding: 10px 12px;
    justify-content: flex-start;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--tlg-navy);
    font-weight: 700;
    transform: none;
  }
  .tlg-dock .tlg-action-btn:hover,
  .tlg-dock .tlg-top-btn:hover {
    border-color: rgba(13,59,102,.25);
    background: #fff;
    transform: none;
  }
  .tlg-dock .tlg-action-ico svg { width: 18px !important; height: 18px !important; }

  /* Dock close button (hover-only) */
  .tlg-dock-close {
    position: absolute;
    top: -14px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: var(--tlg-radius-pill);
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(248,250,252,.96);
    color: rgba(15,23,42,.70);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tlg-shadow-sm);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .14s ease, transform .14s ease;
    font-size: 14px;
  }
  .tlg-dock:hover .tlg-dock-close {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .tlg-dock-close:hover { border-color: rgba(15,23,42,.20); color: rgba(15,23,42,.85); }
}
@media (max-width: 979px) {
  .tlg-dock-close { display: none !important; }
}

/* ==========================================================================
   11. NOTES DRAWER
   ========================================================================== */
.tlg-notes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.18);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.tlg-notes-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tlg-notes-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10002;
  background: #fff;
  border-top: 1px solid var(--tlg-border);
  transform: translateY(120%);
  transition: transform .18s ease;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tlg-notes-drawer.is-open { transform: translateY(0); }

@media (min-width: 980px) {
  .tlg-notes-drawer {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 420px;
    max-width: calc(100vw - 32px);
    border-radius: 18px;
    border: 1px solid var(--tlg-border);
    box-shadow: var(--tlg-shadow-xl);
  }
}

.tlg-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.tlg-notes-title { font-weight: 900; font-size: 20px; color: var(--tlg-ink); }

.tlg-notes-close {
  width: 48px;
  height: 48px;
  border-radius: var(--tlg-radius-md);
  border: 1px solid var(--tlg-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tlg-ink);
}
.tlg-notes-close svg { width: 22px !important; height: 22px !important; }

.tlg-notes-body { padding: 14px 16px; }

.tlg-notes-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--tlg-border);
  border-radius: var(--tlg-radius-lg);
  padding: 14px;
  font-family: var(--tlg-font-body);
  font-size: 16px;
  line-height: 1.4;
  color: rgba(15,23,42,.90);
  outline: none;
  -webkit-text-size-adjust: 100%;
}
.tlg-notes-textarea:focus {
  border-color: rgba(13,59,102,.25);
  box-shadow: 0 0 0 3px rgba(13,59,102,.08);
}

.tlg-notes-links {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--tlg-radius-md);
  border: 1px solid rgba(13,59,102,.08);
  background: rgba(13,59,102,.02);
}

.tlg-notes-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(15,23,42,.06);
}
.tlg-notes-hint {
  font-size: 12px;
  font-weight: 600;
  color: rgba(71,85,105,.60);
}

.tlg-mini-btn-row { display: flex; gap: 8px; }
.tlg-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--tlg-radius-sm);
  border: 1px solid var(--tlg-border-soft);
  background: var(--tlg-bg-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--tlg-slate);
  transition: background .12s ease;
}
.tlg-mini-btn:hover { background: rgba(15,23,42,.05); }
.tlg-mini-btn svg { width: 14px !important; height: 14px !important; }

/* ==========================================================================
   12. PRINT STYLES
   ========================================================================== */
@media print {
  .tlg-header, .tlg-dock, .tlg-notes-drawer, .tlg-notes-overlay, .tlg-drawer { display: none !important; }
  body { padding-top: 0; }
}

/* === FIX: Header bar overflow on mobile === */
.tlg-header-bar {
  max-width: 100vw;
  overflow-x: clip;
}

/* ==========================================================================
   LEGAL PAGES (Terms, Privacy, Cookie)
   ========================================================================== */
.tlg-terms {
  background: #FFFFFF;
  padding: 80px 20px;
}

.tlg-terms-wrap {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  color: #334155;
}

.tlg-terms-header h1 {
  font-size: 34px;
  font-weight: 800;
  color: #0D3B66;
  margin-bottom: 16px;
}

.tlg-effective {
  font-size: 15px;
  margin-bottom: 40px;
}

.tlg-effective a {
  color: #0D3B66;
  font-weight: 600;
  text-decoration: underline;
}

.tlg-section {
  margin-bottom: 48px;
}

.tlg-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0D3B66;
  margin-bottom: 18px;
}

.tlg-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #FA7268;
  margin-top: 20px;
  margin-bottom: 8px;
}

.tlg-section p {
  line-height: 1.7;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .tlg-terms {
    padding: 60px 20px;
  }

  .tlg-terms-header h1 {
    font-size: 26px;
  }

  .tlg-section h3 {
    font-size: 18px;
  }
}


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.tlg-contact { padding: 80px 20px; background: #fff; }
.tlg-contact-wrap { max-width: 680px; margin: 0 auto; }
.tlg-contact-wrap h1,
.tlg-contact-wrap h3 {
  font-family: var(--tlg-font);
  color: var(--tlg-navy);
}
.tlg-contact-wrap h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.tlg-contact-wrap h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; margin-top: 32px; }
.tlg-contact-wrap h3:first-of-type { margin-top: 0; }
.tlg-contact-wrap p { color: var(--tlg-slate); line-height: 1.7; margin-bottom: 16px; }
.tlg-contact-wrap a { color: var(--tlg-navy); font-weight: 600; text-decoration: underline; }
@media (max-width: 768px) {
  .tlg-contact { padding: 60px 20px; }
  .tlg-contact-wrap h1 { font-size: 26px; }
}
