/* Lydzo — www.lydzo.com
   One stylesheet, no web fonts, no remote resources (the server sends `default-src 'self'`).
   Colour: black and white with the brand orange #FF3502 as the accent. White text on #FF3502 fails WCAG AA for small
   text, so orange is used for lines, shapes, focus rings and large type only; small text on orange is black. */

/* ---- Tokens -------------------------------------------------------------------------------------------------------- */

:root {
  --ink: #0b0b0c;
  --text: #27272a;
  --text-2: #52525b;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-tint: #fff5f1;
  --orange: #ff3502;
  --orange-soft: #ffd9cc;
  --orange-wash: rgba(255, 53, 2, 0.08);

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.06);
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.05), 0 10px 28px -12px rgba(11, 11, 12, 0.18);
  --shadow-lg: 0 2px 6px rgba(11, 11, 12, 0.04), 0 28px 60px -24px rgba(11, 11, 12, 0.28);

  --gutter: 16px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* ---- Base ---------------------------------------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

::selection {
  background: var(--orange-soft);
  color: var(--ink);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.nowrap {
  white-space: nowrap;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s var(--ease);
}

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

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 11, 12, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button--primary:hover {
  background: #26262a;
  box-shadow: 0 0 0 4px var(--orange-wash), 0 6px 18px -8px rgba(11, 11, 12, 0.5);
}

.button--secondary {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}

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

.button--quiet {
  background: transparent;
  color: var(--ink);
}

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

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

.button--large {
  min-height: 54px;
  padding: 0 30px;
  font-size: 1.0625rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.actions--center {
  justify-content: center;
}

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

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 0;
  border-radius: 6px;
}

.site-header__logo {
  width: auto;
  height: 28px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .site-header__inner { min-height: 84px; }
  .site-header__logo { height: 32px; }
  .site-header__actions { gap: 8px; }
}

@media (max-width: 359px) {
  .site-header__logo { height: 24px; }
  .site-header .button--small { padding: 0 12px; }
}

/* ---- Home: hero ---------------------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 120%;
  z-index: -1;
  background: radial-gradient(48% 46% at 50% 30%, rgba(255, 53, 2, 0.09), rgba(255, 53, 2, 0) 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-wash);
}

.hero__title {
  max-width: 14ch;
  margin: 28px auto 0;
  font-size: clamp(2.6rem, 1.25rem + 6vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.mark {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% 0.11em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  max-width: 38rem;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero .actions {
  margin-top: 40px;
}

/* ---- Home: what the name means ------------------------------------------------------------------------------------- */

.meaning {
  padding: clamp(56px, 8vw, 112px) 0 clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.meaning__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.section-title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.meaning__text p {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.meaning__text p strong {
  font-weight: 700;
}

/* "Lead + O": a decorative lockup in the logo's rounded, heavy manner. */
.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.75rem, 2rem + 8vw, 8.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
}

.lockup__plus {
  color: var(--line-2);
  font-weight: 500;
}

.lockup__o {
  flex: none;
  width: 0.74em;
  height: 0.74em;
  border: 0.2em solid var(--orange);
  border-radius: 50%;
  transform: translateY(0.04em);
}

@media (min-width: 900px) {
  .meaning__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .lockup { justify-content: flex-end; }
}

/* ---- Home: the journey graphic ------------------------------------------------------------------------------------
   One customer record and seven steps. Two layouts from the same markup:
   - phones and narrow windows: the record on top and the steps along a vertical track;
   - from 768 px: the record in the middle and the steps around it on a loop.
   Without JavaScript, with prefers-reduced-motion: reduce, or on a short screen, the graphic is complete and still.
   journey.js adds .is-animated: the section then pins its stage while the page scrolls, and the orange line draws itself
   from step to step (--journey-progress, the arcs' dash offsets, .is-reached on each step). */

.journey {
  margin: 0;
  padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 128px);
}

.journey__scroll {
  position: relative;
}

.journey__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--gutter);
}

.journey__board {
  --row: 56px;
  --rail-x: 31px;
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

/* The customer record. */
.journey__record {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  padding: 13px 16px 13px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.journey__avatar {
  grid-row: span 2;
  display: block;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #ececef;
}

.journey__avatar svg {
  width: 100%;
  height: 100%;
}

.journey__avatar .avatar-shape {
  fill: #b4b4bc;
}

.journey__record-title {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.journey__meter {
  display: flex;
  gap: 4px;
}

.journey__meter-bar {
  flex: 1 1 0;
  height: 5px;
  border-radius: 3px;
  background: var(--orange);
  transition: background-color 0.35s ease;
}

/* The steps (an ordered list; numbers from a counter). */
.journey__steps {
  position: relative;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey__step {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--row);
  padding-left: 58px;
  counter-increment: journey;
}

.journey__node {
  position: absolute;
  top: 50%;
  left: calc(var(--rail-x) - 8px);
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px #fff;
  transform: translateY(-50%);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.journey__card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--ease);
}

.journey__card::after {
  /* The step's number: decoration (the list itself is ordered), so it carries an empty text alternative where supported. */
  content: counter(journey, decimal-leading-zero);
  content: counter(journey, decimal-leading-zero) / "";
  order: -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.journey__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s ease;
}

/* The vertical track (phones). */
.journey__rail {
  position: absolute;
  top: -22px;
  bottom: calc(var(--row) / 2);
  left: calc(var(--rail-x) - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.journey__rail::before {
  /* From the record down to the first step. */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: calc(22px + var(--row) / 2);
  border-radius: 2px;
  background: var(--orange);
  transition: background-color 0.3s ease;
}

.journey__rail-fill {
  position: absolute;
  top: calc(22px + var(--row) / 2);
  bottom: 0;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform-origin: 50% 0;
  transform: scaleY(1);
}

.journey__ring {
  display: none;
}

.journey__caption {
  max-width: 40rem;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-inline: var(--gutter);
  color: var(--ink);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

/* The loop (from 768 px). */
@media (min-width: 768px) {
  .journey__board {
    max-width: min(1160px, calc((100vh - 120px) * 1000 / 560));
    aspect-ratio: 1000 / 560;
    container-type: inline-size;
  }

  .journey__ring {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .journey__ring-base {
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }

  .journey__spoke {
    stroke: var(--orange);
    stroke-width: 1.5;
    stroke-dasharray: 2 6;
    stroke-linecap: round;
    opacity: 0.55;
    vector-effect: non-scaling-stroke;
    transition: stroke 0.35s ease, opacity 0.35s ease;
  }

  .journey__arc {
    /* pathLength="1": the dash offset is the share of the arc still to draw (journey.js). Butt caps, so an arc not yet
       started shows no dot at its start. */
    fill: none;
    stroke: var(--orange);
    stroke-width: 3.2;
    stroke-linecap: butt;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
  }

  .journey__record {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 27%;
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
    padding: 20px 18px 18px;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .journey__avatar {
    grid-row: auto;
    width: 56px;
    height: 56px;
  }

  .journey__record-title {
    font-size: 1rem;
    font-size: clamp(0.875rem, 1.7cqi, 1.0625rem);
  }

  .journey__meter {
    width: 100%;
    max-width: 150px;
  }

  .journey__steps {
    position: absolute;
    inset: 0;
    margin: 0;
  }

  .journey__step {
    position: absolute;
    height: auto;
    padding: 0;
    transform: translate(-50%, -50%);
  }

  /* Positions on the loop: the ellipse cx 500, cy 280, rx 400, ry 210 of a 1000 × 560 box, from the top, clockwise,
     one seventh of a turn apart (the arcs in index.html use the same points). */
  .journey__step:nth-child(1) { left: 50%; top: 12.5%; }
  .journey__step:nth-child(2) { left: 81.273%; top: 26.62%; }
  .journey__step:nth-child(3) { left: 88.997%; top: 58.345%; }
  .journey__step:nth-child(4) { left: 67.355%; top: 83.785%; }
  .journey__step:nth-child(5) { left: 32.645%; top: 83.785%; }
  .journey__step:nth-child(6) { left: 11.003%; top: 58.345%; }
  .journey__step:nth-child(7) { left: 18.727%; top: 26.62%; }

  .journey__node,
  .journey__rail {
    display: none;
  }

  .journey__card {
    gap: 10px;
    min-height: 0;
    padding: 0.7em 1.1em 0.7em 0.85em;
    font-size: 0.875rem;
    font-size: clamp(0.8125rem, 1.6cqi, 1.0625rem);
    box-shadow: var(--shadow);
  }

  .journey__icon {
    width: 1.3em;
    height: 1.3em;
  }
}

/* ---- The journey, animated (journey.js) ---------------------------------------------------------------------------- */

.journey.is-animated .journey__scroll {
  height: calc(100vh + 140vh);
  height: calc(100svh + 140vh);
}

.journey.is-animated .journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 24px;
}

.journey.is-animated .journey__rail-fill {
  transform: scaleY(var(--journey-progress, 0));
}

.journey.is-animated:not(.is-started) .journey__rail::before {
  background: var(--line-2);
}

.journey.is-animated .journey__step:not(.is-reached) .journey__node {
  border-color: var(--line-2);
  background: #fff;
}

.journey.is-animated .journey__step:not(.is-reached) .journey__card {
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}

.journey.is-animated .journey__step:not(.is-reached) .journey__icon {
  stroke: #a1a1aa;
}

.journey.is-animated .journey__step.is-current .journey__card {
  box-shadow: 0 0 0 5px var(--orange-wash), var(--shadow);
}

.journey.is-animated .journey__step.is-current .journey__node {
  transform: translateY(-50%) scale(1.15);
}

.journey.is-animated .journey__meter-bar:not(.is-reached) {
  background: var(--line);
}

@media (min-width: 768px) {
  .journey.is-animated .journey__scroll {
    height: calc(100vh + 175vh);
    height: calc(100svh + 175vh);
  }

  .journey.is-animated .journey__step:not(.is-reached) .journey__card {
    background: rgba(255, 255, 255, 0.92);
  }

  .journey.is-animated .journey__step.is-current .journey__card {
    transform: scale(1.06);
  }

  .journey.is-animated .journey__spoke:not(.is-reached) {
    stroke: var(--line-2);
    opacity: 0.9;
  }
}

/* ---- Home: email --------------------------------------------------------------------------------------------------- */

.email {
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--bg-soft);
}

.email__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.email__text p {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.email__text .link-arrow {
  margin-top: 28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.link-arrow__text {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.link-arrow__icon {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover .link-arrow__icon {
  transform: translateX(3px);
}

/* A wordless picture: an inbox and the customer record one of its messages belongs to. */
.mail-visual {
  position: relative;
  display: grid;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.mail-visual__inbox {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.mail-visual__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}

.mail-visual__envelope {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mail-visual__search {
  flex: 1;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.mail-visual__row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 10px;
  border-radius: 14px;
}

.mail-visual__row.is-active {
  position: relative;
  background: var(--bg-tint);
}

.mail-visual__row.is-active::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--orange);
}

.mail-visual__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ececef;
}

.mail-visual .mail-visual__avatar {
  grid-row: auto;
  width: 32px;
  height: 32px;
}

.mail-visual__lines {
  display: grid;
  gap: 8px;
}

.mail-visual__lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e4e4e7;
}

.mail-visual__lines span:first-child {
  width: 46%;
  background: #d4d4d8;
}

.is-active .mail-visual__lines span:first-child {
  background: var(--ink);
}

.mail-visual__lines span:last-child {
  width: 88%;
}

.mail-visual__row:nth-child(3) .mail-visual__lines span:last-child {
  width: 70%;
}

/* The customer record the highlighted message belongs to. Its avatar sits right under the message's avatar (41 px from
   the inbox's left edge: border 1 + padding 14 + row padding 10 + half of 32), and an orange thread joins the two. */
.mail-visual__record {
  position: relative;
  justify-self: start;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(82%, 320px);
  margin-top: 32px;
  margin-left: 4px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.mail-visual__record::before {
  /* From the bottom of the message's avatar (27 px above the inbox's edge) down to the record. */
  content: "";
  position: absolute;
  top: -59px;
  left: 36px;
  width: 2px;
  height: 59px;
  background: var(--orange);
}

.mail-visual__record::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 32px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px #fff;
}

.mail-visual__record .journey__avatar {
  grid-row: auto;
  width: 44px;
  height: 44px;
}

.mail-visual__record .mail-visual__lines span:first-child {
  width: 62%;
  background: var(--ink);
}

@media (min-width: 900px) {
  .email__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* ---- Home: closing ------------------------------------------------------------------------------------------------- */

.closing {
  padding: clamp(72px, 9vw, 128px) 0;
}

.closing__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.closing__panel::before {
  /* A quiet echo of the loop. */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1100px, 160%);
  aspect-ratio: 1000 / 560;
  border: 2px solid rgba(255, 53, 2, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.closing__panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1100px, 160%);
  aspect-ratio: 1000 / 560;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 11, 12, 0.94) 62%, rgba(11, 11, 12, 0) 100%);
  transform: translate(-50%, -50%);
}

.closing__title {
  max-width: 16ch;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.closing .actions {
  margin-top: 36px;
}

.closing .button--primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.closing .button--primary:hover {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 53, 2, 0.45);
}

.closing .button--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.closing .button--secondary:hover {
  border-color: #fff;
}

/* ---- Footer -------------------------------------------------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.6;
}

.closing + .site-footer,
main:has(.closing) + .site-footer {
  padding-top: 24px;
}

.site-footer a {
  color: #fff;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #27272a;
}

.site-footer__brand {
  display: inline-flex;
  padding: 4px 0;
  border-radius: 6px;
}

.site-footer__logo {
  width: auto;
  height: 28px;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__google {
  max-width: 52rem;
  padding: 28px 0;
  border-bottom: 1px solid #27272a;
}

.site-footer__legal {
  display: grid;
  gap: 6px;
  padding-top: 24px;
}

/* ---- Legal pages --------------------------------------------------------------------------------------------------- */

.page-head {
  padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page-head__meta {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.page-head__intro {
  max-width: 46rem;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.toc {
  align-self: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.9375rem;
}

.toc__title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--text-2);
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .legal {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 64px;
  }

  .toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 4px 0 4px 18px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: none;
    font-size: 0.875rem;
  }
}

/* Long-form text. */
.prose {
  min-width: 0;
  max-width: 46rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1em;
}

.prose section + section {
  margin-top: 3rem;
}

.prose h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  scroll-margin-top: 24px;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p,
.prose ul + ul,
.prose .table-wrap + p,
.prose p + .table-wrap,
.prose .callout + p,
.prose p + .callout,
.prose ul + .callout,
.prose .callout + ul {
  margin-top: 1em;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.45em;
}

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

.prose a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1.5px;
}

.prose a:hover {
  text-decoration-thickness: 2.5px;
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.callout {
  padding: 18px 20px;
  border: 1px solid var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--ink);
}

.callout p + p {
  margin-top: 0.6em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
}

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

/* Below 640 px a table becomes one block per row, each cell under its column's name. */
@media (max-width: 639px) {
  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .prose table {
    min-width: 0;
  }

  .prose thead {
    display: none;
  }

  .prose table,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
    width: 100%;
  }

  .prose tbody tr {
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .prose tbody tr + tr {
    margin-top: 12px;
  }

  .prose td {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .prose td:last-child {
    border-bottom: 0;
  }

  .prose td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .prose td:first-child {
    color: var(--ink);
    font-weight: 700;
  }
}

.prose dl {
  display: grid;
  gap: 4px 20px;
  margin: 0;
}

.prose dt {
  color: var(--ink);
  font-weight: 700;
}

.prose dd {
  margin: 0 0 12px;
}

@media (min-width: 640px) {
  .prose dl {
    grid-template-columns: max-content 1fr;
  }

  .prose dd {
    margin: 0;
  }
}

/* ---- Contact ------------------------------------------------------------------------------------------------------- */

.contact {
  display: grid;
  gap: 16px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.contact-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.contact-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.contact-card p {
  margin-top: 10px;
  color: var(--text-2);
}

.contact-card__address {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}

.contact-card--company {
  background: var(--bg-soft);
  border-color: transparent;
}

.contact-card address {
  margin-top: 14px;
  color: var(--text);
  font-style: normal;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card--company {
    grid-column: 1 / -1;
  }
}

/* ---- Download (the Lydzo Staff App, /download — unlisted until launch) --------------------------------------------- */

.download-head__icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 22%;
}

.download {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

/* Two cards of identical size side by side; one column on a phone (rule 2). Equal rows keep both cards one size, stacked too. */
.download__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  max-width: 760px;
}

@media (min-width: 560px) {
  .download__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
}

.download-card__os {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.download-card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.download-card__badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
}

.download-card__badge--ok {
  background: #e8f5ee;
  color: #1a7343;
}

.download-card__badge--wait {
  background: var(--bg-soft);
  color: var(--text-2);
}

.download-card__meta {
  min-height: 3em;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.download-card__button {
  width: 100%;
  white-space: normal;
}

.download-card__button:disabled {
  background: var(--bg-soft);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.download-card__steps {
  align-self: stretch;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 0.875rem;
  text-align: left;
}

.download-card__steps li + li {
  margin-top: 4px;
}

.download__foot {
  margin-top: 24px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---- 404 ----------------------------------------------------------------------------------------------------------- */

.not-found {
  padding-block: clamp(72px, 12vw, 160px);
  text-align: center;
}

.not-found .not-found__code {
  margin: 0;
  max-width: none;
  color: var(--orange);
  font-size: clamp(4.5rem, 3rem + 8vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.not-found h1 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
}

.not-found p {
  max-width: 32rem;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 1.125rem;
}

.not-found .actions {
  margin-top: 32px;
}

/* ---- Motion and print ---------------------------------------------------------------------------------------------- */

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

@media print {
  .site-header__actions,
  .skip-link,
  .toc,
  .site-footer__nav {
    display: none !important;
  }

  .site-footer {
    background: none;
    color: #000;
  }

  .site-footer a {
    color: #000;
  }

  .site-footer__logo {
    display: none;
  }

  .legal {
    display: block;
  }

  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
