/* =========================================================
   ReSimplify — shared design tokens & base
   ========================================================= */
:root{
  --bg: oklch(0.14 0.008 155);
  --bg-elev: oklch(0.17 0.01 155);
  --bg-elev-2: oklch(0.20 0.012 155);
  --line: oklch(0.28 0.012 155 / 0.6);
  --line-strong: oklch(0.35 0.014 155 / 0.8);
  --text: oklch(0.97 0.004 155);
  --text-2: oklch(0.78 0.008 155);
  --text-3: oklch(0.58 0.01 155);
  --accent: oklch(0.80 0.17 165);
  --accent-dim: oklch(0.67 0.14 165);
  --accent-deep: oklch(0.40 0.10 165);
  --accent-wash: oklch(0.80 0.17 165 / 0.12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --ff-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px oklch(0.80 0.17 165 / 0.3), 0 10px 40px oklch(0.80 0.17 165 / 0.2);
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
a{color:inherit; text-decoration:none}
button{font-family:inherit}
img{max-width:100%; display:block}

/* Layout */
.wrap{max-width:1240px; margin:0 auto; padding:0 32px}
@media (max-width: 720px){ .wrap{padding:0 20px} }

/* ----- Type ----- */
.eyebrow{
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display:inline-flex; align-items:center; gap:10px;
}
.eyebrow::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ----- Buttons ----- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor:pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(.2,.7,.2,1);
  white-space:nowrap;
}
.btn-primary{
  background: var(--accent);
  color: oklch(0.15 0.01 155);
  font-weight: 600;
}
.btn-primary:hover{
  background: oklch(0.87 0.17 165);
  box-shadow: 0 0 0 6px oklch(0.80 0.17 165 / 0.15);
  transform: translateY(-1px);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover{
  background: var(--bg-elev);
  border-color: var(--text-3);
}
.btn-arrow{ transition: transform .25s cubic-bezier(.2,.7,.2,1) }
.btn:hover .btn-arrow{ transform: translateX(3px) }

/* ----- Scroll-in animation helper ----- */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in{ opacity:1; transform: none }

/* ----- Background mesh ----- */
.mesh{
  position:absolute; inset:0; pointer-events:none; overflow:hidden;
  z-index:0;
}
.mesh::before,
.mesh::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: drift 22s ease-in-out infinite alternate;
}
.mesh::before{
  width: 720px; height: 720px;
  background: radial-gradient(circle at center, oklch(0.80 0.17 165 / 0.6), transparent 62%);
  top: -160px; left: -140px;
}
.mesh::after{
  width: 560px; height: 560px;
  background: radial-gradient(circle at center, oklch(0.55 0.16 250 / 0.45), transparent 60%);
  top: 10%; right: -140px;
  animation-delay: -8s;
}
@keyframes drift{
  0%{ transform: translate(0,0) scale(1) }
  50%{ transform: translate(40px,30px) scale(1.08) }
  100%{ transform: translate(-30px,20px) scale(0.96) }
}

/* grain overlay */
.grain::after{
  content:"";
  position:fixed; inset:0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events:none;
  z-index: 1;
}

/* subtle grid bg */
.grid-bg{
  background-image:
    linear-gradient(to right, oklch(0.28 0.012 155 / 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.28 0.012 155 / 0.25) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* cursor dot accent (optional per-variant) */
.cursor-dot{
  position: fixed; top:0; left:0;
  width: 14px; height:14px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent);
  pointer-events:none;
  mix-blend-mode: screen;
  transform: translate(-50%,-50%);
  z-index: 9999;
  transition: opacity .3s;
  opacity:0;
}

/* Variation switcher */
.variant-switch{
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display:flex; gap:4px;
  background: oklch(0.18 0.01 155 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.variant-switch::before{
  content: "Variant";
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  align-self: center;
  padding: 0 10px 0 12px;
  border-right: 1px solid var(--line);
  margin-right: 2px;
}
.variant-switch button{
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all .2s;
}
.variant-switch button:hover{ color: var(--text) }
.variant-switch button.active{
  background: var(--accent);
  color: oklch(0.15 0.01 155);
  font-weight: 600;
}

/* Shared nav */
.nav{
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: oklch(0.14 0.008 155 / 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 64px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:600; letter-spacing:-0.01em;
  font-size: 15px;
}
.brand-mark-img{
  width: auto; display: block;
  height: 32px;
  transition: height .45s cubic-bezier(.2,.7,.2,1);
}
.brand-word{
  display: inline-block;
  max-width: 200px;
  opacity: 1;
  transform: translateX(0);
  transition: max-width .5s cubic-bezier(.2,.7,.2,1),
              opacity .35s cubic-bezier(.2,.7,.2,1),
              transform .5s cubic-bezier(.2,.7,.2,1),
              margin-left .5s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  overflow: hidden;
}
.nav-scrolled .brand-mark-img{ height: 24px }
.nav-scrolled .brand-word{
  max-width: 0;
  opacity: 0;
  transform: translateX(-6px);
  margin-left: -10px; /* collapse the gap that .brand owns */
}
.nav-scrolled{
  background: oklch(0.13 0.008 155 / 0.85);
}
.brand-mark{
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  position: relative;
  display:flex; align-items:center; justify-content:center;
  color: oklch(0.15 0.01 155);
  font-weight: 800;
  font-size: 14px;
}
.nav-links{
  display:flex; gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a{transition: color .2s}
.nav-links a:hover{color: var(--text)}
.nav-active{ color: var(--accent) !important; position: relative }
.nav-active::after{ content:''; position:absolute; left:0; right:0; bottom:-6px; height:1px; background: var(--accent); opacity:.6 }

/* ── Form success state ── */
.rs-success{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center;
  animation: rs-success-in .5s cubic-bezier(.2,.8,.2,1) both;
}
.rs-success-check{
  width: 64px; height: 64px; margin-bottom: 18px;
  border-radius: 50%;
  background: oklch(0.80 0.17 165 / 0.12);
  display: flex; align-items: center; justify-content: center;
  animation: rs-check-pop .55s cubic-bezier(.2,1.4,.4,1) .05s both;
}
.rs-success-check svg{ width: 40px; height: 40px; overflow: visible }
.rs-success-check__circle{
  stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 152; stroke-dashoffset: 152;
  transform-origin: 50% 50%;
  animation: rs-check-circle .55s cubic-bezier(.4,0,.2,1) .15s forwards;
}
.rs-success-check__tick{
  stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 38; stroke-dashoffset: 38;
  animation: rs-check-tick .35s cubic-bezier(.6,.1,.3,1) .5s forwards;
}
.rs-success-title{
  font-size: 22px; line-height: 1.25; font-weight: 600;
  margin: 0 0 8px;
}
.rs-success-sub{
  color: var(--text-2); font-size: 14px; max-width: 320px; margin: 0;
}
@keyframes rs-success-in{
  from{ opacity: 0; transform: translateY(6px) }
  to{ opacity: 1; transform: translateY(0) }
}
@keyframes rs-check-pop{
  0%{ transform: scale(0); opacity: 0 }
  60%{ transform: scale(1.08); opacity: 1 }
  100%{ transform: scale(1); opacity: 1 }
}
@keyframes rs-check-circle{
  to{ stroke-dashoffset: 0 }
}
@keyframes rs-check-tick{
  to{ stroke-dashoffset: 0 }
}
@media (prefers-reduced-motion: reduce){
  .rs-success, .rs-success-check, .rs-success-check__circle, .rs-success-check__tick{
    animation: none;
  }
  .rs-success-check__circle, .rs-success-check__tick{ stroke-dashoffset: 0 }
}

/* ── Scroll to top ── */
.scroll-top{
  position: fixed; bottom: 26px; right: 84px; z-index: 190;
  width: 38px; height: 38px; border-radius: 50%;
  background: oklch(0.16 0.012 155);
  border: 1px solid var(--line);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .2s, color .2s, border-color .2s;
  pointer-events: none;
}
.scroll-top--visible{ opacity: 1; transform: translateY(0); pointer-events: auto }
.scroll-top:hover{ background: oklch(0.22 0.016 155); color: var(--accent); border-color: oklch(0.80 0.17 165 / 0.35) }

/* ── Chat widget ── */
.chat-bubble{
  position: fixed; bottom: 24px; right: 24px; z-index: 195;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent);
  color: oklch(0.13 0.01 155);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px oklch(0.80 0.17 165 / 0.35), 0 0 0 1px oklch(0.80 0.17 165 / 0.4);
  opacity: 0; transform: translateY(12px) scale(0.9);
  transition: opacity .25s, transform .25s, box-shadow .2s;
}
.chat-bubble--visible{ opacity: 1; transform: translateY(0) scale(1) }
.chat-bubble:hover{ box-shadow: 0 12px 40px oklch(0.80 0.17 165 / 0.5), 0 0 0 1px var(--accent) }
.chat-bubble--unread::after{
  content: attr(data-unread); position: absolute; top: -4px; right: -4px;
  background: oklch(0.62 0.22 25); color: white;
  font-size: 11px; font-weight: 600;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.chat-drawer{
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 380px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 48px);
  background: oklch(0.13 0.01 155);
  border: 1px solid oklch(0.80 0.17 165 / 0.18);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 0 0 1px oklch(0.80 0.17 165 / 0.05), 0 32px 80px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(24px) scale(0.97);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.chat-drawer--open{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto }

.chat-header{
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: oklch(0.15 0.012 155);
  border-bottom: 1px solid oklch(0.28 0.012 155 / 0.6);
  flex-shrink: 0;
}
.chat-header-avatar{
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: oklch(0.13 0.01 155);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.chat-header-name{ font-size: 14px; font-weight: 600 }
.chat-header-online{ display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); margin-top: 2px }
.chat-header-dot{ width: 6px; height: 6px; border-radius: 50%; background: oklch(0.72 0.18 165); display: inline-block; box-shadow: 0 0 6px oklch(0.72 0.18 165) }
.chat-header-close{
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--text-3); padding: 6px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.chat-header-close:hover{ color: var(--text); background: oklch(0.20 0.012 155) }

.chat-messages{
  flex: 1; overflow-y: auto; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: oklch(0.25 0.01 155) transparent;
}
.chat-messages::-webkit-scrollbar{ width: 6px }
.chat-messages::-webkit-scrollbar-thumb{ background: oklch(0.25 0.01 155); border-radius: 3px }

.chat-msg{ display: flex; align-items: flex-end; gap: 8px; animation: chatMsgIn .25s ease }
@keyframes chatMsgIn{ from{ opacity: 0; transform: translateY(8px) } to{ opacity: 1; transform: none } }
.chat-msg--user{ flex-direction: row-reverse }
.chat-msg-avatar{
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: oklch(0.13 0.01 155);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.chat-bubble-text{
  max-width: 78%; padding: 9px 13px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.55;
  word-wrap: break-word;
}
.chat-bubble-text p{ margin: 0 0 8px }
.chat-bubble-text p:last-child{ margin-bottom: 0 }
.chat-bubble-text strong{ font-weight: 600 }
.chat-bubble-text em{ font-style: italic }
.chat-bubble-text code{
  font-family: var(--ff-mono); font-size: 12px;
  background: oklch(0.13 0.01 155); padding: 1px 5px; border-radius: 4px;
}
.chat-bubble-text ul{ margin: 6px 0; padding-left: 18px }
.chat-bubble-text li{ margin: 2px 0 }
.chat-msg--bot .chat-bubble-text{
  background: oklch(0.18 0.012 155);
  border: 1px solid oklch(0.28 0.012 155 / 0.5);
  color: var(--text); border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble-text{
  background: oklch(0.80 0.17 165 / 0.15);
  border: 1px solid oklch(0.80 0.17 165 / 0.25);
  color: var(--text); border-bottom-right-radius: 4px;
}
.chat-bubble-text a{ color: var(--accent); text-decoration: underline }

.chat-typing{ display: flex; align-items: center; gap: 4px; padding: 12px 14px; min-width: 50px }
.chat-typing span{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); display: inline-block;
  animation: chatTypingBounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2){ animation-delay: .2s }
.chat-typing span:nth-child(3){ animation-delay: .4s }
@keyframes chatTypingBounce{ 0%,60%,100%{ transform: translateY(0) } 30%{ transform: translateY(-5px) } }

.chat-quick-actions{ display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; margin-top: -4px }
.chat-quick-action{
  font-size: 12px; padding: 6px 12px; border-radius: 99px;
  background: transparent; border: 1px solid oklch(0.28 0.012 155 / 0.7);
  color: var(--text-2); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.chat-quick-action:hover{ border-color: var(--accent); color: var(--accent); background: oklch(0.80 0.17 165 / 0.06) }
.chat-quick-action--active{ border-color: var(--accent); color: var(--accent); background: oklch(0.80 0.17 165 / 0.15); font-weight: 500 }

.chat-inline-card{
  margin: 4px 0; padding: 14px;
  background: oklch(0.16 0.012 155);
  border: 1px solid oklch(0.80 0.17 165 / 0.25);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-inline-card-label{ font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) }
.chat-inline-card iframe{ width: 100%; height: 420px; border: 0; border-radius: 6px; background: white }
.chat-inline-card-link{
  display: inline-block; padding: 8px 14px; background: var(--accent); color: oklch(0.13 0.01 155);
  border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 13px; text-align: center;
}

/* Card wrapper around the inline lead-capture form so visitors clearly
   distinguish the form-fill flow from the rest of the chat conversation. */
.chat-lead-card{
  position: relative;
  margin: 14px 12px 6px;
  padding: 14px 0 12px;
  background: oklch(0.16 0.012 155);
  border: 1px solid oklch(0.30 0.04 165 / 0.45);
  border-radius: 12px;
}
/* Keep email together; allow soft break only after the @ via <wbr>. */
.chat-email{ word-break: keep-all; overflow-wrap: normal; }
.chat-lead-card-header{
  position: absolute;
  top: -9px; left: 14px;
  padding: 2px 8px;
  background: oklch(0.16 0.012 155);
  border: 1px solid oklch(0.30 0.04 165 / 0.45);
  border-radius: 6px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}

/* New conversational lead capture — inline form below current bot question */
.chat-lead-inline{
  display: flex; gap: 6px; padding: 4px 16px 4px 40px;
  align-items: stretch;
}
.chat-lead-inline input,
.chat-lead-inline textarea{
  flex: 1; min-width: 0;
  background: oklch(0.18 0.012 155);
  border: 1px solid oklch(0.28 0.012 155 / 0.6);
  border-radius: 8px; padding: 8px 12px;
  color: var(--text); font-size: 13.5px; font-family: inherit;
  resize: none;
}
.chat-lead-inline input:focus, .chat-lead-inline textarea:focus{ outline: none; border-color: var(--accent) }
.chat-lead-inline button{
  padding: 0 14px; background: var(--accent); color: oklch(0.13 0.01 155);
  border: 0; border-radius: 8px; font-weight: 600; font-size: 12.5px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}

.chat-lead-form{ display: flex; flex-direction: column; gap: 8px }
.chat-lead-form input, .chat-lead-form textarea{
  width: 100%; padding: 8px 10px;
  background: oklch(0.13 0.01 155);
  border: 1px solid oklch(0.28 0.012 155 / 0.6);
  border-radius: 6px; color: var(--text);
  font-size: 13px; font-family: inherit;
}
.chat-lead-form input:focus, .chat-lead-form textarea:focus{ outline: none; border-color: var(--accent) }
.chat-lead-form textarea{ resize: vertical; min-height: 60px }
.chat-lead-form button{
  padding: 8px 14px; background: var(--accent); color: oklch(0.13 0.01 155);
  border: none; border-radius: 6px; font-weight: 600; cursor: pointer;
  font-size: 13px; font-family: inherit;
}
.chat-lead-form button:disabled{ opacity: .5; cursor: not-allowed }

.chat-error{
  margin: 0 4px; padding: 10px 12px;
  background: oklch(0.25 0.05 25 / 0.15);
  border: 1px solid oklch(0.55 0.15 25 / 0.4);
  border-radius: 6px;
  font-size: 12.5px; color: oklch(0.85 0.05 25);
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.chat-error button{ background: none; border: 1px solid currentColor; color: inherit; padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; font-family: inherit }

.chat-input-bar{
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid oklch(0.28 0.012 155 / 0.5);
  background: oklch(0.15 0.012 155);
  flex-shrink: 0;
}
.chat-input-bar textarea{
  flex: 1; background: oklch(0.18 0.012 155);
  border: 1px solid oklch(0.28 0.012 155 / 0.5);
  border-radius: 8px; padding: 9px 12px;
  color: var(--text); font-size: 13.5px; font-family: inherit;
  resize: none; min-height: 38px; max-height: 120px;
}
.chat-input-bar textarea:focus{ outline: none; border-color: var(--accent) }
.chat-input-bar button{
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: oklch(0.13 0.01 155);
  border: none; font-size: 16px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.chat-input-bar button:disabled{ opacity: .4; cursor: not-allowed }

.chat-disabled-notice{
  padding: 24px 18px; text-align: center;
  color: var(--text-2); font-size: 13.5px; line-height: 1.6;
}
.chat-disabled-notice a{ color: var(--accent); text-decoration: none; font-weight: 600 }

@media (max-width: 640px){
  .chat-bubble{ right: 16px; bottom: 16px; width: 44px; height: 44px }
  .scroll-top{ right: 70px; bottom: 18px; width: 36px; height: 36px }
  .chat-drawer{
    bottom: 0; right: 0; left: 0; top: 0;
    width: 100%; height: 100%; max-height: 100%; max-width: 100%;
    border-radius: 0; border: none;
  }
}

.nav-actions{ display:flex; align-items:center; gap: 10px }
.nav-burger{
  display:none;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; position: relative;
  transition: border-color .2s, background .2s;
}
.nav-burger:hover{ border-color: oklch(0.42 0.04 165 / 0.6); background: oklch(0.80 0.18 165 / 0.06) }
.nav-burger span{
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-burger span:nth-child(1){ top: 14px }
.nav-burger span:nth-child(2){ top: 19px }
.nav-burger span:nth-child(3){ top: 24px }
.nav-burger.open span:nth-child(1){ top: 19px; transform: rotate(45deg) }
.nav-burger.open span:nth-child(2){ opacity: 0 }
.nav-burger.open span:nth-child(3){ top: 19px; transform: rotate(-45deg) }

/* ── Full-screen drawer ─────────────────────────────────────────────────── */
.nav-drawer{
  position: fixed; inset: 0; z-index: 90;
  background: oklch(0.07 0.014 155);
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
  overflow: hidden;
}
.nav-drawer.open{ transform: translateX(0) }

/* accent glow bottom-right */
.nav-drawer::before{
  content:''; position:absolute;
  width:700px; height:700px;
  background: radial-gradient(circle, oklch(0.80 0.17 165 / 0.1), transparent 65%);
  bottom:-200px; right:-150px; pointer-events:none;
}
/* blue glow top-left */
.nav-drawer::after{
  content:''; position:absolute;
  width:400px; height:400px;
  background: radial-gradient(circle, oklch(0.55 0.16 250 / 0.12), transparent 65%);
  top:-100px; left:-80px; pointer-events:none;
}

/* close button */
.nav-drawer-close{
  position: absolute; top: 18px; right: 18px; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: oklch(0.16 0.01 155);
  border: 1px solid oklch(0.35 0.014 155 / 0.9);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .35s cubic-bezier(.2,.7,.2,1), color .2s;
}
.nav-drawer-close:hover{
  background: oklch(0.80 0.17 165 / 0.12);
  border-color: var(--accent); color: var(--accent);
  transform: rotate(90deg);
}

.nav-drawer-panel{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px clamp(28px, 8vw, 96px) 56px;
  overflow-y: auto;
}

.nav-drawer-links{ display:flex; flex-direction: column }
.nav-drawer-links a{
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid oklch(0.20 0.01 155);
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 700; letter-spacing: -0.025em;
  color: var(--text-2);
  opacity: 0; transform: translateY(28px);
  transition: color .25s, opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
}
.nav-drawer.open .nav-drawer-links a{ opacity: 1; transform: translateY(0) }
.nav-drawer-links a:hover{ color: var(--text) }
.nav-drawer-links a:hover .nav-drawer-arrow{ transform: translateX(8px); opacity: 1; color: var(--accent) }

.nav-drawer-num{
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--text-3); min-width: 28px;
}
.nav-drawer-label{ flex: 1 }
.nav-drawer-arrow{
  color: var(--text-3); font-size: 1.2em;
  opacity: 0;
  transition: transform .25s, opacity .25s, color .25s;
}
.nav-drawer-active{ color: var(--accent) !important }
.nav-drawer-active .nav-drawer-num{ color: var(--accent) }

.nav-drawer-cta{
  margin-top: 40px; align-self: flex-start;
  padding: 14px 32px !important; font-size: 15px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.nav-drawer.open .nav-drawer-cta{ opacity: 1; transform: translateY(0) }

.nav-drawer-meta{
  display: flex; gap: 32px; margin-top: 32px;
  font-size: 13px; color: var(--text-3);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.nav-drawer.open .nav-drawer-meta{ opacity: 1; transform: translateY(0) }

@media (max-width: 1100px){
  .nav-links{display:none}
  .nav-burger{ display: block }
  .nav-cta{ display: none }
}

/* Footer-ish CTA */
.cta-band{
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Logo marquee */
.marquee{
  position:relative; overflow:hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track{
  display:flex; gap: 80px;
  align-items: center;
  width: max-content;
  animation: slide 40s linear infinite;
}
@keyframes slide{
  from{ transform: translateX(0) }
  to{ transform: translateX(-50%) }
}
.logo-chip{
  display:flex; align-items:center; justify-content:center;
  height: 120px; max-height: 120px; flex: 0 0 auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity .25s, filter .25s;
}
.logo-chip img{
  max-height: 120px;
  height: auto;
  width: auto;
  max-width: 320px;
  display:block;
  object-fit: contain;
}
.logo-chip:hover{
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* Section frame */
section.block{ position: relative; padding: 120px 0 }
@media (max-width: 720px){ section.block{ padding: 80px 0 } }

h1,h2,h3,h4{ margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 600 }
h1{ font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.04em; font-weight: 600 }
h2{ font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -0.03em }
h3{ font-size: 22px; letter-spacing: -0.015em }
p{ color: var(--text-2); }

/* Form */
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px }
@media (max-width: 640px){ .form-row{ grid-template-columns: 1fr } }
.field{
  display:flex; flex-direction:column; gap:6px;
}
.field label{
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field input, .field textarea{
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.80 0.17 165 / 0.15);
}
.field textarea{ min-height: 120px }

/* ── Submit overlay (used by IntakeForm + GenericLeadForm) ─────────────── */
.rs-locked, .gl-locked{ pointer-events:none; user-select:none }
.rs-locked input, .rs-locked textarea, .rs-locked select, .rs-locked button,
.gl-locked input, .gl-locked textarea, .gl-locked select, .gl-locked button{
  pointer-events:none !important;
}
.rs-submit-overlay, .gl-submit-overlay{
  position:absolute; inset:0;
  background:oklch(0.16 0.012 155 / 0.78);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:18px;
  border-radius:var(--r-md, 14px);
  z-index:50;
  pointer-events:auto;
  animation:rs-fade .18s ease-out;
}
@keyframes rs-fade{ from{ opacity:0 } to{ opacity:1 } }
.rs-spinner{
  width:44px; height:44px; border-radius:50%;
  border:3px solid oklch(0.28 0.012 155 / 0.5);
  border-top-color:var(--accent);
  animation:rs-spin .8s linear infinite;
}
@keyframes rs-spin{ to{ transform:rotate(360deg) } }
.rs-submit-msg{ text-align:center; color:var(--text); font-size:14px; line-height:1.5 }
.rs-submit-msg strong{ display:block; font-size:15px; margin-bottom:4px }
.rs-submit-msg span{ color:var(--text-3); font-size:13px }

/* ── IntakeForm ─────────────────────────────────────────────────────────── */
.rs-intake{ max-width:700px; width:100% }
.rs-intake h2{ font-size:clamp(22px,2.4vw,32px); letter-spacing:-0.02em; margin:0 0 8px }
.rs-intake p{ color:var(--text-2); font-size:15px; margin:0 0 24px; line-height:1.65 }
.rs-step-label{ font-family:var(--ff-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:14px }

.rs-progress{ display:flex; gap:4px; margin-bottom:36px }
.rs-progress-step{ flex:1; height:3px; border-radius:99px; background:oklch(0.28 0.012 155 / 0.6); transition:background .3s }
.rs-progress-step.active{ background:var(--accent) }

.rs-field{ display:flex; flex-direction:column; gap:5px; margin-bottom:18px }
.rs-field label{ font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-3) }
.rs-field input,.rs-field textarea,.rs-field select{
  background:oklch(0.20 0.012 155);
  border:none; border-bottom:1px solid oklch(0.28 0.012 155 / 0.5);
  border-radius:var(--r-sm) var(--r-sm) 0 0;
  color:var(--text); padding:10px 12px; font-size:14px; font-family:inherit;
  transition:border-color .18s,background .18s; width:100%; box-sizing:border-box;
}
.rs-field input::placeholder,.rs-field textarea::placeholder{ color:var(--text-3) }
.rs-field input:focus,.rs-field textarea:focus,.rs-field select:focus{
  outline:none; border-bottom-color:var(--accent); background:oklch(0.22 0.012 155);
}
.rs-field select option{ background:oklch(0.17 0.01 155) }
.rs-field textarea{ resize:vertical; min-height:110px }

.rs-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:4px }
.rs-chip{
  padding:5px 13px; border-radius:999px;
  border:1px solid oklch(0.28 0.012 155 / 0.6);
  background:transparent; color:var(--text-3); font-size:12px; cursor:pointer;
  transition:all .15s; font-family:inherit;
}
.rs-chip:hover{ border-color:var(--accent); color:var(--accent) }
.rs-chip.selected{ border-color:var(--accent); background:oklch(0.80 0.17 165 / 0.1); color:var(--accent) }
.rs-error{ font-size:11px; color:#ff6b6b; margin-top:1px }

.rs-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px }
@media(max-width:520px){ .rs-row-2{ grid-template-columns:1fr } }
.rs-radio-row{ display:flex; flex-wrap:wrap; gap:7px; margin-top:4px }

.rs-actions{ display:flex; justify-content:space-between; align-items:center; margin-top:28px; padding-top:20px; border-top:1px solid var(--line) }

.rs-btn{
  padding:11px 28px; border-radius:var(--r-sm); font-size:14px; font-weight:500;
  cursor:pointer; font-family:inherit; border:none; transition:all .18s;
}
.rs-btn:disabled{ opacity:0.45; cursor:not-allowed }
.rs-btn-primary{ background:var(--accent); color:oklch(0.13 0.01 155) }
.rs-btn-primary:not(:disabled):hover{ background:oklch(0.87 0.17 165); box-shadow:0 0 24px oklch(0.80 0.17 165 / 0.35) }
.rs-btn-secondary{ background:transparent; color:var(--text-3); border:1px solid var(--line) }
.rs-btn-secondary:hover{ color:var(--text); border-color:oklch(0.45 0.01 155) }

.rs-banner{ padding:11px 14px; border-radius:var(--r-sm); font-size:13px; margin-bottom:10px }
.rs-banner.warn{ background:rgba(255,107,107,0.07); border:1px solid rgba(255,107,107,0.25); color:#ff8080 }

.rs-success-icon{
  width:56px; height:56px; border-radius:50%;
  background:oklch(0.80 0.17 165 / 0.12); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size:24px; margin:0 auto 20px;
}

/* ── Hero terminal mobile fit ──
   Lines are kept on a single line (white-space: pre) and the panel itself
   is constrained to viewport width — long lines simply clip at the right
   edge rather than expanding the panel or wrapping mid-word. */
@media (max-width: 640px){
  .terminal{
    font-size: 10.5px;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .term-body{
    font-size: 10.5px; line-height: 1.7;
    height: 380px; max-height: 380px;
    padding-right: 4px;
    overflow-x: hidden;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
  }
  .code-line{
    padding: 0 10px 0 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .code-line > span{ min-width: 0 }
  .code-line .ln{ width: 26px; flex: 0 0 26px; padding-right: 6px; font-size: 9.5px }
  .term-bar{ padding: 12px 14px }
  .term-title{ font-size: 11px }
}

/* ── Footer mobile stacking ── */
@media (max-width: 640px){
  .site-footer{ padding: 36px 0 80px }
  .site-footer__inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .site-footer__brand{ flex-direction: column; gap: 10px }
  .site-footer__brand span{ font-size: 13px }
  .site-footer__links{ flex-wrap: wrap; justify-content: center; gap: 16px }
}

/* ── Contact meta mobile stacking ── */
@media (max-width: 640px){
  .contact-meta{
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
  }
  .contact-meta > div{ width: 100% }
}

/* ── Password manager autofill colour fix ───────────────────────────────── */
/* webkit native autofill (Chrome, Edge, Safari) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px oklch(0.20 0.012 155) inset !important;
  -webkit-text-fill-color: oklch(0.97 0.004 155) !important;
  caret-color: oklch(0.97 0.004 155);
}
/* 1Password injects data-com-onepassword-filled */
input[data-com-onepassword-filled],
input[data-com-onepassword-filled="light"],
input[data-com-onepassword-filled="dark"] {
  -webkit-box-shadow: 0 0 0 1000px #222630 inset !important;
  box-shadow: 0 0 0 1000px #222630 inset !important;
  -webkit-text-fill-color: #f7f7f9 !important;
  color: #f7f7f9 !important;
}
