/* landing.css - minimal, accessible, no frameworks */
:root {
  --bg: #ffffff;
  --fg: #0b1220;
  --muted: #5b657a;
  --primary: #256fa4;
  --primary-contrast: #ffffff;
  --border: #e5e7eb;
  --surface: #f7f8fa;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --notice-bg: #fff8e6;
  --notice-border: #f6d58e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f16;
    --fg: #e5e7eb;
    --muted: #a3adc2;
    --primary: #256fa4;
    --primary-contrast: #0b0f16;
    --border: #1f2633;
    --surface: #0f1420;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --notice-bg: #1c1a12;
    --notice-border: #5a4d2a;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Inter,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Helvetica Neue',
    Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border-radius: 0;
  background: none;
  text-decoration: none;
  box-shadow: none;
  transition: text-decoration 0.2s;
}
.brand:hover,
.brand:focus {
  text-decoration: none;
  background: none;
  box-shadow: none;
}
.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.1);
}
.brand .name {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--primary);
  font-size: 1.08rem;
  margin-left: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-contrast);
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.06s ease,
    box-shadow 0.06s ease,
    background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.btn:focus {
  outline: 3px solid color-mix(in oklab, var(--primary) 35%, transparent);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}
.btn-ghost:hover {
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

main {
  display: block;
}
.hero {
  padding: 5rem 0 2rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}
.hero p.subhead {
  margin: 0 auto 1.2rem;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}
.cta-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.figure {
  margin: 1.5rem auto 0;
  max-width: 960px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.figure img {
  display: block;
  max-width: 680px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26, 115, 232, 0.1);
  margin: 1.5rem auto 0 auto;
}
.figure figcaption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2.5rem 0;
}
.section h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.lead {
  color: var(--muted);
  max-width: 68ch;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 12;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
@media (min-width: 720px) {
  .card.half {
    grid-column: span 6;
  }
}

.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  padding: 1rem;
  border-radius: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: var(--surface);
}
details + details {
  margin-top: 0.75rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
summary:focus {
  outline: 3px solid color-mix(in oklab, var(--primary) 35%, transparent);
  outline-offset: 3px;
}

ul {
  padding-left: 1.1rem;
}
li {
  margin: 0.25rem 0;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner {
  padding: 1rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  padding: 0 0.2em;
  transition: color 0.2s;
}

.link {
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  padding: 0 0.2em;
  transition: color 0.2s;
}

.link:hover {
  text-decoration: underline;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
