/* ==========================================================================
   Findom Poland — findompl.pl
   Dark Romantic × Modern Warsaw Nightlife × Financial Power × BDSM Tension
   Single stylesheet. No framework.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout: wrap / section / grid
   5.  Buttons & links
   6.  Header & navigation
   7.  Hero & page hero
   8.  Role badges, status, meta
   9.  Profile cards & rails
   10. Data lists, panels, features, steps
   11. Editorial modules (compare, checklist, warnings, rules)
   12. Chat UI
   13. Financial-control UI
   14. Accordion & tabs
   15. Poland / city UI
   16. Blog
   17. Forms
   18. CTA band
   19. Footer
   20. Utilities
   21. Responsive
   22. Motion & print
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Brand palette */
  --plum: #241a26;
  --obsidian: #141316;
  --wine: #722e46;
  --raspberry: #a94f69;
  --silver: #9a979c;
  --pearl: #f1ece8;
  --mauve: #c8b4bb;
  --charcoal: #29272a;

  /* Derived surfaces */
  --deep: #0e0c0f;
  --surface: #1a151c;
  --card: #1e1820;

  /* Semantic — dark ground */
  --bg: var(--obsidian);
  --fg: var(--pearl);
  --muted-fg: var(--silver);
  --soft-fg: var(--mauve);
  --line: rgba(154, 151, 156, 0.18);
  --line-strong: rgba(154, 151, 156, 0.32);
  --accent: var(--raspberry);
  --accent-deep: var(--wine);
  --ok: #4cb782;

  /* Light editorial ground */
  --light-bg: var(--pearl);
  --light-fg: var(--charcoal);
  --light-muted: rgba(41, 39, 42, 0.66);
  --light-line: rgba(41, 39, 42, 0.12);
  --light-card: #fff;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Scale */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.4rem + 3.2vw, 3.25rem);
  --step-5: clamp(2.75rem, 1.5rem + 5.4vw, 4.75rem);

  /* Space */
  --gap: 1.5rem;
  --pad-x: 1.5rem;
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --wrap: 80rem;

  --radius: 2px;
  --ring: 0 0 0 2px var(--obsidian), 0 0 0 4px var(--raspberry);
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--charcoal) transparent;
  scrollbar-width: thin;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  flex: none;
}

/* Inline icon system — presentation attrs live here, not on every element */
.i {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i--xs {
  width: 0.625rem;
  height: 0.625rem;
  stroke-width: 2;
}
.i--sm {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 1.75;
}
.i--md {
  width: 1.25rem;
  height: 1.25rem;
}
.i--lg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.25;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

::selection {
  background: var(--wine);
  color: var(--pearl);
}

/* ── 3. Typography ─────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  line-height: 1.3;
}
h4 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.4;
}

p {
  text-wrap: pretty;
}

.display {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.display strong {
  font-weight: 600;
}

.display em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: var(--step-1);
  color: var(--soft-fg);
  line-height: 1.6;
  max-width: 34em;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose p {
  color: var(--muted-fg);
  line-height: 1.75;
  max-width: 40em;
}

.prose a {
  color: var(--soft-fg);
  text-decoration: underline;
  text-decoration-color: var(--wine);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

/* Eyebrow / section label — the rule + mono caps motif */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent-deep);
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent-deep);
  flex: none;
}

.mono {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
}

/* ── 4. Layout ─────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.wrap--narrow {
  max-width: 56rem;
}
.wrap--prose {
  max-width: 44rem;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.section--flush {
  padding-block: 0;
}

/* Ground colours — the 60/40 dark/light rhythm */
.section--obsidian {
  background: var(--obsidian);
}
.section--plum {
  background: var(--plum);
}
.section--surface {
  background: var(--surface);
}
.section--deep {
  background: var(--deep);
}

.section--light {
  background: var(--light-bg);
  color: var(--light-fg);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--light-fg);
}

.section--light .eyebrow {
  color: var(--light-muted);
}

.section--light .lede,
.section--light .prose p {
  color: var(--light-muted);
}

.section--light .prose a {
  color: var(--wine);
}

.section--light .prose .btn--primary {
  color: var(--pearl);
  text-decoration: none;
}

.section--light .prose .btn--primary:hover {
  color: var(--pearl);
}

.section--light .prose .btn--ghost {
  color: var(--light-fg);
  text-decoration: none;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--split {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.section-head--split .section-head__aside {
  color: var(--muted-fg);
  font-size: var(--step--1);
}

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

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

/* Editorial split: text + module */
.grid--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.grid--split-center {
  align-items: center;
}

/* Asymmetric: 2fr content + 1fr aside */
.grid--aside {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack--lg {
  gap: 1.25rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2rem;
}

.section--light .divider {
  border-color: var(--light-line);
}

/* ── 5. Buttons & links ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--wine);
  color: var(--pearl);
}

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

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--raspberry);
  color: var(--fg);
}

.section--light .btn--ghost {
  border-color: rgba(41, 39, 42, 0.28);
  color: var(--light-fg);
}

.section--light .btn--ghost:hover {
  border-color: var(--wine);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--step-0);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--accent);
  transition: gap 0.2s, color 0.2s;
}

.link-arrow:hover {
  color: var(--fg);
  gap: 0.75rem;
}

.section--light .link-arrow {
  color: var(--wine);
}

.section--light .link-arrow:hover {
  color: var(--charcoal);
}

.link-quiet {
  color: var(--muted-fg);
  font-size: var(--step--1);
  transition: color 0.2s;
}

.link-quiet:hover {
  color: var(--fg);
}

/* ── 6. Header & navigation ────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  background: var(--wine);
  color: var(--pearl);
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(20, 19, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.nav__mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--pearl);
  flex: none;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.nav__domain {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  display: block;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--step--1);
  color: var(--muted-fg);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--fg);
}

.nav__link[aria-current="page"] {
  color: var(--fg);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.nav__signin {
  display: none;
  padding: 0.5rem 0.9rem;
  font-size: var(--step--1);
  color: var(--muted-fg);
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}

.nav__signin:hover {
  border-color: var(--raspberry);
  color: var(--fg);
}

.nav__join {
  padding: 0.55rem 1.1rem;
  font-size: var(--step--1);
  background: var(--wine);
  color: var(--pearl);
  transition: background-color 0.2s;
}

.nav__join:hover {
  background: var(--raspberry);
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--muted-fg);
  margin-right: -0.5rem;
}

.nav__toggle:hover {
  color: var(--fg);
}

.nav__toggle .icon-close,
.nav__toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav__mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--obsidian);
  padding-block: 0.75rem 1.25rem;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.nav__mobile a {
  display: block;
  padding: 0.625rem 0;
  font-size: var(--step-0);
  color: var(--muted-fg);
  border-bottom: 1px solid var(--line);
}

.nav__mobile a:hover,
.nav__mobile a[aria-current="page"] {
  color: var(--fg);
}

.nav__mobile-cta {
  display: flex;
  gap: 0.75rem;
}

.nav__mobile-cta .btn {
  flex: 1;
}

/* Breadcrumbs */
.breadcrumb {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}

.breadcrumb a:hover {
  color: var(--fg);
}

.section--light .breadcrumb {
  color: var(--light-muted);
}

/* ── 7. Hero & page hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 54rem);
  padding-block: 8rem 4rem;
  overflow: hidden;
  background: var(--obsidian);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--obsidian) 12%, rgba(20, 19, 22, 0.8) 48%, transparent 100%),
    linear-gradient(0deg, var(--obsidian) 4%, transparent 42%, rgba(20, 19, 22, 0.6) 100%);
}

/* Findomme portrait — right edge, desktop only */
.hero__portrait {
  display: none;
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  z-index: -1;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--obsidian) 0%, transparent 62%),
    linear-gradient(0deg, var(--obsidian) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  max-width: 34rem;
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-top: 2rem;
}

.hero__cities {
  position: absolute;
  left: var(--pad-x);
  bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  color: var(--muted-fg);
}

/* Floating financial-control widget in the hero composition */
.hero__widget {
  display: none;
  position: absolute;
  top: 7rem;
  right: 2rem;
  width: 14rem;
  z-index: 1;
  background: rgba(30, 24, 32, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 1rem;
}

/* Interior page hero */
.page-hero {
  position: relative;
  padding-block: 8.5rem 3.5rem;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}

.page-hero--light {
  background: var(--light-bg);
  color: var(--light-fg);
}

.page-hero--plum {
  background: var(--plum);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 8%, rgba(26, 21, 28, 0.72) 55%, rgba(26, 21, 28, 0.4) 100%);
}

.page-hero--light .page-hero__bg::after {
  background: linear-gradient(90deg, var(--light-bg) 8%, rgba(241, 236, 232, 0.82) 55%, rgba(241, 236, 232, 0.6) 100%);
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.page-hero--light .eyebrow {
  color: var(--light-muted);
}

.page-hero--light .lede {
  color: var(--light-muted);
}

/* Full-viewport role heroes */
.page-hero--role {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 7.5rem 2rem;
  background: var(--obsidian);
}

.page-hero--role .page-hero__bg img {
  opacity: 1;
  object-position: 72% center;
}

.page-hero--paypig .page-hero__bg img {
  object-position: 70% center;
}

.page-hero--role .page-hero__bg::after {
  background:
    linear-gradient(180deg, rgba(20, 19, 22, 0.18) 0%, rgba(20, 19, 22, 0.28) 38%, rgba(20, 19, 22, 0.9) 72%, var(--obsidian) 100%),
    linear-gradient(90deg, rgba(20, 19, 22, 0.82) 0%, rgba(20, 19, 22, 0.18) 100%);
}

.page-hero--role .page-hero__content {
  position: relative;
  width: 100%;
}

.page-hero--role h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero--role .lede {
  max-width: 39rem;
  color: rgba(247, 241, 236, 0.82);
}

.page-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-hero__actions .btn {
  justify-content: center;
  white-space: nowrap;
}

.page-hero__trust {
  max-width: 42rem;
  margin-top: 1rem;
  color: rgba(247, 241, 236, 0.64);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 48em) {
  .page-hero--role {
    align-items: center;
    padding-block: 8.5rem 4rem;
  }

  .page-hero--role .page-hero__bg::after {
    background:
      linear-gradient(90deg, var(--obsidian) 0%, rgba(20, 19, 22, 0.94) 31%, rgba(20, 19, 22, 0.62) 50%, rgba(20, 19, 22, 0.08) 78%),
      linear-gradient(0deg, var(--obsidian) 0%, transparent 30%, rgba(20, 19, 22, 0.28) 100%);
  }

  .page-hero--role .page-hero__content {
    padding-right: 42%;
  }

  .page-hero--role h1 {
    font-size: clamp(3rem, 4.25vw, 3.75rem);
  }

  .page-hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ── 8. Role badges, status, meta ──────────────────────────────────────── */

.role-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted-fg);
  white-space: nowrap;
}

.role-badge--findomme {
  color: var(--raspberry);
  border-color: rgba(169, 79, 105, 0.4);
  background: rgba(114, 46, 70, 0.18);
}

.role-badge--paypig {
  background: var(--charcoal);
}

.role-badge--finsub {
  background: var(--plum);
}

.role-badge--lg {
  font-size: 0.9375rem;
  padding: 0.35rem 0.75rem;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.verified svg {
  color: var(--raspberry);
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--charcoal);
  flex: none;
}

.dot--online {
  background: var(--ok);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.tag {
  font-size: 0.9375rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted-fg);
  letter-spacing: 0.02em;
}

.tag--solid {
  background: var(--charcoal);
  border-color: transparent;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ── 9. Profile cards & rails ──────────────────────────────────────────── */

/* Horizontal scroll rail for Findomme portraits */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 15rem;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  /* bleed to viewport edge on mobile so cards don't look cropped */
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
}

.rail > * {
  scroll-snap-align: start;
}

.profile-card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.14);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  border-color: rgba(169, 79, 105, 0.72);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.profile-card__media {
  position: relative;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 3 / 4;
}

.profile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.72);
  transform: scale(1.08);
  transition: transform 0.7s ease;
}

.profile-card:hover .profile-card__media img {
  transform: scale(1.12);
}

.profile-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, var(--obsidian) 2%, rgba(20, 19, 22, 0.35) 40%, transparent 72%);
}

.profile-card__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  color: var(--pearl);
  background: rgba(20, 19, 22, 0.78);
  border: 1px solid rgba(241, 236, 232, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 0 0.375rem rgba(20, 19, 22, 0.2), 0 0.75rem 2rem rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.profile-card__lock .i {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 1.8;
}

.profile-card__status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 1rem;
}

.profile-card__name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}

.profile-card__age {
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.profile-card__quote {
  font-size: var(--step--1);
  font-style: italic;
  color: var(--soft-fg);
  line-height: 1.5;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.75rem;
}

/* Submissive profile — data-forward card, deliberately not a photo card */
.sub-card {
  display: block;
  border: 1px solid var(--line);
  padding: 1.125rem;
  transition: border-color 0.2s;
  background: var(--obsidian);
}

.sub-card:hover {
  border-color: rgba(169, 79, 105, 0.4);
}

.section--surface .sub-card,
.section--plum .sub-card {
  background: transparent;
}

.sub-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.sub-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}

/* ── 10. Data lists, panels, features, steps ───────────────────────────── */

/* label / value rows — the financial-UI motif */
.data-list {
  display: flex;
  flex-direction: column;
}

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row dt,
.data-row__label {
  color: var(--muted-fg);
}

.data-row dd,
.data-row__value {
  color: var(--fg);
  margin: 0;
  text-align: right;
}

.data-row__value--mono {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

.data-row__value--soft {
  color: var(--soft-fg);
}

.data-row__value--ok {
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Boxed variant used in sidebars */
.data-list--boxed .data-row {
  border: 1px solid var(--line);
  padding: 0.75rem 0.875rem;
  margin-bottom: 0.5rem;
}

.data-list--boxed .data-row:last-child {
  margin-bottom: 0;
}

.section--light .data-row {
  border-color: var(--light-line);
}

.section--light .data-row dt,
.section--light .data-row__label {
  color: var(--light-muted);
}

.section--light .data-row dd,
.section--light .data-row__value {
  color: var(--light-fg);
}

/* Generic bordered panel */
.panel {
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
}

.panel--flat {
  background: transparent;
}

.panel--accent {
  border-color: rgba(169, 79, 105, 0.35);
}

.panel--dark {
  background: var(--charcoal);
  border-color: transparent;
  color: var(--fg);
}

.panel--dark h2,
.panel--dark h3 {
  color: var(--fg);
}

.panel__label {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

/* White card on pearl grounds */
.card-light {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  padding: 1.5rem;
}

.card-light h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-light p {
  font-size: var(--step--1);
  color: var(--light-muted);
  line-height: 1.65;
}

.card-light__icon {
  color: var(--wine);
  margin-bottom: 1rem;
}

/* Icon + title + copy */
.feature {
  display: flex;
  gap: 1rem;
}

.feature__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted-fg);
  flex: none;
}

.feature__title {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.feature__desc {
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.65;
}

/* Bordered feature tile */
.tile {
  border: 1px solid var(--line);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.tile:hover {
  border-color: rgba(169, 79, 105, 0.3);
}

.tile__icon {
  color: var(--muted-fg);
  margin-bottom: 0.875rem;
}

.tile h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Tile variant where the icon + title sit on one row */
.tile--inline .tile__icon {
  margin-bottom: 0;
}

.tile--inline h3 {
  margin: 0;
}

.tile p {
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.65;
}

/* Numbered vertical process list with connector rule */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  display: flex;
  gap: 1rem;
}

.step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}

.step__marker {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted-fg);
  flex: none;
  transition: border-color 0.2s, color 0.2s;
}

.step:hover .step__marker {
  border-color: rgba(169, 79, 105, 0.4);
  color: var(--fg);
}

.step__line {
  width: 1px;
  flex: 1;
  min-height: 1.25rem;
  background: var(--line);
  margin-block: 0.25rem;
}

.step:last-child .step__line {
  display: none;
}

.step__body {
  padding-block: 0.125rem 1.5rem;
}

.step__num {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-right: 0.5rem;
}

.step__title {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  display: inline;
}

.step__desc {
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.65;
  margin-top: 0.25rem;
}

/* Numbered card with top rule — light editorial grounds */
.num-card {
  border-top: 2px solid var(--wine);
  padding-top: 1rem;
}

.num-card__n {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  color: var(--light-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.num-card h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.num-card p {
  font-size: var(--step--1);
  color: var(--light-muted);
  line-height: 1.65;
}

.num-card--dark {
  border-top-color: var(--wine);
}

.num-card--dark .num-card__n,
.num-card--dark p {
  color: var(--muted-fg);
}

/* Numbered tip row */
.tip {
  display: flex;
  gap: 1rem;
}

.tip__n {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  color: var(--accent);
  flex: none;
  padding-top: 0.25rem;
}

.tip--sub .tip__n {
  color: var(--muted-fg);
}

.tip p {
  font-size: var(--step-0);
  color: var(--soft-fg);
  line-height: 1.6;
}

.tip--sub p {
  color: var(--muted-fg);
}

/* Large tip heading inside a split-band column */
.tip-heading {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  margin-bottom: 2rem;
}

.tip-heading--sub {
  font-weight: 600;
}

/* ── 11. Editorial modules ─────────────────────────────────────────────── */

/* Definition module — left rule + term + gloss */
.def {
  border-left: 2px solid var(--wine);
  padding-left: 1rem;
}

.def__term {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.def__gloss {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted-fg);
}

.section--light .def__gloss {
  color: var(--light-muted);
}

.def--muted {
  border-left-color: var(--line-strong);
}

/* Two-column comparison */
.compare {
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.compare--accent {
  border-color: rgba(169, 79, 105, 0.35);
}

.compare h3 {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.55;
}

.check-list svg {
  color: var(--muted-fg);
  margin-top: 0.3rem;
}

.check-list--accent li {
  color: var(--fg);
}

.check-list--accent svg {
  color: var(--accent);
}

.section--light .check-list li {
  color: var(--light-muted);
}

.section--light .check-list svg {
  color: var(--wine);
}

/* Warning / red-flag row */
.flag {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  padding: 0.875rem;
  font-size: var(--step--1);
  line-height: 1.55;
}

.flag svg {
  color: var(--accent);
  margin-top: 0.2rem;
  flex: none;
}

.section--light .flag {
  background: var(--light-card);
  border-color: var(--light-line);
  color: var(--light-fg);
}

.section--light .flag svg {
  color: var(--wine);
}

/* Callout — pulled emphasis, used sparingly */
.callout {
  border-left: 2px solid var(--raspberry);
  background: rgba(114, 46, 70, 0.12);
  padding: 1.125rem 1.25rem;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--soft-fg);
}

.section--light .callout {
  background: rgba(114, 46, 70, 0.07);
  color: var(--light-fg);
}

.callout strong {
  color: var(--fg);
}

.section--light .callout strong {
  color: var(--charcoal);
}

/* Myth / truth pair */
.myth {
  border: 1px solid var(--line);
  padding: 1rem;
}

.myth__claim {
  font-size: var(--step--1);
  color: var(--muted-fg);
  text-decoration: line-through;
  margin-bottom: 0.375rem;
}

.myth__truth {
  font-size: var(--step--1);
  color: var(--soft-fg);
  line-height: 1.6;
}

/* Full-bleed quote band over photography */
.quote-band {
  position: relative;
  min-height: 12rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3rem 1.5rem;
  isolation: isolate;
}

.quote-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: -1;
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--obsidian) 0%, transparent 40%, transparent 60%, var(--obsidian) 100%);
}

.quote-band p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  text-align: center;
  color: rgba(241, 236, 232, 0.72);
  line-height: 1.25;
}

.quote-band em {
  font-style: normal;
  color: var(--accent);
}

/* Role selector — asymmetric dominant/submissive split */
.role-split {
  display: grid;
  min-height: 34rem;
  /* Align content with the centered .wrap container so the text never sits
     outside the page's content column; the imagery still bleeds full-width. */
  padding-inline: max((100% - var(--wrap)) / 2, var(--pad-x));
}

.role-split__dom {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 26rem;
}

.role-split__dom img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.7s ease;
}

.role-split__dom:hover img {
  transform: scale(1.04);
}

.role-split__dom::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--deep) 4%, rgba(14, 12, 15, 0.35) 48%, transparent 82%),
    linear-gradient(270deg, rgba(14, 12, 15, 0.45) 0%, transparent 55%);
}

.role-split__body {
  padding: clamp(1.75rem, 4vw, 3rem) var(--pad-x);
  width: 100%;
}

.role-split__crown {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--raspberry);
  opacity: 0.6;
}

.role-split__sub {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4vw, 3rem) var(--pad-x);
}

.role-split__sub img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: -1;
}

.role-split__title {
  font-size: var(--step-3);
  line-height: 1.12;
  margin-block: 0.75rem 1rem;
}

.role-split__sub .role-split__title {
  font-weight: 300;
  font-size: var(--step-3);
}

/* Big option row — "I am a …" */
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
  font-size: var(--step-0);
  color: var(--fg);
  transition: border-color 0.2s, background-color 0.2s;
}

.option-row:hover {
  border-color: rgba(169, 79, 105, 0.5);
  background: rgba(114, 46, 70, 0.1);
}

.option-row svg {
  color: var(--muted-fg);
}

/* ── 12. Chat UI ───────────────────────────────────────────────────────── */

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

.chat {
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
}

.chat__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.chat__avatar {
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  background: var(--card);
  flex: none;
}

.chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat__name {
  font-size: var(--step--1);
  font-weight: 600;
}

.chat__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.chat__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.chat__tool {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.chat__tool:hover {
  color: var(--fg);
}

.chat__consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(76, 183, 130, 0.1);
  border-bottom: 1px solid rgba(76, 183, 130, 0.24);
  font-size: 0.9375rem;
  color: var(--ok);
}

.chat__consent-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  flex: 1;
  min-height: 13rem;
}

.msg {
  max-width: 78%;
  padding: 0.75rem;
  font-size: var(--step--1);
  line-height: 1.6;
}

.msg time {
  display: block;
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-top: 0.375rem;
}

.msg--dom {
  align-self: flex-start;
  background: var(--plum);
}

.msg--sub {
  align-self: flex-end;
  background: rgba(114, 46, 70, 0.2);
  border: 1px solid rgba(114, 46, 70, 0.35);
}

.msg--sub time {
  text-align: right;
}

.chat__limitbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--obsidian);
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.chat__limitbar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chat__composer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--line);
}

.chat__composer input {
  flex: 1;
  min-width: 0;
  background: var(--charcoal);
  border: 1px solid transparent;
  padding: 0.5rem 0.75rem;
  font-size: var(--step-0);
  color: var(--fg);
}

.chat__composer input::placeholder {
  color: var(--muted-fg);
}

.chat__send {
  display: grid;
  place-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--wine);
  color: var(--pearl);
  transition: background-color 0.2s;
}

.chat__send:hover {
  background: var(--raspberry);
}

/* Conversation list sidebar */
.convo-list {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.convo-list__head {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--charcoal);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.search-box svg {
  color: var(--muted-fg);
}

.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  font-size: var(--step-0);
}

.search-box input::placeholder {
  color: var(--muted-fg);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.filter-chip {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  padding: 0.25rem 0.55rem;
  color: var(--muted-fg);
  border: 1px solid transparent;
  transition: color 0.2s, background-color 0.2s;
}

.filter-chip:hover {
  color: var(--fg);
}

.filter-chip[aria-pressed="true"] {
  background: var(--wine);
  color: var(--pearl);
}

.convo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
  text-align: left;
  width: 100%;
}

.convo:last-child {
  border-bottom: 0;
}

.convo:hover {
  background: rgba(41, 39, 42, 0.4);
}

.convo[hidden] {
  display: none;
}

.convo__avatar {
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  background: var(--charcoal);
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted-fg);
}

.convo__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.convo__body {
  flex: 1;
  min-width: 0;
}

.convo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.convo__name {
  font-size: 0.9375rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.convo__meta {
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

/* ── 13. Financial-control UI ──────────────────────────────────────────── */

.limits {
  background: var(--charcoal);
  padding: clamp(1.25rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.limits__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.limits__head span:last-child {
  color: var(--soft-fg);
  letter-spacing: 0.06em;
  text-transform: none;
}

.range-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-bottom: 0.625rem;
}

.range-field output {
  font-family: var(--font-data);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--fg);
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--wine);
  cursor: pointer;
}

.range-field__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-top: 0.375rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.toggle-row:hover {
  border-color: rgba(169, 79, 105, 0.4);
}

.toggle-row__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.toggle-row__sub {
  font-size: var(--step--1);
  color: var(--muted-fg);
}

/* Accessible switch built on a real checkbox */
.switch {
  position: relative;
  width: 2.5rem;
  height: 1.25rem;
  flex: none;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--charcoal);
  border: 1px solid var(--line-strong);
  transition: background-color 0.2s, border-color 0.2s;
  pointer-events: none;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--pearl);
  transition: transform 0.2s;
}

.switch input:checked + .switch__track {
  background: var(--wine);
  border-color: var(--wine);
}

.switch input:checked + .switch__track::after {
  transform: translateX(1.25rem);
}

.switch input:focus-visible + .switch__track {
  box-shadow: var(--ring);
}

/* Spent / remaining stat pair */
.stat {
  background: var(--card);
  padding: 0.875rem;
}

.stat__label {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.375rem;
}

.stat__value {
  font-family: var(--font-data);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--fg);
}

.stat__value small {
  font-size: 0.9375rem;
}

.stat__note {
  font-size: var(--step--1);
  color: var(--ok);
  margin-top: 0.5rem;
}

.meter {
  height: 3px;
  background: var(--charcoal);
  overflow: hidden;
  margin-top: 0.5rem;
}

.meter__fill {
  height: 100%;
  background: var(--wine);
  transition: width 0.25s ease;
}

/* Power-dynamic diagram */
.dynamic-map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dynamic-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.dynamic-node--dom {
  background: var(--wine);
  color: var(--pearl);
}

.dynamic-node--sub {
  border: 1px solid var(--line);
  color: var(--fg);
}

.dynamic-node__role {
  font-size: 0.9375rem;
  opacity: 0.72;
  margin-bottom: 0.125rem;
}

.dynamic-node__name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
}

.dynamic-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
  text-align: center;
}

.dynamic-link::before,
.dynamic-link::after {
  content: "";
  width: 1px;
  height: 1rem;
  background: var(--line-strong);
}

/* ── 14. Accordion & tabs ──────────────────────────────────────────────── */

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

.section--light .accordion {
  border-color: var(--light-line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.section--light .accordion__item {
  border-color: var(--light-line);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 1.125rem 0;
  text-align: left;
  font-size: var(--step-0);
  font-weight: 500;
  color: inherit;
}

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

.section--light .accordion__trigger:hover {
  color: var(--wine);
}

.accordion__trigger svg {
  color: var(--muted-fg);
  transition: transform 0.25s;
  flex: none;
}

.accordion__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion__panel {
  padding-bottom: 1.25rem;
  max-width: 60ch;
}

.accordion__panel p {
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.7;
}

.section--light .accordion__panel p {
  color: var(--light-muted);
}

.accordion__panel[hidden] {
  display: none;
}

.accordion__panel p + p {
  margin-top: 0.75rem;
}

/* FAQ group heading */
.faq-group + .faq-group {
  margin-top: 3rem;
}

.faq-group__title {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Tabs */
.tabs {
  display: flex;
  border: 1px solid var(--line);
  overflow-x: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 1 0 auto;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.tab:hover {
  color: var(--fg);
}

.tab[aria-selected="true"] {
  background: var(--wine);
  color: var(--pearl);
}

.tabpanel[hidden] {
  display: none;
}

/* ── 15. Poland / city UI ──────────────────────────────────────────────── */

.city-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.city-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 2;
  min-height: 13rem;
  border: 1px solid var(--line-strong);
  background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 12, 15, 0.94) 0%, rgba(14, 12, 15, 0.36) 52%, rgba(14, 12, 15, 0.08) 100%);
}

.city-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.city-card:hover {
  border-color: rgba(169, 79, 105, 0.72);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
}

.city-card:hover img {
  transform: scale(1.035);
}

.city-card__body {
  width: 100%;
  padding: 1.25rem;
}

.city-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.15;
  color: var(--pearl);
}

.city-card__meta {
  display: block;
  margin-top: 0.35rem;
  color: rgba(247, 241, 236, 0.7);
  font-size: var(--step--1);
  line-height: 1.4;
}

.city-card--topic {
  min-height: 14.5rem;
  border-color: rgba(169, 79, 105, 0.34);
  background: var(--obsidian);
}

.city-card--topic::after {
  background: linear-gradient(0deg, rgba(14, 12, 15, 0.98) 0%, rgba(14, 12, 15, 0.7) 30%, rgba(14, 12, 15, 0.08) 76%);
}

.city-card--topic .city-card__body {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.city-card__arrow {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.city-card--topic:hover .city-card__arrow,
.city-card--topic:focus-visible .city-card__arrow {
  transform: translateX(0.25rem);
}

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

/* Full-bleed two-column band with a hairline divider (chat + tips) */
.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* Align with the centered .wrap content column (full-bleed background stays). */
  padding-inline: max((100% - var(--wrap)) / 2, var(--pad-x));
}

.split-band__cell {
  padding: clamp(1.75rem, 4vw, 3rem) var(--pad-x);
  min-width: 0;
}

.split-band__cell--r {
  border-top: 1px solid var(--line);
}

@media (min-width: 56em) {
  .split-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-band__cell--r {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ── 16. Blog ──────────────────────────────────────────────────────────── */

.article-layout {
  display: grid;
  grid-template-areas:
    "toc"
    "content";
  gap: 2rem;
  align-items: start;
}

.article-content {
  grid-area: content;
  min-width: 0;
  max-width: 46rem;
}

.article-toc {
  grid-area: toc;
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, 0.58);
}

.article-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  color: var(--light-fg);
  font-family: var(--font-data);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

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

.article-toc summary::after {
  content: "+";
  color: var(--wine);
  font-size: 1.25rem;
  line-height: 1;
}

.article-toc details[open] summary::after {
  content: "−";
}

.article-toc__list {
  display: none;
  gap: 0;
  padding: 0 1rem 1rem;
  list-style: none;
  counter-reset: toc;
}

.article-toc details[open] .article-toc__list {
  display: grid;
}

.article-toc__list li {
  counter-increment: toc;
  border-top: 1px solid var(--light-line);
}

.article-toc__list a {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  min-height: 2.75rem;
  padding-block: 0.625rem;
  color: var(--light-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.article-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--wine);
  font-family: var(--font-data);
  font-size: 0.875rem;
  padding-top: 0.1rem;
}

.article-toc__list a:hover,
.article-toc__list a:focus-visible {
  color: var(--wine);
}

.article-content h2 {
  scroll-margin-top: 6rem;
}

.post-lead {
  display: grid;
  border: 1px solid var(--line);
}

.post-lead__media {
  overflow: hidden;
  max-height: 22rem;
}

.post-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-lead__body {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.post-meta__cat {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(169, 79, 105, 0.4);
  padding: 0.15rem 0.5rem;
}

.post-meta time {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card h3 {
  font-size: var(--step-0);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.post-card:hover h3 {
  color: var(--accent);
}

.post-card p {
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.65;
}

.post-card__soon {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-top: 0.75rem;
  display: block;
}

/* ── 17. Forms ─────────────────────────────────────────────────────────── */

.field {
  display: block;
}

.field + .field {
  margin-top: 1rem;
}

.field__label {
  display: block;
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-bottom: 0.375rem;
}

.field__input {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  font-size: var(--step-0);
  color: var(--fg);
  transition: border-color 0.2s;
}

.field__input::placeholder {
  color: var(--muted-fg);
}

.field__input:focus {
  border-color: rgba(169, 79, 105, 0.5);
}

.field__hint {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  margin-top: 0.375rem;
}

select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%),
    linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%, calc(100% - 0.7rem) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-block: 1.25rem;
}

.consent-field input {
  margin-top: 0.2rem;
  accent-color: var(--wine);
  flex: none;
}

.consent-field label {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.consent-field a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.segmented {
  display: flex;
  border: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.segmented button {
  flex: 1;
  padding: 0.65rem;
  font-family: var(--font-data);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  transition: background-color 0.2s, color 0.2s;
}

.segmented button:hover {
  color: var(--fg);
}

.segmented button[aria-selected="true"] {
  background: var(--wine);
  color: var(--pearl);
}

.role-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.role-picker__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted-fg);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.role-picker__opt:hover {
  border-color: rgba(169, 79, 105, 0.4);
}

.role-picker__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.role-picker__opt:has(input:checked) {
  border-color: var(--raspberry);
  background: rgba(114, 46, 70, 0.14);
  color: var(--fg);
}

.role-picker__opt:has(input:focus-visible) {
  box-shadow: var(--ring);
}

.auth {
  display: grid;
  border: 1px solid var(--line);
  max-width: 58rem;
  margin-inline: auto;
}

.auth__aside {
  display: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth__aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(20, 19, 22, 0.65) 100%);
}

.auth__aside-body {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  z-index: 1;
}

.auth__form {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

/* ── 18. CTA band ──────────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 32rem;
  padding-block: var(--section-y);
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--deep) 6%, rgba(14, 12, 15, 0.5) 55%, transparent 100%),
    linear-gradient(90deg, var(--deep) 0%, transparent 35%, transparent 65%, var(--deep) 100%);
}

.cta-band h2 {
  font-size: var(--step-3);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.cta-band .lede {
  margin-inline: auto;
  text-align: center;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ── 19. Footer ────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding-block: 4rem 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__intro p {
  font-size: var(--step--1);
  color: var(--muted-fg);
  line-height: 1.7;
  margin-block: 1rem;
  max-width: 30ch;
}

.footer__legalnote {
  font-family: var(--font-data);
  font-size: var(--step--1);
  color: var(--muted-fg);
}

.footer__heading {
  font-family: var(--font-data);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links a {
  display: block;
  padding-block: 0.3rem;
  font-size: var(--step--1);
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--fg);
}

.footer__links--split {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__base p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.footer__base p:first-child {
  font-family: var(--font-data);
}

/* ── 20. Utilities ─────────────────────────────────────────────────────── */

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

.u-mono {
  font-family: var(--font-data);
}
.u-accent {
  color: var(--accent);
}
.u-muted {
  color: var(--muted-fg);
}
.u-soft {
  color: var(--soft-fg);
}
.u-ok {
  color: var(--ok);
}
.u-center {
  text-align: center;
}
.u-mt-lg {
  margin-top: 2.5rem;
}
.u-mt {
  margin-top: 1.5rem;
}
.u-mb {
  margin-bottom: 1.5rem;
}
.u-mb-md {
  margin-bottom: 0.75rem;
}

.u-small {
  font-size: var(--step--1);
  line-height: 1.65;
}

/* Full-height page wrapper for the auth screen (clears the fixed header) */
.page-fill {
  min-height: 100vh;
  padding-top: 7.5rem;
  display: flex;
  align-items: center;
}

.rule-top {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.section--light .rule-top {
  border-color: var(--light-line);
}

.footnote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.footnote--center {
  justify-content: center;
}

/* ── 21. Responsive ────────────────────────────────────────────────────── */

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

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

  .cta-band__actions {
    flex-direction: row;
  }

  .hero__widget {
    display: block;
  }

  .hero__cities {
    display: flex;
  }

  .nav__signin {
    display: block;
  }

  .footer__base {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .section-head--split {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

@media (min-width: 56em) {
  .grid--md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--md-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--md-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .rail {
    grid-auto-columns: 16rem;
    margin-inline: 0;
    padding-inline: 0;
  }
}

@media (min-width: 64em) {
  :root {
    --pad-x: 2rem;
  }

  .hero__bg img {
    object-position: center top;
  }

  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__mobile {
    display: none !important;
  }

  .hero__portrait {
    display: block;
  }

  .hero__widget {
    right: 40%;
  }

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

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

  /* Role selector: dominant party takes 3/5 of the width */
  .role-split {
    grid-template-columns: 3fr 2fr;
  }

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

  .auth__aside {
    display: block;
  }

  /* Chat page: list + window */
  .grid--chat {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .article-layout {
    grid-template-areas: "content toc";
    grid-template-columns: minmax(0, 46rem) minmax(15rem, 18rem);
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
  }

  .article-toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
  }

  .article-toc summary {
    cursor: default;
    pointer-events: none;
  }

  .article-toc summary::after {
    display: none;
  }

  .article-toc__list {
    display: grid !important;
  }
}

/* Grids collapse to a single column below their breakpoint */
@media (max-width: 55.99em) {
  .grid--split,
  .grid--aside {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 39.99em) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .msg {
    max-width: 88%;
  }
}

/* ── 22. Motion & print ────────────────────────────────────────────────── */

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

  .rail {
    scroll-snap-type: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav__mobile {
    display: none;
  }

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

/* No-JS: never leave collapsed content unreachable */
.no-js .accordion__panel[hidden],
.no-js .tabpanel[hidden] {
  display: block;
}

.no-js .tabs {
  display: none;
}
