/* Acsaven brand ? warm haven character: trust, care, calm use */
:root,
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121614;
  --panel: #1a1f1c;
  --surface: #222824;
  --rim: #323a35;
  --ink: #f3f7f4;
  --muted: #aebbb3;
  --faint: #7f8f85;
  --brand: #4ade80;
  --brand-dim: #22c55e;
  --accent: #86efac;
  --love: #f0ab8c;
  --on-brand: #052e16;
  --shadow: 0 22px 56px rgb(0 0 0 / 0.45);
  --backdrop: rgb(12 16 14 / 0.72);
  --glow: color-mix(in srgb, var(--brand) 16%, transparent);
  --glow-warm: color-mix(in srgb, var(--love) 10%, transparent);
  --radius: 0.85rem;
  --radius-lg: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #eef2ed;
  --panel: #fbfcf9;
  --surface: #e2e8e2;
  --rim: #cfd7d0;
  --ink: #1a221c;
  --muted: #55635a;
  --faint: #7a887f;
  --brand: #0f7a4f;
  --brand-dim: #0b6240;
  --accent: #0f7a4f;
  --love: #d4785c;
  --on-brand: #fbfcf9;
  --shadow: 0 18px 48px rgb(26 34 28 / 0.1);
  --backdrop: rgb(26 34 28 / 0.4);
  --glow: color-mix(in srgb, var(--brand) 11%, transparent);
  --glow-warm: color-mix(in srgb, var(--love) 9%, transparent);
  --radius: 0.85rem;
  --radius-lg: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:not(.page-home) {
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, var(--glow), transparent 55%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand);
}

.wrap {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 0 0 3.5rem;
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rim) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
}

.site-header-inner {
  width: min(72rem, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  min-height: 2.75rem;
}

.header-end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.site-header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--brand);
}

.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--brand-dim), var(--brand));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  color: #042f2e;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: transparent;
  overflow: hidden;
}

.brand-logo-mark--hero {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.brand-hero-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-hero-lockup h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.brand-logo-hero {
  width: min(17.5rem, 100%);
  height: auto;
  display: block;
}

.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;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* No edge fade ? it was washing out the last link (Blog) */
  padding-inline-end: 0.15rem;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.82;
  transition:
    color 0.18s var(--ease),
    opacity 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.site-nav a:hover {
  color: var(--brand);
  opacity: 1;
}

.site-nav a[aria-current='page'] {
  color: var(--ink);
  opacity: 1;
  border-bottom-color: var(--brand);
  font-weight: 650;
}

html[data-theme='light'] .site-nav a {
  color: var(--ink);
  opacity: 0.88;
}

html[data-theme='light'] .site-nav a:hover,
html[data-theme='light'] .site-nav a[aria-current='page'] {
  opacity: 1;
}

.nav-sep {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin: 0 0.15rem;
  background: color-mix(in srgb, var(--rim) 90%, var(--muted));
  vertical-align: middle;
}

/* Header search ? matches utils sites: circular pill next to theme switch */
.site-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--rim);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.site-search-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.site-search-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .site-search-btn {
    transition: none;
  }
}

.search-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(70vh, 36rem);
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--rim);
  border-radius: 0.85rem;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 60;
}

.search-dialog::backdrop {
  background: var(--backdrop);
}

.search-dialog-form {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  margin: 0;
}

.search-dialog-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rim);
  color: var(--muted);
}

.search-dialog-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.search-dialog-close {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rim);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  overflow: auto;
  max-height: min(50vh, 22rem);
}

.search-empty {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result a {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  color: inherit;
}

.search-result.is-active a,
.search-result a:hover {
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
}

.search-result-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.search-result-title {
  font-weight: 600;
  color: var(--ink);
}

.search-result-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.search-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--rim);
  font-size: 0.8rem;
  color: var(--faint);
}

.search-dialog-hint kbd {
  font-size: 0.7rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
  padding: 2.5rem 0 1.5rem;
}

.hero-product {
  max-width: 48rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
}

.lead strong {
  color: var(--ink);
  font-weight: 650;
}

/* ---------- Home: cinematic chapters (Apple / Claude / Cyberpunk craft) ---------- */

.wrap--home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0;
}

.page-home {
  background: var(--bg);
}

.page-home .site-footer {
  margin-top: 0;
}

.stage {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
  border-radius: 0.75rem;
}

.cinema-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100vh, 58rem);
  padding: 6.5rem 1.25rem 5rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cinema-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cinema-hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 42% at 50% 38%, color-mix(in srgb, var(--brand) 36%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 55% at 12% 78%, color-mix(in srgb, var(--love) 14%, transparent), transparent 58%),
    radial-gradient(ellipse 65% 50% at 88% 22%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, #050807) 0%, var(--bg) 100%);
}

.cinema-hero-drift {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, var(--bg) 100%);
  opacity: 1;
}

.cinema-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(44rem, 100%);
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.cinema-hero-character {
  position: relative;
  display: block;
  width: min(42vw, 11.5rem);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
  left: auto;
  top: auto;
  opacity: 1;
  filter: drop-shadow(0 16px 36px color-mix(in srgb, var(--brand) 32%, transparent));
  animation: haven-bob 9s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
  object-fit: contain;
}

.cinema-brand {
  margin: 0;
  font-size: clamp(3.6rem, 12vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 750;
  color: var(--ink);
  text-align: center;
  animation: cinema-rise 0.9s var(--ease, ease) both;
}

.cinema-promise {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  animation: cinema-rise 0.9s var(--ease, ease) 0.08s both;
}

.cinema-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.55rem;
  animation: cinema-rise 0.9s var(--ease, ease) 0.14s both;
}

@keyframes cinema-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinema-mark {
  from {
    opacity: 0.14;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0.22;
    transform: translate(-50%, -52%) scale(1.04);
  }
}

@keyframes haven-bob {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-0.45rem) scale(1.03);
  }
}

.home-display {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
}

.home-display--sm {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.home-credo {
  padding: 5rem 0 4rem;
  border-top: 1px solid color-mix(in srgb, var(--rim) 80%, transparent);
  background: color-mix(in srgb, var(--panel) 55%, var(--bg));
}

.home-credo .home-display {
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.credo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 800px) {
  .credo-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.credo-list li {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
}

.credo-list strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.credo-list span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.family-section {
  padding: 4.5rem 0 2.5rem;
  scroll-margin-top: 4.5rem;
}

.family-intro-inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 0.5rem;
}

.family-intro-lead {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Full-bleed stacked product chapters ? centered, gradient-led */
.product-chapter {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(62vh, 30rem);
  margin: 0;
  padding: 4.75rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
  --chapter: var(--brand);
  --chapter-dim: var(--brand-dim);
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--chapter) 16%, transparent);
  box-shadow: none;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--chapter) 30%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 60% at 0% 100%, color-mix(in srgb, var(--chapter-dim) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 60% at 100% 85%, color-mix(in srgb, var(--chapter) 18%, transparent), transparent 55%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--bg) 45%, #040605) 0%,
      color-mix(in srgb, var(--panel) 70%, var(--chapter)) 48%,
      color-mix(in srgb, var(--bg) 78%, #020403) 100%
    );
}

html[data-theme='light'] .product-chapter {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--chapter) 18%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 60% at 0% 100%, color-mix(in srgb, var(--chapter) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 60% at 100% 85%, color-mix(in srgb, var(--chapter-dim) 10%, transparent), transparent 55%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--panel) 96%, var(--chapter)) 0%,
      var(--panel) 50%,
      color-mix(in srgb, var(--bg) 80%, var(--chapter)) 100%
    );
  border-top-color: color-mix(in srgb, var(--chapter) 14%, var(--rim));
}

.product-chapter-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.product-chapter-wash {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--chapter) 22%, transparent), transparent 52%),
    radial-gradient(circle at 75% 60%, color-mix(in srgb, var(--chapter-dim) 16%, transparent), transparent 48%);
  opacity: 0.9;
}

.product-chapter-wash--2 {
  inset: auto;
  left: 50%;
  top: 8%;
  width: min(70vw, 34rem);
  height: min(40vw, 18rem);
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--chapter) 28%, transparent), transparent 70%);
  filter: blur(8px);
  opacity: 0.55;
}

.product-chapter-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  width: min(40rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.product-chapter-copy {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.product-chapter-lane {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chapter);
  text-shadow: 0 0 18px color-mix(in srgb, var(--chapter) 40%, transparent);
}

.product-chapter-name {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 750;
  color: var(--ink);
  text-align: center;
}

.product-chapter-line {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.product-chapter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.product-chapter-icon {
  width: clamp(4.75rem, 11vw, 6.25rem);
  height: auto;
  border-radius: 1.2rem;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chapter) 35%, transparent),
    0 0 36px color-mix(in srgb, var(--chapter) 28%, transparent),
    0 14px 32px rgb(0 0 0 / 0.3);
  transition: transform 0.35s var(--ease, ease), box-shadow 0.35s var(--ease, ease);
}

.product-chapter:hover .product-chapter-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chapter) 55%, transparent),
    0 0 52px color-mix(in srgb, var(--chapter) 40%, transparent),
    0 18px 40px rgb(0 0 0 / 0.36);
}

.product-chapter--trydevsnip {
  --chapter: #0369a1;
  --chapter-dim: #075985;
}

.product-chapter--trycalculatingnow {
  --chapter: #b45309;
  --chapter-dim: #92400e;
}

.product-chapter--trytokka {
  --chapter: #047857;
  --chapter-dim: #065f46;
}

.product-chapter--tryquickimg {
  --chapter: #6d28d9;
  --chapter-dim: #5b21b6;
}

html[data-theme='dark'] .product-chapter--trydevsnip {
  --chapter: #38bdf8;
  --chapter-dim: #0ea5e9;
}

html[data-theme='dark'] .product-chapter--trycalculatingnow {
  --chapter: #fbbf24;
  --chapter-dim: #d97706;
}

html[data-theme='dark'] .product-chapter--trytokka {
  --chapter: #34d399;
  --chapter-dim: #10b981;
}

html[data-theme='dark'] .product-chapter--tryquickimg {
  --chapter: #a78bfa;
  --chapter-dim: #8b5cf6;
}

.product-chapter .btn-primary {
  background: linear-gradient(145deg, var(--chapter-dim), var(--chapter));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 24px color-mix(in srgb, var(--chapter) 28%, transparent);
}

html[data-theme='dark'] .product-chapter--trycalculatingnow .btn-primary,
html[data-theme='dark'] .product-chapter--trydevsnip .btn-primary,
html[data-theme='dark'] .product-chapter--tryquickimg .btn-primary {
  color: #0c1924;
}

.product-chapter .btn-ghost {
  border-color: color-mix(in srgb, var(--chapter) 40%, var(--rim));
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}

.product-chapter .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--chapter) 65%, var(--rim));
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .product-chapter:hover .product-chapter-icon {
    transform: none;
  }
}

.product-hero-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.product-hero-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  flex-shrink: 0;
  display: block;
}

.product-hero-lockup h1 {
  margin: 0;
}

.card--product {
  gap: 0.4rem;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  margin-bottom: 0.25rem;
}

.product-about-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.product-about-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--rim);
}

.product-about-item:last-child {
  border-bottom: 1px solid var(--rim);
}

.product-about-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  flex-shrink: 0;
}

.product-about-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-about-tag {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.home-human {
  padding: 5rem 0 5.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--glow), transparent 65%),
    var(--bg);
}

.home-human-inner {
  max-width: 36rem;
}

.home-human-lead {
  margin: 1.1rem auto 0;
  font-size: 1.1rem;
  color: var(--muted);
}

.home-human-mail {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-notes {
  padding: 4.5rem 0 4rem;
  border-top: 1px solid color-mix(in srgb, var(--rim) 80%, transparent);
  background: color-mix(in srgb, var(--panel) 78%, var(--bg));
  scroll-margin-top: 4.5rem;
}

.home-notes-intro {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-notes-lead {
  margin: 0.85rem auto 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.home-notes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .home-notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.home-note-card {
  margin: 0;
  min-height: 100%;
}

.home-note-card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  height: 100%;
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius-lg, 1.25rem);
  border: 1px solid var(--rim);
  background: var(--panel);
  color: var(--ink);
  transition:
    transform 0.22s var(--ease, ease),
    border-color 0.22s var(--ease, ease),
    box-shadow 0.22s var(--ease, ease);
}

.home-note-card a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--rim));
  box-shadow: var(--shadow);
  color: var(--ink);
}

.home-note-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.home-note-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.home-note-card a:hover .home-note-title {
  color: var(--brand);
}

.home-note-summary {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  flex: 1 1 auto;
}

.home-note-cta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.home-notes-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

html.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cinema-brand,
  .cinema-promise,
  .cinema-cta,
  .cinema-hero-drift,
  .cinema-hero-character {
    animation: none;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-tile:hover,
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* keep older .lead strong override removed conflict ? brand-tinted strong for product pages */
.hero-product .lead strong {
  color: var(--brand);
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9em;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  font-size: 0.75rem;
  color: var(--muted);
}

.section-title {
  margin: 2rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

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

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg, 1.25rem);
  border: 1px solid transparent;
  background: var(--panel);
  color: inherit;
  transition:
    transform 0.22s var(--ease, ease),
    background 0.22s var(--ease, ease),
    box-shadow 0.22s var(--ease, ease);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--panel) 88%, var(--brand));
}

.card-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-blurb {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel {
  margin-top: 1.75rem;
  padding: 1.5rem 0 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--rim);
  background: transparent;
}

.panel h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}

.panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.feature-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-list li + li {
  margin-top: 0.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius, 0.85rem);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    transform 0.18s var(--ease, ease),
    background 0.18s var(--ease, ease),
    border-color 0.18s var(--ease, ease),
    color 0.18s var(--ease, ease),
    opacity 0.18s var(--ease, ease);
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  color: var(--on-brand);
  filter: brightness(1.06);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.8rem;
}

.btn-ghost {
  border-color: color-mix(in srgb, var(--rim) 80%, var(--ink));
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: var(--ink);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.social a {
  color: var(--faint);
}

.social a:hover {
  color: var(--ink);
}

/* Site footer ? Apple-like clean columns */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rim);
  background: color-mix(in srgb, var(--panel) 70%, var(--bg));
}

.site-footer-inner {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 3.25rem 0 1.75rem;
}

.site-footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.footer-brand-lockup:hover {
  color: var(--ink);
  opacity: 0.95;
  filter: brightness(1.06);
}

.footer-brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
  display: block;
}

.footer-brand-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand-tagline {
  margin: 0;
  max-width: 20rem;
  font-size: 0.75rem;
  line-height: 1.55;
}

.footer-brand-tagline-head {
  display: block;
  font-weight: 600;
  color: var(--brand);
}

.footer-brand-tagline-sub {
  display: block;
  margin-top: 0.15rem;
  color: color-mix(in srgb, var(--muted) 86%, transparent);
}

.footer-brand-meta,
.footer-brand-parent {
  margin: 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.footer-brand-parent strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.1rem;
}

.footer-social-link {
  display: inline-flex;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.footer-heading {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--brand);
}

.footer-link-strong {
  font-weight: 600;
  color: var(--ink);
}

.site-footer-family {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--rim) 85%, transparent);
}

.footer-family-note {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-family-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

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

@media (min-width: 900px) {
  .footer-family-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-family-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.15rem;
  align-items: start;
  height: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--rim);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  text-decoration: none;
  transition:
    transform 0.18s var(--ease, ease),
    border-color 0.18s ease,
    box-shadow 0.22s ease;
}

.footer-family-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--rim));
  box-shadow: var(--shadow);
}

.footer-family-icon {
  grid-row: 1 / span 2;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  margin-top: 0.1rem;
}

.footer-family-name {
  font-weight: 600;
  color: var(--brand);
  font-size: 0.9rem;
}

.footer-family-blurb {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.site-footer-bar {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--rim) 80%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer-bar p {
  margin: 0;
}

@media (min-width: 640px) {
  .site-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer-bar-note {
  opacity: 0.85;
}

/* Theme switch ? Light / Dark / System (utility-site pattern) */
.theme-switch {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 4px;
  border-radius: 9999px;
  background: var(--panel);
  border: 1px solid var(--rim);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent);
  flex-shrink: 0;
  align-self: center;
}

.theme-switch--pending {
  pointer-events: none;
}

.theme-switch--ready {
  pointer-events: auto;
}

.theme-switch--compact .theme-switch-btn {
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
}

.theme-switch-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-switch-btn:hover {
  color: var(--ink);
}

.theme-switch-btn[aria-pressed='true'] {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--rim);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
}

html[data-theme='dark'] .theme-switch-btn[aria-pressed='true'] {
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
  border-color: color-mix(in srgb, var(--brand) 28%, var(--rim));
}

.theme-switch-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: inherit;
  pointer-events: none;
}

/* Long-form marketing content */
.panel-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.capability-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

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

.capability-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--rim);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

.capability-name {
  font-weight: 600;
  color: var(--brand);
}

.capability-blurb {
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-band {
  margin: 2rem 0;
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--rim));
  background: color-mix(in srgb, var(--brand) 10%, var(--panel));
}

.cta-band-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.cta-band-copy {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.faq-list {
  margin: 0.85rem 0 0;
}

.faq-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rim);
}

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

.faq-item dt {
  font-weight: 600;
  color: var(--ink);
}

.faq-item dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 42rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--ink);
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.post-list-card,
.post-list > li {
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--rim);
  background: var(--panel);
}

.post-list-title {
  font-weight: 700;
  color: var(--brand);
}

.post-list-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--faint);
}

.post-list-summary {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--rim);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

/* ---------- Product hub skins (match official .com brand colors) ---------- */
/* TryQuickImg violet | TryDevSnip sky | TryCalculatingNow amber | TryTokka emerald */

.product-skin {
  --product-glow: color-mix(in srgb, var(--brand) 16%, transparent);
  --product-glow-dim: color-mix(in srgb, var(--brand-dim) 14%, transparent);
}

.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.product-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  flex-shrink: 0;
}

.product-skin .hero-product .lead strong,
.product-skin .card-name,
.product-skin .capability-name,
.product-skin .cta-band-title {
  color: var(--brand);
}

.product-skin .capability-card:hover,
.product-skin .card:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--rim));
}

.product-skin .btn-primary {
  background: linear-gradient(145deg, var(--brand-dim), var(--brand));
  color: var(--on-brand);
  border-color: transparent;
  box-shadow: 0 0 24px color-mix(in srgb, var(--brand) 28%, transparent);
}

.product-skin .btn-ghost {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--rim));
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}

.product-skin .btn-ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 65%, var(--rim));
  color: var(--ink);
}

.product-skin .cta-band {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--rim));
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 70% at 100% 100%, color-mix(in srgb, var(--brand-dim) 14%, transparent), transparent 50%),
    var(--panel);
}

/* Full-page brand wash ? same gradient logic as home product chapters */
body.page-product {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -8%, color-mix(in srgb, var(--brand) 34%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 0% 35%, color-mix(in srgb, var(--brand-dim) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%, color-mix(in srgb, var(--brand-dim) 16%, transparent), transparent 58%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--bg) 42%, #040605) 0%,
      color-mix(in srgb, var(--panel) 62%, var(--brand)) 46%,
      color-mix(in srgb, var(--bg) 78%, #020403) 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
}

html[data-theme='light'] body.page-product {
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -8%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 0% 35%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, color-mix(in srgb, var(--brand-dim) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 58%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--panel) 92%, var(--brand)) 0%,
      var(--panel) 48%,
      color-mix(in srgb, var(--bg) 78%, var(--brand)) 100%
    );
}

body.page-product .site-header {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-bottom-color: color-mix(in srgb, var(--brand) 18%, var(--rim));
}

body.page-product .wrap {
  background: transparent;
}

/* Shared tokens: body (page glow) + wrap (content accents) */
body.page-product--trydevsnip,
.product-skin--trydevsnip {
  --brand: #0369a1;
  --brand-dim: #075985;
  --accent: #0284c7;
  --on-brand: #ffffff;
  --love: #0369a1;
  --product-glow: color-mix(in srgb, #0369a1 14%, transparent);
}

html[data-theme='dark'] body.page-product--trydevsnip,
html[data-theme='dark'] .product-skin--trydevsnip {
  --brand: #38bdf8;
  --brand-dim: #0ea5e9;
  --accent: #7dd3fc;
  --on-brand: #0c4a6e;
  --love: #38bdf8;
  --product-glow: color-mix(in srgb, #38bdf8 16%, transparent);
}

body.page-product--trycalculatingnow,
.product-skin--trycalculatingnow {
  --brand: #b45309;
  --brand-dim: #92400e;
  --accent: #d97706;
  --on-brand: #ffffff;
  --love: #b45309;
  --product-glow: color-mix(in srgb, #b45309 14%, transparent);
}

html[data-theme='dark'] body.page-product--trycalculatingnow,
html[data-theme='dark'] .product-skin--trycalculatingnow {
  --brand: #fbbf24;
  --brand-dim: #f59e0b;
  --accent: #fcd34d;
  --on-brand: #422006;
  --love: #fbbf24;
  --product-glow: color-mix(in srgb, #fbbf24 16%, transparent);
}

body.page-product--trytokka,
.product-skin--trytokka {
  --brand: #047857;
  --brand-dim: #065f46;
  --accent: #0e7490;
  --on-brand: #ffffff;
  --love: #047857;
  --product-glow: color-mix(in srgb, #047857 14%, transparent);
}

html[data-theme='dark'] body.page-product--trytokka,
html[data-theme='dark'] .product-skin--trytokka {
  --brand: #34e89a;
  --brand-dim: #22c55e;
  --accent: #5af0a8;
  --on-brand: #042014;
  --love: #34e89a;
  --product-glow: color-mix(in srgb, #34e89a 16%, transparent);
}

body.page-product--tryquickimg,
.product-skin--tryquickimg {
  --brand: #6d28d9;
  --brand-dim: #5b21b6;
  --accent: #7c3aed;
  --on-brand: #ffffff;
  --love: #6d28d9;
  --product-glow: color-mix(in srgb, #6d28d9 14%, transparent);
}

html[data-theme='dark'] body.page-product--tryquickimg,
html[data-theme='dark'] .product-skin--tryquickimg {
  --brand: #a78bfa;
  --brand-dim: #8b5cf6;
  --accent: #c4b5fd;
  --on-brand: #1e1b4b;
  --love: #a78bfa;
  --product-glow: color-mix(in srgb, #a78bfa 16%, transparent);
}

html[data-theme='dark'] body.page-product--trycalculatingnow .product-skin .btn-primary,
html[data-theme='dark'] body.page-product--trydevsnip .product-skin .btn-primary,
html[data-theme='dark'] body.page-product--tryquickimg .product-skin .btn-primary {
  color: #0c1924;
}

/* Back to top ? Try family floating control */
.scroll-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--rim);
  background-color: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.25s,
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
  pointer-events: none;
}

.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-to-top--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
}

.scroll-to-top:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--rim));
  color: var(--brand);
  background-color: var(--surface);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.98);
}

.scroll-to-top--scrolling {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--rim));
  pointer-events: none;
}

.scroll-to-top--scrolling svg {
  animation: scroll-to-top-launch 1.1s ease-out infinite;
}

@keyframes scroll-to-top-launch {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-4px);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top,
  .scroll-to-top--scrolling svg {
    transition: none;
    animation: none;
  }
}

@media print {
  .scroll-to-top,
  #scroll-to-top {
    display: none !important;
  }
}
