/* Aftawork — Strict 5-Token Editorial Design System
 * Self-hosted Bricolage Grotesque display + system body + system mono.
 * Zero gradients, zero drop shadows, zero external CDNs.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette (strict 5 tokens + hairline rule) */
  --bg: #FFFFFF;
  --surface: #F4F4F2;
  --ink: #111111;
  --ink-muted: #5F5F64;
  --accent: #0D6B4F;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);

  /* Typography */
  --font-display: "Bricolage Grotesque", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-hero: clamp(2.5rem, 5.5vw, 4.25rem);
  --text-h2: clamp(1.75rem, 3vw, 2.5rem);
  --text-h3: clamp(1.2rem, 1.8vw, 1.45rem);
  --text-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;

  /* Layout & Spacing */
  --container: 70rem;
  --narrow: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 8vw, 6.5rem);
  --space-block: clamp(1.75rem, 3vw, 2.75rem);

  /* Radii */
  --radius-media: 22px;
  --radius-control: 8px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C0D;
    --surface: #161618;
    --ink: #F5F5F5;
    --ink-muted: #9A9AA0;
    --accent: #34C78F;
    --line: color-mix(in srgb, var(--ink) 14%, transparent);
  }
}

/* ==========================================================================
 * Reset & Base
 * ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
  line-height: 1.6;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  color: var(--ink);
  padding: 0.1em 0.36em;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--bg);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:not(:focus):not(:active) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: var(--narrow);
}

/* ==========================================================================
 * Header (60px solid bar on --bg with 1px hairline)
 * ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.75;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
 * Controls, Buttons & Status Tags
 * ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.88;
  color: var(--bg);
}

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

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

.action-row,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.text-link {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.24em;
}

.text-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.status-live {
  color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.status-soon {
  color: var(--ink-muted);
  background-color: var(--surface);
  border: 1px solid var(--line);
}

.lead {
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* ==========================================================================
 * Shared Device Media Stage (Flat --surface, zero shadow)
 * ========================================================================== */

.media-stage {
  background-color: var(--surface);
  border-radius: 12px;
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-cluster {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-right: 3rem;
}

.device-shot {
  width: clamp(11rem, 18vw, 13.5rem);
  aspect-ratio: 640 / 1391;
  object-fit: cover;
  border-radius: var(--radius-media);
  border: 1px solid var(--line);
  background-color: var(--bg);
}

.watch-shot {
  position: absolute;
  right: 0;
  bottom: 0.9rem;
  width: clamp(4.75rem, 8vw, 5.75rem);
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background-color: var(--ink);
}

/* ==========================================================================
 * Home Page (/)
 * ========================================================================== */

/* Editorial 7fr / 5fr Hero */
.home-hero {
  padding-block: var(--space-section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-block) clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero-copy h1 {
  margin-bottom: 1.25rem;
  max-width: 15ch;
}

.hero-copy .lead {
  max-width: 46ch;
  margin-bottom: 0;
}

.hero-index {
  border-top: 1px solid var(--line);
}

.hero-index-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.hero-index-row:hover {
  text-decoration: none;
}

.hero-index-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.15s ease;
}

.hero-index-row:hover .hero-index-name {
  color: var(--accent);
}

.hero-index-status {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hero-index-status.is-live {
  color: var(--accent);
}

/* Bilby Asymmetric 5fr / 7fr Showcase */
.showcase-section {
  border-top: 1px solid var(--line);
  padding-block: var(--space-section);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-block) clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.showcase-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.showcase-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.showcase-head h2 {
  margin-bottom: 0;
}

.showcase-copy .lead {
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

/* Coming Soon 6fr / 6fr Hairline-Divided Strip */
.upcoming-section {
  border-top: 1px solid var(--line);
  padding-block: var(--space-section);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}

.upcoming-item {
  scroll-margin-top: 5rem;
}

.upcoming-item:first-child {
  padding-right: clamp(1.75rem, 4vw, 3.5rem);
}

.upcoming-item:last-child {
  padding-left: clamp(1.75rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
}

.upcoming-stage {
  background-color: var(--surface);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.upcoming-stage .device-shot {
  width: clamp(10.25rem, 15vw, 12.25rem);
  aspect-ratio: 440 / 956;
}

.upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.upcoming-head h2 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 0;
}

.upcoming-item p {
  color: var(--ink-muted);
  max-width: 44ch;
  margin-bottom: 0;
}

/* Studio Principles 3-Column Hairline Grid */
.principles-section {
  border-top: 1px solid var(--line);
  padding-block: var(--space-section);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-block) clamp(1.5rem, 3.5vw, 2.75rem);
}

.principle-item {
  border-top: 1px solid var(--accent);
  padding-top: 1rem;
}

.principle-item h3 {
  margin-bottom: 0.5rem;
}

.principle-item p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* ==========================================================================
 * Bilby Product Page (/bilby/)
 * ========================================================================== */

.bilby-hero {
  padding-block: var(--space-section);
}

.bilby-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-block) clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bilby-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bilby-title-row .app-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
}

.bilby-title-row h1 {
  margin-bottom: 0;
}

.bilby-hero .lead {
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.bilby-sub-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
}

/* Full-Bleed Flat --surface Screenshot Band */
.bilby-band {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bilby-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12rem, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.bilby-shot {
  width: 100%;
  aspect-ratio: 640 / 1391;
  object-fit: cover;
  border-radius: var(--radius-media);
  border: 1px solid var(--line);
  background-color: var(--bg);
  scroll-snap-align: start;
}

/* 2x2 Hairline-Divided Features */
.bilby-features {
  padding-block: var(--space-section);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-block) clamp(2rem, 4.5vw, 3.75rem);
}

.feature-item {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.feature-item h2 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--ink-muted);
  max-width: 48ch;
  margin-bottom: 0;
}

/* ==========================================================================
 * Shared Card / App Clip Page (/bilby/s/)
 * ========================================================================== */

.share-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-section) var(--gutter);
}

.share-panel {
  width: 100%;
  max-width: 28rem;
}

.share-head {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.1rem;
}

.share-head h1 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.share-lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.share-actions .btn {
  width: 100%;
}

.share-privacy-note {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-muted);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-control);
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.5rem;
}

.share-privacy-note strong {
  color: var(--ink);
}

.share-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
  font-weight: 500;
}

/* ==========================================================================
 * 404 Page
 * ========================================================================== */

.not-found-box {
  max-width: 34rem;
  padding-block: var(--space-section);
}

.not-found-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.not-found-box h1 {
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.not-found-box p {
  font-size: var(--text-lead);
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
 * Legal & Support Pages (/privacy/, /bilby/privacy/, /terms/, /support/, /bilby/support/)
 * Flat on --bg, 1px solid var(--line) dividers, 65ch max prose measure
 * ========================================================================== */

.page-main {
  padding-block: clamp(3rem, 6vw, 4.75rem) var(--space-section);
}

.page-hero {
  padding-bottom: 2rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.page-hero .lead {
  max-width: 65ch;
  margin-bottom: 1rem;
}

.page-hero .meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.prose-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.legal-doc {
  max-width: 65ch;
}

.legal-doc h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.legal-doc > h2:first-child,
.legal-doc > .callout + h2,
.legal-doc > .toc + h2,
.legal-doc > .toc + .app-privacy-section h2,
.legal-doc hr + h2 {
  border-top: none;
  padding-top: 0;
}

.legal-doc hr + h2 {
  margin-top: 1.75rem;
}

.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-doc p,
.legal-doc li {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-muted);
}

.legal-doc strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-doc ul,
.legal-doc ol {
  margin-top: 0;
  margin-bottom: 1.1rem;
  padding-left: 1.35rem;
}

.legal-doc li + li {
  margin-top: 0.45rem;
}

.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2.5rem 0;
}

.app-privacy-section {
  scroll-margin-top: 5rem;
}

.callout {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-control);
  padding: 1.1rem 1.25rem;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.callout strong {
  color: var(--ink);
}

.meta-bar {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 1rem 1.25rem;
  margin-block: 1.15rem 1.5rem;
}

.meta-bar p,
.meta-bar li {
  font-size: var(--text-small);
  line-height: 1.6;
}

.meta-bar p {
  margin-bottom: 0.35rem;
}

.meta-bar p:last-child,
.meta-bar ul:last-child {
  margin-bottom: 0;
}

.toc {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 1.1rem 1.25rem;
  margin-block: 1.5rem 2rem;
}

.toc strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.35rem 1.25rem;
}

.toc li {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.6;
}

.app-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-block: 1.25rem 2rem;
}

.app-index a {
  display: block;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-decoration: none;
}

.app-index a:hover {
  text-decoration: none;
}

.app-index strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.2rem;
  transition: color 0.15s ease;
}

.app-index a:hover strong {
  color: var(--accent);
}

.app-index span {
  display: block;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s ease;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item[open] summary {
  margin-bottom: 0.8rem;
}

.faq-item p:last-child,
.faq-item ul:last-child,
.faq-item ol:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
 * Footer
 * ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.footer-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.footer-note {
  margin: 0;
  font-size: var(--text-small);
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.footer-inner .footer-links {
  gap: 0.35rem 1.25rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-sep {
  color: var(--ink-muted);
  user-select: none;
}

.footer-copy {
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ==========================================================================
 * Responsive
 * ========================================================================== */

@media (max-width: 860px) {
  .hero-grid,
  .showcase-grid,
  .bilby-hero-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .upcoming-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-item:first-child {
    padding-right: 0;
  }

  .upcoming-item:last-child {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: var(--space-block);
    margin-top: var(--space-block);
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 0.95rem;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  .device-cluster {
    padding-right: 2.35rem;
  }
}
