/* Page-level layout and components shared by index.html and pricing.html.
   Design-system tokens and base components live in styles.css. */

body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Section rhythm — every band after the hero is ruled off from the one above. */
.band { border-top: 1px solid var(--color-divider); padding: 72px 0; }

/* Two-column layouts. Declared here rather than inline so the media query
   below can actually collapse them — inline styles would outrank it. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center; padding: 64px 0 80px;
}
.split {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px; align-items: start;
}
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.cols-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

/* Kickers are paragraphs, not h6s: a heading-6 above every h2 scrambles the
   outline for screen readers. Visually they're unchanged. */
.kicker {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); margin: 0 0 18px;
}
.section-title { font-size: clamp(30px, 3.6vw, 40px); text-transform: uppercase; }

/* Monospaced spec-sheet type for the dialogue and lead-summary blocks. */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em;
}
.turn { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
.turn .who { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.08em; padding-top: 4px; }
.turn .who.dispatch { color: var(--color-accent-700); }
.turn .who.caller { color: var(--color-neutral-700); }

/* — brand — */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; letter-spacing: 0.02em;
}
.nav .brand { margin-right: auto; }

/* — buttons — */
.btn-primary { transition: background 120ms ease, border-color 120ms ease; }
.btn-lg { font-size: 16px; padding: 12px 22px; }
/* The design system's `.nav a { color: inherit }` and `.nav a:hover` outrank
   .btn-primary, so the header's button needs the extra specificity to stay white. */
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary:active { color: #ffffff; }

/* — problem icons — */
.icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  margin-bottom: 14px; background: var(--color-accent-100);
  border: 1px solid var(--color-accent-300); color: var(--color-accent-700);
}
.icon svg { width: 22px; height: 22px; }

/* — phone frames for the two messages in How it works —
   A dark bezel with an inset screen, drawn to a fixed 300×612 so the pair
   always matches. The screen is a real chat layout: status bar, contact
   header, the message as a received bubble, a composer at the bottom. The
   composer is what anchors the bottom edge; without it the message floated
   at the top of a blank slab. */
.phone {
  position: relative; flex: none; width: 300px; height: 612px;
  padding: 11px; border-radius: 46px; background: #0c1117;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 10%),
    inset 0 0 0 1px rgb(255 255 255 / 6%),
    0 40px 70px -24px rgb(0 0 0 / 75%),
    0 12px 24px -12px rgb(0 0 0 / 60%);
}
/* Side buttons: mute + two volume on the left, power on the right. */
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: #1a222c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 7%); }
.phone-btn-mute  { left: -3px; top: 104px; height: 26px; }
.phone-btn-vol1  { left: -3px; top: 148px; height: 48px; }
.phone-btn-vol2  { left: -3px; top: 206px; height: 48px; }
.phone-btn-power { right: -3px; top: 170px; height: 78px; }
.phone-island {
  position: absolute; z-index: 3; top: 22px; left: 50%;
  width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #0c1117;
}
.phone-screen {
  height: 100%; border-radius: 36px; background: #ffffff; overflow: hidden;
  display: flex; flex-direction: column; color: var(--color-text);
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  height: 48px; padding: 14px 24px 0 30px; font-size: 13px; font-weight: 600;
}
.phone-status-icons { display: inline-flex; gap: 5px; align-items: center; }
.phone-status-icons svg { display: block; height: 11px; width: auto; }
.chat-head {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 12px 10px; border-bottom: 1px solid var(--color-divider); background: #f7f7f8;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(#a7b0bc, #7b8794); color: #ffffff; font-weight: 600; font-size: 17px;
}
.chat-name { font-size: 11px; color: var(--color-neutral-800); }
.chat-body { flex: 1; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.chat-stamp { text-align: center; font-size: 10.5px; color: var(--color-neutral-600); margin-bottom: 4px; }
.bubble {
  position: relative; align-self: flex-start; max-width: 94%;
  padding: 9px 12px; font-size: 13.5px; line-height: 1.4;
  background: #e9e9eb; border-radius: 18px; border-bottom-left-radius: 5px;
}
.bubble p { margin: 0 0 7px; }
.bubble p:last-child { margin: 0; }
.bubble-stamp { font-size: 10.5px; color: var(--color-neutral-600); padding-left: 6px; }
/* The lead summary is a text too, so it sits in the same received bubble,
   just set in mono so the fields line up. */
.lead-head {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--color-accent-700); margin: 0 0 6px;
}
.lead-grid {
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 10px; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.45;
}
.lead-grid dt { color: var(--color-accent-700); letter-spacing: 0.04em; }
.lead-grid dd { margin: 0; overflow-wrap: anywhere; }
.lead-link { color: #0a66c2; text-decoration: underline; text-underline-offset: 2px; }
.chat-composer { display: flex; align-items: center; gap: 8px; padding: 6px 12px 4px; }
.chat-plus {
  width: 30px; height: 30px; flex: none; border-radius: 50%; background: #e9e9eb;
  display: grid; place-items: center; color: var(--color-neutral-700); font-size: 20px; line-height: 1;
}
.chat-input {
  flex: 1; height: 32px; border: 1px solid var(--color-neutral-300); border-radius: 16px;
  padding: 0 12px; font-size: 13px; color: var(--color-neutral-500); display: flex; align-items: center;
}
.phone-home { width: 110px; height: 5px; border-radius: 3px; background: #0c1117; margin: 6px auto 8px; opacity: 0.85; }

/* — demo form — */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.honey { position: absolute; left: -9999px; }

/* — pricing (pricing.html only) — */
.price { font-family: var(--font-heading); font-size: 52px; line-height: 1; }
.feature-list { display: flex; flex-direction: column; gap: 9px; font-size: 15px; margin-top: 8px; }

/* — footer — */
.footer {
  border-top: 1px solid var(--color-divider); padding: 26px 0 48px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.footer .brand { margin-right: auto; }
.footer .brand-name { font-size: 16px; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding: 40px 0 56px; }
  .hero figure { max-width: 420px; margin: 0 auto; }
  .band { padding: 56px 0; }
  .nav { flex-wrap: wrap; gap: var(--space-3); }
  .nav .brand { width: 100%; margin-right: 0; }
}
@media (max-width: 520px) {
  .turn { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .turn .who { padding-top: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
