/* ============================================
   ExpSoft — Global Stylesheet
   Charter: white dominant, blue-cyan-purple accents
   ============================================ */

:root {
  --navy: #1B2A4A;
  --blue: #2563EB;
  --cyan: #00C8E0;
  --purple: #7B5EA7;
  --light-blue: #80D4F0;
  --bg: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-muted: #ECEEF1;
  --text: #1B2A4A;
  --text-muted: #6B7B8D;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 12px 48px rgba(27, 42, 74, 0.12);
  --gradient: linear-gradient(135deg, var(--blue), var(--cyan));
  --gradient-accent: linear-gradient(135deg, var(--blue), var(--cyan), var(--purple));
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo span + span { margin-left: -10px; }
.nav-logo span:last-child { font-weight: 300; color: var(--blue); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #EDF2FF 50%, var(--bg) 100%);
}
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: url('ExpSoft_imgs/Wallpaper.jpg') center bottom / cover no-repeat;
  opacity: 0.12;
  mask-image: linear-gradient(to top, black 30%, transparent);
  -webkit-mask-image: linear-gradient(to top, black 30%, transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 80px 0 60px;
}
.hero-logo {
  width: 280px;
  margin: 0 auto 32px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #FFF;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- Section ---- */
.section {
  padding: 100px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ---- Product Cards ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.product-card-body { padding: 24px; }
.product-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-version {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(0,200,224,0.1));
  color: var(--blue);
}
.product-status {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.product-status.available { color: #10B981; }
.product-status.early-preview { color: #B86417; font-weight: 700; }

/* Patreon DOWNLOAD pill — injected by script.js into product-card body when
   versions.json has a non-empty `download` URL. Patreon brand coral, full-
   width to scream "click me", with click handler that intercepts the parent
   tile's <a> navigation and opens Patreon directly. */
.product-card-download {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: #FF424D;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(255, 66, 77, 0.35);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.product-card-download:hover {
  background: #E83A45;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 66, 77, 0.5);
}
.product-card-download:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}
.product-status.coming-soon {
  color: var(--purple);
  font-weight: 600;
  font-style: italic;
}

/* ---- Coming Soon Card ---- */
.coming-soon-card {
  cursor: default;
  position: relative;
}
.coming-soon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  pointer-events: none;
}
.coming-soon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #FFF;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Product Page ---- */
.product-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #EDF2FF 0%, var(--bg) 100%);
}
.product-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.product-hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.screenshot-item img {
  width: 100%;
  display: block;
}
.screenshot-label {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Figure-based screenshot cards (DiffusionForce-style with caption) */
.screenshot-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #FFF;
  margin: 0;
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
}
.screenshot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.screenshot-card img {
  width: 100%;
  display: block;
}
.screenshot-card figcaption {
  padding: 12px 16px;
  background: var(--bg-card);
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.product-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.product-feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #FFF;
}
.product-feature h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.product-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Update Checker Banner ---- */
.update-banner {
  display: none;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(0,200,224,0.08));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-top: 24px;
  text-align: center;
}
.update-banner.show { display: block; }
.update-banner strong { color: var(--blue); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand .nav-logo span:first-child { color: #FFF; }
.footer-brand .nav-logo span:last-child { color: var(--cyan); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  color: #FFF;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.4);
}

/* ---- Scroll Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .product-features { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero-logo { width: 180px; }
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
}

/* ============================================
   FAQ section — auto-injected by _seo_apply.py
   between <!-- ExpSoft-FAQ:BEGIN --> markers on
   each product page. Uses native <details>/<summary>
   for accessibility and zero JS dependency.
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-item:hover {
  border-color: var(--cyan);
}
.faq-item[open] {
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  position: relative;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}
/* Chevron — rotates 90° when the item is open. */
.faq-item > summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-75%) rotate(-45deg);
  transition: transform 0.18s;
}
.faq-item[open] > summary::after {
  transform: translateY(-25%) rotate(45deg);
}
.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-item .faq-answer p {
  margin: 0;
}
@media (max-width: 600px) {
  .faq-item > summary { padding: 14px 44px 14px 16px; }
  .faq-item > summary::after { right: 16px; }
  .faq-item .faq-answer { padding: 0 16px 16px; }
  .faq-item > summary h3 { font-size: 0.95rem; }
}

/* ============================================
   Engineering Notes — long-form article pages
   under /notes/<product_folder>/<date>-<slug>.html
   ============================================ */
.note-hero {
  background: linear-gradient(135deg, var(--navy), #2A4170);
  color: #FFF;
  padding: 56px 0 48px;
}
.note-hero .container { max-width: 820px; }
.note-product-tag {
  display: inline-block;
  color: var(--light-blue);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.note-product-tag:hover { color: var(--cyan); }
.note-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.note-tldr {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 0 24px;
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.note-meta .note-sep { padding: 0 10px; opacity: 0.5; }
.note-meta time { color: inherit; }

.note-body {
  padding: 48px 0 32px;
  background: var(--bg-card);
}
.note-body .container { max-width: 760px; }
.note-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 40px 0 14px;
}
.note-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.note-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 14px;
}
.note-body ul, .note-body ol {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 14px;
  padding-left: 24px;
}
.note-body li { margin: 6px 0; }
.note-body strong { color: var(--navy); }
.note-body em { font-style: italic; }
.note-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.note-body a:hover { color: var(--cyan); }
.note-body code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.92em;
  background: #F0F4F8;
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
}
.note-body pre {
  background: #1B2A4A;
  color: #B8C4CE;
  padding: 18px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 18px 0;
}
.note-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.note-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 6px 0 6px 20px;
  margin: 18px 0;
  color: var(--text-muted);
  font-style: italic;
}
.note-body table.note-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
}
.note-body table.note-table th,
.note-body table.note-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.note-body table.note-table th {
  background: var(--bg-muted);
  color: var(--navy);
  font-weight: 600;
}
.note-body figure {
  margin: 24px 0;
  text-align: center;
}
.note-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.note-body figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.note-related { background: var(--bg); padding: 48px 0; }
.note-related .container { max-width: 820px; }
.note-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.note-related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.note-related-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.note-related-kind {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.note-related-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* /notes/index.html — cross-product listing */
.notes-index { padding: 60px 0; }
.notes-index .container { max-width: 900px; }
.notes-index-section { margin-top: 36px; }
.notes-index-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cyan);
}
.notes-index-section ul { list-style: none; padding: 0; margin: 0; }
.notes-index-section li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.notes-index-section li:last-child { border-bottom: none; }
.notes-index-section a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.notes-index-section a:hover .notes-index-title { color: var(--blue); }
.notes-index-title { font-weight: 500; }
.notes-index-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .note-hero { padding: 36px 0 32px; }
  .note-body { padding: 32px 0 24px; }
  .note-body h2 { font-size: 1.25rem; margin: 28px 0 10px; }
  .note-body h3 { font-size: 1rem; margin: 20px 0 8px; }
  .notes-index-section a { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ============================================
   Engineering Notes — homepage section (3 latest)
   ============================================ */
.section-notes-home {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
  padding: 64px 0 72px;
}
.notes-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.note-home-card {
  display: flex;
  flex-direction: column;
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.note-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--cyan);
}
.note-home-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.note-home-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 10px;
}
.note-home-card-hook {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
  flex-grow: 1;
}
.note-home-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.note-home-card-meta time { font-variant-numeric: tabular-nums; }
.note-home-card-cta { color: var(--cyan); font-weight: 600; }
.notes-home-footer {
  text-align: center;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .notes-home-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================
   Engineering Notes — per-product page card
   ============================================ */
.product-note-section {
  padding: 32px 0 48px;
}
.product-note-card {
  display: block;
  background: linear-gradient(135deg, var(--navy), #2A4170);
  color: #FFF;
  border-radius: 16px;
  padding: 28px 32px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.product-note-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 6px;
  background: var(--cyan);
}
.product-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}
.product-note-card-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.product-note-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
  color: #FFF;
}
.product-note-card-hook {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0 0 16px;
}
.product-note-card-cta {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .product-note-card { padding: 22px 22px; }
  .product-note-card-title { font-size: 1.05rem; }
}
