/* Integra Flow marketing site — shared design tokens & components.
   Deliberately distinct from the internal app (public/*.html): dark hero,
   card-based sections, blue/teal accent instead of the app's utilitarian
   white/orange panel look. */

:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --paper: #ffffff;
  --bg: #f8fafc;
  --bg-tint: #eef2ff;
  --line: #e2e8f0;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --teal: #14b8a6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, 0.35);
  --container: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.16); }
.btn-block { width: 100%; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand .mark { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-login {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.nav-login:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-cta { display: none; }
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(20, 184, 166, 0.25), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 5.5rem 0 6rem;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero-brand .mark { width: 30px; height: 30px; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; max-width: 42ch; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.6rem; }
.hero-stats div b { display: block; font-size: 1.5rem; color: #fff; }
.hero-stats div span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Page header (non-home pages) */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0 3.2rem;
}
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255, 255, 255, 0.68); max-width: 60ch; font-size: 1.05rem; }

/* Sections */
section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.bg-tint { background: var(--bg); }

/* Problem / fragmentation block */
.fragment-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.fragment-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.fragment-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.fragment-arrow { color: var(--muted); font-size: 1.4rem; }
.solution-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-lg);
}
.solution-card .mark { width: 34px; height: 34px; flex-shrink: 0; }
.solution-card strong { display: block; font-size: 1.05rem; }
.solution-card span { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.compare .col {
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
}
.compare .col.bad { background: #fff; }
.compare .col.good { background: var(--ink); color: #fff; border-color: var(--ink); }
.compare .col.good p { color: rgba(255, 255, 255, 0.7); }
.compare h4 { margin: 0 0 1rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.compare li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.compare li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compare .bad li svg { color: #ef4444; }
.compare .good li svg { color: var(--teal); }

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

/* Feature grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { margin: 0; font-size: 0.93rem; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 3.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.65); margin: 0; }

/* Product page: alternating feature rows */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.showcase:not(:last-child) { margin-bottom: 5rem; }
.showcase.reverse .art { order: 2; }
.showcase .copy .eyebrow { margin-bottom: 0.7rem; }
.showcase ul.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.showcase ul.checklist li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.showcase ul.checklist svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 880px) {
  .showcase, .showcase.reverse { grid-template-columns: 1fr; }
  .showcase.reverse .art { order: 0; }
}

/* CSS "screenshot" mockups (no real screenshots available — illustrative only) */
.mockup {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup-body { padding: 1.1rem; }

/* mockup: player with timeline + comment markers */
.mockup-player .screen {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 10px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.mockup-player .screen svg { width: 46px; height: 46px; color: rgba(255, 255, 255, 0.75); }
.mockup-timeline { position: relative; height: 8px; background: var(--line); border-radius: 4px; margin-bottom: 0.9rem; }
.mockup-timeline i { position: absolute; top: 0; left: 0; height: 100%; width: 38%; background: var(--accent); border-radius: 4px; }
.mockup-timeline b { position: absolute; top: -4px; width: 8px; height: 16px; background: var(--teal); border-radius: 2px; transform: translateX(-50%); }
.mockup-comment { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; }
.mockup-comment:first-of-type { border-top: none; }
.mockup-comment .tc { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
.mockup-comment .who { color: var(--muted); }

/* mockup: uploads / storage list */
.mockup-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.mockup-row:last-child { border-bottom: none; }
.mockup-row .thumb { width: 46px; height: 30px; border-radius: 6px; background: var(--bg-tint); flex-shrink: 0; }
.mockup-row .fill { flex: 1; }
.mockup-row .bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.mockup-row .bar i { display: block; height: 100%; background: var(--teal); }
.mockup-row .status { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.status-ready { background: #dcfce7; color: #15803d; }
.status-uploading { background: #fef9c3; color: #a16207; }

/* mockup: CRM table */
.mockup-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.mockup-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 0.4rem 0.3rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
.mockup-table td { padding: 0.55rem 0.3rem; border-bottom: 1px solid var(--line); }
.mockup-table tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--bg-tint); color: var(--accent-dark); }

/* mockup: margin stat cards */
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.mockup-stats .stat { background: var(--bg); border-radius: 10px; padding: 0.8rem; text-align: center; }
.mockup-stats .stat b { display: block; font-size: 1.15rem; color: var(--ink); }
.mockup-stats .stat span { font-size: 0.72rem; color: var(--muted); }
.mockup-role { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.mockup-role span { font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mockup-role span.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
@media (max-width: 940px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  position: relative;
}
.plan.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}
.plan.featured p, .plan.featured .plan-note { color: rgba(255, 255, 255, 0.65); }
.plan.featured .plan-list li { color: rgba(255, 255, 255, 0.9); }
.plan.featured .plan-list svg { color: var(--teal); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #06251f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.plan-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.3rem; }
.plan-audience { font-size: 0.88rem; margin-bottom: 1.3rem; }
.plan.featured .plan-audience { color: rgba(255, 255, 255, 0.55); }
.plan-price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 1.5rem; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; }
.plan-price .period { font-size: 0.9rem; color: var(--muted); }
.plan.featured .plan-price .period { color: rgba(255, 255, 255, 0.55); }
.plan-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.plan-list li { display: flex; gap: 0.55rem; font-size: 0.92rem; }
.plan-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.plan-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 3rem; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq p { margin: 0.7rem 0 0; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  align-items: flex-start;
  gap: 0.8rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; color: #059669; }

.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info .item { display: flex; gap: 0.9rem; }
.contact-info .icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--bg-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info .icon svg { width: 20px; height: 20px; }
.contact-info h4 { margin: 0 0 0.2rem; font-size: 0.95rem; }
.contact-info p { margin: 0; font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2.2rem;
  margin-top: 2rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; }
.footer-brand .mark { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 0.8rem; width: 100%; margin-top: 1.6rem; color: rgba(255, 255, 255, 0.35); }
