:root {
  color-scheme: light dark;
  --background: #f7f7f2;
  --surface: #ffffff;
  --text: #171712;
  --muted: #5f6258;
  --border: #d8d9ce;
  --accent: #1f7a58;
  --accent-soft: #e0f1e8;
  --amber: #ffbf47;
  --ink: #232520;
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #11130f;
    --surface: #1a1d18;
    --text: #f4f2ea;
    --muted: #b9bbaf;
    --border: #34382f;
    --accent: #7bd6a9;
    --accent-soft: #183529;
    --amber: #ffd166;
    --ink: #f4f2ea;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--background);
  color: var(--text);
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 650;
}

.document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
}

.document.compact {
  margin-top: 24px;
  padding: 24px;
}

.landing .document h2 {
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: center;
  min-height: min(680px, calc(100vh - 150px));
  padding: clamp(28px, 5vw, 56px) 0 clamp(34px, 7vw, 72px);
}

.hero-copy {
  max-width: 650px;
}

.hero .summary {
  font-size: clamp(18px, 2.4vw, 22px);
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 191, 71, 0.42), transparent 34%),
    linear-gradient(145deg, var(--accent-soft), rgba(255, 255, 255, 0.55));
  border: 1px solid var(--border);
}

.hero-visual img {
  width: min(42vw, 168px);
  height: auto;
  border-radius: 36px;
  box-shadow: 0 22px 60px rgba(23, 23, 18, 0.22);
}

.wake-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  color: #171712;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wake-panel span {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.wake-panel strong {
  font-size: 15px;
}

.wake-panel small {
  color: #56594f;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 24px;
}

.feature {
  min-height: 178px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.feature p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 48px);
}

h2 {
  margin: 36px 0 12px;
  font-size: 22px;
}

h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.summary {
  color: var(--muted);
  font-size: 17px;
  max-width: 68ch;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

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

.footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 10px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }
}
