/*
  AgapAI landing page styles.
  Onest Variable font: SIL Open Font License 1.1, self-hosted from the same
  file the AgapAI web app ships (web/node_modules/@fontsource-variable/onest).
  Three brand colours only: AgapAI Orange Strong, ink and blue. No shadows,
  no gradients. See DESIGN.md in the agapai-app repo for the full system.
*/

@font-face {
  font-family: "Onest Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-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 {
  --surface: #ffffff;
  --page: #f4f4f6;
  --ink: #14151a;
  --ink-2: #3d3f4a;
  --muted: #5c5f6b;
  --line: #dedfe5;
  --brand-strong: #cd4d0b;
  --brand-strong-hover: #ba460a;
  --blue: #0b3c8a;
  --font: "Onest Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Top bar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 48px;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--blue);
  font-weight: 650;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-bottom-color: var(--blue);
}

/* Hero */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

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

.hero-art {
  order: -1;
}

.hero-art img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-strong);
  color: var(--surface);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-strong-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--page);
}

/* Footer */

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

/* From a small tablet width up, the hero sits side by side like the laptop app */

@media (min-width: 760px) {
  body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .topbar,
  footer {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
  }

  main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 24px;
  }

  .hero {
    width: 100%;
    grid-template-columns: minmax(0, 46%) 1fr;
    gap: 56px;
    padding-top: 0;
  }

  .hero-art {
    order: 0;
  }

  .hero-art img {
    max-width: 100%;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.15s ease;
  }
}
