:root {
  --bg: #f6f8f8;
  --bg-elev: #ffffff;
  --text: #14201f;
  --muted: #5b6b6a;
  --border: #d7e0df;
  --brand: #0f6b6b;
  --brand-2: #3aa6a0;
  --accent: #c47a4a;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 10px 30px rgba(15, 40, 40, 0.06);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #0c1212;
  --bg-elev: #141c1c;
  --text: #e8f0ef;
  --muted: #9aabaa;
  --border: #243232;
  --brand: #4ec4bc;
  --brand-2: #2a8f8a;
  --accent: #e0a078;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.env-banner {
  background: #7a3e12;
  color: #fff8f0;
  text-align: center;
  font-size: .85rem;
  padding: .4rem .75rem;
  letter-spacing: .02em;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text); font-weight: 700;
}
.brand span span { color: var(--brand); }
.brand-mark { display: block; }
.brand-logo-main {
  display: block; width: 44px; height: 44px; object-fit: contain;
  border-radius: 12px; background: #fff;
}
.brand-lockup {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(260px, 55vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
@media (max-width: 480px) {
  .brand-lockup { height: 32px; max-width: 70vw; }
}
.footer-lockup {
  display: block; height: 32px; width: auto; max-width: 200px;
  object-fit: contain; margin-bottom: .35rem;
}
.bb-badge-link {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .7rem .35rem .35rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.bb-badge-link img {
  width: 28px; height: 28px; object-fit: contain; border-radius: 8px; background: #fff;
}
.bb-badge-link:hover { border-color: var(--brand); color: var(--brand); }
.footer-brand { display: flex; gap: .75rem; align-items: flex-start; }
.footer-mark {
  width: 40px; height: 40px; object-fit: contain; border-radius: 10px;
  background: #fff; flex-shrink: 0;
}
.footer-bottom-brand {
  display: inline-flex; align-items: center; gap: .4rem;
}
.footer-bottom-brand img {
  width: 20px; height: 20px; object-fit: contain; border-radius: 4px; background: #fff;
}
.hero-logo-main {
  width: min(280px, 70%); height: auto; object-fit: contain;
  border-radius: 24px; background: #fff;
}
html[data-theme="dark"] .hero-logo-main { background: #f4f7f6; }
.graphics-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.graphics-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
}

/* Landing */
.landing-main {
  max-width: 1080px;
  margin-inline: auto;
  padding-bottom: 1.5rem;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.75rem 2rem;
  align-items: center;
  margin: 0 0 2.25rem;
}
@media (max-width: 880px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.landing-hero-copy {
  min-width: 0;
}
.landing-hero-mascot {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
  margin: 0 0 .75rem;
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
  border: 1px solid var(--border);
}
.landing-hero-copy .badge {
  margin-bottom: .65rem;
}
.landing-hero-copy h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 .7rem;
}
.landing-hero-copy .lead {
  margin: 0 0 1.15rem;
  max-width: 34rem;
  font-size: 1.08rem;
}
.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0 0 1rem;
}
.landing-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  color: var(--muted);
}
.landing-trust li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.landing-trust li::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.landing-hero-media {
  min-width: 0;
}
.landing-hero-media .landing-video-wrap,
.landing-hero-media .video-placeholder {
  margin: 0;
}
.landing-section {
  margin: 0 0 2.25rem;
}
.landing-section-head {
  margin: 0 0 1rem;
}
.landing-section-head h2 {
  margin: 0 0 .3rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}
.landing-section-head .muted {
  margin: 0;
  max-width: 36rem;
}
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg)) 0%, var(--bg-elev) 55%, color-mix(in srgb, var(--brand-2) 12%, var(--bg)) 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  margin: .5rem 0 1.5rem;
}
.video-placeholder-inner {
  text-align: center;
  padding: 1.5rem;
  max-width: 28rem;
}
.video-placeholder .play-fake {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 1.6rem; margin: 0 auto .85rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent);
}
.landing-intro {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}
.landing-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 .65rem;
}
.landing-intro .lead {
  margin: 0 auto;
  font-size: 1.08rem;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin: 0;
}
@media (max-width: 720px) {
  .cta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .cta-grid { grid-template-columns: 1fr; }
}
.cta-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 100%;
}
.cta-tile:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}
.cta-tile-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: .25rem;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.cta-tile-label {
  font-size: 1.02rem;
  line-height: 1.25;
}
.cta-tile-hint {
  font-weight: 500;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.35;
}
.cta-tile:hover .cta-tile-hint { color: var(--brand-2); }
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
  margin: 0 0 1.25rem;
}
@media (max-width: 720px) {
  .landing-steps { grid-template-columns: 1fr; }
}
.landing-step {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.landing-step-n {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .55rem;
}
.landing-step h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.landing-step p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
}
.landing-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 800px) {
  .landing-split { grid-template-columns: 1fr; }
}
.landing-scene {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.landing-scene img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
}
.landing-scene-caption {
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--muted);
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}
.landing-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-start;
  margin: 0;
}

/* Auth + payment */
.auth-page { max-width: 28rem; }
.auth-card { padding: 1.25rem 1.35rem; }
.pay-card { padding: 1.35rem 1.4rem; max-width: 32rem; }
.pay-vipps-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
}
.pay-vipps-brand-inline {
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.pay-vipps-logo {
  display: block;
  height: 32px;
  width: auto;
  border-radius: 8px;
}
.btn-vipps-mark {
  display: inline-block;
  height: 18px;
  width: auto;
  margin-left: .45rem;
  vertical-align: -3px;
  border-radius: 4px;
}
.pay-vipps-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}
.auth-page .form label { display: block; margin-bottom: .75rem; }
.auth-page .form input[type="email"],
.auth-page .form input[type="password"],
.auth-page .form input[type="text"],
.auth-page .form input[type="date"] {
  width: 100%;
  margin-top: .3rem;
}
.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: .55rem;
  font-weight: 500;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: auto !important;
  margin-top: .2rem;
  flex-shrink: 0;
}
.check-row a { font-weight: 600; }

/* Brand page */
.brand-hero-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  padding: 1.25rem; border-radius: 16px; border: 1px solid var(--border);
  background: var(--bg-elev); margin-bottom: 1.5rem;
}
.brand-hero-strip img { max-height: 72px; width: auto; object-fit: contain; background: #fff; border-radius: 12px; }
.brand-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch {
  width: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  font-size: .7rem; text-align: center;
}
.swatch i { display: block; height: 40px; }
.swatch b { display: block; padding: .25rem; font-weight: 600; color: var(--muted); }
.brand-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .85rem;
}
.brand-asset-card {
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
  text-align: center;
}
.brand-asset-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.brand-asset-card a { font-size: .85rem; font-weight: 600; }
.download-kit {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
  margin: 1rem 0 1.75rem;
}
.nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.nav a:hover, .nav a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  border: 1.5px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.theme-toggle .theme-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.theme-toggle .theme-icon[hidden] {
  display: none !important;
}
.theme-toggle:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-elev));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.theme-toggle:active {
  transform: scale(.94);
}
html[data-theme="dark"] .theme-toggle {
  border-color: color-mix(in srgb, var(--border) 70%, #fff);
  background: color-mix(in srgb, var(--bg-elev) 88%, #fff);
}
html[data-theme="dark"] .theme-toggle:hover {
  border-color: #f0c14a;
  background: color-mix(in srgb, #f0c14a 12%, var(--bg-elev));
  box-shadow: 0 0 0 3px color-mix(in srgb, #f0c14a 20%, transparent);
}
.tagline-bar {
  font-size: .92rem; color: var(--muted); padding: .65rem 0 0; margin-bottom: 0;
}

.main { padding: 1.5rem 0 3rem; }
.hero {
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.5rem; align-items: center;
  margin: 1rem 0 2rem;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .nav { margin-left: 0; width: 100%; }
  .header-inner { flex-wrap: wrap; padding: .6rem 0; }
}
.hero-card, .card, .panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 1.5rem; }
.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -0.02em;
}
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 1.25rem; }
.hero-visual {
  display: grid; place-items: center; padding: 1.5rem; min-height: 240px;
}
.hero-visual img { width: min(280px, 100%); height: auto; border-radius: 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 999px; padding: .7rem 1.15rem; font-weight: 650; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; font-size: .95rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card { padding: 1.15rem 1.25rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.section-title {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin: 2rem 0 .9rem;
}
.section-title h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }

.chart-box {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem; box-shadow: var(--shadow);
}
.chart { width: 100%; height: 360px; }
.chart-sm { height: 280px; }
.chart-toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem;
}
.chart-toolbar label { font-size: .85rem; color: var(--muted); }
.chip {
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; cursor: pointer;
}
.chip.active { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--bg)); }

.hai-meter {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center;
}
.hai-score {
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--score) * 1%), var(--border) 0);
  position: relative;
}
.hai-score::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg-elev);
}
.hai-score strong {
  position: relative; z-index: 1; font-size: 1.4rem;
}

.price-cards .price {
  font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; margin: .4rem 0;
}
.price small, .price-period { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-cards .featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-cards .card.is-current-plan {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow);
  position: relative;
}
.price-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .15rem;
}
.badge-current-plan {
  background: var(--brand);
  color: #fff;
  letter-spacing: .03em;
}
.price-current-notice {
  margin: 1rem 0 0;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
}
.price-cta.is-current-cta {
  font-weight: 650;
}

/* Billing period toggle — Årlig default, vivid −30% */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 .25rem;
  user-select: none;
}
.billing-toggle-label {
  font-weight: 650;
  font-size: .95rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: color .15s ease;
}
.billing-toggle-label.is-active { color: var(--text); }
.billing-toggle-label-annual.is-active { color: var(--brand); }
.billing-toggle {
  position: relative;
  width: 3.25rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 22%, var(--bg-elev));
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.billing-toggle-wrap.is-monthly .billing-toggle {
  background: var(--bg-elev);
  border-color: var(--border);
  box-shadow: none;
}
.billing-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .18s ease;
}
.billing-toggle-wrap.is-annual .billing-toggle-knob,
.billing-toggle-wrap:not(.is-monthly) .billing-toggle-knob {
  transform: translateX(1.35rem);
  background: var(--brand);
}
.billing-toggle-wrap.is-monthly .billing-toggle-knob {
  transform: translateX(0);
  background: #fff;
}
.billing-discount-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 999px;
  color: #0a3d3a;
  background: linear-gradient(135deg, #7FD4CE, #3AA6A0 55%, #f0c14a);
  box-shadow: 0 0 0 1px color-mix(in srgb, #f0c14a 55%, transparent),
              0 2px 8px color-mix(in srgb, #3AA6A0 35%, transparent);
  animation: discount-pulse 2.4s ease-in-out infinite;
}
.billing-toggle-wrap.is-monthly .billing-discount-pill {
  opacity: .4;
  filter: grayscale(.4);
  animation: none;
  box-shadow: none;
}
@keyframes discount-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.price-sub {
  min-height: 1.6rem;
  margin: .15rem 0 .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  font-size: .9rem;
}
.price-discount-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  color: #0a3d3a;
  background: linear-gradient(135deg, #9ee8e2, #f0c14a);
  padding: .18rem .5rem;
  border-radius: 999px;
  letter-spacing: .01em;
}
.price-amount { font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand);
}

.form { display: grid; gap: .85rem; max-width: 560px; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }

.wizard-types {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem;
}
.wizard-types-rich {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.wizard-types button {
  text-align: left; padding: .85rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); cursor: pointer; font: inherit; font-weight: 600;
  display: flex; flex-direction: column; gap: .25rem; align-items: flex-start;
}
.wizard-types button span {
  font-weight: 400; font-size: .85rem; line-height: 1.35;
}
.wizard-types button:hover, .wizard-types button.selected {
  border-color: var(--brand); color: var(--brand);
}
.wizard-types button.selected {
  box-shadow: 0 0 0 1px var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
}
.project-checklist {
  list-style: none; padding: 0; margin: .5rem 0 0;
}
.project-checklist li {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.project-checklist li:last-child { border-bottom: 0; }
.project-checklist input[type="checkbox"] { margin-top: .2rem; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}
.tool-panel {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1rem;
  margin-top: .75rem;
}
.tool-panel h3 { margin: 0 0 .5rem; font-size: 1.05rem; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; }

.notice {
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  background: var(--bg-elev); padding: .85rem 1rem; border-radius: 10px; margin: 1rem 0;
}
.notice.warn { border-left-color: var(--accent); }
.notice.danger { border-left-color: var(--danger); }

.faq details {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
  padding: .75rem 1rem; margin-bottom: .55rem;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq .faq-body { color: var(--muted); margin-top: .5rem; }

.site-footer {
  border-top: 1px solid var(--border); margin-top: 2rem; padding: 2rem 0 1.5rem;
  background: color-mix(in srgb, var(--bg-elev) 80%, var(--bg));
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.25rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-links { list-style: none; padding: 0; margin: .4rem 0 0; }
.footer-links li { margin: .25rem 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.legal-block p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 1.5rem; font-size: .82rem;
}

.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; min-height: 70vh; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-nav {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
}
.admin-nav a { display: block; padding: .45rem 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.admin-nav a:hover, .admin-nav a.active { color: var(--brand); }

.logo-batch-nav {
  display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0 0;
}
.logo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.logo-card { padding: 1rem; position: relative; }
.logo-num {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.logo-img-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  padding: .5rem;
}
html[data-theme="dark"] .logo-img-wrap { background: #f4f7f6; }
.logo-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
}
.kpi { font-size: 1.6rem; font-weight: 750; }
.status-pill {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok);
}
.status-pill.open { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } }

.mono { font-family: var(--mono); font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Seed vs live honesty badges */
.origin-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .18rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 12%, var(--bg-elev));
  color: var(--muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.origin-badge.origin-seed {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.origin-badge.origin-live {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 35%, var(--border));
}
.origin-badge.origin-mixed {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
.source-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.chart-source-row { margin-bottom: .35rem; min-height: 1.4rem; }
.claim-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 6px;
  margin-left: .25rem;
  vertical-align: middle;
}
.claim-tag.claim-planned {
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
}
.claim-tag.claim-coming {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  color: var(--muted);
}
.price-card-coming { opacity: .92; }
.price-bullets { padding-left: 1.1rem; }
.price-bullets li { margin: .35rem 0; }
.notice.warn {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elev));
}
.tier-switcher .tier-switch-grid {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1rem;
}
.feature-mini-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem .75rem;
  font-size: .88rem;
}
.feature-mini-list .feat-on { color: var(--brand); font-weight: 600; }
.feature-mini-list .feat-off { opacity: .55; }
.tools-grid { gap: 1rem; margin-top: 1rem; }
.tool-card h2 { font-size: 1.15rem; margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tool-form { display: grid; gap: .55rem; }
.tool-form label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.tool-form input, .tool-form select, .tool-form textarea {
  font: inherit; font-weight: 500; padding: .55rem .65rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.tool-out {
  margin-top: .75rem; padding: .85rem 1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
  border: 1px solid var(--border); white-space: pre-wrap; font-size: .9rem;
  max-height: 360px; overflow: auto;
}
.tool-out.prose { white-space: normal; }
.tool-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.tool-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.table-wrap { overflow-x: auto; }

.landing-video-wrap {
  margin: 0 0 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1212;
  box-shadow: var(--shadow);
}
.landing-video-frame {
  position: relative;
  background: #0b1212;
  aspect-ratio: 16 / 9;
}
.landing-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: #0b1212;
  vertical-align: middle;
}
.landing-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(15, 23, 23, 0.55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  z-index: 2;
}
.landing-video-play:hover,
.landing-video-play:focus-visible {
  transform: scale(1.06);
  background: rgba(15, 23, 23, 0.72);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  outline: none;
}
.landing-video-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #fff;
}
.landing-video-wrap.is-playing .landing-video-play {
  display: none;
}
.landing-video-caption {
  margin: 0;
  padding: .55rem .9rem .7rem;
  font-size: .88rem;
  background: var(--bg-elev);
}
.project-checklist .checklist-links {
  display: block;
  margin: .2rem 0 .35rem 1.6rem;
  font-size: .82rem;
}
.project-checklist .checklist-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.project-checklist .checklist-link:hover { text-decoration: underline; }
.merge-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.merge-list li { padding: .45rem 0; border-bottom: 1px solid var(--border); }
.merge-list label { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; font-weight: 500; }
.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: baseline;
}
.project-list li:last-child { border-bottom: 0; }
.project-list a { color: var(--brand); font-weight: 650; text-decoration: none; }
.project-list a:hover { text-decoration: underline; }

/* Money inputs: thousands grouping while typing (narrow no-break space) */
input.input-money,
input[data-money="1"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1;
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  min-height: 0;
}
.ms-project-row .btn-sm {
  color: var(--danger, #b42318);
  border-color: color-mix(in srgb, var(--danger, #b42318) 35%, var(--border));
}
.ms-project-row .btn-sm:hover {
  background: color-mix(in srgb, var(--danger, #b42318) 10%, transparent);
}
