/* Features page */

.features-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(189,145,211,0.25) 0%, transparent 55%),
    var(--paper);
}
.features-hero h1 em { font-style: italic; color: var(--brand-600); }

.feature-nav {
  position: sticky; top: 72px; z-index: 20;
  background: rgba(251,248,243,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.feature-nav::-webkit-scrollbar { display: none; }
.feature-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px;
  min-width: max-content;
}
.feature-nav a {
  display: inline-block;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-600);
  border-bottom: 2px solid transparent;
}
.feature-nav a:hover { color: var(--ink); border-bottom-color: var(--brand-500); }

.feature-block {
  padding: clamp(72px, 10vw, 130px) 0;
  border-top: 1px solid var(--line);
}
.fb-panel { background: var(--panel); }
.fb-dark {
  background: var(--bone-900);
  color: var(--bone-200);
}
.fb-dark h2, .fb-dark h3 { color: white; }
.fb-dark h2 em { color: var(--amber-400); }
.fb-dark .fb-list li { border-bottom-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.fb-dark .fb-list svg { color: var(--brand-400); }

.fb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.fb-reverse .fb-copy { order: 2; }
.fb-reverse .fb-viz { order: 1; }

.fb-copy h2 { margin: 16px 0 24px; }
.fb-copy h2 em { font-style: italic; color: var(--brand-600); }
.fb-copy > p { max-width: 520px; margin-bottom: 28px; }
.fb-list {
  list-style: none; padding: 0; margin: 0 0 32px;
}
.fb-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  position: relative;
  padding-left: 20px;
}
.fb-list li::before {
  content: '→';
  position: absolute; left: 0; top: 14px;
  color: var(--brand-600);
  font-family: var(--font-mono);
}
.fb-stats {
  display: flex; gap: 40px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.fb-stats > div { display: flex; flex-direction: column; gap: 4px; }
.fb-stats span { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ==== 01 editor ==== */
.fb-editor {
  background: white; border-radius: var(--r-4); overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
}
.fbe-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.fbe-dots { display: flex; gap: 6px; }
.fbe-dots span { width: 10px; height: 10px; border-radius: 50%; background: #d4c9b3; }
.fbe-dots span:first-child { background: #e86c4c; }
.fbe-dots span:nth-child(2) { background: #e8b63d; }
.fbe-dots span:nth-child(3) { background: #3f9d6a; }
.fbe-title { flex: 1; text-align: center; font-size: 12px; color: var(--bone-600); }
.fbe-publish {
  background: var(--brand-500); color: white; padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 500;
}
.fbe-body { display: grid; grid-template-columns: 180px 1fr; min-height: 360px; }
.fbe-side { background: var(--bone-50); padding: 16px; border-right: 1px solid var(--line); }
.fbe-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--bone-500); text-transform: uppercase; margin-bottom: 8px; }
.fbe-item { padding: 8px 10px; border-radius: 6px; font-size: 13px; margin-bottom: 2px; }
.fbe-item.active { background: white; box-shadow: var(--shadow-1); color: var(--brand-700); font-weight: 500; }
.fbe-swatches { display: flex; gap: 6px; }
.fbe-swatches span { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.fbe-swatches span.selected { border-color: var(--ink); box-shadow: 0 0 0 2px white inset; }
.fbe-canvas { padding: 20px; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(19,17,14,0.015) 10px 20px); }
.fbe-preview { background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.fbe-hero {
  padding: 28px;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
  color: white;
  position: relative;
}
.fbe-hero-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.fbe-hero em { font-style: italic; color: var(--amber-400); }
.fbe-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; }
.fbe-p { aspect-ratio: 1/1; }

/* ==== 02 checkout ==== */
.fb-checkout {
  background: white;
  color: var(--ink);
  border-radius: var(--r-4);
  padding: 28px;
  box-shadow: var(--shadow-3);
  max-width: 440px;
  margin: 0 auto;
}
.fbc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fbc-head .fbc-back { width: 32px; height: 32px; border-radius: 50%; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.fbc-head > div:last-child > div:first-child { color: var(--bone-500) !important; }
.fbc-head > div:last-child > div:last-child { color: var(--ink) !important; }
.fbc-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.fbc-total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-weight: 500; font-size: 16px; }
.fbc-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.fbc-method:hover { border-color: var(--brand-400); }
.fbc-active { border-color: var(--brand-500); background: rgba(151,90,179,0.04); }
.fbc-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  position: relative; flex-shrink: 0;
}
.fbc-active .fbc-radio { border-color: var(--brand-500); }
.fbc-active .fbc-radio::after { content: ''; position: absolute; inset: 3px; background: var(--brand-500); border-radius: 50%; }
.fbc-name { flex: 1; }
.fbc-badge { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--brand-700); background: rgba(151,90,179,0.1); padding: 3px 8px; border-radius: 999px; letter-spacing: 0.08em; }
.fbc-pay {
  margin-top: 18px; width: 100%;
  background: var(--brand-500); color: white; border: 0;
  padding: 16px; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow-brand); cursor: pointer;
}

/* ==== 03 table ==== */
.fb-table { background: white; border-radius: var(--r-3); border: 1px solid var(--line); overflow: hidden; }
.fbt-head, .fbt-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 14px 18px;
  font-size: 13px;
  gap: 8px;
}
.fbt-head { background: var(--panel); color: var(--bone-600); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.fbt-row { border-top: 1px solid var(--line); align-items: center; transition: background 0.15s; }
.fbt-row:hover { background: var(--bone-50); }
.fbt-name { display: flex; align-items: center; gap: 10px; }
.fbt-sw { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }

/* ==== 04 shipping ==== */
.fb-shipping-card {
  background: white;
  border-radius: var(--r-4);
  padding: 28px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.fbs-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.fbs-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.fbs-step { display: flex; gap: 16px; padding: 10px 0; position: relative; }
.fbs-step:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 22px; bottom: -10px; width: 2px; background: var(--line-strong); }
.fbs-step.done::before { background: var(--brand-500); }
.fbs-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: white; flex-shrink: 0; margin-top: 4px; z-index: 1; position: relative; }
.fbs-step.done .fbs-dot { background: var(--brand-500); border-color: var(--brand-500); }
.fbs-step.active .fbs-dot { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(151,90,179,0.2); }
.fbs-time { font-size: 11px; color: var(--bone-500); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.fbs-carriers { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--bone-500); }
.fbs-carriers span { color: var(--ink); }

/* ==== 05 growth ==== */
.fb-grow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.fg-card { background: white; border: 1px solid var(--line); border-radius: var(--r-3); padding: 18px; display: flex; flex-direction: column; gap: 6px; }

/* ==== email mockup (abandoned cart) ==== */
.fb-email {
  background: white;
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  max-width: 460px;
  margin: 0 auto;
  overflow: hidden;
}
.fbe-mail-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bone-50);
}
.fbe-mail-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: white; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fbe-mail-from { font-size: 13px; line-height: 1.4; color: var(--ink); }
.fbe-mail-from strong { font-weight: 600; }
.fbe-mail-dot { color: var(--bone-400); margin: 0 4px; }
.fbe-mail-time { color: var(--bone-500); font-size: 12px; }
.fbe-mail-to { color: var(--bone-500); font-size: 12px; }
.fbe-mail-star { color: var(--amber-500); font-size: 18px; }

.fbe-mail-subject {
  padding: 18px 22px 6px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.fbe-mail-body { padding: 0 22px 24px; }
.fbe-mail-pimg {
  aspect-ratio: 16/9;
  border-radius: 10px;
  margin: 14px 0 18px;
  position: relative; overflow: hidden;
}
.fbe-mail-pimg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.2), transparent 60%);
}
.fbe-mail-text { font-size: 14px; line-height: 1.55; color: var(--bone-700); margin: 0 0 16px; }
.fbe-mail-product {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}
.fbe-mail-name { color: var(--ink); }
.fbe-mail-price { color: var(--brand-700); font-weight: 500; }
.fbe-mail-cta {
  display: block; text-align: center;
  background: var(--brand-500); color: white;
  padding: 14px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-brand);
  transition: background 0.2s;
}
.fbe-mail-cta:hover { background: var(--brand-600); color: white; }
.fbe-mail-foot {
  margin: 14px 0 0; font-size: 12px; color: var(--bone-500); text-align: center; line-height: 1.5;
}
.fbe-mail-foot strong { color: var(--brand-700); font-family: var(--font-mono); }

.fb-whatsapp {
  background: #ECE5DD;
  border-radius: var(--r-4);
  padding: 20px;
  box-shadow: var(--shadow-2);
  max-width: 440px; margin: 0 auto;
}
.fbw-head {
  background: #25D366; color: white;
  padding: 12px 14px;
  border-radius: 12px 12px 0 0;
  display: flex; align-items: center; gap: 10px;
  margin: -20px -20px 16px;
}
.fbw-bubbles { display: flex; flex-direction: column; gap: 8px; }
.fbw-b {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.fbw-in { background: white; align-self: flex-start; border-bottom-left-radius: 4px; }
.fbw-out { background: #DCF8C6; align-self: flex-end; border-bottom-right-radius: 4px; }
.fbw-card { padding: 0; overflow: hidden; max-width: 80%; }
.fbw-pimg { aspect-ratio: 4/3; }

/* ==== 06 insights ==== */
.fb-insights {
  background: var(--bone-900);
  border-radius: var(--r-4);
  padding: 28px;
  color: var(--bone-200);
  box-shadow: var(--shadow-3);
}
.fbi-prompt {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--brand-300);
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 20px;
}
.fbi-prompt span:nth-child(2) { color: white; flex: 1; }
.fbi-cursor { width: 7px; height: 14px; background: var(--brand-400); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fbi-answer { padding: 0 6px; color: white; }
.fbi-answer > div:first-child { color: rgba(255,255,255,0.75) !important; }
.fbi-answer strong { color: white !important; }
.fbi-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin-top: 16px; }
.fbi-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
  border-radius: 8px 8px 0 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 8px 0;
  color: white;
  font-size: 11px;
  gap: 2px;
  position: relative;
}
.fbi-bar span:first-child { font-family: var(--font-mono); color: rgba(255,255,255,0.7); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.fbi-bar span:last-child { font-family: var(--font-mono); font-size: 13px; color: white; }

@media (max-width: 960px) {
  .fb-grid { grid-template-columns: 1fr; gap: 40px; }
  .fb-reverse .fb-copy { order: 1; }
  .fb-reverse .fb-viz { order: 2; }
  .feature-nav { top: 60px; }
}
