  /* Layout: phone-first single column (most visitors arrive from TikTok/IG
     on a phone); from 880px the hero splits into pitch + live camera demo.
     One visual world: Forja's dark app, the three ring colors as the only
     ornament, green for every action. */
  :root {
    --bg: #0b0c0e;
    --panel: #141417;
    --panel-2: #1c1c1f;
    --line: #ffffff14;
    --line-strong: #ffffff26;
    --text: #f4f4f5;
    --text-2: #a3a39e;
    --text-3: #6f6f6a;
    --accent: #22c55e;
    --accent-press: #16a34a;
    --accent-tint: #22c55e1f;
    --red: #ff5a5f;
    --yellow: #ffc233;
    --teal: #2dd4bf;
    --violet: #7c5cff;
    --cream: #fff6ea;
    --ink: #1c1c1e;
    --font-display: "Archivo", "Inter", -apple-system, "Segoe UI", sans-serif;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.5 var(--font);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 0 48px;
  }
  .wrap { max-width: 1080px; margin: 0 auto; }
  a { color: inherit; }
  button, input { font: inherit; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }


  /* ---------- nav ---------- */
  nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
  .lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .lockup svg.mark { width: 30px; height: 30px; }
  .lockup svg.word { height: 22px; width: auto; }
  .nav-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border-radius: 999px; background: var(--accent);
    font-size: 15px; font-weight: 700; text-decoration: none; color: #04130a;
  }
  .nav-link:active { background: var(--accent-press); }

  /* ---------- hero ---------- */
  .hero { display: grid; gap: 40px; padding-block: 28px 56px; align-items: center; }
  @media (min-width: 880px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-block: 56px 88px; } }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  }
  .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
  h1 {
    margin: 0; font-family: var(--font-display); font-weight: 900;
    font-size: clamp(44px, 10.5vw, 84px); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance;
  }
  h1 .hl { position: relative; white-space: nowrap; }
  h1 .hl::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.12em; border-radius: 99px;
    background: linear-gradient(90deg, var(--red) 0 31%, transparent 31% 34.5%, var(--yellow) 34.5% 65.5%, transparent 65.5% 69%, var(--teal) 69%);
  }
  .lede { margin: 22px 0 0; max-width: 33em; font-size: clamp(17px, 2.2vw, 19px); line-height: 1.5; color: var(--text-2); }
  .lede b { color: var(--text); font-weight: 600; }

  .join { margin-top: 30px; max-width: 480px; }
  .join form { display: flex; gap: 8px; flex-wrap: wrap; }
  .join label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .join input {
    flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 18px;
    border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); color: var(--text); font-size: 17px;
  }
  .join input::placeholder { color: var(--text-3); }
  .join input[aria-invalid="true"] { border-color: var(--red); }
  .btn {
    flex: 1 0 auto; min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--accent); color: #04130a; font-size: 17px; font-weight: 700;
  }
  .btn:active { background: var(--accent-press); }
  .form-error { min-height: 20px; margin: 8px 0 0; font-size: 14px; color: var(--red); }
  .founder-line { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
  .founder-line b { color: var(--text); }
  .beta-link {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 14px;
    border: 1.5px solid var(--accent); border-radius: 14px; background: var(--accent-tint);
    font-size: 17px; font-weight: 700; color: var(--accent); text-decoration: none;
  }
  .beta-link:active { background: #22c55e33; }
  .beta-link svg { width: 18px; height: 18px; }

  /* after joining */
  .joined { display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
  .joined-top { display: flex; align-items: center; gap: 14px; }
  .joined-top svg { width: 56px; height: 64px; flex-shrink: 0; }
  .joined h2 { margin: 0; font: 800 22px/1.15 var(--font-display); letter-spacing: -0.01em; }
  .joined p { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
  .place { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
  .ref { display: flex; gap: 8px; }
  .ref code {
    flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; min-height: 48px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--line); font: 500 15px var(--font); color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .btn.small { min-height: 48px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

  /* ---------- the camera demo ---------- */
  /* Narrower on phones so the faint ring behind it stays on screen. */
  .demo { position: relative; justify-self: center; width: min(100% - 64px, 340px); }
  .demo-ring { position: absolute; inset: -6% -9%; pointer-events: none; opacity: 0.16; }
  .phone {
    position: relative; aspect-ratio: 9 / 17; border-radius: 44px; padding: 10px;
    background: #050506; border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px -30px #000, 0 0 0 6px #ffffff08;
  }
  .screen {
    position: relative; height: 100%; border-radius: 34px; overflow: hidden;
    background: radial-gradient(120% 70% at 50% 35%, #23252a 0%, #141518 70%);
    display: flex; flex-direction: column;
  }
  .screen-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
  .live { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
  .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
  @keyframes blink { 50% { opacity: 0.25; } }
  .count-wrap { text-align: center; padding-top: 18px; }
  .count { display: block; font: 900 88px/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
  .count.bump { animation: bump 0.32s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes bump { 40% { transform: scale(1.12); color: var(--accent); } }
  .count-label { font-size: 13px; color: var(--text-2); }
  .stage { flex: 1; position: relative; }
  .stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .screen-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 20px; }
  .verified {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 700;
  }
  .verified svg { width: 14px; height: 14px; }
  .mini-ring { width: 40px; height: 40px; }
  .state-line { font-size: 13px; color: var(--text-2); }

  /* ---------- sections ---------- */
  section { padding-block: 56px; border-top: 1px solid var(--line); }
  .kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
  h2.big { margin: 0; font: 900 clamp(32px, 6.4vw, 52px)/1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; max-width: 16em; }
  .sub { margin: 16px 0 0; max-width: 36em; color: var(--text-2); font-size: 17px; }

  .proof { display: grid; gap: 12px; margin-top: 32px; }
  @media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
  .proof article { padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
  .proof .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
  .proof .icon svg { width: 24px; height: 24px; }
  .proof h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
  .proof p { margin: 0; color: var(--text-2); font-size: 15px; }

  .split { display: grid; gap: 32px; align-items: center; }
  @media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

  /* ring section */
  .ring-card { padding: 28px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 22px; justify-items: center; }
  .ring-big { position: relative; width: min(220px, 60vw); }
  .ring-big > svg:first-child { display: block; width: 100%; height: auto; }
  /* The pet (pet.js), sized like inside Today's closed ring. */
  .ring-big .pet-face { position: absolute; top: 50%; left: 50%; width: 66%; height: auto; transform: translate(-50%, -50%); }
  .forja-pet { overflow: visible; }
  .forja-pet .pet-shadow { fill: var(--text); fill-opacity: 0.14; }
  .forja-pet .pet-orb { transform-box: fill-box; transform-origin: 50% 100%; }
  .forja-pet .pet-spark { transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.7s ease-in; }
  .ring-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; text-align: center; }
  .ring-stats b { display: block; font: 800 24px var(--font-display); font-variant-numeric: tabular-nums; }
  .ring-stats span { font-size: 13px; color: var(--text-2); }
  .ring-stats .r b { color: var(--red); } .ring-stats .y b { color: var(--yellow); } .ring-stats .t b { color: var(--teal); }
  .streak-row { display: flex; gap: 6px; }
  .streak-row span { width: 30px; height: 30px; border-radius: 8px; background: #22c55e; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #04130a; }
  .streak-row span.rest { background: #247644; color: var(--text); }
  .streak-row span.rest svg { width: 14px; height: 14px; }
  .streak-row span.today { outline: 2px solid var(--text); outline-offset: 2px; }
  .streak-caption { font-size: 14px; color: var(--text-2); margin-top: -10px; }
  .points { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
  .points li { display: flex; gap: 12px; color: var(--text-2); font-size: 16px; }
  .points li b { color: var(--text); font-weight: 600; }
  .dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }

  /* friends section */
  .social { display: grid; gap: 12px; }
  .feed-card { padding: 16px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 10px; }
  .fc-head { display: flex; align-items: center; gap: 10px; }
  .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
  .fc-name { flex: 1; font-weight: 700; font-size: 15px; }
  .fc-time { font-size: 13px; color: var(--text-2); }
  .fc-kind { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #d4a373; }
  .fc-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .fc-stats b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .fc-stats span { font-size: 12px; color: var(--text-2); }
  .fc-foot { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
  .fc-foot svg { width: 22px; height: 22px; color: var(--red); }
  .row-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
  .row-card .who { flex: 1; min-width: 0; }
  .row-card .who b { display: block; font-size: 15px; }
  .row-card .who span { font-size: 13px; color: var(--text-2); }
  .pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-tint); border: 1px solid #22c55e73; }
  .medal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #c08a1233; color: #f0c04a; }
  .pts { font-weight: 700; font-variant-numeric: tabular-nums; }

  /* founder offer */
  .offer {
    position: relative; overflow: hidden; display: grid; gap: 28px; padding: clamp(24px, 5vw, 48px);
    border-radius: 32px; background: var(--panel); border: 1px solid var(--line-strong);
  }
  @media (min-width: 880px) { .offer { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
  .offer-ring { position: absolute; width: 520px; right: -170px; top: -170px; opacity: 0.12; pointer-events: none; }
  .price { position: relative; display: grid; gap: 6px; padding: 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
  .price .now { font: 900 56px/1 var(--font-display); letter-spacing: -0.03em; }
  .price .now small { font: 600 17px var(--font); letter-spacing: 0; color: var(--text-2); }
  .price .then { font-size: 17px; color: var(--text); }
  .price .then s { color: var(--text-3); margin-left: 6px; }
  .price ul { margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
  .price li { display: flex; gap: 10px; }
  .price li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
  .offer .btn { margin-top: 24px; }

  /* faq */
  .faq { display: grid; gap: 8px; margin-top: 28px; max-width: 760px; }
  details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
  summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  summary svg { width: 18px; height: 18px; color: var(--text-2); transition: transform 0.2s; flex-shrink: 0; }
  details[open] summary svg { transform: rotate(45deg); }
  details p { margin: 0; padding: 0 18px 18px; color: var(--text-2); font-size: 16px; max-width: 40em; }

  footer { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
  footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
  footer nav { padding: 0; gap: 20px; }

  @media (prefers-reduced-motion: reduce) {
    .live i, .count.bump { animation: none; }
    summary svg { transition: none; }
  }

  /* ---------- real-page additions ---------- */
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .btn:disabled { opacity: 0.6; cursor: default; }
  .ref-actions { display: flex; gap: 8px; }
  .ref-actions .btn { flex: 1 1 0; }
  .btn.ghost { background: none; color: var(--text); border: 1px solid var(--line-strong); }
  .joined .fine { font-size: 13px; color: var(--text-3); margin: 0; }
