@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap");

[hidden] {
  display: none !important;
}

:root {
  --bg: #070d18;
  --bg-elevated: #0b1424;
  --surface: #101c30;
  --surface-2: #152238;
  --surface-hover: #1a2a45;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #14d4a8;
  --accent-soft: rgba(20, 212, 168, 0.12);
  --accent-dim: #0ea67e;
  --gold: #e8b84a;
  --gold-soft: rgba(232, 184, 74, 0.12);
  --warning: #f59e0b;
  --danger: #f87171;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-hover: #e2e8f0;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --accent: #0d9b7a;
  --accent-soft: rgba(13, 155, 122, 0.1);
  --accent-dim: #087a60;
  --gold: #b8860b;
  --gold-soft: rgba(184, 134, 11, 0.1);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(13, 155, 122, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(184, 134, 11, 0.06), transparent 50%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(20, 212, 168, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(232, 184, 74, 0.08), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(7, 13, 24, 0.4) 100%);
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #5eecc8; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #0a8f6c 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #042a20;
  box-shadow: 0 8px 24px rgba(20, 212, 168, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(20, 212, 168, 0.25);
}

.nav-cta:hover {
  background: rgba(20, 212, 168, 0.2) !important;
  color: #5eecc8 !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-backdrop {
  display: none;
}

.feed-cta {
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 212, 168, 0.22);
  background: linear-gradient(135deg, rgba(20, 212, 168, 0.08) 0%, var(--surface) 100%);
  text-align: center;
}

.feed-cta p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feed-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #042a20;
  box-shadow: 0 10px 30px rgba(20, 212, 168, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(20, 212, 168, 0.32);
  text-decoration: none;
  color: #042a20;
}

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

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent-dim);
  text-decoration: none;
  color: var(--text);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 0.98rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-head--center { text-align: center; }

.feature-sub {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.feature-card--highlight {
  background: linear-gradient(160deg, rgba(20, 212, 168, 0.08) 0%, var(--surface) 55%);
  border-color: rgba(20, 212, 168, 0.28);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(20, 212, 168, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-copy { text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 212, 168, 0.2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

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

.hero-lead {
  color: var(--muted);
  max-width: 520px;
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

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

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-pill {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 120px;
}

.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.1;
}

.stat-pill span {
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-pill-mipyme {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.stat-pill-mipyme strong {
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.hero-card-title {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feed-row:last-child { border-bottom: none; }

.feed-row-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-radius: var(--radius);
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.feed-row-link:hover {
  background: rgba(20, 212, 168, 0.06);
}

.feed-row-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feed-row strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.feed-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.feed-section {
  padding: 2.5rem 1.5rem 1rem;
}

.public-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.25rem 0 1rem;
}

.public-search-input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.public-search-input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent);
}

.public-search-meta {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.public-search-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.public-search-page-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.feed-item-public {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.feed-item-link {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.badge-mipyme {
  display: inline-block;
  background: color-mix(in srgb, #5b8def 16%, var(--surface));
  border: 1px solid color-mix(in srgb, #5b8def 40%, var(--border));
  color: #9ec5ff;
  border-radius: 999px;
  font-weight: 600;
}

.feed-item-link:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--border));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.feed-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.public-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-item-public {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.feed-item-entity {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.feed-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.feed-item-title a {
  color: inherit;
  text-decoration: none;
}

.feed-item-title a:hover { text-decoration: underline; }

.feed-item-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.empty-feed {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 0;
}

.score-chip {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  white-space: nowrap;
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding: 1rem 0 4rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.feature-card:hover {
  border-color: rgba(20, 212, 168, 0.35);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 3rem;
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Forms */
.register-section {
  padding: 2rem 1.5rem 4.5rem;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.register-copy h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.register-copy p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.register-steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.register-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow);
}

.form-panel h2,
.form-panel h3 {
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.form-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.form-hint {
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: -0.55rem 0 1rem;
}

.reg-company-block {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.reg-company-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.25rem;
}

.reg-company-name {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.reg-rnc-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.35rem;
}

.reg-rnc-row input {
  flex: 1;
  margin-bottom: 0;
}

.reg-rnc-row .btn {
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}

.reg-rnc-status {
  font-size: 0.82rem;
  margin: 0 0 1rem;
  min-height: 1.25em;
  line-height: 1.4;
}

.reg-rnc-status.reg-rnc-ok {
  color: var(--accent, #14d4a8);
}

.reg-rnc-status.reg-rnc-err {
  color: #f87171;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.contact-section {
  padding: 4rem 1.5rem 5rem;
}

.contact-grid {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow);
}

input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.msg {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.msg-ok { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(20, 212, 168, 0.25); }
.msg-warn { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.25); }
.msg-err { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.25); }

.site-footer {
  text-align: center;
  padding: 2.25rem 1.5rem;
  color: var(--muted-2);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
}

.site-footer strong { color: var(--muted); font-weight: 500; }

.footer-sources {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer-seo {
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.footer-seo a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Shared utilities */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.card p { color: var(--muted); font-size: 0.9rem; }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* Live data skeletons (sin números falsos) */
.sk-line {
  display: block;
  height: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
}
.sk-w80 { width: 80%; }
.sk-w70 { width: 70%; }
.sk-w60 { width: 60%; }
.sk-w50 { width: 50%; }
.sk-w40 { width: 40%; }
.sk-w30 { width: 30%; }
.skeleton-pill { min-height: 3rem; display: flex; flex-direction: column; gap: 0.35rem; justify-content: center; }
.skeleton-row { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.empty-live { color: var(--muted); font-size: 0.88rem; padding: 0.75rem 0; }
.empty-live-err { color: #f87171; }

.mipyme-search-wrap { padding: 0.75rem 1rem 1rem; }
.mipyme-search-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.mipyme-search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.mipyme-search-results {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
.live-pending:empty { min-height: 1.2em; }
.plan-features-live {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.plan-features-live li { margin: 0.25rem 0; }

/* Value band */
.value-band {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.5) 0%, transparent 100%);
}

.value-band-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.value-band-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.2;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.value-card {
  padding: 1.25rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.value-card:hover {
  border-color: rgba(20, 212, 168, 0.3);
  transform: translateY(-2px);
}

.value-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.value-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.value-card span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* How it works */
.how-section {
  padding: 4rem 0;
}

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: how;
  max-width: 960px;
  margin: 0 auto;
}

.how-step {
  position: relative;
  padding: 1.35rem 1.25rem 1.35rem 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.how-step::before {
  counter-increment: how;
  content: counter(how);
  position: absolute;
  left: 1.15rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #042a20;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.how-step p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(20, 212, 168, 0.12) 0%, rgba(232, 184, 74, 0.06) 50%, transparent 100%);
  border-top: 1px solid rgba(20, 212, 168, 0.15);
  border-bottom: 1px solid var(--border);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
  max-width: 520px;
}

.cta-band-copy p {
  color: var(--muted);
  max-width: 480px;
  margin: 0;
}

.cta-band-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { order: 0; }
  .hero-visual { order: 1; }
  .features { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 24, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease);
    z-index: 60;
  }
  .nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(92vw, 360px);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 4.5rem 1rem 1.5rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
    z-index: 70;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    white-space: nowrap;
  }
  .hero { padding-top: 2.5rem; }
  .hero-stats { gap: 0.75rem; }
  .stat-pill {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 145px;
  }
  .value-grid { grid-template-columns: 1fr; }
  .feed-item-public {
    flex-direction: column;
    align-items: stretch;
  }
  .feed-item-public .btn { width: 100%; }
}
