/* Externalized from how-it-works/index.html for CSP. */
:root {
      --bg-ink: #050a17;
      --panel: rgba(9, 20, 48, 0.88);
      --panel-border: rgba(104, 130, 186, 0.34);
      --section-bg: rgba(8, 22, 52, 0.66);
      --section-border: rgba(98, 126, 188, 0.24);
      --text: #e8efff;
      --muted: #9dafd8;
      --accent: #3b79ff;
      --top-nav-h: calc(56px + env(safe-area-inset-top));
      --bottom-nav-h: 56px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: var(--bg-ink);
      color: var(--text);
      font-family: var(--seen-font);
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background: url("/austin_map.jpg") center center / cover no-repeat;
      filter: grayscale(0.36) contrast(1.05) brightness(0.46);
      transform: scale(1.02);
      z-index: -3;
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      background:
        radial-gradient(95% 56% at 50% -8%, rgba(44, 97, 226, 0.36), transparent 56%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.32), rgba(3, 8, 22, 0.8) 40%, rgba(3, 7, 18, 0.9));
      z-index: -2;
    }

    body.auth-nav-only .top-nav,
    body.auth-nav-only .bottom-nav {
      display: none !important;
    }

    body.auth-nav-only.is-authenticated .top-nav {
      display: flex !important;
    }

    .how {
      max-width: 940px;
      margin: 0 auto;
      padding: 20px 20px 124px;
      position: relative;
      z-index: 1;
    }

    .how-card {
      background: linear-gradient(180deg, rgba(10, 23, 56, 0.9), rgba(8, 20, 49, 0.92));
      border: 1px solid var(--panel-border);
      border-radius: 24px;
      padding: clamp(20px, 3vw, 34px);
      box-shadow: 0 28px 68px rgba(2, 6, 22, 0.48);
      backdrop-filter: blur(10px);
    }

    .how-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .how-back-btn {
      border: 1px solid rgba(104, 130, 186, 0.42);
      background: rgba(20, 45, 97, 0.48);
      color: #dce8ff;
      border-radius: 999px;
      padding: 8px 14px;
      font-family: var(--seen-font);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      cursor: pointer;
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }

    .how-back-btn:hover {
      transform: translateY(-1px);
      background: rgba(29, 63, 132, 0.6);
      border-color: rgba(120, 153, 224, 0.58);
    }

    .how .pill {
      display: inline-flex;
      align-items: center;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(45, 104, 234, 0.2);
      border: 1px solid rgba(80, 128, 236, 0.42);
      color: #dce8ff;
      font-family: var(--seen-font);
      font-weight: 800;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .how h1 {
      margin: 12px 0 10px;
      font-size: clamp(30px, 4.2vw, 44px);
      letter-spacing: -0.02em;
      line-height: 1.08;
      font-family: var(--seen-font);
      text-wrap: balance;
    }

    .how .intro {
      margin: 0;
      color: #d7e4ff;
      line-height: 1.72;
      font-size: clamp(15px, 1.55vw, 18px);
      max-width: 74ch;
      text-wrap: pretty;
    }

    .how section {
      margin-top: 16px;
      padding: 16px 18px 14px;
      border-radius: 16px;
      border: 1px solid var(--section-border);
      background: linear-gradient(180deg, rgba(8, 22, 52, 0.72), rgba(8, 20, 48, 0.6));
      box-shadow: inset 0 1px 0 rgba(130, 156, 216, 0.08);
    }

    .how h2 {
      margin: 0 0 8px;
      font-size: clamp(20px, 2.3vw, 28px);
      letter-spacing: -0.01em;
      line-height: 1.2;
      text-wrap: balance;
    }

    .how h3 {
      margin: 14px 0 6px;
      font-size: 12px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: #b9cffd;
      font-family: var(--seen-font);
      font-weight: 800;
    }

    .how p,
    .how li {
      color: rgba(232, 239, 255, 0.92);
      line-height: 1.72;
      font-size: clamp(14px, 1.24vw, 15px);
      text-wrap: pretty;
    }

    .how p {
      margin: 0 0 12px;
      max-width: 78ch;
    }

    .how ul {
      margin: 8px 0 12px;
      padding-left: 18px;
    }

    .how li+li {
      margin-top: 4px;
    }

    .how li::marker {
      color: #9bbcff;
    }

    .how .lead {
      color: var(--muted);
      font-size: clamp(14px, 1.3vw, 16px);
      margin-top: 0;
    }

    .how .card-note {
      margin-top: 8px;
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(30, 54, 105, 0.4);
      border: 1px solid rgba(117, 146, 212, 0.34);
      color: #dbe7ff;
      font-size: 13px;
      line-height: 1.6;
    }

    .how .divider {
      height: 1px;
      margin: 14px 0;
      background: linear-gradient(90deg, transparent, rgba(116, 145, 211, 0.58), transparent);
    }

    .how strong {
      color: #edf4ff;
    }

    .legal-footer {
      margin-top: 14px;
      text-align: center;
      color: rgba(156, 163, 175, 0.95);
      font-size: 12px;
      line-height: 1.45;
    }

    .legal-footer p {
      margin: 0;
    }

    .bottom-nav {
      display: none;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
      padding: 6px 10px calc(env(safe-area-inset-bottom) + 6px);
      background: linear-gradient(to top,
          rgba(15, 23, 42, 0.98),
          rgba(15, 23, 42, 0.8));
      border-top: 1px solid rgba(148, 163, 184, 0.25);
      backdrop-filter: blur(10px);
      z-index: 60;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
    }

    .bottom-nav-row {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: space-around;
    }

    .bn-link {
      flex: 1 1 0;
      text-align: center;
      padding: 10px 12px;
      border-radius: 999px;
      text-decoration: none;
      color: rgba(229, 231, 235, 0.92);
      font-weight: 800;
      font-size: 13px;
      border: 1px solid transparent;
      background: rgba(148, 163, 184, 0.1);
    }

    .bn-link:hover {
      background: rgba(148, 163, 184, 0.18);
    }

    .bottom-nav-status {
      text-align: center;
      color: rgba(156, 163, 175, 0.95);
      font-size: 12px;
      font-weight: 750;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
      line-height: 1.1;
      min-height: 14px;
    }

    @media (max-width: 720px) {
      :root {
        --bottom-nav-h: 64px;
        --mobile-bottom-gap: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 24px);
      }

      html,
      body {
        scroll-padding-bottom: var(--mobile-bottom-gap);
      }

      body {
        padding-bottom: var(--mobile-bottom-gap);
      }

      .how {
        padding: 18px 14px 108px;
      }

      .how-card {
        border-radius: 18px;
        padding: 16px;
      }

      .how h1 {
        font-size: 30px;
      }

      .how section {
        padding: 14px 12px 12px;
      }

      .nav-mobile-hide {
        display: none !important;
      }

      .bottom-nav {
        display: flex;
      }

      body.auth-nav-only.is-authenticated .bottom-nav {
        display: flex !important;
      }

      .bn-link {
        padding: 8px 10px;
        font-size: 12px;
      }

      .bottom-nav-status {
        font-size: 11px;
        min-height: 11px;
      }
    }
