/* =============================================================
   Regulus Liquidity — Auth UI (Sign in / Register)
   Brand: Midnight Navy #00052b · Pure White · Steel Grey · Baby Blue Eyes
   ============================================================= */

:root {
  /* Primary — Midnight Navy scale */
 --navy-900: #4303AE;
--navy-800: #5318BB;
--navy-700: #642DC8;
--navy-600: #7542D5;
--navy-500: #8657E2;

  /* Neutrals — Steel Grey scale */
  --grey-100: #a8abb0;
  --grey-200: #8d8d95;
  --grey-300: #717179;
  --grey-400: #535459;
  --grey-500: #39383d;

  /* Accents */
  --white: #ffffff;
  --baby-blue: #a0caf0;
  --ink-blue: #222a4f;
  --metallic: linear-gradient(120deg, #b9c2d6 0%, #f2f5fa 38%, #8f9bb5 62%, #dfe6f2 100%);

  /* Semantic */
  --bg: var(--navy-900);
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --text: var(--navy-900);
  --text-muted: var(--grey-300);
  --line: #e2e6ee;
  --focus: var(--navy-500);
  --danger: #c0392b;
  --success: #1e8e5a;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 1px 2px rgba(0, 5, 43, .06), 0 8px 28px rgba(0, 5, 43, .08);
  --shadow-card: 0 24px 70px rgba(0, 5, 43, .16);
  --ease: cubic-bezier(.16, .84, .44, 1);

  --font-head: "Barlow Condensed", "Heading Pro", "Archivo", system-ui, sans-serif;
  --font-body: "Barlow", "Nexa Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
}

/* ---------- Layout: split screen ---------- */
.auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ===== Left: brand panel ===== */
.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(25, 66, 190, .38) 0%, rgba(0, 5, 43, 0) 58%),
    radial-gradient(90% 70% at 100% 100%, rgba(160, 202, 240, .18) 0%, rgba(0, 5, 43, 0) 60%),
    linear-gradient(227deg, var(--navy-800) 0%, var(--navy-900) 70%);
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* colour gradient over the image (keeps white text readable) */
    linear-gradient(175deg, rgba(58, 14, 160, .94) 0%, rgba(62, 8, 168, .88) 55%, rgba(75, 18, 182, .74) 80%, rgba(100, 45, 200, .5) 100%),
    url("../img/panel-bg-spider.png") no-repeat center bottom / cover;
  pointer-events: none;
}
.brand-panel::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(160, 202, 240, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 202, 240, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 30% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.brand-panel > * { position: relative; z-index: 1; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 40px; height: 40px; }
.logo-word { font-family: var(--font-head); text-transform: uppercase; line-height: 1; }
.logo-word b { display: block; font-size: 20px; letter-spacing: .18em; font-weight: 700; }
.logo-word span { display: block; font-size: 10.5px; letter-spacing: .42em; color: var(--baby-blue); font-weight: 500; }
.brand-logo-img { height: auto; width: 120px; display: inline-block; }
.brand-logo-img.sm { height: auto; }
/* White wordmark recolored to navy for light backgrounds */
.logo-navy { filter: brightness(0) saturate(100%) invert(10%) sepia(80%) saturate(2600%) hue-rotate(210deg) brightness(90%) contrast(105%); }

.panel-body { max-width: 550px; }
.eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}
.panel-body h1 { font-size: clamp(38px, 3.3vw, 58px); text-shadow: 0 2px 14px rgba(20, 0, 70, .55); }
.panel-body h1 .shine {
  background: linear-gradient(120deg, #ffffff 0%, #f4f0ff 50%, #e3d9ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(20, 0, 70, .55));
}
.panel-body p {
  margin: 20px 0 0;
  color: rgb(255, 255, 255);
  font-size: 15.5px;
  max-width: 65ch;
  text-shadow: 0 1px 10px rgba(20, 0, 70, .7);
}


.trust-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  max-width: 560px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.trust-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  transition: padding-left .25s ease;
}
.trust-list li:hover { padding-left: 8px; }
.trust-list li .tick-ico {
  flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; transform: translateY(3px);
}
.trust-list svg { width: 16px; height: 16px; color: var(--baby-blue); }
.trust-list .trust-text {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.trust-list li b {
  color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(20, 0, 70, .7);
}
.trust-list li small {
  font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(20, 0, 70, .7);
}
@media (max-width: 520px) { .trust-list .trust-text { flex-direction: column; gap: 4px; } }
.panel-note {
  margin: 26px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(20, 0, 70, .7);
  border-left: 2px solid rgba(160, 202, 240, .45);
  padding-left: 14px;
  max-width: 46ch;
}

/* Ticker */
.ticker {
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 14px 0;
  overflow: hidden;
  margin-top: 36px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 40px; width: max-content; animation: slide 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tick { display: flex; align-items: baseline; gap: 8px; font-size: 13px; white-space: nowrap; }
.tick .sym { letter-spacing: .1em; color: rgba(255,255,255,.72); font-weight: 600; }
.tick .px { color: var(--white); font-variant-numeric: tabular-nums; }
.tick .chg { font-size: 12px; font-variant-numeric: tabular-nums; }
.tick .chg.up { color: #7ce0b0; }
.tick .chg.down { color: #ff8f8f; }

.panel-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(20, 0, 70, .6);
}
.panel-foot nav { display: flex; gap: 18px; }
.panel-foot a { color: rgba(255,255,255,.9); }

/* ===== Right: form panel ===== */
.form-panel {
  background: var(--surface);
  padding: 40px 40px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.form-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: auto;
}
.form-topbar .mini-logo { display: none; }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; color: var(--grey-400);
  background: var(--white); cursor: pointer;
}
.lang:hover { border-color: var(--grey-100); }
.topbar-alt { font-size: 13px; color: var(--text-muted); }
.topbar-alt a { font-weight: 600; }

.form-wrap { width: 100%; max-width: 424px; margin: 36px auto auto; padding-bottom: 28px; }

.form-head { margin-bottom: 26px; }
.form-head h2 { font-size: 30px; letter-spacing: .02em; }
.form-head p { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; }

/* Segmented tabs */
.segment {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px; margin-bottom: 26px;
}
.segment a {
  text-align: center; padding: 9px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--grey-300);
  text-decoration: none; transition: all .25s var(--ease);
}
.segment a:hover { color: var(--navy-800); text-decoration: none; }
.segment a.is-active { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-soft); }

/* Steps */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--grey-200); }
.step .dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; color: var(--grey-200);
  transition: all .3s var(--ease);
}
.step.is-active .dot { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.step.is-active { color: var(--navy-900); font-weight: 600; }
.step.is-done .dot { background: var(--baby-blue); border-color: var(--baby-blue); color: var(--navy-900); }
.step-line { flex: 1; height: 1.5px; background: var(--line); }

/* Fields */
.field { margin-bottom: 16px; position: relative; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--grey-400); margin-bottom: 7px;
}
.control {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--text); font-size: 14.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  appearance: none;
}
.control::placeholder { color: #b3b8c4; }
.control:hover { border-color: var(--grey-100); }
.control:focus {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(25, 66, 190, .13);
}
.field.has-error .control { border-color: var(--danger); }
.field.has-error .control:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
select.control {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717179' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 38px;
}
.error-msg { display: none; margin-top: 6px; font-size: 12.5px; color: var(--danger); }
textarea.control { min-height: 96px; resize: vertical; line-height: 1.5; font-family: inherit; }
.field label small { font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--grey-200); }
.field.has-error .error-msg { display: block; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }

.toggle-pass {
  position: absolute; right: 8px; top: 33px;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px; border-radius: 8px; color: var(--grey-300); line-height: 0;
}
.toggle-pass:hover { background: var(--surface-alt); color: var(--navy-800); }

/* Password strength */
.meter { display: flex; gap: 5px; margin-top: 9px; }
.meter i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s var(--ease); }
.meter.s1 i:nth-child(1) { background: #d9534f; }
.meter.s2 i:nth-child(-n+2) { background: #e0a63d; }
.meter.s3 i:nth-child(-n+3) { background: var(--navy-500); }
.meter.s4 i { background: var(--success); }
.meter-label { margin-top: 6px; font-size: 12px; color: var(--text-muted); }

/* Checkbox */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey-400); margin-bottom: 14px; }
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--navy-700); flex: 0 0 auto; }

.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.form-meta .check { margin: 0; }
.form-meta a { font-size: 13px; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 18px; border: 1px solid transparent;
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900) 70%);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(9, 35, 112, .8);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(9, 35, 112, .9); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--navy-900); }
.btn-ghost:hover { border-color: var(--grey-100); background: var(--surface-alt); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn .spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }

/* Divider + social */
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--grey-200); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-size: 13.5px; font-weight: 600; color: var(--navy-900); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.social:hover { border-color: var(--grey-100); background: var(--surface-alt); text-decoration: none; }
.social svg { width: 17px; height: 17px; }

.swap-line { margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--text-muted); }
.swap-line a { font-weight: 700; }

.legal { margin-top: 26px; font-size: 11.5px; line-height: 1.65; color: var(--grey-200); border-top: 1px solid var(--line); padding-top: 16px; }

/* Alerts */
.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: #fdf1f0; border-color: #f2c7c2; color: #8e2b20; }
.alert-success { background: #eff8f3; border-color: #bfe3d1; color: #14603c; }

/* Panes */
.pane { display: none; animation: fade .3s var(--ease); }
.pane.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .brand-panel { padding: 36px 40px; }
  .form-panel { padding: 32px 28px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; background: var(--surface); }
  .form-topbar .mini-logo { display: inline-flex; }
  .form-wrap { margin-top: 26px; }
  .form-topbar .lang { display: none; }
}
@media (max-width: 460px) {
  .form-panel { padding: 22px 18px; }
  .row2, .socials { grid-template-columns: 1fr; }
  .form-head h2 { font-size: 25px; }
  .btn-row { grid-template-columns: 1fr; }
  .steps .step > span:not(.dot) { display: none; }
  .steps { gap: 6px; }
}

/* Mini logo (mobile header) — dark mark on light bg */
.mini-logo svg { width: 32px; height: 32px; }
.mini-logo .logo-word b { color: var(--navy-900); font-size: 16px; }
.mini-logo .logo-word span { color: var(--grey-300); font-size: 9px; }

/* =============================================================
   Full-screen, no-scroll layout (desktop) + separate left/right logos
   Left panel  -> BB-White-logo.png (on dark navy)
   Right panel -> BB-Black-logo.png (on white)
   ============================================================= */
/* .brand-logo-img { width: clamp(84px, 13vh, 130px); } */
.logo-navy { filter: none; }

@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
  .auth { height: 100vh; height: 100dvh; min-height: 0; }

  /* Left */
  .brand-panel { padding: clamp(16px, 4vh, 44px) clamp(28px, 4vw, 56px); min-height: 0; }
  .eyebrow { margin-bottom: clamp(10px, 2.4vh, 26px); padding: 5px 14px; }
  .panel-body h1 { font-size: clamp(30px, min(3.3vw, 6.2vh), 58px); }
  .panel-body p { margin-top: clamp(10px, 2vh, 20px); font-size: clamp(13.5px, 1.9vh, 15.5px); }
  .trust-list { margin-top: clamp(14px, 3vh, 32px); }
  .trust-list li { padding: clamp(7px, 1.5vh, 14px) 2px; }
  .panel-note { margin-top: clamp(12px, 2.4vh, 26px); }
  .ticker { margin-top: clamp(14px, 3vh, 36px); padding: clamp(8px, 1.4vh, 14px) 0; }

  /* Right */
  .form-panel { padding: clamp(14px, 3.2vh, 40px) clamp(24px, 3vw, 40px) clamp(12px, 2.4vh, 32px); overflow: hidden; min-height: 0; }
  .form-wrap { margin: clamp(8px, 2.4vh, 36px) auto auto; padding-bottom: 0; }
  .form-head { margin-bottom: clamp(10px, 2.4vh, 26px); }
  .form-head h2 { font-size: clamp(24px, 4vh, 30px); }
  .form-head p { margin-top: clamp(4px, 1vh, 10px); }
  .segment { margin-bottom: clamp(10px, 2.4vh, 26px); }
  .segment a { padding: clamp(6px, 1.1vh, 9px) 10px; }
  .steps { margin-bottom: clamp(10px, 2.2vh, 26px); }
  .field { margin-bottom: clamp(8px, 1.7vh, 16px); }
  .field label { margin-bottom: clamp(3px, .7vh, 7px); }
  .control { padding: clamp(8px, 1.5vh, 13px) 14px; }
  .toggle-pass { top: calc(100% - clamp(34px, 5.2vh, 46px)); }
  .form-meta { margin: 2px 0 clamp(10px, 2vh, 20px); }
  .btn { padding: clamp(10px, 1.7vh, 14px) 18px; }
  .divider { margin: clamp(10px, 2vh, 22px) 0; }
  .social { padding: clamp(8px, 1.4vh, 12px); }
  .swap-line { margin-top: clamp(10px, 2vh, 24px); }
  .legal { margin-top: clamp(10px, 2vh, 26px); padding-top: clamp(8px, 1.4vh, 16px); font-size: clamp(10.5px, 1.4vh, 11.5px); line-height: 1.5; }
  .check { margin-bottom: clamp(8px, 1.4vh, 14px); }
}
@media (min-width: 901px) and (max-height: 760px) {
  .ticker, .panel-note { display: none; }
}

/* tighter fit pass */
@media (min-width: 901px) {
  .brand-panel { padding-top: clamp(14px, 3vh, 44px); padding-bottom: clamp(12px, 2.4vh, 44px); }
  .panel-body p { line-height: 1.45; }
  .trust-list li { padding: clamp(5px, 1.2vh, 14px) 2px; }
  .ticker { margin-top: clamp(10px, 2vh, 36px); }
}
@media (min-width: 901px) and (max-height: 900px) {
  .ticker { display: none; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .panel-note { display: none; }
  .form-wrap { margin-top: 6px; }
  .form-head { margin-bottom: 10px; }
  .form-head p { display: none; }
  .segment, .steps { margin-bottom: 10px; }
  .field { margin-bottom: 8px; }
  .control { padding: 8px 12px; font-size: 14px; }
  textarea.control { min-height: 62px; }
  .field label { margin-bottom: 3px; font-size: 11px; }
  .meter { margin-top: 5px; }
  .meter-label { margin-top: 3px; font-size: 11px; }
  .check { font-size: 12px; margin-bottom: 8px; }
  .legal { display: none; }
}

/* =============================================================
   Thank-you popup (register) + thank-you screen (after sign in)
   ============================================================= */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 0, 70, .62);
  backdrop-filter: blur(4px);
  animation: modal-fade .25s var(--ease);
}
.modal {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 36px 32px 30px; box-shadow: var(--shadow-card);
  animation: modal-pop .35s var(--ease);
}
.modal h3 { font-size: 30px; margin: 18px 0 8px; color: var(--navy-900); }
.modal p  { margin: 0 0 24px; color: var(--text-muted); font-size: 15px; }
.modal .btn { text-decoration: none; }
.modal-icon, .thanks-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--navy-600), var(--navy-900));
  box-shadow: 0 12px 28px -10px rgba(67, 3, 174, .7);
}
.modal-icon svg, .thanks-icon svg { width: 30px; height: 30px; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop  { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.thanks-wrap { text-align: center; }
.thanks-wrap .thanks-icon { margin-bottom: 22px; }
.thanks-details {
  margin: 0 0 24px; padding: 4px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt);
}
.thanks-details div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 13.5px; }
.thanks-details div + div { border-top: 1px solid var(--line); }
.thanks-details dt { color: var(--text-muted); }
.thanks-details dd { margin: 0; font-weight: 600; color: var(--navy-900); word-break: break-all; text-align: right; }
.thanks-wrap .btn { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .modal, .modal-backdrop { animation: none; }
}

/* =============================================================
   Demo-call booking: calendar, time slots, "your call" card
   ============================================================= */
.form-wrap { transition: max-width .35s var(--ease); }
.form-wrap.is-wide { max-width: 600px; }
@media (min-width: 901px) {
  /* The no-scroll layout stays; it only scrolls if a step is taller than the window. */
  .form-panel { overflow-y: auto; }
}

.demo-picker { container-type: inline-size; text-align: left; }
.dp-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.dp-facts li {
  font-size: 12px; font-weight: 600; color: var(--navy-800);
  background: color-mix(in srgb, var(--navy-600) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--navy-600) 18%, #fff);
  border-radius: 999px; padding: 4px 11px;
}
.dp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dp-body > .dp-hint, .dp-body > .dp-empty, .dp-body > .dp-retry { grid-column: 1 / -1; }

.dp-cal { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 12px 10px; background: var(--white); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-month { font-family: var(--font-head); font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-900); }
.dp-nav {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--navy-900); font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 2px;
}
.dp-nav:hover:not(:disabled) { background: var(--surface-alt); border-color: var(--grey-100); }
.dp-nav:disabled { opacity: .35; cursor: not-allowed; }
.dp-dow, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-dow span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-200); padding: 4px 0; }
.dp-day {
  aspect-ratio: 1; max-height: 38px; width: 100%; border: 0; border-radius: 50%;
  background: transparent; color: var(--grey-100); font: 600 13px var(--font-body); padding: 0;
}
.dp-day:not(:disabled) {
  color: var(--navy-900); cursor: pointer;
  background: color-mix(in srgb, var(--navy-600) 10%, #fff);
  transition: background .15s, transform .15s var(--ease);
}
.dp-day:not(:disabled):hover { background: color-mix(in srgb, var(--navy-600) 22%, #fff); transform: scale(1.06); }
.dp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--grey-100); }
.dp-day.has-pick:not(.is-on) { box-shadow: inset 0 0 0 1.5px var(--navy-600); }
.dp-day.is-on { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: var(--white); }

.dp-times { min-width: 0; }
.dp-times-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.dp-times-head strong { color: var(--navy-900); font-weight: 700; }
.dp-times-head span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.dp-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px;
  max-height: 246px; overflow-y: auto; padding: 2px;
}
.dp-slot {
  padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--navy-900); font: 600 13px var(--font-body); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.dp-slot:hover { border-color: var(--navy-600); background: color-mix(in srgb, var(--navy-600) 6%, #fff); }
.dp-slot.is-on { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border-color: transparent; color: var(--white); }
.dp-day:focus-visible, .dp-slot:focus-visible, .dp-nav:focus-visible, .dp-clear:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.dp-hint, .dp-empty {
  margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius);
  text-align: center; color: var(--text-muted); font-size: 13.5px;
}
.dp-retry { width: auto; justify-self: start; padding: 10px 18px; }

.dp-tz { display: flex; align-items: center; gap: 10px; margin: 0; }
.dp-tz span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400); white-space: nowrap; }
.dp-tzsel { padding: 8px 34px 8px 12px; font-size: 13px; min-width: 0; flex: 1; text-overflow: ellipsis; }

.dp-sum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  padding: 11px 14px; border-radius: var(--radius); border: 1px dashed var(--line);
  font-size: 13px; color: var(--text-muted);
}
.dp-sum.is-set { border: 1px solid color-mix(in srgb, var(--navy-600) 28%, #fff); background: color-mix(in srgb, var(--navy-600) 7%, #fff); color: var(--navy-900); }
.dp-sum-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dp-sum.is-set .dp-sum-lbl { color: var(--navy-600); flex-basis: 100%; }
.dp-sum strong { font-weight: 700; flex: 1; min-width: 0; }
.dp-clear { border: 0; background: none; color: var(--navy-600); font: 600 12.5px var(--font-body); cursor: pointer; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }

@container (min-width: 520px) {
  .dp-body { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; column-gap: 16px; }
  .dp-cal { grid-column: 1; grid-row: 1; }
  .dp-times { grid-column: 2; grid-row: 1; }
  .dp-tz, .dp-sum { grid-column: 1 / -1; }
  .dp-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 268px; }
}

/* "Your demo call" card (thank-you page, /demo page, registration popup) */
.demo-card {
  text-align: left; margin: 0 0 18px; padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--navy-600) 26%, #fff); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--navy-600) 6%, #fff);
}
.demo-card .dc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-card .dc-lbl { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-600); }
.demo-card .dc-when { margin: 6px 0 2px; font-family: var(--font-head); font-size: 22px; letter-spacing: .02em; color: var(--navy-900); line-height: 1.15; }
.demo-card .dc-meta { margin: 0; font-size: 13px; color: var(--text-muted); }
.demo-card.is-cancelled, .demo-card.is-past { background: var(--surface-alt); border-color: var(--line); }
.demo-card.is-cancelled .dc-when, .demo-card.is-past .dc-when { color: var(--grey-300); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.demo-card.is-past .dc-when { text-decoration: none; }
.dc-chip {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success);
}
.is-cancelled .dc-chip, .is-past .dc-chip { background: #eceef3; color: var(--grey-300); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.demo-actions .btn, .demo-actions form { flex: 1 1 140px; width: auto; }
.demo-actions form .btn { width: 100%; }
.demo-actions .btn { padding: 11px 14px; text-decoration: none; text-align: center; }
.btn-quiet { background: none; border-color: transparent; color: var(--danger); }
.btn-quiet:hover { background: color-mix(in srgb, var(--danger) 8%, #fff); }
.demo-note { margin: 0 0 16px; font-size: 13.5px; color: var(--text-muted); text-align: left; }
.demo-wrap .form-head { text-align: left; }
.demo-wrap .btn { text-decoration: none; }
.demo-wrap .btn-row { margin-top: 14px; }
.demo-wrap .dp-save { margin-top: 14px; }
.demo-pane-copy { margin: 0 0 12px; font-size: 13.5px; color: var(--text-muted); }
.demo-actions[hidden], .demo-wrap [hidden] { display: none !important; }

/* Compact demo step so the calendar fits a 900px-high window */
.form-wrap.is-wide:not(.demo-wrap) .form-head p { display: none; }
.form-wrap.is-wide:not(.demo-wrap) .form-head { margin-bottom: 14px; }
.dp-sum.is-set { flex-wrap: nowrap; }
.dp-sum.is-set .dp-sum-lbl { flex: none; }
.dp-sum.is-set .dp-clear { flex: none; }
@media (max-width: 520px) {
  .dp-sum.is-set { flex-wrap: wrap; }
  .dp-sum.is-set .dp-sum-lbl { flex-basis: 100%; }
}
@media (min-width: 901px) and (max-height: 940px) {
  .form-wrap.is-wide .dp-facts { margin-bottom: 8px; }
  .form-wrap.is-wide .dp-body { gap: 8px 16px; }
  .form-wrap.is-wide .dp-day { max-height: 34px; }
  .form-wrap.is-wide .dp-slots { max-height: 232px; }
  .form-wrap.is-wide .demo-pane-copy { margin-bottom: 8px; }
}
@media (min-width: 901px) and (max-height: 800px) {
  .form-wrap.is-wide .demo-pane-copy, .form-wrap.is-wide .dp-facts { display: none; }
}

/* "Book a demo" entry points on the sign-in / register pages */
.topbar-demo {
  border: 1px solid color-mix(in srgb, var(--navy-600) 40%, #fff); background: color-mix(in srgb, var(--navy-600) 8%, #fff);
  color: var(--navy-800); font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.topbar-demo:hover { background: var(--navy-800); color: #fff; }
.demo-link { margin: 8px 0 0; text-align: center; font-size: 13.5px; color: var(--text-muted); }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font: 600 13.5px var(--font-body); color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--navy-900); }
@media (max-width: 900px) { .topbar-demo { display: none; } }
