/* The public front page.
 *
 * Its own sheet rather than more rules in style.css: nothing in here is
 * used by a signed-in screen, and the app's sheet is already the size it
 * is. The colours come from the same variables so the page and the
 * product look like one thing.
 *
 * Motion is a layer, not the page. Every animation is switched off by
 * prefers-reduced-motion, and the page reads the same without it. */

.home{ overflow-x:hidden; }
.home .wrap{ max-width:1320px; margin:0 auto; padding:0 4vw; }
.home h1, .home h2, .home h3{ margin:0; }
.home p{ margin:0; }

/* ---- Nav ------------------------------------------------------------ */
.home-nav{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; gap:18px;
  padding:14px 6vw;
  background:rgba(10,21,38,.72);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.home-nav .auth-brand{ margin:0; }
.home-nav-links{ display:flex; gap:22px; margin-left:26px; font-size:13.5px; color:var(--text-soft); }
.home-nav-links a:hover{ color:var(--text); }
.home-nav .spacer{ flex:1; }
.home-nav .login{ font-size:13.5px; color:var(--text-soft); white-space:nowrap; }
.home-nav .auth-brand span{ white-space:nowrap; }
@media (max-width:480px){ .home-nav{ gap:10px; padding:12px 4vw; } .home-nav .auth-brand span.serif{ display:none; } }
.home-nav .login:hover{ color:var(--text); }
@media (max-width:760px){ .home-nav-links{ display:none; } }

/* ---- Hero ----------------------------------------------------------- */
.hero{
  position:relative; isolation:isolate;
  padding:clamp(56px,9vw,120px) 0 clamp(40px,6vw,80px);
  min-height:min(88vh, 860px);
  display:flex; align-items:center;
}
.hero-bg{ position:absolute; inset:0; z-index:-2; overflow:hidden; }
.hero-bg video, .hero-bg img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:.55;
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,21,38,.35) 0%, rgba(10,21,38,.78) 65%, var(--ink) 100%);
}
/* The drawn backdrop, when there is no video: two slow orbs and a grid
   that fades toward the bottom. Cheap to paint — transforms only. */
.hero-orb{
  position:absolute; border-radius:50%; filter:blur(70px); opacity:.5; z-index:-1;
  will-change:transform;
}
.hero-orb.a{ width:52vw; height:52vw; max-width:720px; max-height:720px; left:-14vw; top:-18vw; background:radial-gradient(circle at 40% 40%, #2E93E0, transparent 62%); animation:orb-a 26s ease-in-out infinite; }
.hero-orb.b{ width:44vw; height:44vw; max-width:620px; max-height:620px; right:-12vw; bottom:-16vw; background:radial-gradient(circle at 60% 60%, #34D399, transparent 62%); animation:orb-b 32s ease-in-out infinite; opacity:.32; }
.hero-grid{
  position:absolute; inset:0; z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
          mask-image:linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
@keyframes orb-a{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(9vw,6vw) scale(1.12);} }
@keyframes orb-b{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-8vw,-7vw) scale(1.08);} }

.hero-inner{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,5vw,72px); align-items:center; }
@media (max-width:900px){ .hero-inner{ grid-template-columns:1fr; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; letter-spacing:.08em; text-transform:uppercase; font-weight:600;
  color:var(--gold); margin-bottom:18px;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--gold); border-radius:2px; }
.hero h1{ font-size:clamp(36px,5.6vw,66px); line-height:1.04; letter-spacing:-.02em; max-width:12ch; }
.hero h1 .accent{
  background:linear-gradient(92deg, #7CC4FF, #2E93E0 55%, #34D399);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{ color:var(--text-soft); font-size:clamp(15.5px,1.6vw,18px); line-height:1.65; max-width:52ch; margin-top:22px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:30px; }
.btn-hero{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--gold-btn-bg); color:#fff; font-weight:600; font-size:15px;
  padding:14px 24px; border-radius:12px; border:1px solid transparent;
  box-shadow:0 10px 30px rgba(46,147,224,.28);
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn-hero:hover{ transform:translateY(-1px); box-shadow:0 14px 36px rgba(46,147,224,.36); }
.btn-hero svg{ width:16px; height:16px; }
.btn-ghost{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--text); font-weight:500; font-size:14.5px;
  padding:13px 18px; border-radius:12px; border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}
.btn-ghost:hover{ border-color:var(--border-control); }
.hero-note{ font-size:12.5px; color:var(--text-mute); margin:20px 0 0; line-height:1.55; max-width:52ch; }
.hero-check{ margin-top:18px; font-size:13.5px; }
.hero-check a{ color:var(--gold); }

/* Channel chips under the headline: the six places a customer might
   write from, said in words rather than borrowed logos. */
.channels{ display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.channels span{
  display:inline-flex; align-items:center; gap:7px;
  font-size:12.5px; color:var(--text-soft);
  padding:6px 11px; border-radius:999px;
  border:1px solid var(--border-soft); background:rgba(255,255,255,.025);
}
.channels i{ width:8px; height:8px; border-radius:50%; display:inline-block; }

/* ---- The inbox that answers itself (hero illustration) ------------- */
.demo{
  position:relative;
  background:linear-gradient(180deg, rgba(16,30,51,.96), rgba(12,26,44,.96));
  border:1px solid var(--border); border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow:hidden;
  transform:perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition:transform .6s ease;
}
.demo:hover{ transform:perspective(1400px) rotateY(-2deg) rotateX(1deg); }
@media (max-width:900px){ .demo{ transform:none; } .demo:hover{ transform:none; } }
.demo-top{ display:flex; align-items:center; gap:8px; padding:10px 14px; border-bottom:1px solid var(--border-soft); font-size:11.5px; color:var(--text-mute); }
.demo-top i{ width:9px; height:9px; border-radius:50%; background:#2b3d58; display:inline-block; }
.demo-top i:first-child{ background:#F0576B; } .demo-top i:nth-child(2){ background:#F5B73E; } .demo-top i:nth-child(3){ background:#34D399; }
.demo-top .title{ margin-left:10px; color:var(--text-soft); }
.demo-body{ display:grid; grid-template-columns:150px 1fr; min-height:340px; }
.demo-list{ border-right:1px solid var(--border-soft); padding:10px 8px; display:flex; flex-direction:column; gap:6px; }
.demo-row{
  display:flex; align-items:center; gap:8px; padding:8px 8px; border-radius:9px;
  font-size:11px; color:var(--text-soft); opacity:.85;
}
@media (max-width:480px){ .demo-body{ grid-template-columns:1fr; } .demo .demo-list{ display:none; } }
.demo-row.on{ background:rgba(46,147,224,.14); color:var(--text); opacity:1; }
.demo-row i{ width:7px; height:7px; border-radius:50%; flex:none; }
.demo-row b{ font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.demo-row .n{ margin-left:auto; min-width:16px; height:16px; border-radius:8px; background:var(--gold); color:#fff; font-size:10px; display:inline-flex; align-items:center; justify-content:center; padding:0 5px; }
.demo-thread{ padding:14px 14px 12px; display:flex; flex-direction:column; }
.demo-head{ display:flex; align-items:center; gap:8px; font-size:12px; padding-bottom:10px; border-bottom:1px solid var(--border-soft); margin-bottom:12px; }
.demo-head .badge{ font-size:10px; padding:2px 7px; border-radius:6px; background:rgba(37,211,102,.14); color:#5EEA9C; }
.demo-msgs{ display:flex; flex-direction:column; gap:8px; flex:1; }
.demo-msg{
  max-width:82%; padding:9px 12px; border-radius:12px; font-size:12.5px; line-height:1.45;
  opacity:0; transform:translateY(8px);
}
.demo-msg.show{ opacity:1; transform:none; transition:opacity .35s ease, transform .35s ease; }
.demo-msg.them{ align-self:flex-start; background:rgba(255,255,255,.06); border-bottom-left-radius:4px; }
.demo-msg.us{ align-self:flex-end; background:var(--gold-btn-bg); color:#fff; border-bottom-right-radius:4px; }
.demo-msg.ai{ align-self:flex-end; background:rgba(52,211,153,.16); color:#D9FBEA; border:1px solid rgba(52,211,153,.25); border-bottom-right-radius:4px; }
.demo-msg .who{ display:block; font-size:10px; opacity:.7; margin-bottom:3px; }
.demo-typing{ align-self:flex-end; display:none; gap:4px; padding:10px 12px; border-radius:12px; background:rgba(52,211,153,.16); }
.demo-typing.show{ display:inline-flex; }
.demo-typing i{ width:6px; height:6px; border-radius:50%; background:#5EEA9C; animation:dot 1s ease-in-out infinite; }
.demo-typing i:nth-child(2){ animation-delay:.15s; } .demo-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes dot{ 0%,100%{ opacity:.3; transform:translateY(0);} 50%{ opacity:1; transform:translateY(-3px);} }
.demo-event{
  margin-top:10px; display:flex; align-items:center; gap:8px;
  font-size:11.5px; color:#5EEA9C; padding:8px 10px; border-radius:9px;
  background:rgba(52,211,153,.1); border:1px solid rgba(52,211,153,.22);
  opacity:0; transform:translateY(6px);
}
.demo-event.show{ opacity:1; transform:none; transition:opacity .4s ease, transform .4s ease; }
.demo-event svg{ width:14px; height:14px; }
.demo-toast{
  position:absolute; right:14px; top:48px;
  background:#0C1A2C; border:1px solid var(--border); border-radius:10px;
  padding:9px 12px; font-size:11.5px; color:var(--text);
  box-shadow:0 12px 30px rgba(0,0,0,.4);
  opacity:0; transform:translateX(12px);
}
.demo-toast.show{ opacity:1; transform:none; transition:opacity .35s ease, transform .35s ease; }
.demo-toast small{ display:block; color:var(--text-mute); margin-top:2px; }

/* ---- Sections ------------------------------------------------------- */
.section{ padding:clamp(56px,7vw,100px) 0; }
.section-head{ max-width:640px; margin-bottom:clamp(28px,4vw,48px); }
.section-head h2{ font-size:clamp(26px,3.6vw,40px); line-height:1.12; letter-spacing:-.015em; }
.section-head p{ color:var(--text-soft); font-size:15.5px; line-height:1.6; margin-top:12px; }
.section.alt{ background:linear-gradient(180deg, transparent, rgba(255,255,255,.025) 20%, rgba(255,255,255,.025) 80%, transparent); }

.features{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
@media (max-width:900px){ .features{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .features{ grid-template-columns:1fr; } }
.feature{
  position:relative; padding:24px 22px 26px; border-radius:16px;
  background:var(--panel); border:1px solid var(--border-soft);
  transition:transform .25s ease, border-color .25s ease;
}
.feature:hover{ transform:translateY(-3px); border-color:var(--border-control); }
.feature .ic{
  width:40px; height:40px; border-radius:11px; display:grid; place-items:center;
  background:var(--gold-soft); color:var(--gold); margin-bottom:16px;
}
.feature .ic svg{ width:20px; height:20px; }
.feature h3{ font-size:16.5px; font-weight:600; margin-bottom:8px; letter-spacing:-.01em; }
.feature p{ color:var(--text-soft); font-size:13.5px; line-height:1.6; }

.steps{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; counter-reset:step; }
@media (max-width:760px){ .steps{ grid-template-columns:1fr; } }
.step{ position:relative; padding:26px 22px 24px 22px; border-radius:16px; border:1px dashed var(--border); }
.step::before{
  counter-increment:step; content:counter(step, decimal-leading-zero);
  font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold);
  display:block; margin-bottom:14px; letter-spacing:.08em;
}
.step h3{ font-size:17px; margin-bottom:8px; }
.step p{ color:var(--text-soft); font-size:13.5px; line-height:1.6; }

/* Real customer quotes — see itpsadmin/testimonials.php. Only rendered
   when at least one is published, so this never needs an empty state. */
.testimonials{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
@media (max-width:900px){ .testimonials{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .testimonials{ grid-template-columns:1fr; } }
.testimonial{
  padding:22px 22px 24px; border-radius:16px;
  background:var(--panel); border:1px solid var(--border-soft);
  display:flex; flex-direction:column;
}
.testimonial .stars{ color:var(--gold); font-size:13px; letter-spacing:2px; margin-bottom:10px; }
.testimonial blockquote{ margin:0 0 18px; font-size:14.5px; line-height:1.6; color:var(--text); flex:1; }
.testimonial blockquote::before{ content:'\201C'; } .testimonial blockquote::after{ content:'\201D'; }
.testimonial .who{ display:flex; align-items:center; gap:10px; }
.testimonial .who img{ width:38px; height:38px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.testimonial .who .avatar-fallback{
  width:38px; height:38px; border-radius:50%; background:var(--gold-soft); color:var(--gold);
  display:grid; place-items:center; font-size:14px; font-weight:600; flex-shrink:0;
}
.testimonial .who b{ display:block; font-size:13.5px; font-weight:600; }
.testimonial .who span{ display:block; font-size:12px; color:var(--text-mute); }

/* A wide band that shows the product's surfaces as three animated cards:
   the phone line, the assistant, the pipeline. Drawn, not screenshots,
   so it never goes stale against the real screens. */
.surfaces{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
@media (max-width:900px){ .surfaces{ grid-template-columns:1fr; } }
.surface{
  border-radius:16px; border:1px solid var(--border-soft); background:var(--panel-alt);
  padding:18px; min-height:210px; position:relative; overflow:hidden;
}
.surface h4{ margin:0 0 12px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-mute); font-weight:600; }
.line-call{ display:flex; align-items:center; gap:12px; padding:12px; border-radius:12px; background:var(--panel); border:1px solid var(--border-soft); }
.line-call .ring{ width:38px; height:38px; border-radius:50%; background:var(--moss-soft); color:var(--moss); display:grid; place-items:center; position:relative; }
.line-call .ring::after{ content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid rgba(52,211,153,.5); animation:ring 1.8s ease-out infinite; }
@keyframes ring{ 0%{ transform:scale(.7); opacity:1;} 100%{ transform:scale(1.5); opacity:0;} }
.line-call b{ display:block; font-size:13px; font-weight:600; }
.line-call small{ color:var(--text-mute); font-size:11.5px; }
.line-call .dur{ margin-left:auto; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-soft); }
.line-meta{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.line-meta span{ font-size:11px; padding:4px 8px; border-radius:6px; background:rgba(255,255,255,.05); color:var(--text-soft); }

.pipe{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.pipe .col{ background:var(--panel); border:1px solid var(--border-soft); border-radius:10px; padding:8px; min-height:140px; }
.pipe .col b{ display:block; font-size:10.5px; color:var(--text-mute); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; font-weight:600; }
.pipe .card{ font-size:11px; padding:7px 8px; border-radius:7px; background:rgba(255,255,255,.05); margin-bottom:6px; border:1px solid transparent; }
.pipe .card.move{ border-color:var(--gold); background:var(--gold-soft); animation:slide-col 6s ease-in-out infinite; }
@keyframes slide-col{ 0%,30%{ transform:translateX(0);} 45%,75%{ transform:translateX(calc(100% + 16px));} 90%,100%{ transform:translateX(calc(200% + 32px));} }
.pipe .card small{ display:block; color:var(--text-mute); font-size:10px; margin-top:2px; }

.assist{ font-size:12.5px; line-height:1.5; }
.assist .q{ padding:9px 11px; border-radius:11px; background:rgba(255,255,255,.06); margin-bottom:8px; max-width:88%; }
.assist .a{ padding:9px 11px; border-radius:11px; background:rgba(52,211,153,.16); border:1px solid rgba(52,211,153,.25); color:#D9FBEA; margin-left:auto; max-width:90%; }
.assist .a .cur{ display:inline-block; width:2px; height:12px; background:#5EEA9C; margin-left:2px; vertical-align:-2px; animation:blink 1s steps(2) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.assist .tag{ display:inline-block; margin-top:10px; font-size:11px; color:var(--text-mute); }

/* ---- Pricing -------------------------------------------------------- */
/* Fluid, not boxed: the pricing row uses the whole width, every plan
   sits on one row on a desktop (however many there are), two-up on a
   tablet, one-up on a phone. --plan-count is set on the grid by the
   page from the number of published plans. */
#pricing .wrap{ max-width:1480px; padding:0 3vw; }
.plans-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:clamp(12px, 1.5vw, 20px); align-items:stretch; }
@media (min-width:1100px){ .plans-grid{ grid-template-columns:repeat(var(--plan-count, 4), minmax(0, 1fr)); } }
@media (max-width:1099px) and (min-width:640px){ .plans-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:639px){ .plans-grid{ grid-template-columns:1fr; } }
.plan-card{
  background:var(--panel); border:1px solid var(--border-soft); border-radius:18px; padding:clamp(18px, 2vw, 28px) clamp(16px, 1.8vw, 24px);
  display:flex; flex-direction:column; position:relative; min-width:0;
}
.plan-card.featured{ border-color:var(--gold); box-shadow:0 0 0 1px var(--gold), 0 24px 60px rgba(46,147,224,.14); }
.plan-tag{ font-size:11px; color:var(--gold); font-weight:600; text-transform:uppercase; letter-spacing:.06em; margin-bottom:6px; }
.plan-name{ font-size:20px; }
.plan-price{ font-size:clamp(28px, 2.6vw, 38px); font-weight:600; margin:14px 0 2px; letter-spacing:-.02em; }
.plan-price span{ font-size:14px; color:var(--text-mute); font-weight:400; letter-spacing:0; }
.plan-setup{ font-size:12.5px; color:var(--text-mute); }
.plan-features{ list-style:none; padding:0; margin:18px 0 22px; font-size:13px; color:var(--text-soft); flex:1; }
.plan-features li{ padding:7px 0 7px 22px; border-top:1px solid var(--border-soft); position:relative; }
.plan-features li:first-child{ border-top:none; }
.plan-features li::before{ content:""; position:absolute; left:2px; top:12px; width:10px; height:6px; border-left:2px solid var(--moss); border-bottom:2px solid var(--moss); transform:rotate(-45deg); }
.plan-addons{ border-top:1px solid var(--border-soft); margin-top:4px; padding-top:12px; }
.plan-addons .lbl{ font-size:11px; color:var(--text-mute); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.plan-addons div.row{ display:flex; justify-content:space-between; gap:10px; font-size:12.5px; padding:2px 0; }
.plan-addons .row span:first-child{ color:var(--text-soft); } .plan-addons .row span:last-child{ color:var(--text-mute); white-space:nowrap; }
.pricing-cta{ text-align:center; max-width:640px; margin:34px auto 0; }
.pricing-cta p{ font-size:13px; color:var(--text-soft); line-height:1.6; margin-top:12px; }

/* ---- Final call + footer ------------------------------------------- */
.closing{
  position:relative; overflow:hidden; text-align:center;
  padding:clamp(56px,8vw,110px) 6vw; border-top:1px solid var(--border-soft);
}
.closing::before{
  content:""; position:absolute; left:50%; top:-40%; width:70vw; height:70vw; max-width:900px; max-height:900px;
  transform:translateX(-50%); border-radius:50%; filter:blur(90px); opacity:.28; z-index:-1;
  background:radial-gradient(circle, #2E93E0, transparent 60%);
}
.closing h2{ font-size:clamp(28px,4.4vw,48px); letter-spacing:-.02em; line-height:1.08; max-width:18ch; margin:0 auto; }
.closing p{ color:var(--text-soft); font-size:15.5px; margin:16px auto 0; max-width:50ch; line-height:1.6; }
.closing .hero-cta{ justify-content:center; }

.home-footer{
  padding:28px 6vw 36px; color:var(--text-mute); font-size:12.5px;
  display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; justify-content:center;
  border-top:1px solid var(--border-soft);
}
.home-footer a:hover{ color:var(--text); }

/* ---- Reveal on scroll ---------------------------------------------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; } .reveal.d3{ transition-delay:.24s; }
.reveal.d4{ transition-delay:.32s; } .reveal.d5{ transition-delay:.40s; }

/* Without JavaScript nothing is hidden. */
.no-js .reveal{ opacity:1; transform:none; }
.no-js .demo-msg, .no-js .demo-event{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .hero-orb, .line-call .ring::after, .pipe .card.move, .demo-typing i, .assist .a .cur{ animation:none !important; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .demo{ transform:none; }
  .demo-msg, .demo-event, .demo-toast{ opacity:1; transform:none; transition:none; }
  .demo-toast{ display:none; }
  .feature:hover{ transform:none; }
  .btn-hero:hover{ transform:none; }
}
