/*
 * The public website.
 *
 * Standalone on purpose: no Bootstrap, no dashboard stylesheet. The dashboard is dense by
 * design — small type, tight rows, read all day by staff who know it. This page is read
 * once, often on a phone, by someone deciding whether to keep reading, and it should not
 * inherit a change made to a table three screens deep in the product.
 *
 * The brand tokens are the same values as atithi.css, restated rather than imported, so
 * the two can be kept deliberately in step instead of accidentally coupled.
 */

:root {
  --navy: #0f1b2d;
  --navy-soft: #1b2b43;
  --ink: #1c2431;
  --muted: #5d6b7e;
  --line: #e3e6eb;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --accent: #0e7c86;
  --accent-dark: #0a626a;
  --accent-soft: #e6f2f3;
  --gold: #c8933a;
  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6rem;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-family: inherit; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

/*
 * Solid rather than translucent. A blurred backdrop reads nicely on a fast laptop and
 * costs a compositing layer on every scroll frame everywhere else — and it is the kind of
 * effect that quietly breaks rendering on the machines least able to spare the work.
 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  line-height: 1;
}

.brand__name { font-size: 1.05rem; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: .95rem;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.site-head__actions { display: flex; gap: .6rem; align-items: center; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-head__actions { margin-left: auto; }
}

@media (max-width: 480px) {
  .site-head__actions .btn--ghost { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: .62rem 1.15rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-soft); color: #fff; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); color: var(--ink); }

.btn--lg { padding: .85rem 1.6rem; font-size: 1rem; }

/* ── Sections ────────────────────────────────────────────────────────────── */

section { padding: 84px 0; }
section.tight { padding: 60px 0; }
.alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.dark { background: var(--navy); color: #e8eef6; border: 0; }
.dark h2 { color: #fff; }
.dark a { color: #8fd3da; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.dark .eyebrow { color: var(--gold); }

.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark .lede { color: #b6c4d6; }

.section-head { max-width: 68ch; margin-bottom: 2.5rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 92px 0 72px;
  background:
    radial-gradient(1000px 420px at 12% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__lede { font-size: 1.22rem; color: var(--muted); max-width: 54ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.hero__note { margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* A phone showing a real conversation, drawn rather than screenshotted so the words stay
   true when the product's wording changes. */
.phone {
  max-width: 340px;
  margin-left: auto;
  background: var(--navy);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(15, 27, 45, .22);
}
.phone__screen {
  background: #fff;
  border-radius: 18px;
  padding: 16px 14px 18px;
}
.phone__bar {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.bubble {
  font-size: .92rem;
  line-height: 1.45;
  padding: .55rem .8rem;
  border-radius: 14px;
  margin-bottom: .55rem;
  max-width: 88%;
}
.bubble--guest {
  background: var(--accent);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble--ai {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble__meta {
  display: block;
  margin-top: .3rem;
  font-size: .68rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .phone { margin: 0 auto; }
}

/* ── Cards and grids ─────────────────────────────────────────────────────── */

.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.alt .card { background: #fff; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.card__icon svg { width: 20px; height: 20px; }

/* ── The rules list ──────────────────────────────────────────────────────── */

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.rules li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .9rem;
  align-items: start;
}
.rules svg { width: 22px; height: 22px; color: var(--gold); margin-top: .22rem; }
.rules strong { display: block; color: #fff; margin-bottom: .15rem; }
.rules span { color: #b6c4d6; font-size: .97rem; }

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps { counter-reset: step; display: grid; gap: 1.8rem; }
.steps li { list-style: none; display: grid; grid-template-columns: 42px 1fr; gap: 1.1rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}
.steps h3 { margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }

/* ── Table ───────────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; }

table.roles {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  min-width: 640px;
}
table.roles th, table.roles td {
  text-align: left;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.roles thead th {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
}
table.roles td:first-child { font-weight: 600; white-space: nowrap; }
table.roles td span { color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  background: #fff;
}
details.faq + details.faq { margin-top: .8rem; }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: .9rem 0 0; color: var(--muted); }

/* ── Demo form ───────────────────────────────────────────────────────────── */

.demo__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .demo__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .32rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 88px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* The honeypot. Hidden from people and from screen readers, present in the DOM. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  font-size: .96rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-foot {
  background: var(--navy);
  color: #b6c4d6;
  padding: 56px 0 28px;
}
.site-foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.brand--foot .brand__name { color: #fff; }
.brand--foot .brand__mark { background: #fff; color: var(--navy); }
.site-foot__line { margin: .7rem 0 0; font-size: .95rem; }
.site-foot__links { display: grid; gap: .45rem; font-size: .95rem; }
.site-foot__links a { color: #b6c4d6; }
.site-foot__links a:hover { color: #fff; }
.site-foot__fine {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid #26374f;
  font-size: .82rem;
  color: #8697ad;
}

/*
 * On a phone the chat launcher floats over the bottom-right corner, which is where the
 * last footer link sits. Leave it room rather than let the product cover the way to
 * contact us.
 */
@media (max-width: 620px) {
  .site-foot { padding-bottom: 92px; }
  .hero { padding-top: 64px; }
  section { padding: 64px 0; }
}

/* ────────────────────────────────────────────────────────────────────────────
 * Density and motion
 *
 * The page said everything twice and had the whitespace of a brochure. These two
 * sections do the compressing: tighter vertical rhythm, and movement that earns its
 * place by showing something — the conversation plays rather than sits finished.
 * ──────────────────────────────────────────────────────────────────────────── */

section { padding: 60px 0; }
section.tight { padding: 44px 0; }
.hero { padding: 68px 0 56px; }
.section-head { margin-bottom: 1.9rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head .lede { font-size: 1.05rem; }
.card { padding: 1.25rem; }
.card p { margin-bottom: 0; }
.grid { gap: 1rem; }

.wrap--narrow { max-width: 760px; }
.center { margin-inline: auto; text-align: center; }

/* The channel row: five words where five cards used to be. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .92rem;
  font-weight: 500;
  transition: transform .18s ease, border-color .18s ease;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }

.opt { font-weight: 400; color: var(--muted); }
.form-card .hint { margin-top: .9rem; }

/*
 * Reveal on scroll.
 *
 * The hidden state is applied only once the script has confirmed it can un-hide things:
 * without `has-motion` on the root every .reveal is simply visible, so a reader with
 * reduced motion, a browser with no IntersectionObserver, and a crawler all get the
 * finished page rather than an empty one.
 */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}
.has-motion .reveal.is-in { opacity: 1; transform: none; }

/* Children of a stagger go one after another rather than all at once. */
.has-motion .stagger > .reveal:nth-child(2) { transition-delay: .07s; }
.has-motion .stagger > .reveal:nth-child(3) { transition-delay: .14s; }
.has-motion .stagger > .reveal:nth-child(4) { transition-delay: .21s; }
.has-motion .stagger > .reveal:nth-child(5) { transition-delay: .28s; }
.has-motion .stagger > .reveal:nth-child(6) { transition-delay: .35s; }
.has-motion .stagger > .reveal:nth-child(7) { transition-delay: .42s; }
.has-motion .stagger > .reveal:nth-child(8) { transition-delay: .49s; }

/* The hero conversation arriving a message at a time. */
.has-motion .phone__screen [data-beat] {
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.has-motion .phone__screen [data-beat].is-in { opacity: 1; transform: none; }

.phone { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.has-motion .phone:hover { transform: translateY(-4px); }

.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.has-motion .card:hover { transform: translateY(-3px); border-color: var(--accent); }

@media (max-width: 620px) {
  section { padding: 48px 0; }
  section.tight { padding: 36px 0; }
  .hero { padding: 52px 0 44px; }
}
