/* My Journey — the personal surface.
 *
 * After Ramp (ramp.design, Oct 2026 references in docs/design-references):
 * very little on the page, and what is there is large, light and exact. Big
 * Geist headlines at weight 300 with tight tracking; section titles that carry
 * a small count; hairline cards with no shadow at rest; one accent used only
 * where something needs a hand (Journey gold where Ramp uses lime); a detail
 * drawer that slides over the page instead of navigating away.
 *
 * Journey's warmth comes from the ground and the temperature of the neutrals,
 * not from decoration (.impeccable.md principle 2). Every value below is a
 * token; nothing further down invents a colour or a size.
 *
 * Everything is scoped to body.j: application.html.erb links every stylesheet
 * (stylesheet_link_tag :all), so a bare :root token or reset here would
 * repaint the admin and partner pages.
 */

body.j {
  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #f6f3ec;
  --bg-2: #efeadf;
  --surface: #ffffff;
  --surface-2: #fbf9f4;
  --ink: #1a1916;
  --ink-2: #48453e;
  --ink-3: #78746a;
  --ink-4: #a6a196;
  --line: #e7e1d3;
  --line-2: #d9d1be;

  --gold: #c4a35a;
  --gold-deep: #a8873f;
  --gold-ink: #6f5620;
  --gold-soft: #f3ead2;
  --gold-wash: #faf5e7;
  --teal: #0d7a70;
  --teal-soft: #e2f1ee;
  --coral: #b4303e;
  --coral-soft: #f8e6e6;
  --amber: #a14c0b;
  --amber-soft: #f8ecdc;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-drawer: -24px 0 60px -30px rgba(40, 34, 20, 0.28);
  --shadow-pop: 0 1px 2px rgba(40, 34, 20, 0.05), 0 12px 30px -18px rgba(40, 34, 20, 0.22);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --rail: 252px;
  --content: 1040px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.j *, body.j *::before, body.j *::after { box-sizing: border-box; }
body.j {
  margin: 0; padding: 0;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "tnum" 0;
}
.j a { color: inherit; text-decoration: none; }
.j button { font: inherit; color: inherit; }
.j img, .j svg { display: block; }
.j :focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 6px; }
.j .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ── frame ─────────────────────────────────────────────────────────── */
.j-frame { display: flex; min-height: 100vh; min-height: 100dvh; }

.j-rail {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  width: var(--rail); flex: 0 0 var(--rail);
  display: flex; flex-direction: column;
  padding: var(--s5) var(--s4) var(--s4);
  border-right: 1px solid var(--line);
}
.j-brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--s2); height: 32px; font-size: 17px; letter-spacing: -0.02em; }
.j-brand img { width: 24px; height: 24px; object-fit: contain; }
.j-nav { margin-top: var(--s6); display: flex; flex-direction: column; gap: 2px; }
.j-nav-label { margin: var(--s5) var(--s2) var(--s2); font-size: 11.5px; color: var(--ink-4); letter-spacing: 0.01em; }
.j-nav a {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 var(--s2) 0 10px; border-radius: var(--r-sm);
  color: var(--ink-3); font-size: 15px; letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s;
}
.j-nav a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.j-nav a:hover { color: var(--ink); background: var(--bg-2); }
.j-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.j-nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11.5px; display: grid; place-items: center; }
.j-rail-foot { margin-top: auto; padding: var(--s3) var(--s2) 0; border-top: 1px solid var(--line); }
.j-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.j-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.j-me .who { min-width: 0; }
.j-me .who b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-me .who span { display: block; font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-signout { margin-top: var(--s2); background: none; border: 0; padding: 4px 0; color: var(--ink-4); font-size: 12.5px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.j-signout:hover { color: var(--ink-2); }
.j-signout svg { width: 14px; height: 14px; }

.j-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.j-top {
  position: sticky; top: 0; z-index: 30;
  height: 56px; display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s8);
  background: rgba(246, 243, 236, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.j-top .mini { font-size: 15px; letter-spacing: -0.01em; opacity: 0; transform: translateY(6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.j-scrolled .j-top { border-bottom-color: var(--line); }
.j-scrolled .j-top .mini { opacity: 1; transform: none; }
.j-top .spacer { flex: 1; }
.j-top .mobile-only { display: none; }

.j-content { width: 100%; max-width: calc(var(--content) + 2 * var(--s8)); padding: var(--s5) var(--s8) var(--s8); }

/* ── type ──────────────────────────────────────────────────────────── */
.j-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.j-title { margin: 0; font-weight: 300; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
.j-sub { margin: var(--s3) 0 0; color: var(--ink-3); font-size: 15.5px; max-width: 60ch; }
.j-sub b { color: var(--ink-2); font-weight: 500; }
.j-head-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

.j-section { margin-top: var(--s8); }
.j-section:first-of-type { margin-top: var(--s7); }
.j-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px var(--s4); margin-bottom: var(--s4); }
.j-section-head .j-h2 { white-space: nowrap; }
.j-h2 { margin: 0; font-weight: 300; font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; }
.j-h2 .c { font-size: 14px; color: var(--ink-4); letter-spacing: 0; margin-left: 6px; vertical-align: 2px; }
.j-h3 { margin: 0; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.j-note { color: var(--ink-3); font-size: 13.5px; }
.j-muted { color: var(--ink-4); }
.j-label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.j-link { color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color 0.15s, color 0.15s; }
.j-link:hover { color: var(--ink); border-color: var(--ink-3); }
.j-link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; }
.j-link-arrow svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.j-link-arrow:hover svg { transform: translateX(2px); }

/* ── controls ──────────────────────────────────────────────────────── */
.j-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 var(--s4); border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-size: 14.5px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.j-btn svg { width: 16px; height: 16px; }
.j-btn:hover { border-color: var(--ink-4); }
.j-btn:active { transform: translateY(1px); }
.j-btn.primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.j-btn.primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.j-btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.j-btn.dark:hover { background: #2e2c27; }
.j-btn.ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.j-btn.ghost:hover { color: var(--ink); background: var(--bg-2); }
.j-btn.danger { color: var(--coral); }
.j-btn.danger:hover { border-color: var(--coral); }
.j-btn.small { height: 32px; padding: 0 12px; font-size: 13.5px; }
.j-btn.block { width: 100%; }
.j-btn[disabled] { opacity: 0.5; cursor: default; }
.j-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.j-icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.j-icon-btn svg { width: 18px; height: 18px; }

.j-input, .j-textarea, .j-select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.j-textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.j-input:focus, .j-textarea:focus, .j-select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-soft); }
.j-input::placeholder, .j-textarea::placeholder { color: var(--ink-4); }
.j-field { margin-bottom: var(--s4); }
.j-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-4); }
.j-error { margin-top: 6px; font-size: 13px; color: var(--coral); }

/* segmented + chip choices are radio/checkbox inputs, styled; no JS needed */
.j-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border-radius: 10px; flex-wrap: wrap; }
.j-seg input { position: absolute; opacity: 0; pointer-events: none; }
.j-seg label { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 8px; font-size: 14px; color: var(--ink-3); cursor: pointer; transition: background 0.15s, color 0.15s; }
.j-seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(40, 34, 20, 0.08); }
.j-seg input:focus-visible + label { outline: 2px solid var(--gold-deep); outline-offset: 1px; }

.j-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.j-chips input { position: absolute; opacity: 0; pointer-events: none; }
.j-chips label {
  height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface);
  font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all 0.15s;
}
.j-chips label svg { width: 15px; height: 15px; color: var(--ink-4); }
.j-chips input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.j-chips input:checked + label svg { color: var(--gold); }
.j-chips input:focus-visible + label { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.j-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; cursor: pointer; }
.j-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 18px; }

.j-toggle { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 42px; }
.j-toggle input { opacity: 0; width: 0; height: 0; }
.j-toggle span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: background 0.2s; cursor: pointer; }
.j-toggle span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform 0.2s var(--ease); }
.j-toggle input:checked + span { background: var(--teal); }
.j-toggle input:checked + span::before { transform: translateX(18px); }
.j-toggle input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ── surfaces ──────────────────────────────────────────────────────── */
.j-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.j-card.pad { padding: var(--s5); }
.j-card.hover { transition: border-color 0.15s, box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.j-card.hover:hover { border-color: var(--line-2); box-shadow: var(--shadow-pop); }
.j-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.j-grid.two { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

.j-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.j-row { display: flex; align-items: center; gap: var(--s4); padding: 14px var(--s5); border-top: 1px solid var(--line); min-height: 60px; }
.j-row:first-child { border-top: 0; }
a.j-row, button.j-row { width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; transition: background 0.15s; }
a.j-row:hover, button.j-row:hover { background: var(--surface-2); }
.j-row .main { flex: 1; min-width: 0; }
.j-row .main b { display: block; font-weight: 400; font-size: 15px; letter-spacing: -0.01em; }
.j-row .main span { display: block; font-size: 13px; color: var(--ink-4); margin-top: 2px; }
.j-row .end { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; text-align: right; }
.j-row .chev { color: var(--ink-4); }
.j-row .chev.is-blank { visibility: hidden; }
.j-row .chev svg { width: 16px; height: 16px; }
.j-row .glyph { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 99px; display: grid; place-items: center; background: var(--bg); color: var(--ink-3); }
.j-row .glyph svg { width: 17px; height: 17px; }
.j-row .glyph.gold { background: var(--gold-soft); color: var(--gold-ink); }
.j-row .glyph.teal { background: var(--teal-soft); color: var(--teal); }
.j-empty { padding: var(--s6) var(--s5); text-align: left; color: var(--ink-3); font-size: 14.5px; }
.j-empty b { display: block; color: var(--ink); font-weight: 400; font-size: 17px; letter-spacing: -0.015em; margin-bottom: 4px; }

.j-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--bg-2); color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.j-chip svg { width: 12px; height: 12px; }
.j-chip.gold { background: var(--gold-soft); color: var(--gold-ink); }
.j-chip.teal { background: var(--teal-soft); color: var(--teal); }
.j-chip.coral { background: var(--coral-soft); color: var(--coral); }
.j-chip.amber { background: var(--amber-soft); color: var(--amber); }

/* a calm banner for the one thing that needs doing */
.j-banner { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r); background: var(--gold-wash); border: 1px solid var(--gold-soft); margin-top: var(--s6); }
.j-banner .glyph { width: 36px; height: 36px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex: 0 0 36px; }
.j-banner .glyph svg { width: 18px; height: 18px; }
.j-banner .text { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink-2); }
.j-banner .text b { display: block; color: var(--ink); font-weight: 500; }
.j-banner.quiet { background: var(--surface); border-color: var(--line); }
.j-banner.quiet .glyph { background: var(--bg-2); color: var(--ink-3); }

.j-flash { margin: 0 0 var(--s5); padding: 12px var(--s4); border-radius: var(--r-sm); font-size: 14px; background: var(--teal-soft); color: var(--teal); display: flex; gap: 10px; align-items: center; }
.j-flash.alert { background: var(--coral-soft); color: var(--coral); }
.j-flash svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ── questions ─────────────────────────────────────────────────────── */
.j-ask { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.j-ask .q { font-size: 21px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.3; }
.j-ask .q::first-letter { text-transform: uppercase; }
.j-ask .meta { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.j-options { display: flex; flex-direction: column; gap: var(--s2); }
.j-option { position: relative; }
.j-option input { position: absolute; opacity: 0; pointer-events: none; }
.j-option label {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  font-size: 15px; transition: border-color 0.15s, background 0.15s;
}
.j-option label .l { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12.5px; color: var(--ink-3); flex: 0 0 26px; font-family: var(--mono); }
.j-option label:hover { border-color: var(--ink-4); }
.j-option input:checked + label { border-color: var(--ink); background: var(--surface-2); }
.j-option input:checked + label .l { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.j-option input:focus-visible + label { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.j-ask-actions { display: flex; gap: var(--s2); align-items: center; }
.j-ask-actions .spacer { flex: 1; }

/* ── memories ──────────────────────────────────────────────────────── */
.j-mem { padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: 10px; min-height: 132px; }
@media (max-width: 920px) { .j-mem { min-height: 0; } }
.j-mem .content { font-size: 17px; font-weight: 300; letter-spacing: -0.015em; line-height: 1.35; flex: 1; }
.j-mem .foot { display: flex; align-items: center; gap: var(--s2); justify-content: space-between; font-size: 12.5px; color: var(--ink-4); }
.j-mem.add { border-style: dashed; background: transparent; align-items: flex-start; justify-content: center; color: var(--ink-3); cursor: pointer; }
.j-mem.add:hover { color: var(--ink); border-color: var(--ink-4); }
.j-mem.add svg { width: 20px; height: 20px; }
.j-mem.done .content { color: var(--ink-3); }

/* ── conversation ──────────────────────────────────────────────────── */
.j-thread { display: flex; flex-direction: column; gap: 10px; padding: var(--s5); }
.j-bubble { max-width: min(78%, 540px); padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.j-bubble.out { align-self: flex-start; background: var(--bg-2); color: var(--ink); border-bottom-left-radius: 6px; }
.j-bubble.in { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.j-stamp { font-size: 11.5px; color: var(--ink-4); align-self: center; margin: 8px 0 2px; }
.j-bubble.journal { background: var(--gold-wash); color: var(--ink); border: 1px solid var(--gold-soft); }
.j-bubble-note { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11px; color: var(--gold-ink); white-space: normal; }

/* ── stat row (Ramp's "Total balance") ─────────────────────────────── */
.j-stats { display: flex; gap: var(--s7); flex-wrap: wrap; margin-top: var(--s6); }
.j-stat .k { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.j-stat .v { margin-top: 4px; font-size: 34px; font-weight: 300; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.j-stat .v small { font-size: 15px; color: var(--ink-3); letter-spacing: -0.01em; margin-left: 4px; }

/* ── tabs ──────────────────────────────────────────────────────────── */
.j-tabs { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); margin-top: var(--s6); overflow-x: auto; scrollbar-width: none; }
.j-tabs a { padding: 0 0 12px; font-size: 15px; color: var(--ink-3); border-bottom: 1.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.j-tabs a:hover { color: var(--ink); }
.j-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ── drawer (Ramp's detail panel) ──────────────────────────────────── */
.j-drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.j-drawer .scrim { position: absolute; inset: 0; background: rgba(246, 243, 236, 0.6); opacity: 0; transition: opacity 0.3s var(--ease); }
.j-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw);
  background: var(--surface); box-shadow: var(--shadow-drawer); border-left: 1px solid var(--line);
  transform: translateX(104%); transition: transform 0.38s var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
}
.j-drawer.open { pointer-events: auto; }
.j-drawer.open .scrim { opacity: 1; }
.j-drawer.open .panel { transform: none; }
.j-drawer .bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) var(--s5) 0; }
.j-drawer .body { flex: 1; overflow-y: auto; padding: var(--s4) var(--s6) var(--s7); }
.j-drawer h2 { margin: var(--s3) 0 0; font-weight: 300; font-size: 36px; letter-spacing: -0.035em; line-height: 1.1; }
.j-drawer .meta { margin-top: var(--s2); color: var(--ink-3); font-size: 14px; }
.j-drawer hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.j-kv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.j-kv dt { font-size: 12.5px; color: var(--ink-3); }
.j-kv dd { margin: 4px 0 0; font-size: 17px; font-weight: 300; letter-spacing: -0.015em; }

/* ── signup / setup ────────────────────────────────────────────────── */
.j-solo { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.j-solo .tell { position: relative; padding: var(--s7) var(--s8); display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 80% at 20% 10%, #fffdf8 0%, var(--bg) 55%, var(--bg-2) 100%); }
.j-solo .tell::after { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(196, 163, 90, 0.22), rgba(196, 163, 90, 0) 70%); filter: blur(20px); pointer-events: none; }
.j-solo .tell .j-title { margin-top: auto; font-size: clamp(44px, 5.4vw, 76px); max-width: 11ch; }
.j-solo .tell .j-sub { font-size: 17px; max-width: 34ch; }
.j-solo .tell .phone { margin-top: var(--s7); max-width: 340px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.j-solo .form { padding: var(--s7) var(--s8); display: flex; flex-direction: column; justify-content: center; background: var(--surface); border-left: 1px solid var(--line); }
.j-solo .form-inner { width: 100%; max-width: 440px; margin: 0 auto; }
.j-step + .j-step { padding-top: var(--s5); margin-top: var(--s5); border-top: 1px solid var(--line); }
.j-step-n { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.j-step h3 { margin: 6px 0 var(--s3); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; }
.j-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.j-fine { font-size: 12.5px; color: var(--ink-4); line-height: 1.5; }
.j-fine a { border-bottom: 1px solid var(--line-2); }

/* ── reveal on scroll ──────────────────────────────────────────────── */
.j-reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.j-reveal.in { opacity: 1; transform: none; }
.no-js .j-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .j-reveal { opacity: 1; transform: none; transition: none; }
  .j-drawer .panel, .j-drawer .scrim, .j-top .mini { transition: none; }
}

/* ── mobile ────────────────────────────────────────────────────────── */
.j-tabbar { display: none; }
@media (max-width: 920px) {
  .j-rail { display: none; }
  .j-top { padding: 0 var(--s4); height: 56px; }
  .j-top .mobile-only { display: flex; align-items: center; gap: 10px; }
  .j-top .mobile-only img { width: 24px; height: 24px; }
  .j-content { padding: var(--s3) var(--s4) calc(var(--s8) + 64px); }
  .j-section, .j-section:first-of-type { margin-top: var(--s7); }
  .j-h2 { font-size: 25px; }
  .j-grid.two { grid-template-columns: 1fr; }
  .j-row { padding: 12px var(--s4); }
  .j-stats { gap: var(--s5); }
  .j-stat .v { font-size: 28px; }
  .j-drawer .body { padding: var(--s3) var(--s5) var(--s7); }
  .j-drawer h2 { font-size: 30px; }
  .j-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .j-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--ink-4); border-radius: 10px; }
  .j-tabbar a svg { width: 21px; height: 21px; }
  .j-tabbar a[aria-current="page"] { color: var(--ink); }
  .j-solo { grid-template-columns: 1fr; }
  .j-solo .tell { padding: var(--s6) var(--s4) var(--s5); min-height: auto; }
  .j-solo .tell .j-title { margin-top: var(--s7); font-size: 44px; }
  .j-solo .tell .phone { display: none; }
  .j-solo .form { padding: var(--s5) var(--s4) var(--s7); border-left: 0; border-top: 1px solid var(--line); }
  .j-two { grid-template-columns: 1fr; gap: 0; }
  .j-kv { grid-template-columns: 1fr; }
}
/* Phones: a row's date moves under its words instead of squeezing them into
   a narrow column. Only rows that have one (glyph, main, end, chevron). */
@media (max-width: 560px) {
  .j-row:has(> .end) {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "glyph main chev" "glyph end chev"; column-gap: var(--s4); row-gap: 2px;
  }
  .j-row:has(> .end) > .glyph { grid-area: glyph; }
  .j-row:has(> .end) > .main { grid-area: main; }
  .j-row:has(> .end) > .end { grid-area: end; text-align: left; white-space: normal; font-size: 12.5px; }
  .j-row:has(> .end) > .chev { grid-area: chev; }
}
