/* SIDM website. Plain CSS, no framework, no build step.
   Theme follows the system (prefers-color-scheme). Accent #5546f5. */

:root {
  --accent: #5546f5;
  --accent-strong: #4334d9;
  --accent-soft: #ecebff;
  --accent-ink: #ffffff;
  --mint: #1a9e70;
  --mint-soft: #dcf5ea;
  --warn-soft: #fff4dc;
  --warn-border: #f0d595;

  --bg: #f8f7fc;
  --surface: #ffffff;
  --surface-2: #f1f0f8;
  --border: #e2e0ee;
  --text: #1c1a2a;
  --text-muted: #5f5b75;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 26, 42, 0.06), 0 8px 24px rgba(28, 26, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(28, 26, 42, 0.06), 0 24px 48px rgba(67, 52, 217, 0.14);
  --focus: 0 0 0 3px rgba(85, 70, 245, 0.4);

  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, 'Noto Sans Bengali',
    'Nirmala UI', 'Vrinda', 'Hind Siliguri', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;

  --max: 1120px;
  --gutter: 24px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8e84ff;
    --accent-strong: #a69eff;
    --accent-soft: #262145;
    --accent-ink: #14112a;
    --mint: #3ddc97;
    --mint-soft: #173328;
    --warn-soft: #2e2715;
    --warn-border: #5c4c1f;

    --bg: #13111b;
    --surface: #1c1a27;
    --surface-2: #242133;
    --border: #332f45;
    --text: #edebf6;
    --text-muted: #aaa5c0;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px rgba(0, 0, 0, 0.45);
    --focus: 0 0 0 3px rgba(142, 132, 255, 0.5);

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--accent-ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Nav ---------- */

/* A floating bar inset from the edges, glass over the page. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--max) - 2 * var(--gutter) + 24px);
  height: 64px;
  margin: 0 auto;
  padding: 0 10px 0 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 30px -12px rgba(28, 26, 42, 0.25);
}

@media (prefers-color-scheme: dark) {
  .nav-bar {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 70%, transparent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.nav-main {
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 14px;
  background: var(--surface-2);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links svg,
.nav-menu-panel svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(28, 26, 42, 0.1);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-free {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-cta {
  gap: 8px;
  border-radius: 12px;
}

.nav-cta svg {
  width: 17px;
  height: 17px;
}

/* Phone menu: <details>, no JavaScript. Hidden on wide screens. */
.nav-menu {
  display: none;
}

.nav-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-icon {
  position: relative;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-menu-icon::before {
  top: -6px;
}

.nav-menu-icon::after {
  top: 6px;
}

.nav-menu[open] .nav-menu-icon {
  background: transparent;
}

.nav-menu[open] .nav-menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-menu[open] .nav-menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.nav-menu-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav-menu-panel a svg {
  color: var(--accent);
}

.nav-menu-note {
  margin: 10px 0 4px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-big {
  min-height: 60px;
  padding: 14px 30px;
  font-size: 19px;
  box-shadow: var(--shadow-lg);
}

.btn .icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  isolation: isolate;
}

/* Soft lanes of light streaking downward: the "download" motif. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 79px, color-mix(in srgb, var(--accent) 7%, transparent) 79px 80px);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .lede {
  margin: 20px auto 36px;
  max-width: 600px;
  font-size: 19px;
  color: var(--text-muted);
}

.release-meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.release-meta span + span::before {
  content: '·';
  margin: 0 8px;
}

.release-hash {
  margin: 4px auto 0;
  max-width: 100%;
  font-size: 13px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.release-hash code {
  font-size: 12px;
}

.hero-note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* ---------- Screenshots ---------- */

.shots {
  padding-top: 8px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.shot {
  margin: 0;
  text-align: center;
}

.shot-frame {
  display: block;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.shot img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.preview-note {
  margin: 24px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card.private .card-icon {
  background: var(--mint-soft);
  color: var(--mint);
}

/* ---------- Install steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 22px;
  font-weight: 800;
}

.step h3 {
  margin: 4px 0 8px;
  font-size: 20px;
}

.step p,
.step ul {
  margin: 0 0 8px;
}

.step ul {
  padding-left: 20px;
}

.step li {
  margin-bottom: 4px;
}

.path {
  display: inline;
}

.path b {
  font-weight: 600;
}

.browser-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 15px;
}

.browser-table th,
.browser-table td {
  padding: 8px 10px;
  text-align: left;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.browser-table th {
  width: 90px;
  font-weight: 600;
}

/* ---------- Notes ---------- */

.callout {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 32px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
}

.callout svg {
  width: 28px;
  height: 28px;
  color: #b07900;
}

@media (prefers-color-scheme: dark) {
  .callout svg {
    color: #f0c45c;
  }
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.callout p {
  margin: 0 0 6px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 4px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq .answer {
  padding: 0 4px 20px;
  color: var(--text-muted);
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer p:last-child {
  margin: 0;
}

/* ---------- Legal pages ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
}

.doc .updated {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 24px;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.summary-box {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  border: 1px solid color-mix(in srgb, var(--mint) 35%, transparent);
}

.summary-box p {
  margin: 0;
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.perm-table th,
.perm-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.perm-table thead th {
  border-top: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.perm-table td:first-child {
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- Footer ---------- */

/* Deep indigo in both themes; its own colours, checked for contrast. */
.footer {
  --f-bg: #14112b;
  --f-text: #ece9ff;
  --f-muted: #b3add6;
  --f-line: rgba(236, 233, 255, 0.14);
  --f-link: #c9c2ff;

  position: relative;
  overflow: hidden;
  padding: 0 0 32px;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(85, 70, 245, 0.45), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(61, 220, 151, 0.12), transparent 70%),
    var(--f-bg);
  color: var(--f-muted);
  font-size: 15px;
}

.footer a {
  color: var(--f-link);
}

.footer a:hover {
  color: #ffffff;
}

.footer :focus-visible {
  box-shadow: 0 0 0 3px rgba(201, 194, 255, 0.6);
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--f-line);
}

.footer-cta-title {
  margin: 0 0 6px;
  color: var(--f-text);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-cta-text {
  margin: 0;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer .btn {
  gap: 8px;
}

.footer .btn svg {
  width: 18px;
  height: 18px;
}

.btn-light {
  background: #ffffff;
  color: #2a1fb8 !important;
}

.btn-light:hover {
  background: #ecebff;
}

.btn-outline-light {
  border-color: rgba(236, 233, 255, 0.35);
  color: var(--f-text) !important;
}

.btn-outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 44px 0 36px;
}

.footer .brand {
  color: var(--f-text);
}

.footer .brand-sub {
  color: var(--f-muted);
}

.footer-about p {
  margin: 16px 0 0;
  max-width: 34ch;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.footer-badges li {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--f-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--f-text);
  font-size: 13px;
  font-weight: 600;
}

.footer-badges li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #3ddc97;
  vertical-align: 2px;
}

.footer-col h2 {
  margin: 4px 0 14px;
  color: var(--f-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--f-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--f-line);
}

.fine-print {
  font-size: 13.5px;
}

.fine-print p {
  margin: 0 0 6px;
}

.fine-print p:last-child {
  margin: 0;
}

.to-top {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--f-line);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* ---------- Product overview, parts, how-it-works (landing page) ---------- */

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-ghost.btn-big {
  box-shadow: var(--shadow);
}

.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.center-actions {
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  text-align: center;
}

.products {
  padding: 0 0 72px;
}

.product-groups {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.product-group {
  min-width: 0;
}

.part-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-group:last-child .product-list {
  grid-template-columns: minmax(0, 1fr);
}

.product-card {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-card .card-icon {
  flex: none;
}

.product-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.product-name {
  font-weight: 700;
  font-size: 18px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.part-banner {
  padding: 56px 0 48px;
  background:
    radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--surface-2);
  border-block: 1px solid var(--border);
  scroll-margin-top: 64px;
}

.part-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.part-banner p:last-child {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 18px;
}

.kicker {
  margin: 0 0 8px !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent) !important;
}

.sub-head {
  margin: 56px 0 20px;
  font-size: 24px;
  font-weight: 750;
}

.how-grid .sub-head {
  margin-top: 0;
}

.sub-lede {
  margin: -10px 0 18px;
  color: var(--text-muted);
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 22px 22px 22px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.alt .flow li {
  background: var(--bg);
}

.flow-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 18px;
}

.flow-body {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
}

.card h4 {
  margin: 16px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 56px;
  scroll-margin-top: 80px;
}

.how-grid .steps {
  max-width: none;
}

.step h4 {
  margin: 4px 0 8px;
  font-size: 19px;
}

.how-grid .step {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.how-grid .step::before {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.how-grid .callout {
  margin: 20px 0 0;
}

.callout h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.use-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--accent-soft);
}

.use-list li {
  position: relative;
  padding: 0 0 20px 24px;
}

.use-list li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}

.use-list h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.use-list p {
  margin: 0;
  color: var(--text-muted);
}

.small-note {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.small-note.center {
  margin-top: 40px;
  text-align: center;
}

.step .release-hash {
  margin: 0;
  text-align: left;
}

/* ---------- Guides (SEO how-to pages) ---------- */

.guide {
  max-width: 820px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--border);
}

.crumbs a {
  color: var(--text-muted);
}

.guide-lede {
  font-size: 19px;
  color: var(--text-muted);
}

.answer-box {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-left: 5px solid var(--accent);
}

.answer-box p {
  margin: 0;
}

.answer-box .answer-label {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-steps {
  max-width: none;
  gap: 14px;
}

.guide-steps .step {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
}

.guide-steps .step::before {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.doc .guide-steps h3 {
  margin: 6px 0 6px;
  font-size: 18px;
}

.guide-steps p {
  margin: 0;
}

.tips li {
  margin-bottom: 10px;
}

.rights-note {
  margin: 32px 0 8px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  font-size: 15px;
}

.rights-note p {
  margin: 0;
}

.guide .faq {
  max-width: none;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 40px 0 0;
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guide-cta p {
  margin: 0;
  color: var(--text-muted);
}

.guide-cta .guide-cta-title {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .guide-grid {
  padding: 0;
}

.doc .guide-grid li {
  margin: 0;
}

.guide-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.alt .guide-card {
  background: var(--bg);
}

.guide-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.guide-card-name {
  font-weight: 700;
}

.guide-card-name::after {
  content: ' →';
  color: var(--accent);
}

.guide-card-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.center-link {
  margin: 28px 0 0;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .nav-main {
    display: none;
  }

  .nav-end {
    margin-left: auto;
  }

  .nav-menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .guide-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guide-grid-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-cta-actions,
  .guide-cta-actions .btn {
    width: 100%;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-main {
    display: none;
  }

  .nav-end {
    margin-left: auto;
  }

  .nav-menu {
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .product-groups,
  .flow,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .nav {
    padding-top: 8px;
  }

  .nav-bar {
    height: 60px;
    gap: 10px;
    padding: 0 8px 0 10px;
    border-radius: 18px;
  }

  .nav .brand-sub,
  .nav-free {
    display: none;
  }

  .nav-cta {
    padding: 8px 12px;
  }

  .footer-cta-actions,
  .footer-cta-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero .lede {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .part-banner {
    padding: 40px 0 36px;
  }

  .sub-head {
    margin-top: 40px;
  }

  .btn-big {
    width: 100%;
    font-size: 18px;
  }

  section {
    padding: 52px 0;
  }

  .shot-grid,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot-grid {
    gap: 28px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .step::before {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .browser-table th {
    width: 70px;
  }

  .callout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .faq summary {
    font-size: 17px;
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }
}
