/* =====================================================
   ORIGIN SOFTWARE — Editorial Enterprise Design System
   Primary serif: Crimson Pro
   Primary sans:  Inter Tight
   ===================================================== */

:root {
  --ink:          #0B1328;
  --ink-2:        #0E1932;
  --ink-3:        #1A2545;
  --cream:        #F5F2EC;
  --paper:        #FAF8F4;
  --bone:         #ECE7DD;
  --fog:          #E4E1D8;
  --text:         #14203D;
  --text-muted:   #586179;
  --text-soft:    #8A8F9E;
  --accent:       #C2502D;
  --accent-warm:  #D4A05A;
  --line:         rgba(20, 32, 61, 0.10);
  --line-strong:  rgba(20, 32, 61, 0.18);

  --serif: 'Crimson Pro', 'Times New Roman', Georgia, serif;
  --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(12,20,45,0.04), 0 24px 48px -24px rgba(12,20,45,0.18);
  --shadow-cta:  0 14px 32px -14px rgba(11,19,40,0.55);

  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
sup { font-size: 0.55em; vertical-align: super; margin-left: 1px; letter-spacing: 0.02em; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 40, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--cream);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6); }

.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 242, 236, 0.82);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.005em;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover,
.nav__item.is-active > .nav__link {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}
.nav__chev {
  font-size: 11px;
  opacity: 0.7;
  transform: translateY(-1px);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #0E1932;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  min-width: 260px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  list-style: none;
  margin: 0;
}
/* Invisible bridge that closes the 6px gap between the nav item and the
   dropdown so hover doesn't drop while the cursor is mid-traverse. */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav__dropdown li { display: block; }
.nav__dropdown a,
.nav__dropdown-section > a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: rgba(245, 242, 236, 0.82);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav__dropdown a:hover,
.nav__dropdown-section > a:hover { background: rgba(255, 255, 255, 0.06); color: var(--cream); }

.nav__dropdown-section {
  padding: 6px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__dropdown-section:first-child { border-top: 0; }
.nav__dropdown-section > a {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
}
.nav__dropdown-section ul {
  padding: 2px 0 4px;
  list-style: none;
  margin: 0;
}
.nav__dropdown-section ul a {
  padding: 6px 12px 6px 20px;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.7);
}

.nav__item.has-menu:hover > .nav__dropdown,
.nav__item.has-menu:focus-within > .nav__dropdown,
.nav__item.has-menu.is-open > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  padding: 9px 18px;
  border: 1px solid rgba(245, 242, 236, 0.3);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 242, 236, 0.35);
}
.btn--ghost:hover { background: rgba(245, 242, 236, 0.08); border-color: rgba(245, 242, 236, 0.6); }

.btn--dark {
  background: var(--ink);
  color: var(--cream);
  padding: 15px 30px;
  font-size: 15px;
}
.btn--dark:hover { background: var(--ink-3); transform: translateY(-1px); color: var(--cream); }

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

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0B1328 0%, #0E1932 55%, #142148 100%);
  color: var(--cream);
  /* overflow is visible so the device image can spill into the section below */
  overflow: visible;
  min-height: 480px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;   /* still contain the glow + grid mask */
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 75%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.hero__glow--a { width: 520px; height: 520px; background: #3a5ba8; top: -120px; right: -80px; }
.hero__glow--b { width: 380px; height: 380px; background: var(--accent); bottom: -140px; left: 20%; opacity: 0.18; }

.hero__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  min-height: 480px;
}

.hero__copy { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.65);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 28px;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: #DCC39A;
}

.hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.78);
  max-width: 440px;
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  z-index: 3;
  align-self: end;
  margin-bottom: -120px;       /* let the device image spill below the navy */
  animation: float 9s ease-in-out infinite;
}
.hero__visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 100px 0 80px;
  background: var(--paper);
  position: relative;
}
.section-head {
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  row-gap: 12px;
  align-items: baseline;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  grid-column: 1 / 2;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  grid-column: 2 / 3;
}
.section-sub {
  grid-column: 2 / 3;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
}

.cat-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cat-title:first-of-type { margin-top: 0; }
.cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section--products {
  padding-top: 140px;   /* room for the hero image that spills down */
}
.section--products::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* =====================================================
   CARDS
   ===================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
  min-height: 220px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}

.card__copy { position: relative; z-index: 2; }
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 4px;
}
.card__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 28ch;
  margin: 0 0 18px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.25s, color 0.2s, border-color 0.2s;
}
.card__link span { transition: transform 0.25s; }
.card__link:hover { color: var(--accent); border-color: var(--accent); }
.card__link:hover span { transform: translateX(3px); }

.card__art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__art svg { width: 100%; height: auto; }
.card__art--viewerfx svg,
.card__art--commission svg { transform: translateX(8px); }

/* Simple feature cards (4-up) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.feature__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
}
.feature__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================
   METRICS
   ===================================================== */
.metrics {
  background: var(--bone);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.metric { text-align: center; }
.metric__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}
.metric__num span {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}
.metric__num--text { font-size: clamp(26px, 3vw, 38px); }
.metric__lbl {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.metric__divider {
  width: 1px;
  height: 60px;
  background: var(--line-strong);
  justify-self: center;
}

/* =====================================================
   NEWS / ARTICLES
   ===================================================== */
.news {
  padding: 80px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.article-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block;
}
.article-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.article-preview__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-preview__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 12px;
}
.article-preview__more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =====================================================
   TESTIMONIAL
   ===================================================== */
.testimonial {
  padding: 100px 0 80px;
  text-align: center;
  background: var(--paper);
}
.testimonial__quote {
  width: 44px;
  height: 34px;
  color: var(--accent-warm);
  opacity: 0.5;
  margin: 0 auto 28px;
}
.testimonial__stage {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto 28px;
}
.testimonial__text {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.testimonial__text.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonial__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.testimonial__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.testimonial__dot:hover { border-color: var(--ink); }
.testimonial__dot.is-active {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.15);
}
.testimonial__dot:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}

/* =====================================================
   CTA / CALLOUT
   ===================================================== */
.cta {
  padding: 80px 0 100px;
  background: var(--paper);
}
.cta__inner {
  text-align: center;
  position: relative;
}
.cta__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
  margin: 0 auto 56px;
  max-width: 480px;
}
.cta__rule:last-child { margin: 56px auto 0; }
.cta__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 36px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(245, 242, 236, 0.72);
  padding: 80px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer__brand-block { color: var(--cream); }
.footer__brand-block .nav__brand { margin-bottom: 18px; }
.footer__blurb {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 18px 0 22px;
  color: rgba(245, 242, 236, 0.72);
}
.footer__social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(245, 242, 236, 0.55);
  transition: color 0.15s, transform 0.15s;
}
.footer__social a:hover { color: var(--cream); transform: translateY(-1px); }
.footer__social svg { width: 100%; height: 100%; }

.footer__col h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(245, 242, 236, 0.72);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--cream); }

.footer__base {
  border-top: 1px solid rgba(245, 242, 236, 0.1);
  padding: 22px 0;
}
.footer__base-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245, 242, 236, 0.5);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__base-inner ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__base-inner a { color: rgba(245, 242, 236, 0.5); transition: color 0.15s; }
.footer__base-inner a:hover { color: var(--cream); }

/* =====================================================
   SCROLL-TO-TOP BUTTON
   Fixed bottom-right; hidden until the page is scrolled
   past the threshold (set in site.js).
   ===================================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(11, 19, 40, 0.32),
    0 2px 6px rgba(11, 19, 40, 0.20),
    inset 0 0 0 1px rgba(11, 19, 40, 0.06);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s, box-shadow 0.15s;
  z-index: 60;
}
.scroll-top svg {
  width: 20px;
  height: 20px;
  display: block;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--bone);
  box-shadow:
    0 12px 28px rgba(11, 19, 40, 0.38),
    0 3px 8px rgba(11, 19, 40, 0.24),
    inset 0 0 0 1px rgba(11, 19, 40, 0.08);
  transform: translateY(-2px);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* =====================================================
   GENERIC PAGE HERO (About, future inner pages)
   ===================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, #0B1328 0%, #0E1932 55%, #142148 100%);
  color: var(--cream);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 20% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, black 20%, transparent 75%);
}
.page-hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: #3a5ba8;
  filter: blur(90px);
  opacity: 0.28;
  top: -120px;
  right: -40px;
}
.page-hero__inner {
  position: relative;
  /* Same rail as .editorial__container so the hero text shares
     a left edge with the article body sections below. */
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 480px;
}

.page-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.page-hero__art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}
.page-hero__art svg { width: 100%; height: auto; display: block; }

.page-hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
  margin: 0 0 24px;
}
.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 20px;
}
.page-hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.78);
  margin: 0;
}

/* Optional actions slot — search forms, CTAs, etc. injected by the page. */
.page-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 32px;
}
.page-hero__actions > .btn {
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 24px 72px;
    min-height: auto;
  }
  /* Image stacks above text on tablet/mobile (matches old support behavior) */
  .page-hero__art {
    order: -1;
    justify-self: center;
    max-width: 340px;
    margin: -40px auto -10px;
  }
}

@media (max-width: 540px) {
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions > .btn { width: 100%; justify-content: center; }
}

/* =====================================================
   EDITORIAL ARTICLE LAYOUT (About page)
   Single left-anchored content axis. Body copy and headings
   share a 680px reading column; grids start at the same left
   edge but extend wider to the right.
   ===================================================== */
.editorial {
  background: var(--paper);
}

.editorial__container {
  /* Inherits .container's max-width and side padding,
     so every section anchors to the same left edge. */
  max-width: 1320px;
}

.editorial__section {
  padding: 80px 0;
}
.editorial__section--first { padding-top: 100px; padding-bottom: 0; }
.editorial__section--last { padding-bottom: 120px; }
.editorial__section--bone { background: var(--bone); }

/* Header block sits above grids; body block holds prose */
.editorial__header,
.editorial__block {
  max-width: 680px;
  margin: 0;             /* no centering — left-anchored */
  text-align: left;
}

.editorial__header { margin-bottom: 48px; }

.editorial__overline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 18px;
  display: block;
}

.editorial__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 22px;
  text-align: left;
}

.editorial__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 680px;
}

.editorial__block p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.editorial__block p:last-child { margin-bottom: 0; }
.editorial__block strong { color: var(--text); font-weight: 600; }
.editorial__block em { font-style: italic; color: var(--text); }
.editorial__block a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.editorial__block a:hover { border-bottom-color: var(--accent); }

/* Grids share the same left edge as the header above them
   and may extend wider to the right (full container width). */
.editorial__grid {
  margin: 0;
}

/* Multi-button row (e.g. Get in touch + Explore services) */
.editorial__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 540px) {
  .editorial__cta-row { flex-direction: column; align-items: stretch; }
  .editorial__cta-row .btn { justify-content: center; }
}

/* Quiet footnote line beneath a CTA — e.g. "Or email sales@..." */
.editorial__footnote {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.editorial__footnote a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}
.editorial__footnote a:hover { border-bottom-color: var(--accent); }

/* =====================================================
   EDITORIAL PROSE HELPERS (sub-headings, lists)
   ===================================================== */
.editorial__subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 28px 0 10px;
}
.editorial__subhead:first-child { margin-top: 0; }

.editorial__list {
  margin: 8px 0 16px;
  padding: 0 0 0 22px;
  list-style: disc;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
}
.editorial__list li { margin: 4px 0; }
.editorial__list strong { color: var(--text); font-weight: 600; }
.editorial__list a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}
.editorial__list a:hover { border-bottom-color: var(--accent); }

/* =====================================================
   PRICING CARDS (Buy page)
   ===================================================== */
.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.pricing-card--featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(11, 19, 40, 0.45);
}
.pricing-card--featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px -20px rgba(11, 19, 40, 0.55);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-warm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: inherit;
}
.pricing-card__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  flex: 1;
}
.pricing-card--featured .pricing-card__features { color: rgba(245, 242, 236, 0.85); }
.pricing-card:not(.pricing-card--featured) .pricing-card__features { color: var(--text-muted); }
.pricing-card__features li { padding: 6px 0; }
.pricing-card__divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 22px;
}
.pricing-card--featured .pricing-card__divider { background: rgba(245, 242, 236, 0.18); }
.pricing-card__price {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pricing-card__amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: inherit;
}
.pricing-card__period {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.pricing-card--featured .pricing-card__period { color: rgba(245, 242, 236, 0.65); }
.pricing-card__cta {
  align-self: stretch;
  justify-content: center;
}
.pricing-card--featured .pricing-card__cta {
  background: var(--cream);
  color: var(--ink);
}
.pricing-card--featured .pricing-card__cta:hover { background: #fff; color: var(--ink); }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-2px); }
}

/* =====================================================
   STEPS LIST (Install, Register, etc.)
   ===================================================== */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.steps__item {
  counter-increment: steps;
  position: relative;
  padding: 28px 0 28px 64px;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.steps__item:first-child { border-top: 0; padding-top: 0; }
.steps__item:last-child { padding-bottom: 0; }
.steps__item::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--accent-warm);
  letter-spacing: 0.02em;
}
.steps__item:first-child::before { top: 0; }
.steps__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
}
.steps__body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 540px) {
  .steps__item { padding-left: 48px; }
  .steps__item::before { font-size: 18px; }
}

/* =====================================================
   RELEASE LIST (History page)
   ===================================================== */
.release-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.release {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.release:first-child { border-top: 0; padding-top: 0; }
.release:last-child { padding-bottom: 0; }
.release__version {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
}
.release__notes {
  list-style: disc;
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.release__notes li { margin: 4px 0; }
.release__notes strong {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* "Step X" small label inside .feature card on Buy page step grid */
.feature__step {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 12px;
}
.feature__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.feature__link span { transition: transform 0.25s; }
.feature__link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.feature__link:hover span { transform: translateX(3px); }

/* Trial form inside register page (visual hint that it's a form, not steps) */
.trial-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
}

@media (max-width: 540px) {
  .trial-form { padding: 24px; }
}

/* =====================================================
   PRODUCT DETAIL PAGE PARTS
   ===================================================== */

/* Section 1 hero shot — single screenshot, full container width */
.product-shot {
  margin: 48px 0;
}
.product-shot img {
  display: block;
  height: auto;
}

/* Comparison table — clean editorial, navy header, hairline rows */
.comparison-table {
  margin-top: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
}
.comparison-table thead th {
  background: var(--ink);
  color: var(--cream);
  text-align: left;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 22px;
  vertical-align: middle;
}
.comparison-table thead th:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.comparison-table tbody th {
  background: var(--paper);
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 18px 22px;
  vertical-align: top;
  width: 22%;
  border-right: 1px solid var(--line);
}
.comparison-table tbody td {
  padding: 18px 22px;
  vertical-align: top;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.comparison-table tbody td:last-child { border-right: 0; }
.comparison-table tbody tr + tr th,
.comparison-table tbody tr + tr td { border-top: 1px solid var(--line); }

/* Category divider rows (e.g. "Report Data", "Database Logon") */
.comparison-table__group th {
  background: var(--cream) !important;
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  padding: 14px 22px !important;
  border-right: 0 !important;
  width: auto !important;
  border-bottom: solid 1px var(--line);
}
.comparison-table tbody tr.comparison-table__group + tr th,
.comparison-table tbody tr.comparison-table__group + tr td { border-top: 0; }
.comparison-table tbody tr.comparison-table__group th { border-top: 1px solid var(--line-strong); }
.comparison-table tbody tr.comparison-table__group:first-child th { border-top: 0; }

/* Horizontal scroll wrapper for narrow viewports — keeps the table layout intact */
.comparison-table--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table--scroll table { min-width: 640px; }

@media (max-width: 720px) {
  .comparison-table { border-radius: var(--radius-md); }
  .comparison-table table { font-size: 14px; }
  .comparison-table thead th,
  .comparison-table tbody th,
  .comparison-table tbody td { padding: 14px 16px; }
  .comparison-table tbody th { width: 30%; font-size: 11px; }
  .comparison-table__group th { padding: 12px 16px !important; }
}

/* Screenshot gallery — small grid of figures with captions */
.screenshot-gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.screenshot-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screenshot-gallery__item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.screenshot-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.screenshot-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}
.screenshot-gallery__item figcaption {
  padding: 14px 18px 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .screenshot-gallery { grid-template-columns: 1fr 1fr; }
  .screenshot-gallery__item:nth-child(3) { grid-column: span 2; }
  .screenshot-gallery--two .screenshot-gallery__item:nth-child(3) { grid-column: auto; }
}
@media (max-width: 540px) {
  .screenshot-gallery { grid-template-columns: 1fr; }
  .screenshot-gallery__item:nth-child(3) { grid-column: auto; }
}

/* Download cards (Section 6 on product pages) */
.download-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.download-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.download-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.download-card__btn {
  align-self: flex-start;
  margin-top: 6px;
}
.download-card__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 720px) {
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 26px; }
}

/* FAQ — definition list with serif questions, sans answers */
.faq-list {
  margin-top: 48px;
  display: block;
}
.faq-list__q {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.faq-list__q:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.faq-list__a {
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
}
.faq-list__a:last-of-type { margin-bottom: 0; }

/* =====================================================
   FEATURE GRID — 3-up modifier
   ===================================================== */
.feature-grid--three { grid-template-columns: repeat(3, 1fr); }
.feature-grid--two   { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .feature-grid--three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .feature-grid--three,
  .feature-grid--two   { grid-template-columns: 1fr; }
}

/* =====================================================
   PRODUCT STRIP (compact 4-up portfolio row)
   ===================================================== */
.product-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-strip__item {
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
  transition: background 0.25s, transform 0.25s;
}
.product-strip__item:last-child { border-right: 0; }
.product-strip__item:hover { background: var(--paper); }
.product-strip__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.product-strip__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 10px;
  flex: 1;
}
.product-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: auto;
}
.product-strip__cta span { transition: transform 0.25s; }
.product-strip__item:hover .product-strip__cta { color: var(--accent); }
.product-strip__item:hover .product-strip__cta span { transform: translateX(3px); }

@media (max-width: 960px) {
  .product-strip { grid-template-columns: repeat(2, 1fr); }
  .product-strip__item:nth-child(2) { border-right: 0; }
  .product-strip__item:nth-child(1),
  .product-strip__item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .product-strip { grid-template-columns: 1fr; }
  .product-strip__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-strip__item:last-child { border-bottom: 0; }
}

/* =====================================================
   SECTION TONE MODIFIERS
   ===================================================== */
.section--bone-soft { background: var(--bone); }

/* =====================================================
   SUPPORT PAGE
   .support-hero/* selectors removed — the support hero
   now uses the shared `_pagehero` partial. .support-search
   below is preserved as a self-contained search component
   (currently used inside the partial's actions slot).
   ===================================================== */
.support-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  transition: background 0.2s, border-color 0.2s;
}
.support-search:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 242, 236, 0.4);
}
.support-search__icon {
  width: 18px;
  height: 18px;
  color: rgba(245, 242, 236, 0.6);
  flex-shrink: 0;
}
.support-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
}
.support-search input::placeholder { color: rgba(245, 242, 236, 0.55); }

/* --- Support body layout --- */
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.support-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}
.support-subheading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 40px 0 14px;
}
.support-lede,
.support-body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.support-lede strong,
.support-body strong { color: var(--text); font-weight: 600; }
.support-body em { font-style: italic; color: var(--text); }

/* Inline links inside support body copy */
.support-main a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.support-main a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.support-aside { position: sticky; top: calc(var(--nav-height) + 32px); }
.support-aside__card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.support-aside__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 14px;
}
.support-aside__card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.support-aside__card a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.support-aside__card a:hover { border-bottom-color: var(--accent); }
.support-aside__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink) !important;
}
.support-aside__link span { transition: transform 0.25s; }
.support-aside__link:hover span { transform: translateX(3px); }

.section-head--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head--centered .eyebrow,
.section-head--centered .section-title,
.section-head--centered .section-sub {
  grid-column: 1 / -1;
  text-align: center;
}

/* --- Resource grid --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.resource-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
  flex-shrink: 0;
}
.resource-card__icon svg { width: 26px; height: 26px; }
.resource-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 6px;
}
.resource-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.resource-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
.resource-card__cta span { transition: transform 0.25s; }
.resource-card:hover .resource-card__cta { color: var(--accent); border-color: var(--accent); }
.resource-card:hover .resource-card__cta span { transform: translateX(3px); }

@media (max-width: 960px) {
  .support-layout { grid-template-columns: 1fr; gap: 32px; }
  .support-aside { position: static; }
  .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .resource-card { grid-template-columns: 1fr; text-align: left; }
}

/* =====================================================
   CONTACT PAGE — form + sidebar layout
   ===================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.contact-layout__form { min-width: 0; }
.contact-layout__aside {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-layout__aside { position: static; }
}

/* ----- Form fields ----- */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form__row {
  display: grid;
  gap: 22px;
}
.form__row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .form__row--two { grid-template-columns: 1fr; gap: 22px; }
}

.form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form__field--captcha { gap: 6px; }

.form__label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.form__required {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.form__optional {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-soft); }
.form__input:hover { border-color: rgba(20, 32, 61, 0.32); }
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 19, 40, 0.08);
}
.form__textarea { resize: vertical; min-height: 140px; font-family: var(--sans); }

/* Custom select with chevron */
.form__select-wrap { position: relative; }
.form__select { padding-right: 40px; cursor: pointer; }
.form__select-chev {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px;
  height: 8px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.form__select:focus + .form__select-chev { color: var(--ink); }

/* Inline validation */
.form__error {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  min-height: 0;
  letter-spacing: 0.01em;
}
.form__error:empty { display: none; }
.input-validation-error,
.form__input.input-validation-error,
.form__textarea.input-validation-error,
.form__select.input-validation-error {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 80, 45, 0.08);
}

.form__summary {
  display: none;
}
.form__summary.validation-summary-errors {
  display: block;
  padding: 14px 18px;
  border: 1px solid rgba(194, 80, 45, 0.4);
  background: rgba(194, 80, 45, 0.06);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 4px;
}
.form__summary ul { margin: 0; padding: 0; list-style: none; }
.form__summary li + li { margin-top: 4px; }

/* Hint shown when "Technical support" department is selected */
.form__hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--bone);
  border-left: 2px solid var(--accent-warm);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.form__hint a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}
.form__hint a:hover { border-bottom-color: var(--accent); }

/* reCAPTCHA visual fit */
.form__field--captcha .g-recaptcha,
.form__field--captcha > div:first-child {
  margin-top: 4px;
}

/* Actions */
.form__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}
.form__submit svg { width: 16px; height: 16px; }
.form__legal {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  max-width: 480px;
}
.form__legal .form__required { font-size: 12.5px; }

/* ----- Get in Touch sidebar card ----- */
.contact-aside-card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-aside-card__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.contact-aside-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 28px;
}
.contact-aside-card__block + .contact-aside-card__block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 32, 61, 0.08);
}
.contact-aside-card__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.contact-aside-card__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.contact-aside-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.contact-aside-card__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
  color: var(--text);
}
.contact-aside-card__list li > span:first-child {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.contact-aside-card__list a {
  display: inline-block;
  justify-self: start;       /* don't stretch to fill the grid column */
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.contact-aside-card__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =====================================================
   TEAM PAGE
   ===================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s;
}
.team-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* Avatar tile — sizing wrapper. The SVG/image carries its own background. */
.team-card__avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.team-card__avatar img,
.team-card__avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__body { min-width: 0; }

.team-card__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 6px;
}

.team-card__role {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.team-card__bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.team-card__link svg {
  width: 16px;
  height: 16px;
  display: block;
}
.team-card__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

@media (max-width: 540px) {
  .team-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px;
  }
  .team-card__avatar {
    width: 88px;
    height: 88px;
  }
}

/* =====================================================
   CONTACT GRID (support / contact pages)
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-block__title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.contact-block__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.contact-block__list,
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.contact-block__list li,
.hours-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
}
.contact-block__list li span,
.hours-list li span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.contact-block__list a {
  display: inline-block;
  justify-self: start;       /* don't stretch to fill the grid column */
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.contact-block__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hours-list li span:last-child {
  color: var(--text);
}

@media (max-width: 540px) {
  .contact-grid { padding: 24px; gap: 28px; }
  .contact-block__list li,
  .hours-list li {
    grid-template-columns: 70px 1fr;
  }
}

/* =====================================================
   LAYOUT CONTENT WRAPPERS
   Used by _layout.cshtml. The home and editorial pages
   set main-wrap-home-lightbox to suppress the inner
   padding when the hero/banner already handles spacing.
   ===================================================== */
#content-container {
  background: var(--paper);
  color: var(--text);
}
#main-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 32px;
}
#main-wrap.main-wrap-home-lightbox {
  padding: 0;
  max-width: none;
}

/* =====================================================
   ENTRANCE MOTION
   ===================================================== */
.hero__eyebrow,
.hero__title,
.hero__lede,
.hero__ctas,
.hero__visual {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title   { animation-delay: 0.15s; }
.hero__lede    { animation-delay: 0.28s; }
.hero__ctas    { animation-delay: 0.38s; }
.hero__visual  { animation-delay: 0.20s; animation-duration: 1.1s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   LEGAL PAGES (privacy, terms)
   Single-column body, denser typography, sticky ToC.
   ===================================================== */
.legal-hero { /* matches .page-hero but single column, no art */
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  background: linear-gradient(160deg, #0B1328 0%, #0E1932 55%, #142148 100%);
}
.legal-hero__inner {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 70px 32px 80px;
}
.legal-hero__copy { max-width: 760px; }
.legal-hero__eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 18px;
}
.legal-hero__title {
  font-family: var(--serif, 'Crimson Pro', serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 18px;
}
.legal-hero__lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.78);
  margin: 0 0 28px;
  max-width: 640px;
}
.legal-meta {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.55);
  margin: 0;
}
.legal-meta span { display: block; }

.legal-body {
  background: var(--cream);
  padding: 72px 0 96px;
}
.legal-body__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 28px 22px;
  margin: 0 0 56px;
}
.legal-toc__title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}
.legal-toc > ul > li {
  margin: 4px 0;
  font-weight: 500;
}
.legal-toc ul ul {
  margin: 4px 0 8px 16px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.legal-toc ul ul li {
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
}
.legal-toc a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.legal-toc a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.legal-prose {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.legal-prose p { margin: 0 0 16px; }
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose ul ul { list-style: circle; margin-top: 6px; margin-bottom: 6px; }
.legal-prose ul ul ul { list-style: square; }
.legal-prose li { margin: 4px 0; padding-left: 4px; }
.legal-prose li::marker { color: var(--text-muted); }
.legal-prose strong { font-weight: 600; color: var(--ink); }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-prose a:hover { color: var(--ink); }

.legal-section {
  scroll-margin-top: 5rem;
  margin: 0 0 36px;
}
.legal-section h2 {
  font-family: var(--serif, 'Crimson Pro', serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 48px 0 18px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.legal-section:first-of-type h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.legal-section h3 {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  margin: 28px 0 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
}

/* Legal pages reuse .comparison-table for the categories table */
.legal-prose .comparison-table {
  margin: 24px 0 24px;
  font-size: 13.5px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0E1932;
    padding: 16px 24px;
    gap: 4px;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav__links.is-open .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 0 4px 12px;
    min-width: 0;
    display: none;
  }
  .nav__links.is-open .nav__item.is-open .nav__dropdown { display: block; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px 72px;
    min-height: auto;
  }
  .hero__visual {
    order: -1;
    max-width: 640px;
    margin: 0 auto -20px;
    align-self: center;
  }
  .section--products { padding-top: 90px; }

  .cards { grid-template-columns: 1fr; }
  .card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px;
  }
  .card__art { order: -1; margin: -8px -8px 0; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .eyebrow,
  .section-title,
  .section-sub { grid-column: 1 / 2; }

  .metrics__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .metric__divider { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__brand-block { grid-column: 1 / -1; }
  .footer__base-inner { flex-direction: column; gap: 8px; text-align: center; }

  /* Legal pages: tighter padding on small screens */
  .legal-hero__inner { padding: 64px 24px 56px; }
  .legal-body { padding: 48px 0 72px; }
  .legal-body__inner { padding: 0 24px; }
  .legal-section h2 { font-size: 22px; margin-top: 36px; padding-top: 22px; }
  .legal-section h3 { font-size: 16px; }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 12px 20px; }
  .hero__title { font-size: 38px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

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