/* ==========================================================================
   W2MS — Motto-inspired design system
   Light / dark themes with prefers-color-scheme auto-detection
   ========================================================================== */

/* --- Design tokens --- */
:root {
  /* Brand */
  --accent: #00adef;
  --accent-hover: #0090cc;
  --navy: #0a2540;

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Layout */
  --container: 72rem;
  --header-h: 4.5rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

/* Light theme (default) — Motto cool grey/white */
[data-theme="light"] {
  --bg: #e8e8e6;
  --bg-elevated: #f4f4f2;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-subtle: #8a8a8a;
  --border: #d4d4d2;
  --border-strong: #1a1a1a;
  --header-bg: rgba(232, 232, 230, 0.85);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --overlay: rgba(26, 26, 26, 0.04);
  --burst: #1a1a1a;
  --btn-ghost-hover: rgba(0, 0, 0, 0.05);
  --manifesto-bg: #1a1a1a;
  --manifesto-text: #f4f4f2;
}

/* Dark theme — brutalist black */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #f0f0ee;
  --text-muted: #a0a0a0;
  --text-subtle: #6a6a6a;
  --border: #2a2a2a;
  --border-strong: #f0f0ee;
  --header-bg: rgba(10, 10, 10, 0.9);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --overlay: rgba(255, 255, 255, 0.04);
  --burst: #f0f0ee;
  --btn-ghost-hover: rgba(255, 255, 255, 0.06);
  --manifesto-bg: #e8e8e6;
  --manifesto-text: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Logo theme swap */
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark { display: block; }

.nav__logo .logo--light { display: block; }
.nav__logo .logo--dark { display: none; }
[data-theme="dark"] .nav__logo .logo--light { display: none; }
[data-theme="dark"] .nav__logo .logo--dark { display: block; }

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

/* --- Page transition (subtle, theme-matched — no accent flash) --- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
  opacity: 0;
}

.page-transition.is-active {
  animation: pageReveal 0.45s var(--ease-out) forwards;
}

@keyframes pageReveal {
  0% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  height: 100%;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
  width: 3.5rem;
  height: 2.75rem;
}

.nav__logo .logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 900px) {
  .nav__logo {
    width: 4rem;
    height: 3rem;
  }
}

.nav__links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .nav__links {
    gap: 0.875rem;
  }

  .nav__link {
    font-size: 0.75rem;
  }
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link--cta {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

/* Region dropdown (US ↔ CA) */
.region-dropdown {
  position: relative;
}

.region-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.region-dropdown__trigger:hover,
.region-dropdown.is-open .region-dropdown__trigger {
  background: var(--overlay);
  border-color: var(--border-strong);
  color: var(--text);
}

.region-dropdown__flag {
  display: block;
  width: 1.25rem;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.region-dropdown__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-dropdown__chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 0.2s var(--ease-out);
}

.region-dropdown.is-open .region-dropdown__chevron {
  transform: rotate(180deg);
}

.region-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 1002;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.region-dropdown__menu li {
  margin: 0;
}

.region-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  transition: background 0.2s;
}

.region-dropdown__option:hover {
  background: var(--overlay);
}

.region-dropdown__option.is-current {
  background: var(--overlay);
  color: var(--accent);
}

.region-dropdown__option-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.3;
}

.region-dropdown__domain {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--text-subtle);
}

.region-dropdown--header {
  display: none;
}

@media (min-width: 900px) {
  .region-dropdown--header {
    display: block;
  }
}

.region-dropdown--header .region-dropdown__trigger {
  padding: 0.25rem;
  background: transparent;
  border-color: transparent;
}

.region-dropdown--header .region-dropdown__trigger:hover,
.region-dropdown--header.region-dropdown.is-open .region-dropdown__trigger,
.region-dropdown--header .region-dropdown.is-open .region-dropdown__trigger {
  background: var(--overlay);
  border-color: var(--border);
}

.region-dropdown--header .region-dropdown__value {
  display: none;
}

.region-dropdown--header .region-dropdown__chevron {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.5;
}

.region-dropdown--header .region-dropdown__flag {
  width: 1.125rem;
  border: 0;
}

.region-dropdown--menu {
  width: 100%;
}

.region-dropdown--menu .region-dropdown__trigger {
  width: 100%;
  justify-content: space-between;
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  text-transform: none;
}

.region-dropdown--menu .region-dropdown__value {
  display: inline;
  flex: 1;
  text-align: left;
}

.region-dropdown--menu .region-dropdown__menu {
  position: static;
  width: 100%;
  margin-top: 0.375rem;
  box-shadow: none;
}

.region-dropdown--menu.is-open .region-dropdown__menu {
  display: block;
}

/* Theme toggle — icon button (desktop header) */
.theme-toggle--icon {
  display: none;
}

@media (min-width: 900px) {
  .theme-toggle--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: border-color 0.2s, background 0.2s;
  }

  .theme-toggle--icon:hover {
    background: var(--overlay);
    border-color: var(--border-strong);
  }

  .theme-toggle--icon .icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* Theme toggle — subtle text (footer + mobile menu) */
.theme-toggle--subtle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-subtle);
  background: none;
  border: 0;
  transition: color 0.2s;
}

.theme-toggle--subtle:hover {
  color: var(--text);
}

.theme-toggle__text--to-light {
  display: none;
}

[data-theme="dark"] .theme-toggle__text--to-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle__text--to-light {
  display: inline;
}

.theme-toggle--footer {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

@media (max-width: 599px) {
  .footer__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .theme-toggle--footer {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

.icon--moon { display: none; }
[data-theme="dark"] .icon--sun { display: none; }
[data-theme="dark"] .icon--moon { display: block; }

/* Mobile burger */
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 900px) {
  .nav__burger {
    display: none;
  }
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: var(--space-md);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), visibility 0.4s;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.mobile-menu__footer .theme-toggle--subtle {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.mobile-menu__region-bar {
  flex: 1;
  min-width: 0;
}

.mobile-menu__region-bar .region-dropdown,
.mobile-menu__region-bar .region-dropdown__trigger {
  width: 100%;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__links a {
  font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  padding-block: 0.375rem;
  color: var(--text);
  transition: color 0.2s;
}

.mobile-menu__links a:hover {
  color: var(--accent);
}

.mobile-menu__cta {
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  color: var(--accent) !important;
}

body.mobile-nav-open .site-header {
  z-index: 1003;
}

body.mobile-nav-open::after {
  content: '';
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.45);
  pointer-events: none;
}

[data-theme="light"] body.mobile-nav-open::after {
  background: rgba(26, 26, 26, 0.35);
}

@media (max-width: 899px) {
  :root {
    --header-h: 4rem;
  }

  .container {
    padding-inline: 1.125rem;
  }

  .nav__logo {
    width: 3rem;
    height: 2.25rem;
  }

  .nav__actions {
    gap: 0.5rem;
  }

  .nav__burger {
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: var(--bg-elevated);
  }

  .nav__burger:active {
    background: var(--overlay);
  }

  .mobile-menu {
    top: var(--header-h);
    padding: var(--space-md) 1.125rem var(--space-lg);
    background: var(--bg-card);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  }

  [data-theme="dark"] .mobile-menu {
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .mobile-menu__links {
    gap: 0;
    padding-top: var(--space-xs);
  }

  .mobile-menu__links li {
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu__links a {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0.9rem 0;
    color: var(--text);
  }

  .mobile-menu__cta {
    margin-top: var(--space-md);
    padding: var(--space-md) 0 0;
    border-top: 0;
    font-weight: 700;
    color: var(--accent) !important;
  }

  .mobile-menu__footer {
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .mobile-menu__region-bar {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--space-lg);
  }

  .hero__inner {
    padding-top: var(--space-xs);
    padding-bottom: var(--space-lg);
  }

  .hero__title {
    max-width: none;
    font-size: clamp(2.125rem, 9vw, 3.25rem);
    margin-bottom: var(--space-md);
  }

  .hero__lead {
    margin-bottom: var(--space-lg);
  }

  .hero__actions {
    margin-bottom: var(--space-md);
  }

  .hero__burst,
  .contact__burst,
  .product-hero__burst,
  .product-cta__burst {
    display: none;
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .section__header {
    margin-bottom: var(--space-lg);
  }

  .section__title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .product-card__body {
    padding: var(--space-md);
  }

  .product-card__logo-panel {
    min-height: 6.5rem;
    padding: var(--space-md);
  }

  .product-hero {
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .product-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .product-showcase__inner {
    gap: var(--space-lg);
  }

  .product-cta__inner {
    padding: var(--space-xl) var(--space-md);
  }
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--btn-ghost-hover);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--header-h);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero__inner {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-xl);
  position: relative;
}

.hero__burst {
  position: absolute;
  top: var(--space-sm);
  right: 10%;
  width: clamp(7rem, 24vw, 12rem);
  height: clamp(7rem, 24vw, 12rem);
  color: var(--burst);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  animation: burstSpin 24s linear infinite;
}

@keyframes burstSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero__dot {
  opacity: 0.4;
}

.hero__line {
  height: 1px;
  background: var(--border);
  margin-inline: var(--space-md);
}

@media (min-width: 768px) {
  .hero__line {
    margin-inline: var(--space-lg);
  }
}

/* --- Sections --- */
.section {
  padding-block: var(--space-3xl);
  border-top: 1px solid var(--border);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-sm));
}

.section__grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .section__grid {
    grid-template-columns: 1fr 2.5fr;
    gap: var(--space-2xl);
  }
}

.section__label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__header .burst-mark {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--burst);
}

.section__label .burst-mark {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--burst);
}

/* Geometric burst mark (replaces ✳ emoji) */
.burst-mark {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  color: var(--burst);
}

.burst-mark::before,
.burst-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 12% 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 12% no-repeat;
}

.burst-mark::after {
  transform: rotate(45deg);
}

.burst {
  transition: transform 0.6s var(--ease-out);
}

.burst:hover {
  transform: rotate(90deg);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.7;
}

/* --- Prose --- */
.prose p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

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

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Mission --- */
.mission {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
}

.mission__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.mission__statement {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

@media (max-width: 639px) {
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .stat {
    align-items: center;
    text-align: center;
  }
}

.stat__value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
  margin: 0;
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.4;
}

/* --- Product cards --- */
.products__grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.product-card__logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  min-height: 7.5rem;
  transition: background-color var(--duration) var(--ease-out);
}

.product-card__logo-slot {
  position: relative;
  width: 100%;
  height: 4.75rem;
}

.product-card__logo-slot .product-card__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.product-card__logo-slot .product-card__logo--theme-light {
  display: block;
}

.product-card__logo-slot .product-card__logo--theme-dark {
  display: none;
}

[data-theme="dark"] .product-card__logo-slot .product-card__logo--theme-light {
  display: none;
}

[data-theme="dark"] .product-card__logo-slot .product-card__logo--theme-dark {
  display: block;
}

.product-card__logo {
  height: 4.75rem;
  width: auto;
  max-width: min(100%, 17.5rem);
  object-fit: contain;
  object-position: center;
}

.product-card--metersense .product-card__logo {
  transition: filter var(--duration) var(--ease-out);
}

[data-theme="dark"] .product-card--metersense .product-card__logo {
  filter: brightness(0) invert(1);
}

.product-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  min-height: 2.6rem;
  line-height: 1.35;
}

.product-card--metersense .product-card__category {
  color: #00b894;
}

.product-card--veracta .product-card__category {
  color: #a29bfe;
}

.product-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 42ch;
}

.product-card__features {
  margin-bottom: 0;
}

.product-card__features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.product-card--metersense .product-card__features li::before {
  background: #00b894;
}

.product-card--veracta .product-card__features li::before {
  background: #a29bfe;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
}

.product-card__tags li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  color: var(--text-subtle);
}

.product-card__cta {
  align-self: stretch;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  margin-top: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.product-card__actions .product-card__cta {
  margin-top: 0;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* --- Service cards (legacy, kept for reference) --- */
.services__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  padding: var(--space-xl) var(--space-lg);
  transition: background var(--duration) var(--ease-out);
  position: relative;
}

.service-card:hover {
  background: var(--bg-elevated);
}

.service-card__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.service-card__tags li {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  color: var(--text-subtle);
}

/* --- Approach steps --- */
.approach__steps {
  margin-top: var(--space-xl);
  counter-reset: step;
}

.approach__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md) var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border);
}

.approach__step:last-child {
  border-bottom: 1px solid var(--border);
}

.approach__step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.25rem;
}

.approach__step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.approach__step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Updates / LinkedIn posts --- */
.updates__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .updates__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .updates__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.updates__loading,
.updates__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: var(--space-xl) 0;
}

.updates__footer {
  margin-top: var(--space-xl);
  text-align: center;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: var(--space-lg);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.post-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a66c2;
}

.post-card__source svg {
  width: 1rem;
  height: 1rem;
}

.post-card__date {
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
}

.post-card__image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

.post-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  flex: 1;
}

.post-card__embed {
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.post-card__embed iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.post-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s;
}

.post-card__link:hover {
  color: var(--text);
}

/* --- Manifesto quote block --- */
.manifesto {
  background: var(--manifesto-bg);
  color: var(--manifesto-text);
  padding-block: var(--space-3xl);
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

.manifesto__inner {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.manifesto blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.manifesto cite {
  display: block;
  margin-top: var(--space-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  font-style: normal;
}

/* --- FAQ --- */
.faq__list {
  max-width: 48rem;
}

.faq__item {
  border-top: 1px solid var(--border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  padding: var(--space-md) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__item p {
  padding-bottom: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Contact --- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding-block: var(--space-xl) var(--space-2xl);
}

.contact__burst {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(5rem, 18vw, 8rem);
  height: clamp(5rem, 18vw, 8rem);
  translate: -50% 0;
  color: var(--burst);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
}

.contact__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.contact__title-line {
  display: block;
}

.contact__title em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
}

.contact__lead {
  position: relative;
  z-index: 1;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 36ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 36rem;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 640px) {
  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__grid {
  display: contents;
}

.contact-form__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.875rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-variant-numeric: slashed-zero;
  font-feature-settings: 'zero' 1;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.15);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.contact-form__status {
  grid-column: 1 / -1;
  margin-top: 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-form__status--success {
  color: #00b894;
}

.contact-form__status--error {
  color: #e74c3c;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* --- Auth drawer (login / signup slide-in) --- */
body.auth-drawer-open {
  overflow: hidden;
}

.auth-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.auth-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.auth-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

[data-theme="light"] .auth-drawer__backdrop {
  background: rgba(10, 37, 64, 0.35);
}

.auth-drawer.is-open .auth-drawer__backdrop {
  opacity: 1;
}

.auth-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 30rem);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-drawer.is-open .auth-drawer__panel {
  transform: translateX(0);
}

.auth-drawer__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.auth-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.auth-drawer__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.auth-drawer__close:hover,
.auth-drawer__close:focus-visible {
  color: var(--text);
  background: var(--overlay);
  border-color: var(--border-strong);
}

.auth-drawer__view {
  flex: 1;
  padding: var(--space-md) var(--space-lg) var(--space-xl);
}

.auth-drawer__view[hidden] {
  display: none;
}

/* --- Auth form content --- */
.auth {
  text-align: left;
}

.auth__inner {
  position: relative;
  max-width: 100%;
  margin-inline: auto;
}

.auth__burst {
  display: none;
}

.auth__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.auth__title-line {
  display: block;
}

.auth__title em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
}

.auth__lead {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}

.auth__panel {
  position: relative;
  z-index: 1;
}

.auth-form {
  max-width: 100%;
  grid-template-columns: 1fr !important;
  margin-inline: 0;
}

.auth-form .contact-form__actions {
  justify-content: flex-start;
}

.auth__switch {
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.auth__switch a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth__switch a:hover,
.auth__switch a:focus-visible {
  color: var(--accent);
}

.auth__account-card {
  max-width: 100%;
  margin-inline: 0;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: left;
}

.auth__account-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-sm);
}

.auth__account-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.auth__account-email {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.auth__account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.auth-step[hidden] {
  display: none;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
}

.auth-mode-toggle__btn {
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  transition: background 0.2s, color 0.2s;
}

.auth-mode-toggle__btn.is-active {
  color: var(--text);
  background: var(--overlay);
}

.auth-mode-toggle__btn + .auth-mode-toggle__btn {
  border-left: 1px solid var(--border);
}

.auth-field-wrap {
  position: relative;
}

.auth-field-wrap input {
  width: 100%;
  padding-right: 2.75rem;
}

.auth-field-wrap__toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-field-wrap__toggle:hover,
.auth-field-wrap__toggle:focus-visible {
  color: var(--text);
  background: var(--overlay);
}

.auth-field-wrap__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-field-wrap__toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.125rem;
  height: 1.125rem;
  pointer-events: none;
}

.auth-field-wrap__toggle[aria-pressed="false"] .icon-eye-hide,
.auth-field-wrap__toggle:not([aria-pressed="true"]) .icon-eye-hide {
  display: none;
}

.auth-field-wrap__toggle[aria-pressed="true"] .icon-eye-show {
  display: none;
}

.auth-hint {
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-subtle);
}

.auth-hint--ok {
  color: #00b894;
}

.auth-hint--bad {
  color: #e74c3c;
}

.auth-email-chip {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 0.375rem 0.625rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-variant-numeric: slashed-zero;
  font-feature-settings: 'zero' 1;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.auth-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.25rem;
  font-variant-numeric: slashed-zero;
  font-feature-settings: 'zero' 1;
  letter-spacing: 0.25em;
  text-align: center;
}

.auth-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin-top: var(--space-xs);
}

.auth-strength__bar {
  height: 3px;
  background: var(--border);
  transition: background 0.2s;
}

.auth-link-btn {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  background: none;
  border: 0;
}

.auth-link-btn:hover,
.auth-link-btn:focus-visible {
  color: var(--accent);
}

/* --- Geo prompt (.com → .ca) --- */
body.geo-prompt-open {
  overflow: hidden;
}

.geo-prompt {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-md);
  border: 0;
  background: transparent;
}

.geo-prompt[open],
.geo-prompt[open=""] {
  display: flex;
}

.geo-prompt::backdrop {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.geo-prompt__panel {
  width: min(100%, 28rem);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.geo-prompt__flag {
  display: block;
  width: 3rem;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border);
}

.geo-prompt__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.geo-prompt__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.geo-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .geo-prompt__actions {
    flex-direction: row;
    justify-content: center;
  }

  .geo-prompt__actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* --- Newsletter popup --- */
.newsletter-popup {
  position: fixed;
  left: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 10000;
  width: min(calc(100vw - 2rem), 22rem);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(calc(100% + 2rem)) translateX(-1rem);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.55s var(--ease-out),
    opacity 0.45s var(--ease-out),
    visibility 0.45s;
}

[data-theme="dark"] .newsletter-popup {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.newsletter-popup.is-visible {
  transform: translateY(0) translateX(0);
  opacity: 1;
  visibility: visible;
}

.newsletter-popup.is-leaving {
  transform: translateY(calc(100% + 1rem)) translateX(-0.5rem);
  opacity: 0;
  visibility: hidden;
}

.newsletter-popup__close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--text-subtle);
  transition: color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.newsletter-popup__close:hover {
  color: var(--text);
  background: var(--btn-ghost-hover);
}

.newsletter-popup__close svg {
  width: 1rem;
  height: 1rem;
}

.newsletter-popup__body {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.newsletter-popup__qr {
  flex-shrink: 0;
  text-align: center;
}

.newsletter-popup__qr img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: #fff;
}

.newsletter-popup__scan {
  margin-top: 0.375rem;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.newsletter-popup__content {
  flex: 1;
  min-width: 0;
  padding-right: 1.25rem;
}

.newsletter-popup__title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.375rem;
}

.newsletter-popup__text {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-sm);
}

.newsletter-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-popup__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 0.875rem;
}

@media (max-width: 420px) {
  .newsletter-popup {
    left: var(--space-xs);
    right: var(--space-xs);
    bottom: var(--space-xs);
    width: auto;
  }

  .newsletter-popup__body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .newsletter-popup__content {
    padding-right: 0;
  }

  .newsletter-popup__actions {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-popup {
    transition: opacity 0.2s ease, visibility 0.2s;
    transform: none;
  }

  .newsletter-popup.is-visible,
  .newsletter-popup.is-leaving {
    transform: none;
  }
}

/* --- Newsletter modal --- */
.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.newsletter-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.newsletter-modal__panel {
  position: relative;
  width: min(100%, 26rem);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
  transform: translateY(1rem);
  transition: transform 0.35s var(--ease-out);
}

.newsletter-modal.is-open .newsletter-modal__panel {
  transform: translateY(0);
}

body.newsletter-modal-open {
  overflow: hidden;
}

.newsletter-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--text-subtle);
  transition: color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.newsletter-modal__close:hover {
  color: var(--text);
  background: var(--btn-ghost-hover);
}

.newsletter-modal__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.newsletter-modal__title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  padding-right: 1.75rem;
}

.newsletter-modal__text {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.newsletter-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

@media (min-width: 480px) {
  .newsletter-modal__actions {
    flex-direction: row;
  }

  .newsletter-modal__actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

.newsletter-prefs {
  border: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.newsletter-prefs__optional {
  font-weight: 500;
  color: var(--text-subtle);
}

.newsletter-prefs__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.newsletter-prefs-form .newsletter-prefs__options {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-modal,
  .newsletter-modal__panel {
    transition: none;
    transform: none;
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl);
}

.footer__inner {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }
}

.footer__logo {
  height: 2rem;
  width: auto;
  margin-bottom: var(--space-xs);
}

.footer__tagline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.footer__nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer__social {
  display: flex;
  align-items: center;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer__social-link:hover {
  color: var(--accent);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* --- Scroll reveal animations --- */
.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
}

.hero .reveal,
.product-card.reveal,
.approach__step.reveal,
.faq__item.reveal,
.manifesto__inner.reveal,
.section__title.reveal,
.section__header.reveal,
.section__label.reveal,
.updates__footer.reveal,
.product-hero .reveal,
.product-capability.reveal,
.product-showcase__copy.reveal,
.product-showcase__visual.reveal,
.product-audience__tags.reveal,
.product-cta__inner.reveal,
.prose.reveal {
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.hero .reveal.is-visible,
.product-card.reveal.is-visible,
.approach__step.reveal.is-visible,
.faq__item.reveal.is-visible,
.manifesto__inner.reveal.is-visible,
.section__title.reveal.is-visible,
.section__header.reveal.is-visible,
.section__label.reveal.is-visible,
.updates__footer.reveal.is-visible,
.product-hero .reveal.is-visible,
.product-capability.reveal.is-visible,
.product-showcase__copy.reveal.is-visible,
.product-showcase__visual.reveal.is-visible,
.product-audience__tags.reveal.is-visible,
.product-cta__inner.reveal.is-visible,
.prose.reveal.is-visible {
  transform: translateY(0);
}

/* Stagger children in hero */
.hero .reveal:nth-child(2) { transition-delay: 0.05s; }
.hero .reveal:nth-child(3) { transition-delay: 0.1s; }
.hero .reveal:nth-child(4) { transition-delay: 0.15s; }
.hero .reveal:nth-child(5) { transition-delay: 0.2s; }
.hero .reveal:nth-child(6) { transition-delay: 0.25s; }

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

  .reveal,
  .hero .reveal,
  .product-card.reveal,
  .approach__step.reveal,
  .faq__item.reveal,
  .manifesto__inner.reveal,
  .section__title.reveal,
  .section__header.reveal,
  .section__label.reveal,
  .updates__footer.reveal,
  .product-hero .reveal,
  .product-capability.reveal,
  .product-showcase__copy.reveal,
  .product-showcase__visual.reveal,
  .product-audience__tags.reveal,
  .product-cta__inner.reveal,
  .prose.reveal,
  .product-page .reveal--from-left,
  .product-page .reveal--from-right,
  .product-page .reveal--scale {
    opacity: 1;
    transform: none;
  }

  .page-transition {
    display: none;
  }

  .product-hero__line {
    transform: scaleX(1);
    animation: none;
  }
}

/* --- Account page --- */
body.page-account .account-page {
  min-height: 100vh;
  padding-top: var(--header-h);
}

body.page-account .account.section {
  border-top: none;
}

body.page-account .nav__link--account {
  color: var(--accent);
}

body.page-portal .account-page,
body.page-portal .portal-page {
  min-height: 100vh;
  padding-top: var(--header-h);
}

body.page-portal .account.section {
  border-top: none;
}

body.page-portal .region-dropdown {
  display: none;
}

.account-page .account {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.account {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.account__inner {
  max-width: 64rem;
  margin-inline: auto;
}

.account__burst {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.account__title,
.account-dashboard__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.account__title em,
.account-dashboard__title em {
  font-style: normal;
  color: var(--accent);
}

.account__lead,
.account-dashboard__meta {
  color: var(--text-muted);
  max-width: 38rem;
}

.account-guest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.account-loading {
  color: var(--text-muted);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.account-status {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.account-status--error {
  border-color: color-mix(in srgb, #e05252 35%, var(--border));
  background: color-mix(in srgb, #e05252 8%, var(--bg-elevated));
}

.account-status--success {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
}

.account-dashboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.account-dashboard__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.account-dashboard__meta {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.account-dashboard__dot {
  margin-inline: 0.4rem;
  opacity: 0.5;
}

.account-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.account-panel__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.01em;
}

.account-panel__head p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42rem;
}

.account-products__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .account-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.account-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 100%;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.account-product-card--connected {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
}

.account-product-card--pending {
  border-color: color-mix(in srgb, #f7d46a 40%, var(--border));
}

.account-product-card--available {
  border-color: var(--border);
}

.account-product-card__brand {
  display: flex;
  align-items: center;
  min-height: 5rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.account-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem 1.35rem;
}

.account-product-card__logo {
  max-width: 11rem;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter var(--duration) var(--ease-out);
}

[data-theme="dark"] .account-product-card[data-app-id="metersense"] .account-product-card__logo {
  filter: brightness(0) invert(1);
}

.account-product-card__logo--light {
  display: none;
}

[data-theme="light"] .account-product-card__logo--dark {
  display: none;
}

[data-theme="light"] .account-product-card__logo--light {
  display: block;
}

.account-product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-product-card__identity {
  min-width: 0;
}

.account-product-card__tagline {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.account-product-card__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.account-product-card__badge {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  white-space: nowrap;
  flex-shrink: 0;
}

.account-product-card--connected .account-product-card__badge {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.account-product-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.account-product-card__note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 0.7rem 0.85rem;
  border-radius: 0.55rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.account-product-card__footer {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-product-card__actions .btn {
  min-width: 0;
}

.account-product-card__learn {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.account-product-card__learn:hover,
.account-product-card__learn:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.account-product-card__connect {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.account-product-card__connect-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-product-card__connect-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.account-product-card__connect-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.account-product-card__connect-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.account-product-card__connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.15rem;
}

.account-panel--settings {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.account-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  padding: 0.25rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  max-width: 20rem;
}

body.page-portal .account-tabs {
  max-width: 36rem;
}

.account-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}

.account-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.account-tabs__tab {
  flex: 1;
  padding: 0.55rem 1rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  border-radius: 0.45rem;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.account-tabs__tab:hover,
.account-tabs__tab:focus-visible {
  color: var(--text);
}

.account-tabs__tab.is-active {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .account-tabs__tab.is-active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.account-tab-panel[hidden] {
  display: none !important;
}

.account-settings-form {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.account-settings-form.contact-form {
  grid-template-columns: 1fr 1fr;
}

.account-settings-subhead {
  margin: 0 0 1rem;
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.account-settings-security {
  display: contents;
}

.account-settings-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.account-danger-zone {
  max-width: 36rem;
  margin-top: 0.5rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, #e05252 30%, var(--border));
  background: color-mix(in srgb, #e05252 5%, var(--bg-card));
}

.account-danger-zone__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.account-danger-zone__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.account-danger-zone__toggle {
  color: #e05252;
  border-color: color-mix(in srgb, #e05252 35%, var(--border));
}

.account-danger-zone__toggle:hover,
.account-danger-zone__toggle:focus-visible {
  color: #fff;
  background: #c0392b;
  border-color: #c0392b;
}

.account-delete-form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, #e05252 20%, var(--border));
}

.account-danger-zone__submit {
  color: #e05252;
  border-color: color-mix(in srgb, #e05252 35%, var(--border));
}

.account-danger-zone__submit:hover,
.account-danger-zone__submit:focus-visible {
  color: #fff;
  background: #c0392b;
  border-color: #c0392b;
}

.account-dashboard__team-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.account-dashboard__team-badge--owner {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elevated));
}

.account-dashboard__team-badge--developer {
  color: var(--text);
}

.account-dashboard__team-badge--employee {
  color: var(--text-muted);
}

.account-team-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.account-team-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.account-team-empty {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.account-team-row {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
}

.account-team-row__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-team-row__identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.account-team-row__name {
  font-weight: 700;
  color: var(--text);
}

.account-team-row__email {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: break-word;
}

.account-team-row__badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.account-team-row__badge--owner {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.account-team-row__badge--employee {
  color: var(--text-muted);
}

.account-team-row__badge--developer {
  color: #7c6fe8;
  border-color: color-mix(in srgb, #7c6fe8 35%, var(--border));
}

.account-team-row__badge--customer {
  color: var(--text-muted);
  opacity: 0.85;
}

.account-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.account-users-search {
  flex: 1 1 14rem;
  max-width: 24rem;
}

.account-users-search input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-elevated);
  color: var(--text);
}

.account-users-count {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.account-users-list {
  display: grid;
  gap: 0.65rem;
}

.account-users-row {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
}

.account-users-row__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-users-row__identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.account-users-row__name {
  font-weight: 700;
  color: var(--text);
}

.account-users-row__email {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: break-word;
}

.account-users-row__meta {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.account-users-row__type-label {
  flex-shrink: 0;
}

.account-users-row__type {
  min-width: 8.5rem;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--bg-elevated);
  color: var(--text);
}

.account-team-row__meta,
.account-team-row__notes {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.account-team-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.account-team-row__remove {
  color: #e05252;
  border-color: color-mix(in srgb, #e05252 35%, var(--border));
}

.account-team-form {
  padding-top: 0.25rem;
}

.account-meternet-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.account-meternet-row {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--bg-elevated);
}

.account-meternet-row__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-meternet-row__identity {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.account-meternet-row__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.account-meternet-row__host {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.account-meternet-row__meta,
.account-meternet-row__notes {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.account-meternet-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.account-meternet-row__remove {
  color: #e05252;
  border-color: color-mix(in srgb, #e05252 35%, var(--border));
}

.account-meternet-form {
  margin-top: 0.5rem;
}

.account-meternet-row__key {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  font-size: 0.72rem;
  word-break: break-all;
}

.account-meternet-row__key-label {
  font-weight: 600;
}

.account-projects-list {
  display: grid;
  gap: 2rem;
}

.portal-newsletter-stats {
  margin-bottom: var(--space-md);
}

.portal-newsletter-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.portal-newsletter-stats__item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--bg-elevated);
  text-align: center;
}

.portal-newsletter-stats__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portal-newsletter-stats__label {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portal-newsletter-form textarea {
  min-height: 12rem;
  resize: vertical;
}

@media (max-width: 640px) {
  .portal-newsletter-stats__grid {
    grid-template-columns: 1fr;
  }
}

.portal-projects-view[hidden] {
  display: none !important;
}

.account-projects-group {
  display: grid;
  gap: 0.75rem;
}

.account-projects-group__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-projects-group__boards {
  display: grid;
  gap: 0.75rem;
}

.account-project-board {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-elevated, var(--surface));
}

.account-project-board__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.account-project-board__identity {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.account-project-board__name {
  font-weight: 600;
}

.account-project-board__link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.account-project-board__link:hover {
  text-decoration: underline;
}

.account-project-board__meta,
.account-project-board__description {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.account-project-board__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.account-project-board--clickable .account-project-board__actions {
  opacity: 0.85;
}

.account-project-board__remove {
  color: var(--danger, #b42318);
}

.account-project-board--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-project-board--clickable:hover,
.account-project-board--clickable:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  outline: none;
}

.account-project-board__open {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.w2ms-modal__dialog--kanban {
  width: min(98vw, 92rem);
  height: min(94vh, 60rem);
  max-width: 98vw;
  max-height: 94vh;
}

.w2ms-modal__header--kanban {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.25rem 4rem 1rem 1.5rem;
}

.w2ms-modal__header--kanban .portal-kanban__title-wrap {
  flex: 1 1 14rem;
  min-width: 0;
}

.w2ms-modal__header--kanban .portal-kanban__actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.w2ms-modal__body--kanban {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding: 0.75rem 1.25rem 1.25rem;
  min-height: 0;
}

.w2ms-modal--kanban .portal-kanban__board {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
}

.portal-kanban__title-wrap {
  min-width: 0;
}

.portal-kanban__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.portal-kanban__board {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0 0.75rem;
  min-height: 14rem;
}

.portal-kanban__board-track {
  display: flex;
  flex: 1 1 auto;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.portal-kanban-list {
  flex: 0 0 18rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.65rem;
  max-height: 100%;
  min-height: 14rem;
  padding: 0.75rem;
  border: 1.5px solid var(--kanban-list-border, var(--border));
  border-radius: 0.75rem;
  background: var(--bg-elevated);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

[data-theme="light"] .portal-kanban-list {
  --kanban-list-border: #9a9a97;
}

[data-theme="dark"] .portal-kanban-list {
  --kanban-list-border: #525250;
}

.portal-kanban-list.is-dragging {
  opacity: 0.55;
}

.portal-kanban-list.is-list-drop-before {
  box-shadow: inset 3px 0 0 var(--accent);
}

.portal-kanban-list.is-list-drop-after {
  box-shadow: inset -3px 0 0 var(--accent);
}

.portal-kanban-list__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.45rem 0.5rem;
  min-height: 2rem;
}

.portal-kanban-list__drag-handle,
.portal-kanban-card__drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: -0.08em;
  cursor: grab;
}

.portal-kanban-list__drag-handle:active,
.portal-kanban-card__drag-handle:active {
  cursor: grabbing;
}

.portal-kanban-list__drag-handle:hover,
.portal-kanban-card__drag-handle:hover {
  color: var(--text);
  background: var(--overlay);
}

.portal-kanban-list__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
}

.portal-kanban-list__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.portal-kanban-list__menu-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.72rem;
  color: var(--text-muted);
  cursor: pointer;
}

.portal-kanban-list__menu-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

.portal-kanban-list__remove {
  color: var(--danger, #b42318);
}

.portal-kanban-list__cards {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 2.5rem;
  overflow-y: auto;
}

.portal-kanban-list__cards.is-drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.portal-kanban-list__add-card {
  justify-self: start;
  margin-top: 0.15rem;
}

.portal-kanban-card {
  position: relative;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  border: 1.5px solid var(--kanban-card-border, var(--border));
  border-radius: 0.6rem;
  background: var(--bg-card);
  cursor: pointer;
}

[data-theme="light"] .portal-kanban-card {
  --kanban-card-border: #8f8f8d;
}

[data-theme="dark"] .portal-kanban-card {
  --kanban-card-border: #5e5e5c;
}

.portal-kanban-card--assigned {
  border-left: 4px solid var(--assignee-color, var(--accent));
  padding-left: 0.85rem;
}

.portal-kanban-card__drag-handle {
  position: absolute;
  top: 0.45rem;
  right: 0.4rem;
}

.portal-kanban-card__title {
  margin: 0 1.5rem 0.35rem 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.portal-kanban-card.is-dragging {
  opacity: 0.45;
}

.portal-kanban-card__due,
.portal-kanban-card__assignee {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.portal-kanban-card__assignee {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.portal-kanban-card__assignee-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--assignee-color, var(--accent));
  flex-shrink: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--assignee-color, var(--accent)) 25%, transparent);
}

/* --- Portal profile summary (Motto-inspired editorial layout) --- */
.account-panel__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.account-panel__head--split > div {
  flex: 1 1 16rem;
  min-width: 0;
}

.profile-summary {
  max-width: 40rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.profile-summary__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-summary__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.profile-summary__email {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.profile-summary__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}

.profile-summary__meta dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-summary__meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.profile-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.profile-action-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-action-list__item--danger .profile-action-list__btn {
  color: #e05252;
}

.profile-action-list__btn {
  padding: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.profile-action-list__btn:hover,
.profile-action-list__btn:focus-visible {
  color: var(--accent);
}

.profile-action-list__btn--danger:hover,
.profile-action-list__btn--danger:focus-visible {
  color: #c0392b;
}

.profile-action-list__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

/* --- W2MS modals (centered, Motto-inspired) --- */
body.w2ms-modal-open {
  overflow: hidden;
}

.w2ms-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  pointer-events: none;
  visibility: hidden;
}

.w2ms-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.w2ms-modal[hidden] {
  display: none !important;
}

.w2ms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

[data-theme="light"] .w2ms-modal__backdrop {
  background: rgba(10, 37, 64, 0.35);
}

.w2ms-modal.is-open .w2ms-modal__backdrop {
  opacity: 1;
}

.w2ms-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(90vh, 42rem);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(1rem) scale(0.98);
  opacity: 0;
  transition: transform 0.38s var(--ease-out), opacity 0.38s var(--ease-out);
  overflow: hidden;
}

.w2ms-modal__dialog--compact {
  width: min(100%, 22rem);
}

.w2ms-modal.is-open .w2ms-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.w2ms-modal__header {
  position: relative;
  padding: 1.5rem 3.25rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.w2ms-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.w2ms-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.w2ms-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.w2ms-modal__close svg {
  width: 1rem;
  height: 1rem;
}

.w2ms-modal__close:hover,
.w2ms-modal__close:focus-visible {
  color: var(--text);
  background: var(--overlay);
  border-color: var(--border-strong);
}

.w2ms-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.w2ms-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.w2ms-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.w2ms-modal__actions--inline {
  justify-content: flex-start;
}

.auth-form--modal {
  grid-template-columns: 1fr !important;
  margin-bottom: 0;
}

.auth-form--modal .account-settings-form {
  max-width: none;
  margin-bottom: 0;
}

.w2ms-modal--danger .w2ms-modal__title {
  color: #e05252;
}

.w2ms-modal--kanban {
  padding: 0.75rem;
}

.w2ms-modal--kanban .w2ms-modal__dialog {
  width: min(98vw, 92rem);
  height: min(94vh, 60rem);
  max-width: 98vw;
  max-height: 94vh;
}

@media (max-width: 540px) {
  .profile-action-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-action-list__hint {
    text-align: left;
  }

  .w2ms-modal {
    padding: 0;
    align-items: flex-end;
  }

  .w2ms-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 0;
    transform: translateY(100%);
  }

  .w2ms-modal--kanban .w2ms-modal__dialog {
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    border-radius: 0;
  }

  .w2ms-modal.is-open .w2ms-modal__dialog {
    transform: translateY(0);
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .page-transition,
  .theme-toggle,
  .nav__burger,
  .mobile-menu,
  .geo-prompt,
  .newsletter-popup,
  .newsletter-modal,
  .image-lightbox,
  .auth-drawer,
  .w2ms-modal,
  .hero__burst,
  .contact__burst {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    break-inside: avoid;
  }
}

/* ==========================================================================
   MeterSense product page
   ========================================================================== */

body.page-metersense {
  --product-accent: #00b894;
}

body.page-veracta {
  --product-accent: #a29bfe;
}

.product-page--metersense {
  padding-top: var(--header-h);
}

.product-page--veracta {
  padding-top: var(--header-h);
}

.product-hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-2xl);
  overflow: hidden;
}

.product-hero__burst {
  position: absolute;
  top: var(--space-lg);
  right: 6%;
  width: clamp(5rem, 20vw, 9rem);
  height: clamp(5rem, 20vw, 9rem);
  color: var(--burst);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  animation: burstSpin 24s linear infinite;
}

.product-hero__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .product-hero__inner {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-2xl);
  }
}

.product-hero__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color var(--duration) var(--ease-out);
}

.product-hero__back:hover {
  color: var(--text);
}

.product-hero__logo {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-md);
}

.product-hero__logo-slot {
  position: relative;
  height: 3.5rem;
  margin-bottom: var(--space-md);
}

.product-hero__logo-slot .product-hero__logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-bottom: 0;
}

[data-theme="dark"] .product-hero__logo--metersense {
  filter: brightness(0) invert(1);
}

.product-hero__logo--theme-light {
  display: block;
}

.product-hero__logo--theme-dark {
  display: none;
}

[data-theme="dark"] .product-hero__logo--theme-light {
  display: none;
}

[data-theme="dark"] .product-hero__logo--theme-dark {
  display: block;
}

.product-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--product-accent, #00b894);
  margin-bottom: var(--space-xs);
}

.product-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.product-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.product-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: var(--space-lg);
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.product-hero__dot {
  opacity: 0.4;
}

.product-hero__copy .reveal:nth-child(1) { transition-delay: 0.05s; }
.product-hero__copy .reveal:nth-child(2) { transition-delay: 0.1s; }
.product-hero__copy .reveal:nth-child(3) { transition-delay: 0.15s; }
.product-hero__copy .reveal:nth-child(4) { transition-delay: 0.2s; }
.product-hero__copy .reveal:nth-child(5) { transition-delay: 0.25s; }
.product-hero__copy .reveal:nth-child(6) { transition-delay: 0.3s; }
.product-hero__copy .reveal:nth-child(7) { transition-delay: 0.35s; }

.product-hero__visual.reveal {
  transition-delay: 0.4s;
}

.product-hero__visual {
  margin: 0;
}

.product-hero__screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.product-hero__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  animation: productLineDraw 1.1s var(--ease-out) 0.55s forwards;
}

@keyframes productLineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.product-capability.reveal:nth-child(1) { transition-delay: 0s; }
.product-capability.reveal:nth-child(2) { transition-delay: 0.06s; }
.product-capability.reveal:nth-child(3) { transition-delay: 0.12s; }
.product-capability.reveal:nth-child(4) { transition-delay: 0.18s; }
.product-capability.reveal:nth-child(5) { transition-delay: 0.24s; }
.product-capability.reveal:nth-child(6) { transition-delay: 0.3s; }

.product-capabilities__grid {
  display: grid;
  gap: var(--space-md);
  list-style: none;
}

@media (min-width: 640px) {
  .product-capabilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-capabilities__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-capability {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.product-capability:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-capability__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.product-capability__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.product-showcase {
  padding-top: 0;
}

.product-showcase__inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .product-showcase__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
  }

  .product-showcase__inner--reverse .product-showcase__copy {
    order: 2;
  }

  .product-showcase__inner--reverse .product-showcase__visual {
    order: 1;
  }
}

.product-showcase__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--product-accent, #00b894);
  margin-bottom: var(--space-xs);
}

.product-showcase__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.product-showcase__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.product-showcase__features {
  list-style: none;
}

.product-showcase__features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-showcase__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--product-accent, #00b894);
}

.product-showcase__visual {
  margin: 0;
}

.product-showcase__screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.product-audience__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin-top: var(--space-lg);
}

.product-audience__tags li {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-subtle);
}

.product-manifesto {
  border-top: 1px solid var(--border);
}

.product-cta {
  padding-bottom: var(--space-2xl);
}

.product-cta__wrap {
  position: relative;
  overflow: hidden;
}

.product-cta__burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(5rem, 16vw, 10rem);
  height: clamp(5rem, 16vw, 10rem);
  translate: -50% -50%;
  color: var(--burst);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  animation: burstSpin 24s linear infinite reverse;
}

.product-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.product-cta__inner:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.product-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.product-cta__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.product-cta__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
}

.product-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* Product page directional & scale reveals (Motto-style) */
.product-page .reveal--from-left {
  transform: translateX(-36px);
  transition-delay: 0.05s;
}

.product-page .reveal--from-right {
  transform: translateX(36px);
  transition-delay: 0.15s;
}

.product-page .reveal--scale {
  transform: translateY(24px) scale(0.96);
}

.product-page .reveal--from-left.reveal--scale {
  transform: translateX(-36px) scale(0.96);
}

.product-page .reveal--from-right.reveal--scale {
  transform: translateX(36px) scale(0.96);
}

.product-page .reveal--from-left.is-visible,
.product-page .reveal--from-right.is-visible {
  transform: translateX(0);
}

.product-page .reveal--scale.is-visible {
  transform: translateY(0) scale(1);
}

.product-page .reveal--from-left.reveal--scale.is-visible,
.product-page .reveal--from-right.reveal--scale.is-visible {
  transform: translateX(0) scale(1);
}

.product-showcase__screenshot,
.product-hero__screenshot {
  transition: transform 0.6s var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.image-lightbox__trigger:hover .product-showcase__screenshot,
.image-lightbox__trigger:hover .product-hero__screenshot {
  transform: scale(1.015);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .image-lightbox__trigger:hover .product-showcase__screenshot,
[data-theme="dark"] .image-lightbox__trigger:hover .product-hero__screenshot {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* --- Image lightbox --- */
body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: 0.5rem;
  text-align: left;
}

.image-lightbox__trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0);
  transition: background var(--duration) var(--ease-out);
  pointer-events: none;
}

.image-lightbox__trigger:hover::after,
.image-lightbox__trigger:focus-visible::after {
  background: rgba(0, 0, 0, 0.12);
}

.image-lightbox__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-md);
  border: 0;
  background: transparent;
}

.image-lightbox[open],
.image-lightbox[open=""] {
  display: flex;
}

.image-lightbox::backdrop {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.image-lightbox__close {
  position: fixed;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.65);
  color: #fff;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.image-lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(10, 10, 10, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
}

.image-lightbox__figure {
  margin: 0;
  max-width: min(100%, 90rem);
  max-height: calc(100vh - var(--space-xl));
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.image-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.image-lightbox__caption {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}
