/* Break the Ice design system. One dark visual world; gold is money and action, blue is "insight". */
:root {
  /* Warm black + one warm gold, shared with the sales page */
  --bg: #000000; --bg-1: #0a0a0a; --bg-2: #121212; --bg-3: #1b1b1b; --bg-4: #262626; --line: rgba(255,255,255,.07);
  --fg: #f5f5f2; --fg-2: #adada8; --fg-3: #76766f;
  --gold: #d9d9d4; --gold-2: #f5f5f2; --gold-ink: #0a0a0a;
  --blue: #9fc9e8; --blue-ink: #0a1c2a;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ok: #37d67a; --warn: #ffb085; --bad: #ff8a7a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --wrap: 1120px; --gut: max(20px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--gold-ink); }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.center { text-align: center; }

/* Type */
.t-hero { font-size: clamp(44px, 6.4vw, 92px); font-weight: 800; letter-spacing: -0.048em; line-height: 1.01; text-wrap: balance; }
.t-1 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.03; text-wrap: balance; }
.t-2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.t-3 { font-size: 21px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.25; }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; color: var(--fg-2); font-weight: 500; letter-spacing: -0.017em; text-wrap: pretty; }
.lede b, .lede strong { color: var(--fg); font-weight: 600; }
.muted { color: var(--fg-2); } .dim { color: var(--fg-3); } .gold { color: var(--gold); } .blue { color: var(--blue); }
.small { font-size: 14px; } .tiny { font-size: 12.5px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }

/* Buttons */
.btn { --mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; font-size: 16.5px; font-weight: 700; letter-spacing: -0.012em; white-space: nowrap; transform: translate(var(--mx), var(--my)); transition: transform .35s var(--ease), background-color .2s, color .2s, box-shadow .3s, opacity .2s; }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 40px -12px rgba(217,217,212,.6); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 14px 48px -10px rgba(217,217,212,.75); }
.btn-light { background: var(--fg); color: #0a0a0a; } .btn-light:hover { background: #fff; }
.btn-ghost { background: var(--bg-3); color: var(--fg); } .btn-ghost:hover { background: var(--bg-4); }
.btn-danger { background: rgba(255,138,122,.14); color: var(--bad); } .btn-danger:hover { background: rgba(255,138,122,.22); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .3s var(--ease); } .btn:hover .arr { transform: translateX(4px); }
.link { color: var(--gold); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Surfaces */
.card { background: var(--bg-2); border-radius: var(--r-lg); padding: 28px; position: relative; }
.card-1 { background: var(--bg-1); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg-3); color: var(--fg-2); white-space: nowrap; }
.pill.gold { background: rgba(217,217,212,.14); color: var(--gold); }
.pill.ok { background: rgba(55,214,122,.14); color: var(--ok); }
.pill.bad { background: rgba(255,138,122,.14); color: var(--bad); }
.pill.blue { background: rgba(143,211,255,.12); color: var(--blue); }
.pill.warn { background: rgba(255,176,133,.14); color: var(--warn); }

/* Forms */
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 50px; border-radius: 14px; border: 2px solid transparent; background: var(--bg-3); color: var(--fg); padding: 0 16px; font-size: 16px; transition: border-color .2s; }
.textarea { padding: 12px 16px; min-height: 110px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.help { font-size: 13px; color: var(--fg-3); }
.err { font-size: 14px; color: var(--bad); min-height: 0; }
.check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }

/* Dialogs */
dialog { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg { width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-2); border-radius: 28px; padding: clamp(24px, 4vw, 38px); box-shadow: 0 40px 120px rgba(0,0,0,.8); animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bg-3); position: relative; flex: none; }
.x::before, .x::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2px; background: var(--fg); transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); } .x:hover { background: var(--bg-4); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--fg); color: #111; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.035em; font-size: 19px; }
.mark { width: 28px; height: 28px; border-radius: 9px; background: var(--fg); position: relative; overflow: hidden; flex: none; }
.mark::before { content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bg); }
.mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 12.5px; height: 3px; border-radius: 2px; background: var(--gold); transform-origin: left; animation: lineDraw 3.2s var(--ease) infinite; }
@keyframes lineDraw { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* Chat bubbles (used by landing demo and members area) */
.bub { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.42; }
.bub .who { display: block; font-size: 11px; font-weight: 700; color: var(--fg-3); margin-bottom: 2px; letter-spacing: .02em; }
.bub.buyer { background: var(--bg-4); border-bottom-left-radius: 6px; justify-self: start; }
.bub.you { background: var(--fg); color: #111; border-bottom-right-radius: 6px; justify-self: end; }
.bub.you .who { color: #75756f; }
.ph { color: #2b2b2b; font-weight: 700; text-decoration: underline dotted 1.5px; text-underline-offset: 3px; }
.bub.buyer .ph, .ph-dark { color: var(--gold); }
.ph.filled { color: #0b6b3a; background: rgba(55,214,122,.16); border-radius: 4px; padding: 0 2px; }
.bub.buyer .ph.filled { color: var(--ok); }
.note { border-radius: var(--r-md); padding: 14px 16px 14px 44px; background: rgba(143,211,255,.08); color: #cfeaff; font-size: 14.5px; line-height: 1.45; position: relative; }
.note::before { content: ""; position: absolute; left: 16px; top: 16px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blue); }
.note b { display: block; color: var(--blue); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

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

/* advertising consent banner */
.consent { position: fixed; z-index: 400; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--bg-2, #141414); color: var(--fg, #f5f5f2); border: 1px solid rgba(217,217,212,.4); border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); display: grid; gap: 12px; font-size: 14.5px; line-height: 1.45; }
.consent a { color: inherit; text-decoration: underline; }
.consent-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { min-height: 44px; }

.draft-panel details summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }

/* brand logo */
.mark { background: url(logo.svg) center / contain no-repeat !important; border-radius: 9px; }
.mark::before, .mark::after { display: none !important; }
/* end brand logo */

/* Break the Ice wordmark: Sora, capitals (brand/kit/guidelines) */
.logo, .nav .logo, .foot .logo, .side .logo { font-family: "Sora", var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .015em; }
.nav .logo, .foot .logo { font-size: 18px; }
.mark { border-radius: 8px !important; }
.nav .mark, .side .mark, .top .mark, .foot .mark { width: 32px; height: 32px; }
/* fill-in blanks: light on dark surfaces, dark inside light bubbles */
.ph { color: var(--fg); }
.bub.you .ph, .btn .ph { color: #2b2b2b; }
.ph.filled, .bub.you .ph.filled { color: #0b6b3a; }
.bub.buyer .ph.filled, .pr-said .ph.filled { color: var(--ok); }
