/* ============================================================
   PoZapisi Landing v3 — uses project palette (dusty mint #55A392
   + warm cream + Nunito), shadcn-style cards and components.
   Mirrors frontend/web/src/index.css tokens.
   ============================================================ */

:root {
  /* Project palette — mirrors web admin (frontend/web/src/index.css) */
  --bg:            #FFFFFF;
  --bg-tint:       #F4FAF7;          /* soft mint wash */
  --bg-card:       #FEFDFB;          /* warm white */
  --bg-muted:      #F7F4F2;          /* warm sand */
  --bg-mint-soft:  #E5F2ED;          /* mint cloud */
  --bg-rose-soft:  #F8F0F2;          /* dusty rose */

  --ink-1:         #2B2520;          /* warm charcoal */
  --ink-2:         #4A4239;          /* secondary text */
  --ink-3:         #7D756C;          /* muted */
  --ink-4:         #A8A096;          /* placeholder */

  --line:          #E8E1D9;          /* warm border */
  --line-strong:   #D9D1C6;

  --primary:       #55A392;          /* dusty mint */
  --primary-hover: #468676;
  --primary-soft:  #D6EAE3;
  --primary-glow:  rgba(85, 163, 146, 0.28);

  --success:       #3BA07A;
  --warning:       #D4982A;
  --destructive:   #C85060;
  --coral:         #CC7A60;

  /* Dark surface for assistant section only */
  --dark:          #1A1714;          /* warm dark from project */
  --dark-card:     #221F1C;
  --dark-line:     #2E2925;
  --dark-line-2:   #3A332E;
  --dark-ink-1:    #E5E0DA;
  --dark-ink-2:    #B8B1A6;
  --dark-ink-3:    #847D72;

  /* Radii — match project --radius: 0.75rem */
  --r-1: 6px;
  --r-2: 8px;
  --r-3: 12px;
  --r-4: 16px;
  --r-5: 20px;
  --r-pill: 999px;

  /* Shadows — soft, warm */
  --sh-1: 0 1px 2px rgba(43,37,32,.04);
  --sh-2: 0 2px 6px rgba(43,37,32,.05), 0 8px 24px -12px rgba(43,37,32,.08);
  --sh-3: 0 6px 16px -6px rgba(43,37,32,.10), 0 2px 6px rgba(43,37,32,.04);
  --sh-elev: 0 24px 56px -28px rgba(43,37,32,.30), 0 10px 24px -12px rgba(43,37,32,.14);
  --sh-phone: 0 24px 60px -24px rgba(43,37,32,.40), 0 8px 16px -8px rgba(43,37,32,.18);
  --sh-card: 0 1px 0 rgba(43,37,32,.04), 0 10px 28px -14px rgba(43,37,32,.10);

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Type scale */
  --t-2xs:      0.6875rem;  /* F-UXL-016: micro labels, gallery-tab-num, win-counter */
  --t-xs:       0.75rem;
  --t-xs-strong: 0.8125rem; /* F-UXL-016: fc-label, dash labels, tab-sub on small tabs */
  --t-sm:       0.875rem;
  --t-base:     1rem;
  --t-md:       1.125rem;
  --t-lg:       1.375rem;
  --t-xl:       1.75rem;
  --t-2xl:      2.25rem;
  --t-3xl:      3rem;

  --max-w: 1240px;
  --max-w-narrow: 760px;
  --pad-x: 32px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'rlig' 1, 'calt' 1;
}

img { max-width: 100%; display: block; }
svg { display: inline-block; vertical-align: middle; }
svg:not([width]):not([height]) { width: 1em; height: 1em; }
.brand-mark > svg,
.win-dots i,
.dm-chart svg,
.lf-success-mark svg { width: 100%; height: 100%; }

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--ink-1);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.4em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 700;
}
h3 { font-size: clamp(1.15rem, 1.6vw, 1.375rem); font-weight: 700; }
h4 { font-size: var(--t-base); font-weight: 700; }
p  { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }

a { color: var(--primary); text-decoration: none; transition: color .12s; }
a:hover { color: var(--primary-hover); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: var(--r-1);
  color: var(--ink-1);
  font-weight: 600;
}

*:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-1); }

.container        { width: 100%; max-width: var(--max-w);        margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.muted { color: var(--ink-3); }

/* Eyebrow — small label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 var(--t-xs)/1 inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--dark-ink-3); }
.eyebrow.on-dark::before { background: var(--primary); }

/* Badge — beta */
.badge-beta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 var(--t-xs)/1 inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warning);
  background: rgba(212, 152, 42, .12);
  border: 1px solid rgba(212, 152, 42, .25);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.badge-beta::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse-amber 2s ease-in-out infinite;
}
@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 var(--t-sm)/1 inherit;
  padding: 0.82em 1.4em;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.btn-lg { font-size: var(--t-base); padding: 0.95em 1.55em; }
.btn-block { width: 100%; white-space: normal; line-height: 1.25; text-align: center; }
.btn-meta { font-weight: 500; opacity: .7; font-size: 0.78em; margin-left: 4px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,.10),
    0 1px 2px rgba(85,163,146,.18),
    0 6px 18px -6px rgba(85,163,146,.42);
}
.btn-primary::after { content: "→"; font-weight: 500; transition: transform .18s; }
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 -1px 0 rgba(0,0,0,.10),
    0 2px 4px rgba(85,163,146,.22),
    0 10px 24px -6px rgba(85,163,146,.50);
}
.btn-primary:hover::after { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost-dark {
  background: rgba(255,255,255,.05);
  color: var(--dark-ink-1);
  border: 1px solid var(--dark-line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.10);
  border-color: var(--dark-line-2);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink-1);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-1); color: var(--ink-1); transform: translateY(-1px); }

.link-quiet {
  color: var(--ink-3);
  font-weight: 600;
  font-size: var(--t-sm);
}
.link-quiet:hover { color: var(--ink-1); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 800;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px; height: 26px;
  color: var(--primary);
  display: inline-flex;
  background: var(--primary-soft);
  border-radius: var(--r-1);
  padding: 4px;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { color: var(--primary); }
.brand-light .brand-mark { background: rgba(255,255,255,.1); color: var(--dark-ink-1); }
.brand-light .brand-name { color: var(--dark-ink-1); }

.nav-primary { display: flex; align-items: center; gap: 28px; }
.nav-primary a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: var(--t-sm);
  position: relative;
}
.nav-primary a:hover { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-1); border-radius: 2px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad-x) 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  color: var(--ink-1);
  font-weight: 600;
  font-size: var(--t-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.open { display: flex; }

/* ============ HERO — light mint, split layout ============ */
.hero {
  position: relative;
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, var(--primary-soft) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 0% 100%, var(--bg-rose-soft) 0%, transparent 55%),
    var(--bg-tint);
  overflow: hidden;
  isolation: isolate;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--s-5);
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  letter-spacing: 0.005em;
  transition: background .15s, border-color .15s, color .15s;
}
.hero-chips span:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.hero h1 {
  color: var(--ink-1);
  margin-bottom: 0.4em;
}
.hero .lead {
  font-size: var(--t-md);
  color: var(--ink-2);
  margin: 0 0 var(--s-5);
  line-height: 1.55;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 var(--s-6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: var(--ink-1); font-weight: 700; }

/* ============ HERO STAGE — owner dashboard mock (shadcn-style) ============ */
.hero-stage {
  position: relative;
  min-width: 0;
  min-height: 480px;
  padding: 28px 8px 32px;
  margin: -28px -8px -32px;
}

.window {
  margin: 0;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--sh-elev);
}

.win-chrome {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 11px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--line);
  font: 600 var(--t-xs)/1 inherit;
  color: var(--ink-3);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots i {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
}
.win-dots i:nth-child(1) { background: #FF5F57; }
.win-dots i:nth-child(2) { background: #FEBC2E; }
.win-dots i:nth-child(3) { background: #28C840; }

.win-url {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: var(--t-2xs);
  font-weight: 600;
}
.win-url em { color: var(--ink-4); font-style: normal; font-weight: 400; }

.win-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--t-2xs);
  color: var(--success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.win-pulse i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(59,160,122,.5);
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(59,160,122,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(59,160,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,160,122,0); }
}

/* dashboard layout — shadcn-style */
.dash {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 420px;
  background: var(--bg-card);
  font-size: var(--t-sm);
}
@media (max-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: none; }
}
.dash-side {
  border-right: 1px solid var(--line);
  padding: var(--s-4) var(--s-3);
  background: var(--bg-tint);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: var(--t-xs-strong);
  color: var(--ink-1);
  padding: 4px 6px;
}
.dash-mark {
  width: 24px; height: 24px;
  border-radius: var(--r-1);
  background: linear-gradient(135deg, var(--primary), #6EBBA6);
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: var(--r-1);
  color: var(--ink-2);
  font-size: var(--t-xs-strong);
  font-weight: 600;
  cursor: default;
}
.dash-nav a:hover { background: rgba(85,163,146,.06); }
.dash-nav a.is-active {
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.d-ico {
  width: 14px; height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .72;
}
.dash-nav a.is-active .d-ico { opacity: 1; }
.d-ico-cal   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23468676' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 11h18'/%3E%3C/svg%3E"); }
.d-ico-list  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D756C' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Ccircle cx='4' cy='6' r='1'/%3E%3Ccircle cx='4' cy='12' r='1'/%3E%3Ccircle cx='4' cy='18' r='1'/%3E%3C/svg%3E"); }
.d-ico-team  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D756C' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.d-ico-chart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D756C' stroke-width='2'%3E%3Cpath d='M3 3v18h18M7 14l4-4 4 4 5-7'/%3E%3C/svg%3E"); }
.d-ico-doc   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D756C' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E"); }

.dash-side-foot { margin-top: auto; }
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kpi-label {
  font-size: var(--t-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 700;
}
.kpi-val { font-size: var(--t-xs-strong); font-weight: 800; color: var(--ink-1); }
.kpi-bar {
  display: block;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--bg-muted);
  overflow: hidden;
}
.kpi-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6EBBA6);
}

.dash-main { padding: var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.dash-h-eyebrow {
  font: 700 var(--t-2xs)/1 inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.dash-h-title { font-size: 1rem; font-weight: 800; color: var(--ink-1); }
.dash-h-stats { display: flex; gap: var(--s-4); }
.dash-h-stats span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: var(--t-2xs);
}
.dash-h-stats b { color: var(--ink-1); font-weight: 800; font-size: var(--t-xs-strong); }
.dash-h-stats em { color: var(--ink-3); font-style: normal; font-size: var(--t-2xs); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  min-width: 0;
}
.dash-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dash-col-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-1);
  padding: 4px 4px 8px;
  border-bottom: 1px dashed var(--line);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: var(--t-2xs);
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ava-1 { background: linear-gradient(135deg, var(--primary), #6EBBA6); }
.ava-2 { background: linear-gradient(135deg, var(--coral), #E5B597); }
.ava-3 { background: linear-gradient(135deg, var(--warning), #E8C575); }

.dash-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: var(--r-1);
  border-left: 3px solid;
  font-size: var(--t-xs);
  transition: transform .15s, box-shadow .15s;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dash-slot:hover { transform: translateX(2px); box-shadow: var(--sh-1); }
.dash-slot .t { font: 700 var(--t-2xs)/1 inherit; color: var(--ink-3); margin-bottom: 2px; letter-spacing: 0.04em; }
.dash-slot strong { color: var(--ink-1); font-weight: 700; font-size: var(--t-xs-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-slot em { color: var(--ink-3); font-style: normal; font-size: var(--t-2xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-a { background: var(--primary-soft); border-left-color: var(--primary); border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
.slot-b { background: rgba(59,160,122,.10); border-left-color: var(--success); border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
.slot-c { background: var(--bg-rose-soft); border-left-color: var(--coral); border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
.slot-empty {
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-left: 1px dashed var(--line-strong);
  color: var(--ink-4);
}
.slot-empty .t { color: var(--ink-4); }
.slot-empty em { color: var(--ink-4); }

/* floating cards in hero */
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 13px 15px;
  box-shadow: var(--sh-elev);
  z-index: 2;
  min-width: 240px;
  max-width: 280px;
  animation: float-in .8s ease-out both;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.float-book {
  bottom: 24px;
  right: -8px;
  z-index: 6;
  animation-delay: .5s;
}
.float-card .fc-quote { margin: 0; }
.float-card .fc-quote-light { margin: 4px 0 0; font-size: var(--t-xs-strong); }
.fc-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.fc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(59,160,122,.18);
  animation: pulse-live 1.6s ease-in-out infinite;
}
.fc-label {
  font: 700 var(--t-2xs)/1 inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.fc-quote {
  font-size: var(--t-xs-strong);
  color: var(--ink-1);
  line-height: 1.45;
  font-weight: 700;
}
.fc-quote-light { color: var(--ink-2); font-weight: 600; }
.fc-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: var(--t-2xs);
  color: var(--ink-3);
  font-weight: 600;
}
.fc-tg-mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #229ED9, #1d8ec8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-tg-mark svg { width: 11px; height: 11px; stroke: #fff; }

/* hero channels row */
.hero-channels-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font: 600 var(--t-sm)/1 inherit;
  color: var(--ink-2);
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
.hc-label { letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--t-xs); color: var(--ink-4); }
.hero-channels-row span { display: inline-flex; align-items: center; gap: 7px; }
.hero-channels-row svg { width: 14px; height: 14px; opacity: .8; }
.hero-channels-row em { font-style: normal; }

/* ============ PROBLEM STRIP ============ */
.strip {
  padding: var(--s-7) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.strip-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-7);
  align-items: start;
}
.strip-row .eyebrow { margin: 0; padding-top: 6px; }
.strip-lead {
  margin: 0;
  font-size: var(--t-md);
  color: var(--ink-2);
  max-width: 760px;
  line-height: 1.6;
}
.strip-lead b { color: var(--ink-1); font-weight: 800; }

/* ============ SECTION BASE ============ */
.section { padding: var(--s-9) 0; }
.section-head {
  max-width: 680px;
  margin: 0 0 var(--s-7);
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p {
  color: var(--ink-3);
  font-size: var(--t-md);
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
}
.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head-center .eyebrow { justify-content: center; }
.section-head-center p { margin-left: auto; margin-right: auto; }

/* ============ ASSISTANT — warm dark band ============ */
.section-assistant {
  background: var(--dark);
  color: var(--dark-ink-1);
  padding: var(--s-10) 0;
  position: relative;
  overflow: hidden;
}
.section-assistant::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto auto;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, var(--primary-glow), transparent 70%);
  opacity: 0.4;
  filter: blur(90px);
  z-index: 0;
}
.section-assistant .container { position: relative; z-index: 1; }
.section-assistant h2 { color: var(--dark-ink-1); }
.section-assistant .eyebrow { color: var(--dark-ink-3); }
.assistant-intro {
  max-width: 760px;
  margin: 0 0 var(--s-7);
}
.assistant-intro p {
  color: var(--dark-ink-2);
  font-size: var(--t-md);
  line-height: 1.6;
  margin: 0;
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: start;
}

.dialog {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6);
}
.dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--dark-line);
  font-size: var(--t-xs);
  color: var(--dark-ink-3);
  font-weight: 700;
}
.dialog-head > span:nth-child(2) { flex-grow: 1; }
.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 0 rgba(212,152,42,.5);
  animation: pulse-amber-live 1.8s ease-in-out infinite;
}
@keyframes pulse-amber-live {
  0%   { box-shadow: 0 0 0 0 rgba(212,152,42,.45); }
  70%  { box-shadow: 0 0 0 8px rgba(212,152,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,152,42,0); }
}
.dialog-tag {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-ink-3);
}
.dialog-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.msg-who {
  font-size: var(--t-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-ink-3);
}
.msg p {
  margin: 0;
  padding: 10px 14px;
  line-height: 1.48;
  font-size: var(--t-sm);
  border-radius: 14px;
  font-weight: 500;
}
.msg-bot { align-self: flex-start; }
.msg-bot p {
  background: rgba(255,255,255,.04);
  color: var(--dark-ink-1);
  border: 1px solid var(--dark-line);
  border-bottom-left-radius: 4px;
}
.msg-user { align-self: flex-end; }
.msg-user .msg-who { align-self: flex-end; }
.msg-user p {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.msg-final p { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-glow); }
.msg-final small {
  display: block;
  margin: 6px 0 0 2px;
  color: #94CFBE;
  font-weight: 700;
  font-size: var(--t-xs);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}
.capabilities li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-left: 14px;
}
.capabilities li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), transparent);
  border-radius: 2px;
}
.capabilities h4 {
  margin: 0;
  color: var(--dark-ink-1);
  font-size: var(--t-sm);
  font-weight: 700;
}
.capabilities p {
  margin: 0;
  color: var(--dark-ink-3);
  font-size: var(--t-sm);
  line-height: 1.5;
}

/* ============ THREE APPS — showcase with real screenshots ============ */
.section-apps { background: var(--bg); }
.apps-showcase {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin: 0 0 var(--s-7);
}
/* F-UXL-017: unified .tab-card base — replaces .show-tab and .gallery-tab */
.tab-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
}
.tab-card:hover { border-color: var(--ink-4); transform: translateY(-1px); }
.tab-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 6px 16px -8px var(--primary-glow);
}
.tab-card.is-active .tab-num,
.tab-card.is-active .gallery-tab-num { color: var(--primary-hover); }

/* --lg modifier: three-apps showcase tabs */
.tab-card--lg {
  gap: 4px;
  padding: 14px 22px;
  min-width: 180px;
}
.tab-card--lg.is-active {
  box-shadow: 0 6px 16px -8px var(--primary-glow);
}

/* --sm modifier: owner gallery tabs */
.tab-card--sm {
  gap: 2px;
  padding: 10px 12px;
}
.tab-card--sm.is-active {
  box-shadow: 0 4px 12px -6px var(--primary-glow);
}

/* Legacy aliases — keep for backward compat with JS selectors */
.show-tab { display: inline-flex; }
.gallery-tab { display: flex; }

.tab-num {
  font: 700 var(--t-xs)/1 inherit;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.tab-title { font-size: var(--t-base); font-weight: 800; color: var(--ink-1); }
.tab-sub { font-size: var(--t-xs-strong); color: var(--ink-3); font-weight: 600; }

.apps-stage { position: relative; }
.app-panel {
  display: none;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-7);
  align-items: center;
  animation: panel-in .35s ease-out both;
}
.app-panel.is-active { display: grid; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ap-copy h3 { margin: 0 0 var(--s-3); font-weight: 800; }
.ap-copy > p {
  color: var(--ink-3);
  font-size: var(--t-md);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 var(--s-5);
}
.ap-feats {
  display: grid;
  gap: 10px;
  margin: 0 0 var(--s-5);
}
.ap-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 600;
}
.ap-feats svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  stroke: var(--primary);
  margin-top: 3px;
}
.ap-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 var(--t-sm)/1 inherit;
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 4px;
  transition: gap .18s, color .18s, border-color .18s;
}
.ap-link svg { width: 14px; height: 14px; }
.ap-link:hover { color: var(--primary-hover); border-color: var(--primary-hover); gap: 12px; }

/* Phone showcase — 3 mockups, fanned */
.ap-shots {
  position: relative;
  height: 560px;
}
.ap-shots-web {
  height: auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.ap-shots-single {
  height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-solo {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: rotate(-2deg) !important;
}
.phone-solo:hover { transform: rotate(0deg) translateY(-4px) !important; }

.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 248px;
  background: #1A1714;
  border-radius: 32px;
  padding: 9px;
  box-shadow: var(--sh-phone);
  transition: transform .35s ease, box-shadow .35s ease;
}
.phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #1A1714;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--bg-tint);
  position: relative;
  z-index: 1;
}
.phone-bar {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 0;
}

.phone-1 {
  z-index: 3;
  transform: translate(calc(-50% - 130px), -50%) rotate(-6deg);
}
.phone-2 {
  z-index: 4;
  transform: translate(-50%, calc(-50% - 16px)) scale(1.04);
}
.phone-3 {
  z-index: 3;
  transform: translate(calc(-50% + 130px), -50%) rotate(6deg);
}
.ap-shots:hover .phone-1 { transform: translate(calc(-50% - 145px), calc(-50% - 6px)) rotate(-7deg); }
.ap-shots:hover .phone-2 { transform: translate(-50%, calc(-50% - 22px)) scale(1.05); }
.ap-shots:hover .phone-3 { transform: translate(calc(-50% + 145px), calc(-50% - 6px)) rotate(7deg); }

/* Owner web showcase — real screenshot in browser frame */
.window-sm { max-width: 100%; width: 100%; }
.window-shot { width: 100%; height: auto; display: block; background: var(--bg-tint); }

/* ===== Owner tab gallery — clean tabs + single window + prev/next cyclic ===== */
.ap-gallery {
  display: flex !important;
  flex-direction: column;
  gap: var(--s-4);
}
/* F-UXL-007: 4 tabs → 2 tabs + theme toggle; grid changes from 4-col to 2-col + toggle */
.gallery-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-tabs-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}
/* Gallery theme toggle button */
.gallery-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  cursor: pointer;
  font: 600 var(--t-xs)/1 inherit;
  color: var(--ink-3);
  transition: border-color .18s, color .18s, background .18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-theme-toggle:hover { border-color: var(--ink-4); color: var(--ink-1); }
.gallery-theme-toggle[data-theme="dark"] { background: var(--dark-card); border-color: var(--dark-line); color: var(--dark-ink-2); }
.gallery-theme-toggle[data-theme="dark"]:hover { border-color: var(--dark-line-2); color: var(--dark-ink-1); }
/* gallery-tab styling delegated to .tab-card .tab-card--sm (F-UXL-017) */
.gallery-tab-num {
  font: 700 var(--t-2xs)/1 inherit;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}
.gallery-tab-title { font-size: var(--t-xs-strong); font-weight: 700; color: var(--ink-1); }
.gallery-tab-sub { font-size: var(--t-2xs); color: var(--ink-3); font-weight: 600; }

.gallery-stage {
  position: relative;
  margin: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--sh-elev);
}
.win-counter {
  font: 700 var(--t-2xs)/1 inherit;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.04em;
}
.win-counter em { font-style: normal; color: var(--ink-4); }
.win-counter #galleryNow { color: var(--ink-1); font-size: var(--t-xs-strong); }
.gallery-frame {
  position: relative;
  width: 100%;
  /* Dashboard shots are ~1.86; analytics ~1.20. Pick a frame aspect that
     fits both without cropping. 16/9 is close to dashboards (small letterbox
     top/bottom) and gives analytics a tall, well-padded canvas. */
  aspect-ratio: 16 / 9;
  background: var(--bg-tint);
}
.gallery-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Contain — never crop. Letterbox happens onto var(--bg-tint) which matches
     the frame background, so gaps blend in. */
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.gallery-shot.is-active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--ink-1);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background .15s, transform .15s, box-shadow .15s;
  backdrop-filter: blur(6px);
  box-shadow: var(--sh-2);
  z-index: 4;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-nav:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-nav:active { transform: translateY(-50%) scale(1); }

/* Hero dashboard — real web admin screenshot in browser frame */
.hero-dashboard {
  margin: 0;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--sh-elev);
  transition: transform .4s ease;
  z-index: 1;
}
.hero-stage:hover .hero-dashboard { transform: translateY(-3px); }
.hero-dashboard picture { display: block; width: 100%; }
.hero-dashboard img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Phone overlay on hero, bottom-right */
/* FLBL-004: hidden on all breakpoints — only browser-frame + float-book accent kept */
.hero-phone-overlay {
  display: none;
  position: absolute;
  right: -8px;
  bottom: -20px;
  z-index: 4;
  pointer-events: none;
}
.phone-overlay {
  width: 168px;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: rotate(4deg) !important;
}

/* Hero phones — 3 real screenshots, fanned */
.hero-phones {
  position: relative;
  width: 100%;
  height: 480px;
}
.hero-phones .phone {
  width: 210px;
  position: absolute;
  top: 50%;
  left: 50%;
}
.hero-phones .phone-l {
  z-index: 2;
  transform: translate(calc(-50% - 120px), calc(-50% + 8px)) rotate(-7deg);
  filter: brightness(.94);
}
.hero-phones .phone-m {
  z-index: 4;
  transform: translate(-50%, -50%) scale(1.06);
}
.hero-phones .phone-r {
  z-index: 2;
  transform: translate(calc(-50% + 120px), calc(-50% + 8px)) rotate(7deg);
  filter: brightness(.94);
}
.hero-stage:hover .phone-l { transform: translate(calc(-50% - 130px), calc(-50% + 4px)) rotate(-8deg); filter: brightness(1); }
.hero-stage:hover .phone-m { transform: translate(-50%, calc(-50% - 6px)) scale(1.07); }
.hero-stage:hover .phone-r { transform: translate(calc(-50% + 130px), calc(-50% + 4px)) rotate(8deg); filter: brightness(1); }
.dash-mini {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.dm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.dm-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}
.dm-kpi-label {
  font: 700 var(--t-2xs)/1 inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dm-kpi-val { font-size: var(--t-md); font-weight: 800; color: var(--ink-1); letter-spacing: -0.01em; }
.dm-kpi-delta {
  font-size: var(--t-2xs);
  font-weight: 700;
}
.dm-kpi-up   { color: var(--success); }
.dm-kpi-down { color: var(--destructive); }

.dm-chart {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4) 6px;
}
.dm-chart svg { width: 100%; height: 120px; display: block; }
.dm-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font: 700 var(--t-2xs)/1 inherit;
  color: var(--ink-4);
}

.dm-utm {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}
.dm-utm-h {
  font: 700 var(--t-2xs)/1 inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.dm-bar {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  margin: 5px 0;
}
.dm-bar-label { color: var(--ink-2); font-weight: 700; }
.dm-bar-track {
  display: block;
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.dm-bar-track i { display: block; height: 100%; border-radius: var(--r-pill); transition: width 1s ease-out; }
.dm-bar-val { color: var(--ink-1); font-weight: 800; text-align: right; font-size: var(--t-xs); }

/* ============ FEATURES GRID — 4 differentiators ============ */
.section-killer { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.killer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.killer-grid li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-4);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.killer-grid li:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
  border-color: var(--primary);
}
/* FLBL-004: mini screenshot in differentiator cards */
.killer-shot {
  width: 120px;
  height: 160px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--r-3);
  flex-shrink: 0;
  display: block;
  background: var(--bg-tint);
}
.killer-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
}
.feat-id {
  font: 700 var(--t-xs)/1 inherit;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin: 0;
}
.feat-id b { color: var(--primary); font-weight: 800; margin-right: 8px; }
.killer-grid h4 { margin: 0; font-size: var(--t-md); color: var(--ink-1); font-weight: 800; }
.killer-grid p {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--t-sm);
  line-height: 1.6;
}

/* ============ TURNKEY ============ */
.section-turnkey { background: var(--bg); }
.turnkey-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: var(--s-3);
}
.turnkey-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-7);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.turnkey-step {
  font: 800 var(--t-2xl)/1 inherit;
  color: var(--line-strong);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.turnkey-step b { color: var(--primary); font-weight: 800; font-size: var(--t-2xl); }
.turnkey-step small {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.turnkey-body h4 {
  font-size: var(--t-lg);
  margin-bottom: var(--s-2);
  font-weight: 800;
}
.turnkey-body p {
  color: var(--ink-3);
  font-size: var(--t-base);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

/* ============ PRICING ============ */
.section-pricing { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.pc-featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 20px 50px -20px var(--primary-glow);
  background: linear-gradient(180deg, var(--bg-card), var(--primary-soft) 250%);
}
.pc-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.pc-name { font-size: var(--t-lg); font-weight: 800; color: var(--ink-1); letter-spacing: -0.01em; }
.pc-for { font-size: var(--t-sm); color: var(--ink-3); font-weight: 600; }
.pc-badge {
  position: absolute;
  top: -8px;
  right: 0;
  font: 700 0.66rem/1 inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.pc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pc-amount { font-size: 1.9rem; font-weight: 800; color: var(--ink-1); letter-spacing: -0.02em; }
.pc-period { font-size: var(--t-sm); color: var(--ink-3); font-weight: 600; }
.pc-feats { display: grid; gap: 10px; }
.pc-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 600;
}
.pc-feats svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  stroke: var(--primary);
  margin-top: 3px;
}
.pc-note {
  margin: var(--s-5) auto 0;
  text-align: center;
  max-width: 720px;
  font-size: var(--t-sm);
  color: var(--ink-3);
  font-weight: 600;
}

/* ============ CONTACT — inline form ============ */
.section-contact { background: var(--bg); }
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s-8);
  align-items: start;
}
.contact-copy p.muted {
  font-size: var(--t-md);
  line-height: 1.6;
  margin-bottom: var(--s-4);
}
.contact-bullets {
  display: grid;
  gap: 8px;
  margin: 0 0 var(--s-6);
}
.contact-bullets li {
  color: var(--ink-2);
  font-size: var(--t-sm);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
  font-weight: 600;
}
.contact-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' fill='none' stroke='%2355A392' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M2 4h11M9 1l4 3-4 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-direct {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.cd-link { display: block; color: var(--ink-1); }
.cd-line {
  display: block;
  font-size: var(--t-md);
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.cd-link:hover .cd-line { color: var(--primary); }
.cd-link small {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 600;
}

/* lead form — shadcn-style */
.lead-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-6);
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
}
.lf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.lf-title {
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.015em;
}
.lf-meta {
  font: 700 0.7rem/1 inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* DEPRECATED FLBL-006: .lf-row removed — form uses single-column layout */
.lf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lf-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}
/* DEPRECATED FLBL-006: .lf-opt (optional label badge) removed with note field */

/* DEPRECATED FLBL-006: select + textarea rules kept for safety but elements removed from form */
.lf-field input,
.lf-field select,
.lf-field textarea {
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  color: var(--ink-1);
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.lf-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; font-family: inherit; }
.lf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237D756C' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
}
.lf-field input:focus,
.lf-field select:focus,
.lf-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.lf-field input::placeholder,
.lf-field textarea::placeholder { color: var(--ink-4); }

.lf-field.has-error input,
.lf-field.has-error select,
.lf-field.has-error textarea {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(200,80,96,.14);
}
.lf-error {
  font-size: var(--t-sm);
  color: var(--destructive);
  background: rgba(200,80,96,.08);
  border: 1px solid rgba(200,80,96,.25);
  border-radius: var(--r-2);
  padding: 10px 14px;
  font-weight: 600;
}
.lf-error-msg {
  font-size: var(--t-xs);
  color: var(--destructive);
  margin-top: 2px;
  display: none;
  font-weight: 600;
}
.lf-field.has-error .lf-error-msg { display: block; }

/* DEPRECATED FLBL-006: .lf-honey (honeypot field) removed — rate-limit handled server-side */

.lf-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--s-2);
}
.lf-fine {
  margin: 0;
  text-align: center;
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.5;
  font-weight: 500;
}
.lf-fine a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.lf-fine a:hover { color: var(--primary); }

.lf-success {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: var(--r-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-7);
  animation: panel-in .35s ease-out;
}
.lf-success[hidden] { display: none; }
.lf-success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
}
.lf-success-mark svg { width: 28px; height: 28px; }
.lf-success h3 { margin: 0 0 8px; }
.lf-success p { color: var(--ink-3); font-size: var(--t-sm); margin: 0; font-weight: 600; }
.lf-success a { font-weight: 800; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark);
  color: var(--dark-ink-3);
  padding: var(--s-8) 0 var(--s-5);
}
.footer-tagline {
  color: var(--dark-ink-3);
  font-size: var(--t-sm);
  max-width: 280px;
  margin: var(--s-3) 0 0;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--dark-line);
}
.site-footer h5 {
  margin: 0 0 var(--s-3);
  font: 700 var(--t-xs)/1 inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink-1);
}
.site-footer ul { display: grid; gap: 6px; }
.site-footer ul a {
  color: var(--dark-ink-3);
  font-size: var(--t-sm);
  font-weight: 500;
}
.site-footer ul a:hover { color: var(--dark-ink-1); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  color: var(--dark-ink-3);
  font-size: var(--t-xs);
  font-weight: 600;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease-out, transform .55s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero-container { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }
  .hero-chips { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  /* .float-call removed (F-UXL-022 — orphan, no matching HTML element) */
  .float-book { bottom: -16px; right: 12px; }
  .app-panel { grid-template-columns: 1fr; gap: var(--s-7); }
  .ap-copy { text-align: center; }
  .ap-copy > p { margin-left: auto; margin-right: auto; }
  .ap-feats { max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 980px) {
  .nav-primary, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .killer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .assistant-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .strip-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); }
}
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  html { scroll-padding-top: 64px; }

  h1 { font-size: 1.85rem !important; line-height: 1.1; } /* breakpoint override — intentional */
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: var(--t-md); }
  .lead { font-size: 1rem !important; }
  .section-head p { font-size: var(--t-xs-strong); }

  .header-row { padding: 12px var(--pad-x); }
  .brand { font-size: 1rem; }
  .brand-mark { width: 22px; height: 22px; }

  .hero { padding: 48px 0 60px; }
  .hero .lead { padding: 0 4px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: var(--s-3); font-size: var(--t-xs-strong); }
  .hero-chips { gap: 5px; }
  .hero-chips span { font-size: var(--t-2xs); padding: 4px 9px; }
  .hero-stage { min-height: 360px; padding: 20px 4px; margin: -20px -4px; }
  /* FLBL-004: mobile hero — only browser-frame visible, hide phone overlay and float card */
  .hero-phone-overlay { display: none; }
  .float-book { display: none; }
  .float-card { min-width: 200px; max-width: 240px; padding: 10px 12px; }
  /* .float-call removed (F-UXL-022) */
  .fc-quote { font-size: var(--t-xs-strong); }
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
  .dash-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .dash-h-stats { gap: var(--s-3); }
  .dash-h-stats b { font-size: var(--t-xs-strong); }

  .hero-channels-row {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    gap: 14px;
    font-size: var(--t-xs-strong);
    justify-content: center;
  }

  .strip { padding: var(--s-5) 0; }
  .strip-lead { font-size: var(--t-xs-strong); }

  .section { padding: var(--s-7) 0; }
  .section-head { margin-bottom: var(--s-5); }

  .section-assistant { padding: var(--s-7) 0; }
  .capabilities { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .capabilities h4 { font-size: var(--t-xs-strong); }
  .capabilities p { font-size: var(--t-xs-strong); }
  .dialog-body { padding: 16px 16px 20px; gap: 11px; }
  .msg p { font-size: var(--t-xs-strong); padding: 9px 12px; }

  .apps-showcase { gap: 8px; }
  .show-tab { min-width: 0; flex: 1; padding: 10px 12px; }
  .tab-title { font-size: var(--t-xs-strong); }
  .tab-sub { font-size: var(--t-2xs); }

  .ap-shots { height: 420px; }
  .phone { width: 188px; }
  .phone-1 { transform: translate(calc(-50% - 70px), -50%) rotate(-7deg); }
  .phone-2 { transform: translate(-50%, calc(-50% - 10px)) scale(1.02); }
  .phone-3 { transform: translate(calc(-50% + 70px), -50%) rotate(7deg); }
  .ap-shots:hover .phone-1 { transform: translate(calc(-50% - 70px), -50%) rotate(-7deg); }
  .ap-shots:hover .phone-2 { transform: translate(-50%, calc(-50% - 10px)) scale(1.02); }
  .ap-shots:hover .phone-3 { transform: translate(calc(-50% + 70px), -50%) rotate(7deg); }

  .ap-shots-web { min-height: 0; }
  .dm-row { grid-template-columns: 1fr; gap: 8px; }
  .dm-bar { grid-template-columns: 68px 1fr 32px; gap: 8px; font-size: var(--t-2xs); }

  /* FLBL-004: stack differentiator cards vertically on mobile */
  .killer-grid li { padding: var(--s-5); flex-direction: column; align-items: center; }
  .killer-shot { width: 160px; height: 280px; margin: 0 auto; }
  .killer-card-body { width: 100%; }

  .turnkey-list li {
    grid-template-columns: 60px 1fr;
    gap: var(--s-3);
    padding: var(--s-5) 0;
    align-items: start;
  }
  .turnkey-step { gap: 0; }
  .turnkey-step b { font-size: var(--t-xl); line-height: 1; }
  .turnkey-step small { font-size: var(--t-2xs); margin-top: 2px; }
  .turnkey-body h4 { font-size: var(--t-base); }
  .turnkey-body p { font-size: var(--t-xs-strong); }

  .price-card { padding: var(--s-5); }
  .pc-amount { font-size: var(--t-xl); }

  .lead-form { padding: var(--s-5); }
  /* DEPRECATED FLBL-006: .lf-row responsive rule removed */
  .lf-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lf-title { font-size: var(--t-md); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
  .site-footer { padding: var(--s-7) 0 var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* FLBL-006 cleanup complete: vertical/team/city/note form fields removed.
   Deprecated selectors marked above: .lf-row, .lf-opt, .lf-honey, .lf-field select,
   .lf-field textarea (specific rules). Form is now name + email + phone only. */

/* ============ FLBL-004: CUSTOMERS section (social proof) ============ */
.section-customers {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.customers-grid {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.customer-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: transform .2s, box-shadow .2s;
}
.customer-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.customer-vertical {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-1);
}
.customer-city {
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.customer-result {
  font-size: var(--t-sm);
  color: var(--primary);
  font-weight: 700;
  margin-top: var(--s-2);
}
@media (max-width: 980px) {
  .customers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .customers-grid { grid-template-columns: 1fr; }
}

/* ============ FLBL-004: FAQ section ============ */
.section-faq { background: var(--bg); }
.faq-wrap { max-width: var(--max-w-narrow); }
.faq-list {
  padding: 0;
  margin: var(--s-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  cursor: pointer;
  font: 700 var(--t-base)/1.4 inherit;
  color: var(--ink-1);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: var(--t-lg);
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
details[open] > .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 var(--s-5);
}
.faq-a p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.7;
}
.faq-a a { color: var(--primary); }
.faq-q:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* === lang-switcher (FLBL-003.a) === */
.lang-switcher { display:flex; align-items:center; gap:4px; font-size:var(--t-xs,0.75rem); font-weight:600; letter-spacing:.04em; }
.lang-link { color:var(--ink-2,#9a9a9a); text-decoration:none; padding:2px 4px; border-radius:4px; transition:color .15s; }
.lang-link:hover { color:var(--ink-1,#e8e8e8); }
.lang-link--active { color:var(--ink-0,#fff); }
.lang-sep { color:var(--ink-3,#555); font-weight:400; }
@media (max-width:767px) { .header-cta .lang-switcher { display:none; } }

/* === locale-specific typography (FLBL-003.c) === */
/* Kazakh: long compound words need soft breaking and hyphenation */
:lang(kk) .killer-grid h4 { word-break: break-word; hyphens: auto; }
:lang(kk) .section-title { word-break: break-word; hyphens: auto; }
:lang(kk) .card-title { word-break: break-word; hyphens: auto; }

/* English: titles can be longer than RU; allow overflow-safe breaking */
:lang(en) .killer-grid h4 { word-break: break-word; hyphens: auto; }
:lang(en) .section-title { word-break: break-word; hyphens: auto; }
