/* agenti.fyi landing page. Every colour comes from /ds/tokens.css; the site is dark only. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--on-brand);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.wrap-wide {
  max-width: 1240px;
}

.muted {
  color: var(--muted);
}

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--muted);
}

.dot-ok {
  background: var(--ok);
}

.dot-brand {
  background: var(--brand-ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  height: 64px;
}

.site-logo {
  display: block;
  flex: none;
  border-radius: var(--radius-sm);
}

.site-logo img {
  height: 24px;
  width: auto;
}

.site-nav {
  display: flex;
  flex: 1;
  gap: var(--space-6);
  font-size: 14px;
  line-height: 20px;
}

.site-nav a {
  color: var(--muted);
}

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

/* Buttons and fields */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--brand) 88%, var(--ink));
}

.btn-primary[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.btn-secondary {
  margin-left: auto;
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

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

.btn-quiet {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}

.btn-quiet:hover {
  color: var(--ink);
}

.field {
  width: 100%;
  min-width: 0;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
}

.field::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field[aria-invalid="true"] {
  border-color: var(--danger);
}

/* Waiting list form */

.waitlist {
  width: 100%;
  max-width: 480px;
}

.waitlist-row {
  display: flex;
  gap: var(--space-2);
}

.waitlist-row .field {
  flex: 1;
}

.waitlist-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-check:not(:empty) {
  margin-top: var(--space-2);
}

.waitlist-status {
  margin: var(--space-2) 0 0;
  font-size: 14px;
  line-height: 20px;
}

.waitlist-status:empty {
  display: none;
}

.waitlist-status.is-error {
  color: var(--danger);
}

.waitlist-done {
  max-width: 480px;
  margin: 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--brand-wash);
  color: var(--ink);
}

.waitlist-done strong {
  font-weight: 600;
}

.form-note {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* Hero */

.hero {
  position: relative;
  padding-block: var(--space-16) var(--space-16);
  isolation: isolate;
}

/* The aurora from app.js. Brand blues with a touch of violet. */
.aurora {
  --aurora-a: var(--brand);
  --aurora-b: var(--brand-ink);
  --aurora-c: #6f5cf6; /* a violet, used only here */
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  width: 100%;
  height: 820px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}

.aurora.is-ready {
  opacity: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

.hero-tag:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.hero-tag-label {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  background: var(--brand-wash);
  color: var(--brand-ink);
}

.hero-title {
  max-width: 12em;
  margin: 0 0 var(--space-6);
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 36em;
  margin: 0 0 var(--space-10);
  color: var(--muted);
  font-size: 19px;
  line-height: 30px;
  text-wrap: balance;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero .waitlist,
.hero .form-note {
  margin-inline: auto;
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.works-with li {
  padding: var(--space-1) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

/* Product frames: the example call and the dashboard */

.product {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.product-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 52px;
  padding-inline: var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.product-bar p {
  margin: 0;
}

.product-bar-icon {
  width: 24px;
  height: 24px;
}

.product-bar-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-bar-sep {
  margin-inline: var(--space-2);
  color: var(--line-strong);
}

.call {
  margin-top: var(--space-16);
}

.call-state {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.call-state .dot {
  animation: pulse 1.6s ease-in-out infinite;
}

.call.is-ended .call-state .dot {
  animation: none;
  background: var(--muted);
}

.product-caller {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--line);
}

.call-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
}

.call-number {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.call-number span {
  color: var(--ink);
  font-weight: 500;
}

.scenario {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.scenario[hidden] {
  display: none;
}

.product-call {
  padding: var(--space-6);
}

.product-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}

.side-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

/* Transcript */

.transcript {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-4);
  transition: opacity 300ms ease, transform 300ms ease;
}

.line-who {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 26px;
}

.line-agent .line-who {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 26px;
  color: var(--brand-ink);
}

.line-icon {
  width: 20px;
  height: 20px;
}

.line-text {
  margin: 0;
}

.line-event {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.line-event .line-text {
  padding-left: var(--space-4);
  border-left: 1px solid var(--line-strong);
}

.typing {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  height: 26px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--muted);
  animation: typing 1s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 150ms;
}

.typing span:nth-child(3) {
  animation-delay: 300ms;
}

/* Calendar day and the confirmation text */

.day {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.slot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
  line-height: 20px;
}

.slot-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.slot-what {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.slot-open,
.slot-muted {
  background: transparent;
}

.slot-open {
  border-style: dashed;
  border-color: var(--line-strong);
}

.slot-open .slot-what,
.slot-muted .slot-what {
  color: var(--muted);
}

.slot-target {
  border-color: var(--brand);
  background: var(--brand-wash);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.slot-target .slot-free {
  display: none;
}

.slot-booked {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.result-tag {
  flex: none;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--spark);
  color: var(--on-spark);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.sms {
  margin-top: auto;
  transition: opacity 300ms ease, transform 300ms ease;
}

.sms-to {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}

.sms-bubble {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
  background: var(--brand-wash);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}

.product-foot p {
  margin: 0;
}

/* Before the script runs, everything is visible. The script hides it, then plays it in. */
.call.is-playing .line,
.call.is-playing .sms {
  opacity: 0;
  transform: translateY(6px);
}

.call.is-playing .line.is-shown,
.call.is-playing .sms.is-shown {
  opacity: 1;
  transform: none;
}

.call.is-playing .slot-target:not(.is-shown) {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.call.is-playing .slot-target:not(.is-shown) .slot-free {
  display: block;
  color: var(--muted);
}

.call.is-playing .slot-target:not(.is-shown) .slot-booked {
  display: none;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes typing {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Sections */

.section {
  padding-block: calc(var(--space-16) * 1.5);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-10);
}

.eyebrow {
  margin: 0 0 var(--space-4);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

.section-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

/* Features: a grid of tiles, each with a small product preview */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tile-2 {
  grid-column: span 2;
}

.tile-4 {
  grid-column: span 4;
}

.tile-6 {
  grid-column: span 6;
}

.tile-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}

.tile-row .tile-copy {
  max-width: 520px;
}

.tile-title {
  margin: 0 0 var(--space-2);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.tile-text {
  margin: 0;
  color: var(--muted);
}

/* Week view */

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: auto;
}

.week-day {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.week-name {
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.block {
  display: block;
  border-radius: var(--radius-sm);
  background: var(--line);
}

.b-1 {
  height: 24px;
}

.b-2 {
  height: 40px;
}

.b-3 {
  height: 56px;
}

.block.is-free {
  border: 1px dashed var(--line-strong);
  background: transparent;
}

.block.is-new {
  border: 1px solid var(--brand);
  background: var(--brand-wash);
}

/* Small previews */

.mini-sms {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: auto;
}

.mini-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.mini-list {
  display: grid;
  gap: var(--space-2);
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
}

.mini-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.mini-time {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
}

.mini-qa {
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
  font-size: 14px;
  line-height: 20px;
}

.mini-qa p {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
}

.qa-q {
  justify-self: end;
  border-bottom-right-radius: var(--radius-sm);
  background: var(--line);
}

.qa-a {
  justify-self: start;
  border-bottom-left-radius: var(--radius-sm);
  background: var(--brand-wash);
}

.voice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: auto;
}

.voice-chip {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 56px;
}

.bar {
  flex: 1;
  border-radius: var(--radius-full);
  background: var(--brand-ink);
}

.bar-2 { height: 18%; }
.bar-3 { height: 28%; }
.bar-4 { height: 38%; }
.bar-5 { height: 48%; }
.bar-6 { height: 58%; }
.bar-7 { height: 70%; }
.bar-8 { height: 82%; }
.bar-9 { height: 96%; }

/* The waveform talks: each bar rises and falls at its own pace, and the whole wave
   dips between phrases. Reduced motion stops it (see the end of this file). */
.wave {
  animation: phrase 4.8s ease-in-out infinite;
}

.bar {
  animation: speak 1.4s ease-in-out infinite;
}

.bar:nth-child(2n) { animation-duration: 1.1s; }
.bar:nth-child(3n) { animation-duration: 1.7s; }
.bar:nth-child(5n) { animation-duration: 1.25s; }
.bar:nth-child(4n + 1) { animation-delay: -0.3s; }
.bar:nth-child(4n + 2) { animation-delay: -0.75s; }
.bar:nth-child(4n + 3) { animation-delay: -1.1s; }
.bar:nth-child(4n) { animation-delay: -0.5s; }

@keyframes speak {
  0%,
  100% { transform: scaleY(0.35); }
  20% { transform: scaleY(1); }
  35% { transform: scaleY(0.55); }
  55% { transform: scaleY(0.9); }
  75% { transform: scaleY(0.4); }
}

@keyframes phrase {
  0%,
  38%,
  62%,
  100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}

/* Feature motion. app.js adds .motion to the page (not with reduced motion), .is-in to each card
   as it scrolls into view, and plays each card's preview in a loop while it's on screen. */

.bento {
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .bento .tile {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.motion .bento .tile:nth-child(even) {
  transition-delay: 80ms;
}

.motion .bento .tile.is-in {
  opacity: 1;
  transform: none;
}

/* Calendar: blocks change state softly; a moving booking is drawn as a ghost on top. */
.motion .week {
  position: relative;
}

.motion .block {
  transition: background-color 0.5s ease, border-color 0.5s ease, opacity 0.3s ease;
}

.block-ghost {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* Texts: the newest message sits at the bottom and older ones scroll up out of view. */
.motion .mini-sms {
  justify-content: flex-end;
  height: 156px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 32px);
  mask-image: linear-gradient(transparent, #000 32px);
}

.sms-item {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

/* Calls: new calls push in at the top; the list keeps its height. */
.motion .mini-list {
  overflow: hidden;
}

/* Questions: the pair sits at the bottom so a longer answer doesn't move the card. */
.motion .mini-qa {
  align-content: end;
  min-height: 120px;
}

.qa-a .typing {
  height: 20px;
}

.bento .dot-ok {
  --ping: color-mix(in srgb, var(--ok) 60%, transparent);
}

.bento .dot-brand {
  --ping: color-mix(in srgb, var(--brand-ink) 60%, transparent);
}

.motion .bento .dot.ping {
  animation: ping 1.4s ease-out both;
}

.motion .bento .dot.is-ringing {
  animation: pulse 0.9s ease-in-out infinite;
}

.motion .bento .handover .dot {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes ping {
  from { box-shadow: 0 0 0 0 var(--ping); }
  to { box-shadow: 0 0 0 8px transparent; }
}

.handover {
  flex: none;
  width: min(100%, 400px);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.handover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.handover-name {
  margin: 0 0 var(--space-1);
  font-weight: 500;
}

.handover-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* Dashboard */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-16);
  align-items: center;
}

.ticks {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.ticks li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-ink);
  transform: translateY(-1px);
}

.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) var(--space-6);
}

.log-row + .log-row {
  border-top: 1px solid var(--line);
}

.log-time {
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

.log-caller {
  margin: 0;
  font-weight: 500;
}

.log-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.log-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

/* How it works: a real sequence, so it is numbered and joined by a line */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
}

.step {
  position: relative;
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-16);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: var(--space-1);
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq-item p {
  max-width: 60ch;
  margin: 0 0 var(--space-6);
  color: var(--muted);
}

/* Join */

.section-last {
  padding-bottom: var(--space-16);
}

.join {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
  overflow: hidden;
  padding: var(--space-16);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  isolation: isolate;
}

.join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M56 0H0v56' fill='none' stroke='%23272b35'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 90% at 100% 50%, #000 20%, transparent 100%);
}

.join-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
}

/* Footer */

.site-footer {
  padding-block: var(--space-10);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer p {
  margin: 0;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-footer-brand img {
  width: 32px;
  height: 32px;
}

.site-footer nav {
  display: flex;
  gap: var(--space-6);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

/* Cookie question for Google Analytics, added by analytics.js */

.consent {
  position: fixed;
  inset: auto var(--space-4) var(--space-4);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  max-width: 600px;
  margin-inline: auto;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 20px;
}

.consent p {
  flex: 1 1 280px;
  margin: 0;
  color: var(--muted);
}

.consent-actions {
  display: flex;
  gap: var(--space-2);
}

/* Both answers look the same, so saying no is as easy as saying yes. */
.consent-button {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.consent-button:hover {
  background: var(--bg);
}

/* Plain text pages: privacy notice, 404 */

.prose {
  max-width: 680px;
  padding-block: var(--space-16);
}

.prose h1 {
  margin: 0 0 var(--space-4);
}

.prose h2 {
  margin: var(--space-10) 0 var(--space-2);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  padding-left: var(--space-6);
}

/* Narrow screens */

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

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

  .product-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .tile-2 {
    grid-column: span 1;
  }

  .tile-4,
  .tile-6 {
    grid-column: span 2;
  }

  .split,
  .faq,
  .join {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }
}

@media (max-width: 720px) {
  .wrap {
    padding-inline: var(--space-4);
  }

  .site-logo img {
    height: 22px;
  }

  .btn-secondary {
    padding: var(--space-1) var(--space-2);
    font-size: 13px;
  }

  .hero {
    padding-block: var(--space-10);
  }

  .hero-lede,
  .section-lede {
    font-size: 16px;
    line-height: 26px;
  }

  .hero-lede {
    margin-bottom: var(--space-6);
  }

  .waitlist-row {
    flex-direction: column;
  }

  .call {
    margin-top: var(--space-10);
  }

  .product-caller,
  .product-call,
  .product-side {
    padding: var(--space-4);
  }

  .product-foot {
    padding-inline: var(--space-4);
  }

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

  .section {
    padding-block: var(--space-16);
  }

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

  .tile-2,
  .tile-4,
  .tile-6 {
    grid-column: auto;
  }

  .tile-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-6);
  }

  .handover {
    width: 100%;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .steps::before {
    top: 0;
    bottom: 0;
    left: 20px;
    width: 1px;
    height: auto;
  }

  .step {
    padding-left: 64px;
  }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
  }

  .log-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: var(--space-4);
  }

  .log-time {
    display: none;
  }

  .join {
    padding: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
