/* ============================================================
   PULSE DESIGN SYSTEM — SITE STYLES
   ============================================================ */

/* ----------------------------------------------------------
   DARK MODE TOKEN OVERRIDES
---------------------------------------------------------- */
[data-theme="dark"] {
  --background-page:               #121212;
  --background-container:          #1e1e1e;
  --background-container-variant:  #2a2827;
  --background-footer:             #1a1a1a;
  --background-disabled:           #2e2e2e;
  --content-default:               #f0ede9;
  --content-disabled:              #767471;
  --content-inverse:               #1a1a1a;
  --action-default:                #5cadff;
  --action-hover:                  #91c8ff;
  --action-active:                 #1c8eff;
  --action-active-variant:         #0b315e;
  --action-variant:                #f0ede9;
  --border-interactive:            #767471;
  --border-decorative:             #3a3836;
  --border-disabled:               #3a3836;
  --border-focus:                  #ffffff;
  --neutral-95:                    #f0ede9;
  --neutral-0:                     #1e1e1e;
}

/* ----------------------------------------------------------
   SITE RESET & BASE
---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-page);
  color: var(--content-default);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a {
  color: var(--action-default);
  text-decoration: underline;
  transition: color 0.1s ease;
}
a:hover { color: var(--action-hover); }

/* ----------------------------------------------------------
   LAYOUT
---------------------------------------------------------- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px 48px;
}

.content-area {
  width: 100%;
  max-width: 880px;
}

/* ----------------------------------------------------------
   NAV
---------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background-container);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 32px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img { display: block; }

[data-theme="dark"] .nav-logo img:last-child {
  filter: brightness(0) invert(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--action-variant);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.1s ease;
}

.nav-link:hover { color: var(--action-default); }
.nav-link.active {
  color: var(--action-default);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   DARK MODE TOGGLE
---------------------------------------------------------- */
.toggle-wrap {
  position: relative;
  width: 55px;
  height: 28px;
  flex-shrink: 0;
  /* Remove all default button chrome */
  background: none;
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.toggle-wrap:focus-visible {
  box-shadow: 0 0 0 2px var(--background-page), 0 0 0 4px var(--border-focus);
  border-radius: 32px;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: #b0adab;
  transition: background 0.2s ease;
  cursor: pointer;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #ffd5b2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.toggle-thumb img { width: 16px; height: 16px; }

/* ── Dark mode track/thumb ── */
[data-theme="dark"] .toggle-track { background: #767471; }
[data-theme="dark"] .toggle-thumb {
  transform: translateX(27px);
  background: #5cadff;
}

/* ── Hover: thumb brightens ── */
.toggle-wrap:hover .toggle-thumb { background: #ffb273; }
[data-theme="dark"] .toggle-wrap:hover .toggle-thumb { background: #1c8eff; }

/* ── Focus: 2px border on track (matches Figma) ── */
.toggle-wrap:focus-visible {
  box-shadow: none;
  border-radius: 32px;
  outline: none;
}
.toggle-wrap:focus-visible .toggle-track {
  border: 2px solid #000000;
}
[data-theme="dark"] .toggle-wrap:focus-visible .toggle-track {
  border: 2px solid #ffffff;
}

/* ----------------------------------------------------------
   NAV SEARCH
---------------------------------------------------------- */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  background: var(--background-container);
  border: 1px solid var(--border-interactive);
  border-radius: 8px;
  width: 154px;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
  cursor: text;
}

.nav-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--background-page), 0 0 0 4px var(--border-focus);
}

.nav-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--content-default);
  width: 100%;
}

.nav-search input::placeholder { color: var(--content-disabled); }

.nav-search-icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.6; }

/* ----------------------------------------------------------
   MOBILE NAV
---------------------------------------------------------- */
.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--content-default);
}

.icon-btn img { width: 24px; height: 24px; }

/* ── Scrim behind side panel ── */
.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-scrim.open {
  opacity: 1;
  visibility: visible;
}

/* ── Side panel (slides in from right) ── */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--background-container);
  z-index: 102;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 8px;
  padding-bottom: 12px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

/* ── Panel header ── */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 24px;
  flex-shrink: 0;
}

.mobile-nav-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--content-disabled);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav-close {
  color: var(--content-default);
}

/* ── Divider below header ── */
.mobile-nav-divider {
  height: 1px;
  background: var(--border-decorative);
  flex-shrink: 0;
  margin: 8px 0;
}

/* ── Menu items ── */
.mobile-nav-link {
  display: flex;
  align-items: center;
  height: 48px;
  padding-left: 24px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--content-default);
}

.mobile-nav-link-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 100%;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border-decorative);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--content-default);
  transition: color 0.1s ease;
}

.mobile-nav-link:hover .mobile-nav-link-inner { color: var(--action-default); }

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  height: 48px;
  padding-left: 24px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--content-default);
  background: linear-gradient(to right, transparent 24px, var(--background-container-variant) 24px);
}

.mobile-nav-sublink .mobile-nav-link-inner {
  padding-left: 8px;
  font-size: 14px;
  line-height: 18px;
}

.mobile-nav-sublink:hover .mobile-nav-link-inner { color: var(--action-default); }

/* Section toggle button (replaces <a> for sections with subitems) */
.mobile-nav-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  height: 48px;
  padding-left: 24px;
  flex-shrink: 0;
  color: var(--content-default);
}
.mobile-nav-toggle:hover .mobile-nav-link-inner { color: var(--action-default); }

/* Subitems hidden by default */
.mobile-nav-subitems {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
}

/* Open state */
.mobile-nav-section.open .mobile-nav-subitems { max-height: 600px; }
.mobile-nav-section.open .mobile-nav-toggle .mobile-nav-caret {
  transform: rotate(90deg);
  transition: transform 0.6s ease-in-out;
}
.mobile-nav-toggle .mobile-nav-caret {
  transition: transform 0.6s ease-in-out;
}

.mobile-nav-caret {
  flex-shrink: 0;
  color: currentColor;
}

/* ----------------------------------------------------------
   WELCOME PAGE — HERO (2-column)
---------------------------------------------------------- */
.hero {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 12px 0;
  width: 100%;
}

.hero-text {
  flex: 0 0 434px;
  background: var(--background-container-variant);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  transition: background-color 0.2s ease;
}

.hero-title {
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--content-default);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--content-default);
}

.hero-image {
  flex: 1;
  min-height: 309px;
  border-radius: 32px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   CARDS GRID (3 columns)
---------------------------------------------------------- */
.cards-grid {
  display: flex;
  gap: 16px;
  width: 100%;
  padding-top: 4px;
}

.card {
  flex: 1;
  background: var(--background-container-variant);
  border-radius: 32px;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.15s ease;
  cursor: pointer;
}

.card:focus-visible {
  outline: none;
  border-color: var(--content-default);
}

.card:active {
  background: var(--action-active-variant);
}

.card-image {
  width: 100%;
  height: 160px;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* Image zoom on hover */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image img {
  transform: scale(1.25);
}

/* Blue overlay on hover (matches Figma) */
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(0, 115, 227, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover .card-image::after {
  opacity: 1;
}

.card-body {
  padding: 8px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 42px;
  color: var(--content-default);
}

.card-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--content-default);
}

/* ----------------------------------------------------------
   ALERT BANNER
---------------------------------------------------------- */
.alert-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - 48px));
  width: calc(100% - 32px);
  max-width: 560px;
  background: var(--background-container);
  border: 1px solid #118738;
  border-radius: 4px 16px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.5s ease-in-out;
}
.alert-banner.visible {
  transform: translateX(-50%) translateY(0);
}
.alert-banner-accent-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
}
.alert-banner-accent {
  width: 8px;
  height: 100%;
  background: #118738;
  border-radius: 4px 0 0 4px;
}
.alert-banner-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px 16px 16px;
  flex: 1;
  min-width: 0;
}
.alert-banner-text {
  flex: 1;
  font-size: 16px;
  line-height: 24px;
  color: var(--content-default);
  margin: 0;
}
.alert-banner-link {
  color: var(--content-default);
  text-decoration: none;
}
.alert-banner-link:hover {
  text-decoration: underline;
}
.alert-banner-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--content-default);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.site-footer {
  background: var(--background-footer);
  padding: 24px 32px;
  transition: background-color 0.2s ease;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  line-height: 18px;
  color: var(--content-default);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.footer-links a {
  font-size: 14px;
  line-height: 1;
  color: var(--action-default);
  text-decoration: underline;
  white-space: nowrap;
}

/* ----------------------------------------------------------
   DOCS PAGE LAYOUT (side nav + centered content)
---------------------------------------------------------- */
.docs-body {
  display: flex;
  flex: 1;
  gap: 12px;
  padding: 0 12px;
  align-items: stretch;
}

/* Side nav */
.docs-side-nav {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-decorative);
  padding: 16px 8px 24px 0;
}

.side-nav-link {
  display: block;
  position: relative;
  padding: 8px 4px 8px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: var(--content-default);
  text-decoration: none;
  border-radius: 16px;
  margin: 1px 0;
  transition: background-color 0.1s ease;
}

.side-nav-link:hover,
.side-nav-link.selected {
  background: var(--background-container-variant);
}

.side-nav-link.has-caret {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8px;
}

.side-nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 8px 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--content-default);
  text-decoration: none;
  border-radius: 16px;
  margin-bottom: 8px;
  transition: background-color 0.1s ease;
}

.side-nav-back:hover {
  background: var(--background-container-variant);
  color: var(--content-default);
  text-decoration: none;
}

/* Content wrapper — centers docs-main */
.docs-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.docs-main {
  width: 100%;
  max-width: 880px;
  padding: 16px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Breadcrumb */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.docs-breadcrumb-link {
  display: flex;
  align-items: center;
  color: var(--action-default);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Home icon — 13×13px per Figma */
.docs-breadcrumb-link img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  display: block;
}

.docs-breadcrumb-link:hover  { opacity: 0.75; }
.docs-breadcrumb-link:active { opacity: 0.5; }

.docs-breadcrumb-link:hover {
  color: var(--action-hover);
  text-decoration: underline;
}

.docs-breadcrumb-link:active {
  color: var(--action-active);
  text-decoration: none;
}

.docs-breadcrumb-sep {
  flex-shrink: 0;
  color: var(--content-default);
  display: flex;
  align-items: center;
}

.docs-breadcrumb-current {
  color: var(--content-default);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Docs rich content */
.docs-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-content h3 {
  font-size: 28px;
  font-weight: 400;
  line-height: 42px;
  color: var(--content-default);
  margin: 0 0 8px;
}

.docs-content p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--content-default);
  margin: 0 0 8px;
}

.docs-content ul {
  margin: 0;
  padding-left: 20px;
}

.docs-content li {
  font-size: 16px;
  line-height: 24px;
}

.docs-content a {
  color: var(--action-default);
  text-decoration: underline;
}

.docs-content a:hover { color: var(--action-hover); }

/* ----------------------------------------------------------
   COMPONENT MATRIX TABLE
---------------------------------------------------------- */
.component-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
}

.component-matrix th {
  background: var(--background-container-variant);
  border-bottom: 1px solid var(--border-decorative);
  padding: 8px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--content-default);
}

.component-matrix td {
  border-bottom: 1px solid var(--border-decorative);
  padding: 8px 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--content-default);
}

.cm-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cm-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.component-matrix td a {
  color: var(--action-default);
  text-decoration: underline;
}

.component-matrix td a:hover { color: var(--action-hover); }

/* ----------------------------------------------------------
   SIDE NAV SLIDE ANIMATION
---------------------------------------------------------- */
.docs-side-nav {
  overflow: hidden; /* clip sliding group */
}

.side-nav-links-group {
  /* animation wrapper — no visual styles */
}

@keyframes navSlideOut {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-110%); opacity: 0; }
}
@keyframes navSlideIn {
  from { transform: translateX(-110%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.side-nav-links-group.exit  { animation: navSlideOut 0.56s ease forwards; }
.side-nav-links-group.enter { animation: navSlideIn  0.56s ease forwards; }

@keyframes contentFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes contentFadeOut { from { opacity: 1; } to { opacity: 0; } }

.content-fade-in  { animation: contentFadeIn  0.56s ease forwards; }
.content-fade-out { animation: contentFadeOut 0.56s ease forwards; }

/* ----------------------------------------------------------
   CHIP FILTERS
---------------------------------------------------------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--background-container);
  border: 1px solid var(--border-interactive);
  border-radius: 24px;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--action-variant);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
  background: var(--action-active-variant);
  border-color: var(--action-hover);
  color: var(--action-hover);
  box-shadow: var(--shadow-m);
  text-decoration: none;
}

.chip:focus-visible {
  outline: none;
  border: 2px solid var(--border-focus);
  box-shadow: var(--shadow-m);
}

.chip.active {
  background: var(--action-active-variant);
  border: 2px solid var(--action-default);
  color: var(--action-default);
  box-shadow: var(--shadow-m);
}

.chip.active::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='2.5%2C8 6.5%2C12 13.5%2C4' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline points='2.5%2C8 6.5%2C12 13.5%2C4' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  margin-right: 4px;
}

.chip.active:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--content-inverse);
}

.chip.active:focus-visible {
  border: 3px solid var(--border-focus);
  color: var(--action-default);
}

.chip:disabled,
.chip[disabled] {
  background: var(--background-disabled);
  border: 1px solid var(--border-disabled);
  color: var(--content-disabled);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* ----------------------------------------------------------
   COMPONENT CARDS GRID (web components overview)
---------------------------------------------------------- */
.comp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.comp-cards-grid .card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

/* ----------------------------------------------------------
   RESPONSIVE — MOBILE (≤ 768px)
---------------------------------------------------------- */
@media (max-width: 768px) {

  /* Nav */
  .nav-inner { padding: 0 16px; }
  .nav-right { display: none; }
  .nav-mobile-controls { display: flex; }

  /* Main */
  .site-main { padding: 16px 16px 40px; }

  /* Hero — stack vertically, hide decorative image */
  .hero { flex-direction: column; padding: 0; }
  .hero-text { flex: none; width: 100%; border-radius: 24px; padding: 32px; }
  .hero-title { font-size: 32px; }
  .hero-image { display: none; }

  /* Cards — stack vertically */
  .cards-grid { flex-direction: column; }
  .card { border-radius: 24px; }

  /* Footer */
  .site-footer { padding: 24px 16px; }
  .footer-inner { flex-direction: column; align-items: flex-end; gap: 8px; }
  .footer-copy { order: 2; }
  .footer-links { order: 1; }

  /* Docs layout */
  .docs-body { padding: 0; gap: 0; }
  .docs-side-nav { display: none; }
  .docs-main { padding: 16px 16px 40px; }

  /* Comp cards — single column */
  .comp-cards-grid { grid-template-columns: 1fr; }
}
