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

    /* Design tokens. Warm paper + serif headings (Kept style), Appealify navy accent.
       Use these instead of one-off values: sizes, corners and widths come from here. */
    :root {
      --bg: #f7f3ec;             /* page */
      --paper: #fffdf9;          /* cards, inputs, panels */
      --paper-alt: #efe8dc;      /* bands, subtle fills */
      --ink: #1d2422;
      --ink-2: #3a423f;
      --muted: #5c625c;
      --accent: #0e5a57;
      --accent-deep: #0a4643;
      --accent-tint: #e4efed;
      --on-accent: #ffffff;        /* text on a --accent fill */
      --pcn-yellow: #ffd60a;
      --line: #e6dece;
      --success: #2c8a57;
      --error: #b0452f;
      --warning: #a8661a;
      --accent-tertiary: #6b4fa0;

      --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
      --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
      --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

      /* type scale */
      --text-xs: 0.75rem;    /* 12 */
      --text-sm: 0.8125rem;  /* 13 */
      --text-base: 0.9375rem;/* 15 */
      --text-md: 1.0625rem;  /* 17 */
      --text-lg: 1.25rem;    /* 20 */
      --text-xl: 1.625rem;   /* 26 */
      --text-2xl: clamp(2rem, 4.5vw, 2.75rem);   /* 32-44 */
      --text-3xl: clamp(2.5rem, 6vw, 4rem);      /* 40-64 */

      /* spacing: 4px steps */
      --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
      --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

      --radius-sm: 8px;
      --radius: 18px;
      --radius-pill: 999px;

      --shadow-sm: 0 1px 2px rgba(40, 32, 18, 0.05), 0 1px 1px rgba(40, 32, 18, 0.03);
      --shadow: 0 1px 2px rgba(40, 32, 18, 0.04), 0 8px 24px -8px rgba(40, 32, 18, 0.1);
      --shadow-lg: 0 24px 60px -18px rgba(28, 24, 14, 0.28);

      /* one page width, one reading width, one side gutter */
      --container: 1200px;
      --reading: 720px;
      --gutter: 16px;
      --header-h: 64px;
    }

    @media (min-width: 768px) {
      :root { --gutter: 32px; --header-h: 68px; }
    }

    :root[data-theme="dark"] {
      --bg: #171512;
      --paper: #211f1b;
      --paper-alt: #1c1a17;
      --ink: #f2ede4;
      --ink-2: #d6d0c5;
      --muted: #a39d92;
      --accent: #6fc3bd;
      --accent-deep: #9ad8d3;
      --accent-tint: rgba(111, 195, 189, 0.14);
      --on-accent: #171512;
      --pcn-yellow: #ffd60a;
      --line: #35312b;
      --success: #5cc48a;
      --error: #e2826d;
      --warning: #e0a458;
      --accent-tertiary: #b49ae0;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
      --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
      color-scheme: dark;
    }

    body {
      font-family: var(--sans);
      font-size: var(--text-base);
      background:
        radial-gradient(1200px 500px at 85% -10%, rgba(14, 90, 87, 0.06), transparent 60%),
        radial-gradient(900px 400px at -10% 10%, rgba(196, 160, 110, 0.08), transparent 60%),
        var(--bg);
      color: var(--ink);
      line-height: 1.55;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      transition: background-color .2s ease, color .2s ease;
    }

    :root[data-theme="dark"] body {
      background: var(--bg);
    }

    h1, h2 {
      font-family: var(--serif);
      font-weight: 500;
      letter-spacing: -0.02em;
      font-optical-sizing: auto;
    }

    /* Shared page width: content edges line up on every section and page */
    nav,
    .hero-grid,
    .stats-inner,
    .steps-section,
    .container,
    .footer-content,
    .footer-bottom {
      width: 100%;
      max-width: calc(var(--container) + 2 * var(--gutter));
      margin-left: auto;
      margin-right: auto;
      padding-left: var(--gutter);
      padding-right: var(--gutter);
    }

    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: color-mix(in srgb, var(--bg) 85%, transparent);
      backdrop-filter: saturate(1.4) blur(14px);
      -webkit-backdrop-filter: saturate(1.4) blur(14px);
      border-bottom: 1px solid var(--line);
    }

    nav {
      height: var(--header-h);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-6);
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--ink);
      text-decoration: none;
      cursor: pointer;
      min-width: 0;
    }

    .logo-mark {
      width: 30px;
      height: 30px;
      flex: none;
      border-radius: var(--radius-sm);
      background: var(--accent);
      color: #fff;
      font-family: var(--serif);
      font-weight: 600;
      font-size: 19px;
      line-height: 30px;
      text-align: center;
      position: relative;
    }

    .logo-mark::after {
      content: '';
      position: absolute;
      top: -3px;
      right: -3px;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--pcn-yellow);
      border: 2px solid var(--bg);
    }

    .logo-name {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 22px;
      letter-spacing: -0.01em;
      line-height: 1;
    }

    .logo-tagline {
      font-family: var(--serif);
      font-style: italic;
      font-size: 14px;
      color: var(--muted);
      padding-left: 14px;
      border-left: 1px solid var(--line);
      white-space: nowrap;
      display: none;
    }

    .nav-links {
      display: none;
      align-items: center;
      gap: var(--space-2);
      list-style: none;
    }

    .nav-pills {
      display: flex;
      align-items: center;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
      list-style: none;
    }

    .nav-pills a {
      display: block;
      padding: 7px 14px;
      border-radius: var(--radius-pill);
      color: var(--ink-2);
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      white-space: nowrap;
      transition: background-color .15s, color .15s;
    }

    .nav-pills a:hover {
      background: var(--paper-alt);
      color: var(--ink);
    }

    .nav-pills a[aria-current="page"] {
      background: var(--ink);
      color: var(--bg);
    }

    .nav-account {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      list-style: none;
    }

    .nav-account > li {
      display: flex;
    }

    .nav-account a {
      display: inline-flex;
      align-items: center;
      height: 38px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: var(--paper);
      color: var(--ink);
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      white-space: nowrap;
      transition: border-color .15s, background-color .15s;
    }

    .nav-account a:hover {
      border-color: var(--muted);
    }

    .logout-btn {
      height: 38px;
      padding: 0 14px;
      white-space: nowrap;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 14px;
      cursor: pointer;
      transition: color .15s, border-color .15s;
    }

    .logout-btn:hover {
      color: var(--error);
      border-color: var(--error);
    }

    .credit-warning-badge {
      display: none;
      position: absolute;
      right: var(--gutter);
      top: calc(var(--header-h) + 8px);
      background: var(--warning);
      color: #fff;
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      font-size: var(--text-sm);
      font-weight: 600;
      animation: pulse-warning 2s infinite;
    }

    .credit-warning-badge.show {
      display: block;
    }

    @keyframes pulse-warning {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }

    .menu-toggle {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 40px;
      height: 40px;
      padding: 0 9px;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: var(--paper);
      cursor: pointer;
    }

    .menu-toggle span {
      display: block;
      height: 2px;
      border-radius: 2px;
      background: var(--ink);
      transition: transform .2s, opacity .2s;
    }

    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      position: fixed;
      top: var(--header-h);
      left: 0;
      right: 0;
      z-index: 999;
      padding: var(--space-2) var(--gutter) var(--space-4);
      background: var(--bg);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-lg);
    }

    .mobile-menu.active {
      display: block;
    }

    .mobile-menu a {
      display: block;
      padding: 12px 0;
      border-bottom: 1px solid var(--line);
      color: var(--ink);
      font-size: var(--text-md);
      text-decoration: none;
      cursor: pointer;
    }

    .mobile-menu a:last-child {
      border-bottom: none;
    }

    .mobile-menu a:hover {
      color: var(--accent);
    }

    .theme-toggle {
      width: 38px;
      height: 38px;
      flex: none;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: var(--paper);
      color: var(--ink);
      font-size: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color .15s;
    }

    .theme-toggle:hover {
      border-color: var(--muted);
    }

    .mobile-menu .theme-toggle {
      width: 100%;
      height: auto;
      padding: 12px 0;
      border: none;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      background: transparent;
      justify-content: flex-start;
      gap: var(--space-2);
      font-size: var(--text-md);
      color: var(--ink);
    }

    /* The tagline only fits beside all seven pills on wide screens */
    @media (min-width: 1200px) {
      .logo-tagline { display: inline; }
    }

    @media (min-width: 1024px) and (max-width: 1199px) {
      .nav-pills a { padding: 7px 11px; }
    }

    @media (min-width: 1024px) {
      .nav-links { display: flex; }
      .menu-toggle { display: none; }
    }

    .double-yellow {
      height: 9px;
      background:
        linear-gradient(var(--pcn-yellow), var(--pcn-yellow)) top / 100% 3px no-repeat,
        linear-gradient(var(--pcn-yellow), var(--pcn-yellow)) bottom / 100% 3px no-repeat;
      max-width: 72px;
      border: none;
      margin: 0 0 1.5rem;
    }

    .double-yellow.center {
      margin-left: auto;
      margin-right: auto;
    }

    .hero {
      padding: 3rem 0 2.5rem;
      position: relative;
      overflow: hidden;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2.5rem;
      align-items: center;
      text-align: left;
    }

    .analysis-card {
      display: none;
    }

    .eyebrow {
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .eyebrow::before {
      content: '';
      width: 22px;
      height: 2px;
      background: var(--accent);
    }

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

    .hero h1 {
      font-size: var(--text-3xl);
      font-weight: 500;
      font-variation-settings: "opsz" 144;
      margin-bottom: 1.1rem;
      color: var(--ink);
      line-height: 1.02;
      letter-spacing: -0.03em;
    }

    .hl {
      position: relative;
      white-space: nowrap;
    }

    .hl::after {
      content: '';
      position: absolute;
      left: -2px;
      right: -2px;
      bottom: 4px;
      height: 0.38em;
      background: var(--pcn-yellow);
      z-index: -1;
      transform: skewX(-6deg);
    }

    .hero .lead {
      font-size: clamp(0.95rem, 2.5vw, 1.1rem);
      color: var(--muted);
      margin-bottom: 1.75rem;
      max-width: 460px;
    }

    .hero .lead strong {
      color: var(--ink);
      font-weight: 600;
    }

    .hero-ctas {
      display: flex;
      gap: 0.9rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .hero-note {
      margin-top: 1.4rem;
      font-size: 0.85rem;
      color: var(--muted);
      display: flex;
      gap: 1.25rem;
      flex-wrap: wrap;
    }

    .hero-note span::before {
      content: '✓ ';
      color: var(--success);
      font-weight: 700;
    }

    .analysis-card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 24px 70px -20px rgba(10, 14, 30, 0.14);
      overflow: hidden;
      position: relative;
    }

    .ac-titlebar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.85rem 1.25rem;
      border-bottom: 1px solid var(--line);
      background: var(--paper-alt);
    }

    .ac-titlebar .label {
      font-family: var(--mono);
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent);
      animation: pulseDot 1.6s ease-in-out infinite;
    }

    @keyframes pulseDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: .35; transform: scale(.8); }
    }

    .ac-body {
      padding: 1.35rem 1.25rem 1.5rem;
    }

    .pcn-doc {
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      padding: 0.9rem 1rem;
      position: relative;
      overflow: hidden;
      background: var(--paper);
      margin-bottom: 1.1rem;
    }

    .pcn-doc .doc-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.55rem;
    }

    .pcn-doc .doc-title {
      font-weight: 600;
      font-size: 0.82rem;
      letter-spacing: 0.3px;
    }

    .pcn-doc .doc-badge {
      font-family: var(--mono);
      font-size: 0.58rem;
      font-weight: 600;
      background: var(--pcn-yellow);
      padding: 0.18rem 0.5rem;
      border-radius: 4px;
      letter-spacing: 0.5px;
    }

    .pcn-doc .doc-row {
      display: flex;
      justify-content: space-between;
      font-family: var(--mono);
      font-size: 0.66rem;
      color: var(--muted);
      padding: 0.28rem 0;
    }

    .pcn-doc .doc-row b {
      color: var(--ink);
      font-weight: 600;
    }

    .scanline {
      position: absolute;
      left: 0; right: 0; top: 0;
      height: 34px;
      background: linear-gradient(180deg, rgba(0, 82, 255, 0) 0%, rgba(0, 82, 255, .08) 50%, rgba(0, 82, 255, 0) 100%);
      border-top: 1.5px solid rgba(0, 82, 255, .5);
      animation: scan 3.2s cubic-bezier(.4, 0, .4, 1) infinite;
      pointer-events: none;
    }

    @keyframes scan {
      0% { transform: translateY(-36px); }
      55% { transform: translateY(130px); }
      100% { transform: translateY(-36px); }
    }

    .verdicts {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .verdict {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 500;
      padding: 0.5rem 0.7rem;
      border-radius: var(--radius-sm);
      border: 1px solid var(--line);
      opacity: 0;
      animation: verdictRise .5s ease forwards;
    }

    .verdict:nth-child(1) { animation-delay: .5s; }
    .verdict:nth-child(2) { animation-delay: 1.3s; }
    .verdict:nth-child(3) { animation-delay: 2.1s; }

    @keyframes verdictRise {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: none; }
    }

    .verdict .dot {
      width: 8px;
      height: 8px;
      border-radius: 3px;
      flex-shrink: 0;
    }

    .verdict.fail .dot { background: var(--error); }
    .verdict.fail { border-color: rgba(220, 38, 38, .25); background: rgba(220, 38, 38, .04); }
    .verdict.ok .dot { background: var(--success); }
    .verdict.ok { border-color: rgba(5, 150, 105, .3); background: rgba(5, 150, 105, .05); }
    .verdict b { font-weight: 700; }

    .ac-footer {
      margin-top: 1.15rem;
      padding-top: 1rem;
      border-top: 1px dashed var(--line);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.35rem 1rem;
    }

    .ac-footer .result { font-weight: 600; font-size: 0.9rem; }
    .ac-footer .result span { color: var(--success); }
    .ac-footer .result span.moderate { color: var(--warning); }
    .ac-footer .time {
      font-family: var(--mono);
      font-size: 0.66rem;
      color: var(--muted);
    }

    @media (prefers-reduced-motion: reduce) {
      .scanline, .pulse-dot { animation: none; }
      .verdict { opacity: 1; animation: none; }
    }

    .stats-band {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--paper-alt);
    }

    .stats-inner {
      padding: 1.6rem var(--gutter);
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }

    .stat .num {
      font-family: var(--serif);
      font-weight: 500;
      font-size: var(--text-xl);
      letter-spacing: -0.02em;
      color: var(--ink);
    }

    .stat .num em {
      font-style: normal;
      color: var(--accent);
    }

    .stat .lbl {
      font-size: var(--text-sm);
      color: var(--ink-2);
      margin-top: 0.1rem;
    }

    .steps-section {
      padding: 3.5rem var(--gutter);
    }

    .sec-eyebrow {
      font-family: var(--mono);
      font-size: 0.66rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.7rem;
      text-align: center;
    }

    .steps-section > h2 {
      text-align: center;
      font-size: var(--text-2xl);
      font-weight: 500;
      margin-bottom: 2.25rem;
    }

    .steps {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }

    .step {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: var(--space-6);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .step .k {
      font-family: var(--mono);
      font-size: 0.66rem;
      font-weight: 600;
      color: var(--muted);
      letter-spacing: 1px;
      margin-bottom: 1rem;
      display: block;
    }

    .step h3 {
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }

    .step p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.65;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 18px;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      line-height: 1.2;
      text-decoration: none;
      border-radius: var(--radius-pill);
      border: 1px solid transparent;
      cursor: pointer;
      transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    }

    .btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    .btn:active {
      transform: translateY(0);
    }

    .btn-primary {
      background: var(--accent);
      color: var(--on-accent);
      box-shadow: var(--shadow-sm);
    }

    .btn-primary:hover {
      background: var(--accent-deep);
      transform: translateY(-1px);
      box-shadow: var(--shadow);
    }

    .btn-secondary {
      background: var(--paper);
      color: var(--ink);
      border-color: var(--line);
    }

    .btn-secondary:hover {
      background: var(--paper-alt);
      border-color: var(--muted);
    }

    .btn-ghost {
      background: transparent;
      color: var(--ink-2);
      border-color: transparent;
    }

    .btn-ghost:hover {
      background: var(--paper-alt);
      color: var(--ink);
    }

    .btn-lg {
      padding: 14px 24px;
      font-size: 16px;
    }

    .btn-sm {
      padding: 7px 14px;
      font-size: 13px;
    }

    .btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .btn-group {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .container {
    }

    .card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: var(--space-6);
      box-shadow: var(--shadow-sm);
      transition: box-shadow .15s;
    }

    .card:hover {
      box-shadow: var(--shadow);
    }

    .account-info-box {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: var(--space-6);
      margin-bottom: 2rem;
    }
    
    .account-info-box h3 {
      margin-bottom: 1rem;
      font-size: var(--text-md);
      font-weight: 600;
    }
    
    .account-info-box .info-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    @media (min-width: 768px) {
      .account-info-box .info-grid {
        grid-template-columns: 1fr 1fr;
      }
    }
    
    .account-info-box p {
      margin: 0.5rem 0;
      color: var(--muted);
    }
    
    .account-info-box strong {
      color: var(--ink);
    }
    
    .account-info-box .credit-value {
      font-size: 1.2em;
      font-weight: bold;
      color: var(--accent);
    }
    
    .account-info-box .total-credit-value {
      font-size: 1.3em;
      font-weight: bold;
      color: var(--accent);
    }
    
    .referral-card {
      margin: 1rem 0;
      padding: 1rem 1.25rem;
    }

    .referral-card h3 {
      margin-bottom: 0.35rem;
      font-size: 1rem;
    }

    .referral-note {
      color: var(--muted);
      font-size: 0.85rem;
      margin: 0 0 0.75rem;
    }

    .referral-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem 1.5rem;
    }

    .referral-code-group {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .referral-card input.referral-code {
      width: 8.5rem;
      flex: none;
      padding: 0.45rem 0.5rem;
      font-family: var(--mono);
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: 2px;
      text-align: center;
      text-transform: uppercase;
    }

    .referral-card .btn-compact {
      padding: 0.45rem 0.9rem;
      font-size: 0.85rem;
    }

    .referral-stats {
      display: flex;
      gap: 1.25rem;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .referral-stats b {
      font-size: 1.1rem;
      color: var(--accent);
      margin-right: 0.2rem;
    }

    .referral-redeem {
      margin-top: 1rem;
      padding-top: 0.85rem;
      border-top: 1px solid var(--line);
    }

    .referral-redeem label {
      display: block;
      font-size: 0.85rem;
      margin-bottom: 0.4rem;
    }

    .referral-redeem small {
      display: block;
      margin-top: 0.35rem;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .days-left {
      font-weight: 600;
    }

    .days-left.warning {
      color: var(--warning);
    }

    .days-left.expired {
      color: var(--error);
    }
                                  
    .upload-section {
      padding: 2rem 0;
      min-height: auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .section-header h1,
    .section-header h2 {
      font-size: var(--text-2xl);
      font-weight: 500;
      margin-bottom: 0.75rem;
    }

    .section-header p {
      color: var(--muted);
      font-size: 1rem;
    }

    .upload-container {
      max-width: var(--reading);
      margin: 0 auto;
    }

    /* Two equal option cards (guest vs plans) at the top of the upload flow */
    .choice-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-4);
    }

    .choice {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      padding: var(--space-6);
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      text-align: left;
      font: inherit;
      color: var(--ink);
      cursor: pointer;
      transition: border-color .15s, box-shadow .15s;
    }

    .choice:hover,
    .choice:focus-visible {
      border-color: var(--accent);
      box-shadow: var(--shadow);
      outline: none;
    }

    .choice-k {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent);
    }

    .choice-title {
      font-family: var(--serif);
      font-size: var(--text-lg);
      font-weight: 500;
    }

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

    .choice-price {
      margin-top: auto;
      padding-top: var(--space-2);
      font-weight: 600;
    }

    .form-help {
      margin-top: var(--space-4);
      color: var(--muted);
      font-size: var(--text-sm);
      text-align: center;
    }

    .form-help a {
      color: var(--accent);
    }

    .pricing-cta {
      text-align: center;
      margin-top: var(--space-6);
    }

    .step-indicator {
      padding-bottom: var(--space-4);
      border-bottom: 1px solid var(--line);
      margin-bottom: var(--space-6);
    }

    .step-indicator h3 {
      font-family: var(--serif);
      color: var(--ink);
      margin-bottom: 2px;
      font-size: var(--text-xl);
      font-weight: 500;
    }

    .step-indicator p {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .upload-area {
      background: var(--paper);
      border: 1.5px dashed var(--line);
      border-radius: var(--radius);
      padding: var(--space-8) var(--space-4);
      text-align: center;
      cursor: pointer;
      transition: border-color .15s, background-color .15s;
      margin-bottom: 1rem;
    }

    .upload-area.is-full {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .upload-area.is-full:hover {
      border-color: var(--line);
    }

    .file-limit-note {
      margin-top: 0.6rem;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .file-limit-note:empty {
      display: none;
    }

    .upload-area:hover {
      border-color: var(--accent);
      background: var(--accent-tint);
    }

    .upload-area p {
      font-size: var(--text-md);
      font-weight: 500;
      margin-bottom: 0.5rem;
    }

    .upload-area small {
      color: var(--muted);
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
    }

    input[type="email"],
    input[type="text"],
    input[type="date"],
    input[type="number"],
    textarea,
    select {
      width: 100%;
      padding: 10px 12px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      color: var(--ink);
      font-size: 16px;
      line-height: 1.4;
      transition: border-color .15s, box-shadow .15s;
      font-family: inherit;
      -webkit-appearance: none;
      appearance: none;
    }

    input:focus,
    textarea:focus,
    select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-tint);
    }

    textarea {
      resize: vertical;
      min-height: 120px;
    }

    .field-hint {
      margin-top: 8px;
      font-size: var(--text-sm);
      color: var(--muted);
      line-height: 1.5;
    }

    .label-note {
      margin-left: 6px;
      font-weight: 400;
      color: var(--muted);
    }

    /* Compact signed-in summary above the upload form */
    .mini-account {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: var(--space-4);
      padding: var(--space-4) var(--space-6);
      margin-bottom: var(--space-6);
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
    }

    .mini-account .k {
      display: block;
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 2px;
    }

    .mini-account .v {
      display: block;
      font-size: var(--text-base);
      font-weight: 600;
      overflow-wrap: anywhere;
    }

    .mini-account .v-big {
      font-family: var(--serif);
      font-size: var(--text-xl);
      font-weight: 500;
      color: var(--accent);
      line-height: 1.1;
    }

    .file-preview {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      margin-top: 1rem;
    }

    .file-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      background: var(--paper-alt);
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      font-size: 0.9rem;
    }

    .file-item span:last-child {
      color: var(--error);
      cursor: pointer;
      font-weight: bold;
      font-size: 1.25rem;
    }

    .pricing-section {
      padding: 2rem 0;
      background: var(--paper-alt);
      overflow: hidden;
    }

    .pricing-carousel-wrapper {
      position: relative;
      margin-bottom: var(--space-8);
    }

    .carousel-arrow {
      position: absolute;
      top: 250px;
      transform: translateY(-50%);
      background: var(--paper);
      backdrop-filter: blur(10px);
      border: 1.5px solid var(--line);
      color: var(--ink);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      transition: all 0.3s;
      font-size: 1.5rem;
      font-weight: bold;
      user-select: none;
    }

    .carousel-arrow:hover {
      border-color: var(--ink);
      transform: translateY(-50%) scale(1.1);
    }

    .carousel-arrow:active {
      transform: translateY(-50%) scale(0.95);
    }

    .carousel-arrow.left {
      left: 4px;
    }

    .carousel-arrow.right {
      right: 4px;
    }

    .carousel-arrow.disabled {
      opacity: 0.3;
      cursor: not-allowed;
      pointer-events: none;
    }

    .pricing-grid {
      display: flex;
      gap: 1.5rem;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 1rem 1rem 2rem;
    }

    .pricing-grid::before,
    .pricing-grid::after {
      content: '';
      flex-shrink: 0;
      width: 1px;
    }

    .pricing-grid::-webkit-scrollbar {
      display: none;
    }

    .pricing-card {
      position: relative;
      background: var(--paper);
      border: 1.5px solid var(--line);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: all 0.3s;
      cursor: pointer;
      min-width: 280px;
      max-width: 300px;
      flex-shrink: 0;
      scroll-snap-align: center;
      display: flex;
      flex-direction: column;
      -webkit-tap-highlight-color: transparent;
    }

    .value-tag {
      display: inline-block;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      white-space: nowrap;
      margin: 0.75rem auto 0;
      text-align: center;
    }

    .value-tag.confident {
      background: var(--accent-tint);
      color: var(--accent);
    }

    .value-tag.start {
      background: color-mix(in srgb, var(--success) 12%, transparent);
      color: var(--success);
    }

    .value-tag.popular {
      background: var(--pcn-yellow);
      color: #1d2422;
    }

    .value-tag.free {
      background: var(--paper-alt);
      color: var(--ink-2);
    }

    .value-tag.value {
      background: color-mix(in srgb, var(--accent-tertiary) 12%, transparent);
      color: var(--accent-tertiary);
    }

    .pricing-card:active {
      transform: scale(0.98);
    }

    .pricing-card:hover {
      box-shadow: var(--shadow);
      border-color: var(--muted);
    }

    .pricing-card.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent);
      background: var(--paper);
    }

    .carousel-dots {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      padding: 1rem 0;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--line);
      transition: all 0.3s;
      cursor: pointer;
    }

    .carousel-dot.active {
      background: var(--accent);
      width: 24px;
      border-radius: 4px;
    }

    .early-access-badge {
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--pcn-yellow);
      color: #1d2422;
      display: inline-block;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      white-space: nowrap;
    }

    .plan-name {
      font-family: var(--serif);
      font-size: var(--text-lg);
      font-weight: 500;
      margin-bottom: 0.75rem;
      line-height: 1.2;
      text-align: center;
    }

    .price {
      margin: 1rem 0;
      min-height: 5.3rem;   /* keeps the badge and feature rows level across cards */
      text-align: center;
    }

    .price-amount {
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      color: var(--ink);
      display: block;
    }
   
    .price-note {
      display: block;
      margin-top: 0.25rem;
      font-size: 0.95rem;
      color: var(--muted);
    }

    /* Free card: links to /ticket-check, can't be selected for purchase */
    .pricing-card-free {
      cursor: default;
      border-style: dashed;
    }

    .pricing-card-free:hover {
      box-shadow: none;
      border-color: var(--line);
    }

    .pricing-card-free:active {
      transform: none;
    }

    .pricing-card-btn {
      margin-top: auto;
      justify-content: center;
      padding-inline: var(--space-4);
      white-space: nowrap;
    }

    .price-regular {
      font-size: 0.95rem;
      color: var(--muted);
      text-decoration: line-through;
      display: block;
      margin-top: 0.25rem;
    }

    .savings {
      display: inline-block;
      background: rgba(220, 38, 38, 0.12);
      color: var(--error);
      padding: 0.3rem 0.6rem;
      border-radius: var(--radius-sm);
      font-size: 0.7rem;
      font-weight: 700;
      margin-top: 0.5rem;
    }
    
    .features {
      list-style: none;
      margin: 1rem 0;
      flex-grow: 1;
    }
    
    .features li {
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: var(--text-sm);
      line-height: 1.35;
    }
    
    .features li:before {
      content: "✓";
      color: var(--success);
      font-weight: 700;
      font-size: 1rem;
      flex-shrink: 0;
    }
    
    .features li.minus:before {
      content: "✗";
      color: var(--error);
    }

    .alert {
      padding: 12px 16px;
      border-radius: var(--radius-sm);
      margin-bottom: 1.25rem;
      border: 1px solid;
      font-size: var(--text-base);
    }

    .alert-success {
      background: color-mix(in srgb, var(--success) 10%, transparent);
      border-color: color-mix(in srgb, var(--success) 35%, transparent);
      color: var(--success);
    }

    .alert-error {
      background: color-mix(in srgb, var(--error) 10%, transparent);
      border-color: color-mix(in srgb, var(--error) 35%, transparent);
      color: var(--error);
    }

    .alert-warning {
      background: color-mix(in srgb, var(--warning) 10%, transparent);
      border-color: color-mix(in srgb, var(--warning) 35%, transparent);
      color: var(--warning);
    }

    .alert-info {
      background: var(--accent-tint);
      border-color: color-mix(in srgb, var(--accent) 35%, transparent);
      color: var(--accent);
    }

    .loading {
      display: none;
      text-align: center;
      padding: 3rem;
    }

    .loading.active {
      display: block;
    }

    .spinner {
      border: 4px solid var(--line);
      border-top: 4px solid var(--accent);
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 1s linear infinite;
      margin: 0 auto 1.5rem;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .page {
      display: none;
      min-height: calc(100vh - 70px);
    }

    .page.active {
      display: block;
    }

    .page-content {
      max-width: calc(var(--reading) + 2 * var(--gutter));
      margin: 0 auto;
      padding: var(--space-8) var(--gutter);
    }

    .results-section {
      padding: 2rem 1rem;
      display: none;
    }

    .results-section.active {
      display: block;
    }

    .result-card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1.25rem 1.25rem 1.4rem;
      margin-bottom: 1rem;
      box-shadow: var(--shadow-sm);
    }

    .result-card h3 {
      color: var(--ink);
      margin-bottom: 0.6rem;
      font-size: 1.05rem;
      font-weight: 600;
    }

    .result-card pre {
      margin: 0;
      font-family: inherit;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      font-size: 0.95rem;
      line-height: 1.7;
      color: var(--ink);
    }

    .result-card--letter pre {
      background: var(--paper-alt);
      border: 1px solid var(--line);
      border-left: 3px solid var(--pcn-yellow);
      border-radius: var(--radius);
      padding: 1.25rem 1.4rem;
    }

    .faq-section {
      max-width: calc(var(--reading) + 2 * var(--gutter));
      margin: 0 auto;
      padding: var(--space-8) var(--gutter);
    }

    .faq-item {
      background: var(--paper);
      border: 1px solid var(--line);
      padding: var(--space-6);
      border-radius: var(--radius);
      margin-bottom: var(--space-4);
      box-shadow: var(--shadow-sm);
    }

    .faq-item h3 {
      color: var(--ink);
      margin-bottom: 0.75rem;
      font-size: 1rem;
    }

    .faq-item p {
      color: var(--muted);
      line-height: 1.6;
      font-size: 0.9rem;
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(29, 36, 34, 0.55);
      backdrop-filter: blur(6px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      padding: 1rem;
    }

    .modal-box {
      background: var(--paper);
      border: 1px solid var(--line);
      padding: 1.5rem;
      border-radius: var(--radius);
      max-width: 600px;
      max-height: 90vh;
      overflow-y: auto;
      width: 100%;
      box-shadow: var(--shadow-lg);
    }

    .modal-box.success {
      border-left: 4px solid var(--success);
    }

    .modal-box.error {
      border-left: 4px solid var(--error);
    }

    .modal-box.warning {
      border-left: 4px solid var(--warning);
    }

    .modal-box.info {
      border-left: 4px solid var(--accent);
    }

    .modal-box h3 {
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }

    .modal-box p {
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 1rem;
      font-size: 0.9rem;
    }

    footer {
      border-top: 1px solid var(--line);
      padding: var(--space-12) 0 var(--space-8);
      margin-top: var(--space-16);
      font-size: 14px;
    }

    .footer-content {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-8);
      margin-bottom: var(--space-8);
    }

    .footer-brand .logo {
      margin-bottom: var(--space-3);
    }

    .footer-brand p {
      color: var(--muted);
      max-width: 28ch;
    }

    .footer-section h3 {
      font-family: var(--mono);
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: var(--space-3);
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section a {
      color: var(--ink-2);
      text-decoration: none;
      cursor: pointer;
      display: block;
      margin-bottom: var(--space-2);
      transition: color 0.15s;
    }

    .footer-section a:hover {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2) var(--space-6);
      padding-top: var(--space-6);
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: var(--text-sm);
    }

    .hidden {
      display: none !important;
    }


    .analysis-list {
      max-height: 400px;
      overflow-y: auto;
      margin: 1rem 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper);
    }

    .analysis-item {
      padding: 1.25rem;
      border-bottom: 1px solid var(--line);
      cursor: pointer;
      transition: all 0.3s;
    }

    .analysis-item:hover {
      background: var(--paper-alt);
    }

    .analysis-item:last-child {
      border-bottom: none;
    }

    .analysis-item h4 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
      color: var(--ink);
    }

    .analysis-item p {
      font-size: 0.9rem;
      color: var(--muted);
      margin: 0;
    }

    @media (min-width: 768px) {
      .hero {
        padding: 4.5rem 0 4rem;
      }

      .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
      }

      .analysis-card {
        display: block;
      }

      .stats-inner {
        grid-template-columns: repeat(4, 1fr);
      }

      .steps {
        grid-template-columns: repeat(3, 1fr);
      }

      .upload-section {
        padding: 3rem 0;
      }

      .pricing-section {
        padding: 3rem 0;
      }

      .choice-grid {
        grid-template-columns: 1fr 1fr;
      }

      .section-header {
        margin-bottom: 3rem;
      }

      .card {
        padding: 2rem;
      }

      .step-indicator h3 {
        font-size: 1.25rem;
      }

      .upload-area {
        padding: 3rem 2rem;
      }

      .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
      }

      .alert {
        padding: 1rem;
        font-size: 1rem;
      }

      .result-card {
        padding: 1.75rem 2rem 2rem;
      }

      .result-card h3 {
        font-size: 1.15rem;
      }

      .result-card pre {
        font-size: 1rem;
      }

      .result-card--letter pre {
        padding: 1.75rem 2rem;
      }

      .faq-section {
        padding: 4rem 2rem;
      }

      .faq-item {
        padding: 1.5rem;
      }

      .faq-item h3 {
        font-size: 1.1rem;
      }

      .faq-item p {
        font-size: 1rem;
      }

      .results-section {
        padding: 3rem 0;
      }

      .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
      }

      .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
      }

      .footer-section a {
        font-size: 1rem;
      }

      .footer-bottom {
        padding-top: 2rem;
        font-size: 0.9rem;
      }



      .page-content {
        padding: 3rem var(--gutter);
        margin: 5rem auto 2rem;
      }

      .modal-box {
        padding: 2rem;
      }

      .modal-box h3 {
        font-size: 1.5rem;
      }

      .modal-box p {
        font-size: 1rem;
      }


      .price-amount {
        font-size: 2rem;
      }

      .price-regular,
      .price-note {
        font-size: 1.25rem;
      }

      .features {
        margin: 2rem 0;
      }

      .features li {
        font-size: 0.85rem;
      }

      .plan-name {
        font-size: 1.2rem;
      }

      .price {
        margin: 1.5rem 0;
      }
    }

    @media (min-width: 1024px) {

    }

    ::-webkit-scrollbar {
      width: 10px;
    }

    ::-webkit-scrollbar-track {
      background: var(--paper);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--line);
      border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent);
    }

    .analysis-modal-box {
        max-width: 900px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--line);
    }
    
    .modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        color: var(--ink);
    }
    
    .modal-close-btn {
        background: none;
        border: none;
        color: var(--muted);
        font-size: 2rem;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        transition: all 0.3s;
    }
    
    .modal-close-btn:hover {
        background: var(--paper-alt);
        color: var(--ink);
    }
    
    .modal-content {
        overflow-y: auto;
        max-height: calc(85vh - 120px);
    }
    
    .analysis-meta {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: 1rem;
        background: var(--paper);
        border-radius: var(--radius);
        margin-bottom: 1.5rem;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .meta-item strong {
        color: var(--muted);
        margin-right: 0.5rem;
    }
    
    .analysis-section {
        margin-bottom: 1.5rem;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.25rem;
    }
    
    .analysis-section h4 {
        color: var(--accent);
        margin-bottom: 1rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .analysis-content {
        color: var(--muted);
        line-height: 1.8;
        white-space: pre-wrap;
        word-wrap: break-word;
        font-size: 0.95rem;
    }
    
    .analysis-item {
        position: relative;
        padding: 1.25rem;
        border-bottom: 1px solid var(--line);
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .analysis-item:hover {
        background: var(--paper-alt);
        padding-left: 1.5rem;
    }
    
    .analysis-item::after {
        content: '→';
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent);
        font-size: 1.5rem;
        opacity: 0;
        transition: all 0.3s;
    }
    
    .analysis-item:hover::after {
        opacity: 1;
        right: 1rem;
    }
    
    .analysis-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: var(--ink);
    }
    
    .analysis-item p {
        font-size: 0.9rem;
        color: var(--muted);
        margin: 0;
    }
    
    .analysis-item .analysis-date {
        font-weight: 400;
        font-size: 0.85rem;
        color: var(--muted);
    }

    .pcn-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.35rem 1rem;
        margin: 0 0 0.6rem;
    }

    .pcn-meta dt {
        font-family: var(--mono);
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
    }

    .pcn-meta dd {
        margin: 0;
        font-size: 0.85rem;
        color: var(--ink);
    }

    .followup-list {
        max-height: 360px;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }

    .followup-list .analysis-item.selected {
        background: var(--accent-tint);
        box-shadow: inset 4px 0 0 var(--accent);
    }

    .followup-list .analysis-item::after {
        content: none;
    }

    .modal-content .loading {
        padding: 3rem;
        text-align: center;
    }
    
    .modal-content .loading .spinner {
        margin: 0 auto 1rem;
    }


    .promo-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(10, 14, 30, 0.6);
      backdrop-filter: blur(10px);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 10001;
      padding: 1rem;
      animation: fadeIn 0.3s ease-in-out;
    }

    .promo-modal.show {
      display: flex;
    }

    .promo-content {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 2rem;
      max-width: 500px;
      width: 100%;
      position: relative;
      box-shadow: 0 24px 70px -20px rgba(10, 14, 30, 0.35);
      animation: slideUp 0.3s ease-out;
    }

    .promo-content::before {
      content: '';
      position: absolute;
      top: 0; left: 2rem; right: 2rem;
      height: 9px;
      background:
        linear-gradient(var(--pcn-yellow), var(--pcn-yellow)) top / 100% 3px no-repeat,
        linear-gradient(var(--pcn-yellow), var(--pcn-yellow)) bottom / 100% 3px no-repeat;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .promo-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      color: var(--muted);
      font-size: 2rem;
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-sm);
      transition: all 0.3s;
    }

    .promo-close:hover {
      background: var(--paper-alt);
      color: var(--ink);
    }

    .promo-header {
      text-align: center;
      margin-bottom: 1.5rem;
      margin-top: 0.5rem;
    }

    .promo-header h2 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
      color: var(--ink);
    }

    .promo-header p {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .promo-body {
      background: var(--accent-tint);
      border-left: 4px solid var(--accent);
      border-radius: var(--radius);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      line-height: 1.8;
      color: var(--muted);
    }

    .promo-code-box {
      background: var(--paper-alt);
      border: 2px dashed var(--accent);
      border-radius: var(--radius);
      padding: 1rem;
      text-align: center;
      margin: 1rem 0;
    }

    .promo-code {
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: 3px;
      color: var(--accent);
      font-family: var(--mono);
    }

    .promo-actions {
      display: flex;
      gap: 1rem;
      flex-direction: column;
    }

    .promo-checkbox {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--muted);
      font-size: 0.9rem;
      margin-top: 1rem;
    }

    .promo-checkbox input {
      width: auto;
      cursor: pointer;
    }


    .guest-strip {
      margin-bottom: var(--space-6);
      padding: var(--space-3) var(--space-4);
      border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
      background: color-mix(in srgb, var(--warning) 8%, transparent);
      border-radius: var(--radius-sm);
      font-size: var(--text-sm);
      color: var(--ink-2);
      line-height: 1.5;
    }

    .guest-strip-main strong {
      color: var(--ink);
      margin-right: 6px;
    }

    .guest-strip-main b {
      color: var(--ink);
    }

    .guest-strip-meta {
      margin-top: 4px;
      color: var(--muted);
      font-size: var(--text-xs);
    }

    .guest-strip code {
      font-family: var(--mono);
      color: var(--ink);
    }

    .guest-strip a {
      color: var(--accent);
    }

    /* ==================== MOT CHECK ==================== */
    .mot-section {
      max-width: 820px;
      margin: 0 auto;
      padding: 3rem 1rem 4rem;
    }

    .mot-widget {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: var(--space-6);
    }

    .result-card .mot-widget {
      background: transparent;
      border: none;
      padding: 0;
    }

    .mot-form {
      display: flex;
      gap: 0.75rem;
      align-items: stretch;
      flex-wrap: wrap;
    }

    /* Rear UK number plate - fixed colours so it stays a real plate in dark mode */
    .mot-plate {
      flex: 1 1 260px;
      display: flex;
      align-items: stretch;
      min-width: 0;
      background: var(--pcn-yellow);
      border: 2px solid #0a0a0a;
      border-radius: var(--radius-sm);
      overflow: hidden;
      transition: box-shadow 0.2s;
    }

    .mot-plate:focus-within {
      box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 5px var(--accent);
    }

    .mot-plate-band {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      padding: 0 0.6rem;
      background: #0037ac;
      color: #ffffff;
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .mot-plate-band .stars {
      color: var(--pcn-yellow);
      font-size: 0.55rem;
      letter-spacing: 0;
    }

    .mot-plate input {
      flex: 1;
      min-width: 0;
      background: transparent;
      border: none;
      outline: none;
      padding: 0.6rem 0.75rem;
      color: #0a0a0a;
      font-family: var(--sans);
      font-size: clamp(1.35rem, 5vw, 1.75rem);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-align: center;
      text-transform: uppercase;
    }

    .mot-plate input::placeholder {
      color: rgba(10, 10, 10, 0.35);
    }

    .mot-form .btn {
      flex: 0 0 auto;
      white-space: nowrap;
    }

    .mot-hint {
      margin-top: 0.75rem;
      color: var(--muted);
      font-size: 0.85rem;
    }

    .mot-results:empty {
      display: none;
    }

    .mot-results {
      margin-top: 1.5rem;
    }

    .mot-message {
      padding: 1rem;
      border-radius: var(--radius);
      background: var(--paper-alt);
      color: var(--muted);
      text-align: center;
      font-size: 0.95rem;
    }

    .mot-message.error {
      color: var(--error);
    }

    .mot-status {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
      padding: 1rem 1.25rem;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: var(--paper-alt);
      border-left: 5px solid var(--muted);
    }

    .mot-status.green { border-left-color: var(--success); }
    .mot-status.amber { border-left-color: var(--warning); }
    .mot-status.red { border-left-color: var(--error); }

    .mot-status-label {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 1.15rem;
      font-weight: 600;
    }

    .mot-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0;
      background: var(--muted);
    }

    .mot-dot.green { background: var(--success); }
    .mot-dot.amber { background: var(--warning); }
    .mot-dot.red { background: var(--error); }

    .mot-status-expiry {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .mot-status-expiry b {
      color: var(--ink);
    }

    .mot-facts {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
      margin: 1.25rem 0;
    }

    .mot-fact .k,
    .mot-test .k {
      font-family: var(--mono);
      font-size: 0.66rem;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--muted);
    }

    .mot-fact .v {
      font-weight: 700;
      font-size: 1rem;
      overflow-wrap: anywhere;
    }

    .mot-recall {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.4rem 0.8rem;
      border-radius: var(--radius-pill);
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .mot-recall.yes {
      background: color-mix(in srgb, var(--error) 12%, transparent);
      color: var(--error);
    }

    .mot-recall.no {
      background: color-mix(in srgb, var(--success) 12%, transparent);
      color: var(--success);
    }

    .mot-compare {
      padding: 0.9rem 1rem;
      border-radius: var(--radius);
      background: var(--accent-tint);
      border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .mot-history summary {
      cursor: pointer;
      font-weight: 700;
      color: var(--accent);
      padding: 0.5rem 0;
    }

    .mot-history-list {
      margin-top: 0.5rem;
      max-height: 420px;
      overflow-y: auto;
      border-top: 1px solid var(--line);
    }

    .mot-test {
      padding: 0.9rem 0;
      border-bottom: 1px solid var(--line);
    }

    .mot-test-head {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
      gap: 0.5rem 1rem;
      align-items: end;
    }

    .mot-test-head .v {
      font-size: 0.9rem;
      font-weight: 600;
    }

    .mot-mileage-diff {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .mot-mileage-diff.down {
      color: var(--error);
      font-weight: 600;
    }

    .mot-pill {
      display: inline-block;
      padding: 0.1rem 0.55rem;
      border-radius: var(--radius-pill);
      font-family: var(--mono);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .mot-pill.pass {
      background: color-mix(in srgb, var(--success) 14%, transparent);
      color: var(--success);
    }

    .mot-pill.fail {
      background: color-mix(in srgb, var(--error) 14%, transparent);
      color: var(--error);
    }

    .mot-defects {
      list-style: none;
      margin-top: 0.6rem;
      display: grid;
      gap: 0.35rem;
    }

    .mot-defect {
      display: flex;
      gap: 0.5rem;
      align-items: flex-start;
      font-size: 0.85rem;
      line-height: 1.45;
    }

    .mot-defect-badge {
      flex-shrink: 0;
      margin-top: 0.15rem;
      padding: 0.05rem 0.4rem;
      border-radius: 4px;
      font-family: var(--mono);
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      background: var(--paper-alt);
      color: var(--muted);
      border: 1px solid var(--line);
    }

    .mot-defect-badge.severe {
      background: color-mix(in srgb, var(--error) 12%, transparent);
      color: var(--error);
      border-color: transparent;
    }

    .mot-defect-badge.minor {
      background: color-mix(in srgb, var(--warning) 14%, transparent);
      color: var(--warning);
      border-color: transparent;
    }

    .mot-source {
      margin-top: 1rem;
      color: var(--muted);
      font-size: 0.75rem;
    }

    .mot-uses {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

    .mot-uses .card h3 {
      font-size: 1rem;
      margin-bottom: 0.4rem;
    }

    .mot-uses .card p {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .mot-cta {
      text-align: center;
      margin-top: 2.5rem;
    }

    .mot-cta p {
      color: var(--muted);
      margin-bottom: 1rem;
    }

    /* Teaser at the foot of the persistent how-it-works block */
    .mot-teaser {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 2rem;
      padding: 1rem 1.25rem;
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      background: var(--paper-alt);
    }

    .mot-teaser + .mot-teaser {
      margin-top: var(--space-3);
    }

    .mot-teaser .k {
      font-family: var(--mono);
      font-size: 0.66rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent);
    }

    .mot-teaser p {
      margin: 0.15rem 0 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .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: 520px) {
      .mot-widget { padding: 1rem; }
      .mot-form .btn { flex: 1 1 100%; }
    }


    /* ==================== TICKET CHECK ==================== */
    /* Free rule-based check on /ticket-check (logic: TICKET CHECK banner in app.js) */
    .tc-section {
      max-width: 680px;
      margin: 0 auto;
      padding: var(--space-12) var(--gutter) var(--space-16);
    }

    .tc-card,
    .tc-result {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: var(--space-6);
    }

    .tc-card [hidden],
    .tc-result[hidden] {
      display: none !important;
    }

    .tc-q {
      border: 0;
      margin: 0 0 var(--space-6);
      padding: 0;
      min-width: 0;
    }

    .tc-q legend {
      padding: 0;
      margin-bottom: var(--space-2);
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
    }

    .tc-seg {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2);
    }

    .tc-seg label {
      position: relative;
      display: inline-flex;
      align-items: center;
      padding: 8px 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      background: var(--paper);
      font-size: var(--text-sm);
      color: var(--ink-2);
      cursor: pointer;
      transition: border-color .15s, background .15s;
    }

    .tc-seg input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .tc-seg label:hover {
      border-color: var(--accent);
    }

    .tc-seg label:has(input:checked) {
      border-color: var(--accent);
      background: var(--accent-tint);
      color: var(--accent-deep);
      font-weight: 600;
    }

    .tc-seg label:has(input:focus-visible) {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .tc-seg-stack {
      flex-direction: column;
    }

    .tc-seg-stack label {
      border-radius: var(--radius-sm);
    }

    .tc-row {
      display: grid;
      gap: 0 var(--space-4);
    }

    @media (min-width: 560px) {
      .tc-row { grid-template-columns: 1fr 1fr; }
      .tc-card, .tc-result { padding: var(--space-8); }
    }

    .tc-money {
      position: relative;
      max-width: 180px;
    }

    .tc-money span {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
    }

    .tc-money input {
      padding-left: 26px;
    }

    .tc-checks {
      display: grid;
      gap: 10px;
    }

    .tc-checks label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: var(--text-sm);
      color: var(--ink-2);
      cursor: pointer;
    }

    .tc-checks input {
      flex: none;
      width: 18px;
      height: 18px;
      margin: 0;
      accent-color: var(--accent);
    }

    .tc-error {
      margin-bottom: var(--space-3);
      color: var(--error);
      font-size: var(--text-sm);
      font-weight: 500;
    }

    .tc-result {
      margin-top: var(--space-8);
      scroll-margin-top: calc(var(--header-h, 70px) + 16px);
    }

    .tc-result .sec-eyebrow {
      text-align: left;
    }

    .tc-result-head h2 {
      font-size: var(--text-xl);
      font-weight: 500;
      margin-bottom: var(--space-2);
    }

    .tc-result-head p {
      color: var(--muted);
    }

    .tc-result ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .tc-result a:not(.btn) {
      color: var(--accent);
      font-weight: 500;
    }

    .tc-result .tc-grounds {
      margin-top: var(--space-4);
    }

    .tc-card select {
      padding-right: 36px;
      background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
      background-size: 5px 5px;
      background-repeat: no-repeat;
    }

    .tc-ground,
    .tc-notes li {
      padding: var(--space-4) 0;
      border-top: 1px solid var(--line);
    }

    .tc-ground h3,
    .tc-notes h3 {
      margin: 6px 0 4px;
      font-family: var(--sans);
      font-size: var(--text-base);
      font-weight: 600;
    }

    .tc-ground p,
    .tc-notes p,
    .tc-dates p {
      color: var(--muted);
      font-size: var(--text-sm);
      line-height: 1.55;
    }

    .tc-badge {
      display: inline-block;
      padding: 2px 10px;
      border-radius: var(--radius-pill);
      font-family: var(--mono);
      font-size: 10.5px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border: 1px solid var(--line);
      background: var(--paper-alt);
      color: var(--ink-2);
    }

    .tc-strong .tc-badge {
      border-color: var(--accent);
      background: var(--accent);
      color: var(--on-accent);
    }

    .tc-h {
      margin: var(--space-6) 0 var(--space-3);
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .tc-dates li {
      padding: var(--space-3) var(--space-4);
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      margin-bottom: var(--space-2);
    }

    .tc-date-main {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 2px var(--space-3);
      margin-bottom: 2px;
      font-size: var(--text-sm);
      color: var(--ink-2);
    }

    .tc-date-main b {
      color: var(--ink);
      font-weight: 600;
    }

    .tc-left {
      margin-left: auto;
      font-family: var(--mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--accent);
    }

    .tc-left.tc-urgent {
      color: var(--error);
    }

    .tc-left.tc-passed {
      color: var(--muted);
    }

    .tc-cta {
      margin-top: var(--space-6);
      padding: var(--space-6);
      border-radius: var(--radius);
      background: var(--accent-tint);
    }

    .tc-cta h3 {
      font-size: var(--text-lg);
      font-weight: 500;
      margin-bottom: var(--space-2);
    }

    .tc-cta p {
      color: var(--ink-2);
      font-size: var(--text-sm);
      margin-bottom: var(--space-4);
    }

    .tc-price {
      display: inline-block;
      margin: var(--space-2) 0 0 var(--space-3);
      color: var(--ink-2);
      font-size: var(--text-sm);
    }

    .tc-small {
      margin-top: var(--space-6);
      color: var(--muted);
      font-size: var(--text-xs);
      line-height: 1.6;
      text-align: center;
    }

    /* ==================== APPEAL OUTCOME PAGE (/outcome) ==================== */
    .outcome-page {
      text-align: center;
    }

    .outcome-lead {
      color: var(--muted);
      margin-bottom: var(--space-6);
    }

    .outcome-form {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-6);
    }

    .outcome-choices {
      justify-content: center;
    }

    .outcome-error {
      color: var(--error);
      margin: 0;
    }

    .outcome-done {
      text-align: left;
      max-width: 560px;
      margin: 0 auto;
    }

    .outcome-done .btn-group {
      margin-top: var(--space-6);
    }

    /* ==================== GUIDES ==================== */

    .guide {
      max-width: 760px;
      margin: 0 auto;
      padding: 2.5rem 1rem 3rem;
    }

    /* A <nav>, so undo the header's global nav layout */
    .breadcrumbs {
      display: block;
      max-width: none;
      padding: 0;
      font-size: 0.85rem;
      color: var(--muted);
      margin-bottom: 1.5rem;
    }

    .breadcrumbs a {
      color: var(--muted);
      text-decoration: none;
    }

    .breadcrumbs a:hover {
      color: var(--accent);
    }

    .guide .sec-eyebrow {
      text-align: left;
    }

    .guide h1 {
      font-size: var(--text-2xl);
      font-weight: 500;
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    .guide .guide-lead {
      font-size: 1.15rem;
      color: var(--muted);
      margin-bottom: 1rem;
    }

    .guide .guide-meta {
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--muted);
      margin-bottom: 2rem;
    }

    .guide h2 {
      font-size: var(--text-xl);
      font-weight: 500;
      line-height: 1.25;
      margin: 2.5rem 0 0.9rem;
    }

    .guide h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin: 1.75rem 0 0.6rem;
    }

    .guide p,
    .guide li {
      font-size: 1.05rem;
      line-height: 1.75;
    }

    .guide p {
      margin-bottom: 1rem;
    }

    .guide ul,
    .guide ol {
      margin: 0 0 1.25rem 1.4rem;
    }

    .guide li {
      margin-bottom: 0.4rem;
    }

    .guide a {
      color: var(--accent);
    }

    /* Guide illustrations: inline SVG; these classes are the parts that follow dark mode */
    .guide-hero {
      margin: 0 0 2rem;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--line);
    }

    .guide-hero svg {
      display: block;
      width: 100%;
      height: auto;
    }

    .ill-bg { fill: var(--accent-tint); }
    .ill-glow { fill: #ffffff; opacity: 0.55; }
    .ill-ground { fill: #e6dece; }
    .ill-ink { fill: var(--ink); }

    :root[data-theme="dark"] .ill-glow { fill: #6fc3bd; opacity: 0.08; }
    :root[data-theme="dark"] .ill-ground { fill: #35312b; }

    .guide-tldr {
      background: var(--accent-tint);
      border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem 0.5rem;
      margin: 0 0 2rem;
    }

    .guide-tldr h2 {
      font-family: var(--sans);
      font-weight: 600;
      font-size: var(--text-base);
      letter-spacing: 0;
      margin: 0 0 0.75rem;
    }

    .guide-tldr ul {
      margin-bottom: 0.75rem;
    }

    .guide-note {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      margin: 1.5rem 0;
      background: var(--paper-alt);
    }

    .guide-note p:last-child {
      margin-bottom: 0;
    }

    .guide-table-wrap {
      overflow-x: auto;
      margin: 1.5rem 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .guide table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.95rem;
      min-width: 520px;
    }

    .guide th,
    .guide td {
      text-align: left;
      vertical-align: top;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--line);
      line-height: 1.5;
    }

    .guide th {
      background: var(--paper-alt);
      font-weight: 700;
    }

    .guide tr:last-child td {
      border-bottom: none;
    }

    .guide-cta {
      margin: 3rem 0 2rem;
      padding: 1.75rem;
      border-radius: var(--radius);
      background: var(--paper-alt);
      border: 1px solid var(--line);
      text-align: center;
    }

    .guide-cta h2 {
      margin: 0 0 0.5rem;
    }

    .guide-cta p {
      color: var(--muted);
    }

    .guide-cta .btn {
      color: #fff;
      margin-top: 0.5rem;
    }

    .guide-related h2 {
      font-size: 1.1rem;
    }

    .guide-list {
      list-style: none;
      margin: 0 !important;
      display: grid;
      gap: 0.75rem;
    }

    .guide-list a {
      display: block;
      background: var(--paper);
      box-shadow: var(--shadow-sm);
      padding: 1rem 1.25rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      text-decoration: none;
      color: var(--ink);
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .guide-list a:hover {
      border-color: var(--accent);
      box-shadow: var(--shadow);
    }

    .guide-list strong {
      display: block;
      font-size: 1.05rem;
    }

    .guide-list span {
      display: block;
      color: var(--muted);
      font-size: 0.95rem;
      margin-top: 0.25rem;
      line-height: 1.5;
    }

    .guide-sources {
      font-size: 0.9rem;
    }

    .guide-sources li,
    .guide-disclaimer {
      font-size: 0.9rem !important;
      color: var(--muted);
    }

    .guide-disclaimer {
      margin-top: 2rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--line);
    }

    /* Guides as threads: Appealify's post, then dated updates underneath */
    .post-author {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      margin-bottom: 2rem;
    }

    .post-avatar {
      flex-shrink: 0;
      border-radius: var(--radius-sm);
    }

    .post-author strong {
      display: block;
      font-size: 0.95rem;
      line-height: 1.3;
    }

    .post-date {
      display: block;
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--muted);
    }

    .guide .post-latest {
      display: block;
      margin: -1rem 0 2rem;
      padding: 0.75rem 1rem;
      border: 1px solid var(--line);
      border-left: 4px solid var(--pcn-yellow);
      border-radius: var(--radius);
      background: var(--paper-alt);
      color: var(--ink);
      text-decoration: none;
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .post-latest span {
      font-weight: 700;
    }

    .guide .post-latest:hover {
      border-color: var(--accent);
      border-left-color: var(--pcn-yellow);
    }

    .post-updates {
      margin-top: 3rem;
      padding-top: 0.5rem;
      border-top: 1px solid var(--line);
    }

    .post-count {
      display: inline-block;
      min-width: 1.6em;
      padding: 0.1em 0.5em;
      border-radius: var(--radius-pill);
      background: var(--accent-tint);
      color: var(--accent);
      font-size: 0.8em;
      text-align: center;
      vertical-align: middle;
    }

    .post-update {
      position: relative;
      margin: 0 0 1.25rem;
      padding: 1.25rem 1.25rem 0.25rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper);
      scroll-margin-top: 1.5rem;
    }

    .post-update:target {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-tint);
    }

    .post-update .post-author {
      margin-bottom: 0.75rem;
    }

    .guide .post-source {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .guide .post-empty {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .board {
      list-style: none;
      margin: 0 0 1rem !important;
      display: grid;
      gap: 0.9rem;
    }

    .board li {
      margin: 0;
    }

    .board a {
      display: block;
      background: var(--paper);
      box-shadow: var(--shadow-sm);
      padding: 1.1rem 1.25rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      text-decoration: none;
      color: var(--ink);
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .board a:hover {
      border-color: var(--accent);
      box-shadow: var(--shadow);
    }

    .board-tag {
      display: block;
      font-family: var(--mono);
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.3rem;
    }

    .board strong {
      display: block;
      font-size: 1.1rem;
      line-height: 1.35;
    }

    .board-summary {
      display: block;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.5;
      margin-top: 0.3rem;
    }

    .board-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.4rem;
      margin-top: 0.8rem;
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--muted);
    }

    .board-meta .post-avatar {
      border-radius: var(--radius-sm);
    }

    .board-updates {
      margin-left: auto;
      padding: 0.15rem 0.6rem;
      border-radius: var(--radius-pill);
      border: 1px solid var(--line);
    }

    .board-updates.is-new {
      border-color: transparent;
      background: var(--pcn-yellow);
      color: #0a0a0a;
      font-weight: 600;
    }

    /* Pricing: all five cards fit from 1200px up, so the carousel is used below that */
    @media (min-width: 1200px) {
      .pricing-carousel-wrapper {
        padding: 0;
      }

      .pricing-grid {
        display: grid;
        grid-auto-flow: column;   /* one equal column per visible card (signed-in users don't see the guest card) */
        grid-auto-columns: 1fr;
        gap: var(--space-4);
        overflow: visible;
        padding: var(--space-4) 0 var(--space-6);
      }

      .pricing-grid::before,
      .pricing-grid::after {
        display: none;
      }

      .pricing-card {
        min-width: 0;
        max-width: none;
      }

      .carousel-arrow,
      .carousel-dots {
        display: none;
      }
    }

    /* ==================== FORMS: SHARED BITS ==================== */
    .btn-block {
      display: flex;
      width: 100%;
    }

    .btn-block + .btn-block {
      margin-top: var(--space-2);
    }

    .stack {
      margin-top: var(--space-6);
    }

    /* 4-character sign-in code */
    .input-code {
      display: block;
      width: 100%;
      max-width: 220px;
      margin: 0 auto var(--space-4);
      padding: 12px;
      font-family: var(--mono);
      font-size: 28px;
      font-weight: 600;
      letter-spacing: 0.4em;
      text-indent: 0.4em;
      text-align: center;
      text-transform: uppercase;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--paper);
      color: var(--ink);
    }

    .input-code:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-tint);
    }

    .page-content h1 {
      font-size: var(--text-2xl);
      margin-bottom: var(--space-4);
    }

    .page-content h2 {
      font-size: var(--text-xl);
      margin: var(--space-8) 0 var(--space-3);
    }

    #accountDetails h2 {
      font-size: var(--text-xl);
      margin: 0 0 var(--space-4);
    }

    /* Sign-in: a narrow column, not a page-wide form */
    .auth-card {
      max-width: 440px;
      margin: var(--space-6) auto 0;
      padding: var(--space-8);
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
    }

    .auth-card h2 {
      font-size: var(--text-xl);
      margin: 0 0 var(--space-2);
    }

    .auth-lead {
      color: var(--muted);
      font-size: var(--text-base);
      margin-bottom: var(--space-6);
    }

    .auth-form {
      max-width: 440px;
    }

    .auth-form h3 {
      font-size: var(--text-md);
      font-weight: 600;
      margin-bottom: var(--space-2);
    }

    .page-content .auth-card h2 {
      margin-top: 0;
    }

    .auth-form .input-code {
      margin-left: 0;
    }

    .btn-group-start {
      justify-content: flex-start;
    }
