/* Waycrest: Saffron and Ink */

@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google-sans-flex-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google-sans-flex-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/google-sans-flex-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Code";
  src: url("/fonts/google-sans-code-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14161C;
  --charcoal: #23262F;
  --line: #353945;
  --saffron: #FFB627;
  --amber-deep: #8A5A00;
  --paper: #F6F5F2;
  --haze: #A3A7B3;
  --stone: #5C606B;
  --card-border: #E4E2DC;
  --white: #FFFFFF;

  --font-sans: "Google Sans Flex", "Google Sans", "Helvetica Neue", sans-serif;
  --font-code: "Google Sans Code", ui-monospace, monospace;

  --gutter: 64px;
  --section-y: 112px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 23px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul, dl, dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-code);
  font-size: inherit;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Surfaces */

.dark {
  background: var(--ink);
  color: var(--paper);
}

.light {
  background: var(--paper);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: calc(1280px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* Links and focus */

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.light a {
  color: var(--amber-deep);
}

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

.light :focus-visible {
  outline-color: var(--ink);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--saffron);
}

/* Type */

.eyebrow {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
}

.light .eyebrow {
  color: var(--amber-deep);
}

h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  line-height: 28px;
  color: var(--haze);
  text-wrap: pretty;
}

.light .lead {
  color: var(--stone);
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
}

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

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  text-decoration: none;
}

.lockup-mark {
  width: 54px;
  height: 30px;
  flex: none;
}

.lockup-word {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  display: inline-block;
  padding: 10px 0;
  color: var(--paper);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.nav-links a:hover {
  text-decoration-color: var(--saffron);
}

/* Hero */

.hero {
  --g: clamp(560px, 62vw, 900px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-mark {
  position: absolute;
  z-index: -1;
  width: var(--g);
  height: var(--g);
  right: calc(var(--g) * -0.2333);
  top: calc(var(--g) * -0.2556);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 104px;
  padding-bottom: 136px;
}

.hero-wordmark {
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -4px;
}

.hero-products {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--haze);
}

.hero-products .sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.hero-lead {
  max-width: 460px;
  margin-top: 4px;
}

/* Products */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  color: var(--ink);
}

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
}

.icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 2px dashed var(--haze);
  border-radius: 21px;
  font-size: 12px;
  line-height: 16px;
  color: var(--stone);
  text-align: center;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card h3 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.card-text p {
  color: var(--stone);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--stone);
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.theme-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--stone);
}

.chip {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
}

.chip-placeholder {
  border: 2px dashed var(--haze);
}

.signed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  font-size: 14px;
  line-height: 20px;
  color: var(--stone);
}

.signed strong {
  color: var(--ink);
}

.signed-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* About and contact */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.about-text .lead {
  max-width: 560px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 12px;
  padding: 0 28px;
  border-radius: 9999px;
  background: var(--saffron);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}

.button:hover {
  transform: scale(1.03);
}

.button:active {
  transform: scale(0.98);
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 8px 28px;
  background: var(--charcoal);
  border-radius: 22px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 20px 0;
}

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

.contact-row dt {
  font-size: 14px;
  color: var(--haze);
}

.contact-row dd a {
  font-family: var(--font-code);
  font-size: 16px;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--line);
}

.contact-row dd a:hover {
  text-decoration-color: var(--saffron);
}

/* Contact popup */

.contact-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--charcoal);
  color: var(--paper);
}

.contact-dialog:popover-open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-dialog::backdrop {
  background: rgb(20 22 28 / 0.72);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  font-size: 30px;
  letter-spacing: -0.5px;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--haze);
  cursor: pointer;
  transition: color 160ms ease;
}

.dialog-close:hover {
  color: var(--paper);
}

.dialog-close svg {
  width: 22px;
  height: 22px;
}

.dialog-lead {
  color: var(--haze);
}

.dialog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

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

.dialog-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dialog-label {
  font-size: 13px;
  line-height: 18px;
  color: var(--haze);
}

.dialog-email {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: none;
  min-width: 84px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease;
}

.copy-button:hover {
  border-color: var(--haze);
}

.dialog-cta {
  margin-top: 4px;
}

button.button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--haze);
}

.lockup-small {
  gap: 10px;
}

.lockup-small .lockup-mark {
  width: 36px;
  height: 20px;
}

.lockup-small .lockup-word {
  font-size: 18px;
  letter-spacing: -0.3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

.footer-links a {
  color: var(--paper);
  text-decoration-color: var(--line);
}

.footer-links a:hover {
  text-decoration-color: var(--saffron);
}

/* Motion: only for people who haven't asked to reduce it */

@media (prefers-reduced-motion: no-preference) {
  .hero-mark-w {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.4s var(--ease-out) 0.15s forwards;
  }

  .hero-mark-dot {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    animation: pop 0.6s var(--ease-out) 1.1s forwards;
  }

  .hero-content > * {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.9s var(--ease-out) forwards;
  }

  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4) { animation-delay: 0.24s; }

  .contact-dialog {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 200ms ease, transform 250ms var(--ease-out),
      overlay 250ms allow-discrete, display 250ms allow-discrete;
  }

  .contact-dialog:popover-open {
    opacity: 1;
    transform: none;
  }

  @starting-style {
    .contact-dialog:popover-open {
      opacity: 0;
      transform: translateY(8px) scale(0.98);
    }
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  to { transform: scale(1); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Tablet and phone */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
}

@media (max-width: 959px) {
  :root {
    --gutter: 40px;
    --section-y: 88px;
  }

  .hero {
    --g: clamp(280px, 82vw, 520px);
  }

  .hero-mark {
    top: calc(var(--g) * -0.30 + 16px);
  }

  .hero-content {
    padding-top: calc(var(--g) * 0.415 + 48px);
    padding-bottom: 88px;
  }

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

@media (max-width: 600px) {
  :root {
    --gutter: 24px;
    --section-y: 64px;
  }

  .header-row {
    min-height: 72px;
  }

  .lockup {
    gap: 10px;
  }

  .lockup-mark {
    width: 40px;
    height: 22px;
  }

  .lockup-word {
    font-size: 22px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero-wordmark {
    letter-spacing: -2.5px;
  }

  h2 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .card {
    padding: 24px;
  }

  .card h3 {
    font-size: 28px;
  }

  .contact-card {
    padding: 4px 20px;
  }

  .button {
    align-self: stretch;
  }
}
