/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens — Earthy palette ── */
:root {
  --amber:        #C17F4A;
  --amber-dark:   #9E6235;
  --amber-dim:    rgba(193, 127, 74, 0.12);
  --amber-glow:   rgba(193, 127, 74, 0.2);
  --bg:           #0D0B09;
  --surface:      #151210;
  --surface-2:    #1C1814;
  --border:       #252018;
  --border-lt:    #342D24;
  --muted:        #5E5247;
  --subtle:       #8A7B6D;
  --body:         #C4B5A4;
  --white:        #EDE6DA;
  --sage:         #6B9E72;
  --sage-dim:     rgba(107, 158, 114, 0.15);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', monospace;
  --r:            10px;
  --r-sm:         6px;
  --r-lg:         14px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── Fade-up ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--amber-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--r); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 400;
  padding: 10px 0;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost.btn-lg { font-size: 15px; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Hero — full viewport ── */
.above-fold {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
}
.hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.af-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(193,127,74,0.22);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 20px;
}
h1 span { color: var(--amber); }

.sub {
  font-size: 16px;
  color: var(--subtle);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

/* ── Waitlist form ── */
.waitlist-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
  width: 100%;
  max-width: 480px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:focus { border-color: var(--amber); }
.waitlist-form .btn-primary { border-radius: var(--r); padding: 12px 22px; white-space: nowrap; }

.waitlist-success {
  display: none;
  font-size: 13px;
  color: var(--sage);
  padding: 10px 16px;
  background: var(--sage-dim);
  border: 1px solid rgba(107,158,114,0.25);
  border-radius: var(--r);
  margin-bottom: 12px;
  max-width: 480px;
  width: 100%;
}
.note { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* ── Demo section ── */
.demo-section {
  border-top: 1px solid var(--border);
  padding: 72px 28px 80px;
}
.demo-section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.af-window { width: 100%; }

@media (max-width: 600px) {
  .above-fold { padding: 40px 20px; }
  h1 { letter-spacing: -1.5px; }
  .waitlist-form { flex-direction: column; align-items: stretch; }
}

/* App window */
.app-window {
  border: 1px solid var(--border-lt);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

/* Chrome bar */
.window-chrome {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chrome-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28C840; }

.chrome-tabs { display: flex; gap: 4px; flex: 1; }
.chrome-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.chrome-tab:hover { color: var(--body); background: var(--border); }
.chrome-tab.active {
  color: var(--white);
  background: var(--border);
  border-color: var(--border-lt);
}

.chrome-progress { display: flex; gap: 5px; margin-left: auto; flex-shrink: 0; }
.progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-lt);
  transition: background 0.3s;
}
.progress-dot.active { background: var(--amber); }

/* Platform views container */
.platform-views { height: 340px; position: relative; }
.pv {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.pv.active { opacity: 1; pointer-events: auto; }

/* ── Slack view — light theme ── */
.slack-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #3F0E40;
  border-right: 1px solid rgba(0,0,0,0.15);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.slack-ws {
  padding: 0 14px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.slack-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 1px; }
.slack-item { font-size: 12px; color: rgba(255,255,255,0.55); padding: 5px 8px; border-radius: 5px; }
.slack-channels { padding: 0 8px; display: flex; flex-direction: column; gap: 1px; }
.slack-ch {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
}
.slack-ch-active { background: #1264A3; color: #fff; font-weight: 600; }

.slack-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.slack-header {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #1D1C1D;
  border-bottom: 1px solid #E8E8E8;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.slack-header::before { content: '#'; color: #616061; }
.slack-msgs { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.slack-msg { display: flex; gap: 10px; align-items: flex-start; }
.s-av {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.wisp-av   { background: var(--amber); }
.s-body    { display: flex; flex-direction: column; gap: 2px; }
.s-name    { font-size: 13px; font-weight: 700; color: #1D1C1D; }
.s-time    { font-size: 10px; color: #999; font-weight: 400; margin-left: 6px; }
.s-text    { font-size: 13px; color: #1D1C1D; line-height: 1.55; }
.s-mention { color: #1264A3; background: #E8F5FA; padding: 0 3px; border-radius: 3px; font-weight: 500; }
.s-link    { color: #1264A3; text-decoration: underline; cursor: pointer; }
.wisp-name { color: #C17F4A; }
.app-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  background: #E8E8E8;
  color: #616061;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 3px;
}

/* ── WhatsApp view — light theme ── */
.wa-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #E9EDEF;
  display: flex;
  flex-direction: column;
}
.wa-hdr {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F0F2F5;
  border-bottom: 1px solid #E9EDEF;
}
.wa-title    { font-size: 16px; font-weight: 700; color: #111B21; }
.wa-icon-btn { font-size: 16px; color: #54656F; cursor: pointer; }
.wa-list     { flex: 1; overflow-y: auto; }
.wa-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F0F2F5;
  transition: background 0.1s;
}
.wa-item:hover      { background: #F5F6F6; }
.wa-item-active     { background: #F0F2F5; }
.wa-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.wa-av.small { width: 32px; height: 32px; font-size: 13px; }
.wa-info     { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-cname    { font-size: 13px; font-weight: 500; color: #111B21; }
.wa-preview  { font-size: 11px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-time     { font-size: 10px; color: #667781; flex-shrink: 0; }

.wa-main     { flex: 1; display: flex; flex-direction: column; background: #EFEAE2; }
.wa-chat-hdr {
  padding: 10px 16px;
  background: #F0F2F5;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #E9EDEF;
}
.wa-chat-name   { font-size: 14px; font-weight: 600; color: #111B21; }
.wa-chat-status { font-size: 11px; color: #667781; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.wa-bubble {
  max-width: 74%;
  padding: 7px 12px 7px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #111B21;
  position: relative;
}
.wa-bubble.out { background: #D9FDD3; align-self: flex-end; border-bottom-right-radius: 2px; }
.wa-bubble.in  { background: #fff;    align-self: flex-start; border-bottom-left-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

/* ── iMessage view — light theme ── */
.im-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.im-hdr {
  padding: 12px 16px;
  background: #F5F5F5;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #E5E5EA;
}
.im-back     { font-size: 22px; color: #007AFF; cursor: pointer; line-height: 1; }
.im-contact  { flex: 1; display: flex; align-items: center; gap: 10px; }
.im-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #8B5E3C);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.im-cname   { font-size: 13px; font-weight: 600; color: #000; }
.im-cstatus { font-size: 10px; color: #8E8E93; }
.im-icon-btn { font-size: 15px; color: #007AFF; cursor: pointer; }

.im-msgs {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  background: #fff;
}
.im-date { font-size: 10px; color: #8E8E93; text-align: center; margin: 4px 0; text-transform: uppercase; letter-spacing: 0.04em; }
.im-bubble {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.im-bubble.out { background: #007AFF; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.im-bubble.in  { background: #E9E9EB; color: #000; align-self: flex-start; border-bottom-left-radius: 4px; }
.im-link { color: #007AFF; font-size: 11.5px; display: block; margin-top: 3px; }
.im-input-bar {
  padding: 10px 16px;
  background: #F5F5F5;
  border-top: 1px solid #E5E5EA;
  display: flex; align-items: center; gap: 8px;
}
.im-input-placeholder {
  flex: 1;
  font-size: 13px;
  color: #C7C7CC;
  background: #fff;
  border: 1px solid #E5E5EA;
  border-radius: 18px;
  padding: 6px 14px;
}

/* ── Wisp working panel (inside Slack, light bg) ── */
.wisp-working {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #F8F8F8;
  border: 1px solid #E8E8E8;
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 6px 0 8px;
}
.ww-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-family: var(--mono);
  color: #999;
  line-height: 1.7;
}
.ww-step code {
  background: #EFEFEF;
  color: #555;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10.5px;
}
.ww-step.done   { color: #2D7D46; }
.ww-step.active { color: #1D1C1D; font-weight: 500; }
.ww-icon        { font-size: 11px; flex-shrink: 0; }
.ww-green       { color: #2D7D46; }

.wisp-pr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 7px;
  padding: 9px 13px;
  margin-top: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.wisp-pr-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2D7D46;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(45,125,70,0.15);
}
.wisp-pr-title {
  font-size: 12px;
  font-weight: 600;
  color: #1D1C1D;
  font-family: var(--mono);
  margin-bottom: 2px;
}
.wisp-pr-meta {
  font-size: 11px;
  color: #999;
  font-family: var(--mono);
}


/* ── Shared section ── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--subtle);
  margin-top: 8px;
  margin-bottom: 48px;
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}

/* ── How it works ── */
section.how { padding: 96px 0; border-top: 1px solid var(--border); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 52px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step-num {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--amber);
  letter-spacing: 0.08em;
}
.step h3 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 6px; line-height: 1.35; }
.step p   { font-size: 13px; color: var(--subtle); line-height: 1.7; }

/* ── Platforms ── */
section.platforms { padding: 96px 0; border-top: 1px solid var(--border); background: var(--surface); }
.platform-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.platform-card:hover { border-color: var(--border-lt); }
.platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.slack-icon { background: #3b0e3d; }
.wa-icon    { background: #0a3d2b; }
.im-icon    { background: #0e2d54; }
.platform-name { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.platform-desc { font-size: 13px; color: var(--subtle); line-height: 1.65; }

/* ── Who ── */
section.who { padding: 96px 0; border-top: 1px solid var(--border); }
.persona-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.persona {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: border-color 0.2s;
}
.persona:hover { border-color: var(--border-lt); }
.persona-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 12px;
}
.persona-quote { font-size: 13px; color: var(--body); line-height: 1.65; font-style: italic; }

/* ── CTA ── */
section.cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 68%);
  pointer-events: none;
}
section.cta .section-inner { position: relative; z-index: 1; }
section.cta h2  { margin-bottom: 14px; }
section.cta > .section-inner > p { font-size: 15px; color: var(--subtle); margin-bottom: 32px; }
section.cta .waitlist-form { margin-left: auto; margin-right: auto; }
section.cta .waitlist-success { margin-left: auto; margin-right: auto; text-align: center; }
section.cta .note { text-align: center; margin-top: 12px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 28px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 13px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .steps        { grid-template-columns: repeat(2, 1fr); }
  .persona-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .platform-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps        { grid-template-columns: 1fr; }
  .persona-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero  { padding: 80px 20px 60px; }
  h1     { letter-spacing: -1.2px; }
  .demo  { padding: 0 20px 72px; }
  .waitlist-form { flex-direction: column; align-items: stretch; }
  .waitlist-form input[type="email"] { min-width: unset; }
  .pipeline-step .pip-label { display: none; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }

  /* ── Platform views: hide sidebars on mobile ── */
  .platform-views { height: 300px; }

  /* Slack: hide sidebar, full-width chat */
  .slack-sidebar { display: none; }
  .slack-main    { border-radius: 0; }
  .slack-header  { font-size: 12px; padding: 10px 12px; }
  .slack-msgs    { padding: 10px 12px; gap: 10px; }
  .s-av          { width: 26px; height: 26px; font-size: 11px; }
  .s-name        { font-size: 11px; }
  .s-text        { font-size: 12px; }
  .wisp-working  { padding: 8px 10px; }
  .ww-step       { font-size: 10.5px; }
  .wisp-pr-row   { padding: 7px 10px; }
  .wisp-pr-title { font-size: 11px; }

  /* WhatsApp: hide sidebar, full-width chat */
  .wa-sidebar  { display: none; }
  .wa-bubble   { font-size: 12px; padding: 6px 10px; max-width: 85%; }

  /* iMessage: already full-width, just tighten */
  .im-bubble   { font-size: 12px; padding: 7px 12px; max-width: 80%; }
  .im-msgs     { padding: 12px; gap: 6px; }

  /* Chrome bar: smaller on mobile */
  .window-chrome { padding: 7px 10px; gap: 10px; }
  .chrome-tab    { padding: 4px 8px; font-size: 11px; gap: 4px; }
  .chrome-tab svg { display: none; }
  .dot           { width: 9px; height: 9px; }
}
