/* Cleanfast — shared styles
   Native macOS utility aesthetic. System font stack (no web-font download)
   for instant LCP and a first-class Mac feel. */

:root {
  /* Color system (3-5 core colors + neutrals) */
  --white: #ffffff;
  --bg: #ffffff;
  --bg-subtle: #f5f6f8;      /* light gray */
  --bg-sunken: #eef0f4;
  --surface: #ffffff;
  --graphite: #1c2530;       /* dark graphite */
  --navy: #16233a;           /* dark blue */
  --accent: #0a84ff;         /* cold blue accent (macOS system blue) */
  --accent-hover: #0060df;
  --accent-soft: #e7f1ff;

  --text: #1c2530;
  --text-muted: #5b6572;
  --text-faint: #8a929d;
  --border: #e3e6eb;         /* muted border */
  --border-strong: #d3d8e0;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(20, 35, 58, 0.06), 0 1px 3px rgba(20, 35, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 35, 58, 0.08), 0 2px 4px rgba(20, 35, 58, 0.04);
  --shadow-lg: 0 18px 48px rgba(20, 35, 58, 0.14);

  --maxw: 1120px;
  --nav-h: 60px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--graphite); font-weight: 650; }
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--subtle { background: var(--bg-subtle); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.075rem; margin: 0; }
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 0.98rem;
  padding: 0.7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--graphite); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-subtle); }
.btn--on-dark { background: #fff; color: var(--graphite); }
.btn--on-dark:hover { background: #eef1f6; }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 1.05rem; }
.btn .icon { width: 18px; height: 18px; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 680; color: var(--graphite); font-size: 1.08rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: none; align-items: center; gap: 0.35rem; margin-left: 0.75rem; }
.nav-links a { color: var(--text-muted); font-weight: 550; font-size: 0.96rem; padding: 0.45rem 0.7rem; border-radius: var(--radius-sm); }
.nav-links a:hover { color: var(--graphite); background: var(--bg-subtle); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--graphite); background: var(--bg-subtle); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav-cta { display: none; }

/* Language selector */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem; font: inherit; font-size: 0.9rem; font-weight: 550; color: var(--text); cursor: pointer;
}
.lang-toggle:hover { background: var(--bg-subtle); }
.lang-toggle .icon { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; list-style: none; margin: 0;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); color: var(--text); font-size: 0.92rem; }
.lang-menu a:hover { background: var(--bg-subtle); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* Mobile menu */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--graphite);
}
.menu-toggle .icon { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 0.75rem 0 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.7rem 4px; color: var(--text); font-weight: 550; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { text-decoration: none; color: var(--accent); }
.mobile-nav .btn { width: 100%; margin-top: 0.9rem; }

/* Hero ----------------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); background: linear-gradient(180deg, var(--bg-subtle), var(--bg)); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent-soft); color: var(--accent-hover); font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 0.6rem; }
.hero .lead { margin-bottom: 1.6rem; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--text-faint); }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* Cards / grids -------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.dl-card { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; }
.dl-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.dl-card-header .icon-badge { margin-bottom: 0; }
.dl-card-header h3 { margin: 0 0 0.15rem; font-size: 1.4rem; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hover);
  margin-bottom: 1rem;
}
.icon-badge .icon { width: 22px; height: 22px; }

/* File systems */
.fs-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.fs-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm); }
.fs-item h3 { margin-bottom: 0.15rem; }
.fs-best { font-size: 0.85rem; color: var(--accent-hover); font-weight: 600; margin-bottom: 0.5rem; }
.fs-item p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.callout {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid #cfe2ff; border-radius: var(--radius);
  padding: 1rem 1.15rem; color: var(--navy); font-size: 0.96rem; margin-top: 1.5rem;
}
.callout .icon { width: 20px; height: 20px; flex: none; color: var(--accent-hover); margin-top: 2px; }
.callout p { margin: 0; }
.callout--warn { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.callout--warn .icon { color: #c2410c; }
.callout--safe { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.callout--safe .icon { color: #16a34a; }

/* Steps ---------------------------------------------------------------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: step; }
.step { display: flex; align-items: flex-start; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--graphite); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: 0.95rem; margin-top: 1px;
}
.step div { flex: 1; }
.step h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* Feature list with checks */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.check-list .icon { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

/* Dark band ------------------------------------------------------------ */
.band-dark { background: var(--navy); color: #eaf0f8; }
.band-dark h2 { color: #fff; }
.band-dark .lead, .band-dark p { color: #b9c6da; }
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.5rem; }

/* FAQ / accordion ------------------------------------------------------ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.7rem; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.25rem; font-weight: 600; color: var(--graphite);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--text-faint); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-body { padding: 0 1.25rem 1.15rem; color: var(--text-muted); }
.faq .faq-body p { margin: 0; }

/* Page header (interior pages) */
.page-hero { background: var(--bg-subtle); border-bottom: 1px solid var(--border); padding: clamp(2rem, 5vw, 3.25rem) 0; }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { color: var(--text-muted); max-width: 62ch; margin: 0; font-size: 1.1rem; }

/* Breadcrumbs */
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: flex; gap: 0.4rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }

/* Prose (legal/long text) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose .updated { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 2rem; }

/* Definition / info list */
.info-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.info-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.15rem; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--text-muted); margin: 0; }
.info-row dd { margin: 0; font-weight: 600; color: var(--graphite); text-align: right; }
.info-row dd.mono { font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; word-break: break-all; }

.two-col { display: grid; gap: 2rem; grid-template-columns: 1fr; }

/* Screenshots Showcase ------------------------------------------------ */
.showcase-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.showcase { margin-top: 1rem; }

.showcase-tabs {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.showcase-tab {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem 1.35rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font: inherit;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.showcase-tab:hover {
  border-color: var(--border-strong);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.showcase-tab.active,
.showcase-tab[aria-selected="true"] {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(10, 132, 255, 0.2), 0 2px 6px rgba(10, 132, 255, 0.08);
  transform: translateY(-3px);
}

.showcase-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.showcase-tab.active::after,
.showcase-tab[aria-selected="true"]::after {
  opacity: 1;
}

.showcase-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.showcase-tab-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.showcase-tab.active .showcase-tab-num,
.showcase-tab[aria-selected="true"] .showcase-tab-num {
  color: var(--accent);
}

.showcase-tab-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.showcase-tab.active .showcase-tab-badge,
.showcase-tab[aria-selected="true"] .showcase-tab-badge {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.showcase-tab-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 680;
  color: var(--graphite);
  line-height: 1.25;
}

.showcase-tab-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Showcase Window Frame (macOS UI aesthetic) */
.showcase-panel {
  transition: opacity 0.25s ease;
}

.showcase-panel.active {
  animation: showcaseFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-window {
  background: #fdfdfd;
  border-radius: 14px;
  border: 1px solid rgba(28, 37, 48, 0.12);
  box-shadow: 0 25px 55px -12px rgba(20, 35, 58, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

.showcase-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #f9fafb, #edf0f4);
  border-bottom: 1px solid rgba(28, 37, 48, 0.09);
  user-select: none;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot--close {
  background: #ff5f57;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.window-dot--min {
  background: #febc2e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.window-dot--max {
  background: #28c840;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.window-title {
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
}

.showcase-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.showcase-zoom-btn:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.showcase-zoom-btn .icon {
  width: 12px;
  height: 12px;
}

.showcase-media {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
  cursor: zoom-in;
  display: block;
  outline: none;
}

.showcase-media:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-media:hover .showcase-img {
  transform: scale(1.012);
}

.showcase-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(22, 35, 58, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.showcase-media:hover .showcase-zoom-hint {
  opacity: 1;
}

.zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--graphite);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
}

.zoom-badge .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.showcase-caption {
  margin-top: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.showcase-caption .badge {
  margin-bottom: 0;
  flex-shrink: 0;
}

.showcase-caption-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--graphite);
  flex: 1 1 280px;
}

/* Screenshot Lightbox Modal Dialog */
.screenshot-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  width: 1440px;
  max-height: 94vh;
}

.screenshot-dialog::backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.screenshot-dialog-content {
  position: relative;
  background: #0d1520;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.screenshot-dialog-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.08);
}

.screenshot-dialog-close .icon {
  width: 18px;
  height: 18px;
}

.screenshot-dialog-body {
  overflow: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screenshot-dialog-img {
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.screenshot-dialog-caption {
  color: #e2e8f0;
  font-size: 0.94rem;
  margin: 0.9rem 0 0.2rem;
  max-width: 850px;
  text-align: center;
  line-height: 1.45;
}

@keyframes showcaseFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy shots fallback */
.shots { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.shots img { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--graphite); color: #c4ccd6; padding: 3rem 0 2rem; font-size: 0.94rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.25rem; }
.footer-brand .brand { color: #fff; }
.footer-brand img { border-radius: 7px; }
.footer-brand p { color: #93a0b0; margin: 0.9rem 0 0; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.9rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a, .footer-col button.linklike { color: #c4ccd6; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button.linklike:hover { color: #fff; text-decoration: underline; }
.footer-company { border-top: 1px solid #2c3846; padding-top: 1.5rem; color: #8b98a8; font-size: 0.85rem; display: grid; gap: 0.5rem; }
.footer-company strong { color: #c4ccd6; font-weight: 600; }
.footer-bottom { border-top: 1px solid #2c3846; margin-top: 1.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: #8b98a8; font-size: 0.85rem; }
.footer-lang { margin-top: 0.5rem; }

/* Cookie consent ------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 30px rgba(20,35,58,0.12);
  padding: 1.15rem 0;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: grid; gap: 1rem; }
.cookie-inner h2 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.cookie-inner p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { flex: 1 1 auto; }

/* Cookie dialog */
.cookie-dialog { border: none; padding: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 540px; width: calc(100% - 32px); }
.cookie-dialog::backdrop { background: rgba(20,35,58,0.45); backdrop-filter: blur(2px); }
.cookie-dialog-inner { padding: 1.5rem; }
.cookie-dialog h2 { font-size: 1.25rem; }
.cookie-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.cookie-option-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.35rem; }
.cookie-option-head h3 { margin: 0; font-size: 1rem; }
.cookie-option p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.cookie-option .tag { font-size: 0.78rem; color: var(--accent-hover); font-weight: 600; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; margin-top: 1.25rem; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background 0.15s ease; }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s ease; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: 0.6; }
.switch input:focus-visible + .slider { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Utilities ------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-muted); }

/* Responsive ----------------------------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .fs-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; }
  .cookie-actions { justify-content: flex-end; }
  .cookie-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .showcase-tabs { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .two-col { grid-template-columns: 1.4fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .fs-list--five .fs-item:nth-child(5) { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
}

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