/* Fundolar marketing — brand purple #301934 · gold #ffd973 */
:root {
  --primary: #301934;
  --primary-hover: #251528;
  --accent: #ffd973;
  --accent-hover: #ffcf4d;
  --primary-soft: rgba(48, 25, 52, 0.09);
  --accent-soft: rgba(255, 217, 115, 0.35);
  --bg-deep: #faf8fc;
  --bg-muted: #f3eef7;
  --bg-panel: #ffffff;
  --bg-panel-solid: #ffffff;
  --field-bg: #faf8fc;
  --border: #e4dce8;
  --text: #301934;
  --text-muted: #5c4a63;
  --shadow-card: 0 4px 6px rgba(48, 25, 52, 0.05), 0 20px 48px rgba(48, 25, 52, 0.08);
  --shadow-sm: 0 1px 3px rgba(48, 25, 52, 0.06);
  --shadow-header: 0 1px 0 rgba(48, 25, 52, 0.06);
  --gradient-hero: linear-gradient(145deg, #301934 0%, #4a2754 55%, #301934 100%);
  --gradient-text: linear-gradient(135deg, #301934 0%, #ffd973 100%);
  --font-display: "Jost", system-ui, -apple-system, sans-serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1160px;
  --header-h: 64px;
  --cyan: var(--primary);
  --violet: var(--primary);
  --gold: var(--accent);
  --magenta: var(--primary);
  --shadow-glow: var(--shadow-card);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg-deep);
  background-image: url("../images/site/bg-dot-pattern.svg");
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black, transparent 75%);
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 560px 380px at 8% 5%, rgba(48, 25, 52, 0.07), transparent),
    radial-gradient(ellipse 480px 340px at 92% 15%, rgba(255, 217, 115, 0.14), transparent),
    radial-gradient(ellipse 520px 420px at 50% 95%, rgba(250, 248, 252, 1), transparent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #251528 0%, #301934 55%, #2a1430 100%);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.site-header .logo,
.site-header .logo:hover {
  color: #fff;
}

.site-header .nav-toggle-label {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .nav-toggle-label span:not(.visually-hidden) {
  background: #fff;
}

.site-header .nav a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.site-header .nav .btn-nav {
  margin-left: 0.25rem;
  padding: 0.45rem 0.85rem;
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.site-header .nav .btn-nav:hover {
  background: var(--accent-hover);
  color: var(--primary) !important;
}

.site-header .nav--single-row .nav-auth-inline {
  border-left-color: rgba(255, 255, 255, 0.28);
}

.site-header .nav-auth-inline .btn-signin-nav {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.site-header .nav-auth-inline .btn-signin-nav:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.site-header .nav-auth-inline .btn-signup-nav {
  background: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header .nav-auth-inline .btn-signup-nav:hover {
  filter: brightness(1.05);
  color: var(--primary) !important;
}

.site-header .nav--policy a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header .nav--policy a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

@media (min-width: 901px) {
  .header-inner > .logo {
    flex-shrink: 0;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.045em;
  font-weight: 700;
  font-size: 1.48rem;
  line-height: 1;
}

.logo-wordmark__fund {
  font-weight: 700;
}

.logo-wordmark__olar {
  font-weight: 700;
  color: var(--accent);
}

.site-header .logo-wordmark__fund {
  color: #fff;
}

.site-header .logo:hover .logo-wordmark__fund {
  color: #fff;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 217, 115, 0.42);
}

.site-header .logo-mark {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 217, 115, 0.45);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo--footer .logo-mark {
  width: 38px;
  height: 38px;
}

.logo--footer {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.logo--footer .logo-wordmark {
  font-size: 1.35rem;
}

.logo--footer .logo-wordmark__fund {
  color: var(--primary);
}

.logo--footer .logo-wordmark__olar {
  color: var(--accent);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--field-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-label span:not(.visually-hidden) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

@media (min-width: 901px) {
  .nav--single-row {
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1px;
    margin-left: 0.25rem;
  }

  .nav--single-row::-webkit-scrollbar {
    display: none;
  }

  .nav--single-row > a {
    flex-shrink: 0;
    padding: 0.42rem 0.55rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .nav--single-row .nav-auth-inline {
    flex-shrink: 0;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.35rem;
    padding-left: 0.6rem;
    border-left: 1px solid var(--border);
    white-space: nowrap;
  }

  .nav--single-row .btn-signin-nav,
  .nav--single-row .btn-signup-nav {
    padding: 0.38rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav .btn-nav {
  margin-left: 0.25rem;
  padding: 0.45rem 0.85rem;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8125rem;
  box-shadow: 0 2px 10px rgba(48, 25, 52, 0.25);
}

.nav .btn-nav:hover {
  background: var(--primary-hover);
  color: #fff !important;
}

@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-header .nav {
    background: rgba(30, 16, 35, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header .nav a {
    color: rgba(255, 255, 255, 0.92);
  }

  .site-header .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle:checked ~ .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  }

  .site-header .nav-toggle:checked ~ .nav {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  }

  .nav .btn-nav {
    margin-left: 0;
    text-align: center;
  }

  /* Inner pages (docs, policies, etc.): inline policy nav — no hamburger; keep visible */
  .site-header .header-inner > .nav.nav--policy {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 0.35rem 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}

section {
  padding: clamp(3.5rem, 8vw, 6rem) 1rem;
}

.section-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  margin: 0 0 1.25rem;
}

.hero .hero-grid > div:first-child h1 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

/* Hero headline — stacked, high-contrast, first-glance impact */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  margin-bottom: 1.35rem;
  animation: heroTitleReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title__lead {
  display: block;
  position: relative;
  padding-bottom: 0.35rem;
  font-size: clamp(2.5rem, 6.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: var(--primary);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 50px rgba(48, 25, 52, 0.12),
    0 0 1px rgba(48, 25, 52, 0.08);
}

.hero-title__lead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 5.5rem);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 217, 115, 0.35) 72%, transparent 100%);
  box-shadow: 0 2px 16px rgba(255, 217, 115, 0.55);
}

.hero-title__rest {
  display: block;
  font-size: clamp(1.2rem, 2.85vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-muted);
  max-width: min(100%, 26rem);
}

.hero-title__hot {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(125deg, #301934 0%, #5c3568 38%, #c9a227 72%, #ffd973 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255, 217, 115, 0.35));
}

.hero-title__strike-wrap {
  position: relative;
  color: var(--text);
  font-weight: 800;
}

.hero-title__strike-wrap::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 50%;
  height: 0.18em;
  margin-top: -0.02em;
  background: linear-gradient(90deg, rgba(255, 217, 115, 0.15), var(--accent), rgba(255, 217, 115, 0.2));
  border-radius: 2px;
  opacity: 0.92;
  transform: rotate(-1.2deg) scaleX(1.02);
  pointer-events: none;
}

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
  }
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-accent {
  color: var(--accent);
  font-weight: 700;
}

.hero {
  position: relative;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg__mesh {
  position: absolute;
  inset: -25% -15%;
  background:
    radial-gradient(ellipse 75% 55% at 15% 35%, rgba(255, 217, 115, 0.28), transparent 58%),
    radial-gradient(ellipse 65% 50% at 88% 55%, rgba(48, 25, 52, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 45% at 50% 105%, rgba(74, 39, 84, 0.14), transparent 48%);
  animation: heroMeshPulse 14s ease-in-out infinite alternate;
}

.hero-bg__shine {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 160vmax;
  height: 160vmax;
  margin-left: -80vmax;
  margin-top: -80vmax;
  background: conic-gradient(
    from 210deg at 50% 50%,
    transparent 0deg,
    rgba(255, 217, 115, 0.07) 55deg,
    transparent 110deg,
    rgba(48, 25, 52, 0.06) 200deg,
    transparent 280deg,
    rgba(255, 217, 115, 0.05) 330deg,
    transparent 360deg
  );
  animation: heroShineSpin 28s linear infinite;
}

.hero-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}

.hero-bg__orb--1 {
  width: min(420px, 65vw);
  height: min(420px, 65vw);
  right: -8%;
  top: -18%;
  background: rgba(255, 217, 115, 0.42);
  animation: heroOrbA 20s ease-in-out infinite;
}

.hero-bg__orb--2 {
  width: min(360px, 55vw);
  height: min(360px, 55vw);
  left: -12%;
  bottom: -8%;
  background: rgba(48, 25, 52, 0.2);
  animation: heroOrbB 24s ease-in-out infinite;
}

.hero-bg__orb--3 {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  left: 38%;
  top: 15%;
  background: rgba(255, 217, 115, 0.18);
  animation: heroOrbC 18s ease-in-out infinite;
}

@keyframes heroMeshPulse {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-3%, 4%) scale(1.06);
    opacity: 0.92;
  }
}

@keyframes heroShineSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroOrbA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-12%, 14%) scale(1.12);
  }
  66% {
    transform: translate(6%, -8%) scale(0.94);
  }
}

@keyframes heroOrbB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(14%, -10%) scale(1.08);
  }
  70% {
    transform: translate(-6%, 12%) scale(0.9);
  }
}

@keyframes heroOrbC {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18%, 8%) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg__mesh,
  .hero-bg__shine,
  .hero-bg__orb {
    animation: none !important;
  }

  .hero-bg__shine {
    transform: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 260px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 26rem;
}

.hero .hero-actions .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 380px) {
  .hero .hero-actions {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(48, 25, 52, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-ghost {
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--field-bg);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.plugin-preview-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-width: min(100%, 26rem);
  margin-left: auto;
}

.plugin-preview-card__hero {
  position: relative;
  z-index: 1;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1.35rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
}

.plugin-preview-card__badge-wrap {
  margin: 0;
}

.plugin-preview-card__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(48, 25, 52, 0.12);
}

.plugin-preview-card__title {
  margin: 0.85rem 0 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.plugin-preview-card__intro {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.plugin-preview-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--bg-panel);
}

.plugin-preview-card__footnote {
  margin: 0;
  padding: 0.65rem 1rem 1rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--field-bg);
}

.mock-form {
  display: grid;
  gap: 0.75rem;
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-pill {
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.mock-input {
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--field-bg);
  border: 1px solid var(--border);
}

.mock-pay {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.mock-pay span {
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--primary);
}

/* Hero preview — modest scale-up for visibility */
.hero .hero-visual {
  min-height: 300px;
}

.hero .plugin-preview-card {
  max-width: min(100%, 30rem);
  border-radius: 14px;
}

.hero .plugin-preview-card__hero {
  padding: 1.55rem clamp(1.1rem, 4vw, 1.75rem) 1.45rem;
}

.hero .plugin-preview-card__badge {
  padding: 0.42rem 1rem;
  font-size: 0.78rem;
}

.hero .plugin-preview-card__title {
  margin-top: 1rem;
  font-size: clamp(1.32rem, 3.2vw, 1.62rem);
}

.hero .plugin-preview-card__intro {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  max-width: 24rem;
}

.hero .plugin-preview-card__body {
  padding: 1.45rem 1.5rem 1.55rem;
}

.hero .plugin-preview-card__footnote {
  padding: 0.78rem 1.15rem 1.05rem;
  font-size: 0.8125rem;
}

.hero .mock-form {
  gap: 0.9rem;
}

.hero .mock-row {
  gap: 0.6rem;
}

.hero .mock-pill {
  padding: 0.68rem 0.55rem;
  font-size: 0.9rem;
}

.hero .mock-input {
  height: 52px;
  border-radius: 10px;
}

.hero .mock-pay {
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.hero .mock-pay span {
  padding: 0.4rem 0.68rem;
  font-size: 0.72rem;
}

.stats.stats-section {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  border-block: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 217, 115, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-deep) 100%);
}

.stats.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 520px);
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
  opacity: 0.9;
}

.stats-section__head {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(1.85rem, 4vw, 2.65rem);
}

.stats-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--primary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.35rem);
  align-items: stretch;
}

@media (max-width: 700px) {
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.4rem 1rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(48, 25, 52, 0.22);
  box-shadow: var(--shadow-card);
}

.stat-card__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 8rem;
  min-height: 4.25rem;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, var(--field-bg) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 2px rgba(255, 217, 115, 0.38);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-label {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 14rem;
}

.stat-code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.features-intro {
  max-width: 52ch;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: #c5ced9;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(48, 25, 52, 0.12);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gateways {
  background: linear-gradient(180deg, transparent, rgba(48, 25, 52, 0.05), transparent);
}

.gateway-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

.gateway-logos a,
.gateway-logos figure {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gateway-logos img {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.gateway-logos figure:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  padding-top: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: rgba(48, 25, 52, 0.28);
}

.step h3 {
  margin-top: 0.5rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.step p + p {
  margin-top: 0.65rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.info-block {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}

.info-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.info-block li {
  margin-bottom: 0.5rem;
}

.cta-section {
  padding: clamp(2.75rem, 7vw, 4.5rem) 1rem;
  background:
    radial-gradient(ellipse 85% 65% at 50% 0%, rgba(255, 217, 115, 0.09), transparent 55%),
    linear-gradient(165deg, #1a0f1e 0%, #301934 42%, #251528 100%);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-band {
  position: relative;
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 20px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(48, 25, 52, 0.06);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(56%, 280px);
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.95;
}

.cta-band h2 {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--primary);
}

.cta-band p {
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 auto 1.75rem;
}

.cta-band__actions {
  position: relative;
  justify-content: center;
}

.cta-band .btn-ghost--on-light {
  background: var(--bg-panel);
  color: var(--primary);
  border-color: rgba(48, 25, 52, 0.22);
}

.cta-band .btn-ghost--on-light:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--field-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

@media (min-width: 801px) {
  .contact-grid {
    align-items: stretch;
  }

  .contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .contact-card .js-ajax-form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .contact-card .js-ajax-form button[type="submit"] {
    margin-top: auto;
  }
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  margin-top: 0;
}

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

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.contact-phone {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-phone-note {
  color: var(--text-muted);
}

.contact-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-inline-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-list__icon--whatsapp {
  color: #128c7e;
  margin-top: 3px;
}

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(18, 140, 126, 0.28);
  background: rgba(18, 140, 126, 0.07);
  color: #0f5c52;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.contact-whatsapp-btn:hover {
  background: rgba(18, 140, 126, 0.12);
  border-color: rgba(18, 140, 126, 0.45);
  color: #0a4a42;
  box-shadow: 0 2px 8px rgba(18, 140, 126, 0.12);
}

.contact-whatsapp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 140, 126, 0.22);
}

.contact-whatsapp-btn__num {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-whatsapp-btn:hover .contact-whatsapp-btn__num {
  color: #0f5c52;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.form-feedback--success {
  background: rgba(34, 139, 87, 0.1);
  border-color: rgba(34, 139, 87, 0.35);
  color: #1e5f3a;
}

.form-feedback--error {
  background: rgba(180, 48, 72, 0.08);
  border-color: rgba(180, 48, 72, 0.35);
  color: #7a2234;
}

.contact-card .js-ajax-form button[type="submit"][aria-busy="true"] {
  cursor: wait;
  opacity: 0.85;
}

.compare-section {
  background: linear-gradient(180deg, rgba(48, 25, 52, 0.06), transparent);
}

.compare-intro {
  max-width: 68ch;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.compare-intro a {
  color: var(--primary);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-column {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 1.5rem 1.5rem 1.25rem;
}

.compare-column h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.3;
}

.compare-column--pain h3 {
  color: var(--text-muted);
}

.compare-column--fundolar {
  border-color: rgba(48, 25, 52, 0.35);
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-panel-solid));
  box-shadow: var(--shadow-sm);
}

.compare-column--fundolar h3 {
  color: var(--primary);
}

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

.compare-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.35rem;
  border-bottom: 1px solid rgba(26, 29, 36, 0.08);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.compare-column--fundolar .compare-list li::before {
  background: var(--accent);
  opacity: 1;
}

.compare-column--fundolar .compare-list li {
  color: var(--text);
}

.compare-footnote {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 85ch;
}

.compare-footnote strong {
  color: var(--text);
  font-weight: 600;
}

.legal-inner--wide {
  max-width: 820px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.seo-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 72ch;
}

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

.seo-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel-solid);
}

.seo-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.seo-compare-table caption {
  padding: 0;
}

.seo-compare-table th,
.seo-compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.seo-compare-table thead th {
  background: rgba(48, 25, 52, 0.06);
  font-weight: 700;
  color: var(--text);
}

.seo-compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  width: 22%;
}

.seo-compare-table tbody tr:last-child th,
.seo-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-compare-table td {
  color: var(--text-muted);
  width: 39%;
}

.seo-compare-table a {
  color: var(--primary);
}

.seo-faq {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.seo-cta-band {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(48, 25, 52, 0.25);
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-panel-solid));
}

.seo-cta-band h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.seo-cta-band p {
  margin-bottom: 0;
}

.site-footer {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(2.75rem, 5vw, 4rem) 1rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
    max-width: 42rem;
  }
}

/* Mobile / narrow: row 1 = about (full width); rows 2–3 = Menu | Quick links, Legal | Resources */
@media (max-width: 640px) {
  .footer-main {
    gap: 1.5rem 0.85rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .footer-about {
    max-width: none;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-heading {
    font-size: 0.625rem;
    margin-bottom: 0.75rem;
  }

  .footer-list li {
    margin-bottom: 0.45rem;
  }

  .footer-list a {
    font-size: 0.8125rem;
    line-height: 1.45;
    word-break: break-word;
  }
}

.footer-about-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: none;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

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

.footer-list li {
  margin-bottom: 0.55rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-base {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
}

.footer-base-inner {
  padding: 1rem 1rem;
}

.footer-base .copyright {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.simple-footer {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.75rem max(1rem, env(safe-area-inset-left, 0px)) 1.75rem max(1rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.simple-footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  min-width: 0;
}

.simple-footer-inner p {
  margin: 0;
}

.simple-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.simple-footer-nav a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.simple-footer-nav a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.nav--policy {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav--policy a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav--policy a:hover {
  color: var(--text);
  background: var(--primary-soft);
}

.legal-page {
  padding-top: clamp(1.25rem, 4vw, 2rem);
  padding-bottom: clamp(2.5rem, 7vw, 4rem);
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  min-width: 0;
}

.legal-inner {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  min-width: 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-back:hover {
  color: var(--primary-hover);
}

.legal-doc h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-doc h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin-top: 1.35rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.45rem;
}

.legal-doc pre {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.legal-doc pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  color: var(--text);
  white-space: pre;
  padding: 0;
  border: none;
  background: transparent;
}

.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text);
}

.legal-doc strong {
  color: var(--text);
}

.legal-doc a {
  word-break: break-word;
}

.policy-footer-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .site-header:has(.nav--policy) {
    height: auto;
    min-height: var(--header-h);
  }

  .site-header:has(.nav--policy) .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .site-header:has(.nav--policy) .logo {
    min-width: 0;
  }

  .site-header:has(.nav--policy) .nav--policy {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .site-header:has(.nav--policy) .nav--policy a {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  .simple-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .simple-footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.nav-auth-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--border);
}

.nav-auth-inline .btn-signin-nav {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-auth-inline .btn-signin-nav:hover {
  color: var(--text) !important;
  border-color: var(--primary);
  background: var(--bg-panel);
}

.nav-auth-inline .btn-signup-nav {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(48, 25, 52, 0.15);
  white-space: nowrap;
}

.nav-auth-inline .btn-signup-nav:hover {
  filter: brightness(1.03);
  color: var(--primary) !important;
}

@media (max-width: 900px) {
  .nav-auth-inline {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    flex-direction: column;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .site-header .nav-auth-inline {
    border-top-color: rgba(255, 255, 255, 0.22);
  }

  .nav-auth-inline .btn-signin-nav,
  .nav-auth-inline .btn-signup-nav {
    width: 100%;
    text-align: center;
  }
}

.scroll-top {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

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

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--accent);
}

.scroll-top:focus {
  outline: none;
}

.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition-duration: 0.01ms;
  }

  .scroll-top:not(.is-visible) {
    transform: none;
  }
}
