/*
 * Website at `/` (ADR-0010). Plain CSS, no build: values mirror the design
 * layer (packages/ui/src/design/tokens.ts) — warm paper by day, ink blue by night, the app icon's blue
 * as accent, Nunito 400/800 (ADR-0013), motion only without reduced motion.
 */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/nunito-latin-ext-400-normal.woff2") format("woff2");
  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: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/nunito-latin-ext-800-normal.woff2") format("woff2");
  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;
}

:root {
  color-scheme: light dark;
  --bg: #fbf6ee;
  --surface: #f3ebdf;
  --border: #e6dccd;
  --text: #2b231d;
  --text-muted: #6b5f55;
  --accent: #1d67a8;
  --accent-text: #ffffff;
  --accent-soft: #e6eef7;
  --radius-md: 14px;
  --radius-lg: 18px;
  --gutter: 16px;
  --content-max: 64rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131726;
    --surface: #1f2539;
    --border: #30374f;
    --text: #eef0f8;
    --text-muted: #aab0c6;
    --accent: #8cbcec;
    --accent-text: #11263a;
    --accent-soft: #233446;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}
h1,
h2,
h3 {
  font-weight: 800;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.bar,
main > section,
footer {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 40rem) {
  :root {
    --gutter: 32px;
  }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  min-height: 44px;
}
.brand img {
  border-radius: 8px;
}
.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
}

.hero {
  padding-block: 48px 64px;
}
.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lead {
  margin-top: 20px;
  max-width: 36rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding-inline: 32px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}
.secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}
.note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .primary {
    transition: filter 180ms var(--ease);
  }
}
@media (hover: hover) {
  .primary:hover {
    filter: brightness(1.08);
  }
}

main > section + section {
  margin-top: 56px;
}
section h2 {
  font-size: 1.625rem;
  line-height: 1.25;
}

.features ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 40rem) {
  .features ul {
    grid-template-columns: 1fr 1fr;
  }
}
.features li {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.features svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.features h3 {
  margin-top: 12px;
  font-size: 1.125rem;
}
.features p {
  margin-top: 6px;
  color: var(--text-muted);
}

.install > p {
  margin-top: 8px;
  color: var(--text-muted);
}
.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.steps > div {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.steps h3 {
  font-size: 1.125rem;
}
.steps ol {
  margin: 12px 0 0;
  padding-left: 1.25em;
}
.steps li + li {
  margin-top: 4px;
}
.steps em {
  font-style: normal;
  font-weight: 800;
}

.teaser {
  padding-block: 32px;
}
.teaser > * {
  max-width: 36rem;
}
.badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 800;
}
.teaser h2 {
  margin-top: 12px;
}
.teaser p {
  margin-top: 8px;
  color: var(--text-muted);
}

footer {
  margin-top: 48px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
