/* Signed - landing page. Plain CSS, no framework, no JavaScript. */

/* ---------------------------------------------------------------- tokens */

:root {
  --max-width: 1100px;
  --radius: 8px;

  --background: #ffffff;
  --surface: #fafafa;
  --surface-2: #f4f4f5;
  --foreground: #09090b;
  --muted-foreground: #71717a;
  --muted-foreground-soft: #a1a1aa;
  --border: #e4e4e7;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --ring: #a1a1aa;

  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1e1e1e;
    --surface: #242424;
    --surface-2: #2b2b2b;
    --foreground: #fafafa;
    --muted-foreground: #a1a1aa;
    --muted-foreground-soft: #71717a;
    --border: #323232;
    --primary: #fafafa;
    --primary-foreground: #1e1e1e;
    --ring: #6b6b70;
  }
}

/* ------------------------------------------------------------------ base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
p,
figure,
ul,
li {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px color-mix(in srgb, var(--ring) 70%, transparent);
  border-radius: 6px;
}

/* ----------------------------------------------------------------- page */

.page {
  min-height: 100dvh;
  margin: 0 auto;
  max-width: var(--max-width);
  overflow-x: clip;
}

@media (min-width: 768px) {
  .page {
    border-inline: 1px solid var(--border);
  }
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted-foreground) 85%, transparent);
}

/* -------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.button:hover {
  opacity: 0.85;
}

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

.button svg {
  width: 16px;
  height: 16px;
}

.button-lg {
  height: 42px;
  padding: 0 17px;
}

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
  text-underline-offset: 3px;
}

.link-arrow:hover {
  color: var(--foreground);
  text-decoration: underline;
}

.link-arrow::after {
  content: " \2192";
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  padding: 72px 20px 56px;
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--foreground);
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.hero .cta-row {
  margin-top: 32px;
}

.protocols {
  margin-top: 64px;
}

.protocol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 16px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

.protocol-list li {
  cursor: default;
  transition: color 0.15s ease;
}

.protocol-list li:hover {
  color: var(--foreground);
}

/* ------------------------------------------------------------ screenshot */

/* The app render is a full-frame screenshot, so it runs the width of the
   column edge to edge, like waku.sh presents its screenshot. */

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------------- features */

.features {
  border-top: 1px solid var(--border);
}

.section-head {
  padding: 56px 20px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: var(--border);
}

.feature {
  padding: 28px 20px;
  background: var(--background);
}

.feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-title svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted-foreground);
}

.feature-title h3 {
  font-size: 14px;
  font-weight: 500;
}

.feature p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-foreground);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

/* --------------------------------------------------------------- layout */

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero,
  .section-head,
  .site-footer {
    padding-inline: 40px;
  }

  .hero {
    padding-top: 88px;
    padding-bottom: 64px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    padding: 32px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
