/*
 * Outlook Connector website — shadcn/ui-style design system.
 * Tokens and component specs from the design proposal generated with ChatGPT (gpt-5.5).
 */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --popover: #ffffff;
  --popover-foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --primary: #0078d4;
  --primary-foreground: #ffffff;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --accent: #eff6ff;
  --accent-foreground: #075985;
  --ring: #0078d4;
  --brand: #0078d4;
  --brand-foreground: #ffffff;
  --success: #16a34a;

  --radius: 0.625rem;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 0.12);

  --container: 72rem;
  --container-padding: 1rem;
  --section-y: 4rem;
  --header-h: 4rem;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --motion-fast: 160ms;
  --motion-base: 220ms;
  --motion-slow: 280ms;
}

.dark {
  color-scheme: dark;

  --background: #09090b;
  --foreground: #fafafa;
  --card: #0f0f12;
  --card-foreground: #fafafa;
  --popover: #0f0f12;
  --popover-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --border: #27272a;
  --input: #27272a;
  --primary: #2aa8ff;
  --primary-foreground: #00111f;
  --secondary: #18181b;
  --secondary-foreground: #fafafa;
  --accent: #082f49;
  --accent-foreground: #bae6fd;
  --ring: #38bdf8;
  --brand: #2aa8ff;
  --brand-foreground: #00111f;
  --success: #22c55e;

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.45);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 0.55);
}

@media (min-width: 768px) {
  :root {
    --container-padding: 1.5rem;
    --section-y: 6.5rem;
  }
}

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

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.045em;
}

h2 {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.75rem;
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  h2 {
    font-size: 2.75rem;
    line-height: 1.05;
    letter-spacing: -0.045em;
  }
}

@media (min-width: 1100px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.02;
    letter-spacing: -0.05em;
  }
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - calc(var(--container-padding) * 2), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 2.25rem;
  padding-inline: 0.875rem;
  font-size: 0.875rem;
}

.btn-md {
  height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.9375rem;
}

.btn-lg {
  height: 3rem;
  padding-inline: 1.25rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-xs);
}

.btn-default:hover {
  background: color-mix(in srgb, var(--primary) 88%, black);
}

.dark .btn-default:hover {
  background: color-mix(in srgb, var(--primary) 86%, white);
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--secondary);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.625rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 500;
}

.badge-brand {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--background));
  color: var(--brand);
}

.badge-success {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  background: color-mix(in srgb, var(--success) 10%, var(--background));
  color: var(--success);
}

.badge-success .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-xs);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-text small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.nav {
  display: none;
  gap: 0.25rem;
  margin-inline: auto;
}

.nav a {
  padding: 0.375rem 0.625rem;
  border-radius: calc(var(--radius) - 0.125rem);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.nav a:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-buy {
  display: none;
}

.theme-toggle .icon-sun {
  display: none;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

.dark .theme-toggle .icon-moon {
  display: none;
}

@media (max-width: 419px) {
  .lang-button .icon,
  .brand-text small {
    display: none;
  }

  .header-inner {
    gap: 0.5rem;
  }
}

@media (min-width: 640px) {
  .header-buy {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .menu-toggle {
    display: none;
  }
}

/* Language switcher */
.lang {
  position: relative;
}

.lang-button {
  gap: 0.375rem;
  padding-inline: 0.625rem;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  z-index: 60;
  min-width: 10rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--popover);
  color: var(--popover-foreground);
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: calc(var(--radius) - 0.125rem);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.lang-item small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-item:hover,
.lang-item:focus-visible,
.lang-item[aria-current="true"] {
  background: var(--secondary);
  outline: none;
}

.lang-item[aria-current="true"] {
  font-weight: 600;
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.75rem 1rem;
}

.mobile-nav a:not(.btn) {
  padding: 0.625rem 0.5rem;
  border-radius: calc(var(--radius) - 0.125rem);
  font-weight: 500;
}

.mobile-nav a:not(.btn):hover {
  background: var(--secondary);
}

.mobile-nav .btn {
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: calc(var(--section-y) * 0.75) var(--section-y);
}

.section-muted {
  border-block: 1px solid var(--border);
  background: var(--muted);
}

.dark .section-muted {
  background: color-mix(in srgb, var(--muted) 55%, var(--background));
}

.section-head {
  display: grid;
  gap: 0.875rem;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.125rem;
  }
}

.micro {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: 4rem;
    align-items: start;
  }

  .split > .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    margin-bottom: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 4rem 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-actions.center {
  justify-content: center;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.pills .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--success);
}

.hero-visual {
  position: relative;
  min-width: 0;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 6rem 4.5rem;
  }
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: 3.5rem;
  }

  .hero-visual {
    margin-right: -4rem;
  }
}

/* Browser frame */
.browser-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
  filter: blur(28px);
}

.dark .hero-visual::before {
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%);
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 60%, var(--card));
}

.browser-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--muted-foreground);
  opacity: 0.35;
}

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.75rem;
  height: 1.625rem;
  width: min(60%, 18rem);
  padding-inline: 0.625rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  white-space: nowrap;
}

.browser-url .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.browser-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 3.5rem 0 0;
}

.stat {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 85%, transparent);
}

.stat dt {
  order: 2;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.stat dd {
  order: 1;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 4.5rem;
  }

  .stat {
    padding: 1.25rem 1.375rem;
  }

  .stat dd {
    font-size: 1.625rem;
  }
}

/* ---------- Steps ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: calc(1rem + 1.25rem - 0.5px);
  width: 1px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--brand) 40%, var(--border)), var(--border));
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-body {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.375rem;
}

.step-body p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .step {
    padding: 1.25rem;
  }

  .steps::before {
    left: calc(1.25rem + 1.25rem - 0.5px);
  }
}

/* ---------- Video ---------- */
.video-card {
  position: relative;
  max-width: 60rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.375rem);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.video-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.shot {
  height: 100%;
}

.shot-button {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}

.shot-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
}

.shot-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.shot-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform var(--motion-slow) var(--ease-out);
}

.shot-button:hover .shot-media img {
  transform: scale(1.025);
}

.shot-zoom {
  position: absolute;
  right: 0.625rem;
  top: 0.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--ease-out);
}

.shot-zoom .icon {
  width: 0.8rem;
  height: 0.8rem;
}

.shot-button:hover .shot-zoom,
.shot-button:focus-visible .shot-zoom {
  opacity: 1;
  transform: none;
}

.shot-body {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 1rem 1.125rem 1.125rem;
}

.shot-body p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.375rem;
  transition:
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: calc(var(--radius) - 0.125rem);
  background: color-mix(in srgb, var(--brand) 9%, var(--card));
  color: var(--brand);
}

.feature-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.feature p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Compatibility ---------- */
.compat-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .compat-grid {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 0.35fr);
    align-items: start;
  }
}

.table-card {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table th,
.table td {
  padding: 0.875rem 1.125rem;
  text-align: left;
  vertical-align: top;
}

.table thead th {
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
}

.table tbody tr + tr {
  border-top: 1px solid var(--border);
}

.table tbody tr:hover {
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.table tbody th {
  width: 38%;
  font-weight: 500;
}

.table tbody td {
  color: var(--muted-foreground);
}

.note-card {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.5rem;
}

.note-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ---------- FAQ accordion ---------- */
.accordion {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--motion-fast) ease;
}

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

.accordion-item summary:hover {
  background: var(--secondary);
}

.accordion-item summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
  border-radius: 0;
}

.accordion-item summary .icon {
  color: var(--muted-foreground);
  transition: transform var(--motion-base) var(--ease-out);
}

.accordion-item[open] summary .icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ---------- Final CTA ---------- */
.cta-card {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 3rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  border-radius: 1rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, var(--card)), var(--card) 60%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-card > h2,
.cta-card > .lead {
  max-width: 44rem;
}

.cta-glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  z-index: -1;
  height: 100%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%);
}

@media (min-width: 768px) {
  .cta-card {
    padding: 4.5rem 2rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.875rem;
  max-width: 20rem;
}

.footer-brand p,
.site-footer li a {
  color: var(--muted-foreground);
}

.site-footer h3 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.site-footer ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: grid;
  gap: 0.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 2rem;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade-in var(--motion-base) var(--ease-out);
}

.lightbox[hidden] {
  display: none;
}

.dark .lightbox {
  background: rgb(0 0 0 / 0.88);
}

.lightbox-panel {
  display: grid;
  gap: 0.75rem;
  width: min(96vw, 90rem);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d4d4d8;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.lightbox-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(24 24 27 / 0.7);
  color: #fafafa;
}

.lightbox-btn:hover {
  background: rgb(63 63 70 / 0.85);
}

.lightbox-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0.5rem;
}

.lightbox-next {
  right: 0.5rem;
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(calc(-50% + 1px));
}

.lightbox-caption {
  color: #fafafa;
  text-align: center;
}

.lightbox-caption p {
  margin-top: 0.25rem;
  color: #d4d4d8;
  font-size: 0.9375rem;
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Motion ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .shot-button:hover,
  .feature:hover,
  .btn:active {
    transform: none;
  }
}

/* Long labels (guide link) may wrap on narrow screens */
.video-actions .btn {
  height: auto;
  min-height: 2.5rem;
  padding-block: 0.5rem;
  white-space: normal;
  text-align: center;
}
