/* The site pages wear the studio's clothes: the JustGains paper palette,
   racing-yellow accent, ink pills for emphasis and Montserrat throughout.
   Tokens are copied from the studio (JustImagine's justimagine.html) — keep
   them in step. No #000/#fff, no gradients; elevation comes from surface steps. */
:root {
  color-scheme: light;
  --bg: #f4f1ea; --surface: #f8f5ee; --surface-2: #ebe7de; --surface-3: #e1dbcc;
  --border: #dcd6c9; --border-strong: #c3bba8;
  --text: #171717; --text-2: #5f5a52; --text-3: #6e675a;
  --accent: #ffd51a; --accent-2: #ffbf00; --accent-hover: #7a5c00; --accent-ink: #2f2908; --accent-soft: #fff5c1; --accent-line: #ffdf41;
  --ink: #171717; --ink-text: #f4f1ea; --danger: #be0a0a; --danger-soft: #fdeceb;
  --radius: 16px;
  --sans: 'Montserrat', ui-sans-serif, -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0c0b; --surface: #151514; --surface-2: #1f1d19; --surface-3: #292620;
  --border: #2a2721; --border-strong: #453f33;
  --text: #f4f1ea; --text-2: #cfc8bb; --text-3: #8c8574;
  --accent: #f2c300; --accent-2: #ffd51a; --accent-hover: #f2c300; --accent-ink: #2f2908; --accent-soft: #2b2206; --accent-line: #574712;
  --ink: #f4f1ea; --ink-text: #171717; --danger: #fd6060; --danger-soft: #38100f;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 500 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.03em; margin: 0; }
p { margin: 0; }

/* ---------- chrome ---------- */
.nav { max-width: 1280px; margin: auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { flex: none; }
.brand .word { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.brand .word b { font-weight: 800; }
.brand .by { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.nav nav a:hover { color: var(--text); }
.nav .nav-pill { background: var(--ink); color: var(--ink-text); padding: 9px 16px; border-radius: 999px; }
.nav .nav-pill:hover { color: var(--ink-text); opacity: .88; }
footer { max-width: 1280px; margin: auto; padding: 26px 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.preview-banner { padding: 9px 20px; text-align: center; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--ink-text); }
#notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-text); padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; max-width: 90%; display: none; }
#notice.visible { display: block; }

/* ---------- shared pieces ---------- */
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease); }
.button:hover { background: var(--surface-2); border-color: var(--border-strong); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.button span { font-weight: 800; }
.wide { width: 100%; }
.small { font-size: 12px !important; color: var(--text-3); line-height: 1.65; }
.small a, .auth-alt a, .plan .small a { color: var(--accent-hover); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button { background: none; border: 0; padding: 0; color: var(--text-3); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.card, .choice, .plan, .auth-card, .wallet-grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
ul.checks, .choice ul, .plan ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; line-height: 2.3; }
.choice li:before, .plan li:before { content: '✓'; margin-right: 12px; color: var(--accent-hover); font-weight: 800; }

/* ---------- landing ---------- */
.landing, .account { max-width: 1280px; margin: auto; padding: 0 32px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 84px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; margin: 22px 0 22px; }
.hero h1 span { color: var(--text-3); }
.hero p { color: var(--text-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 30px; max-width: 520px; }
.hero-note { display: block; margin-top: 16px; max-width: 460px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.showcase { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sc-bar { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.sc-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.sc-title { font-weight: 800; font-size: 14px; letter-spacing: -.02em; flex: 1; }
.sc-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: var(--ink-text); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.sc-pill:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-grid .t { aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); }
.sc-grid .t2 { background: var(--surface-3); aspect-ratio: auto; grid-row: span 2; }
.sc-grid .t3 { background: var(--accent-soft); }
.sc-grid .t4 { background: var(--surface-3); }
.sc-grid .t5 { background: var(--accent); }
.sc-grid .busy { background: var(--surface-2); border: 2px dashed var(--border-strong); animation: pulse 1.6s ease-in-out infinite; }
.sc-composer { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 7px 7px 7px 18px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sc-go { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
@keyframes pulse { 50% { opacity: .45; } }
.features { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 34px 0; }
.features b { font-size: 13px; font-weight: 800; }
.features p { color: var(--text-2); font-size: 13.5px; line-height: 1.7; max-width: 300px; margin-top: 8px; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 88px 0; align-items: start; }
.pricing h2 { font-size: 42px; line-height: 1.12; margin: 20px 0; }
.pricing > div p { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.plan { padding: 30px; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-heading h3 { font-size: 20px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; background: var(--ink); color: var(--ink-text); padding: 6px 10px; border-radius: 999px; }
.price { font-size: 62px; font-weight: 800; letter-spacing: -.04em; margin-top: 18px; }
.price span { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 8px; }
.plan p { font-size: 13.5px; }
.plan ul { margin: 18px 0 22px; }
.plan .small { margin: 16px 0 0; }

/* ---------- choose how to create ---------- */
.welcome { max-width: 1040px; margin: auto; padding: 0 32px 90px; }
.welcome-intro { text-align: center; margin: 60px 0 34px; }
.welcome-intro .eyebrow { justify-content: center; }
.welcome-intro h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 16px 0 10px; }
.welcome-intro p { color: var(--text-2); font-size: 14.5px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice { padding: 30px; display: flex; flex-direction: column; }
.choice .eyebrow { align-self: flex-start; background: var(--surface-2); color: var(--text-2); padding: 5px 11px; border-radius: 999px; letter-spacing: .1em; }
.choice h2 { font-size: 27px; margin: 16px 0 8px; }
.choice p { font-size: 14px; line-height: 1.75; color: var(--text-2); margin: 6px 0; }
.choice .promise { display: flex; align-items: flex-start; gap: 10px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 11px 13px; font-size: 13px; font-weight: 600; line-height: 1.55; margin: 12px 0 4px; }
:root[data-theme='dark'] .choice .promise { color: var(--text); }
.choice .promise svg { flex: none; margin-top: 2px; }
.choice ul { margin: 14px 0 22px; flex: 1; }
.choice .small { text-align: center; margin-top: 14px; }

/* ---------- sign in ---------- */
.auth-page { max-width: 460px; margin: 64px auto 100px; padding: 0 24px; }
.auth-page h1 { font-size: 40px; margin: 16px 0 10px; }
.auth-page > p { font-size: 14px; color: var(--text-2); }
.auth-card { margin-top: 26px; padding: 26px; }
.auth-card label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.auth-card input { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 8px; background: var(--bg); font-weight: 500; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.auth-card input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-card label .small { display: block; margin-top: 6px; font-weight: 600; }
.divider { text-align: center; color: var(--text-3); font-size: 11.5px; font-weight: 700; margin: 20px 0; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.auth-links button { background: none; border: 0; padding: 0; color: var(--text-3); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-links button:hover { color: var(--text); }
#form-message { font-size: 13px; font-weight: 600; line-height: 1.6; }
#form-message:not(:empty) { margin-top: 14px; }
.auth-alt { margin-top: 22px; text-align: center; }

/* ---------- account ---------- */
.account { padding-top: 44px; padding-bottom: 80px; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.account h1 { font-size: 44px; margin: 14px 0 8px; }
.account p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.wallet-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; margin-top: 30px; }
.wallet-grid article { padding: 26px; }
.wallet-grid .balance-card { background: var(--accent-soft); border-color: var(--accent-line); }
:root[data-theme='dark'] .wallet-grid .balance-card { color: var(--text); }
.balance-card > strong { display: block; font-size: 60px; font-weight: 800; letter-spacing: -.04em; margin: 18px 0; }
.balance-detail { display: flex; gap: 24px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.balance-detail b { display: block; color: var(--text); font-size: 18px; font-weight: 800; margin-top: 4px; }
.wallet-grid h2 { font-size: 24px; margin: 20px 0 8px; }
.wallet-grid .button { margin-top: 16px; }
.activity { margin: 44px 0 28px; }
.activity h2 { font-size: 21px; }
.activity .section-top span { font-size: 12px; font-weight: 600; color: var(--text-3); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 800; }
td, th { padding: 15px 12px; border-bottom: 1px solid var(--border); }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow: auto; margin-top: 12px; }
#checkout-message { font-size: 13px; font-weight: 600; line-height: 1.6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .pricing { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .balance-card { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav nav { gap: 14px; font-size: 12px; }
  .brand .by { display: none; }
  .landing, .account, .welcome { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 42px; }
  .hero p br { display: none; }
  .choices, .wallet-grid { grid-template-columns: 1fr; }
  .choice, .plan { padding: 22px; }
  .section-top { align-items: flex-start; flex-direction: column; }
  .account h1 { font-size: 34px; }
  footer { padding: 22px 18px; flex-direction: column; gap: 6px; }
  .auth-page { margin: 40px auto 70px; }
}
