/* Marketing site. Colours, type sizes and spacing come from tokens.css (made from design/tokens.json). */

@font-face {
  font-family: 'Coral Pixels';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/coral-pixels-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-synthesis: none; /* Coral Pixels has one weight; don't fake a bold */
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: var(--body-line);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
.mono {
  font-family: var(--font-mono);
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.skip {
  position: absolute;
  left: var(--space-4);
  top: -80px;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}
.skip:focus {
  top: var(--space-2);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Type */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: var(--display-l-weight);
  letter-spacing: var(--display-l-tracking);
  text-transform: uppercase;
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}
h2 {
  font-size: var(--display-l-size);
  line-height: var(--display-l-line);
}
h3 {
  font-size: var(--title-size);
  line-height: var(--title-line);
  font-weight: var(--title-weight);
}
.eyebrow,
.tag {
  font-size: var(--label-size);
  line-height: var(--label-line);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
}
.small {
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line);
  color: var(--ink-muted);
}
.narrow {
  max-width: 640px;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--ink);
  border-radius: var(--radius-none);
  background: transparent;
  color: var(--ink);
  font-size: var(--body-sm-size);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-200);
}
.btn.primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
}
.btn.primary:hover {
  background: var(--signal);
  border-color: var(--ink);
}
.link {
  font-size: var(--body-sm-size);
  font-weight: 600;
}

/* Wordmark: ANOTHER over NUMBER, with the two Ns lined up and the two Rs ending together. */
.wordmark,
.foot-mark {
  font-family: var(--font-wordmark);
  line-height: 1.15;
  letter-spacing: 0.1em;
  font-kerning: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.wordmark {
  font-size: 16px;
}
.foot-mark {
  font-size: 20px;
  margin-bottom: var(--space-2);
}
.pad {
  visibility: hidden;
}
.second {
  letter-spacing: 0.0872em;
}

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.bar-in {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 64px;
}
.nav {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
  font-size: var(--body-sm-size);
}
.nav a {
  text-decoration: none;
  color: var(--ink-muted);
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .bar-actions {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
    gap: var(--space-8);
  }
}

/* Example conversation: the same styling as the app's thread. */
.mock {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-100);
  border: 1px solid var(--hairline);
  border-bottom: 0;
}
.mock-name {
  font-weight: 600;
}
.mock-num {
  font-size: var(--meta-size);
  color: var(--ink-muted);
}
.mock-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-100);
  border: 1px solid var(--hairline);
}
.msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.msg.in {
  align-self: flex-start;
  align-items: flex-start;
}
.msg.out {
  align-self: flex-end;
  align-items: flex-end;
}
.bubble {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.in .bubble {
  background: var(--surface-200);
}
.out .bubble {
  background: var(--outbound-fill);
  color: var(--outbound-text);
}
.receipt {
  margin-top: var(--space-1);
  font-size: var(--meta-size);
  line-height: var(--meta-line);
  color: var(--ink-muted);
}
.draft {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px dashed var(--ink-muted);
}
.draft-text {
  font-size: var(--body-size);
}
.draft-actions {
  display: flex;
  gap: var(--space-2);
}
.mini {
  padding: 2px var(--space-3);
  border: 1px solid var(--ink);
  font-size: var(--body-sm-size);
  font-weight: 650;
}

/* Example brief to an agent */
.brief {
  margin: 0 0 var(--space-8);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.brief blockquote {
  margin: var(--space-3) 0 0;
  max-width: 860px;
  font-size: 26px;
  line-height: 36px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .brief blockquote {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Infographic: records, agent, approval, Another Number, customer, and the replies coming back. */
.flow {
  margin-bottom: var(--space-6);
}
.flow-nodes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px;
}
.node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--ink);
}
.node p {
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line);
  color: var(--ink-muted);
}
.node-n {
  font-size: var(--num-m-size);
  font-weight: var(--num-m-weight);
  color: var(--ink-muted);
}
.node.gate {
  border-style: dashed;
}
.node.product {
  background: var(--outbound-fill);
  color: var(--outbound-text);
}
.node.product p,
.node.product .node-n {
  color: var(--outbound-text);
  opacity: 0.8;
}
/* An arrow in the gap after each box. */
.node:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  top: 50%;
  right: -28px;
  width: 20px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  text-align: center;
  color: var(--ink);
}
/* The way back: a bracket from the customer to the agent. */
.loop {
  position: relative;
  height: 64px;
  /* from the middle of box 05 back to the middle of box 02 (5 boxes, 36px gaps) */
  margin: 0 calc((100% - 144px) * 0.1) 0 calc((100% - 144px) * 0.3 + 36px);
  border: 1px solid var(--ink);
  border-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.loop::before {
  /* An arrowhead drawn with the same 1px line, its tip touching box 02 and centred on the bracket's left line. */
  content: '';
  position: absolute;
  left: -4.5px;
  top: 1.66px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  transform: rotate(45deg);
}
.loop span {
  padding: 0 var(--space-3);
  margin-bottom: -12px;
  background: var(--paper);
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line);
  font-weight: 600;
  text-align: center;
}
.section.white .loop span,
.section.white .node {
  background-color: var(--surface-100);
}
.section.white .node.product {
  background-color: var(--outbound-fill);
}
@media (max-width: 900px) {
  .flow-nodes {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .node:not(:last-child)::after {
    content: '\2193';
    top: auto;
    bottom: -28px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .loop {
    height: auto;
    margin: var(--space-6) 0 0;
    padding: var(--space-3);
    border: 1px dashed var(--ink-muted);
  }
  .loop::before {
    display: none;
  }
  .loop span {
    margin: 0;
    padding: 0;
    background: none;
  }
}

/* Examples */
.examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.example {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-100);
  border: 1px solid var(--hairline);
}
.brief-sm {
  margin: 0;
  padding-left: var(--space-3);
  border-left: 1px solid var(--ink);
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line);
  color: var(--ink-muted);
}
.convo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}
.convo-head .mono {
  font-size: var(--meta-size);
  font-weight: 400;
  color: var(--ink-muted);
}
.convo {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.convo .msg {
  max-width: 90%;
}
.convo .in .bubble {
  background: var(--surface-200);
}
.control strong {
  color: var(--ink);
}
.line {
  margin-top: calc(var(--space-1) * -1);
  font-size: var(--meta-size);
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}
.section.white {
  background: var(--surface-100);
}
.section.alt {
  background: var(--surface-200);
}
.section h2 {
  margin-bottom: var(--space-6);
}
@media (max-width: 900px) {
  .section {
    padding: var(--space-12) 0;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--ink);
}
.step-n {
  font-size: var(--num-m-size);
  font-weight: var(--num-m-weight);
  color: var(--ink-muted);
}
.steps p {
  color: var(--ink-muted);
}


.bullets li {
  position: relative;
  padding: var(--space-1) 0 var(--space-1) var(--space-6);
}
.bullets li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 500;
}
.currency {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--body-sm-size);
}
.currency[hidden] {
  display: none;
}
.currency label {
  font-weight: 600;
}
.currency select {
  height: 36px;
  padding: 0 var(--space-3);
  background: var(--surface-100);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-none);
  font: inherit;
}
#currency-note:empty {
  display: none;
}
#currency-note {
  margin-top: var(--space-2);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-6);
}
.plans > li {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--ink);
}
.plans .bullets {
  flex: 1;
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-line);
}
.amount {
  font-size: var(--num-l-size);
  line-height: var(--num-l-line);
  font-weight: var(--num-l-weight);
}
.per {
  font-size: var(--body-sm-size);
  color: var(--ink-muted);
}

.closing {
  padding: 72px 0;
  background: var(--surface-100);
  border-top: 1px solid var(--hairline);
}
.closing-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

/* Footer */
.foot {
  border-top: 1px solid var(--hairline);
  padding: var(--space-8) 0;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
}
.foot p + p {
  margin-top: var(--space-2);
}
.built {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.built img {
  display: block;
  width: auto;
  height: 48px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .plans,
  .examples {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .bar-actions .link {
    display: none;
  }
}
