/* The Sendly website. Fonts are served from here: nothing loads from other companies.
   Colours come from the Sendly icon: deep indigo, an indigo blue for actions, and the
   icon's cyan-to-coral glow for small accents. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2-variations"), url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2-variations"), url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #15114a;
  --navy-2: #241d6e;
  --ink: #13122e;
  --ink-2: #4b4d6e;
  --ink-3: #66688a;
  --bg: #f5f5fb;
  --surface: #ffffff;
  --line: #e4e5f1;
  --line-strong: #d2d4e6;
  --accent: #4450e6;
  --accent-hover: #3640c9;
  --accent-soft: #eceefe;
  --accent-border: #cdd1fa;
  --cyan: #3fe0f2;
  --glow: linear-gradient(135deg, #3fe0f2, #4450e6);
  --headline: linear-gradient(90deg, #3a63f0, #6a4fe3 50%, #ec5f5c);
  --radius: 18px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* A value still to be filled in company.json. */
mark.todo {
  background: #fff4d1;
  color: inherit;
  border-bottom: 1px dashed #c99a1e;
  border-radius: 3px;
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.foot mark.todo,
.trust mark.todo {
  background: rgb(255 214 102 / 0.14);
  color: #ffe2a0;
  border-bottom-color: rgb(255 214 102 / 0.5);
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
  color: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.035em;
  text-decoration: none;
}

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

.logo img {
  display: block;
  width: 36px;
  height: 36px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(245 245 251 / 0.82);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgb(210 212 230 / 0.6);
}

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

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.top-nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.top-nav a:not(.btn):hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(19 18 46 / 0.06);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  color: var(--ink);
  border-color: #bcbfd9;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgb(19 18 46 / 0.1), 0 8px 20px -8px rgb(68 80 230 / 0.6);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14.5px;
}

/* Shared */
.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
}

.lead + .lead {
  margin-top: 14px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 104px;
  background:
    radial-gradient(45% 55% at 82% 32%, rgb(68 80 230 / 0.12), transparent 100%),
    radial-gradient(35% 45% at 6% 0%, rgb(63 224 242 / 0.13), transparent 100%),
    var(--bg);
}

/* A faint grid of dots that fades out downwards. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(21 17 74 / 0.1) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 60%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 28px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(19 18 46 / 0.05);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 3px rgb(68 80 230 / 0.14), 0 0 10px rgb(63 224 242 / 0.7);
}

.hero h1 {
  font-size: clamp(38px, 3.8vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 660;
  margin-bottom: 24px;
}

.hero h1 span {
  display: block;
  text-wrap: balance;
}

/* The second line in the colours of the icon. */
.hero h1 span + span {
  width: fit-content;
  background: var(--headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

/* Sections */
.section {
  padding: 112px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2,
.trust h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  max-width: 17em;
}

/* Features */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgb(21 17 74 / 0.35);
}

.card-wide {
  grid-column: span 2;
  background: radial-gradient(80% 120% at 100% 0%, rgb(68 80 230 / 0.08), transparent 70%), var(--surface);
}

.card .icon {
  margin-bottom: 22px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-2);
  font-size: 15.5px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

/* How it works */
.steps {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.steps li {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--line);
}

/* A dot on the line. */
.steps li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 4px var(--surface), 0 0 14px rgb(68 80 230 / 0.6);
}

.step-no {
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 10px;
}

.steps h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.steps p {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Privacy band */
.trust {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background:
    radial-gradient(55% 80% at 100% 0%, rgb(122 79 224 / 0.35), transparent 100%),
    radial-gradient(45% 70% at 0% 100%, rgb(242 102 90 / 0.13), transparent 100%),
    var(--navy);
  color: #c6c7e6;
}

.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.09) 1.3px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 50%, #000, transparent);
  mask-image: radial-gradient(70% 90% at 100% 50%, #000, transparent);
  pointer-events: none;
}

.trust .wrap {
  position: relative;
}

.trust .eyebrow {
  color: #a9b0ff;
}

.trust h2 {
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
}

.trust-links a {
  color: #fff;
  font-weight: 500;
}

.trust-links a:hover {
  color: #d4d8ff;
}

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

.trust-list li {
  position: relative;
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  font-size: 17px;
}

.trust-list li:first-child {
  padding-top: 4px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 31px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgb(63 224 242 / 0.8);
}

.trust-list li:first-child::before {
  top: 13px;
}

.trust-list b {
  color: #fff;
  font-weight: 600;
}

/* Company */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-grid h2 {
  margin-bottom: 22px;
}

.facts {
  margin: 0;
  padding: 8px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

/* Contact */
.contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, transform 0.2s;
}

a.contact:hover {
  color: var(--ink);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.contact .icon {
  margin-bottom: 14px;
  background: var(--surface);
}

.contact-label {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-value {
  font-weight: 600;
  font-size: 16.5px;
}

/* Legal pages */
.doc {
  padding: 80px 0 112px;
}

.doc-wrap {
  max-width: 800px;
}

.doc h1 {
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.doc .updated {
  margin: 14px 0 34px;
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 13.5px;
}

.doc .lead {
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 25px;
  margin: 56px 0 14px;
  scroll-margin-top: 90px;
}

.doc h3 {
  font-size: 18px;
  margin: 30px 0 10px;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc p + p {
  margin-top: 12px;
}

.doc b {
  color: var(--ink);
  font-weight: 600;
}

.doc ul {
  padding-left: 22px;
  margin: 12px 0;
}

.doc li + li {
  margin-top: 8px;
}

.toc {
  margin-top: 34px;
  padding: 22px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 36px;
}

.toc li {
  margin: 5px 0;
  break-inside: avoid;
}

.toc li + li {
  margin-top: 5px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

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

th {
  background: #f8f8fd;
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--ink-2);
}

td:first-child {
  width: 55%;
}

.steps-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
}

.steps-list li {
  position: relative;
  counter-increment: step;
  padding: 24px 26px 24px 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps-list li + li {
  margin-top: 0;
}

.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.steps-list h3 {
  margin: 5px 0 6px;
}

.aside {
  margin-top: 52px !important;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* Footer */
.foot {
  padding: 80px 0 36px;
  background: var(--navy);
  color: #aeb0d6;
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.foot-company .logo {
  margin-bottom: 18px;
}

.foot .logo,
.foot .logo:hover {
  color: #fff;
  text-decoration: none;
}

.foot-company p {
  max-width: 22em;
}

.foot-title {
  margin-bottom: 16px;
  font-family: var(--mono);
  color: #8689b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.foot a {
  color: #e4e5f7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgb(255 255 255 / 0.09);
  color: #8689b8;
  font-size: 14px;
}

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

  .btn,
  .card,
  .contact {
    transition: none;
  }
}

/* Narrow screens */
@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }

  .trust-grid,
  .about-grid,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 span + span,
  .hero .lead {
    margin-inline: auto;
  }

  .cta {
    justify-content: center;
  }

  .hero-art {
    max-width: 500px;
    margin: 0 auto;
  }

  .contacts {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .foot-company {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .top-nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .section,
  .trust {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .lead {
    font-size: 17px;
  }

  .pill {
    gap: 8px;
    padding: 6px 12px 6px 10px;
    font-size: 12.5px;
  }

  .btn:not(.btn-small) {
    width: 100%;
  }

  .bento,
  .steps,
  .contacts,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: auto;
  }

  .toc ol {
    columns: 1;
  }

  .steps-list li {
    padding-left: 74px;
  }

  td:first-child {
    width: auto;
  }
}
