/* Rosenberg — rosenberg.social
   Nacht als Grund, das Netz als Bild. Dating glüht rosé, Networking aqua. */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/familjen-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/familjen-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --night: #0a0817;
  --deep: #110e24;
  --panel: rgba(255, 255, 255, 0.045);
  --edge: rgba(255, 255, 255, 0.1);
  --text: #f3f0ff;
  --muted: #a8a2c6;
  --rose: #ff5c8c;
  --rose-soft: #ff9bbd;
  --aqua: #34e2c8;
  --aqua-soft: #9ff5e8;
  --accent: var(--rose);
  --accent-soft: var(--rose-soft);
  --accent-rgb: 255, 92, 140;
  --on-accent: #1a0710;
  --font: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

html[data-mode="networking"] {
  --accent: var(--aqua);
  --accent-soft: var(--aqua-soft);
  --accent-rgb: 52, 226, 200;
  --on-accent: #04201c;
}

html[data-mode="networking"] .m-dating,
html:not([data-mode="networking"]) .m-networking { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas { display: block; }
a { color: var(--accent-soft); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--night); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Kopfzeile */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .legal-page .site-header {
  background: rgba(10, 8, 23, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--edge);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -0.01em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 22px; color: var(--text); }
.brand .logo-stitch { stroke: var(--accent); transition: stroke 0.4s ease; }

.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.site-nav a:hover { color: var(--text); }

.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--edge); border-radius: 10px; font-size: 14px; font-weight: 700; }
.lang a { color: var(--muted); text-decoration: none; padding: 5px 9px; border-radius: 7px; }
.lang a[aria-current="true"] { color: var(--night); background: var(--text); }
.lang a:not([aria-current="true"]):hover { color: var(--text); }

/* Einstieg mit dem Netz */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(48px, 8vh, 96px);
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0) 70%);
  z-index: -2;
  transition: background 0.6s ease;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 23, 0.92) 0%, rgba(10, 8, 23, 0.7) 38%, rgba(10, 8, 23, 0) 72%),
    linear-gradient(0deg, var(--night) 0%, rgba(10, 8, 23, 0) 30%);
}

.hero > .wrap { width: 100%; }
.hero-copy { max-width: 900px; }

.mode-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  margin: 0 0 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mode-switch .thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.55), 0 0 2px rgba(var(--accent-rgb), 0.9);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.25, 1), background-color 0.45s ease, box-shadow 0.45s ease;
}
html[data-mode="networking"] .mode-switch .thumb { transform: translateX(100%); }
.mode-switch label { position: relative; z-index: 1; }
.mode-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.mode-switch span {
  display: block;
  min-width: 138px;
  padding: 11px 24px;
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}
.mode-switch input:checked + span { color: var(--on-accent); }
.mode-switch input:not(:checked) + span:hover { color: var(--text); }
.mode-switch input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

.hero h1 {
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 26px;
  min-height: 1.9em;
  text-wrap: balance;
}
.hero h1 .glyph { color: var(--accent); }

.hero .lead {
  font-size: clamp(18px, 1.7vw, 21px);
  color: #d6d1ee;
  max-width: 34em;
  margin: 0 0 34px;
  transition: opacity 0.25s ease;
}
.hero .lead.is-fading { opacity: 0; }

/* Warteliste */
.waitlist {
  max-width: 620px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.field-label { display: block; font-weight: 600; font-size: 15px; color: var(--muted); margin: 0 0 10px 4px; }
.field-row { display: flex; gap: 8px; }
.field-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: rgba(10, 8, 23, 0.6);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-row input::placeholder { color: #7f799d; }
.field-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.field-row input[aria-invalid="true"] { border-color: #ff8a8a; }

.button {
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.45s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.5); }
.button:active { transform: translateY(0); }
.button[disabled] { opacity: 0.7; cursor: progress; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 14px 4px 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--text); }

.form-message { margin: 12px 4px 0; font-size: 15px; font-weight: 600; }
.form-message:empty { display: none; }
.form-message.is-error { color: #ffb3b3; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.waitlist-done { max-width: 620px; padding: 22px 24px; border-radius: 22px; background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.5); box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.18); }
.waitlist-done h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; }
.waitlist-done p { margin: 0; color: var(--muted); }

.launch-note { margin: 18px 4px 0; font-size: 15px; color: var(--muted); }

/* Abschnitte */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-title { font-size: clamp(36px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.section-intro { color: var(--muted); font-size: 20px; margin: 0; max-width: 34em; }

/* Ablauf: drei Schritte auf einer Linie, die sich füllt */
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; position: relative; counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 23px; right: 0; height: 2px; }
.steps::before { background: var(--edge); }
.steps::after { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.65, 0, 0.25, 1), background 0.45s ease; box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6); }
.steps.is-in::after { transform: scaleX(1); }
.steps li { position: relative; }
.step-num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--night); border: 2px solid var(--accent); color: var(--accent); margin-bottom: 22px; transition: border-color 0.45s ease, color 0.45s ease; }
.steps h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); max-width: 30em; }

/* Events */
.events-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin: 110px 0 36px; }
.events-head h2 { margin: 0; max-width: none; }
.link-button { border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); padding: 11px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; color: var(--text); cursor: pointer; }
.link-button:hover { border-color: var(--accent); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  border-radius: 26px;
  padding: 30px;
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--edge);
  overflow: hidden;
  animation: card-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.card:nth-child(2) { animation-delay: 0.08s; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card h3 { margin: 0 0 4px; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; }
.card .who { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 16px; }
.card p.text { margin: 0; color: #d6d1ee; }

.demo { margin-top: 26px; border-top: 1px solid var(--edge); padding-top: 22px; }
.demo-note { margin: 10px 0 0; font-size: 13px; color: #8a84aa; }

/* Match der Woche */
.week-art { width: 100%; max-width: 460px; height: auto; margin: 8px auto 0; }
.week-art .seat { fill: var(--deep); stroke: var(--accent); stroke-width: 2; }
.week-art .yes { font: 700 16px var(--font); fill: var(--text); opacity: 0; }
.week-art .chat { font: 700 18px var(--font); fill: var(--accent); opacity: 0; }
.week-art .thread { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 6; }
.week-art .thread-mask { stroke-dasharray: 1; stroke-dashoffset: 1; }
.card.is-in .week-art .yes { animation: pop 0.4s ease forwards; }
.card.is-in .week-art .yes-b { animation-delay: 0.6s; }
.card.is-in .week-art .thread-mask { animation: draw 1s cubic-bezier(0.65, 0, 0.25, 1) 1.2s forwards; }
.card.is-in .week-art .chat { animation: pop 0.4s ease 2.2s forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Dinner zu sechst: Auflösung am Ende des Abends */
.dinner { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: center; }
.table-art { width: 100%; height: auto; overflow: visible; }
.table-art .table { fill: rgba(255, 255, 255, 0.03); stroke: var(--edge); stroke-width: 1.5; }
.table-art .seat circle { fill: var(--deep); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; transition: stroke 0.3s ease, fill 0.3s ease; }
.table-art .seat text { font: 600 11px var(--font); fill: var(--muted); text-anchor: middle; }
.table-art .seat.is-you circle { stroke: var(--text); }
.table-art .seat.is-you text { fill: var(--text); }
.table-art .seat.is-lit circle { stroke: var(--accent); fill: rgba(var(--accent-rgb), 0.25); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.9)); }
.table-art .seat.is-scan circle { stroke: var(--accent-soft); }
.table-art .match-thread { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 5; opacity: 0; }
.table-art .match-thread.is-on { opacity: 1; animation: stitch 1s linear infinite; }
@keyframes stitch { to { stroke-dashoffset: -20; } }
.dinner-side p { margin: 0 0 14px; color: var(--muted); font-size: 16px; min-height: 4.4em; }
.dinner-side p.is-result { color: var(--text); }
.dinner-side .demo-note { min-height: 0; margin: 12px 0 0; font-size: 13px; color: #8a84aa; }
.small-button { border: 1px solid rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.12); color: var(--text); font: inherit; font-weight: 700; font-size: 16px; padding: 11px 18px; border-radius: 12px; cursor: pointer; }
.small-button:hover { background: rgba(var(--accent-rgb), 0.22); }

/* Networking: Auswahl verbindet */
.picker-label { margin: 0 0 12px; font-size: 16px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 15px; border-radius: 999px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bridge-art { width: 100%; height: auto; overflow: visible; }
.bridge-art .node { fill: var(--deep); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.bridge-art .node.is-you { stroke: var(--text); }
.bridge-art .node.is-target { stroke: var(--accent); fill: rgba(var(--accent-rgb), 0.25); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.9)); }
.bridge-art .soft { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.bridge-art .bridge { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 5; animation: stitch 1s linear infinite; }
.bridge-art text { font: 600 12px var(--font); fill: var(--muted); }
.bridge-art text.strong { fill: var(--text); }
.picker-result { margin: 12px 0 0; color: var(--text); font-size: 16px; min-height: 2.9em; }

/* Grundsätze */
.principles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--edge); }
.principles li { padding: 34px 34px 34px 0; border-bottom: 1px solid var(--edge); }
.principles li:nth-child(odd) { border-right: 1px solid var(--edge); }
.principles li:nth-child(even) { padding-left: 34px; padding-right: 0; }
.principles h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.principles p { margin: 0; color: var(--muted); max-width: 30em; }

/* Fragen */
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--edge); }
.faq details:first-child { border-top: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 40em; }

/* Kontakt */
.contact { padding: clamp(80px, 10vw, 130px) 0; text-align: left; border-top: 1px solid var(--edge); background: radial-gradient(800px 300px at 15% 100%, rgba(var(--accent-rgb), 0.16), transparent 70%); }
.contact h2 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -0.04em; }
.contact p { margin: 0; color: var(--muted); font-size: 20px; }
.contact a { color: var(--text); font-weight: 700; }

/* Fusszeile */
.site-footer { padding: 28px 0 44px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--edge); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Rechtsseiten */
.legal { padding-top: 140px; padding-bottom: 110px; }
.legal > * { max-width: 720px; }
.legal h1 { font-size: clamp(42px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 22px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 10px; }
.legal p { margin: 0 0 12px; color: #d6d1ee; }
.legal .meta { color: var(--muted); font-size: 16px; }

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

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before, .steps::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(0); }
  .steps.is-in::after { transform: scaleY(1); }
  .steps li { padding-left: 76px; }
  .step-num { position: absolute; left: 0; top: 0; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .wrap { height: 64px; }
  .hero { align-items: flex-end; padding-top: 96px; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 8, 23, 0.94) 0%, rgba(10, 8, 23, 0.72) 50%, rgba(10, 8, 23, 0.2) 100%); }
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li:nth-child(even) { padding: 26px 0; border-right: 0; }
  .principles li:nth-child(odd) { border-right: 0; }
  .dinner { grid-template-columns: 1fr; }
  .table-art { max-width: 240px; }
}

@media (max-width: 520px) {
  .mode-switch { display: grid; width: 100%; }
  .mode-switch span { min-width: 0; padding: 11px 10px; }
  .field-row { flex-direction: column; }
  .card { padding: 24px 20px; }
  .waitlist { padding: 14px; }
}

/* So rechnet Rosenberg */
.algo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.algo .section-intro { margin-bottom: 36px; font-size: 21px; color: var(--text); max-width: 26em; }
.algo-points { list-style: none; margin: 0; padding: 0; }
.algo-points li { padding: 20px 0 20px 26px; border-top: 1px solid var(--edge); position: relative; }
.algo-points li::before { content: ""; position: absolute; left: 0; top: 29px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9); }
.algo-points h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.algo-points p { margin: 0; color: var(--muted); }
.algo-visual { margin: 0; position: relative; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--edge); stroke-width: 1; }
.radar .spoke { stroke: var(--edge); stroke-width: 1; }
.radar text { font: 600 16px var(--font); fill: var(--muted); }
.radar .poly-you { fill: rgba(255, 255, 255, 0.05); stroke: var(--text); stroke-width: 1.6; stroke-dasharray: 5 5; }
.radar .poly-other { fill: rgba(var(--accent-rgb), 0.2); stroke: var(--accent); stroke-width: 2.2; filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.55)); }
.radar polygon[class^="poly"] { transform-box: view-box; transform-origin: 210px 210px; transform: scale(0.15); opacity: 0; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease; }
.algo-visual.is-in .radar polygon[class^="poly"] { transform: scale(1); opacity: 1; }
.algo-visual.is-in .radar .poly-other { transition-delay: 0.25s; }
.algo-visual figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 10px; }
.score { display: inline-flex; align-items: baseline; gap: 10px; }
.score-num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--accent); text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5); }
.score-label { font-weight: 600; color: var(--text); }
.legend { display: inline-flex; gap: 18px; font-size: 15px; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 18px; height: 0; border-top: 2px dashed var(--text); }
.key-other::before { border-top: 3px solid var(--accent); }
.algo-visual .demo-note { margin: 0; flex-basis: 100%; }
.algo + .m-dating .events-head, .algo ~ .m-networking .events-head { margin-top: clamp(90px, 10vw, 140px); }

@media (max-width: 960px) {
  .algo { grid-template-columns: 1fr; }
  .algo-visual { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .radar polygon[class^="poly"] { transform: none; opacity: 1; }
}
