/* ============================================================
   Sage Tab — Official Public Site
   Palette: Obsidian Dark Glass & Radiant Glowing Orange (#ff9a40)
   Full mobile responsiveness across all viewport breakpoints.
   ============================================================ */

:root {
  --bg: #070b11;
  --bg-raised: #0d131e;
  --surface: #111827;
  --surface-border: rgba(255, 154, 64, 0.18);
  --hairline: rgba(255, 255, 255, 0.08);

  --text: #f8fafc;
  --text-dim: #94a3b8;
  --text-faint: #64748b;

  --orange: #ff9a40;
  --orange-vibrant: #f97316;
  --orange-deep: #ea580c;
  --orange-glow: rgba(255, 154, 64, 0.4);
  --orange-subtle: rgba(255, 154, 64, 0.12);
  --orange-border: rgba(255, 154, 64, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

::selection {
  background: var(--orange-glow);
  color: #ffffff;
}

a {
  color: var(--orange);
  text-decoration-color: rgba(255, 154, 64, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: #ffb366;
  text-decoration-color: #ffb366;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
}

/* ---------- layout shell ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 56px);
  background: rgba(7, 11, 17, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.2s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s ease;
}
.brand:hover {
  opacity: 0.95;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 14px var(--orange-glow);
  display: block;
  border: 1px solid rgba(255, 154, 64, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.brand:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 154, 64, 0.7);
}
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}
.nav-links a[aria-current="page"] {
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--orange-glow);
}

/* Nav Add to Chrome CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 154, 64, 0.12);
  border: 1px solid rgba(255, 154, 64, 0.4);
  color: #ffffff;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(255, 154, 64, 0.15);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #ff9a40 0%, #ea580c 100%);
  color: #070b11;
  border-color: rgba(255, 154, 64, 0.85);
  box-shadow: 0 0 24px rgba(255, 154, 64, 0.55), 0 4px 12px rgba(234, 88, 12, 0.4);
  transform: translateY(-1px);
}
.nav-cta svg {
  flex-shrink: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(44px, 7vw, 84px);
  text-align: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Master Hero Brand Mark — Perfectly Centered Above Eyebrow */
.hero-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  width: fit-content;
}
.hero-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 64, 0.45) 0%, rgba(234, 88, 12, 0.18) 50%, transparent 75%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  animation: pulseAura 4.5s ease-in-out infinite alternate;
}
@keyframes pulseAura {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}
.hero-brand-icon {
  width: clamp(124px, 16vw, 148px);
  height: clamp(124px, 16vw, 148px);
  object-fit: cover;
  border-radius: clamp(26px, 3.5vw, 34px);
  box-shadow: 0 0 45px var(--orange-glow), 0 16px 40px rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(255, 154, 64, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  display: block;
}
.hero-brand-icon:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 0 60px rgba(255, 154, 64, 0.8), 0 20px 50px rgba(0, 0, 0, 0.85);
}

/* Eyebrow Block Wrapper */
.hero-eyebrow-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 24px auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 154, 64, 0.12);
  border: 1px solid rgba(255, 154, 64, 0.38);
  box-shadow: 0 0 18px rgba(255, 154, 64, 0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
a.eyebrow {
  text-decoration: none;
}
a.eyebrow:hover {
  background: rgba(255, 154, 64, 0.22);
  border-color: rgba(255, 154, 64, 0.65);
  box-shadow: 0 0 24px rgba(255, 154, 64, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
  text-shadow: 0 0 35px rgba(255, 154, 64, 0.45);
}

.hero p.lede {
  max-width: 580px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: clamp(15.5px, 2vw, 19px);
  line-height: 1.6;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(135deg, #ff9a40 0%, #ea580c 100%);
  color: #070b11;
  box-shadow: 0 0 0 1px rgba(255, 154, 64, 0.5), 0 12px 28px -8px rgba(249, 115, 22, 0.6);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffb366 0%, #f97316 100%);
  color: #04070a;
  box-shadow: 0 0 0 1px rgba(255, 154, 64, 0.7), 0 16px 36px -8px rgba(249, 115, 22, 0.75);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--surface-border);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 154, 64, 0.1);
  border-color: var(--orange-border);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---------- data-practices strip ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 clamp(48px, 8vw, 96px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.practice-cell {
  background: var(--bg-raised);
  padding: 28px 24px;
  transition: background 0.2s ease;
}
.practice-cell:hover {
  background: var(--surface);
}
.practice-cell .glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 154, 64, 0.14);
  border: 1px solid rgba(255, 154, 64, 0.3);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 12px rgba(255, 154, 64, 0.15);
}
.practice-cell h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 6px;
  color: #ffffff;
}
.practice-cell p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ============================================================
   Feature Showcase — Horizontal Cover Flow Section
   ============================================================ */

.showcase-section {
  position: relative;
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(32px, 4vw, 56px);
  background: radial-gradient(circle at 50% 15%, rgba(255, 154, 64, 0.07) 0%, rgba(7, 11, 17, 0) 65%),
              linear-gradient(180deg, #070b11 0%, #0a0f19 50%, #070b11 100%);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.showcase-wrap {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Dynamic Text Header ABOVE images */
.showcase-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 20px;
  height: 144px;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.showcase-header.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.showcase-meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.showcase-kicker-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  background: rgba(255, 154, 64, 0.12);
  border: 1px solid rgba(255, 154, 64, 0.35);
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 154, 64, 0.18);
  white-space: nowrap;
}

.showcase-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-desc {
  font-size: clamp(13.5px, 1.4vw, 15px);
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Filter Pills */
.showcase-pills-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 0;
  max-width: 980px;
  position: relative;
  z-index: 20;
}

.showcase-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.showcase-pill:hover {
  background: rgba(255, 154, 64, 0.1);
  color: #ffffff;
  border-color: rgba(255, 154, 64, 0.32);
}

.showcase-pill.active {
  background: var(--orange);
  color: #070b11;
  font-weight: 600;
  border-color: var(--orange);
  box-shadow: 0 0 18px rgba(255, 154, 64, 0.35);
}

/* Cover Flow Container & Stage */
.coverflow-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vw, 550px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px auto 0;
  user-select: none;
  overflow: visible;
  z-index: 10;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.coverflow-stage.no-transition .coverflow-card {
  transition: none !important;
}

/* Cover Flow Cards */
.coverflow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 50vw, 840px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0b111c;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, opacity, filter, box-shadow;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease,
              filter 0.5s ease,
              box-shadow 0.5s ease,
              border 0.5s ease;
}

.coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.coverflow-card .card-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

/* Active Center Card (Zoomed & prominent, with ample top margin below pills) */
.coverflow-card.active {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 15;
  opacity: 1;
  filter: grayscale(0%) brightness(1.02) contrast(1.02);
  border: 2px solid rgba(255, 154, 64, 0.85);
  box-shadow: 0 0 60px rgba(255, 154, 64, 0.48), 0 25px 70px rgba(0, 0, 0, 0.95);
  cursor: default;
}

/* Desaturated Side Cards */
.coverflow-card.side {
  filter: grayscale(100%) brightness(0.65) contrast(0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
}

.coverflow-card.side:hover {
  filter: grayscale(60%) brightness(0.85);
  opacity: 0.65;
}

/* Immediate Left / Right (pos-1) */
.coverflow-card.side.left.pos-1 {
  transform: translate(calc(-50% - 66%), -50%) scale(0.78);
  z-index: 5;
  opacity: 0.36;
}

.coverflow-card.side.right.pos-1 {
  transform: translate(calc(-50% + 66%), -50%) scale(0.78);
  z-index: 5;
  opacity: 0.36;
}

/* Outer Left / Right (pos-2) */
.coverflow-card.side.left.pos-2 {
  transform: translate(calc(-50% - 114%), -50%) scale(0.64);
  z-index: 2;
  opacity: 0.15;
  border-color: rgba(255, 255, 255, 0.05);
}

.coverflow-card.side.right.pos-2 {
  transform: translate(calc(-50% + 114%), -50%) scale(0.64);
  z-index: 2;
  opacity: 0.15;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Transition buffer cards (pos-3) & Hidden */
.coverflow-card.side.left.pos-3 {
  transform: translate(calc(-50% - 154%), -50%) scale(0.55);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.coverflow-card.side.right.pos-3 {
  transform: translate(calc(-50% + 154%), -50%) scale(0.55);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.coverflow-card.hidden {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
}

/* Navigation Arrow Buttons */
.coverflow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(13, 19, 29, 0.88);
  border: 1px solid rgba(255, 154, 64, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  transition: all 0.22s ease;
}

.coverflow-nav-btn:hover {
  background: var(--orange);
  color: #070b11;
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(255, 154, 64, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.coverflow-nav-btn.prev-btn {
  left: 12px;
}

.coverflow-nav-btn.next-btn {
  right: 12px;
}

/* Footer progress & hints */
.showcase-footer-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.showcase-progress-track {
  width: min(300px, 75vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.showcase-progress-bar {
  height: 100%;
  width: 2%;
  background: linear-gradient(90deg, #ff7a1a, var(--orange));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 154, 64, 0.5);
  transition: width 0.35s ease;
}

.showcase-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.75;
  font-family: var(--font-mono);
}

.showcase-hint svg {
  color: var(--orange);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .showcase-header {
    min-height: 130px;
    margin-bottom: 20px;
  }
  .coverflow-container {
    height: clamp(260px, 48vw, 440px);
  }
  .coverflow-card {
    width: clamp(300px, 74vw, 680px);
  }
  .coverflow-card.active {
    transform: translate(-50%, -50%) scale(1.08);
  }
  .coverflow-card.side.left.pos-1 {
    transform: translate(calc(-50% - 72%), -50%) scale(0.78);
    opacity: 0.3;
  }
  .coverflow-card.side.right.pos-1 {
    transform: translate(calc(-50% + 72%), -50%) scale(0.78);
    opacity: 0.3;
  }
  .coverflow-card.side.left.pos-2,
  .coverflow-card.side.right.pos-2 {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .showcase-section {
    padding: 40px 0 36px;
  }
  .showcase-wrap {
    padding: 0 16px;
  }
  .showcase-header {
    min-height: auto;
    margin-bottom: 18px;
  }
  .showcase-title {
    font-size: 22px;
  }
  .showcase-desc {
    font-size: 13.5px;
    line-height: 1.5;
  }
  .showcase-pills-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 4px 8px;
    margin-bottom: 22px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .showcase-pills-bar::-webkit-scrollbar {
    display: none;
  }
  .coverflow-container {
    height: clamp(220px, 56vw, 320px);
  }
  .coverflow-card {
    width: 86vw;
    border-radius: 14px;
  }
  .coverflow-card.active {
    transform: translate(-50%, -50%) scale(1.04);
    border-width: 1.5px;
    box-shadow: 0 0 36px rgba(255, 154, 64, 0.45), 0 16px 36px rgba(0, 0, 0, 0.88);
  }
  .coverflow-card.side.left.pos-1 {
    transform: translate(calc(-50% - 82%), -50%) scale(0.76);
    opacity: 0.18;
  }
  .coverflow-card.side.right.pos-1 {
    transform: translate(calc(-50% + 82%), -50%) scale(0.76);
    opacity: 0.18;
  }
  .coverflow-nav-btn {
    width: 38px;
    height: 38px;
  }
  .coverflow-nav-btn.prev-btn {
    left: 4px;
  }
  .coverflow-nav-btn.next-btn {
    right: 4px;
  }
}

/* ---------- section shell (index sections) ---------- */

.section {
  padding: clamp(36px, 6vw, 72px) 0;
  border-top: 1px solid var(--hairline);
}
.section-head {
  max-width: 620px;
  margin: 0 0 32px;
}
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.perm-list {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.4);
}
.perm-row {
  background: var(--surface);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: baseline;
  transition: background 0.15s ease;
}
.perm-row:hover {
  background: #151e2e;
}
.perm-row code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange);
  background: rgba(255, 154, 64, 0.1);
  border: 1px solid rgba(255, 154, 64, 0.28);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}
.perm-row p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- article (policy pages) ---------- */

.article-head {
  padding: clamp(40px, 8vw, 80px) 0 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}
.article-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-wrap: balance;
  color: #ffffff;
}
.article-head .meta {
  color: var(--text-faint);
  font-size: 13.5px;
  font-family: var(--font-mono);
}
.article-head .meta a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 154, 64, 0.4);
  padding-bottom: 1px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.article-head .meta a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px);
  gap: 56px;
  padding-bottom: clamp(56px, 10vw, 120px);
}

.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 13px;
}
.toc h4 {
  margin: 0 0 12px;
  color: var(--text-faint);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.toc a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.toc a:hover {
  color: var(--orange);
}

article.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
  color: #ffffff;
}
article.prose h2:first-child {
  margin-top: 0;
}
article.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
article.prose p {
  color: var(--text-dim);
  margin: 0 0 14px;
}
article.prose ul,
article.prose ol {
  color: var(--text-dim);
  margin: 0 0 16px;
  padding-left: 22px;
}
article.prose li {
  margin-bottom: 6px;
}
article.prose li::marker {
  color: var(--orange);
}
article.prose strong {
  color: var(--text);
  font-weight: 600;
}
article.prose a {
  font-weight: 500;
}
.placeholder {
  background: rgba(255, 154, 64, 0.14);
  border: 1px dashed rgba(255, 154, 64, 0.45);
  color: #ffb366;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  white-space: nowrap;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 14px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}
.callout strong {
  color: var(--text);
}

/* Chrome Web Store Verified Release Card */
.cws-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin: 0 0 28px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(13, 19, 30, 0.98) 100%);
  border: 1px solid rgba(255, 154, 64, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 154, 64, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.cws-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.8;
}
.cws-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cws-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 154, 64, 0.35);
  box-shadow: 0 0 14px rgba(255, 154, 64, 0.25);
  flex-shrink: 0;
  object-fit: cover;
}
.cws-banner-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cws-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cws-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}
.cws-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.cws-ext-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}
.cws-banner-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}
.cws-banner-sub code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--orange);
}
.cws-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff9a40 0%, #ea580c 100%);
  color: #070b11;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 154, 64, 0.4), 0 8px 20px -6px rgba(249, 115, 22, 0.6);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.cws-install-btn:hover {
  background: linear-gradient(135deg, #ffb366 0%, #f97316 100%);
  color: #04070a;
  box-shadow: 0 0 0 1px rgba(255, 154, 64, 0.6), 0 12px 28px -6px rgba(249, 115, 22, 0.75);
  transform: translateY(-1px);
}
.cws-install-btn svg {
  flex-shrink: 0;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  background: rgba(7, 11, 17, 0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .brand span {
  font-size: 16px;
}
footer .foot-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}
footer .foot-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
footer .foot-links a:hover {
  color: var(--text);
}
footer .copyright {
  color: var(--text-faint);
  font-size: 12.5px;
  font-family: var(--font-mono);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE DEVICES)
   ============================================================ */

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .toc {
    position: static;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .practice-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
    margin-bottom: 44px;
  }
  .practice-cell {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }
  .nav-right {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 13.5px;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }
  .cws-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    gap: 16px;
  }
  .cws-banner-left {
    align-items: flex-start;
  }
  .cws-install-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  .hero {
    padding: 36px 0 36px;
  }
  .hero-icon-wrap {
    margin-bottom: 16px;
  }
  .hero-eyebrow-wrap {
    margin-bottom: 20px;
  }
  .hero-brand-icon {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }
  .hero h1 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero p.lede {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
    padding: 0 6px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .perm-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .perm-row code {
    word-break: break-all;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  footer .foot-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}
