/* ============ DwellFlow tokens (clay + brass + espresso) ============ */
:root {
  --brand: #B4532A; --brand-hi: #D0703F; --brand-ink: #7A3216; --tint: #FBEEE6; --tint-2: #F6DFD1;
  --accent: #C9A24B; --accent-hi: #E9C46A; --accent-ink: #7A5B14; --accent-tint: #FAF1DC;
  --side: #23170F; --side-hi: #33231A; --side-line: #43302400; --side-ink: #D9C6B6; --side-mute: #9C8676;
  --bg: #F5F0EB; --surface: #FFFFFF; --raised: #FFFFFF; --soft: #FAF6F2; --hair: #EFE6DE; --line: #E2D5C9;
  --ink: #1F1611; --ink-2: #3E3129; --muted: #7D6C60; --faint: #A89688;
  --ok: #2F7A55; --ok-tint: #E4F2EA; --warn: #B7791F; --warn-tint: #FBF0DB; --bad: #C2412D; --bad-tint: #FBE6E2; --info: #3D5A80; --info-tint: #E6EDF6;
  --sh: 0 1px 2px rgba(35, 23, 15, .04), 0 6px 18px rgba(35, 23, 15, .06);
  --sh-lift: 0 2px 6px rgba(35, 23, 15, .06), 0 22px 50px rgba(35, 23, 15, .16);
  --r: 18px; --r-sm: 12px; --r-lg: 26px;
  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grad-hero: linear-gradient(135deg, #2A1A10 0%, #5A2A15 52%, #A2492A 100%);
  --grad-brand: linear-gradient(135deg, #D0703F, #9C4220);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; text-wrap: balance; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---- logo ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .mark { flex: none; filter: drop-shadow(0 4px 10px rgba(142, 58, 28, .28)); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.logo-name b { font-weight: 700; color: var(--brand); }
.logo-by { font-size: 10.5px; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }
.logo-light { color: #fff; } .logo-light .logo-name b { color: var(--accent-hi); } .logo-light .logo-by { color: rgba(255, 240, 228, .62); }

/* ---- icons ---- */
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; } .i-lg { width: 22px; height: 22px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(180, 83, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(180, 83, 42, .36), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-dark { background: var(--side); color: #fff; } .btn-dark:hover { background: #3A271B; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--tint); color: var(--brand-ink); } .btn-soft:hover { background: var(--tint-2); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); } .btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-gold { background: linear-gradient(135deg, #F0CF7A, #C9A24B); color: #3B2A07; box-shadow: 0 6px 16px rgba(201, 162, 75, .35); }
.btn-danger { background: var(--bad-tint); color: var(--bad); } .btn-danger:hover { background: #F7D6D0; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-icon { width: 40px; padding: 0; } .btn-sm.btn-icon { width: 34px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-block { width: 100%; }

/* ---- pills ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-tint); color: var(--ok); } .pill.warn { background: var(--warn-tint); color: var(--warn); } .pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.info { background: var(--info-tint); color: var(--info); } .pill.brand { background: var(--tint); color: var(--brand-ink); } .pill.gold { background: var(--accent-tint); color: var(--accent-ink); }
.pill.dark { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }

/* ---- form ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input, .field select, .field textarea { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(180, 83, 42, .12); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237D6C60' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 1px 0 0; flex: none; }

/* ---- cards ---- */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--sh); }
.eyebrow { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.muted { color: var(--muted); }

@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
