/* ==========================================================================
   VitalChefPal — landing styles
   Palette aligned with Flutter app (flutter_flow_theme.dart)
   ========================================================================== */

:root {
  --color-primary: #a8d5ba;
  --color-primary-dark: #7fb89a;
  --color-secondary: #ffb74d;
  --color-tertiary: #ffeb3b;
  --color-success: #249689;
  --color-error: #e4464e;

  --color-text: #14181b;
  --color-text-soft: #57636c;
  --color-bg: #f5efe6;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);

  --font-display:
    "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1120px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f1f4f8;
    --color-text-soft: #95a1ac;
    --color-bg: #14181b;
    --color-bg-alt: #1d2428;
    --color-surface: #1d2428;
    --color-border: #2a3238;
  }
}

/* Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 4.5vw + 1rem, 3.8rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1rem;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-border) 60%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}
.brand-name {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover {
  color: var(--color-text);
}
.site-nav .btn {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav:not([hidden]) {
  display: grid;
}
@media (min-width: 781px) {
  .mobile-nav,
  .mobile-nav:not([hidden]) {
    display: none !important;
  }
}
.mobile-nav a {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
}
.mobile-nav .btn {
  text-align: center;
}

@media (max-width: 780px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background: var(--color-primary);
  color: #0b2b1f;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

/* Store badges -------------------------------------------------------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  background: #14181b;
  color: #fff;
  border-radius: var(--radius-md);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge small {
  font-size: 0.72rem;
  opacity: 0.75;
}
.store-badge strong {
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.store-badge[aria-disabled="true"],
.store-badge.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(
      circle at 20% 10%,
      color-mix(in srgb, var(--color-primary) 40%, transparent) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      color-mix(in srgb, var(--color-secondary) 35%, transparent) 0%,
      transparent 50%
    ),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-copy .eyebrow {
  color: var(--color-success);
}
.hero h1 .accent {
  color: var(--color-success);
  white-space: nowrap;
}
.lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 56ch;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}
.trust-list svg {
  color: var(--color-success);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: min(100%, 520px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.orb-1 {
  width: 280px;
  height: 280px;
  background: var(--color-primary);
  top: -40px;
  left: -40px;
}
.orb-2 {
  width: 220px;
  height: 220px;
  background: var(--color-secondary);
  bottom: -30px;
  right: -30px;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual img {
    max-width: 380px;
  }
}

/* Sections ------------------------------------------------------------ */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
#features,
#how,
#for-you,
#download,
#faq {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 3vw, 3rem);
  text-align: center;
}
.section-head p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  background: color-mix(in srgb, var(--color-secondary) 18%, transparent);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

/* Features grid ------------------------------------------------------- */
.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(
    in srgb,
    var(--color-primary) 50%,
    var(--color-border)
  );
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-primary) 45%, transparent);
  color: var(--color-success);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.1rem;
}
.feature-card p {
  color: var(--color-text-soft);
  margin: 0;
}

/* How it works -------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  list-style: none;
  position: relative;
  padding: 3.75rem 1.5rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #0b2b1f;
  font-family: var(--font-display);
  font-weight: 700;
}
.steps h3 {
  margin-bottom: 0.25rem;
}
.steps p {
  color: var(--color-text-soft);
  margin: 0;
}

/* Targets ------------------------------------------------------------- */
.targets-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.target-card {
  padding: 1.5rem;
  border-left: 4px solid var(--color-secondary);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.target-card h3 {
  font-size: 1.05rem;
}
.target-card p {
  color: var(--color-text-soft);
  margin: 0;
}

/* CTA section --------------------------------------------------------- */
.cta {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 75%, var(--color-bg)) 0%,
    color-mix(in srgb, var(--color-secondary) 60%, var(--color-bg)) 100%
  );
  color: #0b2b1f;
}
.cta-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta h2 {
  color: #0b2b1f;
}
.cta p {
  color: rgba(11, 43, 31, 0.8);
  font-size: 1.1rem;
}
.cta .cta-row {
  justify-content: center;
}

/* FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(
    in srgb,
    var(--color-primary) 60%,
    var(--color-border)
  );
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1.1rem 0;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--color-text-soft);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: "–";
  color: var(--color-success);
}
.faq p {
  padding: 0 0 1.15rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* Footer -------------------------------------------------------------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
}
.footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  margin-bottom: 2rem;
}
.site-footer h4 {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.site-footer nav {
  display: grid;
  gap: 0.4rem;
}
.site-footer nav a,
.footer-contact a {
  color: var(--color-text-soft);
  transition: color 0.15s ease;
}
.site-footer nav a:hover,
.footer-contact a:hover {
  color: var(--color-text);
}
.footer-brand p {
  max-width: 32ch;
  font-size: 0.95rem;
}
.footer-base {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-base small {
  color: var(--color-text-soft);
}

/* Tablet: 2 columnas + brand ocupando toda la fila */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Móvil: todo apilado y centrado */
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .footer-brand {
    display: grid;
    justify-items: center;
  }
  .footer-brand p {
    max-width: 36ch;
  }
  .site-footer nav {
    justify-items: center;
  }
  .footer-contact {
    justify-items: center;
    display: grid;
  }
  .footer-brand .socials {
    justify-content: center;
  }
  .footer-base {
    justify-content: center;
    text-align: center;
  }
}

/* Legal pages --------------------------------------------------------- */
.legal {
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.legal .container {
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.legal ul li {
  margin-bottom: 0.35rem;
}
.legal a {
  color: var(--color-success);
  text-decoration: underline;
}

/* Draft state for legal pages ---------------------------------------- */
.draft-banner {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: color-mix(
    in srgb,
    var(--color-tertiary) 25%,
    var(--color-bg-alt)
  );
  border: 1px solid
    color-mix(in srgb, var(--color-tertiary) 70%, var(--color-border));
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.draft-banner strong {
  font-family: var(--font-display);
}
.draft-banner a {
  color: var(--color-success);
}

.todo-inline {
  display: inline-block;
  background: color-mix(in srgb, var(--color-tertiary) 55%, transparent);
  color: #0b2b1f;
  padding: 0 0.4em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 404 ----------------------------------------------------------------- */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.notfound h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.5rem;
}
.notfound p {
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}

/* Auth ---------------------------------------------------------------- */
.auth {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
}
.auth-card {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.auth-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.auth-icon-success {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: var(--color-success);
}
.auth-icon-error {
  background: color-mix(in srgb, var(--color-error) 14%, transparent);
  color: var(--color-error);
}
.auth-card h1 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: 0.5rem;
}
.auth-card > p {
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-hint {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0;
}
.auth-hint a {
  color: var(--color-success);
  text-decoration: underline;
}

/* Blog ---------------------------------------------------------------- */
.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 0;
  padding: 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(
    in srgb,
    var(--color-primary) 60%,
    var(--color-border)
  );
  box-shadow: var(--shadow-md);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--color-primary) 14%, var(--color-bg-alt));
  overflow: hidden;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}
.blog-card-media-empty {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 20%, var(--color-bg-alt)),
    color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg-alt))
  );
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.4rem 1.5rem;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.blog-card-body h2,
.blog-card-body h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}
.blog-card-body h2 a,
.blog-card-body h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover {
  color: var(--color-success);
}
.blog-card-body p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 0.95rem;
}
.blog-card-author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem !important;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.blog-card-author img {
  border-radius: 50%;
}
.blog-card-placeholder {
  opacity: 0.85;
}
.blog-card-placeholder .blog-card-media-empty {
  aspect-ratio: 16 / 9;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b2b1f;
  background: color-mix(in srgb, var(--color-primary) 55%, transparent);
  border-radius: 999px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}
.pagination-current {
  font-weight: 600;
  color: var(--color-text);
}
.pagination-dim {
  opacity: 0.55;
}

/* Single post --------------------------------------------------------- */
.post {
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.post-container {
  max-width: 760px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--color-text-soft);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-success);
}
.breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

.post-hero {
  margin-bottom: 2.5rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}
.post-hero h1 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-lead {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}
.post-author img {
  border-radius: 50%;
}
.post-author strong {
  color: var(--color-text);
  font-weight: 600;
}
.post-figure {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}
.post-body > * + * {
  margin-top: 1.25rem;
}
.post-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-top: 2.5rem;
  line-height: 1.3;
}
.post-body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  line-height: 1.35;
}
.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  list-style: revert;
}
.post-body li + li {
  margin-top: 0.5rem;
}
.post-body strong {
  color: var(--color-text);
  font-weight: 600;
}
.post-body a {
  color: var(--color-success);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg-alt));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text);
}
.post-body blockquote p {
  margin: 0;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: 4px;
}
.post-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem !important;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.post-tags a {
  padding: 0.2rem 0.6rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-soft);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.post-tags a:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.post-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.post-related h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.blog-grid-related {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

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

/* Focus states -------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-success);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Afiliados — layout auxiliar --------------------------------------- */
.hero-compact {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.hero-grid-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero-grid-center .hero-copy {
  max-width: 720px;
}
.hero-grid-center .cta-row {
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}

/* Tiers --------------------------------------------------------------- */
.tiers-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tier-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
}
.tier-amount strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-success);
}
.tier-amount span {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}
.tier-perks {
  display: grid;
  gap: 0.4rem;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}
.tier-perks li {
  position: relative;
  padding-left: 1.35rem;
}
.tier-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-primary);
}
.tier-featured {
  border-color: color-mix(
    in srgb,
    var(--color-primary) 60%,
    var(--color-border)
  );
  box-shadow: var(--shadow-md);
  position: relative;
}
.tier-featured::after {
  content: "Recomendado";
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--color-primary);
  color: #0b2b1f;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.tiers-note {
  margin-top: 1.5rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  text-align: center;
}

/* Formulario ---------------------------------------------------------- */
.form-wrap {
  max-width: 780px;
}
.form {
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not(:focus),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: color-mix(in srgb, var(--color-error) 60%, var(--color-border));
}
.field-checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.field-checkbox input {
  margin-top: 0.25rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}
.form-hint {
  color: var(--color-text-soft);
}

/* FAQ en página de afiliados ----------------------------------------- */
.faq-wrap {
  max-width: 760px;
}
.faq-foot {
  text-align: center;
  color: var(--color-text-soft);
  margin-top: 1.5rem;
}

/* ==========================================================================
   Editorial landing (.ed-*) — VitalChefPal home redesign
   Estética cálida, tipografía Fraunces, paleta cream/mint/deep/terracotta.
   Convive con el resto del sitio sin afectar otras páginas.
   ========================================================================== */

:root {
  --ed-cream: #faf6ee;
  --ed-cream-2: #f2ebdc;
  --ed-ink: #1f2a24;
  --ed-ink-soft: #5a6b62;
  --ed-deep: #2d5f4f;
  --ed-accent: #d97757;
  --ed-border: rgba(31, 42, 36, 0.08);
  --ed-serif: "Fraunces", "Inter Tight", Georgia, serif;
  --ed-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ed-page-pad: clamp(20px, 4vw, 64px);
  --ed-section-pad: clamp(64px, 9vw, 140px);
  --ed-nav-h: 64px;
}

/* Slight warm-cream override for the body — visually identical to splash but
   matches the editorial palette. Other pages remain unaffected. */
body {
  background: var(--ed-cream);
}

.ed-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--ed-page-pad);
}

.ed-eyebrow {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  background: none;
  padding: 0;
  border-radius: 0;
  margin: 0;
  display: inline-block;
}
.ed-eyebrow-soft {
  color: var(--ed-ink);
  opacity: 0.55;
}
.ed-eyebrow-mint {
  color: var(--color-primary);
}

/* Buttons ------------------------------------------------------------- */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ed-btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}
.ed-btn-primary {
  background: var(--ed-ink);
  color: var(--ed-cream);
}
.ed-btn-primary:hover {
  background: var(--ed-deep);
}
.ed-btn-ghost {
  background: transparent;
  color: var(--ed-ink);
  border-color: var(--ed-border);
}
.ed-btn-ghost:hover {
  background: var(--ed-cream-2);
}
.ed-btn-on-dark {
  background: var(--color-primary);
  color: #1f3a32;
}
.ed-btn-on-dark:hover {
  background: #b8dec8;
}
.ed-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.ed-btn[disabled]:hover {
  background: inherit;
  transform: none;
}

/* Nav ----------------------------------------------------------------- */
.ed-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
}
.ed-nav.is-scrolled {
  background: rgba(250, 246, 238, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--ed-border);
}
.ed-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px var(--ed-page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--ed-nav-h);
}
.ed-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ed-ink);
  text-decoration: none;
}
.ed-brand img {
  border-radius: 8px;
}
.ed-brand-name {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.ed-brand-vital {
  color: #7ab89a;
}
.ed-brand-pal {
  opacity: 0.6;
}
.ed-brand-dark {
  color: #f5efe3;
}
.ed-brand-dark .ed-brand-pal {
  opacity: 0.5;
}

.ed-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.ed-nav-links a {
  color: var(--ed-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.ed-nav-links a:hover {
  color: var(--ed-ink);
}

.ed-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ed-nav-cta {
  padding: 8px 18px;
  font-size: 13px;
}

.ed-burger {
  display: none;
  appearance: none;
  border: 1px solid var(--ed-border);
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}
.ed-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ed-ink);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.ed-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.ed-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.ed-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Drawer (sibling of nav to escape stacking context) */
.ed-drawer {
  position: fixed;
  top: var(--ed-nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ed-cream);
  z-index: 2147483645;
  padding: 32px var(--ed-page-pad);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ed-drawer[hidden] {
  display: none;
}
.ed-drawer nav {
  display: flex;
  flex-direction: column;
}
.ed-drawer nav a {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--ed-border);
}
.ed-drawer-cta {
  margin-top: 32px;
  align-self: flex-start;
  padding: 14px 22px;
}

/* Hero ---------------------------------------------------------------- */
.ed-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--ed-page-pad) clamp(48px, 6vw, 100px);
}
.ed-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.ed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(168, 213, 186, 0.25);
}

.ed-hero-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ed-ink);
  text-wrap: pretty;
}
.ed-hero-title .ed-italic {
  font-style: italic;
  color: var(--ed-deep);
  font-weight: 300;
}
.ed-hero-title .ed-with-spark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.ed-sparkle {
  width: clamp(28px, 4vw, 48px);
  height: clamp(28px, 4vw, 48px);
  flex-shrink: 0;
  fill: var(--ed-accent);
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  margin-top: clamp(56px, 8vw, 120px);
  align-items: end;
}
.ed-hero-lede {
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 2px solid var(--color-primary);
  padding-top: 4px;
  padding-bottom: 4px;
}
.ed-lede {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.35;
  color: var(--ed-ink);
  max-width: 580px;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.ed-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.ed-hero-meta {
  font-size: 13px;
  color: var(--ed-ink-soft);
  margin-top: 28px;
}

/* Hero phone card */
.ed-hero-card {
  position: relative;
  background: linear-gradient(145deg, #e5f0e0 0%, #d8e8d5 100%);
  border-radius: 32px;
  padding: 32px;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  margin-left: auto;
}
.ed-leaf-bg {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  opacity: 0.25;
  fill: #5a8b7a;
  pointer-events: none;
}
.ed-chip {
  position: absolute;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 12px;
  font-family: var(--ed-mono);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-chip-1 {
  top: 32px;
  left: 32px;
}
.ed-chip-dot {
  width: 6px;
  height: 6px;
  background: #7ab89a;
  border-radius: 50%;
}
.ed-chip-2 {
  top: 90px;
  left: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-family: "Inter", sans-serif;
  color: #1f3a32;
  max-width: 220px;
  font-size: 13px;
}
.ed-chip-2 small {
  font-family: var(--ed-mono);
  font-size: 10px;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ed-phone {
  position: absolute;
  bottom: -40px;
  right: 32px;
  width: 240px;
  height: 480px;
  background: #1f3a32;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 30px 60px rgba(31, 58, 50, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ed-phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--ed-cream);
  overflow: hidden;
}
.ed-phone-screen {
  padding: 28px 22px;
  height: 100%;
  box-sizing: border-box;
}
.ed-ps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ed-ps-tag {
  background: var(--color-primary);
  color: #1f3a32;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ed-ps-time {
  font-family: var(--ed-mono);
  font-size: 10px;
  color: var(--ed-ink-soft);
  letter-spacing: 0.04em;
}
.ed-ps-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ed-ink);
}
.ed-ps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ed-ps-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ed-ink);
}
.ed-ps-list li span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}
.ed-ps-footer {
  position: absolute;
  bottom: 24px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ed-mono);
  font-size: 10px;
  color: var(--ed-ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ed-ps-arrow {
  font-size: 16px;
  color: var(--ed-ink);
  font-family: "Inter", sans-serif;
}
.ed-phone-screen {
  position: relative;
}

/* Trust bar ----------------------------------------------------------- */
.ed-trust {
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
}
.ed-trust-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 24px var(--ed-page-pad);
  flex-wrap: wrap;
  max-width: 1280px;
}
.ed-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: space-around;
}
.ed-trust-list li {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--ed-ink-soft);
  opacity: 0.8;
}
.ed-trust-list li:nth-child(2n) {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-style: italic;
}

/* Sections ------------------------------------------------------------ */
.ed-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--ed-section-pad) var(--ed-page-pad);
  scroll-margin-top: calc(var(--ed-nav-h) + 16px);
}
.ed-section-head {
  max-width: 800px;
}
.ed-section-head-dark {
  color: #f5efe3;
}
.ed-section-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 20px 0 0;
  color: var(--ed-ink);
  text-wrap: pretty;
}
.ed-section-head-dark .ed-section-title {
  color: #f5efe3;
}
.ed-section-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ed-ink-soft);
  max-width: 560px;
  margin: 20px 0 0;
}

/* Features grid ------------------------------------------------------- */
.ed-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 72px);
}
.ed-feature {
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: end;
  min-height: 380px;
}
.ed-tone-sage {
  background: #e5efe0;
}
.ed-tone-butter {
  background: #f2e8c9;
}
.ed-tone-terracotta {
  background: #f0d9c5;
}
.ed-tone-olive {
  background: #dce2c9;
}
.ed-feature-copy h3,
.ed-feature-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0;
  color: var(--ed-ink);
}
.ed-feature-copy p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ed-ink-soft);
  margin: 0;
  max-width: 380px;
}
.ed-feature-mock {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
}

.ed-mini-phone {
  width: 180px;
  height: 320px;
  background: #1f3a32;
  border-radius: 28px;
  padding: 6px;
  box-shadow: 0 20px 40px rgba(31, 58, 50, 0.18);
}
.ed-tilt-r {
  transform: rotate(2deg);
}
.ed-tilt-l {
  transform: rotate(-2deg);
}
.ed-mini-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--ed-cream);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  font-family: var(--ed-serif);
  color: var(--ed-ink);
}
.ed-mini-screen strong {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.15;
}
.ed-mini-screen em {
  font-family: var(--ed-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ed-ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ed-mini-plan {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-content: center;
  gap: 6px;
}
.ed-mini-plan span {
  font-family: var(--ed-mono);
  font-size: 9px;
  background: rgba(168, 213, 186, 0.35);
  color: var(--ed-ink);
  padding: 6px 0;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ed-mini-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--ed-ink);
}
.ed-mini-list input {
  accent-color: var(--ed-deep);
}
.ed-mini-macros {
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}
.ed-mini-macros div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ed-mini-macros b {
  font-family: var(--ed-mono);
  font-size: 10px;
  opacity: 0.55;
  font-weight: 500;
}
.ed-mini-macros span {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 16px;
}

/* How it works -------------------------------------------------------- */
.ed-how {
  background: var(--ed-deep);
  color: #f5efe3;
  padding: var(--ed-section-pad) 0;
  scroll-margin-top: calc(var(--ed-nav-h) + 16px);
}
.ed-how .ed-container {
  color: inherit;
}
.ed-steps {
  list-style: none;
  padding: 0;
  margin: clamp(40px, 5vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.ed-steps li {
  border-top: 1px solid rgba(245, 239, 227, 0.2);
  padding-top: 24px;
}
.ed-step-n {
  font-family: var(--ed-mono);
  font-size: 12px;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: block;
}
.ed-steps h3 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 32px 0 14px;
  color: #f5efe3;
}
.ed-steps p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 239, 227, 0.7);
  margin: 0;
}

/* Showcase ------------------------------------------------------------ */
.ed-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.ed-showcase-bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-showcase-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ed-ink);
}
.ed-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-check svg {
  width: 11px;
  height: 9px;
}
.ed-showcase-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.ed-phone-lg {
  position: static;
  width: 280px;
  height: 540px;
}
.ed-phone-lg .ed-phone-inner {
  padding: 0;
}
.ed-phone-lg .ed-phone-screen {
  padding: 32px 24px;
}
.ed-phone-lg .ed-ps-title {
  font-size: 26px;
}

.ed-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--ed-cream-2);
  border-radius: 999px;
}
.ed-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ed-ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.ed-tabs button[aria-selected="true"] {
  background: var(--ed-ink);
  color: #f5efe3;
}

/* Recipes ------------------------------------------------------------- */
.ed-recipes-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.ed-recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
.ed-recipe {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-recipe h4 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 6px 0 0;
  color: var(--ed-ink);
}
.ed-food {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
}
.ed-food span {
  position: relative;
  z-index: 1;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ed-food::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
}
.ed-food-cream {
  background: repeating-linear-gradient(
    135deg,
    #efe4d2 0 22px,
    #e5d8c2 22px 44px
  );
  color: #5c4a3a;
}
.ed-food-sage {
  background: repeating-linear-gradient(
    135deg,
    #c7ddcb 0 22px,
    #b8d2be 22px 44px
  );
  color: #2d5f4f;
}
.ed-food-butter {
  background: repeating-linear-gradient(
    135deg,
    #edd9a6 0 22px,
    #e2cd96 22px 44px
  );
  color: #6b5320;
}
.ed-food-terracotta {
  background: repeating-linear-gradient(
    135deg,
    #e8b59c 0 22px,
    #dda88e 22px 44px
  );
  color: #7a3f26;
}

/* App screenshots inside phone frames -------------------------------- */
.ed-phone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}
.ed-mini-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
}

/* Recipe photos (food-only) ------------------------------------------ */
.ed-food img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Pricing ------------------------------------------------------------- */
.ed-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.ed-plan {
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 22px;
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ed-ink);
}
.ed-plan-featured {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: #f5efe3;
}
.ed-plan-name {
  font-family: var(--ed-serif);
  font-size: 24px;
  font-weight: 500;
}
.ed-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
}
.ed-plan-amount {
  font-family: var(--ed-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.ed-plan-period {
  font-size: 14px;
  opacity: 0.6;
}
.ed-plan-body {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
  margin: 8px 0 0;
}
.ed-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ed-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.ed-plan-features li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7 L6 10 L11 4' stroke='%232D5F4F' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.ed-plan-featured .ed-plan-features li::before {
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7 L6 10 L11 4' stroke='%231F2A24' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}
.ed-plan-cta {
  width: 100%;
}
.ed-pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--ed-ink-soft);
  margin-top: 24px;
  font-style: italic;
}

/* FAQ ----------------------------------------------------------------- */
.ed-faq-section {
  padding-bottom: var(--ed-section-pad);
}
.ed-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: flex-start;
}
.ed-faq-head {
  position: sticky;
  top: calc(var(--ed-nav-h) + 32px);
}
.ed-faq-list {
  display: flex;
  flex-direction: column;
}
.ed-faq-list details {
  border-bottom: 1px solid var(--ed-border);
  padding: 0;
}
.ed-faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
  color: var(--ed-ink);
}
.ed-faq-list summary::-webkit-details-marker {
  display: none;
}
.ed-faq-list summary > span:first-child {
  font-family: var(--ed-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ed-faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ed-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ed-ink-soft);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.ed-faq-list details[open] .ed-faq-toggle {
  transform: rotate(45deg);
}
.ed-faq-list details p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ed-ink-soft);
  margin: 0;
  padding: 0 0 24px;
  max-width: 600px;
}

/* Final CTA ----------------------------------------------------------- */
.ed-finalcta {
  background: var(--color-primary);
  color: #1f3a32;
  padding: var(--ed-section-pad) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--ed-nav-h) + 16px);
}
.ed-finalcta-leaf {
  position: absolute;
  right: -80px;
  top: -40px;
  width: 500px;
  height: 500px;
  opacity: 0.25;
  fill: #1f3a32;
  pointer-events: none;
}
.ed-finalcta-inner {
  position: relative;
  max-width: 760px;
}
.ed-finalcta-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 20px 0 24px;
  color: #1f3a32;
}
.ed-finalcta-body {
  font-size: 18px;
  line-height: 1.5;
  max-width: 540px;
  opacity: 0.8;
  margin: 0;
}
.ed-store-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.ed-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1f3a32;
  color: #f5efe3;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  min-width: 200px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}
.ed-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 58, 50, 0.25);
}
.ed-store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.ed-store-badge small {
  font-size: 10px;
  opacity: 0.7;
  font-family: var(--ed-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ed-store-badge strong {
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}
.ed-store-badge[aria-disabled="true"],
.ed-store-badge.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Footer -------------------------------------------------------------- */
.ed-footer {
  background: var(--ed-ink);
  color: #d8cfc0;
  padding: 64px 0 32px;
}
.ed-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ed-footer-tagline {
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 320px;
  margin: 24px 0 0;
  color: #f5efe3;
}
.ed-socials {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.ed-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5efe3;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.ed-socials a:hover {
  background: var(--color-primary);
  color: #1f3a32;
}

.ed-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ed-footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ed-footer-cols a {
  color: #d8cfc0;
  text-decoration: none;
  font-size: 13px;
}
.ed-footer-cols a:hover {
  color: #f5efe3;
}

.ed-footer-base {
  padding-top: 24px;
}
.ed-footer-base small {
  font-size: 12px;
  color: rgba(216, 207, 192, 0.5);
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .ed-nav-links {
    display: none;
  }
  .ed-nav-cta {
    display: none;
  }
  .ed-burger {
    display: inline-flex;
  }
  .ed-hero-grid {
    grid-template-columns: 1fr;
  }
  .ed-hero-card {
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }
  .ed-features-grid {
    grid-template-columns: 1fr;
  }
  .ed-feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ed-feature-mock {
    justify-content: center;
    margin-top: 16px;
  }
  .ed-steps {
    grid-template-columns: 1fr 1fr;
  }
  .ed-showcase {
    grid-template-columns: 1fr;
  }
  .ed-recipes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ed-pricing-grid {
    grid-template-columns: 1fr;
  }
  .ed-faq-grid {
    grid-template-columns: 1fr;
  }
  .ed-faq-head {
    position: static;
  }
  .ed-footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ed-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ed-recipes-grid,
  .ed-steps {
    grid-template-columns: 1fr;
  }
  .ed-store-row .ed-store-badge {
    width: 100%;
  }
}

/* Hide drawer on desktop */
@media (min-width: 901px) {
  .ed-drawer {
    display: none !important;
  }
}

/* Editorial forms (afiliados) ----------------------------------------- */
.ed-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.ed-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ed-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-field label {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
}
.ed-input,
.ed-select,
.ed-textarea {
  font: inherit;
  font-family: var(--ed-serif);
  font-size: 17px;
  color: var(--ed-ink);
  background: #fffdf8;
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  padding: 14px 16px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.ed-input:focus,
.ed-select:focus,
.ed-textarea:focus {
  outline: none;
  border-color: var(--ed-deep);
  box-shadow: 0 0 0 3px rgba(45, 95, 79, 0.12);
}
.ed-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.ed-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F2A24' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 44px;
}
.ed-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ed-ink-soft);
}
.ed-checkbox input {
  margin-top: 4px;
  accent-color: var(--ed-deep);
}
.ed-checkbox a {
  color: var(--ed-ink);
  text-decoration: underline;
}
.ed-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.ed-form-hint {
  font-size: 13px;
  color: var(--ed-ink-soft);
}

/* Tier featured badge ------------------------------------------------- */
.ed-plan-badge {
  display: inline-block;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--ed-deep);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* Compact hero (utility section) ------------------------------------- */
.ed-hero-compact {
  padding: clamp(96px, 14vw, 160px) 0 clamp(40px, 6vw, 80px);
}
.ed-hero-compact .ed-hero-title {
  font-size: clamp(40px, 7vw, 80px);
}

/* Affiliates hero earnings preview card */
.ed-aff-earnings {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 24px;
  padding: clamp(20px, 2.5vw, 32px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 56px rgba(31, 42, 36, 0.08);
}
.ed-aff-earnings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.ed-aff-earnings-label {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
}
.ed-aff-earnings-live {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  color: #7ab89a;
  letter-spacing: 0.04em;
}
.ed-aff-earnings-amount {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 4px 0 6px;
  color: var(--ed-deep);
}
.ed-aff-earnings-cents {
  opacity: 0.35;
}
.ed-aff-earnings-delta {
  font-size: 13px;
  color: var(--ed-ink-soft);
}
.ed-aff-earnings-chart {
  width: 100%;
  height: 80px;
  display: block;
  margin-top: 24px;
}
.ed-aff-earnings-months {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.ed-aff-earnings-months span {
  flex: 1;
  font-family: var(--ed-mono);
  font-size: 9px;
  color: var(--ed-ink-soft);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .ed-aff-earnings {
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .ed-form-row {
    grid-template-columns: 1fr;
  }
}

/* Editorial dashboard (panel afiliados) ------------------------------ */
.ed-tier-badge {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ed-ink);
  color: var(--ed-cream);
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 4px;
}
.ed-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff7e6;
  border: 1px solid #f2d58a;
  border-radius: 18px;
  padding: 18px 22px;
  margin: 0 0 clamp(32px, 4vw, 56px);
  color: #6a4f0e;
}
.ed-notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2d58a;
  color: #6a4f0e;
  border-radius: 50%;
  font-family: var(--ed-mono);
  font-weight: 600;
  font-size: 14px;
}
.ed-notice strong {
  color: #4a3608;
}
.ed-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.ed-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.ed-kpi {
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-kpi-label {
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
}
.ed-kpi-value {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  line-height: 1;
}
.ed-kpi-delta {
  font-size: 12px;
  color: var(--ed-deep);
}
.ed-kpi-delta.is-neg {
  color: var(--color-error);
}

.ed-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.ed-panel-card {
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 24px;
  padding: clamp(20px, 2.5vw, 32px);
}
.ed-panel-card h3 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ed-ink);
}
.ed-copy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  background: #fffdf8;
  border: 1px solid var(--ed-border);
  border-radius: 12px;
  padding: 6px;
}
.ed-copy-row code {
  flex: 1;
  font-family: var(--ed-mono);
  font-size: 13px;
  padding: 10px 12px;
  color: var(--ed-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-copy-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--ed-ink);
  color: var(--ed-cream);
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}
.ed-copy-btn:hover {
  background: var(--ed-deep);
}
.ed-copy-btn.is-copied {
  background: var(--color-primary);
  color: var(--ed-deep);
}

.ed-table-wrap {
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.ed-table-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px clamp(20px, 2.5vw, 32px) 0;
  flex-wrap: wrap;
  gap: 12px;
}
.ed-table-head h3 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ed-ink);
}
.ed-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.ed-table th,
.ed-table td {
  padding: 14px clamp(20px, 2.5vw, 32px);
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--ed-border);
}
.ed-table th {
  font-family: var(--ed-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  background: rgba(31, 42, 36, 0.03);
}
.ed-table tr:last-child td {
  border-bottom: 0;
}
.ed-table-empty {
  padding: 40px clamp(20px, 2.5vw, 32px);
  text-align: center;
  color: var(--ed-ink-soft);
  font-size: 14px;
}
.ed-pill {
  display: inline-block;
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(45, 95, 79, 0.1);
  color: var(--ed-deep);
}
.ed-pill.is-pending {
  background: #fff1d6;
  color: #8a5c0b;
}
.ed-pill.is-cancelled {
  background: #fbe3e5;
  color: #b0353c;
}

.ed-resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ed-resource {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 18px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ed-ink);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.ed-resource:hover {
  transform: translateY(-2px);
  border-color: var(--ed-deep);
}
.ed-resource-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-deep);
}
.ed-resource-title {
  display: block;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
}
.ed-resource-meta {
  display: block;
  font-size: 12px;
  color: var(--ed-ink-soft);
}

@media (max-width: 900px) {
  .ed-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .ed-panel-grid {
    grid-template-columns: 1fr;
  }
  .ed-resources {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .ed-resources {
    grid-template-columns: 1fr;
  }
  .ed-table th:nth-child(3),
  .ed-table td:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   Dashboard de afiliado (sidebar layout) — .ed-dash-*
   ========================================================================== */
.ed-dash-body {
  background: var(--ed-cream);
}
.ed-dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.ed-dash-sidebar {
  background: #fff;
  border-right: 1px solid var(--ed-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}
.ed-dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  justify-content: space-between;
}
.ed-dash-brand-name {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ed-ink);
  text-decoration: none;
}
.ed-dash-brand-name .ed-brand-vital {
  color: #7ab89a;
}
.ed-dash-brand-name .ed-brand-pal {
  opacity: 0.6;
}
.ed-dash-nav-section {
  font-family: var(--ed-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  opacity: 0.7;
  padding: 16px 12px 8px;
}
.ed-dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ed-ink-soft);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  width: 100%;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.ed-dash-nav-item:hover {
  background: var(--ed-cream-2);
  color: var(--ed-ink);
}
.ed-dash-nav-item.is-active {
  background: var(--ed-deep);
  color: #fff;
}
.ed-dash-nav-item.is-active:hover {
  background: var(--ed-deep);
  color: #fff;
}
.ed-dash-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ed-dash-sidebar-footer {
  margin-top: auto;
  padding: 12px 0;
  border-top: 1px solid var(--ed-border);
}
.ed-dash-sidebar-footer .ed-dash-nav-item {
  font-size: 12px;
}
.ed-dash-sidebar-close {
  display: none;
}

/* Mobile bar */
.ed-dash-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--ed-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.ed-dash-burger {
  appearance: none;
  border: 1px solid var(--ed-border);
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.ed-dash-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ed-ink);
  border-radius: 2px;
}
.ed-dash-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 18, 0.4);
  z-index: 49;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ed-dash-scrim.is-open {
  display: block;
  opacity: 1;
}

/* Main content */
.ed-dash-main {
  padding: var(--ed-page-pad);
  min-width: 0;
}
.ed-dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.ed-dash-topbar h1 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.ed-dash-topbar h1 em {
  color: var(--ed-deep);
  font-weight: 300;
  font-style: italic;
}
.ed-dash-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ed-dash-mini-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--ed-border);
  background: transparent;
  padding: 8px 32px 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ed-ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F2A24' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}
.ed-dash-mini-btn {
  appearance: none;
  border: 1px solid var(--ed-border);
  background: transparent;
  color: var(--ed-ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ed-dash-mini-btn:hover {
  background: var(--ed-cream-2);
}
.ed-dash-mini-btn.is-active {
  background: var(--ed-cream-2);
}
.ed-dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1f3a32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* Cards & grids */
.ed-dash-card {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: 18px;
}
.ed-dash-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ed-dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ed-dash-grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.ed-dash-row-gap {
  margin-top: 16px;
}
.ed-dash-eyebrow {
  font-family: var(--ed-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
}
.ed-dash-num {
  font-family: var(--ed-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ed-ink);
}

/* KPI card on white */
.ed-dash-kpi {
  padding: 22px;
}
.ed-dash-kpi .ed-dash-num {
  font-size: clamp(32px, 3.4vw, 44px);
  margin-top: 12px;
}
.ed-dash-kpi-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.ed-dash-kpi-delta {
  font-size: 12px;
  color: #4a9d6e;
  font-weight: 600;
}
.ed-dash-kpi-sub {
  font-size: 12px;
  color: var(--ed-ink-soft);
  opacity: 0.7;
}
.ed-dash-kpi.is-accent .ed-dash-num {
  color: var(--ed-deep);
}
.ed-dash-kpi.is-warm .ed-dash-num {
  color: var(--ed-accent);
}

/* Earnings chart */
.ed-dash-chart {
  padding: 24px;
}
.ed-dash-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.ed-dash-chart-head .ed-dash-num {
  font-size: 36px;
  margin-top: 8px;
}
.ed-dash-chart-delta {
  font-size: 12px;
  color: #4a9d6e;
  margin-top: 4px;
}
.ed-dash-chart-tabs {
  display: flex;
  gap: 6px;
}
.ed-dash-chart svg {
  width: 100%;
  display: block;
}
.ed-dash-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--ed-mono);
  font-size: 10px;
  color: var(--ed-ink-soft);
  opacity: 0.7;
}

/* Sources card */
.ed-dash-sources {
  padding: 24px;
}
.ed-dash-sources .ed-dash-num {
  font-size: 28px;
  margin-top: 8px;
}
.ed-dash-sources-meta {
  font-size: 12px;
  color: var(--ed-ink-soft);
  margin: 4px 0 20px;
}
.ed-dash-source {
  margin-bottom: 14px;
}
.ed-dash-source:last-child {
  margin-bottom: 0;
}
.ed-dash-source-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.ed-dash-source-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.ed-dash-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ed-dash-source-meta {
  font-family: var(--ed-mono);
  font-size: 12px;
  color: var(--ed-ink-soft);
}
.ed-dash-source-bar {
  height: 6px;
  background: var(--ed-cream-2);
  border-radius: 999px;
  overflow: hidden;
}
.ed-dash-source-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* Tables */
.ed-dash-table-card {
  overflow: hidden;
}
.ed-dash-table-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ed-dash-table-head h3 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 22px;
  margin: 4px 0 0;
}
.ed-dash-table-link {
  font-size: 12px;
  color: var(--ed-deep);
  text-decoration: none;
  font-weight: 500;
}
.ed-dash-table-link:hover {
  text-decoration: underline;
}
.ed-dash-table-wrap {
  overflow-x: auto;
}
.ed-dash-table {
  width: 100%;
  border-collapse: collapse;
}
.ed-dash-table th,
.ed-dash-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--ed-border);
  font-size: 13px;
}
.ed-dash-table th:first-child,
.ed-dash-table td:first-child {
  padding-left: 24px;
}
.ed-dash-table th:last-child,
.ed-dash-table td:last-child {
  padding-right: 24px;
}
.ed-dash-table th {
  font-family: var(--ed-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  opacity: 0.7;
}
.ed-dash-table tbody tr:hover {
  background: var(--ed-cream-2);
}
.ed-dash-table tbody tr:last-child td {
  border-bottom: 0;
}
.ed-dash-mono {
  font-family: var(--ed-mono);
}

.ed-dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.ed-dash-pill::before {
  content: "●";
  font-size: 8px;
}
.ed-dash-pill-good {
  background: rgba(74, 157, 110, 0.12);
  color: #4a9d6e;
}
.ed-dash-pill-pend {
  background: rgba(217, 119, 87, 0.12);
  color: var(--ed-accent);
}
.ed-dash-pill-bad {
  background: rgba(200, 85, 61, 0.12);
  color: #c8553d;
}

/* Referral link card (deep green) */
.ed-dash-link-card {
  padding: 24px;
  background: var(--ed-deep);
  color: #f5efe3;
  border: 0;
  border-radius: 18px;
}
.ed-dash-link-card .ed-dash-eyebrow {
  color: var(--color-primary);
  opacity: 1;
}
.ed-dash-link-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 22px;
  margin-top: 8px;
  line-height: 1.2;
}
.ed-dash-link-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ed-dash-link-input code {
  font-family: var(--ed-mono);
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.ed-dash-link-copy {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--color-primary);
  color: #1f3a32;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}
.ed-dash-link-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.ed-dash-link-stats .ed-dash-eyebrow {
  color: rgba(245, 239, 227, 0.5);
  opacity: 1;
}
.ed-dash-link-stats .ed-dash-num {
  font-size: 28px;
  margin-top: 6px;
  color: #f5efe3;
}
.ed-dash-link-stats .ed-dash-num.is-mint {
  color: var(--color-primary);
}

/* Payout cards */
.ed-dash-grid-payout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}
.ed-dash-payout-next {
  padding: 24px;
  background: var(--color-primary);
  color: #1f3a32;
  border: 0;
  border-radius: 18px;
}
.ed-dash-payout-next .ed-dash-eyebrow {
  color: #1f3a32;
  opacity: 0.6;
}
.ed-dash-payout-next .ed-dash-num {
  font-size: 56px;
  margin-top: 12px;
  color: #1f3a32;
}
.ed-dash-payout-meta {
  font-size: 13px;
  margin-top: 8px;
}

/* Links table & assets */
.ed-dash-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ed-dash-asset {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--ed-cream-2);
  border-radius: 12px;
}
.ed-dash-asset-name {
  font-size: 14px;
  font-weight: 500;
}
.ed-dash-asset-size {
  font-family: var(--ed-mono);
  font-size: 11px;
  color: var(--ed-ink-soft);
  margin-top: 2px;
}

/* Settings */
.ed-dash-settings {
  padding: 32px;
  max-width: 720px;
}
.ed-dash-settings h2 {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 28px;
  margin: 6px 0 24px;
}
.ed-dash-settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ed-dash-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ed-border);
  padding-bottom: 12px;
}
.ed-dash-settings-row .ed-dash-eyebrow {
  display: block;
}
.ed-dash-settings-val {
  margin-top: 4px;
}

/* Tab visibility */
.ed-dash-tab {
  display: none;
}
.ed-dash-tab.is-active {
  display: block;
}

/* Dashboard responsive */
@media (max-width: 900px) {
  .ed-dash-layout {
    grid-template-columns: 1fr;
  }
  .ed-dash-mobile-bar {
    display: flex;
  }
  .ed-dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding-top: 20px;
  }
  .ed-dash-sidebar.is-open {
    transform: translateX(0);
  }
  .ed-dash-sidebar-close {
    display: inline-flex;
  }
  .ed-dash-grid-4,
  .ed-dash-grid-3,
  .ed-dash-grid-2,
  .ed-dash-grid-payout {
    grid-template-columns: 1fr 1fr;
  }
  .ed-dash-asset-grid {
    grid-template-columns: 1fr;
  }
  .ed-dash-main {
    padding-top: 12px;
  }
}
@media (max-width: 600px) {
  .ed-dash-grid-4,
  .ed-dash-grid-3,
  .ed-dash-grid-2,
  .ed-dash-grid-payout {
    grid-template-columns: 1fr;
  }
  .ed-dash-table th:nth-child(5),
  .ed-dash-table td:nth-child(5) {
    display: none;
  }
}

/* Redes sociales ----------------------------------------------------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}
.socials a:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: color-mix(
    in srgb,
    var(--color-primary) 14%,
    var(--color-surface)
  );
  transform: translateY(-1px);
}
.socials-compact {
  justify-content: center;
  margin: 0 0 0.75rem;
}
.socials-compact a {
  width: 32px;
  height: 32px;
}

/* Editorial auth (login / recuperar) -------------------------------- */
.ed-auth-body {
  background: var(--ed-cream);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.ed-auth-main {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) 20px clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ed-auth-card {
  background: var(--ed-cream-2);
  border: 1px solid var(--ed-border);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ed-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  align-self: flex-start;
}
.ed-auth-brand img {
  border-radius: 8px;
}
.ed-auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(31, 42, 36, 0.04);
  border-radius: 14px;
  padding: 4px;
}
.ed-auth-tab {
  flex: 1;
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.ed-auth-tab:hover {
  color: var(--ed-ink);
}
.ed-auth-tab.is-active {
  background: var(--ed-cream);
  color: var(--ed-ink);
  box-shadow: 0 1px 2px rgba(31, 42, 36, 0.06);
}
.ed-auth-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.ed-auth-panel.is-active {
  display: flex;
}
.ed-auth-title {
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ed-ink);
  margin: 0;
}
.ed-auth-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ed-ink-soft);
  margin: 0;
}
.ed-auth-form.ed-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  gap: 16px;
}
.ed-field-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ed-ink-soft);
  cursor: pointer;
  user-select: none;
}
.ed-field-checkbox input {
  accent-color: var(--ed-deep);
}
.ed-auth-feedback {
  min-height: 1.25em;
  font-size: 13px;
  font-family: var(--ed-mono);
  letter-spacing: 0.02em;
  color: var(--ed-ink-soft);
}
.ed-auth-feedback[data-state="error"] {
  color: #b0463c;
}
.ed-auth-feedback[data-state="success"] {
  color: var(--ed-deep);
}
.ed-btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  width: 100%;
  justify-content: center;
}
.ed-auth-alt {
  margin: 0;
  font-size: 14px;
  color: var(--ed-ink-soft);
  text-align: center;
}
.ed-auth-alt a {
  color: var(--ed-ink);
  text-decoration: underline;
}
.ed-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ed-ink);
  text-decoration: underline;
  cursor: pointer;
}
.ed-auth-notice {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6a4f0e;
  background: #fff7e6;
  border: 1px solid #f2d58a;
  border-radius: 14px;
  padding: 14px 16px;
}
.ed-auth-notice strong {
  color: #4a3608;
}
.ed-auth-foot {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ed-ink-soft);
}
.ed-auth-foot a {
  color: var(--ed-ink-soft);
  text-decoration: none;
}
.ed-auth-foot a:hover {
  color: var(--ed-ink);
  text-decoration: underline;
}

/* Logout entry inside dashboard sidebar */
.ed-dash-nav-logout {
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  color: #b0463c;
}
.ed-dash-nav-logout:hover {
  background: rgba(176, 70, 60, 0.08);
  color: #b0463c;
}
