/* Pathium brand pieces shared by the home page and the beta page:
   logo mark with its glow, wordmark, tagline, buttons, and the TestFlight card. */
    main.page {
      position: relative;
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
      padding: 56px 16px 24px;
    }

    .mark-wrap {
      position: relative;
      width: min(268px, 68vw);
      aspect-ratio: 1;
      margin-bottom: 8px;
    }
    /* Soft, slow ambient glow behind the mark, same 3.4s pulse as the app. */
    .glow {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 200%;
      aspect-ratio: 1;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle,
        color-mix(in srgb, var(--accent) 100%, transparent) 0%,
        transparent 50%);
      filter: blur(12px);
      opacity: var(--glow-lo);
      animation: pulse 3.4s ease-in-out infinite alternate;
      pointer-events: none;
    }
    @keyframes pulse {
      from { opacity: var(--glow-lo); }
      to   { opacity: var(--glow-hi); }
    }
    .mark {
      position: absolute;
      inset: 0;
    }
    .mountains {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
    .mountains.day { display: none; }
    :root[data-theme="light"] .mountains.night { display: none; }
    :root[data-theme="light"] .mountains.day { display: block; }
    .path {
      position: absolute;
      inset: 0;
      background-color: var(--accent);
      -webkit-mask: url("path-mask.png") center / contain no-repeat;
              mask: url("path-mask.png") center / contain no-repeat;
    }

    .hero h1 {
      margin: 8px 0 10px;
      font-family: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: clamp(2.6rem, 13vw, 3.5rem);
      font-weight: 800;
      letter-spacing: 0.07em;
      padding-left: 0.07em; /* balances trailing letter-spacing so it centers optically */
    }
    .tagline {
      margin: 0;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.16em;
      color: var(--accent);
    }
    .words {
      display: flex;
      gap: 16px;
      justify-content: center;
      margin: 18px 0 0;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--muted);
    }
    .words b { color: var(--accent); font-weight: 600; }

    .desc {
      max-width: 40ch;
      margin: 32px 0 28px;
      line-height: 1.55;
      color: var(--muted);
      font-size: 1.02rem;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 10px 18px;
      border-radius: 999px;
      background: var(--card);
      border: 1px solid var(--line);
      font-size: 0.95rem;
      font-weight: 600;
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 10px var(--accent);
    }
    .more {
      margin: 14px 0 0;
      color: var(--muted);
      font-size: 0.92rem;
    }

    /* Beta / TestFlight card */
    .beta {
      width: 100%;
      max-width: 520px;
      margin: 0 0 32px;
      padding: 24px 22px 22px;
      text-align: left;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 22px;
    }
    .beta-head { display: flex; align-items: center; gap: 14px; }
    .beta-icon {
      flex: none;
      width: 56px;
      height: 56px;
      border-radius: 13px;
      box-shadow: 0 0 0 1px var(--line);
    }
    .beta h1, .beta h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
    .beta-sub { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); }
    .beta-ai { margin: 16px 0 18px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
    .btn {
      display: block;
      text-align: center;
      padding: 14px 18px;
      border-radius: 14px;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 1.02rem;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
    }
    .btn:hover { filter: brightness(1.08); }
    .btn:active { transform: translateY(1px); }
    .btn:focus-visible, .store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .beta-note { margin: 10px 0 0; font-size: 0.82rem; text-align: center; color: var(--muted); }
    .steps-title {
      margin: 26px 0 12px;
      font-size: 0.78rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
    }
    .steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
    .steps li {
      counter-increment: step;
      position: relative;
      padding: 0 0 16px 40px;
      font-size: 0.95rem;
      line-height: 1.5;
      color: var(--muted);
    }
    .steps li:last-child { padding-bottom: 0; }
    .steps li::before {
      content: counter(step);
      position: absolute;
      left: 0;
      top: 0;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 1px solid var(--accent);
      color: var(--accent);
      font-size: 0.8rem;
      font-weight: 700;
      display: grid;
      place-items: center;
    }
    .steps strong { color: var(--text); font-weight: 600; }
    .steps em { font-style: normal; color: var(--text); }
    .store-badge { display: inline-block; margin-top: 10px; }
    .store-badge img { display: block; height: 44px; width: auto; }

/* Big call-to-action under the logo; it takes the morphing accent color, like the logo path does. */
.btn.big {
  display: inline-block; width: auto; padding: 18px 46px; border-radius: 18px; font-size: 1.15rem; letter-spacing: 0.01em;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn.big:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; opacity: 0.2; } }

/* Beta page */
.beta-page .beta-hero { margin: 4px 0 14px; }
.beta-page .mark-wrap { width: min(150px, 42vw); }
.beta-page .beta { margin-bottom: 18px; }
.beta-foot { max-width: 520px; margin: 4px 0 28px; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.beta-foot a { color: var(--accent); text-underline-offset: 3px; }

.beta-page { justify-content: center; }
