:root {
  --bg: #07050f;
  --bg-card: rgba(18, 14, 32, 0.78);
  --bg-card-border: rgba(255, 215, 160, 0.14);
  --text: #f4eef8;
  --text-muted: #b8aecf;
  --gold: #e8c27a;
  --gold-soft: #c9a05a;
  --violet: #9b6dff;
  --violet-deep: #5b2ea6;
  --rose: #ff7eb3;
  --success: #7dffb2;
  --warning: #ffd56a;
  --danger: #ff8a8a;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(circle at 20% 10%, rgba(155, 109, 255, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 126, 179, 0.12), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(232, 194, 122, 0.08), transparent 40%),
    var(--bg);
  overflow-y: visible;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 220px 160px, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 340px 40px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 480px 120px, rgba(255,255,255,0.45), transparent);
  background-size: 520px 520px;
  animation: drift 120s linear infinite;
  opacity: 0.55;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: rgba(155, 109, 255, 0.22);
}

.glow-2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  right: -60px;
  background: rgba(232, 194, 122, 0.12);
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-520px); }
}

.container {
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, env(safe-area-inset-left, 0)) max(1.5rem, env(safe-area-inset-right, 0));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.page-home .hero {
  padding-bottom: 1.25rem;
}

.page-home .hero-lead {
  margin-bottom: 1.35rem;
}

.page-home .hero-pillars {
  gap: 0.85rem;
}

.page-home .hero-pillars li span:last-child {
  display: none;
}

.page-home .hero-pillars .pillar-icon {
  grid-row: 1;
  align-self: center;
}

.page-home .hero-pillars strong {
  font-size: 1.32rem;
  line-height: 1.3;
}

.page-home .systems-section {
  padding-top: 0;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(232, 194, 122, 0.35);
  border-radius: 999px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-lead strong {
  color: var(--gold);
  font-weight: 600;
}

.hero-pillars {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

.hero-pillars li {
  position: relative;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 10, 24, 0.45);
  border: 1px solid rgba(255, 215, 160, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  align-items: start;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.hero-pillars li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, rgba(232, 194, 122, 0.1), transparent 55%);
  pointer-events: none;
}

.hero-pillars li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.hero-pillars li:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 194, 122, 0.32);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(232, 194, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-pillars li:nth-child(1) {
  border-color: rgba(232, 194, 122, 0.2);
}

.hero-pillars li:nth-child(1) .pillar-icon {
  background: linear-gradient(135deg, rgba(232, 194, 122, 0.24), rgba(232, 194, 122, 0.08));
  border-color: rgba(232, 194, 122, 0.3);
  color: #f0d08a;
}

.hero-pillars li:nth-child(2) {
  border-color: rgba(155, 109, 255, 0.2);
}

.hero-pillars li:nth-child(2)::before {
  background: radial-gradient(circle at 0% 0%, rgba(155, 109, 255, 0.12), transparent 55%);
}

.hero-pillars li:nth-child(2) .pillar-icon {
  background: linear-gradient(135deg, rgba(155, 109, 255, 0.28), rgba(155, 109, 255, 0.08));
  border-color: rgba(155, 109, 255, 0.32);
  color: #c9a8ff;
}

.hero-pillars li:nth-child(3) {
  border-color: rgba(255, 126, 179, 0.18);
}

.hero-pillars li:nth-child(3)::before {
  background: radial-gradient(circle at 0% 0%, rgba(255, 126, 179, 0.1), transparent 55%);
}

.hero-pillars li:nth-child(3) .pillar-icon {
  background: linear-gradient(135deg, rgba(255, 126, 179, 0.22), rgba(255, 126, 179, 0.08));
  border-color: rgba(255, 126, 179, 0.28);
  color: #ffb3d1;
}

.pillar-icon {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 2;
  align-self: start;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(232, 194, 122, 0.2), rgba(155, 109, 255, 0.1));
  border: 1px solid rgba(232, 194, 122, 0.25);
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.hero-pillars strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.hero-pillars li span:last-child {
  position: relative;
  z-index: 1;
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-stats {
  margin: 1.75rem auto 0;
  max-width: 520px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(232, 194, 122, 0.08);
  border: 1px solid rgba(232, 194, 122, 0.22);
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-stats strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
}

.hero-example-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 126, 179, 0.35);
  background: rgba(255, 126, 179, 0.08);
  color: var(--rose);
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: hero-cta-glow 2.8s ease-in-out infinite;
}

.hero-example-cta::after {
  content: "↓";
  font-size: 1.32rem;
  line-height: 1;
  animation: hero-cta-bounce 1.6s ease-in-out infinite;
}

.hero-example-cta:hover {
  background: rgba(255, 126, 179, 0.14);
  border-color: rgba(255, 126, 179, 0.5);
  transform: translateY(1px);
  animation-play-state: paused;
}

.hero-example-cta:hover::after {
  animation-play-state: paused;
}

@keyframes hero-cta-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 126, 179, 0);
    border-color: rgba(255, 126, 179, 0.35);
  }
  50% {
    box-shadow: 0 0 28px 4px rgba(255, 126, 179, 0.22);
    border-color: rgba(255, 126, 179, 0.55);
  }
}

@keyframes hero-cta-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.systems-section {
  margin-bottom: 2rem;
}

.systems-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.systems-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 3vw, 2.55rem);
}

.systems-head p {
  margin: 0;
  color: var(--text-muted);
}

.systems-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-ghost {
  appearance: none;
  border: 1px solid rgba(232, 194, 122, 0.35);
  background: transparent;
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(232, 194, 122, 0.08);
  border-color: rgba(232, 194, 122, 0.55);
}

.systems-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.system-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 0.85rem 0.65rem;
  cursor: pointer;
  text-align: center;
  color: var(--text);
  font: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.system-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 194, 122, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.system-card.selected {
  border-color: rgba(232, 194, 122, 0.65);
  background: linear-gradient(180deg, rgba(232, 194, 122, 0.12), rgba(155, 109, 255, 0.08));
  box-shadow: 0 8px 28px rgba(232, 194, 122, 0.12);
}

.system-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.system-top-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  z-index: 1;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #1a1028;
  background: linear-gradient(135deg, #ffe9b8, #e8c27a);
  box-shadow: 0 2px 8px rgba(232, 194, 122, 0.35);
}

.system-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.system-icon svg {
  width: 44px;
  height: 44px;
}

.system-name {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.system-card.selected .system-name {
  color: var(--text);
}

.system-info {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 194, 122, 0.22);
  background: linear-gradient(135deg, rgba(232, 194, 122, 0.07), rgba(155, 109, 255, 0.05));
}

.system-info-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--gold);
}

.system-info-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-features li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.97rem;
}

.compat-form {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.compat-form .partner-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.compat-form .partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.compat-form .partner-card.city-dropdown-open {
  z-index: 100;
}

.partner-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.partner-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(155, 109, 255, 0.35), rgba(232, 194, 122, 0.25));
  font-size: 1.28rem;
}

.partner-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-family: var(--font-body);
  line-height: 1.55;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(232, 194, 122, 0.55);
  box-shadow: 0 0 0 4px rgba(232, 194, 122, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.city-field {
  position: relative;
}

.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 14px;
  background: #1a1428;
  border: 1px solid rgba(232, 194, 122, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
}

.city-suggestion {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}

.city-suggestion strong {
  font-weight: 600;
}

.city-suggestion span {
  color: #c9bdd8;
  font-size: 0.85rem;
  white-space: nowrap;
}

.city-suggestion-empty {
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  cursor: default;
}

.city-suggestion:hover,
.city-suggestion.active {
  background: rgba(232, 194, 122, 0.12);
}

.heart-divider {
  display: grid;
  place-items: center;
}

.heart-divider span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #e53935;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.heart-divider span svg {
  display: block;
}

.btn-primary {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 1.1rem 1.5rem;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  color: #1a1028;
  background: linear-gradient(135deg, var(--gold) 0%, #ffe7b8 45%, var(--gold-soft) 100%);
  box-shadow: 0 12px 40px rgba(232, 194, 122, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(232, 194, 122, 0.35);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 16, 40, 0.25);
  border-top-color: #1a1028;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-error {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 138, 138, 0.12);
  border: 1px solid rgba(255, 138, 138, 0.35);
  color: #ffcaca;
}

.form-note {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.consent-field-compact {
  padding: 0.75rem 0.9rem;
}

.consent-field input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-field a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-field a:hover {
  color: var(--text);
}

.footer-links {
  margin-top: 0.5rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.page-legal .legal-header {
  padding: 2.5rem 0 1rem;
}

.page-legal .legal-header h1 {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.legal-updated {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.legal-content {
  padding-bottom: 2rem;
}

.legal-section {
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
}

.legal-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--gold);
}

.legal-section p,
.legal-section li {
  margin: 0 0 0.65rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-section a {
  color: var(--gold);
}

.seo-content {
  position: relative;
  z-index: 1;
  padding: 3rem max(1.5rem, env(safe-area-inset-left, 0)) 2rem max(1.5rem, env(safe-area-inset-right, 0));
  max-width: none;
  width: 100%;
}

.seo-content-head {
  text-align: center;
  margin-bottom: 2rem;
}

.seo-content-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.62rem, 3vw, 2.12rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.seo-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 720px;
}

.seo-systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.seo-system-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.seo-system-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.seo-system-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.feedback-widget {
  margin-top: 0.75rem;
}

.feedback-open-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--gold-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.feedback-open-btn:hover {
  color: var(--gold);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(4px);
}

.feedback-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow);
  animation: feedback-modal-in 0.25s ease;
}

@keyframes feedback-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feedback-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.feedback-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.feedback-section {
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: left;
}

.feedback-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.feedback-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.feedback-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feedback-form .field span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text);
}

.feedback-form input,
.feedback-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

.feedback-form textarea::placeholder,
.feedback-form input::placeholder {
  font-family: var(--font-body);
  color: rgba(184, 174, 207, 0.75);
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feedback-submit {
  width: auto;
  min-width: 220px;
  margin-top: 0.25rem;
}

.feedback-status {
  margin: 0;
  font-size: 0.95rem;
}

.feedback-status.is-success {
  color: #7dcea0;
}

.feedback-status.is-error {
  color: #ff9aa8;
}

.feedback-status.is-info {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .feedback-fields {
    grid-template-columns: 1fr;
  }

  .feedback-submit {
    width: 100%;
  }
}

/* Result page */
.result-header {
  padding: 2rem 0 1rem;
}

.back-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.08rem;
}

.back-link:hover {
  text-decoration: underline;
}

.result-hero {
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.5rem;
}

.selected-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.system-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(155, 109, 255, 0.12);
  border: 1px solid rgba(155, 109, 255, 0.25);
  color: #dcc8ff;
  font-size: 0.85rem;
}

.couple-names {
  text-align: center;
}

.couple-names h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.12rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.couple-names .ampersand {
  display: block;
  color: var(--rose);
  font-size: 1.4rem;
  margin: 0.35rem 0;
}

.couple-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meta-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.meta-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.score-ring {
  --score: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--bg) 58%, transparent 59%),
    conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(255,255,255,0.08) 0);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(232, 194, 122, 0.25);
}

.score-value {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 700;
  color: var(--gold);
}

.score-label {
  color: var(--text-muted);
  font-size: 0.97rem;
  text-align: center;
}

.score-ring.calculating {
  animation: score-ring-pulse 1.4s ease-in-out infinite;
}

.score-ring.calculating .score-value {
  transition: opacity 0.15s ease;
}

@keyframes score-ring-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.verdict {
  text-align: center;
  color: var(--text);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.result-content {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 0 4rem;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.section-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 194, 122, 0.12);
  color: var(--gold);
  font-size: 0.92rem;
  white-space: nowrap;
}

.highlights {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.highlight-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-item strong {
  color: var(--gold-soft);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-item span {
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-ideal { color: var(--success); }
.rating-good { color: #9dffb8; }
.rating-mid { color: var(--warning); }
.rating-hard { color: var(--danger); }

.pre-block {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: #ddd2ea;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  padding: 1rem;
}

.text-info {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 3px solid var(--violet);
  background: rgba(155, 109, 255, 0.08);
  border-radius: 0 14px 14px 0;
  line-height: 1.7;
  color: #e8dff5;
}

.unavailable {
  color: var(--text-muted);
  font-style: italic;
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
}

.example-section {
  padding: 0 0 2.5rem;
  position: relative;
  z-index: 1;
  scroll-margin-top: 1.5rem;
}

.example-section::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto;
  height: calc(100% + 20px);
  border-radius: calc(var(--radius) + 6px);
  pointer-events: none;
  opacity: 0;
  border: 2px solid transparent;
}

.example-section.is-highlighted::before {
  animation: example-section-reveal 2.4s ease-out forwards;
}

.example-section.is-highlighted .example-head h2 {
  animation: example-title-shine 2.4s ease-out;
}

@keyframes example-section-reveal {
  0% {
    opacity: 1;
    border-color: rgba(255, 126, 179, 0.65);
    box-shadow:
      0 0 0 0 rgba(255, 126, 179, 0.45),
      inset 0 0 48px rgba(255, 126, 179, 0.07);
  }
  35% {
    opacity: 1;
    border-color: rgba(255, 126, 179, 0.4);
    box-shadow:
      0 0 56px 10px rgba(255, 126, 179, 0.28),
      inset 0 0 72px rgba(255, 126, 179, 0.1);
  }
  100% {
    opacity: 0;
    border-color: transparent;
    box-shadow: 0 0 0 0 rgba(255, 126, 179, 0);
  }
}

@keyframes example-title-shine {
  0%, 100% { color: var(--text); }
  20%, 45% { color: var(--rose); text-shadow: 0 0 24px rgba(255, 126, 179, 0.45); }
}

.home-example-shell {
  margin-top: 0.5rem;
}

.page-home .home-example-hero {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1rem 0.5rem;
  text-align: center;
}

.page-home .home-example-hero .couple-names h1 {
  font-size: clamp(1.62rem, 4vw, 2.25rem);
}

.page-home .home-example-content .example-report {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.example-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.example-label {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 126, 179, 0.35);
  color: var(--rose);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.example-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 3vw, 2.65rem);
}

.example-head p {
  margin: 0;
  color: var(--text-muted);
}

.why-us-section {
  position: relative;
  z-index: 1;
  padding: 0 0 3rem;
}

.why-us-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.why-us-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.why-us-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 3vw, 2.65rem);
}

.why-us-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why-us-grid li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 24, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.why-us-grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 194, 122, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.why-us-icon {
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 194, 122, 0.2), rgba(232, 194, 122, 0.06));
  border: 1px solid rgba(232, 194, 122, 0.25);
  color: #f0d08a;
}

.why-us-icon svg {
  width: 20px;
  height: 20px;
}

.why-us-grid strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.why-us-grid li span:last-child {
  grid-column: 2;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.example-report {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.example-report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.example-system {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-report-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.72rem, 3vw, 2.35rem);
}

.example-report-top h3 span {
  color: var(--rose);
  margin: 0 0.35rem;
}

.example-score {
  text-align: center;
  flex-shrink: 0;
}

.example-score-ring {
  --score: 74;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 0.4rem;
  background:
    radial-gradient(circle at center, var(--bg) 58%, transparent 59%),
    conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(255,255,255,0.08) 0);
}

.example-score-ring span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.example-score p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.example-block {
  margin-bottom: 1.25rem;
}

.example-block h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--gold-soft);
}

.example-block p {
  margin: 0;
  line-height: 1.65;
  color: #ddd2ea;
}

.example-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #ddd2ea;
  line-height: 1.65;
}

.example-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.example-plus {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(125, 255, 178, 0.06);
  border: 1px solid rgba(125, 255, 178, 0.15);
}

.example-minus {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 138, 138, 0.06);
  border: 1px solid rgba(255, 138, 138, 0.15);
}

.example-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.example-timeline.forecast-extended,
.page-result .example-timeline.forecast-extended {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  overflow: visible;
  width: 100%;
  min-width: 0;
}

.example-timeline.forecast-extended .forecast-year,
.page-result .example-timeline.forecast-extended .forecast-year {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.example-year {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.example-year strong {
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 1.17rem;
}

.example-year span {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.example-mini {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(155, 109, 255, 0.08);
  border: 1px solid rgba(155, 109, 255, 0.15);
}

.example-mini-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.example-mini p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #ddd2ea;
}

.ai-analysis-card {
  border-color: rgba(155, 109, 255, 0.35);
}

.ai-analysis-text {
  max-height: none;
}

.ai-loading-card,
.ai-error-card {
  text-align: center;
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.ai-loading h2,
.ai-error-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.ai-loading p,
.ai-error-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.result-report.is-streaming .example-block p,
.result-report.is-streaming .example-mini p {
  white-space: pre-wrap;
}

.ai-stream-hint {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 126, 179, 0.08);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.ai-enrich-hint {
  display: flex;
}

.result-report.is-streaming .ai-stream-hint {
  display: flex;
}

.ai-stream-score {
  font-weight: 600;
  color: var(--text);
}

.result-report {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.example-report.result-report.is-preview {
  width: 100%;
  max-width: 100%;
}

.result-report.is-preview .locked-section {
  width: 100%;
  box-sizing: border-box;
}

/* Result page layout */
.page-result .container {
  width: 100%;
  max-width: none;
  padding-inline: max(1.5rem, env(safe-area-inset-left, 0)) max(1.5rem, env(safe-area-inset-right, 0));
  margin-inline: auto;
}

.page-result .result-header,
.page-result .result-content {
  width: 100%;
}

.page-result .result-hero {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
  width: 100%;
  padding: 2rem 2rem 2.25rem;
}

.page-result .result-hero > * {
  width: 100%;
}

.page-result .couple-meta {
  max-width: 100%;
}

.page-result .selected-systems {
  justify-content: center;
}

.page-result .verdict,
.page-result .hero-archetype {
  max-width: 42rem;
  margin-inline: auto;
}

.page-result .result-content {
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.page-result .example-report {
  width: 100%;
  padding: 1.75rem 1.85rem 2rem;
}

.page-result .report-lead-quote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: none;
  border-radius: 14px;
  background: rgba(255, 126, 179, 0.08);
  text-align: center;
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--text);
}

.page-result .example-block {
  margin-bottom: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-result .example-block:last-child,
.page-result .example-columns .example-block {
  border-bottom: none;
}

.page-result .example-block h4 {
  margin-bottom: 0.75rem;
  font-size: 1.38rem;
}

.page-result .example-subhead {
  margin: 1.15rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--gold-soft);
}

.page-result .example-block p,
.page-result .example-block ul,
.page-result .example-block ol {
  max-width: none;
  width: 100%;
  line-height: 1.75;
}

.page-result .example-methodology,
.page-result .example-score-basis,
.page-result .example-warnings,
.page-result .example-rituals,
.page-result .example-recommendations,
.page-result .example-action-plan {
  width: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  border-radius: 0;
  padding: 1.25rem 0;
}

.page-result .example-methodology h4,
.page-result .example-score-basis h4,
.page-result .example-warnings h4,
.page-result .example-rituals h4,
.page-result .example-recommendations h4,
.page-result .example-action-plan h4,
.page-result .example-methodology p,
.page-result .example-score-basis p,
.page-result .example-warnings p,
.page-result .example-rituals p,
.page-result .example-recommendations p,
.page-result .example-action-plan p,
.page-result .example-action-plan ol {
  max-width: none;
  width: 100%;
}

.page-result .report-section-title {
  margin: 0 0 1rem;
  width: 100%;
}

.page-result .example-grid,
.page-result .example-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-result .dim-grid,
.page-result .indicator-grid,
.page-result .partner-portraits,
.page-result .milestone-list,
.page-result .cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-result .practice-columns {
  margin-top: 0.25rem;
}

.page-result .practice-col h4 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--gold-soft);
}

.page-result .chip-row.cols-2 {
  display: grid;
  gap: 0.65rem;
}

.page-result .chip-row.cols-2 .lang-chip {
  justify-self: stretch;
  text-align: center;
}

.page-result .action-plan {
  display: block;
  padding-left: 1.25rem;
}

.page-result .example-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.page-result .example-plus,
.page-result .example-minus {
  margin-bottom: 0;
  padding: 1.15rem 1.2rem;
  min-height: 8rem;
}

.page-result .score-ring-wrap {
  justify-self: center;
  width: auto;
}

.page-result .indicator-card {
  padding: 1rem 1.15rem;
}

.page-result .indicator-card p {
  font-size: 1rem;
  line-height: 1.65;
}

.page-result .partner-portraits-ai {
  gap: 1rem;
}

.page-result .partner-card-ai {
  padding: 1.15rem 1.2rem;
}

.page-result .example-mini {
  min-height: 5.5rem;
}

.page-result .example-block,
.page-result .example-report {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}

.page-result .dim-grid,
.page-result .indicator-grid,
.page-result .example-grid,
.page-result .example-grid-wide,
.page-result .example-columns,
.page-result .partner-portraits {
  min-width: 0;
}

.page-result .dim-card,
.page-result .indicator-card,
.page-result .example-mini,
.page-result .milestone-card,
.page-result .critical-date-card,
.page-result .seasonal-card {
  min-width: 0;
  max-width: 100%;
}

.page-result .example-timeline {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-result .indicator-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.page-result .indicator-values {
  white-space: normal;
  font-size: 1rem;
}

.page-result .dim-card-head {
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.page-result .dim-card p,
.page-result .indicator-card p,
.page-result .example-mini p {
  max-width: none;
}

.page-result .example-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.raw-calc-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}

.raw-calc-block + .raw-calc-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.raw-calc-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.42rem;
}

/* Calc highlights & expanded result blocks */
.calc-highlights {
  margin-bottom: 1.5rem;
}

.calc-highlights-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
}

.partner-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.partner-card {
  padding: 1.1rem 1.25rem;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.partner-card h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--rose);
}

.partner-card-ai p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.number-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.number-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.2rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.number-chip-master {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.35);
}

.number-chip-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.number-chip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.2rem;
}

.compat-grid {
  display: grid;
  gap: 0.85rem;
}

.compat-row {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compat-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.compat-row-head strong {
  font-size: 1.08rem;
}

.compat-num {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--violet);
  font-weight: 700;
}

.compat-row p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.factor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
}

.factor-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.factor-rating {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.factor-rating-3 { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.factor-rating-2 { background: rgba(96, 165, 250, 0.18); color: #93c5fd; }
.factor-rating-1 { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.factor-rating-0 { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }

.factor-values {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.dim-card {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dim-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}

.dim-card-head strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--gold);
}

.dim-bar-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
  transition: width 0.4s ease;
}

.dim-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dim-basis {
  margin-top: 0.4rem !important;
  font-size: 0.75rem !important;
  font-style: italic;
  color: rgba(212, 175, 55, 0.75) !important;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.indicator-card {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.indicator-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.indicator-head strong {
  font-size: 0.95rem;
  color: var(--gold);
  min-width: 0;
  flex: 1 1 auto;
}

.indicator-values {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 700;
  color: var(--violet);
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.indicator-values.is-generic {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-style: italic;
}

.indicator-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.example-methodology {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.example-score-basis {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.report-section-title {
  margin: 1.75rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.union-quote {
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--rose);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.17rem;
  color: var(--text-muted);
}

.trait-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trait-block > span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.trait-plus > span { color: #6ee7b7; }
.trait-minus > span { color: #fca5a5; }

.trait-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.partner-card-full {
  grid-column: span 1;
}

.milestone-list {
  display: grid;
  gap: 0.75rem;
}

.milestone-card {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.milestone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.4rem;
}

.milestone-period {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--violet);
  font-weight: 600;
}

.milestone-head strong {
  font-family: var(--font-display);
  font-size: 1.17rem;
}

.milestone-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.forecast-year {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.forecast-focus {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

.critical-dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.critical-date-card {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.critical-date-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--rose);
  margin-bottom: 0.35rem;
}

.critical-date-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.seasonal-card {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.12);
}

.seasonal-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #6ee7b7;
  margin-bottom: 0.35rem;
}

.seasonal-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.action-plan {
  margin: 0;
  padding-left: 1.25rem;
}

.action-plan li {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.action-plan li:last-child {
  margin-bottom: 0;
}

.example-action-plan {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.union-archetype {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--rose);
}

.hero-archetype {
  font-size: 1.42rem;
  text-align: center;
}

.example-grid-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.example-couple-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.example-meta-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.example-meta-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--gold-soft);
}

.example-meta-card span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.example-calc-section {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(0, 206, 201, 0.05);
  border: 1px solid rgba(0, 206, 201, 0.14);
}

.example-calc-section h4 {
  margin: 0 0 0.75rem;
}

.pythagorean-matrices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.pythagorean-matrix-card h5 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--gold-soft);
}

.pythagorean-matrix-card .matrix-date,
.pythagorean-matrix-card .matrix-work {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pythagorean-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.matrix-cell {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d8f8f6;
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.18);
}

.matrix-cell.is-empty {
  color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  font-weight: 400;
}

.matrix-cell.is-strong {
  background: rgba(0, 206, 201, 0.22);
  border-color: rgba(0, 206, 201, 0.35);
}

.compat-factors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compat-factors-table th,
.compat-factors-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.compat-factors-table th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.compat-factors-table td:last-child {
  white-space: nowrap;
}

.compat-rating.is-ideal { color: #9dffc8; }
.compat-rating.is-good { color: #86efac; }
.compat-rating.is-mid { color: #fde68a; }
.compat-rating.is-hard { color: #fca5a5; }

.example-calc-section .calc-note {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.example-locked-demo .locked-overlay .btn-unlock {
  text-decoration: none;
}

#compat-form {
  scroll-margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .example-couple-meta,
  .pythagorean-matrices {
    grid-template-columns: 1fr;
  }

  .compat-factors-table {
    display: block;
    overflow-x: auto;
  }
}

.example-warnings {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.example-rituals {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.example-recommendations {
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.92rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #ddd6fe;
}

.example-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Pricing & paywall */
.price-banner {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(155, 109, 255, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}

.price-banner-offer,
.price-banner-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.price-old {
  font-size: 1.12rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.75;
}

.price-new {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.price-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #e85d75, #c43d5a);
}

.price-timer {
  margin: 0.65rem 0 0;
  font-size: 0.97rem;
  color: #e8d5ff;
}

.price-timer strong {
  color: var(--gold-soft);
}

.price-note {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.price-legal-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.price-legal-note a {
  color: var(--accent);
}

#form-price-banner {
  margin: 0 0 1rem;
}

.report-paywall-cta {
  margin: 1.5rem 0 0.5rem;
}

.report-paywall-cta .price-banner {
  margin: 0;
}

.free-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #9dffc8;
  background: rgba(125, 255, 178, 0.12);
  border: 1px solid rgba(125, 255, 178, 0.25);
}

.locked-section {
  position: relative;
  margin: 1.25rem 0;
  border-radius: 14px;
  overflow: hidden;
}

.locked-section-static {
  min-height: 320px;
}

.locked-content {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  max-height: 420px;
  overflow: hidden;
}

.locked-preview {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-soft, #d8d0e8);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(10, 6, 20, 0.78);
  text-align: center;
}

.locked-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.locked-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--gold-soft);
}

.locked-overlay .btn-unlock {
  margin-top: 0.25rem;
  width: auto;
  min-width: 200px;
}

@media (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .container,
  .page-result .container {
    width: 100%;
    max-width: 100%;
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0)) max(0.75rem, env(safe-area-inset-right, 0));
  }

  .glow-1 {
    width: 260px;
    height: 260px;
    top: -70px;
    left: -50px;
  }

  .glow-2 {
    width: 220px;
    height: 220px;
    right: -40px;
  }

  .stars {
    opacity: 0.4;
  }

  /* Hero */
  .hero {
    padding: 2.25rem 0.5rem 1.25rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.38rem 0.8rem;
    margin-bottom: 1.1rem;
  }

  .hero h1 {
    font-size: clamp(1.88rem, 7.5vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
  }

  .hero h1 br {
    display: none;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-pillars li {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    column-gap: 0.75rem;
  }

  .pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .pillar-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-pillars strong {
    font-size: 1.12rem;
  }

  .page-home .hero-pillars strong {
    font-size: 1.22rem;
  }

  .hero-pillars li span:last-child {
    font-size: 0.9rem;
  }

  .hero-stats {
    margin-top: 1.1rem;
    max-width: none;
    border-radius: 16px;
    padding: 0.8rem 1rem;
    font-size: 0.93rem;
    line-height: 1.45;
  }

  .hero-stats strong {
    font-size: 1.28rem;
  }

  .hero-example-cta {
    margin-top: 1.1rem;
    padding: 0.85rem 1.25rem;
    font-size: 1.08rem;
    line-height: 1.35;
    max-width: calc(100% - 1rem);
    text-align: center;
  }

  /* Example */
  .example-section {
    padding-bottom: 1.25rem;
  }

  .example-head {
    margin-bottom: 1.1rem;
    padding-inline: 0.15rem;
  }

  .example-head h2 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .example-head p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .why-us-section {
    padding-bottom: 2rem;
  }

  .why-us-head h2 {
    font-size: 1.55rem;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .why-us-grid li {
    padding: 1rem;
  }

  .example-report {
    padding: 1.15rem 1rem;
    border-radius: 18px;
  }

  .example-report-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .example-report-top h3 {
    font-size: 1.65rem;
  }

  .union-archetype {
    font-size: 1rem;
  }

  .union-quote {
    font-size: 1.08rem;
    text-align: left;
    margin-top: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0 12px 12px 0;
  }

  .example-score-ring {
    width: 96px;
    height: 96px;
  }

  .example-score-ring span {
    font-size: 1.65rem;
  }

  .example-block h4 {
    font-size: 1.12rem;
  }

  .report-section-title {
    font-size: 1.38rem;
    margin-top: 1.35rem;
  }

  /* Systems */
  .systems-section {
    margin-bottom: 1.5rem;
  }

  .systems-head h2 {
    font-size: 1.55rem;
  }

  .systems-head p {
    font-size: 0.95rem;
  }

  .systems-toolbar .systems-count {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .systems-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .system-card {
    padding: 0.6rem 0.35rem;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
  }

  .system-card:active {
    transform: scale(0.97);
  }

  .system-icon {
    width: 38px;
    height: 38px;
  }

  .system-icon svg {
    width: 34px;
    height: 34px;
  }

  .system-name {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .system-info {
    padding: 1rem;
    border-radius: 14px;
  }

  .system-info-title {
    font-size: 1.12rem;
  }

  .system-info-text {
    font-size: 0.95rem;
  }

  /* Form */
  .compat-form {
    gap: 1.1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  }

  .compat-form .partner-card {
    padding: 1.2rem 1rem;
    border-radius: 18px;
  }

  .partner-head {
    margin-bottom: 1rem;
  }

  .partner-head h2 {
    font-size: 1.4rem;
  }

  .partner-icon {
    width: 38px;
    height: 38px;
    font-size: 1.12rem;
  }

  .field-grid,
  .couple-meta {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .field input {
    font-size: 16px;
    padding: 0.88rem 0.95rem;
    border-radius: 12px;
  }

  .heart-divider span {
    width: 44px;
    height: 44px;
  }

  .form-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-inline: calc(-1 * max(0.75rem, env(safe-area-inset-left, 0px)));
    width: calc(100% + max(0.75rem, env(safe-area-inset-left, 0px)) + max(0.75rem, env(safe-area-inset-right, 0px)));
    max-width: 100vw;
    box-sizing: border-box;
    padding:
      0.65rem
      max(0.75rem, env(safe-area-inset-left, 0))
      calc(0.65rem + env(safe-area-inset-bottom, 0))
      max(0.75rem, env(safe-area-inset-right, 0));
    background: linear-gradient(to top, rgba(7, 5, 15, 0.98) 72%, transparent);
  }

  .form-submit-bar .btn-primary {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 10px 36px rgba(232, 194, 122, 0.28);
  }

  .form-submit-bar .btn-primary:active:not(:disabled) {
    transform: scale(0.98);
  }

  .form-note {
    font-size: 0.88rem;
    padding-inline: 0.25rem;
  }

  .city-suggestion {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .city-suggestion span {
    white-space: normal;
    font-size: 0.82rem;
  }

  /* Grids */
  .section-head {
    flex-direction: column;
    gap: 0.65rem;
  }

  .section-head h2 {
    font-size: 1.55rem;
  }

  .section-badge {
    align-self: flex-start;
    white-space: normal;
  }

  .example-columns,
  .example-grid,
  .example-grid-wide,
  .page-result .example-grid,
  .page-result .example-grid-wide,
  .page-result .example-columns {
    grid-template-columns: 1fr;
  }

  .partner-portraits,
  .page-result .partner-portraits,
  .dim-grid,
  .page-result .dim-grid,
  .factor-grid,
  .indicator-grid,
  .page-result .indicator-grid,
  .page-result .milestone-list,
  .page-result .cols-2,
  .page-result .chip-row.cols-2,
  .critical-dates-grid,
  .seasonal-grid {
    grid-template-columns: 1fr;
  }

  .page-result .example-plus,
  .page-result .example-minus {
    min-height: auto;
    padding: 1rem;
  }

  .example-timeline:not(.forecast-extended),
  .page-result .example-timeline:not(.forecast-extended) {
    grid-template-columns: 1fr;
  }

  /* Result page */
  .result-header {
    padding: 1.25rem 0 0.75rem;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.97rem;
  }

  .page-result .result-content {
    min-width: 0;
  }

  .page-result .result-hero {
    padding: 1.25rem 1rem 1.4rem;
    border-radius: 18px;
    gap: 1rem;
    min-width: 0;
  }

  .page-result .example-report {
    padding: 1.15rem 1rem 1.35rem;
    border-radius: 18px;
    min-width: 0;
  }

  .home-example-content > .example-report.result-report.is-preview,
  .page-result .result-content > .example-report.result-report.is-preview {
    margin-inline: calc(-1 * max(1rem, env(safe-area-inset-left, 0px)));
    width: calc(100% + max(1rem, env(safe-area-inset-left, 0px)) + max(1rem, env(safe-area-inset-right, 0px)));
    max-width: 100vw;
    border-radius: 0;
  }

  .page-result .example-block {
    padding: 1rem 0;
  }

  .page-result .example-block h4,
  .page-result .report-section-title {
    font-size: 1.28rem;
    line-height: 1.3;
  }

  .page-result .example-block p,
  .page-result .indicator-card p,
  .page-result .dim-card p,
  .page-result .example-mini p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .indicator-card {
    padding: 1rem 1.05rem;
    border-radius: 16px;
  }

  .indicator-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
  }

  .indicator-head strong {
    font-family: var(--font-display);
    font-size: 1.22rem;
    line-height: 1.25;
    display: block;
    width: 100%;
  }

  .indicator-values {
    white-space: normal;
    font-size: 1.08rem;
    line-height: 1.35;
    display: block;
    width: 100%;
  }

  .indicator-values.is-generic {
    display: none;
  }

  .dim-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0.55rem;
  }

  .dim-card-head span {
    font-family: var(--font-display);
    font-size: 1.22rem;
    color: var(--gold);
    line-height: 1.25;
    width: 100%;
  }

  .dim-card-head strong {
    font-size: 1.42rem;
  }

  .dim-basis {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .example-mini {
    padding: 1rem 1.05rem;
    border-radius: 16px;
  }

  .example-mini-label {
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
  }

  .page-result .report-lead-quote {
    font-size: 1.08rem;
    padding: 0.85rem 1rem;
  }

  .couple-names h1 {
    font-size: clamp(1.72rem, 6.5vw, 2.25rem);
  }

  .score-ring {
    width: 118px;
    height: 118px;
  }

  .score-value {
    font-size: 2.12rem;
  }

  .section-card {
    padding: 1.2rem 1rem;
    border-radius: 18px;
  }

  .meta-card {
    padding: 0.9rem;
  }

  .meta-card strong {
    font-size: 1.17rem;
  }

  /* Pricing */
  .price-banner {
    padding: 0.9rem;
    border-radius: 12px;
  }

  .price-banner-offer,
  .price-banner-compact {
    flex-direction: column;
    gap: 0.4rem;
  }

  .price-new {
    font-size: 1.65rem;
  }

  .chip-row {
    flex-direction: column;
  }

  .lang-chip {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .locked-overlay {
    padding: 1.25rem 1rem;
  }

  .locked-overlay .btn-unlock {
    width: 100%;
    max-width: 280px;
  }

  .footer {
    padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom, 0));
    font-size: 0.88rem;
  }

  .data-table {
    font-size: 0.88rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.65rem 0.5rem;
  }
}

@media (max-width: 380px) {
  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .system-name {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }
}

.email-report-card {
  margin-top: 0.25rem;
}

.email-report-form {
  display: grid;
  gap: 1rem;
}

.email-report-form .btn-primary {
  width: auto;
  justify-self: start;
  min-width: 220px;
}

.email-report-status {
  margin: 0;
  font-size: 1rem;
}

.email-report-status.is-success {
  color: #7dcea0;
}

.email-report-status.is-error {
  color: #ff9aa8;
}

.email-report-status.is-info {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .email-report-form .btn-primary {
    width: 100%;
    justify-self: stretch;
  }
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem;
  background: rgba(12, 10, 22, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.cookie-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--accent);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-reject {
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

.cookie-consent-reject:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}
