/* ==========================================================================
   QuickZapp.AI — shared stylesheet
   Brand: indigo #3B4AA0 (from QuickZapp wordmark + footer), teal #2FB39A,
          saffron #F5A623 (bolt), ink #16183A.
   ========================================================================== */

:root {
  --ink:        #16183A;
  --ink-soft:   #454A72;
  --indigo:     #3B4AA0;
  --indigo-dk:  #2C3780;
  --indigo-lt:  #EDEFFA;
  --teal:       #2FB39A;
  --teal-lt:    #E6F6F2;
  --saffron:    #F5A623;
  --paper:      #FFFFFF;
  --paper-alt:  #F5F6FC;
  --line:       #DEE1F0;
  --line-soft:  #EBEDF7;

  --wrap: 1120px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-telugu: "Noto Sans Telugu", var(--font-body);

  --shadow: 0 18px 40px -24px rgba(22, 24, 58, .38);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-dk); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: #C9CDE8; }
.section--ink h2, .section--ink h3 { color: #fff; }

.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center p, .center .lede { margin-left: auto; margin-right: auto; }

.te { font-family: var(--font-telugu); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -.02em; color: var(--indigo);
}
.brand-name .zapp { color: var(--teal); }
.brand-name .ai { color: var(--ink); }
.brand-tag { font-size: .68rem; color: var(--ink-soft); letter-spacing: .06em; margin-top: 3px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .97rem; color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav .btn { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dk); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn--light { background: #fff; color: var(--indigo); }
.btn--light:hover { background: var(--indigo-lt); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--ink) 0%, var(--indigo) 68%, #5B4FB8 100%);
  color: #fff; padding: 54px 0 48px;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: #CBD1F2; max-width: 60ch; margin: 0; }
.crumb { font-size: .9rem; color: #A9B2E6; margin: 0 0 14px; }
.crumb a { color: #DCE1FA; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 76px; background:
  radial-gradient(900px 420px at 88% -12%, var(--indigo-lt) 0%, transparent 62%),
  radial-gradient(620px 340px at 4% 104%, var(--teal-lt) 0%, transparent 60%); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.2rem; }
.hero-note { font-size: .93rem; color: var(--ink-soft); margin-top: 18px; }

/* Conversation card — the hero visual */
.talk {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px 20px 18px;
}
.talk-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px;
}
.talk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.talk-head span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.talk-head em { font-style: normal; color: var(--ink-soft); font-weight: 400; margin-left: auto; font-size: .8rem; }

.bubble {
  border-radius: 14px; padding: 11px 15px; margin-bottom: 11px; font-size: .99rem;
  max-width: 88%;
}
.bubble small { display: block; font-size: .74rem; letter-spacing: .04em; margin-bottom: 4px; opacity: .72; font-weight: 700; }
.bubble--child { background: var(--indigo-lt); color: var(--ink); margin-right: auto; }
.bubble--tutor { background: var(--teal-lt); color: #17403A; margin-left: auto; }
.bubble p { margin: 0; }

.wave { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 12px; }
.wave i {
  display: block; width: 4px; border-radius: 2px; background: var(--indigo); opacity: .55;
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { height: 5px; } 50% { height: 20px; } }
.wave i:nth-child(2){ animation-delay:.10s } .wave i:nth-child(3){ animation-delay:.20s }
.wave i:nth-child(4){ animation-delay:.30s } .wave i:nth-child(5){ animation-delay:.40s }
.wave i:nth-child(6){ animation-delay:.50s } .wave i:nth-child(7){ animation-delay:.60s }
.wave i:nth-child(8){ animation-delay:.70s } .wave i:nth-child(9){ animation-delay:.80s }
@media (prefers-reduced-motion: reduce) { .wave i { height: 12px; } }

/* ---------- Fact strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts div { background: #fff; padding: 20px 18px; }
.facts b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.facts span { font-size: .9rem; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card--teal { border-left: 4px solid var(--teal); }
.card--indigo { border-left: 4px solid var(--indigo); }
.card--saffron { border-left: 4px solid var(--saffron); }

.section--ink .card {
  background: #1F2249; border-color: #2E3363; color: #C9CDE8;
}

/* Numbered steps (a real sequence) */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 30px; }
.step {
  display: grid; grid-template-columns: 58px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--indigo); line-height: 1;
}
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; }

/* Split compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare > div { border-radius: var(--radius); padding: 26px 24px; }
.compare .old { background: #fff; border: 1px solid var(--line); }
.compare .new { background: var(--ink); color: #C9CDE8; }
.compare .new h3, .compare .new h4 { color: #fff; }
.compare ul { margin: 0; padding-left: 0; list-style: none; }
.compare li { padding: 12px 0; border-top: 1px solid rgba(0,0,0,.08); }
.compare .new li { border-top-color: rgba(255,255,255,.12); }
.compare li:first-child { border-top: none; }
.compare b { color: inherit; display: block; font-family: var(--font-display); }
.compare .new b { color: #fff; }

/* Stat block */
.stat { display: flex; align-items: baseline; gap: 12px; }
.stat b {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--indigo); line-height: 1;
}

/* Price cards */
.price { text-align: left; }
.price .amount {
  font-family: var(--font-display); font-size: 2.2rem; color: var(--ink);
  display: block; line-height: 1.1; margin: 4px 0 2px;
}
.price .who { font-size: .9rem; font-weight: 700; color: var(--teal); }

/* Table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--indigo-lt); color: var(--ink); font-family: var(--font-display); }
tbody th { font-weight: 600; color: var(--ink); }
td.yes { color: #1B7A63; font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; }
.road div { padding: 22px 20px 22px 0; border-top: 3px solid var(--line); }
.road div.now { border-top-color: var(--teal); }
.road b { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 6px; }
.road span { font-size: .95rem; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 9px 0 9px 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--indigo) 0%, #5B4FB8 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: #DCE1FA; margin: 0; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.form-status { font-size: .95rem; font-weight: 600; color: var(--teal); min-height: 1.4em; }

/* Contact cards */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); }
.contact-list a, .contact-list b {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.contact-list a:hover { color: var(--indigo); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B0D8; padding: 54px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #C3C9EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .96rem; }
.site-footer p { font-size: .96rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name .zapp { color: var(--teal); }
.footer-brand .brand-name .ai { color: var(--saffron); }
.footer-brand .brand-tag { color: #9AA2CE; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid #2B2F5C; padding: 18px 0 22px;
  font-size: .9rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .grid--4, .facts, .road { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--indigo); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid--2, .grid--3, .grid--4, .compare, .facts, .road, .footer-grid { grid-template-columns: 1fr; }
  .road div { padding: 18px 0; }
  .cta-band { padding: 32px 24px; }
  .bubble { max-width: 96%; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
}

/* Screen-reader only */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
