/* LiveIntakeAI
   Type: Instrument Sans (text, headings) + IBM Plex Mono (data, labels)
   Palette: white page, ink, one green. Paper tints belong to the documents only. */

:root {
  --page: #ffffff;
  --wash: #f3f3f0;
  --ink: #121412;
  --ink-2: #4a4f4b;
  --ink-3: #767b76;
  --rule: #d9dbd6;
  --green: #0d6b42;
  --red: #b3261e;

  --slip: #f8dcd8;
  --slip-print: #a5302a;
  --slip-rule: rgba(165, 48, 42, 0.42);
  --canary: #fbf3c6;
  --canary-rule: rgba(18, 20, 18, 0.22);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ol, ul, figure, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.9vw, 3.25rem);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.kicker,
.section-label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

/* Logo: bell mark + wordmark, one colour (inherits the text colour) */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  top: -0.04em;
  width: auto;
  height: 1.12em;
  flex: none;
}

.wordmark-ai { font-weight: 450; }

.nav {
  display: flex;
  gap: 30px;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn:hover { background: var(--green); }

.btn-small {
  height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn-invert {
  background: #fff;
  color: var(--ink);
}

.btn-invert:hover { background: var(--slip); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-copy h1 { margin-top: 22px; }

.lead {
  max-width: 33em;
  margin-top: 28px;
  font-size: clamp(1.125rem, 1.55vw, 1.3125rem);
  line-height: 1.45;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

/* Message slip */

.slip-figure { min-width: 0; }

.slip {
  max-width: 430px;
  margin-inline: auto;
  padding: 22px 24px 26px;
  background: var(--slip);
  color: var(--slip-print);
  transform: rotate(-1.6deg);
  box-shadow:
    0 1px 0 rgba(18, 20, 18, 0.06),
    0 26px 48px -30px rgba(18, 20, 18, 0.4);
}

.slip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid currentColor;
}

.slip-title {
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.slip-no {
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.slip-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 11px 0 5px;
  border-bottom: 1px solid var(--slip-rule);
}

.field.wide { grid-column: 1 / -1; }

.field dt,
.slip-label,
.slip-checks li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field dt { flex: none; }

.field dd,
.slip-lines {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
}

.slip-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slip-rule);
}

.slip-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.box {
  display: grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.25px solid var(--slip-print);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.slip-label { margin-top: 14px; }

/* Ruled lines the typed message sits on */
.slip-lines {
  line-height: 28px;
  background-image: linear-gradient(to bottom, transparent 26px, var(--slip-rule) 26px, var(--slip-rule) 27px, transparent 27px);
  background-size: 100% 28px;
}

.slip-sign { margin-top: 4px; }

.slip-figure figcaption {
  max-width: 430px;
  margin: 26px auto 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Terms strip */

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--ink);
}

.terms > div { padding: 18px 24px 0 0; }

.terms > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.terms dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.terms dd {
  margin-top: 6px;
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section-wash { background: var(--wash); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.section-intro h2 { margin-top: 18px; }

.section-intro p:not(.section-label) {
  max-width: 30em;
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* Call log */

.log {
  background: #fff;
  border: 1px solid var(--rule);
}

.log-head,
.log-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.log-head { border-bottom: 1px solid var(--ink); }
.log-head p:first-child, .log-foot p:last-child { flex: none; }
.log-head p:last-child { text-align: right; }
.log-foot { color: var(--ink-2); }

.log-rows li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: baseline;
  padding: 17px 22px;
  border-bottom: 1px solid var(--rule);
}

.log time {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.state {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ink-3);
}

.state-missed { color: var(--red); }
.state-ok { color: var(--green); }

/* Section head (full-width sections) */

.section-head { max-width: 52rem; }
.section-head h2 { margin-top: 18px; }

.section-head p:not(.section-label) {
  max-width: 38em;
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* Outcomes: what lands where after a call */

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--ink);
}

.outcomes li {
  padding: 26px 32px 34px 0;
  border-bottom: 1px solid var(--rule);
}

.outcome-where {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green);
}

.outcomes h3 { margin-top: 14px; }

.outcomes li p:not(.outcome-where) {
  max-width: 30em;
  margin-top: 8px;
  color: var(--ink-2);
}

/* Setup steps */

.steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.steps li:first-child { border-top-color: var(--ink); }
.steps li:last-child { padding-bottom: 0; }

.step-no {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.steps p {
  max-width: 36em;
  margin-top: 8px;
  color: var(--ink-2);
}

.steps .step-part {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Integrations */

.integrations li {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.integrations li:first-child { border-top-color: var(--ink); }
.integrations li:last-child { border-bottom: 1px solid var(--rule); }

.integrations p {
  max-width: 32em;
  color: var(--ink-2);
}

.integrations .state {
  min-width: 10ch;
  white-space: nowrap;
}

/* ---------- Pricing ---------- */

.pricing-head { max-width: 52rem; }
.pricing-head h2 { margin-top: 18px; }

.pricing-head p:not(.section-label) {
  max-width: 38em;
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
}

.parts li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.parts li:first-child { border-top-color: var(--ink); }
.parts li:last-child { border-bottom: 1px solid var(--rule); }

.part-when {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.parts li p:not(.part-when):not(.part-figure) {
  max-width: 30em;
  margin-top: 8px;
  color: var(--ink-2);
}

.part-figure {
  min-width: 5.5ch;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

/* Statement */

.statement-wrap { min-width: 0; }

.statement {
  padding: 24px 26px 22px;
  background: var(--canary);
  transform: rotate(0.9deg);
  box-shadow:
    0 1px 0 rgba(18, 20, 18, 0.06),
    0 26px 48px -30px rgba(18, 20, 18, 0.35);
}

.st-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.st-title {
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 78%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.st-sub {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.stamp {
  flex: none;
  padding: 3px 8px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.statement table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.statement th,
.statement td {
  padding: 9px 0;
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}

.statement tbody tr:not(.st-group) td { border-bottom: 1px solid var(--canary-rule); }

.st-group th {
  padding-top: 18px;
  padding-bottom: 2px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.statement tfoot th,
.statement tfoot td {
  padding-top: 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  border-top: 2px solid var(--ink);
}

.statement tfoot th {
  font-family: var(--sans);
  font-weight: 600;
}

.statement tbody tr:last-child td { border-bottom: 0; }

.st-control { margin-top: 36px; }

.st-control label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.st-control-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.st-control output {
  flex: none;
  min-width: 7ch;
  font-family: var(--mono);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.st-note {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--ink);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border: 4px solid var(--wash);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--ink);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid var(--wash);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink);
}

/* ---------- FAQ ---------- */

.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top-color: var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink-2);
}

.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--green); }

.faq details p {
  max-width: 40em;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* ---------- Contact + footer ---------- */

.contact {
  padding-top: clamp(72px, 10vw, 144px);
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.contact h2 {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 1;
}

.contact-side > p {
  max-width: 28em;
  font-size: 1.125rem;
  color: #b7bcb7;
}

.contact .hero-actions { margin-top: 28px; }

.contact :focus-visible { outline-color: #fff; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(72px, 10vw, 144px);
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  color: #9a9f9a;
}

.footer-row .wordmark { font-size: 1.0625rem; color: #fff; }

/* ---------- Wide screens: controlled line breaks, sticky section intros ---------- */

@media (min-width: 901px) {
  .line { display: block; }

  .split > .section-intro {
    position: sticky;
    top: 40px;
  }

  .outcomes li:not(:nth-child(3n + 1)) {
    padding-left: 32px;
    border-left: 1px solid var(--rule);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .outcomes li:nth-child(even) {
    padding-left: 32px;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .nav { display: none; }

  .hero-grid,
  .split,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid { gap: 56px; }
  .slip, .slip-figure figcaption { margin-inline: 0; }
  .contact-grid { align-items: start; }
}

@media (max-width: 640px) {
  .header-row { height: 60px; }

  .terms { grid-template-columns: minmax(0, 1fr); }

  .terms > div,
  .terms > div + div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .terms dd { margin-top: 0; text-align: right; }

  .log-head, .log-foot { padding-inline: 16px; }

  .log-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 15px 16px;
  }

  .log-rows li p { grid-column: 1 / -1; order: 3; }

  .steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }

  .parts li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
  }

  .parts li > div { grid-column: 1 / -1; order: 3; }

  .outcomes { grid-template-columns: minmax(0, 1fr); }
  .outcomes li { padding-right: 0; }

  .integrations li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
  }

  .integrations li p { grid-column: 1 / -1; order: 3; }

  .slip { padding-inline: 18px; transform: rotate(-1deg); }
  .statement { padding-inline: 18px; transform: rotate(0.6deg); }
}
