/* ==========================================================================
   web.ecomtechbd.com — Global design system
   Paper canvas, ink type, blue→violet brand accents. Every page template keeps
   its original class names; this file restyles them. The hh-* components at the
   bottom are the homepage building blocks and may be used on any page.
   Fonts (head.ejs): Bricolage Grotesque (display), Instrument Serif italic
   (accent), Inter (body). Icons: /css/icons.css (Phosphor subset).
   Bump the ?v= on the stylesheet link in partials/head.ejs after editing.
   ========================================================================== */

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

:root {
  --paper: #F6F4EE;
  --paper-2: #EEEAE0;
  --card: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #2B3240;
  --muted: #5C6675;
  --blue: #2563EB;
  --violet: #7C3AED;
  --mint: #10B981;
  --amber: #F59E0B;
  --line: rgba(14, 17, 22, 0.10);
  --line-strong: rgba(14, 17, 22, 0.20);

  /* legacy names used by older components / inline styles */
  --primary: var(--blue);
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --primary-bg: #EAF0FF;
  --accent: var(--violet);
  --accent-light: #8B5CF6;
  --secondary: var(--mint);
  --secondary-dark: #059669;
  --text: var(--ink);
  --text-light: #3B4351;
  --text-muted: var(--muted);
  --bg: var(--card);
  --bg-light: var(--paper-2);
  --bg-dark: var(--ink);
  --border: var(--line);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.05);
  --shadow-md: 0 16px 34px -18px rgba(14, 17, 22, 0.35);
  --shadow-lg: 0 34px 60px -34px rgba(14, 17, 22, 0.4);
  --shadow-glow: 0 30px 60px -30px rgba(14, 17, 22, 0.45);
  --max-width: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition: 0.3s var(--ease);
  --gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.14));
  --gradient-dark: linear-gradient(135deg, #1e40af 0%, #5b21b6 100%);

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}

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

/* Accessibility: links in content paragraphs must be distinguishable */
.article-content a, .article-content-wide a, .content-wrapper a, .callout a:not(.btn), .feature-list-card a,
.benefit-card a, .industry-card a, .compare-card a, .mistake-card a,
p a:not(.btn), .faq-answer a { text-decoration: underline; text-underline-offset: 3px; }
p a:not(.btn):hover, .article-content a:hover, .article-content-wide a:hover { text-decoration-thickness: 2px; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.hh-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue);
  padding-right: 0.06em;
}
.hh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-wordmark { display: block; height: 34px; width: auto; }
.ft-entity { display: block; margin-top: 6px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, 0.45); max-width: 640px; }
.ft-entity a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }
.ft-entity strong { color: rgba(255, 255, 255, 0.7); font-weight: 600; }
@media (max-width: 480px) { .logo-wordmark { height: 30px; } }
.logo-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-sub {
  font-family: var(--body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Nav */
.nav-list { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.93rem;
  border-radius: var(--r-pill);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--ink); background: rgba(14, 17, 22, 0.06); }

.nav-dropdown { position: relative; }
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.4;
  transition: transform var(--transition);
}
.nav-dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); opacity: 0.7; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(14, 17, 22, 0.35);
  padding: 8px;
  list-style: none;
  z-index: 100;
  animation: dropdownIn 0.2s ease;
}
.nav-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 8px; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 14px; color: var(--ink-2); font-size: 0.9rem; border-radius: 10px; transition: all var(--transition); }
.dropdown-menu a:hover { background: rgba(14, 17, 22, 0.06); color: var(--ink); }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--r-pill);
  transition: all var(--transition);
}
.header-cta:hover { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.7); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--transition); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0 0; }
.breadcrumb-list { display: flex; list-style: none; flex-wrap: wrap; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: '\203A'; margin: 0 6px 0 2px; color: var(--muted); }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--ink); }
.breadcrumb-item.active span { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 3px; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 17, 22, 0.6); }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(37, 99, 235, 0.7); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--card); color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.btn-secondary { background: var(--mint); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; display: inline-flex; margin-top: 8px; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-light { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 18px; }
.section p { line-height: 1.75; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; text-wrap: balance; }
.section-header p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.section-dark .section-header p { color: rgba(255, 255, 255, 0.65); }

.section-intro { margin-bottom: 28px; }
.section-intro h2 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; padding: 0; border: none !important; }
.section-intro p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 17, 22, 0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 70vw;
  height: 60vw;
  max-width: 900px;
  max-height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side at 40% 50%, rgba(37, 99, 235, 0.14), transparent 70%),
              radial-gradient(closest-side at 65% 45%, rgba(124, 58, 237, 0.12), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  font-weight: 800;
  max-width: 22ch;
  margin: 0 auto 18px;
  text-wrap: balance;
}
.page-hero p,
.page-hero .hero-subtitle {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 1.12rem;
  line-height: 1.65;
}
.page-hero .btn-group { margin-bottom: 8px; }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat { text-align: center; padding: 20px 36px; border-left: 1px solid var(--line); }
.hero-stat:first-child { border-left: 0; }
.hero-stat .stat-number { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.hero-stat .stat-label { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.hero-stats-bar { display: flex; gap: 40px; margin-top: 40px; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.trust-item svg { color: var(--mint); flex-shrink: 0; }

/* ---------- Cards (feature / related / benefit / industry / compare / mistake / feature-list) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature-card, .related-card, .benefit-card, .industry-card, .compare-card, .mistake-card, .feature-list-card, .step-card, .stat-highlight-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.feature-card:hover, .related-card:hover, .benefit-card:hover, .industry-card:hover, .compare-card:hover, .feature-list-card:hover, .step-card:hover, .stat-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.feature-card { padding: 30px; }
.feature-icon, .benefit-icon, .industry-icon, .feature-list-card .fl-icon, .stat-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: var(--gradient-soft);
  color: var(--blue);
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.feature-icon svg, .benefit-icon svg, .industry-icon svg, .fl-icon svg, .stat-highlight-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.related-card { display: block; padding: 28px; color: var(--ink); }
.related-card:hover { color: var(--ink); }
.related-card h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--ink); }
.related-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
a.related-card::after {
  content: "\2197";
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s var(--ease);
}
a.related-card:hover::after { color: var(--blue); transform: translate(2px, -2px); }

.template-count {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--r-pill);
}

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.benefit-card { display: flex; gap: 16px; align-items: flex-start; padding: 26px; }
.benefit-icon { width: 48px; height: 48px; min-width: 48px; margin: 0; border-radius: 14px; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.benefit-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; }

.icon-list { list-style: none; margin: 18px 0 24px; padding: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 0.97rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.icon-list li:last-child { border-bottom: none; }
.icon-list .list-icon { width: 24px; height: 24px; min-width: 24px; background: rgba(16, 185, 129, 0.14); color: var(--mint); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }

.industry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.industry-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; color: var(--ink); }
.industry-card:hover { color: var(--ink); }
.industry-icon { width: 46px; height: 46px; min-width: 46px; margin: 0; border-radius: 14px; font-size: 1.2rem; }
.industry-icon-blue { background: #EAF0FF; color: #2563EB; }
.industry-icon-purple { background: #F1EBFF; color: #7C3AED; }
.industry-icon-green { background: #E6F8F1; color: #10B981; }
.industry-icon-orange { background: #FFF1E3; color: #F97316; }
.industry-icon-red { background: #FDECEC; color: #EF4444; }
.industry-icon-teal { background: #E4F8F5; color: #14B8A6; }
.industry-icon-pink { background: #FBE9F2; color: #EC4899; }
.industry-icon-yellow { background: #FBF6DC; color: #CA9A04; }
.industry-icon-indigo { background: #EBEDFF; color: #6366F1; }
.industry-icon-cyan { background: #E3F7FA; color: #06B6D4; }
.industry-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.industry-card p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.55; }
.industry-card .industry-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.84rem; font-weight: 600; color: var(--blue); margin-top: 8px; }

.stats-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat-highlight-card { padding: 30px 24px; text-align: center; overflow: hidden; }
.stat-highlight-icon { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 12px; }
.stat-highlight-number { font-family: var(--display); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1.05; margin-bottom: 8px; }
.stat-highlight-card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.compare-card { padding: 26px; }
.compare-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 10px; }
.compare-card h3 svg { color: var(--blue); flex-shrink: 0; }
.compare-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin: 0; }

.feature-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.feature-list-card { padding: 22px; border-radius: var(--radius-lg); }
.feature-list-card .fl-icon { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 14px; }
.feature-list-card h3.card-title, .feature-list-card h4 { font-size: 1rem; margin-bottom: 6px; }
.feature-list-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin: 0; }

.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.mistake-card { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); }
.mistake-card:hover { border-color: #FCA5A5; }
.mistake-icon { width: 36px; height: 36px; min-width: 36px; background: #FDECEC; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #EF4444; }
.mistake-card h3.card-title, .mistake-card h4 { font-size: 1rem; margin-bottom: 4px; }
.mistake-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step-card { padding: 30px 28px 28px; text-align: left; }
.step-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  opacity: 0.45;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pricing-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px 28px;
  text-align: left;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pricing-grid-5 .pricing-card { padding: 30px 22px; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--ink); box-shadow: var(--shadow-glow); }
.pricing-card.popular::before {
  content: 'Most popular';
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.05rem; color: var(--muted); margin-bottom: 10px; }
.pricing-grid-5 .pricing-card h3 { font-size: 1rem; }
.pricing-card .price { font-family: var(--display); font-size: 2.9rem; font-weight: 800; letter-spacing: -0.045em; color: var(--ink); line-height: 1; margin: 6px 0 8px; }
.pricing-grid-5 .price { font-size: 2.3rem; }
.pricing-card .price span { font-family: var(--body); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.pricing-card .price-desc, .pricing-card .price-annual { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin: 0 0 26px; display: grid; gap: 9px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--ink-2); padding: 0; border: 0; }
.pricing-grid-5 .pricing-features li { font-size: 0.85rem; }
.pricing-features li::before { content: '\2713'; color: var(--mint); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-card .btn { margin-top: auto; width: 100%; }
.pricing-grid-5 .btn { padding: 12px 18px; font-size: 0.88rem; }
.pricing-annual-note { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.pricing-annual-note a { color: var(--ink); text-decoration: underline; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.25s; }
.faq-item:hover, .faq-item.active { border-color: var(--line-strong); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  transition: color 0.25s;
}
.faq-question:hover { color: var(--blue); }
.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-answer { display: none; padding: 0 22px 20px; color: var(--muted); line-height: 1.7; font-size: 0.96rem; }
.faq-item.active .faq-answer { display: block; }

/* ---------- Article / long-form content ---------- */
.article-content, .article-content-wide, .content-wrapper { margin: 0 auto; }
.article-content { max-width: 800px; }
.article-content-wide { max-width: 960px; }
.content-wrapper { max-width: 860px; }

.article-content h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.article-content h2, .article-content-wide h2, .content-wrapper h2 { font-size: 1.85rem; font-weight: 700; margin: 52px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-content h3, .article-content-wide h3, .content-wrapper h3 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.article-content h4, .article-content-wide h4, .content-wrapper h4 { font-size: 1.08rem; margin: 24px 0 10px; }
.article-content p, .article-content-wide p, .content-wrapper p { margin-bottom: 18px; color: var(--ink-2); font-size: 1.03rem; line-height: 1.8; }
.article-content ul, .article-content ol, .article-content-wide ul, .article-content-wide ol, .content-wrapper ul, .content-wrapper ol { margin: 0 0 18px 22px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.article-content li, .article-content-wide li, .content-wrapper li { margin-bottom: 8px; }
.article-content .section-intro + p { font-size: 1.05rem; line-height: 1.8; }
.article-content h3 svg { display: inline; vertical-align: -2px; margin-right: 8px; color: var(--blue); }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 28px; margin-bottom: 36px; }
.toc h4 { font-family: var(--body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 0.95rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--blue); }

.code-block { background: var(--ink); color: #E6E9EF; border-radius: var(--radius); padding: 22px; overflow-x: auto; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.85rem; line-height: 1.6; margin-bottom: 24px; }

.callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.callout p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--ink); }
.callout h3 { font-size: 1.1rem; margin: 0 0 8px; }
.callout .btn { margin-top: 14px; }
.callout-gradient { position: relative; overflow: hidden; background: var(--ink); border: 0; border-radius: var(--radius-lg); padding: 30px; color: #fff; }
.callout-gradient::before { content: ""; position: absolute; right: -20%; top: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.55), transparent 70%); filter: blur(24px); pointer-events: none; }
.callout-gradient > * { position: relative; }
.callout-gradient p { color: rgba(255, 255, 255, 0.85) !important; margin: 0; }
.callout-gradient strong { color: #fff; }
.callout-gradient h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.callout-gradient .btn { background: #fff; color: var(--ink); }
.callout-gradient .btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 28px; font-size: 0.92rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.comparison-table th { background: var(--paper-2); font-family: var(--body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: var(--paper); }

/* ---------- Closing CTA band (every inner page) ---------- */
.cta-section { padding: 16px 0 96px; text-align: center; color: #fff; }
.cta-section > .container {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  border-radius: var(--radius-xl);
  background: var(--ink);
}
.cta-section > .container::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -70%;
  height: 130%;
  background: radial-gradient(closest-side at 35% 50%, rgba(37, 99, 235, 0.6), transparent 70%),
              radial-gradient(closest-side at 70% 40%, rgba(124, 58, 237, 0.55), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}
.cta-section > .container > * { position: relative; }
.cta-section h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; text-wrap: balance; }
.cta-section p { color: rgba(255, 255, 255, 0.7); max-width: 560px; margin: 0 auto 30px; line-height: 1.6; }
.cta-section .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6); }
.cta-section .btn-primary:hover { background: var(--blue); color: #fff; }
.cta-section .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cta-section .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.contact-form-wrapper { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; }
.contact-form-wrapper h2 { font-size: 1.6rem; margin-bottom: 24px; }
.contact-info-wrapper { display: flex; flex-direction: column; gap: 16px; }
.contact-info-wrapper .feature-card { padding: 26px; }
.contact-info-wrapper .feature-card a { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 0.92rem; }
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; color: var(--ink-2); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; background: var(--card); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer (partials/footer.ejs) ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 72px 0 0;
  background: #0B0E14;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 36px 36px 0 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 80% 0%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 50% at 80% 0%, #000 10%, transparent 100%);
  pointer-events: none;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -35%;
  width: 55vw;
  height: 55vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(closest-side at 50% 50%, rgba(37, 99, 235, 0.32), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(124, 58, 237, 0.28), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer a { color: rgba(255, 255, 255, 0.68); transition: color 0.25s; }
.site-footer a:hover { color: #fff; }

.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 32px; padding-bottom: 48px; }
.ft-logo { margin-bottom: 18px; }
.ft-logo .logo-text { color: #fff; }
.ft-logo .logo-sub { color: rgba(255, 255, 255, 0.5); }
.ft-tagline { font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: #fff; margin: 0 0 22px; max-width: 22ch; letter-spacing: -0.01em; }
.ft-tagline .hh-serif { font-size: 1.15em; background: linear-gradient(120deg, #93B4FF, #C4A7FF); -webkit-background-clip: text; background-clip: text; }
.ft-contact { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 0.9rem; }
.ft-contact li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.68); }
.ft-contact i { color: #93B4FF; font-size: 1rem; }
.ft-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.ft-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.15rem; transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.ft-social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); color: #fff; }

.ft-heading { font-family: var(--body); color: #fff; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 16px; font-weight: 700; }
.ft-heading-more { margin-top: 26px; color: #93B4FF; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft-col a { display: inline-flex; align-items: center; gap: 5px; font-size: 0.92rem; }
.ft-col a i { font-size: 0.8em; opacity: 0.7; transition: transform 0.25s var(--ease); }
.ft-col a:hover i { transform: translate(2px, -1px); }

.ft-strip { list-style: none; margin: 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.09); border-bottom: 1px solid rgba(255, 255, 255, 0.09); display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 0.88rem; font-weight: 500; color: rgba(255, 255, 255, 0.78); }
.ft-strip li { display: inline-flex; align-items: center; gap: 9px; }
.ft-strip i { font-size: 1.25rem; color: #93B4FF; }

.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.ft-bottom p { margin: 0; }
.ft-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.ft-legal a { color: rgba(255, 255, 255, 0.6); }
.ft-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font: 600 0.8rem/1 var(--body);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.ft-top:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ft-top:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.6); outline-offset: 2px; }

.ft-mark {
  position: relative;
  z-index: 0;
  margin: 8px auto -0.22em;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5rem, 19vw, 17rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 96px 20px 110px; }
.page-404 h1 { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 14vw, 9rem); font-weight: 400; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.page-404 h2 { font-size: 1.7rem; margin-bottom: 12px; }
.page-404 p { color: var(--muted); margin-bottom: 30px; }

/* ---------- All pages directory ---------- */
.all-pages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 40px; }
.all-pages-col h3 { font-size: 1rem; margin-bottom: 12px; color: var(--ink); }
.all-pages-col ul { list-style: none; margin: 0; padding: 0; }
.all-pages-col li { margin-bottom: 6px; }
.all-pages-col a { font-size: 0.9rem; color: var(--muted); }
.all-pages-col a:hover { color: var(--blue); }

/* ==========================================================================
   Homepage components (hh-*) — usable on any page
   ========================================================================== */
main { overflow: hidden; }

.hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.hh-btn i { font-size: 1.1em; transition: transform 0.25s var(--ease); }
.hh-btn-ink { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 17, 22, 0.6); }
.hh-btn-ink:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(37, 99, 235, 0.7); }
.hh-btn-ink:hover .ph-arrow-right { transform: translateX(3px); }
.hh-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.hh-btn-ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.hh-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 3px; }

.hh-section { padding: 96px 0; position: relative; }
.hh-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.hh-head-left { margin-left: 0; text-align: left; }
.hh-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.hh-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hh-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin: 16px 0 14px; font-weight: 800; text-wrap: balance; }
.hh-head p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin: 0; }

/* Hero */
.hh-hero { position: relative; padding: 76px 0 0; }
.hh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 17, 22, 0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hh-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 55vw;
  height: 55vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.16), transparent 70%),
              radial-gradient(closest-side at 65% 60%, rgba(124, 58, 237, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hh-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.hh-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.hh-eyebrow i { color: var(--violet); font-size: 1rem; }
.hh-hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); font-weight: 800; margin: 24px 0 18px; text-wrap: balance; }
.hh-lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.hh-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
.hh-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hh-trust i { color: var(--mint); font-size: 1.05rem; }
.hh-hero-art { position: relative; }
.hh-hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 44px rgba(37, 99, 235, 0.16)); }
.hh-chip { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600; color: var(--ink); box-shadow: 0 16px 34px -14px rgba(14, 17, 22, 0.4); animation: hh-float 6.5s ease-in-out infinite; }
.hh-chip i { font-size: 1.35rem; color: var(--blue); }
.hh-chip-1 { top: 6%; left: -2%; }
.hh-chip-2 { top: 52%; right: -3%; animation-delay: -2.2s; }
.hh-chip-2 i { color: var(--violet); }
.hh-chip-3 { bottom: 4%; left: 6%; animation-delay: -4.4s; }
.hh-chip-3 i { color: var(--mint); }
@keyframes hh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hh-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hh-stat { padding: 24px 12px; text-align: center; border-left: 1px solid var(--line); }
.hh-stat:first-child { border-left: 0; }
.hh-stat b { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hh-stat span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

/* Marquee */
.hh-marquee { padding: 34px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hh-marquee-track { display: flex; gap: 12px; width: max-content; animation: hh-scroll 48s linear infinite; }
.hh-marquee:hover .hh-marquee-track { animation-play-state: paused; }
.hh-tag { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--ink-2); }
.hh-tag i { font-size: 1.3rem; color: var(--violet); }
@keyframes hh-scroll { to { transform: translateX(-50%); } }

/* Bento */
.hh-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.hh-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 270px; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.hh-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.hh-tile-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: auto; background: var(--gradient-soft); color: var(--blue); font-size: 1.75rem; }
.hh-tile h3 { font-size: 1.45rem; margin: 20px 0 8px; }
.hh-tile p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.6; max-width: 34ch; }
.hh-tile-7 { grid-column: span 7; }
.hh-tile-5 { grid-column: span 5; }
.hh-tile-4 { grid-column: span 4; }
.hh-tile-6 { grid-column: span 6; }
.hh-tile-img { position: absolute; right: -4%; top: -6%; width: min(48%, 330px); height: auto; pointer-events: none; filter: drop-shadow(0 22px 30px rgba(14, 17, 22, 0.14)); transition: transform 0.5s var(--ease); }
.hh-tile:hover .hh-tile-img { transform: translateY(-4px) rotate(-1.5deg); }
.hh-tile-has-img { padding-right: 38%; }
.hh-tile-4.hh-tile-has-img { padding-right: 30px; padding-top: 150px; }
.hh-tile-4 .hh-tile-img { width: 52%; right: -6%; top: -4%; }
.hh-tile-ink { background: var(--ink); border-color: transparent; }
.hh-tile-ink h3 { color: #fff; }
.hh-tile-ink p { color: rgba(255, 255, 255, 0.68); }
.hh-tile-ink .hh-tile-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hh-tile-ink::after { content: ""; position: absolute; right: -30%; top: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.55), transparent 70%); filter: blur(24px); pointer-events: none; }
.hh-mosaic { position: absolute; right: 0; top: 0; width: 58%; height: 66%; pointer-events: none; }
.hh-mosaic img { position: absolute; width: 62%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 16px 34px -14px rgba(14, 17, 22, 0.4); transition: transform 0.5s var(--ease); }
.hh-mosaic img:nth-child(1) { right: 6%; top: 10%; transform: rotate(6deg); }
.hh-mosaic img:nth-child(2) { right: 30%; top: 26%; transform: rotate(-5deg); }
.hh-mosaic img:nth-child(3) { right: 12%; top: 46%; transform: rotate(2deg); }
.hh-tile:hover .hh-mosaic img:nth-child(1) { transform: rotate(8deg) translateY(-4px); }
.hh-tile:hover .hh-mosaic img:nth-child(2) { transform: rotate(-7deg) translateY(-6px); }
.hh-tile:hover .hh-mosaic img:nth-child(3) { transform: rotate(3deg) translateY(-3px); }
.hh-tile-has-mosaic { padding-right: 44%; min-height: 300px; }

/* Steps */
.hh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hh-step { position: relative; padding: 34px 30px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hh-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hh-step-num { display: block; font-family: var(--serif); font-style: italic; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ink); opacity: 0.45; }
.hh-step > i { position: absolute; top: 30px; right: 30px; font-size: 2.2rem; color: var(--violet); }
.hh-step h3 { font-size: 1.4rem; margin: 22px 0 8px; }
.hh-step p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Template showcase (dark band) */
.hh-templates { background: var(--ink); color: #fff; padding: 96px 0 84px; position: relative; }
.hh-templates::before { content: ""; position: absolute; left: -10%; top: -30%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.35), transparent 70%); filter: blur(40px); pointer-events: none; }
.hh-templates .hh-head h2 { color: #fff; }
.hh-templates .hh-head p { color: rgba(255, 255, 255, 0.65); }
.hh-templates .hh-kicker { color: #A5B4FC; }
.hh-templates .hh-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }
.hh-templates .hh-head > div { max-width: 640px; }
.hh-templates .hh-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hh-templates .hh-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.hh-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 24px 28px; margin: 0 -24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; position: relative; }
.hh-shot { scroll-snap-align: start; display: block; background: #151A24; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); overflow: hidden; color: #fff; transition: transform 0.35s var(--ease), border-color 0.35s; }
.hh-shot:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.hh-shot-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hh-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.hh-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hh-shot-meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.hh-shot-meta b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.hh-shot-meta span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
/* Light variant of the showcase (paper background, e.g. /templates) */
.hh-templates-light { background: transparent; color: var(--ink); }
.hh-templates-light::before { display: none; }
.hh-templates-light .hh-head h2 { color: var(--ink); }
.hh-templates-light .hh-head p { color: var(--muted); }
.hh-templates-light .hh-kicker { color: var(--blue); }
.hh-templates-light .hh-btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.hh-templates-light .hh-btn-ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.hh-templates-light .hh-scroller { scrollbar-color: rgba(14, 17, 22, 0.25) transparent; }
.hh-templates-light .hh-shot { background: var(--card); border-color: var(--line); color: var(--ink); }
.hh-templates-light .hh-shot:hover { border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-lg); }
.hh-templates-light .hh-shot-bar { border-bottom-color: var(--line); }
.hh-templates-light .hh-shot-bar i { background: var(--line-strong); }
.hh-templates-light .hh-shot-meta span { color: var(--muted); }

/* Plans */
.hh-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.hh-plan { position: relative; display: flex; flex-direction: column; padding: 32px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.hh-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hh-plan-pop { border-color: var(--ink); box-shadow: var(--shadow-glow); }
.hh-plan-badge { position: absolute; top: -13px; left: 30px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hh-plan h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; color: var(--muted); }
.hh-plan-price { font-family: var(--display); font-size: 3rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
.hh-plan-price small { font-family: var(--body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.hh-plan-note { margin: 8px 0 22px; font-size: 0.86rem; color: var(--muted); min-height: 1.3em; }
.hh-plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; font-size: 0.95rem; color: var(--ink-2); }
.hh-plan li { display: flex; align-items: flex-start; gap: 10px; }
.hh-plan li i { color: var(--mint); margin-top: 3px; flex: none; }
.hh-plan .hh-btn { margin-top: auto; justify-content: center; }
.hh-plans-foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.hh-plans-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hh-plans-foot a:hover { color: var(--blue); }

/* Native-details FAQ */
.hh-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.hh-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color 0.25s; }
.hh-faq details[open] { border-color: var(--line-strong); }
.hh-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.hh-faq summary::-webkit-details-marker { display: none; }
.hh-faq summary i { flex: none; color: var(--blue); font-size: 1.1rem; transition: transform 0.3s var(--ease); }
.hh-faq details[open] summary i { transform: rotate(45deg); }
.hh-faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }

/* Final CTA box */
.hh-cta { padding: 0 0 96px; }
.hh-cta-box { position: relative; overflow: hidden; padding: 78px 40px; border-radius: var(--radius-xl); background: var(--ink); color: #fff; text-align: center; }
.hh-cta-box::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -70%; height: 130%; background: radial-gradient(closest-side at 35% 50%, rgba(37, 99, 235, 0.6), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(124, 58, 237, 0.55), transparent 70%); filter: blur(34px); pointer-events: none; }
.hh-cta-box > * { position: relative; }
.hh-rating { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.hh-rating i { color: var(--amber); }
.hh-cta-box h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 18px 0 12px; font-weight: 800; }
.hh-cta-box p { max-width: 520px; margin: 0 auto 30px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.hh-cta-box .hh-actions { justify-content: center; margin: 0; }
.hh-cta-box .hh-btn-ink { background: #fff; color: var(--ink); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6); }
.hh-cta-box .hh-btn-ink:hover { background: var(--blue); color: #fff; }
.hh-cta-box .hh-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hh-cta-box .hh-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

/* Scroll reveal (only when JS has added .hh-js to <html>) */
.hh-js .hh-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.hh-js .hh-reveal.is-in { opacity: 1; transform: none; }
.hh-js .hh-reveal:nth-child(2) { transition-delay: 0.07s; }
.hh-js .hh-reveal:nth-child(3) { transition-delay: 0.14s; }
.hh-js .hh-reveal:nth-child(4) { transition-delay: 0.21s; }
.hh-js .hh-reveal:nth-child(5) { transition-delay: 0.28s; }
.hh-js .hh-reveal:nth-child(6) { transition-delay: 0.35s; }
.hh-js .hh-reveal:nth-child(7) { transition-delay: 0.42s; }

/* ==========================================================================
   Pricing page (pr-*) — views/pages/pricing.ejs
   ========================================================================== */
.pr-hero .hh-kicker { justify-content: center; margin-bottom: 4px; }
.pr-hero h1 { margin-top: 12px; }
.pr-hero p { max-width: 640px; }
.pr-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0 22px; }
.pr-toggle { display: inline-flex; padding: 4px; gap: 2px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-pill); }
.pr-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font: 600 0.9rem/1 var(--body);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.pr-toggle button:hover { color: var(--ink); }
.pr-toggle button.is-on { background: var(--ink); color: #fff; }
.pr-toggle button em { font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(16, 185, 129, 0.16); color: #0B7A57; }
.pr-toggle button.is-on em { background: rgba(255, 255, 255, 0.16); color: #B9F6DC; }
.pr-toggle button:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; }
.pr-trust { justify-content: center; }

.pr-plans-section { padding: 8px 0 32px; }
.pr-plans-section .hh-plan-price .pr-per { font-family: var(--body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.pr-enterprise-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.pr-enterprise .hh-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.pr-enterprise .hh-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.pr-enterprise strong { color: #fff; }

.pr-enterprise {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 34px 36px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
}
.pr-enterprise::before { content: ""; position: absolute; right: -10%; top: -80%; width: 45%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(124, 58, 237, 0.55), transparent 70%); filter: blur(30px); pointer-events: none; }
.pr-enterprise > * { position: relative; }
.pr-enterprise .hh-kicker { color: #A5B4FC; }
.pr-enterprise h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 10px 0 8px; }
.pr-enterprise p { color: rgba(255, 255, 255, 0.68); max-width: 620px; margin: 0; font-size: 0.97rem; }
.pr-enterprise .hh-btn-ink { flex: none; background: #fff; color: var(--ink); }
.pr-enterprise .hh-btn-ink:hover { background: var(--blue); color: #fff; }

.pr-includes-section { padding: 72px 0 40px; }
.pr-includes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pr-includes li { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pr-includes i { font-size: 1.7rem; color: var(--blue); margin-bottom: 6px; }
.pr-includes b { font-family: var(--display); font-size: 1rem; font-weight: 700; }
.pr-includes span { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

.pr-table th[scope="row"] { background: transparent; text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.pr-table td { text-align: center; }
.pr-table thead th:not(:first-child) { text-align: center; }
.pr-t-yes { color: var(--mint); font-size: 1rem; }
.pr-t-no { color: var(--line-strong); }
.section-header .hh-kicker { justify-content: center; margin-bottom: 2px; }

@media (max-width: 1024px) {
  .pr-includes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .pr-enterprise { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .pr-includes { grid-template-columns: repeat(2, 1fr); }
  .pr-controls { gap: 10px; }
  .pr-toggle button { padding: 9px 12px; font-size: 0.85rem; }
}
@media (max-width: 560px) {
  .pr-includes { grid-template-columns: 1fr; }
  .pr-enterprise-actions .hh-btn { width: 100%; justify-content: center; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hh-chip, .hh-marquee-track { animation: none; }
  .hh-marquee { -webkit-mask-image: none; mask-image: none; }
  .hh-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .hh-marquee-track [aria-hidden="true"] { display: none; }
  .hh-js .hh-reveal { opacity: 1; transform: none; transition: none; }
  .btn, .hh-btn, .hh-tile, .hh-step, .hh-plan, .hh-shot, .feature-card, .related-card, .pricing-card, .step-card { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pricing-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hh-hero h1 { max-width: 16ch; }
  .hh-hero-art { max-width: 640px; margin: 0 auto; }
  .hh-bento { grid-template-columns: repeat(6, 1fr); }
  .hh-tile-7, .hh-tile-5, .hh-tile-6 { grid-column: span 6; }
  .hh-tile-4 { grid-column: span 3; }
  .hh-steps, .hh-plans { grid-template-columns: 1fr 1fr; }
  .hh-section { padding: 80px 0; }
  .features-grid, .related-grid, .feature-list-grid, .stats-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-bar { justify-content: center; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px; }
  .nav-menu.active { display: block; }
  .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-link { padding: 12px 16px; border-radius: 10px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; display: none; animation: none; }
  .nav-dropdown::after { display: none; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.active .dropdown-menu { display: block; }
  .header-cta-wrap { display: none; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.9rem; }

  .page-hero { padding: 36px 0 48px; }
  .page-hero h1 { font-size: 2.1rem; }
  .page-hero p, .page-hero .hero-subtitle { font-size: 1.02rem; }
  .hero-stats { margin-top: 32px; }
  .hero-stat { padding: 16px 18px; flex: 1 1 45%; border-top: 1px solid var(--line); }
  .hero-stat:nth-child(-n + 2) { border-top: 0; }
  .hero-stat:nth-child(odd) { border-left: 0; }
  .hero-stat .stat-number { font-size: 1.5rem; }
  .hero-stats-bar { flex-wrap: wrap; gap: 24px; }

  .features-grid, .related-grid, .benefit-grid, .industry-grid, .compare-grid, .feature-list-grid, .mistake-grid { grid-template-columns: 1fr; }
  .stats-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-highlight-number { font-size: 2.2rem; }
  .pricing-grid, .pricing-grid-5 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-wrapper { padding: 24px; }
  .site-footer { border-radius: 24px 24px 0 0; padding-top: 52px; }
  .ft-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .ft-brand { grid-column: span 2; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .trust-items { gap: 20px; }
  .article-content h1 { font-size: 1.9rem; }
  .article-content h2, .article-content-wide h2, .content-wrapper h2 { font-size: 1.45rem; margin-top: 40px; }
  .section-intro h2 { font-size: 1.5rem; }
  .cta-section { padding-bottom: 64px; }
  .cta-section > .container { padding: 52px 24px; }
  .page-404 { padding: 64px 16px 80px; }

  .hh-hero { padding-top: 44px; }
  .hh-hero::after { display: none; }
  .hh-stats { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .hh-stat { border-top: 1px solid var(--line); }
  .hh-stat:nth-child(-n + 2) { border-top: 0; }
  .hh-stat:nth-child(3) { border-left: 0; }
  .hh-chip { font-size: 0.78rem; padding: 8px 12px 8px 10px; }
  .hh-chip-1 { left: 0; }
  .hh-chip-2 { right: 0; }
  .hh-tile-4 { grid-column: span 6; }
  .hh-tile-has-img { padding-right: 30px; padding-top: 150px; }
  .hh-tile-img, .hh-tile-4 .hh-tile-img { width: 44%; right: -4%; top: -2%; }
  .hh-tile-has-mosaic { padding-right: 30px; padding-top: 190px; }
  .hh-mosaic { width: 70%; height: 190px; }
  .hh-steps, .hh-plans { grid-template-columns: 1fr; }
  .hh-section { padding: 64px 0; }
  .hh-templates { padding: 64px 0 56px; }
  .hh-cta { padding-bottom: 64px; }
  .hh-cta-box { padding: 56px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .page-hero h1 { font-size: 1.9rem; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-brand { grid-column: auto; }
  .ft-strip { gap: 10px 20px; }
  .stats-highlight-grid { grid-template-columns: 1fr; }
  .benefit-card, .industry-card, .mistake-card { flex-direction: column; }
  .all-pages-grid { grid-template-columns: 1fr; }
  .hh-hero h1 { font-size: 2.45rem; }
  .hh-lead { font-size: 1.05rem; }
  .hh-actions .hh-btn { width: 100%; justify-content: center; }
  .hh-chip-3 { display: none; }
  .hh-head h2 { font-size: 1.95rem; }
  .hh-tile { padding: 24px; }
  .hh-tile h3 { font-size: 1.3rem; }
}
@media (max-width: 768px) and (min-width: 481px) {
  .all-pages-grid { grid-template-columns: repeat(2, 1fr); }
}
