

/* =============================================================================
   LIGHTBOX — step image thumbnails
   ============================================================================= */
.step-img-wrap {
  margin: 14px 0;
}

/* Side-by-side image row — used when a step has multiple images */
.step-img-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.step-img-row .step-img-wrap {
  margin: 0;
  flex: 0 0 auto;
}

.step-img-thumb {
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--silver-deep);
  max-width: 300px;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-img-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.step-img-thumb img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top left;
}

/* Placeholder thumbnail — shown while screenshot not yet available */
.step-img-placeholder-thumb {
  cursor: default;
  background: var(--silver-light);
  border: 1.5px dashed var(--silver-deep);
}

.step-img-placeholder-thumb:hover {
  transform: none;
  box-shadow: none;
}

.placeholder-thumb-inner {
  padding: 20px 16px;
  text-align: center;
}

.step-img-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
  display: block;
}

/* Lightbox overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  display: block;
}

/* SVG images in lightbox — force consistent render width */
.lightbox-overlay img[src$=".svg"] {
  width: min(90vw, 1280px);
  height: auto;
}

/* YouTube video embed in lightbox */
.lightbox-video-wrap {
  display: none;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
}
.lightbox-video-wrap iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 4px 10px;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  max-width: 600px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.step-img-thumb img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top left;
  background: var(--silver-light);
}

/* When image fails to load — show filename as label */
.step-img-thumb img::before {
  content: "📷 " attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px;
  background: var(--silver-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}


/* =============================================================================
   NAV DROPDOWN — GPU Fix sub-pages
   ============================================================================= */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  cursor: pointer;
  padding: 10px 0;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1.5px solid var(--silver-deep);
  border-radius: 10px;
  padding: 16px 0 8px; /* top padding bridges the gap — hover area is continuous */
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  margin-top: 0;
}

/* Invisible bridge above the menu so mouse movement doesn't lose hover */
.nav-dropdown-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--silver-light);
  color: var(--teal);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* Active state — when on a GPU Fix sub-page */
.nav-dropdown.active .nav-dropdown-trigger {
  color: var(--teal);
}

/* =============================================================================
   ANCHOR SCROLL OFFSET — compensates for sticky header
   Applies to all elements with an id — section anchors, FAQ items, etc.
   ============================================================================= */
[id] {
  scroll-margin-top: 80px;
}

/* =============================================================================
   MacGPUFix+ — css/style.css
   Metallic silver design system. MacBook Pro unibody aesthetic.
   Versioned via ASSET_VERSION in config.php.
   ============================================================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Variables --- */
:root {
  --silver-light:    #f0f2f4;
  --silver-mid:      #d8dde3;
  --silver-deep:     #b8bfc8;
  --silver-edge:     #9aa3ae;
  --text-primary:    #1d1d1f;
  --text-secondary:  #4a5260;
  --text-muted:      #6e6e73;
  --teal:            #007a6e;
  --teal-light:      #00b5a0;
  --accent:          #005a52;
  --terminal-bg:     #0d1117;
  --terminal-green:  #00e5cc;
  --red:             #c0392b;
  --white:           #ffffff;
  --border:          rgba(0,0,0,0.1);
  --shadow:          rgba(0,0,0,0.1);
  --shadow-md:       rgba(0,0,0,0.15);
}

/* --- Base --- */
html, body {
  background: linear-gradient(160deg, #f8f9fa 0%, #e8ecf0 30%, #f0f2f4 60%, #e4e8ed 100%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

h1, h2, h3 { color: var(--text-primary); }

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

/* --- Animations --- */
@keyframes floatIn {
  from { opacity: 0; transform: scale(0.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* =============================================================================
   HEADER
   ============================================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240,242,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--silver-mid);
  box-shadow: 0 1px 8px var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #777;
  -webkit-text-stroke: 1px #5c5c5c;
  -webkit-text-fill-color: #777;
}

#site-logo img {
  width: 150px;
  height: 50px;
  border-radius: 10px;
  filter: drop-shadow(0 2px 6px var(--shadow));
}

#site-logo strong { color: var(--teal); }

#site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

#site-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

#site-nav a:hover,
#site-nav a.nav-active { color: var(--teal); }

#site-nav .nav-github {
  border: 1px solid var(--silver-deep);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-secondary);
}

#site-nav .nav-github:hover {
  border-color: var(--teal);
  color: var(--teal);
}

#site-nav .nav-support {
  background: var(--teal);
  border-radius: 6px;
  padding: 7px 14px;
  color: #fff !important;
  font-weight: 700;
  transition: background 0.2s;
}

#site-nav .nav-support:hover {
  background: var(--accent);
  color: #fff !important;
}

/* Hamburger — mobile nav */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  #nav-toggle { display: flex; }
  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(240,242,244,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--silver-mid);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    z-index: 99;
  }
  #site-nav.nav-open { display: flex; }
  #site-header { position: relative; }
}

/* =============================================================================
   MAIN CONTENT WRAPPER (non-index pages)
   ============================================================================= */
#content {
  max-width: 940px;
  margin: 0 auto;
  padding: 48px 40px 64px;
}

/* Inner page — wider content area (guides, gpu-fix, community etc.) */
.content-wide {
  max-width: 100%;
  margin: 0 auto;
}

/* Inner page header — consistent across all non-index pages */
.page-header {
  margin-bottom: 40px;
}

.page-header .page-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

.page-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #777;
  -webkit-text-fill-color: #777;
  -webkit-text-stroke: 1px #525455;
  margin-bottom: 16px;
  line-height: 1.15;
}

.page-header .page-intro {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-header .page-intro-body {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.page-header .page-intro-body p {
  margin-bottom: 16px;
}

.page-header .page-intro-body p:last-child {
  margin-bottom: 0;
}

/* Inner page section headings */
.inner-section {
  margin-bottom: 40px;
}

.inner-section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--teal);
  margin-bottom: 16px;
  margin-top: 36px;
  padding-bottom: 4px;
}

.inner-section h2:first-child,
.inner-section > h2:first-of-type { margin-top: 0; }

.about-section h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 14px;
  margin-top: 32px;
}
.about-section:first-of-type h2 { margin-top: 0; }

/* Extra breathing room when H2 follows a bullet list */
.inner-section ul + h2,
.inner-section ol + h2 { margin-top: 40px; }

/* H3 inside steps/sections — clearly subordinate to H2 */
.inner-section h3,
.step-body h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.inner-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

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

/* Secondary note text within inner-sections — slightly smaller than body copy */
.inner-section-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.inner-section ul,
.inner-section ol {
  padding-left: 32px;
  margin-top: 10px;
  margin-bottom: 20px;
  list-style-position: outside;
}

.inner-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
}

.inner-divider {
  height: 1px;
  background: var(--silver-mid);
  margin: 40px 0;
}

/* Step list — used on gpu-fix page */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--silver-mid);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px var(--shadow);
}

.step-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--teal);
  flex-shrink: 0;
  min-width: 28px;
  line-height: 1.4;
}


/* Step note — small supplementary text inside step cards */
.step-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
  line-height: 1.6;
}

.step-note strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 2px;
}

.step-body strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  /* display:block removed — was breaking inline text flow */
  margin-bottom: 0;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Info card — used for Part 2, notices */
.info-card {
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
}

.info-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

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

.info-card ol,
.info-card ul {
  padding-left: 32px;
  margin: 10px 0 16px;
  list-style-position: outside;
}

.info-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
}

.info-card .info-warn {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Contributor cards — used on community page */
.contributor-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.contributor-card {
  background: var(--white);
  border: 1px solid var(--silver-mid);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px var(--shadow);
}

.contributor-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contributor-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

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

/* Guide cards grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.guide-card {
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 10px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-card-icon { font-size: 1.8rem; }

.guide-card-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.guide-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0;
}

.guide-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.coming-soon-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-edge);
  background: var(--silver-light);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

/* =============================================================================
   HOME PAGE — .page
   ============================================================================= */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
  text-align: center;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-deep), transparent);
  align-self: stretch;
}

/* --- Brand Row --- */
.brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.brand-row .logo-wrap { display: none; } /* Option A: wordmark only */
.brand-row .headline { text-align: left; }
.brand-row .headline h1 {
  color: #777;
  -webkit-text-stroke: 1px #5c5c5c;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: 0.06em;
  -webkit-text-fill-color: #777;
}

/* --- Logo --- */
.logo-wrap {
  width: min(220px, 60vw);
  animation: floatIn 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.logo-wrap img {
  border-radius: 24px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18)) drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* --- Headline --- */
.headline { animation: fadeUp 0.8s 0.15s both; }

.headline h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 7vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, #1a1d22 0%, #2a6060 50%, #1a1d22 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline .sub {
  margin-top: 10px;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --- Video --- */
.video-wrap {
  position: relative;
  width: min(260px, 70vw);
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  animation: fadeUp 0.8s 0.25s both;
}

.video-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-light), transparent 60%);
  opacity: 0.4;
  z-index: 0;
}

.video-inner {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* Hero video — YouTube Short in hero right column */
.hero-video-wrap {
  position: relative;
  width: 270px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  align-self: flex-start;
}

.hero-video-wrap .hero-video-sizer {
  display: none; /* not needed — explicit height used */
}

.hero-video-wrap iframe {
  display: block;
  width: 270px;
  height: 480px;
  border: none;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .hero-video-wrap { width: 200px; }
  .hero-video-wrap iframe { width: 200px; height: 356px; }
}


/* Video thumbnail — clickable link with play button overlay */
.hero-video-thumb {
  position: relative;
  width: 270px;
  height: 480px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: block;
  align-self: flex-start;
  text-decoration: none;
  cursor: pointer;
}

.hero-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.hero-video-thumb:hover img {
  transform: scale(1.03);
}

.hero-video-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.hero-video-thumb:hover .play-btn {
  background: rgba(255,0,0,0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-thumb .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
}

.hero-video-thumb .watch-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-align: center;
}

@media (max-width: 900px) {
  .hero-video-thumb { width: 200px; height: 356px; }
}

@media (max-width: 768px) {
  .hero-video-thumb { width: 100%; max-width: 270px; height: 200px; margin: 0 auto; }
  .hero-video-thumb img { object-position: center top; }
}

/* =============================================================================
   OUTER LAYOUT — two-column: content + right sidebar
   Sidebar hidden at launch. Enable by adding .sidebar-active to .page-outer.
   ============================================================================= */
.page-outer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-outer.sidebar-active {
  grid-template-columns: 1fr 300px;
}

/* Right sidebar — ad zone */
.sidebar {
  display: none;
  width: 300px;
  flex-shrink: 0;
}

.page-outer.sidebar-active .sidebar {
  display: block;
  position: sticky;
  top: 72px; /* nav height + offset */
}

/* Ad zones — hidden at launch, activated per zone when ads go live */
.ad-zone {
  display: none;
  width: 100%;
  background: var(--silver-light);
  border: 1px dashed var(--silver-deep);
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.ad-zone-sidebar  { min-height: 250px; padding: 16px; }
.ad-zone-content  { min-height: 100px; padding: 12px;
                    max-width: 760px; margin: 0 auto 20px; }
.ad-zone-footer   { min-height: 90px; padding: 12px;
                    max-width: 728px; margin: 0 auto; }

.ad-disclosure {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  font-family: 'Orbitron', sans-serif;
}

/* External link badge */
.ext-badge {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--teal);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: middle;
  cursor: help;
  position: relative;
}

.ext-badge .ext-tooltip {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  font-size: 0.7rem;
  font-family: 'Orbitron', sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
  letter-spacing: 0;
  font-weight: 400;
}

.ext-badge:hover .ext-tooltip { display: block; }

@media (max-width: 900px) {
  .page-outer.sidebar-active {
    grid-template-columns: 1fr;
  }
  .page-outer.sidebar-active .sidebar { display: none; }
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: 1060px;
  padding: 40px 0 20px;
  text-align: left;
  align-self: center;
}
.hero-text { flex: 1; min-width: 0; }
.hero-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #777;
  -webkit-text-fill-color: #777;
  /* -webkit-text-stroke: 1px #525455; */
}
.hero-benefits {
  list-style: none;
  margin-bottom: 28px;
}
.hero-benefits li {
  font-size: 1rem;
  color: #4a5260;
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.hero-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Hero tagline — short descriptor below the benefits list */
.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0 0;
}

.hero-cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}
.hero-cta-btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* General purpose primary button — inline-level CTA link */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* Global code element — inline code snippets */
code {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 0.85rem;
  background: var(--silver-light);
  color: var(--text-primary);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Small hint/note text — below code blocks, form fields, verification steps */
.text-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

/* Validation note — italic small text inside guide-note blocks */
.validation-note {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}
.hero-image { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: center; }
.hero-image-placeholder {
  width: 100%;
  min-height: 240px;
  background: var(--silver-mid);
  border: 2px dashed var(--silver-deep);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .hero-section { flex-direction: column; text-align: center; }
  .hero-benefits li { text-align: left; }
  .hero-image { width: 100%; justify-content: center; }
  .hero-video-wrap { margin: 0 auto; }
}


/* =============================================================================
   CTA BOXES
   ============================================================================= */
.cta-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  align-self: center;
}

.cta-box {
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 14px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  box-shadow: 0 2px 10px var(--shadow);
}

.cta-box:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,122,110,0.15);
  color: inherit;
}

.cta-icon { font-size: 2.2rem; }

.cta-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.cta-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .cta-boxes { grid-template-columns: 1fr; }
}

/* =============================================================================
   DOWNLOAD SECTION
   ============================================================================= */
.download-hero {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: fadeUp 0.8s 0.3s both;
  align-self: center;
}

.download-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* Wizard preview image — below one-liner, above divider */
.wizard-preview {
  display: block;
  width: 80%;
  max-width: 80%;
  height: auto;
  margin: 20px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.wizard-preview-link {
  display: block;
  cursor: pointer;
  text-align: center;
}

/* Inline text link that opens lightbox video */
.inline-video-link {
  cursor: pointer;
  color: var(--teal);
  text-decoration: underline;
}

/* Terminal comfort note — reassurance below hb-note */
.terminal-comfort {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}


  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
 /* -webkit-text-fill-color: var(--teal);
  -webkit-text-stroke: 1px #525455; */
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Homebrew-style block — terminal command area only */
/* Label sits on white card, above the terminal block */
.hb-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.homebrew-block .hb-label {
  color: var(--terminal-green);
  margin-bottom: 14px;
}

/* One-liner outer row — dark block left, copy button right on page bg */
.hb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
  width: 100%;
}

/* Dark terminal block — takes all space, scrolls internally */
.homebrew-block {
  flex: 1;
  min-width: 0;
  width: 0; /* forces flex to respect min-width:0 boundary */
  background: var(--terminal-bg);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.homebrew-block::-webkit-scrollbar { height: 3px; }
.homebrew-block::-webkit-scrollbar-track { background: transparent; }
.homebrew-block::-webkit-scrollbar-thumb {
  background: rgba(0,229,204,0.25);
  border-radius: 2px;
}

.homebrew-block .hb-command {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.homebrew-block .hb-command .hb-code-scroll {
  display: contents; /* passthrough — no extra wrapper needed */
}

.homebrew-block .hb-command code {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  display: block;
  line-height: 1.5;
  letter-spacing: 0.02em;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Copy button — outside dark block, on page background */
.hb-row .hb-copy {
  flex-shrink: 0;
  align-self: center;
}

.hb-copy {
  background: var(--teal);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hb-copy:hover { background: var(--accent); color: #ffffff; }
.hb-copy.copied { background: #00a86b; color: #ffffff; }

.homebrew-block .hb-note {
  display: none; /* Note moved outside terminal block in markup */
}

/* Note on white card background */
.hb-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 12px;
}

.hb-note strong { color: var(--text-secondary); }
.hb-note a { color: var(--teal); }
.hb-note a:hover { color: var(--accent); }

.manual-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 24px 0 16px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
}

/* OS buttons */
.os-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.os-btn {
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 12px;
  padding: 18px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
  min-width: 140px;
  box-shadow: 0 2px 8px var(--shadow);
}

.os-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,122,110,0.15);
}

.os-btn.active {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 4px 16px rgba(0,122,110,0.3);
}

/* Accordion panels */
.os-panel {
  display: none;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--silver-deep);
  border-radius: 12px;
  padding: 28px;
  text-align: left;
  margin-top: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  animation: fadeUp 0.3s both;
}

.os-panel.active { display: block; }

.os-panel p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.7;
}

.os-panel p strong { color: var(--text-primary); }

.os-step {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-transform: uppercase;
  margin: 16px 0 8px;
  display: block;
}

.os-code {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--terminal-bg);
  border-radius: 6px;
  margin: 8px 0;
  overflow: hidden;
}

.os-code-scroll {
  flex: 1;
  min-width: 0;
  width: 0;
  overflow-x: auto;
  padding: 11px 12px 11px 16px;
  -webkit-overflow-scrolling: touch;
}

.os-code-scroll::-webkit-scrollbar { height: 3px; }
.os-code-scroll::-webkit-scrollbar-track { background: transparent; }
.os-code-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,229,204,0.25);
  border-radius: 2px;
}

.os-code code {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  display: block;
  line-height: 1.5;
  background: none;
  padding: 0;
  border-radius: 0;
}

.os-code .hb-copy {
  flex-shrink: 0;
  margin: 6px 8px 6px 0;
  align-self: center;
}

.os-dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.os-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terminal-green);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
}

.os-dl-btn:hover { background: #fff; color: #000; transform: translateY(-1px); }

.os-dl-btn.sec {
  background: transparent;
  border: 1px solid rgba(0,229,204,0.3);
  color: var(--terminal-green);
}

.os-dl-btn.sec:hover { background: rgba(0,229,204,0.08); color: var(--terminal-green); }

/* Action buttons — Download Image + SHA256 — green with white text, matching Copy button */
.os-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  border: none;
}
.os-action-btn:hover { background: var(--accent); color: #ffffff; transform: translateY(-1px); }

.os-action-btn-sec {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}
.os-action-btn-sec:hover { background: var(--teal); color: #ffffff; }

.os-warn {
  font-size: 0.76rem;
  color: rgba(192,57,43,0.8);
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 4px;
  background: rgba(192,57,43,0.04);
  line-height: 1.5;
}

/* =============================================================================
   PROBLEM / FIX — tradeoff grid
   ============================================================================= */
.problem-fix {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  animation: fadeUp 0.8s 0.45s both;
}

.tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.tradeoff-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px var(--shadow);
}

.tradeoff-card.lose { border-left: 4px solid var(--red); }
.tradeoff-card.keep { border-left: 4px solid var(--teal); }

.tradeoff-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 12px;
}

.tradeoff-card ul { padding-left: 16px; text-align: left; }
.tradeoff-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
  text-align: left;
}

@media (max-width: 600px) {
  .tradeoff-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   SECTION HEADERS
   ============================================================================= */
.section-hdr {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
  margin-top: 0;
  line-height: 1.4;
}

/* Section heading — visible H2 for SEO and user scanability */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-top: 4px;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

/* =============================================================================
   WANT MORE — interest cards
   ============================================================================= */
.want-more {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  animation: fadeUp 0.8s 0.5s both;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.interest-card {
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 12px;
  padding: 20px 14px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  user-select: none;
}

.interest-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,122,110,0.12);
}

.interest-card.selected {
  border-color: var(--teal);
  background: #f0faf9;
  box-shadow: 0 4px 16px rgba(0,122,110,0.2);
}

.interest-card .ic-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }

.interest-card .ic-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.interest-card.selected .ic-title { color: var(--teal); }

.interest-card .ic-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.other-input-wrap { margin-top: 8px; }

.other-input-wrap input {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  box-shadow: 0 2px 8px var(--shadow);
}

.other-input-wrap input:focus { border-color: var(--teal); }
.other-input-wrap input::placeholder { color: var(--text-muted); }

/* =============================================================================
   NOTIFY / EMAIL FORM
   ============================================================================= */
.notify-section {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  animation: fadeUp 0.8s 0.6s both;
}

.notify-row {
  display: flex;
  width: 100%;
  border: 2px solid var(--silver-deep);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-top: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}

.notify-row:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,122,110,0.1);
}

.notify-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  min-width: 0;
}

.notify-row input::placeholder { color: var(--text-muted); }

.notify-row button {
  background: var(--teal);
  border: none;
  padding: 14px 22px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s;
  white-space: nowrap;
  flex-shrink: 0;
}

.notify-row button:hover    { background: var(--accent); }
.notify-row button:disabled { opacity: 0.6; cursor: wait; }

.msg { font-size: 0.88rem; min-height: 18px; margin-top: 10px; }
.msg.success { color: var(--teal); }
.msg.error   { color: var(--red); }

.privacy-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* =============================================================================
   FEEDBACK
   ============================================================================= */
.feedback-section {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  animation: fadeUp 0.8s 0.7s both;
}

.feedback-textarea {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
  margin-top: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}

.feedback-textarea:focus { border-color: var(--teal); }
.feedback-textarea::placeholder { color: var(--text-muted); }

.submit-btn {
  margin-top: 12px;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.submit-btn:hover { background: var(--accent); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }

/* =============================================================================
   TIP SECTION (home page callout)
   ============================================================================= */
.tip-section {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 32px 24px;
  animation: fadeUp 0.8s 0.8s both;
}

.tip-section p {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.tip-section p strong { color: var(--text-primary); }

.tip-btn {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s;
}

.tip-btn:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,122,110,0.25);
}

/* =============================================================================
   TIP PAGE
   ============================================================================= */
.tip-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.back-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.2s;
}

.back-link:hover { color: var(--teal); }

.tip-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  letter-spacing: 0.04em;
  color: #777;
  -webkit-text-fill-color: #777;
  -webkit-text-stroke: 1px #525455;
  margin-bottom: 16px;
}

.tip-hero p {
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
}

.tip-hero p strong { color: var(--text-primary); }

.tip-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tip-card {
  background: var(--white);
  border: 2px solid var(--silver-deep);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.tip-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,122,110,0.15);
  color: inherit;
}

.tip-card.primary {
  border-color: var(--teal);
  background: #f0faf9;
}

.tc-left { display: flex; align-items: center; gap: 16px; text-align: left; }
.tc-icon { font-size: 2rem; flex-shrink: 0; }

.tc-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.tip-card.primary .tc-title { color: var(--teal); }

.tc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tc-arrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
}

.tip-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

.tip-note strong { color: var(--text-secondary); }
.tip-note a { color: var(--teal); }

/* =============================================================================
   404 PAGE
   ============================================================================= */
.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: var(--silver-deep);
  margin-bottom: 16px;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}



/* =============================================================================
   FOOTER EMAIL SIGNUP — compact
   ============================================================================= */
.footer-notify {
  border-top: 1px solid var(--silver-mid);
  padding: 20px 0 0;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-notify-label {
  flex-shrink: 0;
}

.footer-notify-label span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-notify-label p { display: none; }

.footer-notify-form {
  display: flex;
  flex: 1;
  max-width: 360px;
  border: 1.5px solid var(--silver-deep);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s;
  height: 36px;
}

.footer-notify-form:focus-within { border-color: var(--teal); }

.footer-notify-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
  height: 100%;
}

.footer-notify-form input::placeholder { color: var(--text-muted); }

.footer-notify-form button {
  background: var(--teal);
  border: none;
  padding: 0 14px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  height: 100%;
  flex-shrink: 0;
}

.footer-notify-form button:hover { background: var(--accent); }

@media (max-width: 600px) {
  .footer-notify { flex-direction: column; align-items: stretch; }
  .footer-notify-form { max-width: 100%; }
}




/* =============================================================================
   ARTICLE HERO IMAGE
   Renders at natural size, capped at container width, never stretched
   ============================================================================= */
.article-hero-img {
  margin: 0 0 28px;
}

.article-hero-img img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* =============================================================================
   GUIDE SYNOPSIS BLOCK
   ============================================================================= */
.guide-synopsis {
  background: var(--white);
  border: 1.5px solid var(--silver-deep);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.guide-synopsis p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

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

/* =============================================================================
   GUIDE TEMPLATE COMPONENTS
   ============================================================================= */

/* Highlights box */
.guide-highlights {
  background: var(--white);
  border: 1.5px solid var(--silver-deep);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 18px 24px;
  margin: 24px 0;
}

.guide-highlights-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

.guide-highlights ul {
  padding-left: 18px;
  margin: 0;
}

.guide-highlights li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Table of Contents */

/* TOC always followed by consistent spacing + subtle divider */
.guide-toc {
  margin-bottom: 0;
}
.guide-toc + .inner-divider,
.guide-toc + * {
  margin-top: 32px;
}
.guide-toc::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--silver-mid);
  margin-top: 28px;
}

.guide-toc {
  background: var(--silver-light);
  border-radius: 8px;
  padding: 16px 24px;
  margin: 24px 0;
  display: inline-block;
  min-width: 240px;
}

.guide-toc-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.guide-toc ol {
  padding-left: 18px;
  margin: 0;
}

.guide-toc li {
  font-size: 0.9rem;
  line-height: 1.8;
}

.guide-toc a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.guide-toc a:hover { color: var(--accent); }

/* Guide note / warn blocks */
.guide-note {
  background: rgba(0,122,110,0.06);
  border: 1px solid rgba(0,122,110,0.2);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 16px 0;
}

.guide-note a { color: var(--teal); }

.guide-warn {
  background: rgba(192,57,43,0.05);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 16px 0;
}

/* Inline code */
.inline-code, code.inline-code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--silver-light);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

/* Keyboard key */
kbd {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 0.82rem;
  background: var(--white);
  border: 1px solid var(--silver-deep);
  border-bottom: 2px solid var(--silver-deep);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Affiliate box */
.affiliate-box {
  background: var(--white);
  border: 1.5px solid var(--silver-deep);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

.affiliate-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.affiliate-product strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.affiliate-product p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.affiliate-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.affiliate-btn:hover { background: var(--accent); color: #fff; }

.affiliate-disclosure {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}

/* Related articles */
.related-guides { margin: 32px 0; }
.related-guides h2 { margin-bottom: 16px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--silver-deep);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.related-icon { font-size: 1.4rem; }

.related-card strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.related-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =============================================================================
   FAQ ACCORDION
   ============================================================================= */
.faq-item { border-bottom: 1px solid var(--silver-mid); }
.faq-item:first-child { border-top: 1px solid var(--silver-mid); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  text-align: left;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.faq-q:hover,
.faq-q[aria-expanded="true"] { color: var(--teal); }

.faq-chevron {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s;
  display: inline-block;
}

.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(90deg); }

.faq-a { padding: 0 0 18px; }
.faq-a p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }

/* =============================================================================
   FOOTER
   ============================================================================= */
#site-footer {
  border-top: 1px solid var(--silver-mid);
  background: rgba(240,242,244,0.8);
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--silver-mid);
}

.footer-col-head {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 14px;
  display: block;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-links a {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col-links a:hover { color: var(--teal); }

.footer-col-links a.footer-link-primary {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-edge);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-edge);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--teal); }

@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 600px) {
  .page { gap: 32px; padding: 32px 16px 48px; }
  .os-buttons { gap: 8px; }
  .os-btn { min-width: 100px; padding: 14px 18px; }
  .notify-row { flex-direction: column; }
  .notify-row button { width: 100%; padding: 14px; }
  .homebrew-block { padding: 20px 16px; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
  .tip-card { flex-direction: column; align-items: flex-start; }
  .tc-arrow { align-self: flex-end; }
  #site-nav { gap: 14px; }
  .header-inner { padding: 10px 16px; }
}
