/* Extracted from public/referral.html during Eleventy migration.
   :root, font import, and global reset removed during Phase 6 token
   migration — those live in tokens.css / base.css now. */

    .container { max-width: 720px; margin: 0 auto; padding: 32px; }

    .page-header { text-align: center; margin-bottom: 40px; }
    .page-title {
      font-family: var(--font-serif);
      font-size: clamp(2rem, 4vw, 2.75rem);
      font-weight: var(--weight-medium);
      letter-spacing: var(--tracking-tight);
      line-height: 1.1;
      margin-bottom: 8px;
    }
    .page-subtitle { font-size: 15px; color: var(--text-dim); line-height: 1.6; }

    .section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
    .section-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
    .section-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

    /* How it works steps */
    .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
    .step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; text-align: center; }
    .step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent-soft); border: 1px solid var(--color-accent-ring); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--accent); margin: 0 auto 14px; }
    .step-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
    .step-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

    /* Referral link box */
    .link-box { display: flex; gap: 8px; align-items: center; }
    .link-input { flex: 1; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; font-family: var(--font-mono); outline: none; }
    .link-input:focus { border-color: var(--accent); }

    .btn-primary { color: var(--fg-on-accent); }

    /* Stats */
    .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; text-align: center; }
    .stat-value { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
    .stat-label { font-size: 12px; color: var(--text-dim); }

    /* Share buttons */
    .share-row { display: flex; gap: 10px; flex-wrap: wrap; }

    /* Terms */
    .terms { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin-top: 8px; }

    .toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; z-index: var(--z-toast); opacity: 0; transform: translateY(10px); transition: all 0.3s; }
    .toast.show { opacity: 1; transform: translateY(0); }
    .toast-success { background: var(--accent); color: var(--fg-on-accent); }

    .loading { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 14px; }

    @media (max-width: 768px) {
      .container { padding: 16px; }
      .topbar { padding: 12px 16px; }
      .topbar-nav { gap: 16px; }
      .steps-grid { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: 1fr; }
      .link-box { flex-direction: column; }
      .share-row { flex-direction: column; }
      .share-row .btn { width: 100%; justify-content: center; }
    }
