/* ─── Self-hosted fonts (no third-party requests) ────────────────────── */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-soft:   #eef2ff;
  --accent:         #06b6d4;
  --ink:            #101828;
  --ink-soft:       #344054;
  --muted:          #667085;
  --line:           #e4e7ec;
  --surface:        #ffffff;
  --surface-soft:   #f8fafc;
  --radius-card:    14px;
  --font-body:      Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display:   "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font: 15px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3 {
  line-height: 1.25;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
a { text-decoration: none; }

/* ─── Layout ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-primary.btn-lg {
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--primary-dark); }

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo { height: 84px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); font-weight: 600; }

/* ─── Pricing ────────────────────────────────────────────────────────── */
.pricing-hero {
  background: linear-gradient(160deg, #f0f3ff 0%, #fafafe 55%, #ecfeff 100%);
  padding: 72px 0 64px;
  text-align: center;
}
.pricing-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.pricing-hero p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.pricing-toggle strong { color: var(--primary); }

.pricing-section { padding: 64px 0 88px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 36px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pricing-card:hover { box-shadow: 0 8px 32px rgba(79,70,229,0.09); }

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(79,70,229,0.12);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 22px; font-weight: 700; vertical-align: super; }
.pricing-price span { font-size: 15px; font-weight: 500; color: var(--muted); }

.pricing-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 36px;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pricing-cta.primary { background: var(--primary); color: #fff; }
.pricing-cta.primary:hover { background: var(--primary-dark); }
.pricing-cta.outline { border: 1.5px solid var(--line); color: var(--ink-soft); }
.pricing-cta.outline:hover { border-color: var(--primary); color: var(--primary); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.pricing-features li svg { flex-shrink: 0; margin-top: 1px; color: var(--primary); }
.pricing-features li.muted { color: var(--muted); }
.pricing-features li.muted svg { color: var(--line); }

.pricing-divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.pricing-faq { padding: 0 0 88px; }
.pricing-faq h2 { font-size: 24px; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 40px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; max-width: 860px; margin: 0 auto; }
.faq-item h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── Comparison page ────────────────────────────────────────────────── */
.compare-hero {
  background: linear-gradient(160deg, #f0f3ff 0%, #fafafe 55%, #ecfeff 100%);
  padding: 72px 0 64px;
  text-align: center;
}
.compare-hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.compare-hero p { font-size: 17px; color: var(--muted); max-width: 580px; margin: 0 auto; }

.compare-section { padding: 72px 0; }
.compare-section + .compare-section { padding-top: 0; }

.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-soft);
}
.compare-table thead th:first-child { border-radius: 8px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 8px 0 0; }
.compare-table td:first-child { color: var(--ink-soft); font-weight: 500; }
.compare-table td.yes { color: #059669; font-weight: 600; }
.compare-table td.no { color: #9ca3af; }
.compare-table td.annotix-col { background: #fafafe; font-weight: 600; color: var(--primary); }
.compare-table tr:last-child td { border-bottom: none; }

.win-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.win-card {
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-card);
  padding: 24px;
}
.win-card h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.win-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.65; }

/* ─── Hero (Live Canvas) ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  background-color: #fbfbff;
  /* dotted "design canvas" — the ownable annotix motif */
  background-image: radial-gradient(rgba(79, 70, 229, 0.10) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}

/* atmospheric depth: soft indigo + cyan light blooms */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 320px at 18% 8%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(460px 360px at 92% 78%, rgba(6, 182, 212, 0.14), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px 6px 11px;
  border-radius: 100px;
  border: 1px solid #c7d2fe;
  backdrop-filter: blur(4px);
  margin-bottom: 26px;
  animation: heroRise 0.6s 0.02s both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  animation: dotPulse 2.4s ease-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-line { display: block; animation: heroRise 0.6s both; }
.hero-line:nth-child(1) { animation-delay: 0.08s; }
.hero-line:nth-child(2) { animation-delay: 0.16s; }

.hero-line-accent {
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 0 32px;
  animation: heroRise 0.6s 0.24s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroRise 0.6s 0.32s both;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  animation: heroRise 0.6s 0.4s both;
}

/* ── Live canvas stage: the product, tilted for depth ─────────────────── */
.hero-stage {
  position: relative;
  perspective: 1400px;
  animation: heroRise 0.7s 0.2s both;
}

.mock-browser {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 70px -24px rgba(16, 24, 40, 0.32), 0 8px 24px -12px rgba(79, 70, 229, 0.18);
  overflow: visible;
  transform: rotateY(-9deg) rotateX(3deg) rotate(0.5deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-stage:hover .mock-browser { transform: rotateY(-4deg) rotateX(1.5deg); }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 14px 14px 0 0;
}

.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0e3ea; }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-url {
  margin-left: 10px;
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}

.mock-page {
  position: relative;
  padding: 22px 24px 30px;
  border-radius: 0 0 14px 14px;
  min-height: 250px;
  background:
    radial-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px) 0 0 / 16px 16px;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.mock-logo { width: 56px; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.mock-navlinks { display: flex; gap: 8px; }
.mock-navlinks i { width: 26px; height: 7px; border-radius: 4px; background: #e7eaf0; }

.mock-h { width: 70%; height: 20px; border-radius: 6px; background: #d7dbe4; margin-bottom: 16px; }
.mock-line { height: 9px; border-radius: 5px; background: #e7eaf0; margin-bottom: 10px; }
.mock-line.w-90 { width: 90%; }
.mock-line.w-75 { width: 78%; }

/* the pinned target line shows real (faint) copy + a highlight */
.mock-line-target {
  height: auto;
  background: rgba(6, 182, 212, 0.10);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.35);
  color: #5b6472;
  font-size: 12px;
  padding: 4px 8px;
  width: 78%;
}

.mock-cta {
  margin-top: 16px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #5b53e8, var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: default;
}

/* ── Pins ─────────────────────────────────────────────────────────────── */
.pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 2px;
  background: linear-gradient(150deg, #22d3ee, var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(6, 182, 212, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.9);
  transform: rotate(-2deg);
  animation: pinDrop 0.6s both;
}

.pin::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.45);
  animation: pinRing 2.6s ease-out infinite;
}

.pin-1 { top: 96px; left: 38%; animation-delay: 0.6s; }
.pin-2 { bottom: 34px; left: 22px; animation-delay: 0.78s; }
.pin-2::after { animation-delay: 0.5s; }

.pin-card {
  position: absolute;
  top: 118px;
  right: -28px;
  width: 216px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 18px 40px -14px rgba(16, 24, 40, 0.3);
  padding: 12px 13px;
  display: grid;
  gap: 9px;
  animation: cardIn 0.6s 0.95s both, floatY 6s 1.6s ease-in-out infinite;
}

.pin-card-head { display: flex; align-items: flex-start; gap: 8px; }

.pin-card-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 2px;
  background: linear-gradient(150deg, #22d3ee, var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-card-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.pin-card-meta { display: flex; gap: 6px; padding-left: 28px; }

.pin-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 100px;
}
.pin-chip-high { background: #fef3c7; color: #92400e; }
.pin-chip-type { background: var(--primary-soft); color: var(--primary-dark); }

/* ── Hero animations ──────────────────────────────────────────────────── */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pinDrop {
  0%   { opacity: 0; transform: translateY(-22px) scale(0.4) rotate(-2deg); }
  60%  { opacity: 1; transform: translateY(3px) scale(1.12) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-2deg); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pinRing {
  0%   { box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.5); opacity: 1; }
  70%  { box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); opacity: 0; }
  100% { box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); opacity: 0; }
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ─── Section shared ─────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

/* ─── Features ───────────────────────────────────────────────────────── */
.features {
  padding: 96px 0;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 28px 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── How it works (animated Live Canvas) ────────────────────────────── */
.how {
  position: relative;
  padding: 96px 0;
  background-color: var(--surface-soft);
  background-image: radial-gradient(rgba(79, 70, 229, 0.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow { max-width: 920px; margin: 0 auto; }

/* ── Scene: two labelled, overlapping windows (frontend + backend) ────── */
.flow-scene {
  position: relative;
  height: 332px;
  margin: 6px auto 0;
}

.flow-win { position: absolute; margin: 0; }
/* the active window comes to the front: frontend for steps 1-2, backend for step 3 */
.flow-win-site { left: 0;  top: 46px; width: 53%; z-index: 3; animation: flowZSite 12s ease-in-out infinite; }
.flow-win-app  { right: 0; top: 0;   width: 55%; z-index: 1; animation: flowZApp 12s ease-in-out infinite; }

/* window labels make the two sides explicit */
.flow-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.flow-tag-k {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  color: #fff;
}
.flow-tag-k-site { background: linear-gradient(120deg, #22d3ee, var(--accent)); }
.flow-tag-k-app  { background: linear-gradient(120deg, var(--primary), #6366f1); }

.flow-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 55px -30px rgba(16, 24, 40, 0.3), 0 6px 18px -12px rgba(79, 70, 229, 0.14);
  overflow: hidden;
  animation: flowWinIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.flow-win-app .flow-frame {
  animation-delay: 0.12s;
  box-shadow: 0 30px 70px -26px rgba(16, 24, 40, 0.38), 0 8px 22px -12px rgba(79, 70, 229, 0.2);
}

.flow-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.flow-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0e3ea; }
.flow-dot:nth-child(1) { background: #ff5f57; }
.flow-dot:nth-child(2) { background: #febc2e; }
.flow-dot:nth-child(3) { background: #28c840; }

.flow-url {
  margin-left: 10px;
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}

/* "Extension connected" chip — always shown on the website window */
.flow-ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  padding: 3px 8px 3px 6px;
}
.flow-ext svg { color: var(--accent); }

.flow-page {
  position: relative;
  padding: 18px 18px 24px;
  min-height: 196px;
  background: radial-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px) 0 0 / 16px 16px;
}

.flow-pagenav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.flow-logo { width: 56px; height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.flow-navlinks { display: flex; gap: 8px; }
.flow-navlinks i { width: 26px; height: 7px; border-radius: 4px; background: #e7eaf0; }

.flow-h { width: 70%; height: 20px; border-radius: 6px; background: #d7dbe4; margin-bottom: 16px; }
.flow-line { height: 9px; border-radius: 5px; background: #e7eaf0; margin-bottom: 12px; }
.flow-line.w1 { width: 90%; }
.flow-line.w2 { width: 78%; }

.flow-target {
  height: auto;
  font-size: 12px;
  color: #5b6472;
  padding: 4px 8px;
  width: 78%;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px transparent;
  animation: flowTargetHi 12s ease-in-out infinite;
}

.flow-cta {
  margin-top: 16px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #5b53e8, var(--primary));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: default;
}

/* cursor that clicks the target (step 2) */
.flow-cursor {
  position: absolute;
  top: 118px;
  left: 118px;
  filter: drop-shadow(0 2px 3px rgba(16, 24, 40, 0.35));
  opacity: 0;
  animation: flowCursor 12s ease-in-out infinite;
}
.flow-cursor svg { display: block; }

/* pin on the website */
.flow-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 2px;
  background: linear-gradient(150deg, #22d3ee, var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(6, 182, 212, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.9);
  opacity: 0;
}
.flow-pin-1 { top: 102px; left: 36%; animation: flowPin 12s ease-in-out infinite; }

/* feedback note attached to the pin (on the website) */
.flow-note {
  position: absolute;
  top: 124px;
  left: 18px;
  width: 184px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 32px -14px rgba(16, 24, 40, 0.3);
  padding: 9px 10px;
  opacity: 0;
  animation: flowNote 12s ease-in-out infinite;
}
.flow-note-num {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 2px;
  background: linear-gradient(150deg, #22d3ee, var(--accent));
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-note-title { font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* connector: the pinned feedback becomes a task (frontend → backend) */
.flow-link {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 5px;
  animation: flowWinIn 0.7s 0.26s both;
}
.flow-link-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid #c7d2fe;
  padding: 4px 10px;
  border-radius: 100px;
  box-shadow: 0 8px 20px -8px rgba(16, 24, 40, 0.32);
  white-space: nowrap;
}
.flow-link-arrow { color: var(--primary); display: block; }
.flow-link-arrow path:first-child { animation: flowDash 0.9s linear infinite; }
.flow-link-travel { display: none; }

/* mini kanban board — lives inside the backend window */
.flow-board {
  padding: 16px 16px 18px;
  min-height: 196px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  align-content: start;
}
.flow-board-col { display: grid; gap: 7px; align-content: start; }
.flow-board-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.flow-board-dot { width: 6px; height: 6px; border-radius: 50%; }
.d-open { background: var(--primary); }
.d-prog { background: #f79009; }
.d-done { background: #12b76a; }

.flow-mini {
  height: 32px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 2px solid #cbd5e1;
}
.flow-mini-done {
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid #12b76a;
  box-shadow: 0 6px 16px -8px rgba(16, 24, 40, 0.25);
  padding: 7px 8px;
  display: grid;
  gap: 7px;
  opacity: 0;
  animation: flowBoardCard 12s ease-in-out infinite;
}
.flow-mini-title { font-size: 10px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.flow-mini-foot { display: flex; align-items: center; justify-content: space-between; }
.flow-mini-av {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-mini-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: #dcfce7; color: #166534;
  display: flex; align-items: center; justify-content: center;
}

/* ── Step legend (3-up row, highlights in sync) ───────────────────────── */
.flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 46px auto 0;
}
.flow-step {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  opacity: 0.5;
}
.flow-step-1 { animation: flowStepOn 12s ease-in-out infinite; }
.flow-step-2 { animation: flowStepOn 12s ease-in-out 4s infinite; }
.flow-step-3 { animation: flowStepOn 12s ease-in-out 8s infinite; }

.flow-step-num {
  width: 40px; height: 40px;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--primary), #6366f1);
  color: #fff; font-size: 18px; font-weight: 800;
  font-family: var(--font-display);
}
.flow-step h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.flow-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── Keyframes ────────────────────────────────────────────────────────── */
/* one-time window/connector entrance */
@keyframes flowWinIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
/* the action loop (12s) on top of the persistent two-window diagram */
@keyframes flowTargetHi {
  0%, 36%   { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
  42%, 92%  { background: rgba(6, 182, 212, 0.10); box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.4); }
  96%, 100% { background: transparent; box-shadow: inset 0 0 0 1px transparent; }
}
@keyframes flowCursor {
  0%, 28%  { opacity: 0; transform: translate(110px, 70px); }
  31%      { opacity: 1; transform: translate(110px, 70px); }
  39%      { opacity: 1; transform: translate(0, 0); }
  41%      { opacity: 1; transform: translate(0, 0) scale(0.82); }       /* click */
  43%      { opacity: 1; transform: translate(0, 0) scale(1); }
  49%      { opacity: 0; transform: translate(30px, 22px); }
  100%     { opacity: 0; transform: translate(110px, 70px); }
}
@keyframes flowPin {
  0%, 40%  { opacity: 0; transform: translateY(-18px) scale(0.4); }
  46%      { opacity: 1; transform: translateY(2px) scale(1.12); }
  50%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(-5px) scale(0.7); }
}
@keyframes flowNote {
  0%, 44%  { opacity: 0; transform: translateY(10px) scale(0.96); }
  50%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(6px) scale(0.97); }
}
@keyframes flowBoardCard {
  0%, 68%   { opacity: 0; transform: translateY(-9px) scale(0.9); }
  74%       { opacity: 1; transform: translateY(2px) scale(1.04); }
  80%, 92%  { opacity: 1; transform: translateY(0) scale(1); }
  96%, 100% { opacity: 0; transform: translateY(-5px) scale(0.95); }
}
@keyframes flowDash { to { stroke-dashoffset: -16; } }
/* swap which window is in front (z-index) + a subtle scale to emphasise focus */
@keyframes flowZSite {
  0%, 61%  { z-index: 3; transform: scale(1); }
  67%, 95% { z-index: 1; transform: scale(0.972); }
  100%     { z-index: 3; transform: scale(1); }
}
@keyframes flowZApp {
  0%, 61%  { z-index: 1; transform: scale(0.972); }
  67%, 95% { z-index: 3; transform: scale(1); }
  100%     { z-index: 1; transform: scale(0.972); }
}
@keyframes flowStepOn {
  0%, 4%    { opacity: 0.5; border-color: transparent; background: transparent; }
  8%, 28%   { opacity: 1; border-color: #c7d2fe; background: rgba(255, 255, 255, 0.7); }
  33%, 100% { opacity: 0.5; border-color: transparent; background: transparent; }
}

/* ─── Use cases ──────────────────────────────────────────────────────── */
.usecases {
  padding: 96px 0;
  background: var(--surface);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.usecase-card {
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.usecase-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 48%, #0891b2 100%);
  padding: 100px 0;
  text-align: center;
}

/* dotted canvas echo + a giant ghost pin mark for brand continuity */
.cta-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 35%, transparent 75%);
          mask-image: radial-gradient(120% 120% at 50% 40%, #000 35%, transparent 75%);
}

.cta-pin {
  position: absolute;
  top: 8%;
  right: 7%;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 0.7;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.cta .btn-primary:hover {
  background: var(--primary-soft);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.footer-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-link:hover { color: #fff; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
/* stack the live-canvas hero on tablet/down */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 600px;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .mock-browser {
    margin: 0 auto;
    transform: none;
  }
  .hero-stage:hover .mock-browser { transform: none; }
  /* keep the floating card inside the frame once centered */
  .pin-card { right: 0; }

  /* stack the two-window "how it works" scene */
  .flow-scene {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 440px;
    margin: 0 auto;
  }
  .flow-win, .flow-win-site, .flow-win-app { position: static; width: 100%; top: auto; }
  .flow-link { position: static; transform: none; animation: none; padding: 2px 0; }
  .flow-link-arrow { transform: rotate(90deg); }
  .flow-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; max-width: 460px; }
}

@media (max-width: 640px) {
  /* compact nav so logo + links + sign-in fit one row */
  .nav-inner { height: 60px; }
  .nav-logo { height: 40px; }
  .nav-links { gap: 0; }
  .nav-link { font-size: 13px; padding: 6px 9px; }
  .btn-nav { font-size: 12px; padding: 7px 13px; }

  .hero { padding: 64px 0 56px; }
  .features, .how, .usecases, .cta { padding: 64px 0; }
  .footer-inner { justify-content: center; text-align: center; }
  .cta-pin { font-size: 130px; }
  .pin-card { width: 188px; }
}

@media (max-width: 380px) {
  /* avoid the floating card spilling on very narrow screens */
  .pin-card { right: -8px; top: 104px; }
}
