@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600&family=Unbounded:wght@500;600&display=swap');

:root {
  /* Zendesk-inspired light palette */
  --bg: #fbfaf7;
  --ink: #03363d;
  --mut: #486266;
  --acc: #e96d46;
  --ok: #309e66;
  --line: #e5e2db;
  --surface: #ffffff;
  --surface-alt: #f5f3ec;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font: 16px/1.55 "Golos Text", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 88px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Unbounded, "Golos Text", sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { 
  outline: 3px solid var(--acc); 
  outline-offset: 2px; 
}

.w {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 60px 0; }
h2 { font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 24px; max-width: 24em; }

/* Buttons & Interactive Elements */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--acc);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--acc);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  box-sizing: border-box;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233, 109, 70, 0.25);
}
.btn:active {
  transform: translateY(0);
}
.btn.g {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
.btn.g:hover {
  background: var(--line);
  box-shadow: none;
}

/* Header Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.logo:hover .logo-mark {
  transform: rotate(-10deg) scale(1.05);
}
.logo-text {
  font-family: Unbounded, "Golos Text", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
nav a {
  margin-right: 22px;
  text-decoration: none;
  color: var(--mut);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--ink); }

/* Hero Section */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
}
h1 { font-size: clamp(26px, 4.2vw, 42px); }
.lead { margin: 16px 0 24px; color: var(--mut); font-size: 17px; max-width: 33em; line-height: 1.6; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.small {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--mut);
  max-width: 36em;
  line-height: 1.5;
}

/* Phone Mockup Tabs */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.tabs button {
  position: relative;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 8px 18px;
  font: 500 14px inherit;
  cursor: pointer;
  color: var(--mut);
  transition: all 0.2s;
}
.tabs button:hover { background: var(--surface-alt); }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
#dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 109, 70, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(233, 109, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 109, 70, 0); }
}

/* Phone Simulator - Light Theme */
.phone {
  width: 320px;
  max-width: 100%;
  height: 540px;
  margin: 0 auto;
  background: #f0f2f5;
  border-radius: 32px;
  border: 8px solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #000;
  font-size: 13.5px;
  box-shadow: 0 20px 40px rgba(3, 54, 61, 0.12);
}
.ph {
  padding: 12px 14px;
  background: var(--surface);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ph-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.ph-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.ph small { display: block; font-weight: 400; color: var(--mut); font-size: 11px; margin-top: 2px; }
#chat {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.b, .u {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  animation: slideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  line-height: 1.45;
}
.b { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 4px; }
.u { background: #e3f0e6; align-self: flex-end; border-bottom-right-radius: 4px; color: var(--ink); }
.s {
  align-self: center;
  font-size: 11px;
  color: var(--mut);
  padding: 3px 12px;
  border-radius: 99px;
  background: rgba(0,0,0,0.05);
  animation: fadeIn 0.4s ease forwards;
}
#kb {
  display: grid;
  gap: 6px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
#kb.m { grid-template-columns: 1fr 1fr; }
#kb button {
  background: #f0f2f5;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  padding: 11px 8px;
  font: 500 13.5px inherit;
  cursor: pointer;
  transition: background 0.2s;
  animation: fadeIn 0.3s ease;
}
#kb button:hover { background: #e2e5e9; }
#hint { text-align: center; margin: 14px auto 0; max-width: 320px; font-size: 14px; color: var(--mut); min-height: 44px; }

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

/* Pain Points Section */
.pain { display: grid; gap: 12px 36px; padding: 26px 0; border-top: 1px solid var(--line); }
.pain h3 { font-size: 17px; }
.pain b { color: var(--ink); }
.pain p { color: var(--mut); }
.pain p.ok b { color: var(--ok); }

/* ROI Calculator Section */
.calc { display: grid; gap: 32px; }
.sl { margin-bottom: 22px; }
.sl label { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; }
.sl input { width: 100%; height: 28px; accent-color: var(--acc); cursor: pointer; }
.res {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 32px rgba(3, 54, 61, 0.15);
}
.res div { margin-bottom: 18px; }
.res span { display: block; font-size: 14px; color: #a1b8bc; margin-bottom: 4px; }
.res strong { font: 600 28px Unbounded, sans-serif; color: #fff; }
.res p { font-size: 13.5px; color: #a1b8bc; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; line-height: 1.5; }

/* Pricing Section */
.price { display: grid; gap: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 4px 14px rgba(0,0,0,0.03); }
.card strong { font: 600 40px Unbounded, sans-serif; color: var(--acc); }
.card ul { margin: 20px 0 24px; padding-left: 20px; }
.card li { margin-bottom: 8px; }

ol { padding-left: 22px; }
ol li { margin-bottom: 14px; }

/* FAQ Section */
details { border-top: 1px solid var(--line); padding: 18px 0; }
summary { font-weight: 600; cursor: pointer; transition: color 0.2s; }
summary:hover { color: var(--acc); }
details p { margin-top: 10px; color: var(--mut); max-width: 44em; }

/* End CTA Section */
.end { background: var(--ink); color: #fff; text-align: center; }
.end h2 { margin-inline: auto; }
.end p { color: #a1b8bc; margin-bottom: 24px; }
.end .btn { background: #fff; color: var(--ink); border-color: #fff; }
.end .btn:hover { background: var(--surface-alt); }

/* Footer */
footer { padding: 40px 0; font-size: 13px; color: var(--mut); border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: underline; text-decoration-color: var(--line); transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Sticky Bottom Bar on Mobile */
.bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99;
  text-align: center;
  box-shadow: 0 8px 24px rgba(233, 109, 70, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 14px;
  padding: 15px 20px;
  font-size: 16px;
}
.bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Scroll Reveal Animations (Progressive Enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
body.has-reveal .reveal:not(.hero):not(.active) {
  opacity: 0;
  transform: translateY(24px);
}
body.has-reveal .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   MOBILE & TABLET RESPONSIVE RULES (FOCUSED & REFINED)
   ======================================================== */

@media(max-width: 699px) {
  /* Navbar */
  header .w {
    height: 56px;
    padding: 0 16px;
  }
  nav { display: none; }
  header .btn { display: none; } /* Hide redundant button in header on mobile */
  .logo-mark { width: 28px; height: 28px; }
  .logo-text { font-size: 18px; }

  /* Layout & Spacing */
  .w { padding: 0 16px; }
  section { padding: 36px 0; }
  .hero {
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  /* Typography */
  h1 {
    font-size: clamp(23px, 6.2vw, 32px);
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin: 10px 0 18px;
  }

  /* Full-width touch friendly buttons in Hero */
  .row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .row .btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 15.5px;
  }

  /* Trust Badges Chips */
  .hero-chips {
    gap: 6px;
    margin-top: 16px;
  }
  .chip {
    font-size: 12px;
    padding: 5px 10px;
  }
  .small {
    font-size: 13px;
    margin-top: 12px;
  }

  /* Phone Simulator size on small screens */
  .phone {
    height: 490px;
    border-width: 6px;
    border-radius: 26px;
  }
}

@media(max-width: 799px) {
  /* Pain Points as Cards on Mobile */
  .pain {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  }
  .pain h3 { font-size: 16px; margin-bottom: 2px; }
  .pain p { font-size: 14px; line-height: 1.5; }

  /* Calculator on Mobile */
  .calc { gap: 20px; }
  .res {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .res strong { font-size: 24px; }
  .res div { margin-bottom: 14px; }

  /* Pricing Cards on Mobile */
  .price { gap: 20px; }
  .card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .card strong { font-size: 34px; }
}

@media(min-width: 600px) {
  .footer-grid { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-links { flex-direction: row; gap: 24px; }
}

@media(min-width: 700px) {
  .bar { display: none; }
  body { padding-bottom: 0; }
}

@media(min-width: 800px) {
  .pain { grid-template-columns: 1fr 1fr 1.2fr; border-top: 1px solid var(--line); }
  .calc, .price { grid-template-columns: 1.1fr .9fr; }
}

@media(min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; }
}