/* TradeFlow design system — shared by the landing page and the account pages.
   Ink + copper + mint. Fraunces (display) and Inter (interface). */

:root {
  --ink: #090e1a;
  --ink-2: #0f1729;
  --ink-3: #172238;
  --ink-line: rgba(255, 255, 255, 0.08);
  --cream: #f6f1e8;
  --paper: #fbf8f3;
  --white: #ffffff;
  --text: #e9edf6;
  --text-dim: #9aa6bf;
  --on-light: #17203a;
  --on-light-dim: #5a6682;
  --line: rgba(23, 32, 58, 0.1);
  --copper: #e4a85c;
  --copper-hi: #f4c98a;
  --copper-lo: #b9772f;
  --mint: #62e6c5;
  --rose: #ff8a8a;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-lg: 0 40px 80px -30px rgba(5, 10, 25, 0.55), 0 12px 30px -12px rgba(5, 10, 25, 0.4);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
.display em { font-style: italic; font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; }
.btn-primary {
  color: #1c1204;
  background: linear-gradient(180deg, var(--copper-hi) 0%, var(--copper) 55%, #d2923f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 14px 30px -10px rgba(228, 168, 92, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 20px 38px -10px rgba(228, 168, 92, 0.75); }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); background: var(--ink-3); }
.btn-outline { color: var(--on-light); border-color: var(--line); background: transparent; }
.btn-outline:hover { border-color: var(--on-light); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Forms (account pages) ─────────────────────────────── */
.field { display: block; margin-bottom: 18px; }
.field > span, .field-label {
  display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text);
}
.input {
  width: 100%; padding: 15px 16px; border-radius: 14px;
  color: var(--text); font: inherit; font-size: 15px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #6c7894; }
.input:hover { border-color: rgba(255,255,255,0.22); }
.input:focus { outline: none; border-color: var(--copper); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 4px rgba(228,168,92,0.16); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa6bf' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.input option { color: #17203a; }
.alert {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px;
  border-radius: 14px; font-size: 14px; line-height: 1.5;
  color: #ffd2d2; background: rgba(255, 99, 99, 0.1); border: 1px solid rgba(255, 120, 120, 0.3);
}
.alert-ok { color: #c9fff0; background: rgba(98, 230, 197, 0.1); border-color: rgba(98, 230, 197, 0.32); }
.link { color: var(--copper-hi); text-decoration: none; border-bottom: 1px solid rgba(244,201,138,0.35); transition: border-color 0.2s, color 0.2s; }
.link:hover { color: #fff; border-color: #fff; }

/* Choice cards (radio groups) */
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; margin-bottom: 10px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); transition: border-color 0.2s, background 0.2s; }
.choice:hover { border-color: rgba(255,255,255,0.3); }
.choice:has(input:checked) { border-color: var(--copper); background: rgba(228,168,92,0.09); }
.choice input { margin-top: 4px; accent-color: var(--copper); }
.choice strong { display: block; font-size: 14.5px; color: var(--text); font-weight: 600; }
.choice small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-dim); line-height: 1.45; }

/* ── Account pages: split layout ───────────────────────── */
.auth {
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--ink); color: var(--text);
}
.auth-aside {
  position: relative; overflow: hidden; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(228,168,92,0.22), transparent 60%),
    radial-gradient(700px 600px at 100% 110%, rgba(98,230,197,0.14), transparent 60%),
    linear-gradient(160deg, #0d1426 0%, #080c18 100%);
  border-right: 1px solid var(--ink-line);
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 72%);
}
.brand { position: relative; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--copper-hi), var(--copper-lo)); box-shadow: 0 8px 20px -6px rgba(228,168,92,0.6); }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { font-weight: 500; color: var(--text-dim); font-size: 13px; margin-left: 2px; }
.auth-pitch { position: relative; max-width: 460px; }
.auth-pitch .display { font-size: clamp(34px, 3.6vw, 52px); color: #fff; margin: 0 0 20px; }
.auth-pitch .display em { color: var(--copper-hi); }
.auth-pitch p { color: var(--text-dim); font-size: 16.5px; margin: 0 0 28px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.auth-points i { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 12px; color: #062a21; background: var(--mint); }
.auth-foot { position: relative; color: var(--text-dim); font-size: 13px; }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; margin-bottom: 26px; }
.wave span { width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--mint), rgba(98,230,197,0.25)); animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 8px; opacity: 0.5; } 50% { height: 40px; opacity: 1; } }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 28px; position: relative; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 500; font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; color: #fff; margin: 0 0 10px; }
.auth-card .lede { color: var(--text-dim); margin: 0 0 30px; font-size: 15.5px; }
.auth-alt { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--text-dim); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 22px; font-size: 13.5px; }
.divider { height: 1px; background: var(--ink-line); margin: 28px 0; }
.mobile-brand { display: none; }

@media (max-width: 920px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 28px 22px 48px; align-items: flex-start; background:
    radial-gradient(600px 360px at 0% 0%, rgba(228,168,92,0.16), transparent 60%),
    radial-gradient(500px 400px at 100% 100%, rgba(98,230,197,0.1), transparent 60%), var(--ink); }
  .mobile-brand { display: inline-flex; margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Account page extras ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-2 .span-2 { grid-column: span 2; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .grid-2 .span-2 { grid-column: auto; } }
.auth-card.wide { max-width: 540px; }
.hidden { display: none !important; }
.spin { width: 18px; height: 18px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fine-print { margin-top: 18px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
.group-title { margin: 6px 0 10px; font-size: 13px; font-weight: 600; color: var(--text); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: n; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 15px; }
.next-steps li::before { counter-increment: n; content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #1c1204; background: linear-gradient(145deg, var(--copper-hi), var(--copper)); }
.next-steps li:last-child::before { content: "✓"; background: var(--mint); color: #062a21; }
.next-steps small { color: var(--text-dim); }

.rec { margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1c1204; background: var(--copper-hi); vertical-align: 1px; white-space: nowrap; }
