/* ══════════════════════════════════════════════════════════
DineWise — Landing
Light, modern SaaS aesthetic (LiveChat-inspired):
white + soft-gray + one lavender section. Orange used only as
an accent (buttons, one highlight); neutral theme colors
throughout. Instrument Sans (display) × Instrument Sans (body).
══════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --bg:        #ffffff;
  --soft:      #f6f6f8;   /* very light gray section */
  --lav:       #efecff;   /* soft lavender section */
  --line:      #ececf0;
  --ink:       #1b1a24;
  --ink-2:     #6a6976;
  
  /* accents (distributed) */
  --orange:    #ff5a1f;
  --red:       #ee0007;
  --orange-2:  #cf0006;
  --purple:    #6c5cff;
  --blue:      #2f7bff;
  --green:     #12b76a;
  --yellow:    #ffb020;
  --pink:      #ff5b9a;
  --teal:      #08b1a6;
  
  --shadow-sm: 0 1px 2px rgba(27,26,36,.06), 0 1px 1px rgba(27,26,36,.04);
  --shadow-md: 0 12px 32px -12px rgba(27,26,36,.16);
  --shadow-lg: 0 30px 70px -24px rgba(27,26,36,.24);
  
  --radius: 20px;
  --radius-lg: 28px;
  
  --font-display: "Instrument Sans", -apple-system, sans-serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  
  --wrap: 1350px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  padding: .72em 1.4em; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .18s, border-color .18s, color .18s;
  white-space: nowrap; line-height: 1;
}
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--orange-2);}
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background-color: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff;  }
.btn--ghost { background: transparent; color: var(--ink); padding: .6em .9em; }
.btn--ghost:hover { color: var(--orange-2); }
.btn--lg { font-size: 1.04rem; padding: 12px 35px; }
.btn--block { width: 100%; }
.btn--outline.hover-red:hover {
  background-color: var(--red);
  border-color: var(--red);
}

/* ═══════════ NAV ═══════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background .3s, box-shadow .3s, padding .3s; }
.nav.scrolled { background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #111; border-radius: 10px; }
.brand__mark svg { width: 20px; height: 20px; }

.nav__links { display: flex; gap: 26px; margin-left: 8px; font-weight: 600; font-size: .95rem; }
.nav__links a { color: var(--ink-2); position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--orange); transition: width .25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav__burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; width: 34px; height: 28px; position: relative; }
.nav__burger span { position: absolute; left: 3px; right: 3px; height: 2.6px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 5px; }
.nav__burger span:nth-child(2) { top: 12.7px; }
.nav__burger span:nth-child(3) { top: 20px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 12.7px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 12.7px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; top: 62px; left: 12px; right: 12px; z-index: 99; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; animation: drop .28s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.mobile-menu a:hover { background: var(--soft); }
.mobile-menu .btn { margin-top: 4px; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; padding: 140px 24px 0px; margin: 0 auto; }
/* .hero::before {
content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 100%;
background: radial-gradient(circle at 30% 30%, rgba(108,92,255,.14), transparent 60%),
radial-gradient(circle at 70% 60%, rgba(255,90,31,.12), transparent 60%);
z-index: -1; pointer-events: none;
} */
.hero__grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); padding: 7px 14px 7px 11px; border-radius: 100px; font-weight: 700; font-size: .8rem; color: var(--ink); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18,183,106,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } }

.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5.6vw, 56px); line-height: 1.2; letter-spacing: -.03em; margin: 20px 0 22px; }
.hero__title span { display: block; }

.hero__sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34ch; margin-bottom: 28px; }
.hero__sub strong { color: var(--ink); font-weight: 700; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__checks { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.hero__checks li { font-size: .9rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.hero__checks li::before {     
  content: "✓";
  /* width: 18px; */
  /* height: 18px; */
  /* display: grid; */
  place-items: center;
  /* background: rgba(18, 183, 106, .14); */
  color: var(--ink);
  /* border-radius: 50%; */
  font-size: .72rem;
  font-weight: 700; 
}  
/* chat mockup — light, floating on a rounded sky-gradient panel (LiveChat-style) */
.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; top: 9%; bottom: 9%; left: -4%; right: -4%;
  border-radius: 40px; z-index: 0;
  background:
  radial-gradient(120% 90% at 15% 100%, rgba(255,255,255,.55), transparent 55%),
  radial-gradient(100% 80% at 85% 0%, rgba(214,196,255,.7), transparent 60%),
  radial-gradient(130% 100% at 70% 100%, rgba(255,224,238,.5), transparent 55%),
  linear-gradient(165deg, #d9e9fe 0%, #c9defc 38%, #d8d7fb 70%, #ecdff7 100%);
}
.chat { position: relative; z-index: 1; max-width: 360px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease); }
.hero__visual:hover .chat { transform: translateY(-4px); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.chat__avatar { width: 40px; height: 40px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; color: var(--orange); }
.chat__avatar svg { width: 19px; height: 19px; }
.chat__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.chat__status { font-size: .76rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.chat__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; opacity: 0; animation: pop .5s var(--ease) forwards; box-shadow: var(--shadow-sm); }
.bubble strong { font-weight: 700; }
.bubble--in { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.bubble--out { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 8px 18px -8px rgba(108,92,255,.6); }
.bubble:nth-child(1) { animation-delay: .5s; }
.bubble:nth-child(2) { animation-delay: 1.1s; }
.bubble:nth-child(3) { animation-delay: 1.7s; }
.bubble:nth-child(4) { animation-delay: 2.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 16px 10px; background: #fff; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .8rem; padding: 7px 13px; border-radius: 100px; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.chip-btn:hover { border-color: var(--orange); color: var(--orange-2); transform: translateY(-1px); }
.chip-btn:disabled { opacity: .45; cursor: default; transform: none; }
.chat__input { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: var(--ink-2); font-size: .88rem; border-top: 1px solid var(--line); background: #fff; }
.chat__send { width: 30px; height: 30px; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 50%; font-size: .78rem; }

.floater { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 15px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; line-height: 1.1; animation: bob 4s ease-in-out infinite; }
.floater__k { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.floater__l { font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.floater--a { top: 5%; right: 2.5%; }
.floater--a .floater__k { color: var(--green); }
.floater--b { bottom: 12%; left: 0%; animation-delay: 1.5s; }
.floater--b .floater__k { color: var(--purple); }
@keyframes bob { 50% { transform: translateY(-11px); } }

/* ─── connect (channels & tools, LiveChat-style) ─── */
.connect { padding-top: 40px; }
.connect__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 64px 40px 60px; text-align: center;
  box-shadow: 0px 149px 42px 0px rgba(0, 0, 0, 0), 0px 95px 38px 0px rgba(0, 0, 0, 0.01), 0px 53px 32px 0px rgba(0, 0, 0, 0.02), 0px 24px 24px 0px rgba(0, 0, 0, 0.04), 0px 6px 13px 0px rgba(0, 0, 0, 0.05);
}
.connect__card .lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.connect__card .lead strong { color: var(--ink); }
.connect__btn { margin-top: 28px; }

.apps { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.app { width: 58px; height: 58px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.app img { width: 35px; height: 35px; object-fit: contain; }
.app:hover { transform: translateY(-5px) scale(1.06); box-shadow: var(--shadow-md); }
.app--hero { width: 84px; height: 84px; border-radius: 22px; background: var(--ink); border: none; color: #fff; box-shadow: var(--shadow-md); margin: 0 10px; }
.app--hero svg { width: 44px; height: 44px; }
.app--hero:hover { transform: translateY(-5px) scale(1.04) rotate(-3deg); }

/* subtle headline emphasis */
/* .hlc { display: inline; border-bottom: 3px solid var(--ink); padding-bottom: 1px; } */

/* ═══════════ SECTIONS ═══════════ */
.section { max-width: var(--wrap); margin: 0 auto; padding: 80px 24px; }
.section--soft, .section--lav { max-width: none; }
.section--soft { background: var(--soft); }
.section--lav { background: #f4f3f8; }
.section--soft > *, .section--lav > * { max-width: var(--wrap); margin-inline: auto; }

.section__head { text-align: center; max-width: 710px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--ink-2); margin-bottom: 14px; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.95rem, 3.8vw, 3rem); line-height: 1.06; letter-spacing: -.025em; }
.lead { font-size: 1.1rem; color: var(--ink-2); margin-top: 15px; }

/* ─── email capture (pricing) ─── */
.capture { display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0; }
.capture__input { flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .2s; }
.capture__input::placeholder { color: var(--ink-2); }
.capture__input:focus { outline: none; border-color: var(--ink); }
.capture__input:user-invalid { border-color: var(--red); }
.capture__btn { flex-shrink: 0; }
.capture__checks { justify-content: center; margin-top: 18px; }

/* ─── pain points ─── */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 26, 36, 0.12);
}

.pain-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pain-card__tag {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--soft);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ─── Pain Toggle Pill ─── */
.pain-toggle {
  display: inline-flex;
  background: rgba(27, 26, 36, 0.05);
  padding: 3px;
  border-radius: 100px;
  position: relative;
}

.pain-toggle__btn {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
}

/* Red-themed toggle button for problem state */
.pain-toggle__btn[data-state="problem"].is-active {
  background: var(--red);
  color: #fff;
}

/* Green-themed toggle button for solution state */
.pain-toggle__btn[data-state="solution"].is-active {
  background: var(--green);
  color: #fff;
}

.pain-card__body {
  position: relative;
  flex-grow: 1;
}

/* ─── Panels ─── */
.pain-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease) forwards;
}

.pain-card[data-active-state="problem"] .pain-panel--problem {
  display: block;
}

.pain-card[data-active-state="solution"] .pain-panel--solution {
  display: block;
}

.pain-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--ink);
}

.pain-panel p {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 12px;
}

.pain__quote {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

/* ─── Simulators ─── */
.sim-phone {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0;
}

.sim-chat {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* iOS missed call notification */
.sim-missed-call {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(238, 0, 7, 0.1);
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.sim-missed-call__icon {
  font-size: 1.15rem;
  color: var(--red);
}

.sim-missed-call__details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sim-missed-call__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
}

.sim-missed-call__sub {
  font-size: 0.72rem;
  color: var(--ink-2);
  margin-top: 1px;
}

.sim-missed-call__badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Chat bubbles */
.sim-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
}

.sim-bubble--in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}

.sim-bubble--out {
  align-self: flex-end;
  background: #eaeaea;
  color: var(--ink);
  border-bottom-right-radius: 3px;
}

.sim-bubble--purple {
  background: var(--purple);
  color: #fff;
  border: none;
}

.sim-time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.6;
  margin-bottom: 2px;
  font-weight: 600;
}

.sim-link {
  text-decoration: underline;
  font-weight: 600;
}

.sim-btn-inline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  margin-left: 4px;
}

/* iOS No-show alert */
.sim-no-show {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(238, 0, 7, 0.08);
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.sim-no-show__icon {
  font-size: 1.1rem;
}

.sim-no-show__details {
  display: flex;
  flex-direction: column;
}

.sim-no-show__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.sim-no-show__status {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 1px;
}

/* System message log */
.sim-system-msg {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  margin: 4px 0;
  background: rgba(18, 183, 106, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bridge { text-align: center; margin-top: 44px; }
.bridge__line { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.2rem); letter-spacing: -.02em; }
.bridge__line em { font-style: normal; color: var(--green); }

/* ─── impact CTA (below the results band) ─── */

/* bar chart: gray bars, one highlighted */
.vbars { display: flex; align-items: flex-end; gap: 10px; width: 100%; height: 100%; padding: 8px 10px 0; }
.vbars i { flex: 1; height: var(--h); background: var(--soft); border: 1px solid var(--line); border-radius: 8px 8px 3px 3px; }
.vbars i.hot { background: var(--ink); border: none; box-shadow: 0 8px 16px -8px rgba(27,26,36,.4); }

.impact__cta { text-align: center; margin-top: 44px; }

/* ─── feature tabs (Answer / Book / Remind / Analyze) ─── */
.tabs__nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  position: relative;
  overflow: visible;
  z-index: 1;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }

/* ── Active tab: solid dark fill ── */
.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ── Next-up tab: animated border sweep ── */
.tab.is-next {
  border-color: transparent;
  background: #fff;
  color: var(--ink);
}

/* The animated border ring sits behind the button content */
.tab.is-next::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  padding: 1.5px;
  background: conic-gradient(
    var(--ink) var(--tab-progress, 0%),
    var(--line) var(--tab-progress, 0%)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  pointer-events: none;
}

.tabs__panes { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; }
.tabpane { display: none; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.tabpane.is-active { display: grid; animation: panefade .35s var(--ease); }
@keyframes panefade { from { opacity: 0; transform: translateY(8px); } }
.tabpane__copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 10px; }
.tabpane__copy > p { color: var(--ink-2); margin-bottom: 18px; }
.tabpane__demo { display: flex; justify-content: center; }

/* tab demo widgets */
.demo-chat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 18px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 400px; }
.dbubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.dbubble--in { align-self: flex-start; background: var(--soft); }
.dbubble--out { align-self: flex-end; background: var(--purple); color: #fff; }
.dbubble--wa { align-self: flex-start; background: #e7f8ef; border: 1px solid #cdeeda; }
.dbubble--me { align-self: flex-end; background: var(--ink); color: #fff; }

.bookcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 400px; overflow: hidden; }
.bookcard__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; }
.bookcard__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; font-size: .92rem; border-bottom: 1px solid var(--line); }
.bookcard__row:last-child { border-bottom: none; }
.bookcard__row span:first-child { color: var(--ink-2); }
.bookcard__row span:last-child { font-weight: 600; }

.demo-dash { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 18px; width: 100%; max-width: 400px; }
.demo-dash__row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; color: var(--ink-2); margin-bottom: 12px; }
.demo-dash .vbars { height: 110px; }
.demo-dash__stats { display: flex; gap: 18px; margin-top: 14px; font-size: .85rem; color: var(--ink-2); }
.demo-dash__stats strong { color: var(--ink); font-family: var(--font-display); }

/* ─── agent-flow (how it works interactive pipeline) ─── */
.agent-flow {
  position: relative;
  margin-top: 60px;
  width: 100%;
}

.agent-flow__loopback {
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 2;
}

.agent-flow__cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin-top: 20px;
}

/* ─── Agent Card ─── */
.agent-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 26, 36, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
  transition: flex 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}

.agent-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 26, 36, 0.15);
}

.agent-card.is-active {
  flex: 1.8;
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.agent-card__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  display: none; /* Only visible on mobile or active card */
}

.agent-card.is-active .agent-card__progress {
  display: block;
}

.agent-card__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--purple);
  transition: width 0.05s linear;
}

.agent-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.agent-card__num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.4s var(--ease);
}

.agent-card.is-active .agent-card__num {
  color: rgba(255, 255, 255, 0.5);
}

.agent-card__icon {
  color: var(--ink);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-card:hover .agent-card__icon {
  transform: scale(1.1);
}

.agent-card.is-active .agent-card__icon {
  color: var(--purple);
  transform: none;
}

.agent-card__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.agent-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  transition: color 0.4s var(--ease), font-size 0.4s var(--ease);
}

.agent-card.is-active .agent-card__title {
  font-size: 1.3rem;
  color: #ffffff;
}

.agent-card__desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 8px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin-top 0.4s var(--ease), color 0.4s var(--ease);
}

.agent-card.is-active .agent-card__desc {
  max-height: 100px;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Connecting Arrows ─── */
.agent-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  color: rgba(27, 26, 36, 0.15);
  position: relative;
  transition: color 0.4s var(--ease);
}

.agent-arrow__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(27, 26, 36, 0.08);
  z-index: 1;
}

.agent-arrow__fill {
  height: 100%;
  width: 0%;
  background: var(--purple);
  transition: width 0.05s linear;
}

.agent-arrow__head {
  width: 14px;
  height: 14px;
  z-index: 2;
  background: var(--lav); /* masks the line behind it */
  padding: 0 2px;
  color: rgba(27, 26, 36, 0.2);
  transition: color 0.4s var(--ease);
}

.agent-arrow.is-active {
  color: var(--purple);
}

.agent-arrow.is-active .agent-arrow__head {
  color: var(--purple);
}

/* ─── Actions Button ─── */
.agent-flow__actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.flow__setup {
  text-align: center;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.flow__setup strong {
  color: var(--ink);
}

/* ─── demo "what to expect" ─── */
.expect { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; counter-reset: ex; }
.expect li { counter-increment: ex; position: relative; padding-left: 36px; font-size: .95rem; color: var(--ink-2); }
.expect li::before { content: counter(ex); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.expect li strong { color: var(--ink); }
.expect__note { margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* ─── showcase ─── */
.showcase__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.ticks li { padding-left: 32px; position: relative; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; background: rgba(18,183,106,.14); color: var(--green); border-radius: 50%; font-size: .78rem; font-weight: 700; }

.showcase__panel { perspective: 1400px; }
.dash { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; transform: rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease); }
.showcase__panel:hover .dash { transform: rotateY(0) rotateX(0); }
.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash__title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.dash__pill { font-size: .7rem; font-weight: 700; color: var(--green); background: rgba(18,183,106,.14); padding: 4px 10px; border-radius: 100px; }
.dash__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--soft); border-radius: 14px; padding: 13px; }
.stat__k { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; display: block; line-height: 1; color: var(--ink); }
.stat__l { font-size: .74rem; color: var(--ink-2); font-weight: 600; }
.dash__chart { display: flex; align-items: flex-end; gap: 9px; height: 88px; padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash__chart i { flex: 1; height: var(--h); background: linear-gradient(var(--purple), var(--blue)); border-radius: 6px 6px 2px 2px; opacity: .9; }
.dash__rows { display: flex; flex-direction: column; gap: 8px; }
.drow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; font-size: .84rem; }
.drow > span:first-child { font-weight: 600; }
.drow > span:nth-child(2) { color: var(--ink-2); }
.chip { font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.chip--ok { background: rgba(18,183,106,.14); color: var(--green); }
.chip--wait { background: rgba(108,92,255,.14); color: var(--purple); }

/* ─── value band (premium impact cards) ─── */
.band__inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

.bstat {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  cursor: default;
}

.bstat:hover {
  transform: translateY(-6px);
}

/* ─ Decorative glow orb ─ */
.bstat__glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.bstat:hover .bstat__glow {
  opacity: 0.55;
  transform: scale(1.2);
}

/* ─ Icon badge ─ */
.bstat__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform .3s var(--ease);
}

.bstat:hover .bstat__icon {
  transform: scale(1.08) rotate(-3deg);
}

/* ─ Stat value ─ */
.bstat__k {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.2rem);
  line-height: 1;
  display: block;
  letter-spacing: -.03em;
}

/* ─ Label + sublabel ─ */
.bstat__l {
  font-size: .95rem;
  font-weight: 700;
  margin-top: 10px;
  display: block;
}

.bstat__sub {
  font-size: .82rem;
  margin-top: 4px;
  display: block;
  opacity: 0.7;
}

/* ── Unified neutral theme for all cards ── */
.bstat {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 2px 12px -4px rgba(27, 26, 36, 0.08);
}

.bstat:hover {
  box-shadow: 0 16px 48px -12px rgba(27, 26, 36, 0.14);
}

.bstat__glow {
  background: rgba(27, 26, 36, 0.06);
}

.bstat__icon {
  background: var(--soft);
  color: var(--ink);
}

.bstat__k {
  color: var(--ink);
}

.bstat__l {
  color: var(--ink);
}

.bstat__sub {
  color: var(--ink-2);
}

/* ─── pricing ─── */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.tier:hover { transform: translateY(-4px);}
.tier--featured { border: 2px solid var(--ink); }
/* .tier--featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,90,31,.05), transparent 40%); pointer-events: none; } */
.tier__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 5px 14px; border-radius: 100px; }
.tier__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.tier__price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 6px; }
.tier__amt { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1; letter-spacing: -.02em; }
/* .tier--featured .tier__amt { color: var(--orange); } */
.tier__per { color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.tier__desc { color: var(--ink-2); font-size: .92rem; margin-bottom: 20px; }
.tier__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.tier__list li { padding-left: 27px; position: relative; font-size: .93rem; }
.tier__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink); font-weight: 700; }

/* ─── faq ─── */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2px 22px; transition: box-shadow .3s, border-color .3s; }
.qa[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; font-family: var(--font-display); font-weight: 500;}
.qa summary::-webkit-details-marker { display: none; }
.qa__i { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.qa__i::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.qa__i::after { left: 8px; top: 0; width: 2.5px; height: 18px; }
.qa[open] .qa__i::after { transform: rotate(90deg); opacity: 0; }
.qa p { color: var(--ink-2); padding: 0 0 20px; max-width: 64ch; }

/* ─── CTA / demo (light) ─── */
.cta__card { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; background: var(--lav); border-radius: var(--radius-lg); padding: 54px 50px; }
.cta__card .cta__copy {
  max-width: 600px;
}
.cta__actions { margin-top: 24px; }
.cta .hero__checks { margin-top: 18px; }

.demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md); }
.demo__title { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; margin-bottom: 16px; }
.demo__field { margin-bottom: 13px; }
.demo__field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.demo__field .opt { color: var(--ink-2); font-weight: 500; }
.demo__field input, .demo__field textarea { width: 100%; font-family: var(--font-body); font-size: .95rem; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--soft); color: var(--ink); transition: border-color .2s, background .2s; resize: vertical; }
.demo__field input:focus, .demo__field textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.demo__status { font-size: .87rem; font-weight: 600; margin-top: 12px; min-height: 1.2em; }
.demo__status.ok { color: var(--green); }
.demo__status.err { color: var(--orange-2); }

/* ─── footer (light) ─── */
.footer { padding-bottom: 24px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__tag { color: var(--ink-2); margin-top: 14px; max-width: 30ch; font-size: .94rem; }
.footer__col h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); font-weight: 700; margin-bottom: 15px; }
.footer__col a { display: block; color: var(--ink-2); padding: 6px 0; font-size: .94rem; transition: color .2s; }
.footer__col a:hover { color: var(--orange-2); }
.footer__base { max-width: var(--wrap); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }

/* ─── reveal ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-group .reveal:nth-child(2) { transition-delay: .07s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .14s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .21s; }
.reveal-group .reveal:nth-child(5) { transition-delay: .28s; }
.reveal-group .reveal:nth-child(6) { transition-delay: .35s; }
.hero .reveal { transition-delay: calc(var(--d, 0) * 1ms); }
.hero .reveal mark {
  background-color: unset;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  .hero { padding-top: 116px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__sub { max-width: 46ch; }
  .floater--a { left: 1%; }
  .floater--b { right: 1%; }
  .pains { grid-template-columns: 1fr 1fr; }
  .showcase__grid { grid-template-columns: 1fr; gap: 40px; }
  .dash { transform: none; }
  .band__inner { grid-template-columns: 1fr 1fr; }

  .tabs__panes { padding: 28px; }
  .tabpane.is-active { grid-template-columns: 1fr; gap: 28px; }
  .tabpane__demo { order: -1; }

  .agent-flow__loopback { display: none; }
  .agent-flow__cards { flex-direction: column; gap: 16px; max-width: 480px; margin: 0 auto; }
  .agent-card { flex: none; width: 100%; min-height: auto; padding: 20px; }
  .agent-card.is-active { flex: none; }
  .agent-card__progress { display: block; }
  .agent-arrow { display: none; }
  .tiers { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .tier--featured { order: -1; }
  .cta__card { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pains { grid-template-columns: 1fr; }
  .band__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .floater { display: none; }
  .cta__card { padding: 32px 20px; }
  .capture { flex-direction: column; }
  .capture__checks { flex-direction: column; gap: 10px; }
}
.section.cta {
  padding-top: 0;
}
.error {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  text-align: left;
}
.iti {
  width: 100%;
}
.field-error, .phone-error {
  display: none;
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 6px;
}
.demo__field input.is-invalid:not(:focus), .demo__field textarea.is-invalid:not(:focus),
.iti input.is-invalid:not(:focus) {
  border-color: var(--red) !important;
}
.demo__field input.is-valid, .demo__field textarea.is-valid,
.iti input.is-valid, .iti input.is-valid:focus {
  border-color: #22c55e !important;
}

