/* Vesi Software. Colors and the display serif (Source Serif 4 SemiBold) come from Name Exchange's own theme, so
   the site and the app look like they belong together. Light and dark follow the visitor's system setting. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --color-bg: #f5fbf8;
  --color-surface: #ffffff;
  --color-tonal: #ddede6;
  --color-text: #06201a;
  --color-text-secondary: #4a5c56;
  --color-hero: #1e4f45;
  --color-on-hero: #ffffff;
  --color-on-hero-secondary: #c9e6dc;
  --color-accent: #2c6a5d;
  --color-on-accent: #ffffff;
  --color-accent-container: #b4efdc;
  --color-on-accent-container: #1e4f45;
  --color-amber: #ffe2b8;
  --color-on-amber: #4a3000;
  --color-divider: #d3e2dc;
  --shadow-card: 0 1px 2px rgba(6, 32, 26, 0.06), 0 8px 24px rgba(6, 32, 26, 0.06);
  --shadow-shot: 0 12px 40px rgba(6, 32, 26, 0.18);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --font-serif: "Source Serif 4", ui-serif, "New York", Georgia, serif;

  --content-width: 1040px;
  --text-width: 680px;
  --gutter: 20px;
  --radius-card: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f1513;
    --color-surface: #1b211f;
    --color-tonal: #334b45;
    --color-text: #e8f2ee;
    --color-text-secondary: #a9bab4;
    --color-hero: #12352e;
    --color-on-hero: #ffffff;
    --color-on-hero-secondary: #b4d9cd;
    --color-accent: #94d3c1;
    --color-on-accent: #06201a;
    --color-accent-container: #0f5145;
    --color-on-accent-container: #b4efdc;
    --color-amber: #5c3f00;
    --color-on-amber: #ffe2b8;
    --color-divider: #2a3532;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-shot: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.15em;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 20;
  background: var(--color-surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-divider);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 15px;
}

.nav ul a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.nav ul a:hover,
.nav ul a[aria-current="page"] {
  color: var(--color-text);
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(38px, 7vw, 64px);
}

h2 {
  font-size: clamp(28px, 4.5vw, 40px);
}

h3 {
  font-size: 22px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.lead {
  font-size: clamp(19px, 2.4vw, 22px);
  color: var(--color-text-secondary);
  max-width: 34em;
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.button:hover {
  filter: brightness(1.08);
}

.button-tonal {
  background: var(--color-accent-container);
  color: var(--color-on-accent-container);
}

.button-disabled {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-divider);
  cursor: default;
}

.button-disabled:hover {
  filter: none;
}

.on-hero .button {
  /* The hero is dark green in both modes, so its buttons stay mint on green. */
  background: #b4efdc;
  color: #1e4f45;
}

.on-hero .button-disabled {
  background: transparent;
  color: var(--color-on-hero-secondary);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero */
.hero {
  background: var(--color-hero);
  color: var(--color-on-hero);
  padding: clamp(56px, 10vw, 112px) 0;
}

.hero .eyebrow {
  color: var(--color-on-hero-secondary);
}

.hero .lead {
  color: var(--color-on-hero-secondary);
  margin: 20px 0 32px;
}

.hero h1 {
  max-width: 14em;
  margin-top: 12px;
}

.hero-app {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-app .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.hero-shot {
  justify-self: center;
  width: min(300px, 100%);
}

.hero-shot img {
  border-radius: 40px;
  box-shadow: var(--shadow-shot);
}

/* Sections */
.section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.section-tonal {
  background: var(--color-tonal);
}

.section-head {
  max-width: var(--text-width);
  margin-bottom: 40px;
}

.section-head h2 + p {
  margin-top: 14px;
  color: var(--color-text-secondary);
  font-size: 19px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: 8px;
}

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

.card .badge {
  display: inline-block;
  margin-bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--color-accent-container);
  color: var(--color-on-accent-container);
  display: grid;
  place-items: center;
}

.card .badge svg {
  width: 24px;
  height: 24px;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.app-card img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}

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

.app-card p {
  color: var(--color-text-secondary);
  margin: 6px 0 16px;
}

.app-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
}

.chevron::after {
  content: " ›";
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.screens figure img {
  border-radius: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-shot);
}

.screens figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.callout {
  background: var(--color-amber);
  color: var(--color-on-amber);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}

.callout h3 {
  margin-bottom: 6px;
}

/* Long-form pages (privacy policy, account deletion) */
.prose {
  max-width: calc(var(--text-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--gutter);
}

.prose h1 {
  font-size: clamp(34px, 6vw, 48px);
  margin-bottom: 20px;
}

.prose h2 {
  font-size: 24px;
  margin: 36px 0 10px;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 14px;
}

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

.prose li {
  margin-bottom: 6px;
}

.prose .meta {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.breadcrumb {
  font-size: 15px;
  margin-bottom: 16px;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-divider);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  margin-bottom: 28px;
}

footer h2 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 0;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 4px;
}

footer a {
  color: var(--color-text-secondary);
}

footer a:hover {
  color: var(--color-text);
}

footer p + p {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .hero-app {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    width: min(240px, 70%);
  }

  .screens {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .app-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .app-card img {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .nav ul {
    gap: 16px;
  }
}
