/* guide.css — shared by how-to-use.html and tutor-guide.html.
 *
 * Lifted verbatim out of how-to-use.html, which carried 522 lines of inline
 * style. Splitting the tutor half into its own page would have meant a second
 * copy of all of it, and two copies drift -- which is the exact failure this
 * whole rebuild exists to undo.
 */
    /* ============================================================
       BASE — mirrors styles.css v2.0
       ============================================================ */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-padding-top: 90px;
      scroll-padding-bottom: 40px;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      line-height: 1.7;
      color: #1e293b;
      background-color: #f8f9fa;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    /* Accessibility helpers */
    .sr-only {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    .skip-link {
      position: absolute;
      top: -100%;
      left: 0;
      background: #1e293b;
      color: white;
      padding: 10px 20px;
      font-weight: 700;
      font-size: 0.9em;
      z-index: 9999;
      border-radius: 0 0 8px 0;
      text-decoration: none;
    }
    .skip-link:focus { top: 0; }

    *:focus { outline: none; }
    *:focus-visible {
      outline: 3px solid #2563eb;
      outline-offset: 3px;
      border-radius: 4px;
    }

    a { color: #2563eb; text-decoration: none; }
    a:hover { text-decoration: underline; }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ============================================================
       HEADER — gradient banner, same as main app
       ============================================================ */
    header.site-header {
      background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
      color: white;
      padding: 48px 24px 56px;
      text-align: center;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    header.site-header .brand-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 1.1em;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    header.site-header .brand-row .back-link {
      color: rgba(255,255,255,0.85);
      font-weight: 500;
      font-size: 0.9em;
    }
    header.site-header .brand-row .back-link:hover {
      color: white;
      text-decoration: underline;
    }

    header.site-header h1 {
      font-size: 2.4em;
      font-weight: 800;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }

    header.site-header .tagline {
      font-size: 1.05em;
      opacity: 0.85;
      font-style: italic;
      font-weight: 400;
      max-width: 640px;
      margin: 0 auto;
    }

    /* ============================================================
       CARDS — matches .card convention in styles.css
       ============================================================ */
    .card {
      background: #ffffff;
      border-radius: 14px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
      padding: 28px;
      border: 1px solid #e8ecf0;
    }

    /* Card with accent border-left, PlumbMate's signature unit-card style */
    .card--accent {
      border-left: 4px solid #2563eb;
    }

    /* ============================================================
       INTRO / PEDAGOGY SECTION
       ============================================================ */
    .intro-wrap { margin: 32px 0; }

    .intro-wrap h2 {
      color: #1e293b;
      font-size: 1.6em;
      font-weight: 700;
      margin-bottom: 12px;
    }

    .intro-wrap p {
      color: #475569;
      margin-bottom: 12px;
    }
    .intro-wrap p:last-child { margin-bottom: 0; }

    .intro-wrap strong { color: #1e293b; }

    /* ============================================================
       VIDEO SLOTS — dashed placeholder, swap for iframes later
       ============================================================ */

    /* A clip inside a feature card. There is no "hidden until recorded" rule
       any more: a card either has a video or it does not, and eight dashed
       boxes waiting behind display:none was a worse answer than an empty card.
       preload="none" so a help page does not fetch megabytes nobody asked for. */
    .clip { margin: 20px 0 0; }
    .clip video {
      width: 100%; display: block; border-radius: 12px;
      background: #0b1b2e; box-shadow: 0 8px 22px rgba(16,32,56,.14);
    }
    .clip figcaption {
      margin-top: 8px; font-size: 0.86em; color: #64748b; text-align: center;
    }

    /* ============================================================
       PATH CARDS — pick-your-path section, styled like unit cards
       ============================================================ */
    .path-section {
      margin: 48px 0 32px;
    }
    .path-section > h2 {
      font-size: 1.4em;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 6px;
      text-align: center;
    }
    .path-section > .path-sub {
      color: #64748b;
      text-align: center;
      margin-bottom: 24px;
    }

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

    .path-card {
      background: #ffffff;
      padding: 24px;
      border-radius: 14px;
      text-decoration: none;
      color: #1e293b;
      transition: all 0.25s ease;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
      border: 1px solid #e8ecf0;
      border-left: 4px solid #2563eb;
      display: block;
    }

    .path-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      border-color: #2563eb;
      text-decoration: none;
      color: #1e293b;
    }

    .path-card .emoji {
      font-size: 2em;
      display: block;
      margin-bottom: 8px;
      line-height: 1;
    }

    .path-card h3 {
      color: #1e293b;
      font-size: 1.1em;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .path-card p {
      color: #64748b;
      font-size: 0.88em;
      line-height: 1.5;
      margin: 0;
    }

    /* ============================================================
       AUDIENCE SECTIONS
       ============================================================ */
    .audience-section {
      margin: 40px 0;
    }

    .audience-section .card h2 {
      font-size: 1.6em;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }

    .audience-section .lede {
      font-size: 1.05em;
      color: #64748b;
      margin-bottom: 24px;
    }

    .audience-section h3 {
      font-size: 0.85em;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 600;
      color: #64748b;
      margin: 24px 0 12px;
    }

    .audience-section ul {
      padding-left: 20px;
      margin-bottom: 8px;
    }
    .audience-section li {
      margin-bottom: 8px;
      color: #475569;
    }
    .audience-section li strong { color: #1e293b; }

    /* Ordered lists want the same treatment as unordered ones. The rule above
       named only ul, which was fine until a page had a numbered sequence in
       it — the IQA guide's five steps sat flush left with no spacing. */
    .audience-section ol {
      padding-left: 20px;
      margin-bottom: 8px;
    }
    .audience-section ol li {
      margin-bottom: 8px;
      color: #475569;
    }

    /* ============================================================
       TWO-COLUMN REFERENCE TABLE

       Added for the IQA guide, where several things are genuinely a term and
       its meaning — the six CAMERA letters, what each of the three handbooks
       asks for — and a bulleted list of "X — Y" reads worse than a table.
       Deliberately light: a header column rather than a header row, no zebra
       striping, and the same borders as the cards it sits inside.
       ============================================================ */
    .guide-table {
      width: 100%;
      border-collapse: collapse;
      margin: 8px 0 16px;
    }
    .guide-table th,
    .guide-table td {
      text-align: left;
      vertical-align: top;
      padding: 10px 14px 10px 0;
      border-bottom: 1px solid #eef2f6;
      color: #475569;
    }
    .guide-table th {
      width: 110px;
      color: #1e293b;
      font-weight: 700;
      white-space: nowrap;
    }
    .guide-table tr:last-child th,
    .guide-table tr:last-child td { border-bottom: none; }

    @media (max-width: 600px) {
      .guide-table th { width: 90px; font-size: 0.95em; }
      .guide-table td { font-size: 0.95em; }
    }

    /* ============================================================
       COMPARISON TABLE — two courses, side by side

       WHY IT IS NOT A guide-table. That one is a term and its meaning, so a
       row has two cells and the right-hand one can be a sentence. Comparing
       two qualifications needs three columns, and the first attempt at this
       cheated by putting "Level 1 thing &middot; Level 2 thing" into a single
       guide-table cell. At desktop width it read; on a phone the cells wrapped,
       the separator landed mid-line, and nothing said which half belonged to
       which course.

       AND AT PHONE WIDTH IT STOPS BEING A TABLE. Three columns of prose do not
       fit 375px however hard you squeeze them, so below 720px each row becomes
       a small block: the feature as a heading, then the two courses one under
       the other, each labelled from its data-l attribute. That is the one
       layout where a reader can still see what is being compared with what.
       ============================================================ */
    .compare-table {
      width: 100%;
      border-collapse: collapse;
      margin: 10px 0 8px;
    }
    .compare-table thead th {
      text-align: left;
      vertical-align: bottom;
      padding: 0 14px 8px 0;
      border-bottom: 2px solid #cbd5e1;
      color: #1e293b;
      font-size: 0.95em;
      font-weight: 800;
      line-height: 1.25;
    }
    .compare-table thead th span {
      display: block;
      font-weight: 500;
      font-size: 0.82em;
      color: #64748b;
      letter-spacing: 0.01em;
    }
    .compare-table tbody th {
      text-align: left;
      vertical-align: top;
      width: 132px;
      padding: 11px 14px 11px 0;
      border-bottom: 1px solid #eef2f6;
      color: #1e293b;
      font-weight: 700;
      font-size: 0.93em;
    }
    .compare-table tbody td {
      vertical-align: top;
      padding: 11px 14px 11px 0;
      border-bottom: 1px solid #eef2f6;
      color: #475569;
      font-size: 0.93em;
      line-height: 1.5;
    }
    .compare-table tbody td:last-child { padding-right: 0; }
    .compare-table tbody tr:last-child th,
    .compare-table tbody tr:last-child td { border-bottom: none; }
    .compare-table tbody td strong { color: #1e293b; }

    .compare-note {
      font-size: 0.85em;
      color: #64748b;
      margin: 2px 0 0;
    }

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

    @media (max-width: 720px) {
      .compare-table, .compare-table tbody, .compare-table tr,
      .compare-table tbody th, .compare-table tbody td { display: block; width: auto; }
      .compare-table thead { display: none; }
      .compare-table tbody tr {
        padding: 12px 0 13px;
        border-bottom: 1px solid #e8ecf0;
      }
      .compare-table tbody tr:last-child { border-bottom: none; }
      .compare-table tbody th {
        padding: 0 0 7px;
        border: 0;
        font-size: 0.98em;
      }
      .compare-table tbody td {
        padding: 0 0 0 78px;
        border: 0;
        position: relative;
        min-height: 1.5em;
      }
      .compare-table tbody td + td { margin-top: 6px; }
      .compare-table tbody td::before {
        content: attr(data-l);
        position: absolute;
        left: 0;
        top: 0;
        width: 66px;
        font-size: 0.8em;
        font-weight: 700;
        color: #64748b;
      }
    }

    /* Day-by-day timeline for trial users */
    .timeline {
      list-style: none;
      padding: 0 0 0 4px;
      margin: 24px 0 12px;
      border-left: 3px solid #2563eb;
    }
    .timeline li {
      position: relative;
      padding: 0 0 22px 24px;
      color: #475569;
    }
    .timeline li:last-child { padding-bottom: 0; }
    .timeline li::before {
      content: '';
      position: absolute;
      left: -9px;
      top: 6px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #2563eb;
      border: 3px solid #ffffff;
      box-shadow: 0 0 0 1px #2563eb;
    }
    .timeline li strong {
      display: block;
      color: #1e293b;
      font-size: 1em;
      font-weight: 700;
      margin-bottom: 2px;
    }

    /* ============================================================
       FEATURE LIBRARY — accordion of features
       ============================================================ */
    .feature-library {
      margin: 48px 0;
    }

    .feature-library > .card > h2 {
      font-size: 1.6em;
      font-weight: 800;
      color: #1e293b;
      margin-bottom: 8px;
    }

    .feature-library > .card > .lede {
      color: #64748b;
      margin-bottom: 24px;
    }

    details.feature {
      background: #ffffff;
      border: 1px solid #e8ecf0;
      border-radius: 12px;
      margin-bottom: 12px;
      overflow: hidden;
      transition: box-shadow 0.2s, border-color 0.2s;
    }
    details.feature:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
    details.feature[open] {
      border-color: #2563eb;
      border-left: 4px solid #2563eb;
      box-shadow: 0 2px 12px rgba(37,99,235,0.08);
    }

    /* Blog / Revision Guides card — teal, matches revision page convention */
    details.feature.feature--blog {
      border-left: 4px solid #14b8a6;
      background: linear-gradient(135deg, #f0fdfa 0%, #eff6f5 100%);
    }
    details.feature.feature--blog[open] {
      border-color: #14b8a6;
      border-left: 4px solid #14b8a6;
      box-shadow: 0 2px 12px rgba(20,184,166,0.12);
    }
    details.feature.feature--blog summary { color: #0f766e; }
    details.feature.feature--blog summary::after { color: #14b8a6; }

    details.feature summary {
      padding: 16px 20px;
      cursor: pointer;
      font-weight: 600;
      font-size: 1.02em;
      color: #1e293b;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    details.feature summary::-webkit-details-marker { display: none; }
    details.feature summary::after {
      content: '+';
      font-size: 1.5em;
      font-weight: 400;
      color: #2563eb;
      transition: transform 0.2s ease;
      line-height: 1;
    }
    details.feature[open] summary::after { transform: rotate(45deg); }

    /* "New" / "Now per-lesson" pill inside summary */
    .pill {
      display: inline-flex;
      align-items: center;
      font-size: 0.62em;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 999px;
      margin-left: 8px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      vertical-align: middle;
      line-height: 1;
    }
    .pill-new {
      background: rgba(37, 99, 235, 0.12);
      color: #1d4ed8;
      border: 1px solid rgba(37, 99, 235, 0.22);
    }

    details.feature .feature-body {
      padding: 0 20px 20px;
    }

    details.feature h3 {
      font-size: 0.78em;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #64748b;
      font-weight: 600;
      margin: 16px 0 4px;
    }
    details.feature p {
      color: #475569;
      margin: 0 0 8px 0;
    }

    /* ============================================================
       FOOTER — dark, matches styles.css
       ============================================================ */
    footer.site-footer {
      background: #1e293b;
      color: #94a3b8;
      padding: 40px 24px 24px;
      margin-top: 60px;
      font-size: 0.95em;
    }

    footer.site-footer h3 {
      color: #ffffff;
      font-size: 0.85em;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 12px;
    }

    footer.site-footer a {
      color: #60a5fa;
    }
    footer.site-footer a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 32px;
      margin-bottom: 28px;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
    }

    .footer-grid ul {
      list-style: none;
      padding: 0;
    }
    .footer-grid li {
      margin-bottom: 6px;
      color: #cbd5e1;
    }

    .footer-faq details {
      margin-bottom: 8px;
    }
    .footer-faq summary {
      cursor: pointer;
      color: #e2e8f0;
      font-weight: 500;
      padding: 4px 0;
    }
    .footer-faq summary:hover { color: #ffffff; }
    .footer-faq p {
      margin: 6px 0 12px;
      color: #94a3b8;
      font-size: 0.92em;
      line-height: 1.6;
    }

    .footer-bottom {
      border-top: 1px solid #334155;
      padding-top: 20px;
      text-align: center;
      color: #64748b;
      font-size: 0.88em;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* ============================================================
       RESPONSIVE — matches breakpoints in main styles.css
       ============================================================ */
    @media (max-width: 900px) {
      .path-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      header.site-header h1 { font-size: 1.8em; }
      header.site-header { padding: 36px 20px 40px; }
      .container { padding: 0 16px; }
      .card { padding: 20px; }
      details.feature summary { padding: 14px 16px; }
      details.feature .feature-body { padding: 0 16px 16px; }
    }

    /* Respect reduced-motion preference */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
