    :root {
      --bg-main: #060913;
      --bg-card: #0d1322;
      --bg-card-hover: #141c30;
      --bg-elevated: #182238;
      --border-subtle: #1e293b;
      --border-active: #334155;
      --accent-blue: #2563eb;
      --accent-blue-hover: #1d4ed8;
      --accent-blue-glow: rgba(37, 99, 235, 0.25);
      --accent-cyan: #06b6d4;
      --accent-cyan-glow: rgba(6, 182, 212, 0.2);
      --accent-green: #10b981;
      --accent-amber: #f59e0b;
      --accent-purple: #8b5cf6;
      --accent-red: #ef4444;
      --text-heading: #f8fafc;
      --text-body: #94a3b8;
      --text-muted: #64748b;
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --max-width: 1200px;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 18px;
    }

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

    html {
      scroll-behavior: smooth;
      /* Anchor links (#features, #faq, ...) land below the sticky header, not under it */
      scroll-padding-top: 84px;
      background-color: var(--bg-main);
      color: var(--text-body);
      font-family: var(--font-sans);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    body {
      overflow-x: hidden;
      background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
      min-height: 100vh;
    }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 24px;
    }

    .bg-grid {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 800px;
      background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
      background-size: 40px 40px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
      pointer-events: none;
      z-index: 0;
    }

    h1, h2, h3, h4 {
      color: var(--text-heading);
      font-weight: 800;
      letter-spacing: -0.025em;
      line-height: 1.2;
    }

    .eyebrow {
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-size: 11px;
      font-weight: 800;
      color: var(--accent-cyan);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(6, 182, 212, 0.1);
      border: 1px solid rgba(6, 182, 212, 0.25);
      padding: 5px 14px;
      border-radius: 20px;
      margin-bottom: 20px;
    }

    .pro-badge {
      font-size: 9px;
      font-weight: 900;
      color: #ffffff;
      background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      display: inline-block;
      margin-left: 4px;
      vertical-align: middle;
    }

    .section-header {
      text-align: center;
      max-width: 780px;
      margin: 0 auto 50px;
    }

    .section-title {
      font-size: 36px;
      margin-bottom: 14px;
    }

    .section-desc {
      font-size: 17px;
      color: var(--text-body);
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 24px;
      border-radius: var(--radius-sm);
      font-weight: 700;
      font-size: 14px;
      text-decoration: none;
      transition: all 0.2s ease;
      cursor: pointer;
      border: 1px solid transparent;
      white-space: nowrap;
      font-family: inherit;
    }

    .btn-primary {
      background: var(--accent-blue);
      color: #ffffff;
      box-shadow: 0 4px 14px var(--accent-blue-glow);
    }

    .btn-primary:hover {
      background: var(--accent-blue-hover);
      transform: translateY(-1px);
      box-shadow: 0 6px 20px var(--accent-blue-glow);
    }

    .btn-secondary {
      background: var(--bg-card);
      color: var(--text-heading);
      border-color: var(--border-active);
    }

    .btn-secondary:hover {
      background: var(--bg-card-hover);
      border-color: var(--text-muted);
    }

    .btn-outline {
      background: transparent;
      color: var(--accent-cyan);
      border-color: rgba(6, 182, 212, 0.4);
    }

    .btn-outline:hover {
      background: rgba(6, 182, 212, 0.1);
      border-color: var(--accent-cyan);
    }

    /* Navbar */
    header.navbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(6, 9, 19, 0.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-subtle);
    }

    .nav-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--text-heading);
      font-weight: 800;
      font-size: 19px;
    }

    .brand-icon {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      object-fit: cover;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
    }

    .nav-links a {
      color: var(--text-body);
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      transition: color 0.2s ease;
      display: flex;
      align-items: center;
    }

    .nav-links a:hover {
      color: var(--text-heading);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .mobile-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--text-heading);
      font-size: 24px;
      cursor: pointer;
      /* 44px tap target */
      min-width: 44px;
      min-height: 44px;
      padding: 0;
      line-height: 1;
    }

    /* Menu items that only appear in the phone menu (e.g. Log In, when the header has no room for it) */
    .nav-links .nav-mobile-only { display: none; }

    /* Hero Section */
    .hero {
      position: relative;
      padding: 70px 0 60px;
      text-align: center;
    }

    .hero-content {
      max-width: 860px;
      margin: 0 auto;
    }

    .hero h1 {
      font-size: 54px;
      letter-spacing: -0.035em;
      margin-bottom: 22px;
      background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero p {
      font-size: 19px;
      color: var(--text-body);
      margin-bottom: 34px;
      line-height: 1.6;
      max-width: 760px;
      margin-left: auto;
      margin-right: auto;
    }

    .hero p.hero-tagline {
      font-size: 17px;
      font-weight: 700;
      color: var(--accent-cyan);
      margin-top: -18px;
      margin-bottom: 30px;
    }

    .hero-ctas {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .hero-subtag {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 600;
      margin-bottom: 40px;
    }

    /* Four Pillars Process Bar */
    .process-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      margin-bottom: 44px;
      flex-wrap: wrap;
    }

    .process-step {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: var(--text-heading);
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid var(--border-subtle);
      padding: 8px 16px;
      border-radius: 30px;
    }

    .process-step .step-num {
      color: var(--accent-cyan);
    }

    .process-arrow {
      color: var(--text-muted);
      font-size: 12px;
    }

    /* Hero Dashboard Interactive Mockup */
    .dashboard-mockup {
      position: relative;
      background: var(--bg-card);
      border: 1px solid var(--border-active);
      border-radius: var(--radius-lg);
      padding: 18px;
      box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(37, 99, 235, 0.12);
      overflow: hidden;
      margin-top: 10px;
      text-align: left;
    }

    .mockup-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 12px;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .mockup-dots {
      display: flex;
      gap: 6px;
    }

    .mockup-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .mockup-dot.red { background: var(--accent-red); }
    .mockup-dot.yellow { background: var(--accent-amber); }
    .mockup-dot.green { background: var(--accent-green); }

    .mockup-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .mockup-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 12px;
    }

    .mockup-card {
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      padding: 14px;
    }

    .mockup-stat-val {
      font-size: 20px;
      font-weight: 800;
      color: var(--text-heading);
    }

    .mockup-stat-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    /* Comparison Section */
    .comparison-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    }

    .comparison-container {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 20px;
      align-items: stretch;
      max-width: 1080px;
      margin: 0 auto;
    }

    .comparison-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 32px 28px;
      display: flex;
      flex-direction: column;
    }

    .comparison-card.traditional {
      border: 1px solid var(--border-subtle);
      background: rgba(13, 19, 34, 0.5);
    }

    .comparison-card.pilotmetrics {
      border: 2px solid var(--accent-blue);
      background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(13, 19, 34, 0.95) 100%);
      box-shadow: 0 12px 40px -10px var(--accent-blue-glow);
    }

    .card-tag {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
      display: inline-block;
    }

    .card-tag.active {
      color: var(--accent-cyan);
    }

    .comparison-card h3 {
      font-size: 22px;
      margin-bottom: 24px;
    }

    .comparison-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex-grow: 1;
    }

    .comparison-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 14px;
    }

    .comparison-list li .icon {
      width: 26px;
      height: 26px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      font-size: 12px;
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-subtle);
      color: var(--text-muted);
    }

    .comparison-list li .icon.highlight {
      background: rgba(37, 99, 235, 0.2);
      border-color: rgba(37, 99, 235, 0.4);
      color: var(--accent-cyan);
    }

    .comparison-list strong {
      color: var(--text-heading);
      display: block;
      font-weight: 700;
    }

    .comparison-list .sub {
      font-size: 12px;
      color: var(--text-muted);
    }

    .vs-badge {
      align-self: center;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--bg-main);
      border: 1px solid var(--border-active);
      display: grid;
      place-items: center;
      font-weight: 900;
      font-size: 12px;
      color: var(--accent-blue);
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
      z-index: 2;
    }

    /* What Can I Do / Core Products Section */
    .products-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: rgba(13, 19, 34, 0.3);
    }

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

    .product-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 32px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.25 ease;
      position: relative;
      overflow: hidden;
    }

    .product-card:hover {
      border-color: var(--border-active);
      transform: translateY(-2px);
      box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    }

    .product-card.pro-card {
      border-color: rgba(139, 92, 246, 0.4);
      background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, rgba(13, 19, 34, 0.95) 100%);
    }

    .product-card.battle-card {
      border-color: rgba(6, 182, 212, 0.3);
    }

    .product-icon {
      font-size: 32px;
      margin-bottom: 16px;
      display: inline-block;
    }

    .product-card h3 {
      font-size: 22px;
      margin-bottom: 10px;
    }

    .product-card p {
      font-size: 14px;
      color: var(--text-body);
      margin-bottom: 24px;
      line-height: 1.6;
    }

    .product-link {
      color: var(--accent-cyan);
      text-decoration: none;
      font-weight: 700;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.2s ease;
    }

    .product-link:hover {
      gap: 10px;
    }

    /* Training Intelligence Section (3x3 Grid) */
    .intelligence-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
    }

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

    .intel-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 24px;
      transition: all 0.2s ease;
    }

    .intel-card:hover {
      border-color: var(--accent-blue);
      background: var(--bg-card-hover);
    }

    .intel-card h4 {
      font-size: 16px;
      margin-bottom: 8px;
      color: var(--text-heading);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .intel-card p {
      font-size: 13px;
      color: var(--text-body);
      line-height: 1.5;
    }

    /* Timeline Dedicated Section */
    .timeline-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: rgba(13, 19, 34, 0.4);
    }

    .timeline-visual {
      background: var(--bg-card);
      border: 1px solid var(--border-active);
      border-radius: var(--radius-lg);
      padding: 32px;
      overflow-x: auto;
    }

    .milestone-track {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-width: 800px;
      position: relative;
      padding: 20px 0;
    }

    .milestone-track::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--border-subtle);
      z-index: 1;
    }

    .milestone-node {
      position: relative;
      z-index: 2;
      background: var(--bg-main);
      border: 2px solid var(--accent-blue);
      border-radius: 20px;
      padding: 8px 14px;
      font-size: 11px;
      font-weight: 800;
      color: var(--text-heading);
      text-align: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .milestone-node.completed {
      background: var(--accent-blue);
      color: #ffffff;
    }

    .milestone-node.gap-node {
      border-color: var(--accent-amber);
      background: rgba(245, 158, 11, 0.15);
      color: var(--accent-amber);
    }

    /* Battle Mode Section */
    .battle-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 9, 19, 1) 100%);
    }

    .battle-box {
      background: var(--bg-card);
      border: 2px solid var(--accent-cyan);
      border-radius: var(--radius-lg);
      padding: 40px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
      box-shadow: 0 10px 40px -10px var(--accent-cyan-glow);
    }

    .battle-features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 20px 0;
    }

    .battle-features li {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--text-heading);
    }

    .battle-privacy-badge {
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: var(--accent-green);
      font-size: 12px;
      font-weight: 700;
      padding: 8px 14px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    /* Cancellation Tracker Section */
    .cancellation-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
    }

    .tracker-box {
      background: var(--bg-card);
      border: 1px solid var(--border-active);
      border-radius: var(--radius-lg);
      padding: 32px;
      max-width: 900px;
      margin: 0 auto;
    }

    .tracker-metrics-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 12px;
      margin: 28px 0;
    }

    .tracker-stat {
      background: var(--bg-main);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-sm);
      padding: 14px 10px;
      text-align: center;
    }

    .tracker-stat-num {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-heading);
    }

    .tracker-stat-num.cancelled { color: var(--accent-red); }
    .tracker-stat-num.rate { color: var(--accent-amber); }

    .tracker-stat-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-top: 4px;
    }

    /* Audience Section */
    .audience-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: rgba(13, 19, 34, 0.3);
    }

    .audience-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }

    .audience-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 24px;
    }

    .audience-card h4 {
      font-size: 17px;
      margin-bottom: 8px;
      color: var(--accent-cyan);
    }

    .audience-card p {
      font-size: 13px;
      color: var(--text-body);
    }

    /* Problem / Answer Section */
    .questions-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
    }

    .questions-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      max-width: 960px;
      margin: 0 auto;
    }

    .question-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 20px 24px;
    }

    .question-card .q {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-heading);
      margin-bottom: 6px;
    }

    .question-card .a {
      font-size: 13px;
      color: var(--accent-cyan);
      font-weight: 700;
    }

    /* Pricing Section */
    .pricing-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: rgba(13, 19, 34, 0.4);
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
      max-width: 960px;
      margin: 0 auto;
    }

    /* Free, Pro and Schools side by side */
    .pricing-grid.three {
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      max-width: var(--max-width);
    }

    .pricing-card.school {
      border: 2px solid rgba(16, 185, 129, 0.55);
      box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.2);
    }

    .school-badge {
      font-size: 9px;
      font-weight: 900;
      color: #ffffff;
      background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      display: inline-block;
      margin-left: 4px;
      vertical-align: middle;
    }

    .pricing-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 36px 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    /* Let cards shrink to the column (a wide table inside scrolls instead of widening the page) */
    .pricing-grid > * { min-width: 0; }

    .pricing-card.pro {
      border: 2px solid var(--accent-purple);
      box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.25);
      position: relative;
    }

    .pricing-card-donate {
      grid-column: 1 / -1;
      flex-direction: row;
      align-items: center;
      gap: 24px;
      padding: 28px 30px;
    }

	/* Pricing Section Layout */
	.pricing-price-wrapper {
	  margin: 16px 0 20px;
	  padding: 12px 14px;
	  background: rgba(15, 23, 42, 0.6);
	  border: 1px solid var(--line-light);
	  border-radius: 8px;
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 12px;
	  flex-wrap: wrap;
	}
	
	.pricing-price {
	  display: flex;
	  align-items: baseline;
	  gap: 2px;
	}
	
	.pricing-price .currency {
	  font-size: 20px;
	  font-weight: 700;
	  color: var(--cyan);
	}
	
	.pricing-price .amount {
	  font-size: 36px;
	  font-weight: 800;
	  color: #ffffff;
	  line-height: 1;
	  letter-spacing: -0.03em;
	}
	
	.pricing-price .period {
	  font-size: 12px;
	  color: var(--muted);
	  font-weight: 600;
	  margin-left: 4px;
	}
	
	/* Lifetime / One-Time Pill Badge */
	.price-pill {
	  font-size: 10px;
	  font-weight: 800;
	  text-transform: uppercase;
	  letter-spacing: 0.05em;
	  color: #34d399;
	  background: var(--green-light);
	  border: 1px solid rgba(16, 185, 129, 0.3);
	  padding: 4px 8px;
	  border-radius: 12px;
	  white-space: nowrap;
	}

	.price-pill.free-pill {
	  color: var(--muted);
	  background: rgba(148, 163, 184, 0.1);
	  border: 1px solid var(--line-light);
	}

	/* Clean list spacing */
	.pricing-features {
	  list-style: none;
	  padding: 0;
	  margin: 0 0 20px;
	  display: flex;
	  flex-direction: column;
	  gap: 8px;
	  font-size: 12px;
	  color: var(--text);
	}
	
	.pricing-features li {
	  display: flex;
	  align-items: center;
	  gap: 8px;
	}

    /* Roadmap Section */
    .roadmap-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
    }

    .roadmap-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 16px;
    }

    .roadmap-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 20px;
    }

    /* FAQ Section */
    .faq-section {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      background: rgba(13, 19, 34, 0.3);
    }

    .faq-list {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
    }

    .faq-question {
      padding: 18px 24px;
      font-weight: 700;
      font-size: 15px;
      color: var(--text-heading);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .faq-answer {
      padding: 0 24px 20px;
      font-size: 14px;
      color: var(--text-body);
      display: none;
    }

    .faq-item.active .faq-answer {
      display: block;
    }

    .faq-toggle-icon {
      transition: transform 0.2s ease;
    }

    .faq-item.active .faq-toggle-icon {
      transform: rotate(180deg);
    }

    /* Demo CTA Banner */
    .cta-banner {
      padding: 90px 0;
      border-top: 1px solid var(--border-subtle);
      text-align: center;
      background: linear-gradient(180deg, var(--bg-main) 0%, rgba(37, 99, 235, 0.12) 100%);
    }

    @media (max-width: 900px) {
      .hero h1 { font-size: 38px; }
      .mockup-grid { grid-template-columns: repeat(6, 1fr); }
      .comparison-container { grid-template-columns: 1fr; }
      .vs-badge { margin: -10px auto; }
      .products-grid { grid-template-columns: 1fr; }
      .intelligence-grid { grid-template-columns: 1fr 1fr; }
      .battle-box { grid-template-columns: 1fr; }
      .questions-grid { grid-template-columns: 1fr; }
      .pricing-grid, .pricing-grid.three { grid-template-columns: 1fr; }
      .pricing-card-donate { flex-direction: column; align-items: stretch; text-align: center; }
      .tracker-metrics-grid { grid-template-columns: repeat(3, 1fr); }
      .nav-links { display: none; }
      .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }

      /* Phone menu: opened by the ☰ button (adds .nav-open to the header) */
      header.navbar.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #060913;
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
      }
      header.navbar.nav-open .nav-links a {
        padding: 14px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--border-subtle);
      }
      header.navbar.nav-open .nav-links li:last-child a { border-bottom: 0; }
    }

    @media (max-width: 600px) {
      .intelligence-grid { grid-template-columns: 1fr; }
      .tracker-metrics-grid { grid-template-columns: repeat(2, 1fr); }
      .hero-ctas { flex-direction: column; width: 100%; }
      .btn { width: 100%; }
      .mockup-grid { grid-template-columns: 1fr; }

      .container { padding: 0 16px; }

      /* Header: logo, one compact button and the menu must fit side by side */
      .nav-container { height: 64px; gap: 8px; }
      header.navbar.nav-open .nav-links { max-height: calc(100vh - 64px); }
      .brand-logo { font-size: 17px; gap: 8px; min-width: 0; }
      .brand-icon { width: 30px; height: 30px; }
      .nav-actions { gap: 6px; flex-shrink: 0; }
      .nav-actions .btn { width: auto; padding: 9px 14px; font-size: 13px; white-space: nowrap; }
      /* With two buttons, Log In moves into the menu */
      .nav-actions .btn-secondary:has(+ .btn-primary) { display: none; }
      .nav-links .nav-mobile-only { display: list-item; }
    }

    @media (max-width: 360px) {
      .brand-logo span { display: none; }
    }

:root {
  /* Footer compatibility aliases */
  --card: var(--bg-card);
  --line: var(--border-subtle);
  --line-light: var(--border-active);
  --radius: var(--radius-md);
  --muted: var(--text-body);
  --cyan: var(--accent-cyan);
  --blue: var(--accent-blue);
}

footer.app-footer {
  width: 80%;
  max-width: var(--max-width, 1200px);
  margin: 40px auto 24px; /* Centered with 40px top & 24px bottom spacing */
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 20px;
  color: var(--muted);
  font-size: 12px;
}

/* On mobile screens, expand the width so content doesn't feel squished */
@media (max-width: 768px) {
  footer.app-footer {
    width: 92%;
  }
}
/* ------------------------------------------------------------------
   Marketing pages (/features, /pro-features, /instructors)
   ------------------------------------------------------------------ */

.nav-links a.active { color: var(--text-heading); }

/* Footer: the site's own link lists (not .nav-links, which the phone menu hides) */
.footer-grid.site { grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-links.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

/* A smaller hero for the feature pages */
.page-hero {
  position: relative;
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: 48px;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 18px;
  max-width: 760px;
  margin: 0 auto 30px;
}
.page-hero .hero-ctas { margin-bottom: 0; }
.page-hero.pro .eyebrow {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}
.page-hero.green .eyebrow {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.section.tint { background: rgba(13, 19, 34, 0.35); }

/* Text on one side, a picture of the feature on the other */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 80px; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: 30px; margin-bottom: 12px; }
.feature-row > div > p { font-size: 15px; margin-bottom: 18px; }
.feature-row .product-link { margin-top: 6px; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-weight: 900;
}
.check-list.pro li::before { color: var(--accent-purple); }
.check-list.green li::before { color: var(--accent-green); }
.check-list strong { color: var(--text-heading); }

.tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  color: var(--text-body);
  border: 1px solid var(--border-active);
}

/* Picture of a card from the app, drawn in HTML */
.shot {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(37, 99, 235, 0.08);
  font-size: 12px;
}
.shot.pro { border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.12); }
.shot.green { border-color: rgba(16, 185, 129, 0.4); }
.shot-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.shot-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.shot-stat {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.shot-stat b { display: block; font-size: 18px; color: var(--text-heading); line-height: 1.2; }
.shot-stat span { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.shot-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}
.shot-bars i { flex: 1; background: var(--accent-blue); border-radius: 3px 3px 0 0; }
.shot-bars i.low { background: var(--accent-amber); }
.shot-bars i.hi { background: var(--accent-cyan); }
.shot-caption { font-size: 10px; color: var(--text-muted); margin-top: 6px; }
.shot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.shot-row:last-child { border-bottom: 0; }
.shot-row .name { color: var(--text-heading); font-weight: 700; }
/* Rows with a meter: line the meters up */
.shot-row:has(.shot-meter) .name { flex: 0 0 38%; }
.shot-row:has(.shot-meter) > span:last-child { flex: 0 0 auto; min-width: 64px; text-align: right; }
.shot-meter {
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
  overflow: hidden;
  flex: 1;
  max-width: 140px;
}
.shot-meter i { display: block; height: 100%; background: var(--accent-green); }
.pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.pill.ok { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.pill.watch { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }
.pill.bad { color: #f87171; background: rgba(239, 68, 68, 0.12); }

/* Small cards in a grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile-grid.four { grid-template-columns: repeat(4, 1fr); }
.tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.2s ease;
}
.tile:hover { border-color: var(--border-active); }
.tile .tile-icon { font-size: 22px; display: block; margin-bottom: 10px; }
.tile h3, .tile h4 { font-size: 16px; margin-bottom: 6px; }
.tile p { font-size: 13px; line-height: 1.55; }
.tile .product-link { margin-top: 12px; font-size: 13px; }
.tile.pro { border-color: rgba(139, 92, 246, 0.35); }
.tile.green { border-color: rgba(16, 185, 129, 0.35); }

/* Numbered steps */
/* Before → after stories (home page) */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.story {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.story-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.story-label.after { color: var(--accent-cyan); margin-top: 6px; }
.story-label.after::before { content: '↓ '; }
.story-quote {
  font-size: 17px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-heading);
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.story-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  flex: 1;
}
.story-facts li { font-size: 14px; color: var(--text-body); }
.story-facts b { color: var(--text-heading); font-size: 16px; }
.story-facts li.good b { color: var(--accent-green); }
.story-facts li.bad b { color: var(--accent-red); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  counter-increment: step;
}
.step::before {
  content: '0' counter(step);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 13px; }

/* A full-width call-out that points to another page */
.promo-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid rgba(139, 92, 246, 0.45);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.2);
}
.promo-band.green { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.15); }
.promo-band h2 { font-size: 30px; margin-bottom: 12px; }
.promo-band p { font-size: 15px; margin-bottom: 18px; }
.promo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Which courses and licences are covered */
.licence-table-wrap { overflow-x: auto; max-width: 900px; margin: 0 auto; }
.licence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.licence-table th, .licence-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.licence-table th { color: var(--text-heading); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.licence-table td:first-child, .licence-table th:first-child { text-align: left; color: var(--text-heading); font-weight: 700; }
.licence-table .yes { color: var(--accent-green); font-weight: 800; }
.licence-table .no { color: var(--text-muted); }
.licence-table tr:last-child td { border-bottom: 0; }

/* Free vs Pro, feature by feature */
.compare-table td:nth-child(2), .compare-table td:nth-child(3) { width: 90px; }
.compare-table td:first-child { font-weight: 600; }
.compare-table .group-row td {
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-align: left;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  max-width: 760px;
  margin: 20px auto 0;
}

@media (max-width: 900px) {
  .page-hero h1 { font-size: 36px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.flip > :first-child { order: 0; }
  .tile-grid, .tile-grid.four { grid-template-columns: 1fr 1fr; }
  .steps-grid, .story-grid { grid-template-columns: 1fr; }
  .promo-band { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid.site { grid-template-columns: 1fr 1fr; }
  .footer-grid.site .brand-col { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: 30px; }
  .section-title { font-size: 28px; }
  .tile-grid, .tile-grid.four { grid-template-columns: 1fr; }
  .feature-row h2, .promo-band h2 { font-size: 24px; }
  .footer-grid.site { grid-template-columns: 1fr; }
  .licence-table th, .licence-table td { padding: 10px 8px; font-size: 12px; }
}

/* Cost calculator (schools.html) */
.calc {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.calc label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-input-row { display: flex; gap: 8px; }
.calc-input-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--text-heading);
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  -moz-appearance: textfield;
}
.calc-input-row input::-webkit-outer-spin-button,
.calc-input-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input-row input:focus { outline: none; border-color: var(--accent-green); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25); }
.calc-step {
  flex: none;
  width: 48px;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.calc-step:hover { background: var(--bg-card-hover); }
.calc-seats { font-size: 12px; color: var(--text-muted); margin: 6px 0 12px; text-align: center; }
.calc-results { display: flex; flex-direction: column; gap: 8px; }
.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.calc-result b { font-size: 20px; color: var(--text-heading); white-space: nowrap; }
.calc-result.founding { border-color: rgba(16, 185, 129, 0.4); }
.calc-result.founding b { color: var(--accent-green); }
.calc-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ------------------------------------------------------------------
   Pricing, FAQ, licence and FlightLogger pages
   ------------------------------------------------------------------ */

/* Seven menu links: tighten them before the phone menu takes over */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .nav-actions .btn { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 1020px) and (min-width: 901px) {
  .nav-actions .btn-secondary { display: none; }
}

.footer-grid.site { grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1fr; }

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

/* Licence minimums (tables built from config.json by site/build.py) */
.req-route { font-size: 22px; margin: 36px 0 4px; }
.req-title { font-size: 15px; color: var(--accent-cyan); margin: 18px 0 10px; }
.req-table { table-layout: fixed; min-width: 560px; }
.req-table th, .req-table td { text-align: left; vertical-align: top; }
.req-table th:nth-child(1) { width: 50%; }
.req-table th:nth-child(2) { width: 20%; }
.req-table th:nth-child(3) { width: 30%; }
.req-table td:nth-child(2) { color: var(--text-heading); font-weight: 700; }
.req-table .req-sub { font-size: 11px; font-weight: 500; color: var(--text-muted); white-space: normal; }
.req-table .req-ref { font-size: 12px; color: var(--text-muted); }
.licence-table td a { color: var(--text-heading); text-decoration: none; border-bottom: 1px dashed var(--border-active); }
.licence-table td a:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

/* Terms explained */
.glossary { display: grid; gap: 14px; }
.glossary dt { color: var(--text-heading); font-weight: 800; font-size: 15px; }
.glossary dd { margin: 2px 0 0; font-size: 14px; }

/* Numbered how-to steps */
.how-steps { list-style: none; counter-reset: how; display: grid; gap: 12px; }
.how-steps li {
  counter-increment: how;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px 16px 62px;
  font-size: 15px;
}
.how-steps li::before {
  content: counter(how);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: var(--accent-blue);
}
.how-steps b { color: var(--text-heading); }

/* Links to the other licence pages */
.licence-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.licence-links a {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
}
.licence-links a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* FAQ page */
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.faq-jump a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-body);
  text-decoration: none;
  border: 1px solid var(--border-active);
  border-radius: 20px;
  padding: 6px 14px;
}
.faq-jump a:hover { color: var(--text-heading); border-color: var(--accent-cyan); }
.faq-group-title { max-width: 800px; margin: 40px auto 14px; font-size: 22px; }
.faq-group-title:first-child { margin-top: 0; }

/* Homepage: pilots, instructors and schools cards */
.audience-tile { display: flex; flex-direction: column; }
.audience-tile .product-link { margin-top: auto; padding-top: 12px; }
.tile-price { font-size: 13px; font-weight: 800; color: var(--text-heading); margin-top: 10px; }


@media (max-width: 900px) {
  .footer-grid.site { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid.site { grid-template-columns: 1fr; }
  .how-steps li { padding-left: 56px; font-size: 14px; }
  .req-table .req-ref { font-size: 11px; }
}
