/* =========================================================
   United Software Technologies — Site Stylesheet
   Modern minimal · Linear/Vercel-inspired
   ========================================================= */

/* ----- CSS variables / theme ----- */
:root {
  /* Light theme (default) */
  --bg: #FBFAF7;
  --bg-elevated: #FFFFFF;
  --bg-muted: #F3F1EC;
  --bg-inverse: #0A1220;
  --fg: #0A1220;
  --fg-muted: #5A6472;
  --fg-subtle: #8A94A2;
  --border: #E7E4DD;
  --border-strong: #D5D1C8;
  --accent: #2E5BFF;           /* electric indigo, derived from logo blue */
  --accent-hover: #1E48E0;
  --accent-soft: #EEF1FF;
  --accent-fg: #FFFFFF;
  --success: #0F9D58;
  --warn: #E8A317;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  /* Spacing density (modifiable via tweaks) */
  --density: 1;
  --s-1: calc(4px * var(--density));
  --s-2: calc(8px * var(--density));
  --s-3: calc(12px * var(--density));
  --s-4: calc(16px * var(--density));
  --s-5: calc(24px * var(--density));
  --s-6: calc(32px * var(--density));
  --s-7: calc(48px * var(--density));
  --s-8: calc(64px * var(--density));
  --s-9: calc(96px * var(--density));
  --s-10: calc(128px * var(--density));

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,18,32,0.04), 0 1px 3px rgba(10,18,32,0.04);
  --shadow-md: 0 2px 6px rgba(10,18,32,0.05), 0 8px 24px rgba(10,18,32,0.06);
  --shadow-lg: 0 8px 32px rgba(10,18,32,0.08), 0 24px 64px rgba(10,18,32,0.08);

  /* Accent shape radius — tweakable */
  --accent-shape-radius: 16px;

  /* Fixed navbar: reserved space so content is not hidden under the bar */
  --nav-bar-height: 76px;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #07091A;
  --bg-elevated: #0E1228;
  --bg-muted: #14182F;
  --bg-inverse: #F6F6F9;
  --fg: #F6F6F9;
  --fg-muted: #9BA2B4;
  --fg-subtle: #6A7186;
  --border: #1E2340;
  --border-strong: #2C3157;
  --accent: #6B8CFF;
  --accent-hover: #8AA3FF;
  --accent-soft: rgba(107, 140, 255, 0.12);
  --accent-fg: #07091A;
}

/* Warm theme */
[data-theme="warm"] {
  --bg: #F6F1E9;
  --bg-elevated: #FDF9F2;
  --bg-muted: #EDE5D5;
  --fg: #1A1410;
  --fg-muted: #6B5E52;
  --fg-subtle: #9A8C7C;
  --border: #E1D6C2;
  --border-strong: #C8B99E;
  --accent: #B4542D;
  --accent-hover: #9A4423;
  --accent-soft: #F4E4D6;
  --accent-fg: #FFFFFF;
}

/* Typography pairings (tweakable) */
[data-type="inter"] {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif;
}
[data-type="grotesk"] {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}
[data-type="serif-display"] {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
}
[data-type="mono-display"] {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'JetBrains Mono', monospace;
}

/* ----- Base ----- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s, color 0.3s;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; font-weight: 560; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }
p  { color: var(--fg-muted); }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Shared layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
section { padding: var(--s-9) 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--fg);
  background: var(--bg-muted);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Theme switch */
.theme-switch {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.theme-switch-track {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.theme-switch-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateX(0);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.theme-switch-thumb::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--warn);
  transition: background 0.25s ease, transform 0.25s ease;
}
.theme-switch.is-dark .theme-switch-track {
  background: color-mix(in oklab, var(--accent) 22%, var(--bg-muted));
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border-strong));
}
.theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(22px);
}
.theme-switch.is-dark .theme-switch-thumb::before {
  background: var(--accent);
  transform: scale(0.92);
}
.theme-switch:focus-visible .theme-switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----- Nav ----- */
#nav-slot {
  min-height: var(--nav-bar-height);
}
/* SPA (Vite/React): nav is fixed; offset first <main> so the hero is not under the bar */
#root > .nav + main {
  padding-top: var(--nav-bar-height);
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-6);
  position: relative;
  z-index: 2;
}
.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-width: min(260px, 48vw);
}
/* Full-width SVG — sizing only. NEVER set `display` here: it overrode the light/dark swap and showed both logos. */
.nav .nav-brand .nav-logo-img {
  width: clamp(180px, 34vw, 280px);
  max-width: 100%;
  height: auto;
  min-height: 40px;
  max-height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: top;
}
.nav-brand .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--accent-shape-radius);
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
  transition: border-radius 0.3s;
}
.nav-logo-img {
  object-fit: contain;
}
/* Exactly one logo at a time (nav + footer both use .nav-brand on the logo link). */
.nav-brand .nav-logo--light {
  display: block;
}
.nav-brand .nav-logo--dark {
  display: none;
}
html[data-theme="dark"] .nav-brand .nav-logo--light {
  display: none;
}
html[data-theme="dark"] .nav-brand .nav-logo--dark {
  display: block;
}
.nav-links {
  display: flex;
  gap: var(--s-5);
  margin-left: var(--s-6);
  list-style: none;
}
.footer-brand .nav-brand.footer-brand-logo,
.footer-brand-logo {
  min-width: min(240px, 90vw);
}
.footer-logo {
  width: clamp(160px, 55vw, 240px);
  max-width: 100%;
  height: auto;
  min-height: 32px;
  max-height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 6px 2px;
  position: relative;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger:hover {
  border-color: var(--fg-muted);
}
.nav-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: color-mix(in oklab, var(--fg) 14%, transparent);
}
.nav-scrim:not([hidden]) {
  pointer-events: auto;
}

/* Services mega-menu
   Padding on the <li> bridges the old margin gap so the pointer can move
   from "Services" to the panel without leaving the hover/mouseenter zone. */
.nav-dropdown {
  position: relative;
  padding-bottom: 10px;
}
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  opacity: 0.5;
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% - 2px);
  left: -16px;
  margin-top: 0;
  width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.nav-dropdown.is-open .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (hover: hover) and (min-width: 961px) {
  .nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
.nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dropdown-item:hover { background: var(--bg-muted); }
.nav-dropdown-item .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  display: block;
  margin-bottom: 2px;
}
.nav-dropdown-item .desc {
  font-size: 12px;
  color: var(--fg-subtle);
  line-height: 1.4;
}

/* ----- Hero ----- */
.hero {
  padding: var(--s-10) 0 var(--s-9);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
.hero[data-layout="split"] .hero-inner {
  grid-template-columns: 1.1fr 1fr;
}
.hero-eyebrow {
  margin-bottom: var(--s-4);
}
.hero h1 {
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.hero .lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: var(--s-6);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.hero-trust {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  max-width: 640px;
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-trust-item .k {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.hero-trust-item .v {
  font-size: 12px;
  color: var(--fg-subtle);
}

/* Hero visual (terminal / dashboard preview) */
.hero-visual {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--accent-shape-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 420px;
}
.hero-visual-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}
.hero-visual-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-visual-chrome .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex: 1;
}
.hero-visual-body {
  padding: var(--s-5);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.hero-visual-body .k { color: var(--accent); }
.hero-visual-body .s { color: var(--success); }
.hero-visual-body .c { color: var(--fg-subtle); }
.hero-visual-body .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s infinite steps(2);
}
@keyframes blink { 50% { opacity: 0; } }

/* Hero layout: centered */
.hero[data-layout="center"] .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero[data-layout="center"] .hero-visual { display: none; }
.hero[data-layout="center"] .lead { margin-left: auto; margin-right: auto; }
.hero[data-layout="center"] .hero-ctas { justify-content: center; }
.hero[data-layout="center"] .hero-trust { justify-content: center; margin: 0 auto; border-top: 1px solid var(--border); padding-top: var(--s-5); }

/* Hero layout: minimal (no visual, left-aligned) */
.hero[data-layout="minimal"] .hero-inner {
  grid-template-columns: 1fr;
}
.hero[data-layout="minimal"] .hero-visual { display: none; }

/* ----- Trusted-by logos ----- */
.trusted {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-align: center;
  margin-bottom: var(--s-5);
}
.trusted-row {
  display: flex;
  gap: var(--s-5);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trusted-row .client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: var(--s-2) var(--s-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.trusted-row .client img {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 1;
}
@media (max-width: 600px) {
  .trusted-row .client img {
    height: 44px;
  }
}

/* ----- Section heading ----- */
.section-head {
  max-width: 720px;
  margin: 0 0 var(--s-7);
}
.section-head h2 { margin: var(--s-3) 0 var(--s-3); text-wrap: balance; }
.section-head p  { font-size: 17px; text-wrap: pretty; max-width: 600px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* ----- Services list (homepage) ----- */
.services-list {
  border-top: 1px solid var(--border);
}
.service-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.service-row-head {
  display: grid;
  grid-template-columns: 80px 1fr 2fr auto;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  cursor: pointer;
  transition: padding 0.2s;
}
.service-row-head:hover { background: var(--bg-muted); padding-left: var(--s-3); padding-right: var(--s-3); margin: 0 calc(-1 * var(--s-3)); }
.service-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 520;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.service-desc {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 520px;
}
.service-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  transition: all 0.2s;
  flex-shrink: 0;
}
.service-row.open .service-toggle {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: rotate(45deg);
}
.service-toggle svg { width: 16px; height: 16px; }
.service-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.service-row.open .service-row-body { max-height: 800px; }
.service-row-body-inner {
  padding: 0 0 var(--s-7) 112px;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: var(--s-7);
}
.service-body-left h4 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: var(--s-3);
  font-family: var(--font-mono);
}
.service-features { list-style: none; }
.service-features li {
  padding: 8px 0;
  color: var(--fg-muted);
  font-size: 14.5px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.service-features li:first-child { border-top: none; padding-top: 0; }
.service-features li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.pricing-card .pname {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 540;
  letter-spacing: -0.01em;
}
.pricing-card .pprice {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.pricing-card .pprice span {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-subtle);
  letter-spacing: 0;
}
.pricing-card .pdesc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}
.pricing-card .pcta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--s-2);
}
.pricing-card .pcta:hover { color: var(--accent); }
.pricing-card .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 4px;
}
.pricing-card .badge + .pname {
  padding-top: 18px;
}

.service-custom {
  background: var(--bg-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--s-5);
  font-size: 14px;
  color: var(--fg-muted);
  text-align: center;
}
.service-custom strong { color: var(--fg); font-weight: 540; }

/* ----- Products (SaaS) ----- */
.products {
  padding: var(--s-9) 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--accent-shape-radius);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.product-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--accent-shape-radius);
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  transition: border-radius 0.3s;
}
.product-card[data-product="pageone"] .product-icon { background: var(--accent); color: var(--accent-fg); }
.product-card .pcname {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.product-card .pctag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: var(--s-3);
}
.product-preview {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  line-height: 1.7;
  min-height: 140px;
  margin-top: var(--s-3);
}
.product-preview .k { color: var(--accent); }
.product-preview .s { color: var(--success); }

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.product-meta .pcta {
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.product-card:hover .pcta { color: var(--accent); }

/* ----- Process ----- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.process-step {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.process-step:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.process-step .step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.process-step .step-n::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.process-step h4 {
  font-size: 17px;
  margin-bottom: var(--s-2);
  font-weight: 540;
}
.process-step p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-muted);
}

/* ----- Differentiators ----- */
.diffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.diff h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 540;
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.diff h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.diff p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ----- Blog preview ----- */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  text-decoration: none;
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.blog-card .thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 12px,
    color-mix(in oklab, var(--fg) 4%, transparent) 12px,
    color-mix(in oklab, var(--fg) 4%, transparent) 13px
  );
}
.blog-card .thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  text-transform: uppercase;
}
.blog-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  display: flex;
  gap: var(--s-2);
  align-items: center;
}
.blog-card .meta span + span::before {
  content: '·';
  margin-right: var(--s-2);
}
.blog-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 540;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--fg);
}
.blog-card:hover h4 { color: var(--accent); }
.blog-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ----- CTA strip ----- */
.cta-strip {
  margin-top: var(--s-8);
  padding: var(--s-8) var(--s-7);
  background: var(--bg-inverse);
  color: var(--bg);
  border-radius: var(--accent-shape-radius);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
.cta-strip h2 {
  color: inherit;
  font-size: clamp(26px, 3vw, 38px);
  text-wrap: balance;
  max-width: 640px;
}
.cta-strip p {
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  font-size: 15px;
  margin-top: var(--s-3);
  max-width: 500px;
}
.cta-strip .btn-primary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
}
.cta-strip .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.cta-strip .btn-secondary {
  color: var(--bg);
  border-color: color-mix(in oklab, var(--bg) 30%, transparent);
}
.cta-strip .btn-secondary:hover {
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border-color: var(--bg);
}

/* ----- Footer ----- */
.footer {
  padding: var(--s-8) 0 var(--s-5);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  max-width: 360px;
}
.footer-brand .nav-brand { margin-bottom: var(--s-3); font-size: 17px; }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  font-size: 12.5px;
  color: var(--fg-subtle);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom .socials {
  display: flex;
  gap: var(--s-3);
}
.footer-bottom .socials a:hover { color: var(--accent); }

/* ----- Sub-page hero ----- */
.page-hero {
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.page-hero .eyebrow { margin-bottom: var(--s-3); }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: var(--s-4);
  text-wrap: balance;
  max-width: 900px;
}
.page-hero .lead {
  font-size: 18px;
  max-width: 640px;
  color: var(--fg-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.page-hero-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-6);
  align-items: end;
}
.page-hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.page-hero-meta .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.page-hero-meta .row .l { color: var(--fg-subtle); }
.page-hero-meta .row .r { color: var(--fg); }

/* ----- Generic content grid ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.two-col h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: var(--s-3); }
.two-col .body p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: var(--s-4);
  color: var(--fg-muted);
}
.two-col .body p:last-child { margin-bottom: 0; }
.two-col .body h3 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  font-size: 20px;
}

/* ----- Image placeholders ----- */
.placeholder {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    color-mix(in oklab, var(--fg) 4%, transparent) 14px,
    color-mix(in oklab, var(--fg) 4%, transparent) 15px
  );
}
.placeholder .label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Full pricing page */
.pricing-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
  /* Equal height per row; CTAs get margin-top: auto to sit on one line across the row */
  align-items: stretch;
}
.pricing-full-seo {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-content: center;
}
/* Application hosting — three placeholder tiers, centered */
.pricing-full-app {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.pricing-full .pricing-card {
  height: 100%;
  min-height: 0;
  padding: var(--s-4) var(--s-5) var(--s-5);
  gap: var(--s-2);
  box-sizing: border-box;
}
/* Don’t let summary rows absorb flex space (global .pdesc { flex: 1 } stretches cards) */
.pricing-full .pricing-card .pdesc {
  flex: 0 0 auto;
}
.pricing-full .pricing-card .badge + .pname {
  padding-top: 12px;
}
.pricing-full .pprice {
  font-size: 32px;
  margin-bottom: 0;
  line-height: 1.1;
}
.pricing-full .pplan-note {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--fg-subtle);
}
.pricing-full .pfeatures {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}
.pricing-full .pfeatures li {
  font-size: 13.5px;
  color: var(--fg-muted);
  display: flex;
  gap: 8px;
  line-height: 1.35;
}
.pricing-full .pfeatures li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
/* Pin CTAs to the card bottom on equal-height rows (no flex:1 gap in the middle) */
.pricing-full .pricing-card > a.btn,
.pricing-full .pricing-card > .btn {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
}

.seo-feature-grid {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.seo-feature {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
}
.seo-feature h3 {
  font-size: 20px;
  margin-bottom: var(--s-3);
  font-weight: 540;
}
.seo-feature p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Application hosting: even card heights per row, copy top-aligned */
.app-hosting-benefits.seo-feature-grid {
  align-items: stretch;
}
.app-hosting-benefits .seo-feature {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.app-hosting-benefits .seo-feature p {
  flex: 1 1 auto;
  line-height: 1.5;
  margin-bottom: 0;
}
.app-hosting-benefits .seo-feature h3 {
  margin-bottom: var(--s-2);
  font-size: 18px;
}

.seo-workflow {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.seo-step {
  border-top: 1px solid var(--fg);
  padding-top: var(--s-4);
}
.seo-step .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: var(--s-3);
}
.seo-step h3 {
  font-size: 22px;
  margin-bottom: var(--s-2);
  font-weight: 540;
}
.seo-step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.seo-compare-wrap {
  margin-top: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: auto;
  background: var(--bg-elevated);
}
.seo-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.seo-compare th,
.seo-compare td {
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.seo-compare th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  background: var(--bg);
}
.seo-compare td {
  color: var(--fg-muted);
}
.seo-compare td:first-child {
  color: var(--fg);
  font-weight: 520;
}
.seo-compare tbody tr:last-child td {
  border-bottom: 0;
}

.seo-faq {
  margin-top: var(--s-6);
  display: grid;
  gap: 12px;
}
.seo-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  padding: 16px 18px;
}
.seo-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 540;
  color: var(--fg);
  padding-right: 28px;
  position: relative;
}
.seo-faq-item summary::-webkit-details-marker {
  display: none;
}
.seo-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 20px;
  color: var(--fg-subtle);
}
.seo-faq-item[open] summary::after {
  content: '−';
}
.seo-faq-item p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* About page: team / values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.value-card {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--fg);
}
.value-card .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: var(--s-3);
}
.value-card h3 { font-size: 22px; margin-bottom: var(--s-3); font-weight: 540; }
.value-card p { font-size: 14.5px; line-height: 1.55; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 560;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-2);
  color: var(--fg);
}
.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.contact-info .contact-row {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
}
.contact-info .contact-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s-2);
}
.contact-info .contact-row .v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 540;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.contact-info .contact-row p {
  margin-top: var(--s-2);
  font-size: 13.5px;
  color: var(--fg-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 6px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form .chip {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  background: var(--bg);
  color: var(--fg);
  transition: all 0.15s;
}
.form .chip:hover { border-color: var(--fg); }
.form .chip.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ----- Tweaks panel ----- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-height: 80vh;
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-4);
  z-index: 1000;
  display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweak-group { margin-bottom: var(--s-4); }
.tweak-group > label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
}
.tweak-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.tweak-options.single { grid-template-columns: 1fr; }
.tweak-options.triple { grid-template-columns: repeat(3, 1fr); }
.tweak-btn {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: center;
  transition: all 0.12s;
}
.tweak-btn:hover { border-color: var(--fg-muted); color: var(--fg); }
.tweak-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tweak-group input[type="text"],
.tweak-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
}
.tweak-group textarea { min-height: 52px; resize: vertical; }
.tweaks-panel .close {
  background: none;
  border: none;
  color: var(--fg-subtle);
  cursor: pointer;
  padding: 4px;
}

/* ----- Account pages ----- */
.account-shell {
  padding: var(--s-9) 0;
}
.account-card {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--s-4);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.1fr);
  gap: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(
    145deg,
    color-mix(in oklab, var(--bg-elevated) 94%, var(--accent-soft)) 0%,
    var(--bg-elevated) 62%
  );
  box-shadow: var(--shadow-md);
}
.account-intro {
  padding: var(--s-6);
  border-radius: var(--r-md);
  background: color-mix(in oklab, var(--bg-muted) 75%, transparent);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.account-intro h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: var(--s-3) 0;
  line-height: 1.08;
}
.account-intro p {
  font-size: 16px;
  max-width: 42ch;
}
.account-bullets {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-bullets span {
  font-size: 13px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.account-bullets span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.account-switch {
  margin-top: var(--s-2);
  font-size: 14px;
}
.account-switch a {
  color: var(--accent);
}
.account-switch a:hover {
  text-decoration: underline;
}

/* ----- Customer dashboard ----- */
.dashboard-shell {
  padding: var(--s-9) 0;
}
.dashboard-head {
  margin-bottom: var(--s-6);
}
.dashboard-head h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: var(--s-3) 0;
  max-width: 18ch;
  line-height: 1.05;
}
.dashboard-head p {
  max-width: 760px;
  font-size: 16px;
}
.dashboard-services {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.service-account-card {
  padding: var(--s-5);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--bg-elevated) 90%, var(--accent-soft)) 0%,
    var(--bg-elevated) 100%
  );
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  box-shadow: var(--shadow-sm);
}
.service-account-summary h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: var(--s-3) 0 var(--s-2);
  line-height: 1.12;
}
.service-account-meta {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.service-account-meta .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: block;
  margin-bottom: 4px;
}
.service-account-meta .v {
  font-size: 15px;
  color: var(--fg);
}
.service-account-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: stretch;
  min-width: 180px;
}
.service-account-actions .btn {
  justify-content: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  color: var(--fg-subtle);
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill--active {
  border-color: color-mix(in oklab, var(--success) 45%, var(--border));
  color: var(--success);
  background: color-mix(in oklab, var(--success) 14%, var(--bg));
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.dashboard-panel {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.dashboard-panel h3 {
  font-size: 22px;
}
.dashboard-list-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s-3);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.dashboard-list-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dashboard-list {
  list-style: none;
}
.dashboard-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.dashboard-list li:first-child {
  border-top: 0;
}
.dashboard-list li > span {
  font-size: 14px;
  color: var(--fg-muted);
}
.dashboard-list li > span:nth-child(2) {
  color: var(--fg);
}
.dashboard-list--invoice li {
  grid-template-columns: 80px 1fr auto;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .nav .nav-brand .nav-logo-img {
    max-height: 48px;
    width: clamp(140px, 52vw, 220px);
  }
  .nav-burger {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100% - 48px, 400px);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(68px + env(safe-area-inset-top, 0)) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom, 0));
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  body.nav-menu-open .nav-menu {
    transform: translateX(0);
  }
  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    gap: var(--s-2);
  }
  .nav-menu .nav-actions {
    margin-left: 0;
    margin-top: auto;
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-menu .nav-actions .btn { justify-content: center; }
  .nav-menu .nav-actions .theme-switch { align-self: center; }
  body.nav-menu-open {
    overflow: hidden;
  }
  .nav-menu .nav-dropdown .nav-dropdown-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    margin-left: 0;
    left: auto;
    top: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-muted);
    box-shadow: none;
    border: 1px solid var(--border);
  }
  .nav-menu .nav-dropdown {
    position: static;
  }
  .nav-menu .nav-dropdown > a {
    display: block;
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-menu { transition: none; }
  }
  .hero[data-layout="split"] .hero-inner { grid-template-columns: 1fr; }
  .products-grid, .process-grid, .blog-preview-grid, .diffs, .stats-row,
  .values-grid, .contact-grid, .two-col, .footer-top, .pricing-full,
  .page-hero-row { grid-template-columns: 1fr; }
  .service-row-head { grid-template-columns: 60px 1fr auto; gap: var(--s-3); }
  .service-desc { display: none; }
  .service-row-body-inner { padding-left: 0; grid-template-columns: 1fr; gap: var(--s-5); }
  .cta-strip { grid-template-columns: 1fr; padding: var(--s-6); }
  .process-grid, .blog-preview-grid, .values-grid, .pricing-full,
  .seo-feature-grid, .seo-workflow { grid-template-columns: repeat(2, 1fr); }
  .service-account-card,
  .dashboard-grid,
  .service-account-meta {
    grid-template-columns: 1fr;
  }
  .account-card {
    grid-template-columns: 1fr;
  }
  .account-intro {
    padding: var(--s-5);
  }
  .service-account-actions {
    min-width: 0;
  }
  section { padding: var(--s-8) 0; }
}
@media (max-width: 600px) {
  .process-grid, .blog-preview-grid, .values-grid, .pricing-full,
  .seo-feature-grid, .seo-workflow,
  .products-grid, .stats-row { grid-template-columns: 1fr; }
  .seo-faq-item summary { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
}

/* ----- Billing period toggle (monthly / yearly) ----- */
.section-head-row .billing-toggle {
  flex-shrink: 0;
  align-self: flex-start;
}
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-muted);
  border-radius: 100px;
  border: 1px solid var(--border);
  gap: 2px;
}
.billing-toggle button {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.billing-toggle button:hover {
  color: var(--fg);
}
.billing-toggle button.active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.billing-toggle .save-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--success);
  margin-left: 6px;
}
.service-term-hint {
  border-bottom: 1px dotted var(--fg-subtle);
  cursor: help;
}

/* ----- Single post ----- */
.post-shell {
  padding-top: var(--s-8);
}
.post-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 44px);
  box-shadow: var(--shadow-sm);
}
.post-featured-image {
  margin-bottom: var(--s-5);
}
.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.post-content {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.75;
}
.post-content > * + * {
  margin-top: 1.1em;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--fg);
  line-height: 1.2;
  margin-top: 1.35em;
}
.post-content h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}
.post-content h3 {
  font-size: clamp(22px, 2.6vw, 30px);
}
.post-content p,
.post-content li {
  color: var(--fg-muted);
}
.post-content ul,
.post-content ol {
  margin-left: 1.3em;
}
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.2em 0;
  padding: 0.6em 1em;
  background: var(--bg-muted);
  border-radius: var(--r-sm);
}
.post-content pre {
  background: var(--bg-inverse);
  color: var(--bg);
  padding: 14px 16px;
  border-radius: var(--r-md);
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 13px;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.2em;
}
.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
}
.post-nav-row {
  max-width: 920px;
  margin: var(--s-5) auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.post-nav-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--fg);
  background: var(--bg-elevated);
  transition: all 0.18s ease;
}
.post-nav-row a:hover {
  border-color: var(--fg);
  background: var(--bg-muted);
}
