/* Sendoyo holding site. Colours and type follow docs/BRAND.md. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cobalt: #2447f9;
  --ink: #15172a;
  --paper: #faf6ef;
  --highlighter: #d8f34b;
  --slate: #5b6074;
  --sand: #e9e2d5;
  --cobalt-tint: #edf1ff;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and logo */

.site-header {
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wordmark-disc {
  display: inline-block;
  width: 0.52em;
  height: 0.52em;
  margin-left: 0.026em;
  border-radius: 9999px;
  background: var(--cobalt);
  transform: translateY(0.011em);
}

.header-link {
  font-weight: 500;
  font-size: 15px;
}

/* Hero */

.hero {
  padding: 56px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid var(--cobalt);
  border-radius: 9999px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 76px);
}

.lede {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: 20px;
  color: var(--ink);
}

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

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #1a37d6;
}

.actions-note {
  color: var(--slate);
  font-size: 15px;
}

/* The receipt */

.receipt {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 28px 28px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  box-shadow:
    0 1px 0 var(--sand),
    0 18px 40px -24px rgb(21 23 42 / 0.25);
}

.receipt-title {
  display: flex;
  justify-content: space-between;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--sand);
  color: var(--slate);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.receipt li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.receipt li span:last-child {
  color: var(--slate);
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.mark {
  background: var(--highlighter);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 3px;
}

.receipt-foot {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 12px;
}

/* Sections */

.section {
  padding: 80px 0;
  border-top: 1px solid var(--sand);
}

.section h2 {
  font-size: clamp(30px, 4vw, 40px);
  max-width: 22ch;
}

.section-intro {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--slate);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.grid h3::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 9999px;
  background: var(--cobalt);
}

.grid p {
  margin: 10px 0 0;
  color: var(--slate);
}

.figure {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}

.status {
  background: var(--ink);
  color: #fff;
  border-top: 0;
}

.status h2 {
  color: #fff;
}

.status p {
  margin: 16px 0 0;
  max-width: 58ch;
  color: rgb(255 255 255 / 0.78);
}

.status .button {
  margin-top: 32px;
}

/* Footer */

.site-footer {
  padding: 32px 0 48px;
  color: var(--slate);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

/* Privacy policy and other text pages */

.prose {
  max-width: 68ch;
  padding: 40px 0 88px;
}

.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.prose h2 {
  margin-top: 44px;
  font-size: 24px;
}

.prose .updated {
  margin: 12px 0 0;
  color: var(--slate);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 32px 0 64px;
  }

  .lede {
    font-size: 18px;
  }

  .receipt {
    padding: 22px 20px 20px;
  }
}

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