  :root {
    --bg: #08080a;
    --bg-alt: #111113;
    --panel-light: #f2f0ec;
    --card: #17171b;
    --text: #f5f3ef;
    --muted: #a5a2a9;
    --accent: #ff5b1e;
    --accent-2: #ffb020;
    --border: #262629;
    --silver: linear-gradient(180deg,#f4f4f4,#b9b9bc 55%,#8d8d90);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; }
  .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent); font-weight: 700; font-size: 13px;
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
  }
  .eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); }
  .placeholder-note {
    font-size: 12px; color: var(--muted); font-style: italic; margin-top: 10px;
    border-left: 2px solid var(--accent); padding-left: 10px;
  }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 14px;
    letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0b0e; border: 1px solid #c5c8cd; box-shadow: inset 0 1px 0 #ffffff50, 0 4px 14px rgba(255, 91, 30, 0.18);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 91, 30, 0.45); }
  .btn-outline { background: transparent; border: 2px solid var(--text); color: var(--text); }
  .btn-outline:hover { background: var(--text); color: var(--bg); }
  .btn-dark { background: #0b0b0e; color: #fff; border: 1px solid #2a2a2e; }
  .btn-dark:hover { background: #1c1c22; }
  .btn-sm { padding: 10px 20px; font-size: 12px; }

  /* Header */
  header {
    position: fixed; top: 0; width: 100%; z-index: 200;
    background: rgba(8, 8, 10, 0.88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; max-width: 1180px; margin: 0 auto;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand img { height: 42px; width: auto; }
  .nav-links { display: flex; gap: 30px; list-style: none; }
  .nav-links a {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--muted); transition: color 0.2s ease;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a.active { color: var(--accent); }
  .nav-cta .btn { padding: 11px 22px; font-size: 12px; }
  .menu-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--text); }

  /* Hero */
  .hero {
    min-height: 100vh; display: flex; align-items: center; position: relative; padding: 130px 0 60px;
    background:
      radial-gradient(circle at 80% 15%, rgba(255, 91, 30, 0.16), transparent 45%),
      radial-gradient(circle at 5% 85%, rgba(255, 176, 32, 0.10), transparent 40%),
      var(--bg);
  }
  .hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; width: 100%; }
  h1 {
    font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; line-height: 1.04;
    letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 8px;
  }
  h1 .accent { color: var(--accent); display: block; }
  .hero-support { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
  .hero-copy { font-size: 17px; color: var(--muted); max-width: 460px; margin-bottom: 30px; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
  .hero-checks { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
  .hero-checks span { font-size: 13px; color: var(--muted); }
  .hero-checks span::before { content: '✓ '; color: var(--accent); font-weight: 700; }

  .hero-visual {
    position: relative; aspect-ratio: 4/5; border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,91,30,0.18), rgba(255,176,32,0.05)), var(--card);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .hero-visual::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px);
  }
  .hero-visual img.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 100%; }
  .hero-visual .cap {
    position: absolute; bottom: 18px; left: 18px; right: 18px; text-align: center;
    font-size: 11px; color: var(--muted); font-style: italic;
  }

  /* Stat bar */
  .stat-bar {
    background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 26px 0;
  }
  .stat-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
  .stat-items { display: flex; gap: 42px; flex-wrap: wrap; }
  .stat-item { display: flex; align-items: center; gap: 10px; }
  .stat-item .ico { font-size: 20px; }
  .stat-item strong { display: block; font-size: 14px; color: var(--text); }
  .stat-item span { font-size: 12px; color: var(--muted); }
  .stat-bar .brand-mini { display: flex; align-items: center; gap: 10px; }
  .stat-bar .brand-mini img { height: 46px; }

  section { padding: 100px 0; }
  .section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
  .section-head .eyebrow { justify-content: center; }
  .section-head h2 {
    font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; text-transform: uppercase;
    letter-spacing: -0.005em; margin-bottom: 14px; line-height: 1.15;
  }
  .section-head p { color: var(--muted); font-size: 16px; }

  .rewards-logo { display: block; width: 220px; max-width: 60%; margin: 0 auto 30px; }
  .rewards-lead { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: var(--text); margin-bottom: 22px; }
  .apex-points-callout {
    display: flex; align-items: center; gap: 22px; text-align: left;
    background: var(--card); border: 1px solid var(--border); border-radius: 18px;
    padding: 22px 26px; margin: 34px auto 0; max-width: 560px;
  }
  .apex-points-logo { width: 84px; flex-shrink: 0; }
  .apex-points-text h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 8px; color: var(--text); }
  .apex-points-text p { font-size: 14px; color: var(--muted); margin: 0; }
  @media (max-width: 600px) {
    .apex-points-callout { flex-direction: column; text-align: center; }
  }

  /* Sub-page top spacer (clears the fixed header on pages without a hero) */
  .page-head-spacer { padding-top: 170px; }
  @media (max-width: 760px) { .page-head-spacer { padding-top: 130px; } }

  /* Tyler intro */
  .tyler-intro { background: var(--bg); }
  .tyler-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: center; }
  .tyler-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
  .tyler-copy h2 span { color: var(--accent); display: block; }
  .tyler-copy p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
  .sig { font-family: 'Brush Script MT', cursive; font-size: 30px; color: var(--text); }
  .video-frame {
    position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
    aspect-ratio: 16/9; background: linear-gradient(160deg,#1c1c22,#0c0c0e);
    display: flex; align-items: center; justify-content: center;
  }
  .video-frame .tyler-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; object-position: center; background: #000; display: block; border: 0;
  }
  .video-frame .play-btn {
    width: 74px; height: 74px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 10px 30px rgba(255,91,30,0.4); font-size: 26px; color: #0b0b0e;
  }
  .video-frame .timeline {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
    font-size: 11px; color: var(--muted);
  }
  .video-frame .bar { flex: 1; height: 3px; background: rgba(255,255,255,0.18); border-radius: 2px; overflow: hidden; }
  .video-frame .bar::after { content: ''; display: block; width: 8%; height: 100%; background: var(--accent); }
  .video-frame .cap-label {
    position: absolute; top: 12px; left: 12px; font-size: 11px; padding: 4px 10px;
    background: rgba(0,0,0,0.55); border-radius: 999px; color: var(--muted);
  }
  .post-video-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

  /* Why Ignition */
  .why-ignition { background: var(--bg-alt); }
  .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 34px; }
  .why-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .why-card .x { color: #ff6a6a; font-size: 18px; flex: none; }
  .why-card p { font-size: 14px; color: var(--muted); }
  .why-close { text-align: center; font-size: 24px; font-weight: 800; text-transform: uppercase; }
  .why-close span { color: var(--accent); }

  /* Pillars */
  .pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .pillar-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 30px; text-align: center; }
  .pillar-card .num { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
  .pillar-card h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
  .pillar-card p { color: var(--muted); font-size: 14px; }
  .key-msg { text-align: center; margin-top: 34px; color: var(--muted); font-size: 14px; font-style: italic; }

  /* Method */
  .method { background: var(--bg); color: var(--text); }
  .method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
  .method-copy .eyebrow { color: var(--accent); }
  .method-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
  .method-copy .sub { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 14px; margin-bottom: 16px; }
  .method-copy p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
  .method-creds { list-style: none; margin-bottom: 22px; display: grid; gap: 8px; }
  .method-creds li { font-size: 14px; font-weight: 600; }
  .method-creds li::before { content: '● '; color: var(--accent); }
  .method-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .method-photo-row {
    max-width: 1040px; margin: 0 auto 70px; display: grid; grid-template-columns: 0.85fr 1.15fr;
    gap: 40px; align-items: start;
  }
  .journey-box {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 32px;
    text-align: left;
  }
  .journey-box h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; line-height: 1.2; }
  .journey-lead { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
  .journey-creds { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
  .journey-box p.body { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; }
  .journey-sign { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
  .journey-sign .sig { color: var(--text); }
  .journey-sign span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
  .method-photo {
    aspect-ratio: 4/5; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border); background: var(--card); position: sticky; top: 100px;
  }
  .method-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
  .method-photo .ph-ico { font-size: 32px; opacity: 0.6; }
  .method-photo .ph-cap { font-size: 12px; color: var(--muted); font-style: italic; max-width: 260px; }
  @media (max-width: 600px) { .method-photo-row { grid-template-columns: 1fr; } }
  .m-icon { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
  .m-icon .ico { font-size: 26px; margin-bottom: 10px; }
  .m-icon strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
  .m-icon span { font-size: 12px; color: var(--muted); }

  /* How it works */
  .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .step-card { text-align: center; padding: 10px; }
  .step-num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #0b0b0e;
  }
  .step-card h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
  .step-card p { font-size: 13px; color: var(--muted); }
  .steps-cta { text-align: center; margin-top: 40px; }
  .program-teaser { text-align: center; margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--border); }
  .program-teaser h3 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 30px; }
  .program-teaser-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
  .program-teaser-logos img { width: 110px; height: auto; transition: transform 0.2s ease; }
  .program-teaser-logos a:hover img { transform: translateY(-4px); }
  .program-teaser-tagline { margin-top: 28px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
  .program-teaser-tagline a { color: var(--accent); }
  .program-teaser-tagline a:hover { color: var(--accent-2); }
  @media (max-width: 600px) { .program-teaser-logos { gap: 24px; } .program-teaser-logos img { width: 84px; } }

  /* Programmes */
  .programmes { background: var(--bg-alt); }
  .prog-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: stretch; }
  .prog-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px;
    text-align: center; display: flex; flex-direction: column; align-items: center; height: 100%;
  }
  .prog-card img { width: 100%; max-width: 140px; margin: 0 auto 18px; }
  .prog-card ul { list-style: none; text-align: left; margin: 18px 0; display: grid; gap: 8px; width: 100%; flex: 1; }
  .prog-card ul li { font-size: 13px; color: var(--muted); padding-left: 20px; position: relative; }
  .prog-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
  .prog-card ul li.includes-note { font-style: italic; font-weight: 700; color: var(--text); padding-left: 0; }
  .prog-card ul li.includes-note::before { content: none; }
  .prog-card.ignite {
    border: 1px solid rgba(255,91,30,0.5);
  }
  .prog-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; margin-bottom: 16px; }
  .prog-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; }
  @media (max-width: 900px) { .prog-arrow { display: none; } }

  /* Compare plans table */
  .compare-head {
    margin-top: 60px; text-align: center; font-size: 22px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.01em;
  }
  .compare-head .accent { color: var(--accent); }
  .compare-wrap { margin-top: 22px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
  .compare-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--card); font-size: 13.5px; }
  .compare-table th, .compare-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
  .compare-table thead th {
    background: var(--bg-alt); border-bottom: 2px solid var(--border); vertical-align: middle;
  }
  .compare-table thead th:first-child { text-align: left; }
  .plan-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .plan-head .name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 14px; }
  .plan-head .price { color: var(--accent); font-weight: 700; font-size: 13px; }
  .compare-table td.feature-name {
    text-align: left; font-weight: 600; color: var(--text);
    position: sticky; left: 0; background: var(--card);
  }
  .compare-table tbody tr:nth-child(even) td.feature-name { background: var(--bg-alt); }
  .compare-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
  .compare-table .yes { color: var(--accent); font-weight: 700; font-size: 15px; }
  .compare-table .no { color: var(--muted); opacity: 0.5; }
  .compare-table td.ignite-col strong { color: var(--accent-2); }
  .compare-caption { font-size: 12px; color: var(--muted); padding: 12px 16px; text-align: left; }
  @media (max-width: 760px) { .compare-table { font-size: 12.5px; } .compare-table th, .compare-table td { padding: 10px 10px; } }

  /* The Bar */
  .the-bar { background: var(--panel-light); color: #0b0b0e; }
  .bar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
  .bar-copy h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
  .bar-copy .sub { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; }
  .bar-list { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
  .bar-list li { display: flex; gap: 12px; font-size: 14px; align-items: baseline; }
  .bar-list .tag { font-weight: 800; text-transform: uppercase; min-width: 130px; }
  .bar-list .tag::before { content: '✓ '; color: var(--accent); }
  .bar-quote {
    background: #0b0b0e; color: #fff; border-radius: 18px; padding: 34px; position: relative;
  }
  .bar-quote .mark { font-size: 40px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
  .bar-quote p { font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 18px; }
  .bar-quote cite { color: var(--muted); font-size: 13px; font-style: normal; }

  /* Personalisation */
  .personal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .p-chip {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 14px;
    text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  }

  /* Final CTA */
  .final-cta {
    background: linear-gradient(135deg, #ff5b1e, #ffb020); border-radius: 28px; padding: 60px 50px;
    text-align: center; color: #0b0b0e;
  }
  .final-cta h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; text-transform: uppercase; margin-bottom: 24px; }
  .final-cta .hero-actions { justify-content: center; }
  .final-cta .btn-outline { border-color: #0b0b0e; color: #0b0b0e; }
  .final-cta .btn-outline:hover { background: #0b0b0e; color: #fff; }

  /* The Iron Foe */
  .iron-foe {
    background:
      radial-gradient(circle at 50% 0%, rgba(255,91,30,0.14), transparent 55%),
      var(--bg);
  }
  .poem-block {
    max-width: 620px; margin: 0 auto; text-align: center;
  }
  .poem-block p {
    font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; line-height: 1.55;
    letter-spacing: -0.01em; margin-bottom: 34px; color: var(--text);
  }
  .poem-block p .accent { color: var(--accent); }
  .poem-closing {
    max-width: 720px; margin: 50px auto 0; text-align: center;
  }
  .poem-closing span {
    display: block; font-weight: 800; font-style: italic; line-height: 1.4;
  }
  .poem-closing span:first-child {
    font-size: clamp(22px, 3vw, 30px); color: var(--muted);
  }
  .poem-closing .final {
    margin-top: 18px; font-size: clamp(26px, 3.6vw, 38px);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  @media (max-width: 600px) { .poem-block p { font-size: 18px; } }

  .bar-text {
    max-width: 680px; margin: 0 auto; text-align: center;
  }
  .bar-text p {
    font-size: 17px; line-height: 1.7; color: var(--muted); margin-bottom: 22px;
  }
  .bar-text p.stmt {
    font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; line-height: 1.5;
    letter-spacing: -0.01em; color: var(--text); margin-bottom: 30px;
  }
  .bar-text p.stmt.big {
    font-size: clamp(23px, 3vw, 30px);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: 40px 0;
  }
  .bar-text p.section-divider {
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent); margin: 56px 0 40px; padding-top: 40px; border-top: 1px solid var(--border);
  }
  @media (max-width: 600px) { .bar-text p { font-size: 15.5px; } }

  /* Footer */
  footer { border-top: 1px solid var(--border); padding: 50px 0 30px; background: var(--bg-alt); }
  .footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 30px; margin-bottom: 34px; }
  .footer-brand img { height: 40px; margin-bottom: 12px; }
  .footer-brand p { color: var(--muted); font-size: 13px; }
  .footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; color: var(--muted); }
  .footer-col ul { list-style: none; display: grid; gap: 8px; }
  .footer-col a { font-size: 13px; color: var(--text); }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted);
  }

  /* IP Chatbot */
  .ip-chat-launcher {
    position: fixed; bottom: 22px; right: 22px; z-index: 500; width: 66px; height: 66px; border-radius: 50%;
    border: none; cursor: pointer; padding: 4px; background: radial-gradient(circle, rgba(255,91,30,0.25), transparent 70%);
  }
  .ip-chat-launcher img { width: 100%; height: 100%; border-radius: 50%; }
  .ip-chat-launcher.pulse { animation: pulseGlow 1.6s ease-in-out 3; }
  @keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,91,30,0.55); }
    50% { box-shadow: 0 0 0 18px rgba(255,91,30,0); }
  }
  .ip-chat-panel {
    position: fixed; bottom: 100px; right: 22px; z-index: 500; width: 360px; max-width: calc(100vw - 32px);
    height: 480px; max-height: calc(100vh - 140px); background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  }
  .ip-chat-panel.open { display: flex; }
  .chat-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
  .chat-head img { width: 34px; height: 34px; border-radius: 50%; }
  .chat-head .info strong { display: block; font-size: 13px; }
  .chat-head .info span { font-size: 10.5px; color: var(--muted); }
  .chat-head .spacer { flex: 1; }
  .chat-icon-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }
  .chat-icon-btn:hover { color: var(--accent); }
  .chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .msg { max-width: 85%; font-size: 13px; padding: 10px 13px; border-radius: 12px; line-height: 1.45; }
  .msg.bot { background: #232328; align-self: flex-start; border-bottom-left-radius: 3px; }
  .msg.user { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0b0e; align-self: flex-end; border-bottom-right-radius: 3px; font-weight: 600; }
  .quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
  .qp-btn {
    background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: 11.5px;
    padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: border-color 0.2s, color 0.2s;
  }
  .qp-btn:hover { border-color: var(--accent); color: var(--accent); }
  .chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
  .chat-input-row input {
    flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px;
    color: var(--text); font-size: 13px;
  }
  .chat-input-row input:focus { outline: none; border-color: var(--accent); }
  .chat-send {
    width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0b0e; font-size: 15px;
  }

  /* ── Coaching chat: AI disclosure, provenance and server states (task 12.10)
     ──────────────────────────────────────────────────────────────────────────
     The disclosure is styled to be READ, not dismissed. It has no close control
     and no `display:none` state at any viewport: R8.8 requires AI identity to be
     clear to members, and a banner that collapses on a phone would not be.
     Contrast is deliberately high (var(--text) on a tinted panel) rather than the
     muted grey used for secondary copy. */
  .chat-disclosure {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    display: flex; flex-direction: column; gap: 4px;
  }
  .chat-disclosure-short {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
  }
  .chat-disclosure-full { font-size: 11.5px; line-height: 1.5; color: var(--text); }

  /* The provenance label is part of the message block, above the text, so it is
     announced with the reply rather than hidden in a tooltip or a title attribute
     that a screen reader may not reach. */
  .msg { display: flex; flex-direction: column; gap: 5px; }
  .msg-provenance {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  }
  .msg.user .msg-provenance { color: rgba(11, 11, 14, 0.72); }
  .msg-text { white-space: pre-wrap; }
  /* A withheld reply is stated, not styled away. It stays legible. */
  .msg-withheld { font-style: italic; color: var(--text); }
  .msg.progress { opacity: 0.85; }
  .msg.pending { opacity: 0.7; }

  .chat-status {
    padding: 10px 16px; font-size: 11.5px; line-height: 1.5; color: var(--text);
    border-top: 1px solid var(--border);
  }
  .chat-status[hidden] { display: none; }
  .chat-actions { display: flex; gap: 8px; padding: 0 16px 10px; }
  .chat-action-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 11.5px;
    padding: 7px 12px; border-radius: 999px; cursor: pointer;
  }
  .chat-action-btn:hover { border-color: var(--accent); color: var(--accent); }
  .chat-action-btn[hidden] { display: none; }
  .chat-sign-in-notice { padding: 0 16px 10px; font-size: 11.5px; color: var(--text); }
  .chat-sign-in-notice[hidden] { display: none; }

  /* Every interactive chat control keeps a visible focus ring. */
  .chat-icon-btn:focus-visible,
  .chat-action-btn:focus-visible,
  .qp-btn:focus-visible,
  .chat-send:focus-visible,
  .chat-input-row input:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
  }

  /* Performance Profile modal */
  .pp-overlay {
    position: fixed; inset: 0; background: rgba(4,4,5,0.82); z-index: 600; display: none;
    align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px);
  }
  .pp-overlay.open { display: flex; }
  .pp-modal {
    background: var(--card); border: 1px solid var(--border); border-radius: 20px; width: 560px; max-width: 100%;
    max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  }
  .pp-head { padding: 20px 26px 14px; border-bottom: 1px solid var(--border); }
  .pp-head-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .pp-head-top strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  .pp-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
  .pp-close:hover { color: var(--accent); }
  .pp-progress { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
  .pp-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0%; transition: width 0.3s ease; }
  .pp-body { padding: 26px; overflow-y: auto; flex: 1; }
  .pp-step-title { font-size: 21px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
  .pp-step-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
  .pp-field { margin-bottom: 18px; }
  .pp-field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
  .pp-field input[type="text"], .pp-field input[type="email"], .pp-field select, .pp-field textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
    color: var(--text); font-size: 14px; font-family: inherit;
  }
  .pp-field textarea { min-height: 80px; resize: vertical; }
  .pp-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-opt {
    border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }
  .pp-opt input { margin-right: 8px; }
  .pp-opt.selected { border-color: var(--accent); background: rgba(255,91,30,0.08); }
  .pp-review-list { display: grid; gap: 10px; }
  .pp-review-list div { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
  .pp-review-list span.k { color: var(--muted); }
  .pp-foot { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ---- Integrated server states (Task 9): loading, validation, failure,
          retry and completion. Replaces the prototype's simulated analysis. ---- */
  .pp-status {
    margin: 12px 0 0; font-size: 13px; color: var(--muted); min-height: 18px;
  }
  .pp-failure {
    margin: 12px 0 0; padding: 12px 14px; border-radius: 10px;
    border: 1px solid #b3452a; background: rgba(179,69,42,0.12); color: #ffd9cd; font-size: 13.5px;
  }
  .pp-failure p { margin: 0 0 10px; }
  .pp-field-error {
    margin: 8px 0 0; font-size: 13px; color: #ffb4a0; font-weight: 600;
  }
  .pp-field-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
  .pp-field input[aria-invalid="true"], .pp-field textarea[aria-invalid="true"] {
    border-color: #b3452a;
  }
  .pp-fieldset { border: none; margin: 0; padding: 0; }
  .pp-fieldset legend {
    padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--muted); margin-bottom: 8px;
  }
  .pp-field-acceptance .pp-acceptance-row { display: flex; align-items: flex-start; gap: 10px; }
  .pp-field-acceptance label {
    margin: 0; text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text);
  }
  .pp-field-acceptance input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; }
  .pp-complete { padding: 26px; }
  .pp-complete h3 { font-size: 19px; font-weight: 800; text-transform: uppercase; margin: 0 0 10px; }
  .pp-complete p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

  /* ---- Beta access panel ---- */
  .beta-panel {
    max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 26px;
  }
  .beta-code-form .pp-field { margin-bottom: 16px; }
  .beta-status { margin: 14px 0 0; font-size: 13px; color: var(--muted); min-height: 18px; }
  .beta-resume { margin: 18px 0 0; }
  .waitlist-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
  .waitlist-link { color: var(--accent); text-decoration: underline; }

  /* ---- Keyboard operability: a visible focus indicator on every control ---- */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
  select:focus-visible, .pp-opt:focus-within {
    outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px;
  }
  [hidden] { display: none !important; }

  @media (max-width: 980px) {
    .hero-inner, .tyler-grid, .method-grid, .bar-grid { grid-template-columns: 1fr; }
    .hero-visual, .video-frame { order: -1; }
    .pillars-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
    .prog-grid { grid-template-columns: 1fr; }
    .personal-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    .nav-links, .nav-cta { display: none; }
    .nav-links.nav-open {
      display: flex; flex-direction: column; position: fixed; top: 66px; right: 24px;
      background: #141416; padding: 18px; border-radius: 14px; border: 1px solid #262629;
      gap: 16px; z-index: 250;
    }
    .menu-toggle { display: flex; }
    section { padding: 72px 0; }
    .pillars-grid, .steps-grid, .personal-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-bar .container { justify-content: center; text-align: center; }
    .pp-options { grid-template-columns: 1fr; }
  }

  /* Mobile operability for the integrated flows (R13.2-R13.5/R15.5). */
  @media (max-width: 480px) {
    .pp-overlay { padding: 0; align-items: stretch; }
    .pp-modal { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; }
    .pp-head, .pp-body, .pp-foot, .pp-complete { padding-left: 18px; padding-right: 18px; }
    .pp-foot { flex-wrap: wrap; }
    .pp-foot .btn { flex: 1 1 auto; }
    .beta-panel { padding: 18px; border-radius: 14px; }

    /* The AI disclosure stays FULLY VISIBLE at the smallest supported width. It
       is not truncated, not collapsed behind a toggle and not reduced to the
       short label: R8.8 is a member-facing obligation, so a narrow viewport
       cannot be a reason to hide it (task 12.10). */
    .chat-disclosure { padding: 10px 14px; }
    .chat-disclosure-full { font-size: 11.5px; }
    .chat-actions { flex-wrap: wrap; }
    .chat-action-btn { flex: 1 1 auto; min-height: 40px; }
  }

/* ================= My programme and check-ins (task 14.6; R10.7) =========
 *
 * Two rules here are load-bearing rather than decorative:
 *
 *   * `.prog-limitations` is never `display: none`, never truncated with a line
 *     clamp and never collapsed behind a toggle at ANY viewport width. R10.7 is a
 *     member-facing obligation, so a narrow screen cannot be a reason to hide the
 *     statement that this is not medical advice. The responsive block at the bottom
 *     of this file shrinks the type and keeps every word.
 *
 *   * `.prog-provenance` renders the author kind and the review status side by side
 *     with equal visual weight, and `.prog-completed-review` is a separate line that
 *     exists only when a completed review record does. Styling a review badge more
 *     prominently than the "written by the AI coach" label would be a way to imply a
 *     review nobody performed.
 */
.prog-panel {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.prog-limitations {
  /* Deliberately NOT hidden, collapsed or clamped at any width. */
  display: block;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent, #ff6a00);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.prog-limitations-short {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.prog-limitations-full {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.prog-limitations-items {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.prog-limitations-items li {
  margin-bottom: 4px;
}

.prog-status {
  font-size: 13.5px;
  margin: 0 0 16px;
}

.prog-gate {
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.12);
  margin: 0 0 16px;
}

.prog-revision {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.prog-pending-notice {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}

/* Author kind and review status carry EQUAL weight. */
.prog-provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 10px;
  font-size: 13px;
}

.prog-author-kind,
.prog-review-status {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 600;
}

.prog-completed-review {
  font-size: 12.5px;
  opacity: 0.85;
  margin: 0 0 10px;
}

.prog-effective-from {
  font-size: 12.5px;
  opacity: 0.85;
  margin: 0 0 10px;
}

.prog-summary {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.prog-rationale {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.9;
  margin: 0;
}

.prog-empty {
  font-size: 14px;
  margin: 0;
}

.prog-violations {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.prog-check-in-link {
  margin-top: 18px;
}

@media (max-width: 480px) {
  .prog-panel {
    padding: 16px;
    border-radius: 14px;
  }
  /* The advice limitations stay FULLY VISIBLE at the smallest supported width.
     Not truncated, not collapsed behind a toggle and not reduced to the short
     label: R10.7 is a member-facing obligation, so a narrow viewport cannot be a
     reason to hide it (task 14.6, 14.7). */
  .prog-limitations {
    padding: 12px 14px;
  }
  .prog-limitations-full {
    font-size: 12.5px;
  }
  .prog-limitations-items {
    font-size: 12.5px;
  }
  .prog-provenance {
    gap: 6px 10px;
  }
  .prog-author-kind,
  .prog-review-status {
    font-size: 12px;
  }
}

  /* ─────────────────────────── Sign In (auth) ─────────────────────────── */
  /* The header sign-in button. .nav-cta already had a size rule; make it show
     as an inline-flex slot next to the nav links on desktop. */
  .nav-cta { display: inline-flex; align-items: center; }
  /* The mobile-only "Sign In" list item is hidden on desktop, where the nav-cta
     button is shown instead. */
  .nav-signin-mobile { display: none; }

  .auth-modal { width: 460px; }
  .auth-intro { color: var(--muted); font-size: 14px; margin-top: 6px; }
  .auth-form { display: flex; flex-direction: column; gap: 16px; }
  .auth-form .pp-field { display: flex; flex-direction: column; gap: 8px; }
  .auth-form label {
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted);
  }
  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
    font-size: 15px; outline: none; transition: border-color 0.2s ease;
  }
  .auth-form input[type="email"]:focus,
  .auth-form input[type="password"]:focus { border-color: var(--accent); }
  .auth-form .btn { width: 100%; }
  .auth-status {
    margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px;
    border: 1px solid var(--border); background: var(--bg-alt);
  }
  .auth-status[data-tone="success"] { border-color: #2f7d4f; background: rgba(47,125,79,0.14); color: #b8f0cd; }
  .auth-status[data-tone="error"] { border-color: #8a2f2f; background: rgba(138,47,47,0.14); color: #f3c3c3; }
  .auth-status[data-tone="info"] { color: var(--muted); }
  .auth-help { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }

  @media (max-width: 760px) {
    /* On mobile the nav-cta button is part of the hidden nav; surface Sign In
       inside the opened menu instead. */
    .nav-cta { display: none; }
    .nav-links.nav-open .nav-signin-mobile { display: block; }
    .nav-signin-mobile a { color: var(--accent); font-weight: 700; }
    .auth-modal { width: 100%; }
  }

/* ================= Premium responsive visual system (2026) ============= */
:root {
  color-scheme: dark;
  --header-height: 70px;
  --surface-glass: rgba(18, 18, 22, 0.82);
  --surface-raised: linear-gradient(145deg, rgba(31, 31, 37, 0.94), rgba(18, 18, 22, 0.98));
  --glow-orange: rgba(255, 91, 30, 0.2);
  --glow-gold: rgba(255, 176, 32, 0.13);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.46);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
  scrollbar-color: var(--accent) var(--bg-alt);
}

body {
  min-width: 0;
  overflow-x: visible;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 91, 30, 0.055), transparent 26rem),
    radial-gradient(circle at 90% 58%, rgba(255, 176, 32, 0.045), transparent 30rem),
    var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-menu-open {
  overflow: hidden;
}

.container,
.hero-inner > *,
.tyler-grid > *,
.method-grid > *,
.method-photo-row > *,
.bar-grid > *,
.footer-grid > *,
.pp-modal,
.chat-head .info,
.chat-input-row input {
  min-width: 0;
}

.container {
  width: 100%;
}

p,
li,
.footer-bottom,
.auth-help {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.section-head p,
.hero-copy {
  text-wrap: balance;
}

section {
  position: relative;
}

section:not(.hero):not(.the-bar):not(.iron-foe) {
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.018), transparent 28rem);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-head p + p {
  margin-top: 12px;
}

/* Buttons remain readable and tappable even when a label wraps on a small phone. */
.btn {
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.btn-primary:hover,
.program-teaser-logos a:hover img {
  transform: none;
}

.btn:active,
.nav-links a:active,
.footer-col a:active,
.p-chip:active {
  transform: scale(0.975);
}

/* Header and desktop navigation. */
header {
  width: 100%;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 10, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 30, 0.72), transparent);
  pointer-events: none;
}

nav {
  max-width: 1440px;
  min-height: var(--header-height);
  gap: clamp(10px, 1.2vw, 20px);
  padding: 10px clamp(18px, 2.4vw, 34px);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  height: 38px;
}

.nav-links {
  align-items: center;
  justify-content: center;
  gap: clamp(11px, 1.05vw, 20px);
  min-width: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: clamp(10px, 0.8vw, 12px);
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current='page']::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.nav-cta .btn {
  padding: 10px 17px;
}

.footer-phone::before {
  content: '☎';
  margin-right: 7px;
  color: inherit;
  opacity: 0.7;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.menu-toggle span {
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
  transform-origin: center;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Premium depth without continuous or battery-heavy animation. */
.hero {
  min-height: 100svh;
  min-height: 100dvh;
  overflow: clip;
}

.hero::after {
  content: '';
  position: absolute;
  top: 8%;
  right: -12rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 91, 30, 0.12), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-visual {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-deep), 0 0 70px rgba(255, 91, 30, 0.09);
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 52% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.42));
  pointer-events: none;
}

.hero-photo,
.method-photo img,
.program-teaser-logos img {
  transition: opacity 240ms ease, transform 520ms var(--ease-out);
}

.step-card,
.pillar-card,
.why-card,
.prog-card,
.m-icon,
.journey-box,
.p-chip,
.apex-points-callout,
.bar-quote,
.video-frame {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}

.step-card {
  padding: 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: var(--surface-raised);
}

.pillar-card,
.prog-card,
.m-icon,
.journey-box,
.p-chip,
.apex-points-callout {
  background: var(--surface-raised);
}

.prog-card.ignite {
  border-color: rgba(255, 91, 30, 0.62);
  box-shadow: 0 24px 64px rgba(255, 91, 30, 0.12);
}

.step-num {
  box-shadow: 0 12px 30px rgba(255, 91, 30, 0.25);
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 75px rgba(255, 91, 30, 0.22);
}

.final-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -90%;
  left: -8%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(2px);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.16) 48%, transparent 72%);
  transform: translateX(34%);
  pointer-events: none;
}

.compare-wrap {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-soft);
  scrollbar-color: var(--accent) var(--card);
}

/* Keep the telephone number discreet and tied to the company details rather
   than presenting it as a primary contact route. */
.footer-company-contact {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px 12px;
  margin-left: auto;
  text-align: right;
}

.footer-company-contact .footer-phone {
  color: inherit;
  opacity: 0.68;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer-company-contact .footer-phone::before {
  content: none;
}

.footer-company-contact .footer-phone:hover {
  color: var(--text);
  opacity: 1;
}

@media (max-width: 760px) {
  .footer-company-contact {
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }
}

.ip-chat-panel {
  max-height: calc(100dvh - 140px);
}

.pp-modal {
  max-height: 90dvh;
}

.chat-head .info span {
  display: block;
  line-height: 1.35;
}

.chat-icon-btn,
.pp-close,
.chat-send {
  min-width: 44px;
  min-height: 44px;
}

/* Progressive enhancement: content is visible unless JS successfully installs
   an observer. Sensitive forms, dialogs, live regions and programme disclosures
   are filtered out by script.js before any reveal class is added. */
.motion-ready .reveal-item {
  transition:
    opacity 580ms var(--ease-out),
    transform 680ms var(--ease-out);
  transition-delay: 0ms;
}

.motion-ready .reveal-item:not(.revealed) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.motion-ready .reveal-item.reveal-active {
  will-change: opacity, transform;
}

.motion-ready .reveal-delay-1 {
  transition-delay: 45ms;
}

.motion-ready .reveal-delay-2 {
  transition-delay: 90ms;
}

.motion-ready .reveal-delay-3 {
  transition-delay: 135ms;
}

@keyframes nav-menu-in {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .step-card:hover,
  .pillar-card:hover,
  .why-card:hover,
  .prog-card:hover,
  .m-icon:hover,
  .journey-box:hover,
  .p-chip:hover,
  .apex-points-callout:hover,
  .bar-quote:hover,
  .video-frame:hover {
    transform: translateY(-6px);
  }

  .hero-visual:hover .hero-photo,
  .method-photo:hover img {
    transform: scale(1.025);
  }

  .program-teaser-logos a:hover img {
    transform: translateY(-5px) scale(1.025);
  }
}

/* Collapse early enough for all eight links, phone and sign-in to remain usable. */
@media (max-width: 1100px) {
  header {
    padding-top: env(safe-area-inset-top);
  }

  nav {
    min-height: var(--header-height);
    padding: 9px 18px;
  }

  .brand img {
    height: 38px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 252;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top) - 20px);
    gap: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: rgba(17, 17, 20, 0.97);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
    box-shadow: var(--shadow-deep), 0 0 0 100vmax rgba(0, 0, 0, 0.46);
    animation: nav-menu-in 220ms var(--ease-out) both;
    z-index: 251;
  }

  .nav-links.nav-open li {
    width: 100%;
  }

  .nav-links.nav-open a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    white-space: normal;
  }

  .nav-links.nav-open a::after {
    display: none;
  }

  .nav-links.nav-open a:hover,
  .nav-links.nav-open a.active,
  .nav-links.nav-open a[aria-current='page'] {
    color: var(--text);
    background: rgba(255, 91, 30, 0.11);
  }

  .nav-links.nav-open .nav-signin-mobile {
    display: block;
  }

  .nav-links.nav-open .nav-signin-mobile a {
    color: #0b0b0e;
    font-weight: 800;
    justify-content: center;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
  }

  .method-photo {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .container {
    padding-inline: 20px;
  }

  section {
    padding: 76px 0;
  }

  .page-head-spacer {
    padding-top: calc(var(--header-height) + 64px);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 52px) 0 70px;
  }

  .hero-inner,
  .tyler-grid,
  .method-grid,
  .method-photo-row,
  .bar-grid {
    gap: 34px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
  }

  .final-cta {
    padding: 44px 26px;
    border-radius: 24px;
  }

  .ip-chat-panel {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
    height: min(560px, calc(100dvh - 112px - env(safe-area-inset-bottom)));
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
  }

  .ip-chat-launcher {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 640px) {
  .pillars-grid,
  .steps-grid,
  .personal-grid,
  .why-grid,
  .method-icons,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: 0;
    aspect-ratio: auto;
  }

  /* Preserve the portrait artwork's full focal composition on phones instead
     of forcing it through the former landscape crop. */
  .hero-visual img.hero-photo {
    height: auto;
  }

  .video-frame {
    order: 0;
  }

  .stat-items,
  .stat-item {
    width: 100%;
  }

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

  .footer-brand {
    padding-bottom: 8px;
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .pp-review-list div {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }

  nav {
    padding-inline: 14px;
  }

  .brand img {
    height: 34px;
    max-width: calc(100vw - 94px);
    object-fit: contain;
    object-position: left center;
  }

  section {
    padding: 64px 0;
  }

  .page-head-spacer {
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 42px);
  }

  h1 {
    font-size: clamp(36px, 13vw, 48px);
  }

  .hero-copy,
  .section-head p {
    font-size: 15px;
  }

  .hero-actions,
  .post-video-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .post-video-actions .btn,
  .steps-cta .btn,
  .journey-box > .btn,
  .section-head > .btn {
    width: 100%;
  }

  .btn {
    padding: 14px 20px;
  }

  .btn-sm {
    padding: 11px 17px;
  }

  .hero-checks {
    display: grid;
    gap: 9px;
  }

  .journey-box,
  .pillar-card,
  .prog-card {
    padding: 24px 20px;
  }

  .method-photo-row {
    margin-bottom: 46px;
  }

  .bar-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .bar-list .tag {
    min-width: 0;
  }

  .final-cta {
    padding: 36px 18px;
    border-radius: 20px;
  }

  .final-cta h2 {
    font-size: clamp(24px, 9vw, 34px);
  }

  footer {
    padding-top: 42px;
  }

  .footer-grid {
    gap: 24px;
  }

  /* Advice limitations remain complete and visible at the narrowest width. */
  .prog-limitations {
    display: block;
    padding: 12px 14px;
  }

  .prog-limitations-full,
  .prog-limitations-items {
    font-size: 12.5px;
  }

  .prog-provenance {
    gap: 6px 10px;
  }

  .pp-modal {
    max-height: 100dvh;
  }

  .pp-foot .btn {
    min-width: min(100%, 132px);
  }

  .chat-head {
    padding: 12px;
    gap: 7px;
  }

  .chat-head .info span {
    font-size: 10px;
  }

  .quick-prompts {
    max-height: 110px;
    overflow-y: auto;
  }

  .chat-input-row {
    padding: 10px;
  }
}

/* Motion is optional. All content and controls remain fully visible and usable. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-ready .reveal-item,
  .motion-ready .reveal-item:not(.revealed) {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}


/* ================= Secure member dashboard ================= */
.dashboard-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 91, 30, 0.13), transparent 30%),
    radial-gradient(circle at 8% 32%, rgba(255, 176, 32, 0.07), transparent 28%),
    var(--bg);
}

.dashboard-hero {
  position: relative;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -360px;
  border: 1px solid rgba(255, 91, 30, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(255, 91, 30, 0.09);
  pointer-events: none;
}

.dashboard-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
}

.dashboard-hero h1 .accent {
  display: block;
  color: var(--accent);
}

.dashboard-lead {
  max-width: 660px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 470px;
}

.dashboard-session-badge {
  flex: 1 0 100%;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.dashboard-session-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #76737b;
  box-shadow: 0 0 0 4px rgba(118, 115, 123, 0.12);
}

.dashboard-session-badge[data-state='ready']::before {
  background: #53d38b;
  box-shadow: 0 0 0 4px rgba(83, 211, 139, 0.12);
}

.dashboard-session-badge[data-state='signed-out']::before,
.dashboard-session-badge[data-state='denied']::before,
.dashboard-session-badge[data-state='error']::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 91, 30, 0.12);
}

.dashboard-shell {
  min-height: 58vh;
  padding-top: 66px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 520px);
}

.dashboard-loading {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}

.dashboard-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dashboard-spin 0.8s linear infinite;
}

@keyframes dashboard-spin {
  to { transform: rotate(360deg); }
}

.dashboard-gate,
.dashboard-error {
  max-width: 680px;
  margin: 20px auto 80px;
}

.dashboard-gate-card {
  padding: 56px 48px !important;
  text-align: center;
}

.dashboard-gate-card h2,
.dashboard-error h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  text-transform: uppercase;
}

.dashboard-gate-card > p:not(.dashboard-kicker),
.dashboard-error .dashboard-card > p:not(.dashboard-kicker) {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.dashboard-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b0e;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(255, 91, 30, 0.28);
}

.dashboard-section-head,
.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-section-head {
  align-items: flex-end;
  margin-bottom: 26px;
}

.dashboard-section-head h2,
.dashboard-card h2 {
  font-size: clamp(22px, 2.7vw, 31px);
  line-height: 1.15;
  text-transform: uppercase;
}

.dashboard-kicker {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-updated,
.dashboard-muted,
.dashboard-card-copy {
  color: var(--muted);
  font-size: 13.5px;
}

.dashboard-updated {
  text-align: right;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dashboard-stat,
.dashboard-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    rgba(19, 19, 23, 0.92);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);
}

.dashboard-stat {
  min-width: 0;
  padding: 20px;
  border-radius: 16px;
}

.dashboard-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 36px;
  height: 2px;
  background: #6c6970;
}

.dashboard-stat[data-tone='success']::before {
  background: #53d38b;
}

.dashboard-stat[data-tone='progress']::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.dashboard-stat-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-stat-value {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dashboard-stat-detail {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-card {
  min-width: 0;
  padding: 30px;
  border-radius: 20px;
  overflow: hidden;
}

.dashboard-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -120px;
  right: -110px;
  border-radius: 50%;
  background: rgba(255, 91, 30, 0.07);
  filter: blur(10px);
  pointer-events: none;
}

.dashboard-card-head {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.dashboard-card-copy {
  margin: -5px 0 22px;
  line-height: 1.6;
}

.dashboard-text-link {
  flex: 0 0 auto;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 91, 30, 0.55);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-text-link:hover,
.dashboard-text-link:focus-visible {
  color: var(--text);
}

.dashboard-progress-card {
  background:
    linear-gradient(145deg, rgba(255, 91, 30, 0.09), rgba(255, 176, 32, 0.015) 48%),
    rgba(19, 19, 23, 0.95);
}

.dashboard-progress-ring {
  --dashboard-progress: 0;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--dashboard-progress) * 1%), rgba(255, 255, 255, 0.09) 0);
}

.dashboard-progress-ring::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #151519;
}

.dashboard-progress-ring span {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 900;
}

.dashboard-milestones {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  list-style: none;
}

.dashboard-milestones li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-milestones li.complete {
  border-color: rgba(83, 211, 139, 0.2);
  color: var(--text);
  background: rgba(83, 211, 139, 0.045);
}

.dashboard-milestone-icon {
  width: 20px;
  color: var(--accent);
  font-weight: 900;
  text-align: center;
}

.dashboard-milestones li.complete .dashboard-milestone-icon {
  color: #53d38b;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-mini-metric {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.dashboard-mini-metric span,
.dashboard-mini-metric small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.dashboard-mini-metric strong {
  display: block;
  margin: 3px 0;
  font-size: 20px;
}

.dashboard-definition-list {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.dashboard-definition-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 13px 15px;
  background: #151519;
}

.dashboard-definition-row dt {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-definition-row dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-definition-row dd strong,
.dashboard-definition-row dd small {
  display: block;
}

.dashboard-definition-row dd strong {
  font-size: 13.5px;
}

.dashboard-definition-row dd small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.dashboard-programme-card,
.dashboard-access-card {
  margin-bottom: 24px;
}

.dashboard-programme-card .prog-limitations {
  position: relative;
  z-index: 1;
}

.dashboard-revision {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.19);
}

.dashboard-revision-label {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-revision h3 {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.3;
}

.dashboard-revision > p:not(.dashboard-revision-label) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-revision > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.dashboard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.dashboard-badges span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.dashboard-runtime-state {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  background: rgba(255, 176, 32, 0.07);
  color: var(--muted);
  font-size: 12.5px;
}

.dashboard-history {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-history > h3 {
  margin-bottom: 12px;
  font-size: 16px;
  text-transform: uppercase;
}

.dashboard-empty {
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.dashboard-empty strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.dashboard-empty p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.dashboard-empty-compact {
  grid-column: 1 / -1;
}

.dashboard-checkin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.dashboard-form-field {
  min-width: 0;
}

.dashboard-form-field:last-of-type,
.dashboard-form-status,
.dashboard-checkin-form > .btn {
  grid-column: 1 / -1;
}

.dashboard-form-field label,
.dashboard-form-field small {
  display: block;
}

.dashboard-form-field label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-required {
  color: var(--accent-2);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-form-field input,
.dashboard-form-field select,
.dashboard-form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.dashboard-form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.dashboard-form-field input:focus,
.dashboard-form-field select:focus,
.dashboard-form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 30, 0.11);
}

.dashboard-form-field small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-form-status {
  min-height: 22px;
  font-size: 12px;
}

.dashboard-form-status[data-tone='error'] {
  color: #f3a9a9;
}

.dashboard-form-status[data-tone='success'] {
  color: #83e7ae;
}

.dashboard-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.dashboard-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 24px;
}

.dashboard-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 13px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-timeline-marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(255, 91, 30, 0.08);
}

.dashboard-timeline-date {
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-timeline-item h3 {
  margin: 3px 0 10px;
  font-size: 17px;
}

.dashboard-checkin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin-bottom: 9px;
}

.dashboard-checkin-summary div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
}

.dashboard-checkin-summary dt {
  color: var(--muted);
}

.dashboard-checkin-summary dd {
  font-weight: 700;
}

.dashboard-timeline-item small {
  color: var(--muted);
  font-size: 10px;
}

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

.dashboard-capability {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.dashboard-capability[data-allowed='true'] {
  border-color: rgba(83, 211, 139, 0.18);
  background: rgba(83, 211, 139, 0.035);
}

.dashboard-capability-state {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-capability[data-allowed='true'] .dashboard-capability-state {
  color: #83e7ae;
}

.dashboard-capability strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dashboard-capability p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dashboard-beta-note {
  margin: 6px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 176, 32, 0.16);
  border-radius: 14px;
  background: rgba(255, 176, 32, 0.035);
}

.dashboard-beta-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-beta-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .dashboard-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .dashboard-hero-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }

  .dashboard-session-badge {
    text-align: left;
  }

  .dashboard-grid,
  .dashboard-grid-featured,
  .dashboard-grid-checkins {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .dashboard-hero {
    padding-bottom: 46px;
  }

  .dashboard-hero-actions,
  .dashboard-hero-actions .btn {
    width: 100%;
  }

  .dashboard-shell {
    padding-top: 42px;
  }

  .dashboard-section-head,
  .dashboard-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .dashboard-stat-grid,
  .dashboard-metric-grid,
  .dashboard-capabilities,
  .dashboard-checkin-form,
  .dashboard-checkin-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-stat:last-child {
    grid-column: 1;
  }

  .dashboard-card,
  .dashboard-gate-card {
    padding: 20px !important;
    border-radius: 16px;
  }

  .dashboard-progress-ring {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .dashboard-definition-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dashboard-form-field,
  .dashboard-form-field:last-of-type,
  .dashboard-form-status,
  .dashboard-checkin-form > .btn {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-spinner {
    animation: none;
    border-color: var(--accent);
  }
}

/* Explicit role-safe route from the shared demo entry to the separate operator origin. */
.auth-route-choice {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.auth-route-choice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-route-choice strong {
  color: var(--text);
}

.auth-route-choice .btn {
  width: 100%;
}

/* Clearly separated staging showcase provenance and non-prescriptive plan facts. */
.dashboard-showcase-note {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(140, 188, 255, 0.26);
  border-left: 3px solid #8cbcff;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.07);
}

.dashboard-showcase-note strong {
  display: block;
  margin-bottom: 4px;
  color: #a9cdff;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-showcase-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.dashboard-programme-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 15px 0 0;
}

.dashboard-programme-fact {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-programme-fact dt {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dashboard-programme-fact dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 12px;
}
/* Tyler-led daily experience. Scoped additions preserve the public/auth shells. */
.member-skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 20px; background: var(--accent); color: #08080a; font-weight: 800; border-radius: 8px; }
.member-skip-link:focus { top: 12px; }
.member-skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }
.dashboard-page .dashboard-hero { padding-bottom: 30px; }
.dashboard-page .dashboard-hero h1 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.045em; line-height: .98; }
.dashboard-page .dashboard-lead { max-width: 580px; font-size: 15px; }
.dashboard-page .dashboard-session-actions { display: flex; justify-content: flex-end; gap: 24px; }
.dashboard-page .dashboard-text-link { background: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; }
.dashboard-page .dashboard-shell { padding-top: 8px; }
.dashboard-page .dashboard-day-heading { margin-bottom: 18px; }
.dashboard-page .dashboard-section-head h2 { font-size: 25px; letter-spacing: -.03em; }
.dashboard-daily-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.daily-plan-card { position: relative; overflow: hidden; min-width: 0; padding: 28px 32px 30px; border: 1px solid #443123; border-radius: 20px; background: linear-gradient(130deg, #342014 0%, #181418 70%); }
.daily-plan-card-training { border-color: #343b38; background: linear-gradient(130deg, #222d28 0%, #15181a 70%); }
.daily-plan-card::after { content: ''; position: absolute; width: 240px; height: 240px; right: -100px; top: -90px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 58px rgba(255,255,255,.012); pointer-events: none; }
.daily-plan-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.daily-plan-number { font-size: 10px; letter-spacing: .15em; font-weight: 800; color: #e4ab7b; }
.daily-plan-card-training .daily-plan-number { color: #aac8b5; }
.daily-plan-symbol { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; font-size: 22px; color: #f2ca9f; }
.daily-plan-card h2 { font-size: clamp(29px, 3vw, 41px); letter-spacing: -.04em; line-height: 1.1; margin: 0 0 12px; }
.daily-plan-description { max-width: 350px; min-height: 44px; font-size: 14px; line-height: 1.6; color: #c4bec0; }
.daily-plan-state { color: #aaa6a8; font-size: 12px; margin: 18px 0; }
.daily-plan-open { position: relative; z-index: 1; min-height: 47px; display: flex; justify-content: space-between; width: 100%; font-size: 13px; padding: 14px 18px; }
.daily-plan-open span { font-size: 19px; }
.dashboard-page .dashboard-progress-card { margin-bottom: 24px; }
.dashboard-page .dashboard-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.dashboard-page .dashboard-card-head h2, .dashboard-feedback-card h2 { font-size: 23px; letter-spacing: -.03em; }
.dashboard-pill { border: 1px solid #343438; color: #b8b3b5; border-radius: 30px; padding: 7px 11px; white-space: nowrap; font-size: 11px; }
.dashboard-page .dashboard-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid #303034; margin-top: 20px; padding-top: 18px; }
.dashboard-page .dashboard-mini-metric { border: 0; background: transparent; border-radius: 0; padding: 0 20px; border-right: 1px solid #303034; }
.dashboard-page .dashboard-mini-metric:first-child { padding-left: 0; }
.dashboard-page .dashboard-mini-metric:last-child { border-right: 0; }
.dashboard-page .dashboard-mini-metric strong { font-size: clamp(18px, 2.3vw, 27px); line-height: 1.25; overflow-wrap: anywhere; }
.dashboard-page .dashboard-mini-metric small { font-size: 11px; line-height: 1.5; margin-top: 7px; }
.dashboard-week-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; margin-bottom: 36px; }
.dashboard-week-aside { display: grid; gap: 24px; min-width: 0; }
.dashboard-feedback-card { background: linear-gradient(125deg, #241d19, #151518); }
.dashboard-feedback-title { color: #f5c7a3; font-size: 18px; margin: 24px 0 12px; }
.dashboard-next-steps { list-style: none; padding: 0; margin: 18px 0; counter-reset: next-step; }
.dashboard-next-steps li { position: relative; padding: 8px 0 8px 32px; color: #d5d0d1; font-size: 13px; line-height: 1.6; counter-increment: next-step; }
.dashboard-next-steps li::before { content: counter(next-step, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-size: 10px; font-weight: 800; top: 11px; }
.dashboard-page .dashboard-muted { font-size: 12px; line-height: 1.65; }
.check-in-fieldset { min-width: 0; padding: 0; margin: 16px 0; border: 0; }
.check-in-fieldset legend { width: 100%; border-top: 1px solid #303034; padding: 18px 0 8px; font-size: 15px; font-weight: 700; }
.check-in-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.check-in-field-grid .dashboard-form-field { min-width: 0; }
.dashboard-page .dashboard-checkin-form { display: block; }
.dashboard-page .dashboard-form-field label { font-size: 12px; }
.dashboard-page .dashboard-form-field textarea { width: 100%; }
.dashboard-page .dashboard-form-field:has(textarea) { grid-column: 1 / -1; }
.check-in-period { border-left: 2px solid var(--accent); padding: 12px 14px; margin-bottom: 16px; background: #241c17; color: #e1be9f; font-size: 12px; line-height: 1.7; }
.dashboard-page .dashboard-timeline { max-height: 550px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #494145 transparent; }
.dashboard-plan-library { padding: 0; margin: 0 0 24px; }
.daily-plan-details, .dashboard-secondary { margin-bottom: 14px; padding: 0; }
.daily-plan-details > summary, .dashboard-secondary > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 23px 28px; }
.daily-plan-details > summary::-webkit-details-marker, .dashboard-secondary > summary::-webkit-details-marker { display: none; }
.daily-plan-details > summary strong, .dashboard-secondary > summary strong { font-size: 20px; letter-spacing: -.02em; }
.daily-plan-details > summary .dashboard-kicker, .dashboard-secondary > summary .dashboard-kicker { display: block; margin-bottom: 6px; }
.details-toggle { color: var(--accent); font-size: 24px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #39312c; border-radius: 50%; transition: transform .2s; }
.daily-plan-details[open] .details-toggle, .dashboard-secondary[open] .details-toggle { transform: rotate(45deg); }
.daily-plan-content, .dashboard-detail-body { border-top: 1px solid #303034; padding: 24px 28px; }
.daily-plan-provenance { color: #bcb5ad; font-size: 12px; margin-bottom: 14px; }
.daily-plan-limitations { background: #1d1c1d; border-left: 2px solid #8b7968; padding: 14px 16px; color: #c2bbba; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.daily-plan-limitations p { margin-top: 8px; font-size: 12px; }
.daily-plan-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.daily-plan-choice { border: 1px solid #393537; background: #222023; border-radius: 8px; min-height: 44px; padding: 10px 17px; color: #c8c3c5; font: inherit; font-size: 13px; cursor: pointer; }
.daily-plan-choice[aria-pressed='true'] { border-color: var(--accent); background: #3c251b; color: #ffca9b; }
.plan-selection-heading { font-size: 21px; margin-bottom: 16px; }
.plan-guidance { font-size: 13px; line-height: 1.7; color: #bab3b6; margin: 12px 0; }
.meal-list, .exercise-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.meal-card, .exercise-card { padding: 22px; border: 1px solid #343033; border-radius: 13px; background: #1b191c; }
.meal-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 16px; }
.meal-heading h4 { font-size: 17px; margin: 0; }
.plan-order { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.food-list { list-style: none; padding: 0; }
.food-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #343033; font-size: 14px; }
.food-row strong { font-weight: 500; }
.food-row small { display: block; color: #a49da0; font-size: 11px; margin-top: 5px; }
.food-amount { text-align: right; flex-shrink: 0; font-weight: 700; }
.exercise-parameters { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 14px; }
.exercise-parameters dt { color: #a49da0; font-size: 11px; margin-bottom: 7px; }
.exercise-parameters dd { margin: 0; font-size: 17px; }
.daily-plan-empty { padding: 10px 0 16px; }
.daily-plan-empty h3 { font-size: 19px; margin-bottom: 12px; }
.daily-plan-empty p { color: #b7afb2; max-width: 600px; font-size: 14px; line-height: 1.7; }
.dashboard-secondary > summary strong { font-size: 17px; }
.dashboard-page .dashboard-secondary .dashboard-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-page .dashboard-beta-note { padding: 20px 0; border: 0; background: transparent; font-size: 12px; color: #928c90; }
.dashboard-page .dashboard-beta-note p { font-size: 12px; line-height: 1.7; }
.dashboard-page :focus-visible, .programme-paths :focus-visible { outline: 2px solid #ffb020; outline-offset: 5px; }
.daily-plan-details { scroll-margin-top: 115px; }
.programme-paths { background: radial-gradient(ellipse at 50% 0, #22170f 0, transparent 60%); }
.programme-paths-heading { max-width: 760px; margin: 0 auto 44px; }
.programme-paths-heading h2 { letter-spacing: -.035em; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; }
.programme-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.programme-path { display: flex; flex-direction: column; min-width: 0; border: 1px solid #343035; border-radius: 18px; padding: 26px; background: linear-gradient(140deg, #232025, #141316); }
.programme-path-ignite { border-color: #68412c; background: linear-gradient(140deg, #34251b, #181417); }
.programme-path-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #b3aaac; }
.programme-path-number { color: var(--accent); }
.programme-path-logo { height: 150px; width: 100%; object-fit: contain; margin: 20px auto; }
.programme-path h3 { font-size: 32px; margin: 0 0 5px; letter-spacing: -.03em; }
.programme-path-tagline { color: #f1b892; font-size: 14px; margin-bottom: 20px; }
.programme-path-description { color: #bfb7bb; line-height: 1.65; font-size: 14px; min-height: 70px; }
.programme-path-themes { list-style: none; padding: 20px 0; margin: 20px 0; border-top: 1px solid #3b3235; display: grid; gap: 12px; }
.programme-path-themes li { font-size: 13px; color: #ded8d9; padding-left: 17px; position: relative; }
.programme-path-themes li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.programme-path-link { width: 100%; margin-top: auto; font-size: 13px; }
.programme-paths-note { max-width: 810px; margin: 28px auto 0; text-align: center; color: #9a9196; font-size: 12px; line-height: 1.7; }
.pillars-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pillars-grid-five .pillar-card { padding: 25px 19px; }
.pillars-grid-five .pillar-card h3 { font-size: 18px; }
.pillars-grid-five .pillar-card p { font-size: 13px; }
@media (max-width: 1000px) {
  .dashboard-page .dashboard-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .dashboard-page .dashboard-mini-metric:nth-child(3) { padding-left: 0; }
  .dashboard-page .dashboard-mini-metric:nth-child(2) { border-right: 0; }
  .programme-path { padding: 22px; }
  .programme-path-focus { letter-spacing: 0; font-size: 9px; }
  .pillars-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .dashboard-page .dashboard-hero-inner { display: block; }
  .dashboard-page .dashboard-hero-actions { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 20px; gap: 12px; }
  .dashboard-page .dashboard-session-badge { font-size: 10px; }
  .dashboard-week-grid { grid-template-columns: 1fr; }
  .dashboard-daily-grid { gap: 13px; }
  .daily-plan-card { padding: 22px; }
  .daily-plan-card-top { margin-bottom: 14px; }
  .daily-plan-description { font-size: 12px; }
  .daily-plan-open { font-size: 12px; padding: 12px; }
  .programme-path-grid { grid-template-columns: 1fr; gap: 18px; }
  .programme-path { display: grid; grid-template-columns: 100px 1fr; gap: 0 24px; }
  .programme-path-top { grid-column: 1 / -1; margin-bottom: 16px; }
  .programme-path-logo { grid-column: 1; grid-row: 2 / 5; height: 120px; margin: 0; }
  .programme-path h3, .programme-path-tagline, .programme-path-description { grid-column: 2; }
  .programme-path-description { min-height: 0; font-size: 13px; }
  .programme-path-themes, .programme-path-link { grid-column: 1 / -1; }
  .programme-path-themes { margin: 18px 0; }
  .programme-path-focus { font-size: 10px; }
  .pillars-grid-five { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .dashboard-page .dashboard-hero { padding-top: 100px; }
  .dashboard-page .dashboard-hero h1 { font-size: 36px; }
  .dashboard-page .dashboard-lead { font-size: 13px; }
  .dashboard-page .dashboard-section-head h2 { font-size: 22px; }
  .dashboard-page .dashboard-updated { font-size: 10px; max-width: 120px; }
  .dashboard-daily-grid { grid-template-columns: 1fr; }
  .daily-plan-card { padding: 20px; }
  .daily-plan-card-top { margin-bottom: 12px; }
  .daily-plan-symbol { width: 28px; height: 28px; font-size: 17px; }
  .daily-plan-card h2 { font-size: 28px; margin-bottom: 8px; }
  .daily-plan-description { min-height: 0; max-width: none; }
  .daily-plan-state { margin: 12px 0; font-size: 11px; }
  .daily-plan-open { min-height: 44px; }
  .dashboard-page .dashboard-card { padding: 22px; }
  .dashboard-page .daily-plan-details, .dashboard-page .dashboard-secondary { padding: 0; }
  .daily-plan-details > summary, .dashboard-secondary > summary { padding: 20px; }
  .daily-plan-content, .dashboard-detail-body { padding: 20px; }
  .dashboard-page .dashboard-pill { display: none; }
  .dashboard-page .dashboard-card-head h2 { font-size: 21px; }
  .dashboard-page .dashboard-mini-metric { padding: 0 12px; }
  .dashboard-page .dashboard-mini-metric strong { font-size: 20px; }
  .dashboard-page .dashboard-mini-metric small { font-size: 10px; }
  .dashboard-page .dashboard-secondary .dashboard-stat-grid { grid-template-columns: 1fr; }
  .check-in-field-grid { grid-template-columns: 1fr; }
  .meal-card, .exercise-card { padding: 16px; }
  .meal-heading h4 { font-size: 16px; }
  .food-row { font-size: 13px; }
  .programme-path { padding: 20px; grid-template-columns: 76px 1fr; gap: 0 16px; }
  .programme-path-logo { height: 110px; }
  .programme-path h3 { font-size: 27px; }
  .programme-paths-heading { text-align: left; margin-bottom: 26px; }
  .programme-paths-note { text-align: left; }
  .pillars-grid-five { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .details-toggle { transition: none; } }
.check-in-group { margin: 12px 0; border: 1px solid #353035; border-radius: 10px; overflow: hidden; }
.check-in-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; cursor: pointer; font-size: 13px; }
.check-in-group-count { color: #b4a8af; font-size: 10px; }
.check-in-group .check-in-fieldset { margin: 0; padding: 0 15px 16px; }
.check-in-group .check-in-fieldset legend.visually-hidden { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.check-in-review { border: 1px solid #775039; border-radius: 12px; background: #271e19; padding: 20px; margin: 20px 0; }
.check-in-review h3 { font-size: 18px; margin-bottom: 10px; }
.check-in-review-values { display: grid; gap: 12px; margin: 18px 0 0; }
.check-in-review-values > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #42332b; padding-bottom: 10px; font-size: 12px; }
.check-in-review-values dt { color: #cbb6a9; }
.check-in-review-values dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
/* Keep the member header compact: daily plans, not a marketing hero, lead. */
.dashboard-page .dashboard-hero { padding-top: 114px; padding-bottom: 26px; }
.dashboard-page .dashboard-hero h1 { font-size: clamp(32px, 3.8vw, 50px); }
.dashboard-page .dashboard-hero .eyebrow { font-size: 10px; margin-bottom: 12px; }
@media (max-width: 520px) {
  .dashboard-page .dashboard-hero { padding-top: 92px; padding-bottom: 18px; }
  .dashboard-page .dashboard-hero h1 { font-size: 28px; line-height: 1.05; }
  .dashboard-page .dashboard-hero .eyebrow { font-size: 9px; letter-spacing: .09em; }
  .dashboard-page .dashboard-lead { margin-top: 12px; font-size: 12px; line-height: 1.5; }
  .dashboard-page .dashboard-hero-actions { margin-top: 12px; flex-wrap: nowrap; }
  .dashboard-page .dashboard-session-actions { flex-wrap: nowrap; gap: 15px; }
  .dashboard-page .dashboard-hero-actions .dashboard-session-badge { margin: 0; padding: 0; font-size: 8px; white-space: nowrap; }
  .dashboard-page .dashboard-text-link { font-size: 11px; }
  .dashboard-page .dashboard-showcase-note { padding: 13px; margin-bottom: 18px; }
  .dashboard-page .dashboard-showcase-note strong { font-size: 9px; }
  .dashboard-page .dashboard-showcase-note p { font-size: 10px; line-height: 1.6; }
  .dashboard-page .dashboard-day-heading { align-items: end; flex-direction: row; gap: 10px; }
  .dashboard-page .dashboard-day-heading .dashboard-updated { text-align: right; font-size: 9px; max-width: 95px; }
}
@media (max-width: 780px) {
  .dashboard-page .dashboard-session-badge { flex: 0 1 auto; text-align: left; }
  .dashboard-page .dashboard-session-actions { flex: 0 0 auto; }
}
.check-in-record-detail { margin: 14px 0; font-size: 12px; }
.check-in-record-detail > summary { color: #e5b189; cursor: pointer; padding: 6px 0; }
.check-in-record-detail .check-in-review-values { max-height: 360px; overflow-y: auto; padding-right: 5px; }
.daily-plan-guidance-detail { margin-top: 8px; }
.daily-plan-guidance-detail > summary { cursor: pointer; color: #e8c09f; font-size: 12px; padding: 4px 0; }
.daily-plan-guidance-detail ul { margin: 12px 0 0; padding-left: 18px; }
.daily-plan-guidance-detail li { margin-top: 5px; }
