/* FunnelFlowz — Full-width SaaS frontend */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --ffz-primary: #1a7a4c;
  --ffz-primary-dark: #0f5a37;
  --ffz-accent: #f07a1a;
  --ffz-accent-hover: #d8680f;
  --ffz-bg: #eef2f0;
  --ffz-surface: #ffffff;
  --ffz-panel: #2c3430;
  --ffz-text: #1c2420;
  --ffz-muted: #6b776f;
  --ffz-border: #d5ddd8;
  --ffz-danger: #c0392b;
  --ffz-yes: #2ecc71;
  --ffz-no: #e74c3c;
  --ffz-radius: 10px;
  --ffz-shadow: 0 8px 28px rgba(28, 36, 32, 0.08);
  --ffz-font: 'DM Sans', system-ui, sans-serif;
  --ffz-display: 'Outfit', 'DM Sans', sans-serif;
}

/* ===== Full-viewport app shell ===== */
.ffz-root, .ffz-root * { box-sizing: border-box; }
.ffz-root {
  font-family: var(--ffz-font);
  color: var(--ffz-text);
  background: var(--ffz-bg);
  line-height: 1.45;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 99990;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.ffz-boot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; gap: 12px; color: var(--ffz-muted);
}
.ffz-boot-spinner {
  width: 36px; height: 36px; border: 3px solid var(--ffz-border);
  border-top-color: var(--ffz-primary); border-radius: 50%;
  animation: ffz-spin .7s linear infinite;
}
@keyframes ffz-spin { to { transform: rotate(360deg); } }
@keyframes ffz-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ffz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Buttons / forms ===== */
.ffz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: inherit; font-weight: 600;
  border-radius: 8px; padding: 11px 18px; transition: .15s ease;
  text-decoration: none; color: inherit;
}
.ffz-btn-primary { background: var(--ffz-primary); color: #fff; }
.ffz-btn-primary:hover { background: var(--ffz-primary-dark); color: #fff; }
.ffz-btn-accent { background: var(--ffz-accent); color: #fff; }
.ffz-btn-accent:hover { background: var(--ffz-accent-hover); color: #fff; }
.ffz-btn-ghost { background: transparent; color: var(--ffz-text); border: 1px solid var(--ffz-border); }
.ffz-btn-ghost:hover { background: rgba(0,0,0,.04); }
.ffz-btn-light { background: #fff; color: var(--ffz-primary-dark); }
.ffz-btn-light:hover { background: #f3f7f4; }
.ffz-btn-sm { padding: 7px 12px; font-size: .85rem; }
.ffz-btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.ffz-btn-danger { background: var(--ffz-danger); color: #fff; }
.ffz-btn-block { width: 100%; }
.ffz-link {
  color: var(--ffz-primary); cursor: pointer; text-decoration: underline;
  background: none; border: none; font: inherit; padding: 0;
}
.ffz-error { background: #fdecea; color: var(--ffz-danger); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: .9rem; }
.ffz-success { background: #e8f7ef; color: var(--ffz-primary-dark); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.ffz-field { margin-bottom: 14px; }
.ffz-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ffz-muted); }
.ffz-field input, .ffz-field select, .ffz-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--ffz-border);
  border-radius: 8px; font: inherit; background: #fff; color: var(--ffz-text);
}
.ffz-field input:focus, .ffz-field select:focus, .ffz-field textarea:focus {
  outline: 2px solid rgba(26,122,76,.25); border-color: var(--ffz-primary);
}
.ffz-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 8px 0 16px; }
.ffz-brand {
  font-family: var(--ffz-display);
  font-weight: 800; font-size: 1.75rem;
  color: var(--ffz-primary); letter-spacing: -.02em;
  margin: 0;
}

/* ===== Auth (full width split) ===== */
.ffz-auth {
  flex: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 0; width: 100%;
  background: #fff;
}
.ffz-auth-visual {
  position: relative; overflow: hidden; color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(15,90,55,.94), rgba(26,122,76,.78)),
    radial-gradient(circle at 80% 20%, rgba(240,122,26,.35), transparent 40%),
    linear-gradient(160deg, #0f5a37, #1a7a4c);
}
.ffz-auth-visual h1 {
  font-family: var(--ffz-display); font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 24px 0 12px; letter-spacing: -.02em; max-width: 16ch;
}
.ffz-auth-visual p { opacity: .9; max-width: 36ch; font-size: 1.05rem; }
.ffz-auth-visual .ffz-brand { color: #fff; }
.ffz-auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.ffz-auth-points li {
  display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; opacity: .95;
}
.ffz-auth-points li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ffz-accent);
  margin-top: 7px; flex-shrink: 0;
}
.ffz-auth-panel {
  display: flex; flex-direction: column; min-height: 0; overflow: auto;
}
.ffz-auth-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--ffz-border); gap: 12px; flex-wrap: wrap;
}
.ffz-auth-nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ffz-auth-card {
  width: 100%; max-width: 420px; margin: auto; padding: 36px 28px 48px;
  animation: ffz-fade-up .35s ease;
}
.ffz-auth-card h2 { margin: 0 0 6px; font-family: var(--ffz-display); font-size: 1.5rem; }
.ffz-auth-card .ffz-sub { color: var(--ffz-muted); margin: 0 0 22px; font-size: .92rem; }
.ffz-auth-switch { margin-top: 18px; font-size: .92rem; text-align: center; color: var(--ffz-muted); }
.ffz-auth-switch .ffz-link { font-weight: 600; }

/* ===== Shell (logged-in + public) ===== */
.ffz-shell {
  display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%;
  background: var(--ffz-bg);
}
.ffz-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; height: 56px; flex-shrink: 0;
  background: var(--ffz-primary); color: #fff; z-index: 40; width: 100%;
}
.ffz-topbar-brand { font-family: var(--ffz-display); font-weight: 700; font-size: 1.15rem; cursor: pointer; }
.ffz-topbar-center { font-weight: 600; opacity: .95; }
.ffz-topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ffz-topbar .ffz-btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.ffz-topbar .ffz-btn-ghost:hover { background: rgba(255,255,255,.12); }
.ffz-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: grid; place-items: center; font-weight: 700; cursor: pointer; position: relative;
}
.ffz-menu {
  position: absolute; right: 0; top: 42px; background: #fff; color: var(--ffz-text);
  border-radius: 10px; box-shadow: var(--ffz-shadow); min-width: 190px;
  padding: 6px; display: none; border: 1px solid var(--ffz-border); z-index: 50;
}
.ffz-menu.open { display: block; }
.ffz-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border: none; background: none; font: inherit; cursor: pointer; border-radius: 6px;
}
.ffz-menu button:hover { background: #f0f4f1; }

.ffz-body { display: flex; flex: 1; min-height: 0; width: 100%; }
.ffz-sidebar {
  width: 220px; background: #fff; border-right: 1px solid var(--ffz-border);
  padding: 14px 10px; flex-shrink: 0; overflow-y: auto;
}
.ffz-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: none; background: none; width: 100%; font: inherit; text-align: left; color: var(--ffz-text);
}
.ffz-nav-item:hover, .ffz-nav-item.active { background: #e7f3ec; color: var(--ffz-primary-dark); font-weight: 600; }
.ffz-main {
  flex: 1; padding: 28px 32px; overflow: auto; min-width: 0; width: 100%;
}
.ffz-main-full { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.ffz-page { width: 100%; max-width: none; }
.ffz-main-full > .ffz-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ffz-main-full .ffz-canvas-wrap { flex: 1; min-height: 0; }

/* ===== Landing page ===== */
.ffz-lp {
  width: 100%;
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  background: #f3f6f4;
  scroll-behavior: smooth;
}
.ffz-lp-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.ffz-lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(243, 246, 244, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.ffz-lp-logo {
  font-family: var(--ffz-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  color: var(--ffz-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.ffz-lp-logo-foot { color: #fff; font-size: 1.15rem; }
.ffz-lp-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ffz-lp-links .ffz-nav-text {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ffz-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.ffz-lp-links .ffz-nav-text:hover,
.ffz-lp-links .ffz-nav-text.active {
  color: var(--ffz-primary-dark);
  background: rgba(26, 122, 76, 0.08);
}
.ffz-lp-signin { background: #fff !important; }

/* Hero — one full-bleed composition */
.ffz-lp-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vh, 56px) 0 clamp(48px, 7vh, 80px);
  overflow: hidden;
}
.ffz-lp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, #e8f2ec 0%, #f3f6f4 42%, #ebe7e0 100%);
}
.ffz-lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  animation: ffz-orb 12s ease-in-out infinite;
}
.ffz-lp-orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -10%;
  right: -8%;
  background: rgba(26, 122, 76, 0.28);
}
.ffz-lp-orb-b {
  width: 34vw;
  height: 34vw;
  max-width: 420px;
  max-height: 420px;
  bottom: -12%;
  left: -6%;
  background: rgba(240, 122, 26, 0.22);
  animation-delay: -4s;
}
.ffz-lp-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(28, 36, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 36, 32, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}
@keyframes ffz-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.06); }
}

.ffz-lp-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.ffz-lp-brand {
  font-family: var(--ffz-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4.75rem);
  line-height: .92;
  letter-spacing: -.04em;
  color: var(--ffz-primary);
  margin: 0 0 18px;
}
.ffz-lp-brand-sm {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.ffz-lp-hero-copy h1 {
  font-family: var(--ffz-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ffz-text);
  margin: 0 0 14px;
  max-width: 18ch;
}
.ffz-lp-lead,
.ffz-lp-section-lead {
  margin: 0 0 28px;
  color: var(--ffz-muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 36ch;
}
.ffz-lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Product visual */
.ffz-lp-hero-stage {
  position: relative;
  min-height: 360px;
}
.ffz-lp-product {
  background: #fff;
  border: 1px solid rgba(28, 36, 32, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(28, 36, 32, 0.12);
  transform-origin: center center;
  transition: transform .35s ease;
  animation: ffz-rise 1s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes ffz-rise {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ffz-lp-product-chrome {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: linear-gradient(90deg, #147a4a, #1a8f58);
  color: rgba(255,255,255,.9);
}
.ffz-lp-product-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.ffz-lp-product-chrome em {
  margin-left: 8px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.ffz-lp-product-body {
  display: grid;
  grid-template-columns: 56px 1fr 128px;
  min-height: 300px;
}
.ffz-lp-product-rail {
  background: #f7faf8;
  border-right: 1px solid var(--ffz-border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ffz-lp-product-rail i {
  display: block;
  height: 32px;
  border-radius: 8px;
  background: #e5f0ea;
  animation: ffz-pulse 2.8s ease-in-out infinite;
}
.ffz-lp-product-rail i:nth-child(2) { animation-delay: .2s; }
.ffz-lp-product-rail i:nth-child(3) { animation-delay: .4s; }
.ffz-lp-product-rail i:nth-child(4) { animation-delay: .6s; }
@keyframes ffz-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.ffz-lp-flow {
  position: relative;
  background:
    linear-gradient(rgba(28,36,32,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,36,32,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.ffz-lp-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ffz-lp-line {
  fill: none;
  stroke: #27ae60;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: ffz-draw 1.2s ease forwards .35s;
}
.ffz-lp-line-delay { stroke: #27ae60; animation-delay: .7s; }
.ffz-lp-line-delay2 { stroke: #e74c3c; animation-delay: .95s; }
@keyframes ffz-draw {
  to { stroke-dashoffset: 0; }
}
.ffz-lp-flow-node {
  position: absolute;
  width: 76px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #d5ddd8;
  text-align: center;
  box-shadow: 0 6px 16px rgba(28,36,32,.06);
  animation: ffz-node-in .55s cubic-bezier(.22,1,.36,1) both;
}
.ffz-lp-flow-node b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 4px;
  border-radius: 8px;
  background: #e8f3ec;
  color: var(--ffz-primary);
  font-size: .72rem;
}
.ffz-lp-flow-node span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--ffz-text);
}
.ffz-lp-flow-node.n1 { left: 8%; top: 28%; animation-delay: .2s; }
.ffz-lp-flow-node.n2 { left: 36%; top: 28%; animation-delay: .35s; }
.ffz-lp-flow-node.n3 { left: 68%; top: 12%; animation-delay: .55s; }
.ffz-lp-flow-node.n4 { left: 68%; top: 54%; animation-delay: .7s; }
@keyframes ffz-node-in {
  from { opacity: 0; transform: translateY(12px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ffz-lp-product-kpis {
  background: #24302a;
  color: #b7c4bc;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ffz-lp-product-kpis small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .75;
}
.ffz-lp-product-kpis strong {
  color: #fff;
  font-family: var(--ffz-display);
  font-size: 1.15rem;
}
.ffz-lp-sim-btn {
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 11px 8px;
  background: var(--ffz-accent);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .06em;
  cursor: default;
  animation: ffz-sim-glow 2.4s ease-in-out infinite;
}
@keyframes ffz-sim-glow {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.08); transform: scale(1.02); }
}

/* Reveal helper */
.ffz-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.ffz-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.ffz-lp-section {
  padding: clamp(56px, 9vw, 96px) 0;
}
.ffz-lp-proof {
  text-align: center;
  background: #fff;
  border-top: 1px solid rgba(213,221,216,.7);
  border-bottom: 1px solid rgba(213,221,216,.7);
}
.ffz-lp-section-kicker {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ffz-accent);
}
.ffz-lp-proof h2,
.ffz-lp-process-head h2,
.ffz-lp-closing h2 {
  font-family: var(--ffz-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -.03em;
  margin: 0 0 12px;
  color: var(--ffz-text);
}
.ffz-lp-proof .ffz-lp-section-lead {
  margin: 0 auto;
  max-width: 40ch;
}

.ffz-lp-capabilities { background: #f3f6f4; }
.ffz-lp-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.ffz-lp-cap {
  padding: 8px 4px;
  border-top: 2px solid var(--ffz-primary);
}
.ffz-lp-cap h3 {
  font-family: var(--ffz-display);
  font-size: 1.55rem;
  margin: 16px 0 10px;
  letter-spacing: -.02em;
}
.ffz-lp-cap p {
  margin: 0;
  color: var(--ffz-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 28ch;
}

.ffz-lp-process { background: #fff; }
.ffz-lp-process-head { margin-bottom: 36px; max-width: 36ch; }
.ffz-lp-process-head p { margin: 0; color: var(--ffz-muted); }
.ffz-lp-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ffz-lp-process-list li {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--ffz-border);
}
.ffz-lp-process-list span {
  font-family: var(--ffz-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ffz-accent);
  letter-spacing: -.02em;
}
.ffz-lp-process-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.ffz-lp-process-list p {
  margin: 0;
  color: var(--ffz-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.ffz-lp-closing {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26,122,76,.12), transparent 55%),
    #eef4f0;
  border-top: 1px solid rgba(213,221,216,.7);
}
.ffz-lp-closing .ffz-lp-section-lead {
  margin-left: auto;
  margin-right: auto;
}
.ffz-lp-closing .ffz-lp-cta { justify-content: center; }

.ffz-lp-footer {
  background: #18241e;
  color: #9aa59e;
  padding: 28px clamp(20px, 4vw, 48px);
}
.ffz-lp-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ffz-lp-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.ffz-lp-footer-links button {
  background: none;
  border: none;
  color: #c5d0c9;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  padding: 0;
  transition: color .2s ease;
}
.ffz-lp-footer-links button:hover { color: #fff; }
.ffz-lp-copy { font-size: .85rem; }

.ffz-public-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}
.ffz-lp-sub { background: #f3f6f4; }

@media (max-width: 960px) {
  .ffz-lp-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .ffz-lp-hero { min-height: auto; padding-top: 24px; }
  .ffz-lp-hero-stage { min-height: 300px; }
  .ffz-lp-cap-grid,
  .ffz-lp-process-list { grid-template-columns: 1fr; }
  .ffz-lp-product-body { grid-template-columns: 48px 1fr; }
  .ffz-lp-product-kpis {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .ffz-lp-sim-btn { width: auto; margin-left: auto; padding: 10px 16px; }
  .ffz-lp-brand { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

/* Dashboard cards */
.ffz-page-title { font-family: var(--ffz-display); font-size: 1.6rem; margin: 0 0 4px; }
.ffz-page-sub { color: var(--ffz-muted); margin: 0 0 20px; }
.ffz-grid { display: grid; gap: 14px; width: 100%; }
.ffz-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ffz-grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ffz-card {
  background: #fff; border: 1px solid var(--ffz-border); border-radius: var(--ffz-radius);
  padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.ffz-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ffz-card p { margin: 0; color: var(--ffz-muted); font-size: .9rem; }
.ffz-card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ffz-kpi { text-align: left; }
.ffz-kpi .val { font-family: var(--ffz-display); font-size: 1.5rem; font-weight: 700; }
.ffz-kpi .lbl { font-size: .8rem; color: var(--ffz-muted); text-transform: uppercase; letter-spacing: .04em; }
.ffz-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.ffz-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: #e7f3ec; color: var(--ffz-primary-dark);
}

/* Canvas — full remaining viewport */
.ffz-canvas-wrap {
  display: grid;
  grid-template-columns: 96px 1fr 300px;
  height: 100%;
  min-height: 0;
  width: 100%;
  background: #fff;
}
.ffz-palette {
  background: #fafbfa; border-right: 1px solid var(--ffz-border);
  overflow-y: auto; padding: 8px 6px;
}
.ffz-palette-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.ffz-palette-tabs button {
  flex: 1; border: none; background: none; padding: 8px 4px; font-size: .72rem;
  font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; color: var(--ffz-muted);
}
.ffz-palette-tabs button.active { color: var(--ffz-accent); border-bottom-color: var(--ffz-accent); }
.ffz-obj {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; cursor: grab; border-radius: 8px; user-select: none;
}
.ffz-obj:hover { background: #eef5f1; }
.ffz-obj-icon {
  width: 42px; height: 42px; border-radius: 8px; background: #fff;
  border: 1px solid var(--ffz-border); display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: var(--ffz-primary);
}
.ffz-obj span { font-size: .62rem; text-align: center; line-height: 1.2; color: var(--ffz-muted); }

.ffz-canvas-area {
  position: relative; overflow: hidden;
  background-color: #f7f8f7;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ffz-canvas-toolbar {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 10px;
  box-shadow: var(--ffz-shadow); z-index: 5; border: 1px solid var(--ffz-border);
  flex-wrap: wrap; max-width: 95%; justify-content: center;
}
.ffz-canvas-stage { position: absolute; inset: 0; transform-origin: 0 0; }
.ffz-node {
  position: absolute; width: 108px; min-height: 78px;
  background: #fff; border: 2px solid #cfd8d3; border-radius: 10px;
  padding: 8px 6px 18px; cursor: move; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); z-index: 2;
}
.ffz-node.selected { border-color: var(--ffz-accent); box-shadow: 0 0 0 3px rgba(240,122,26,.2); }
.ffz-node-icon {
  width: 36px; height: 36px; margin: 0 auto 4px; border-radius: 8px;
  background: #eef5f1; display: grid; place-items: center;
  font-size: .65rem; font-weight: 700; color: var(--ffz-primary);
}
.ffz-node-label { font-size: .72rem; font-weight: 600; line-height: 1.2; }
.ffz-node-stats {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  background: #1c2420; color: #fff; font-size: .65rem; padding: 2px 6px;
  border-radius: 4px; white-space: nowrap; display: none;
}
.ffz-node-stats.show { display: block; }
.ffz-port {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; cursor: crosshair; z-index: 3;
}
.ffz-port-y { background: var(--ffz-yes); right: -7px; top: 50%; transform: translateY(-50%); }
.ffz-port-n { background: var(--ffz-no); left: 50%; bottom: -7px; transform: translateX(-50%); }
.ffz-port-in { background: #3498db; left: -7px; top: 50%; transform: translateY(-50%); }

.ffz-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ffz-edges path { fill: none; stroke-width: 2; pointer-events: stroke; cursor: pointer; }
.ffz-edges path.y { stroke: #27ae60; }
.ffz-edges path.n { stroke: #e74c3c; }
.ffz-edges path.selected { stroke-width: 3; stroke: var(--ffz-accent); }

.ffz-rightpanel {
  background: var(--ffz-panel); color: #e8ece9; overflow-y: auto;
  display: flex; flex-direction: column;
}
.ffz-rp-section { border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 14px; }
.ffz-rp-section h4 {
  margin: 0 0 10px; font-size: .85rem; display: flex; justify-content: space-between; align-items: center;
  color: #fff;
}
.ffz-rp-section h4 button {
  background: none; border: none; color: #9ab0a3; cursor: pointer; font-size: 1rem;
}
.ffz-rp-row { display: flex; justify-content: space-between; font-size: .82rem; padding: 4px 0; color: #b7c4bc; }
.ffz-rp-row strong { color: #fff; font-weight: 600; }
.ffz-simulate-bar {
  margin-top: auto; padding: 14px; border-top: 1px solid rgba(255,255,255,.08);
}
.ffz-simulate-bar .ffz-btn { width: 100%; padding: 14px; font-size: 1rem; letter-spacing: .04em; }
.ffz-summary-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ffz-summary-kpis .ffz-kpi .val { font-size: 1.1rem; color: #fff; }
.ffz-summary-kpis .ffz-kpi .lbl { color: #9ab0a3; }

/* Modal */
.ffz-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,28,24,.45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ffz-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow: auto; padding: 22px; box-shadow: var(--ffz-shadow);
}
.ffz-modal h3 { margin: 0 0 14px; font-family: var(--ffz-display); }
.ffz-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Pricing */
.ffz-plan {
  border: 2px solid var(--ffz-border); border-radius: 14px; padding: 22px; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.ffz-plan.featured { border-color: var(--ffz-accent); }
.ffz-plan .price { font-family: var(--ffz-display); font-size: 2rem; font-weight: 800; }
.ffz-plan ul { margin: 10px 0 16px; padding-left: 18px; color: var(--ffz-muted); flex: 1; }
.ffz-plan li { margin-bottom: 6px; }

/* Reports */
.ffz-report-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ffz-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.ffz-table th, .ffz-table td { padding: 10px 12px; border-bottom: 1px solid var(--ffz-border); text-align: left; font-size: .9rem; }
.ffz-table th { background: #f4f7f5; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ffz-muted); }
.ffz-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 12px;
  background: #fff; border-radius: 10px; border: 1px solid var(--ffz-border);
}
.ffz-chart-bar {
  flex: 1; background: linear-gradient(180deg, var(--ffz-accent), var(--ffz-primary));
  border-radius: 4px 4px 0 0; min-width: 12px; position: relative;
}
.ffz-chart-bar span {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: .65rem; color: var(--ffz-muted);
}

/* Tutorials */
.ffz-tutorial {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  background: #fff; border: 1px solid var(--ffz-border); border-radius: 10px;
}
.ffz-tutorial-thumb {
  width: 72px; height: 48px; border-radius: 8px; background: var(--ffz-panel);
  display: grid; place-items: center; color: #fff; font-size: .75rem; flex-shrink: 0;
}

@media (max-width: 960px) {
  .ffz-auth { grid-template-columns: 1fr; }
  .ffz-auth-visual { display: none; }
  .ffz-body { flex-direction: column; }
  .ffz-sidebar {
    width: 100%; display: flex; overflow-x: auto; padding: 8px; gap: 4px;
    border-right: none; border-bottom: 1px solid var(--ffz-border);
  }
  .ffz-nav-item { white-space: nowrap; width: auto; }
  .ffz-main { padding: 18px 16px; }
  .ffz-canvas-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .ffz-palette { display: flex; overflow-x: auto; width: 100%; border-right: none; border-bottom: 1px solid var(--ffz-border); }
  .ffz-rightpanel { max-height: 260px; }
}
