/* ============================================================
   Repleni Labs — repleni.app
   Black / White / Blue · Cluely-inspired aesthetic
   ============================================================ */

:root {
  --ink: #0a0c10;
  --ink-soft: #3d4451;
  --muted: #6b7280;
  --paper: #ffffff;
  --paper-tint: #f6f8fc;
  --line: #e7eaf1;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-tint: #eef4ff;
  --blue-glow: rgba(37, 99, 235, 0.35);
  --radius: 20px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-brand: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
}

/* Anchored sections shouldn't scroll under the fixed header */
[id] {
  scroll-margin-top: 96px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 780px;
}

/* ---------- Typography ---------- */

h1,
h2,
h3.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.9rem, 7.2vw, 5.4rem);
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

.serif-italic {
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
}

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 8px 24px -8px var(--blue-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 14px 32px -8px var(--blue-glow);
}

.btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(10, 12, 16, 0.05);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: #cdd6e4;
  box-shadow: 0 8px 20px -10px rgba(10, 12, 16, 0.2);
}

.btn--dark-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--dark-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand img {
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: right 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hidden everywhere by default; becomes the dropdown panel on small screens */
.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 176px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(700px 420px at 85% 10%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(700px 420px at 12% 14%, rgba(29, 78, 216, 0.07), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  max-width: 880px;
  margin-inline: auto;
}

.hero-divider {
  width: 220px;
  height: 1px;
  margin: 34px auto;
  background: linear-gradient(90deg, transparent, #b9c6de, transparent);
}

.hero .lede {
  max-width: 620px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* ---------- App window mock ---------- */

.window-wrap {
  position: relative;
  max-width: 860px;
  margin: 84px auto 0;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.flow-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
}

.flow-step,
/* ---------- Sections ---------- */

.section {
  padding: 110px 0;
}

.section--tint {
  background: var(--paper-tint);
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-inline: auto;
}

.section-head .lede {
  margin-top: 18px;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 48px -24px rgba(29, 78, 216, 0.25);
}

.product-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -8px var(--blue-glow);
}

.product-card .product-kind {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.product-card h3 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.product-card .card-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: transform 0.2s ease, color 0.2s ease;
}

.product-card:hover .card-link {
  transform: translateX(4px);
  color: var(--blue-deep);
}

/* ---------- Beliefs ---------- */

.beliefs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.belief .belief-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.12em;
}

.belief h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 14px 0 12px;
}

.belief p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Trailer ---------- */

.trailer-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(29, 78, 216, 0.35);
}

.trailer-frame--big {
  max-width: 1060px;
  border-radius: 26px;
  box-shadow: 0 40px 100px -30px rgba(29, 78, 216, 0.45);
}

.trailer-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trailer-overlay:hover .trailer-soon {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 26px;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 12, 16, 0.65));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ---------- Tech marquee ---------- */

.marquee-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  animation: marquee 32s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.tech-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #9aa5b5;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.tech-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 130px 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 50% -10%, rgba(59, 130, 246, 0.4), transparent 70%),
    radial-gradient(520px 300px at 85% 110%, rgba(29, 78, 216, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  text-align: center;
}

.cta-band h2 {
  max-width: 700px;
  margin-inline: auto;
}

.cta-band .lede {
  color: rgba(255, 255, 255, 0.72);
  margin: 22px auto 0;
}

.cta-band .hero-actions {
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 84px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 72px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-col a,
.footer-col li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  padding: 168px 0 72px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 420px at 50% -10%, rgba(59, 130, 246, 0.14), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero .lede {
  margin-top: 22px;
}

/* ---------- Product feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 84px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row:nth-child(even) .feature-visual {
  order: -1;
}

.feature-copy .product-kind {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.feature-copy h2 {
  margin: 14px 0 18px;
}

.feature-copy p {
  color: var(--ink-soft);
}

.feature-copy ul {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.feature-copy li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
}

.feature-visual {
  position: relative;
}

/* demo cards inside feature visuals */

.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 26px 60px -30px rgba(29, 78, 216, 0.28);
  overflow: hidden;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f6f8fc);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.demo-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e3e8f0;
}

.demo-body {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.chat-msg {
  max-width: 82%;
  padding: 12px 15px;
  border-radius: 15px;
  font-size: 0.87rem;
  line-height: 1.5;
}

.chat-msg--user {
  margin-left: auto;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue-deep));
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat-msg--ai {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink-soft);
}

.chat-msg--ai strong {
  color: var(--ink);
}

/* ---------- Services ---------- */

.service-list {
  display: grid;
  gap: 22px;
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 48px -24px rgba(29, 78, 216, 0.22);
}

.service-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: #c3cede;
  line-height: 1;
}

.service-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.service-item p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 560px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.service-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 5px 12px;
  border-radius: 999px;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.process-step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.process-step .step-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.87rem;
  color: var(--ink-soft);
}

/* ---------- About ---------- */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.about-story .story-copy p + p {
  margin-top: 18px;
}

.about-story .story-copy p {
  color: var(--ink-soft);
}

.mission-card {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  align-self: start;
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 260px at 80% -10%, rgba(59, 130, 246, 0.45), transparent 70%);
}

.mission-card > * {
  position: relative;
}

.mission-card .eyebrow {
  color: #8db1ff;
}

.mission-card p {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.3;
}

.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.leader-card {
  padding: 38px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.leader-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-bottom: 22px;
}

img.leader-avatar {
  object-fit: cover;
  object-position: center top;
  background: none;
  box-shadow: 0 10px 24px -12px rgba(29, 78, 216, 0.35);
}

.leader-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.leader-card .leader-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin: 4px 0 14px;
}

.leader-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fact {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.fact .fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.fact .fact-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

/* ---------- Blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 48px -24px rgba(29, 78, 216, 0.22);
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.post-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.post-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.mini-avatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

span.mini-avatar {
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
}

.post-card--featured {
  grid-column: 1 / -1;
  padding: 46px 42px;
}

.post-card--featured h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 640px;
}

.post-card--featured p {
  max-width: 560px;
  font-size: 1rem;
}

/* Article pages */

.post-hero {
  padding: 168px 0 40px;
}

.post-hero .post-tag {
  display: block;
  margin-bottom: 16px;
}

.post-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 800px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.post-byline .leader-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0;
  font-size: 0.9rem;
}

.post-byline .byline-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.post-byline .byline-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.prose {
  max-width: 720px;
}

.prose p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.8;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 20px;
}

.prose h2 {
  font-size: 1.75rem;
  margin: 46px 0 16px;
}

.prose strong {
  color: var(--ink);
}

.prose ul {
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
  display: grid;
  gap: 8px;
}

.prose ul li::marker {
  color: var(--blue);
}

.prose pre {
  background: var(--ink);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
}

.prose pre code {
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 1.65;
  color: #d7e1f0;
  background: none;
  padding: 0;
}

.prose p code {
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--blue-tint);
  color: var(--blue-deep);
  padding: 2px 7px;
  border-radius: 6px;
}

.post-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-tint);
}

.post-footer-cta p {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Help center / FAQ ---------- */

.help-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 80px;
}

.faq-group {
  max-width: 780px;
  margin-inline: auto;
}

.faq-group + .faq-group {
  margin-top: 64px;
}

.faq-group > h2 {
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 34px -22px rgba(29, 78, 216, 0.3);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 660px;
}

/* ---------- Product matcher ---------- */

.match-list {
  max-width: 860px;
  margin-inline: auto;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.match-row + .match-row {
  margin-top: 12px;
}

.match-row:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 30px -20px rgba(29, 78, 216, 0.3);
}

.match-row .match-pain {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.match-row .match-product {
  flex: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  white-space: nowrap;
}

/* ---------- Expectation checklist ---------- */

/* ---------- Social links ---------- */

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.18);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-info p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-line:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-line .flow-icon {
  width: 38px;
  height: 38px;
}

.contact-line strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 38px;
  box-shadow: 0 30px 70px -40px rgba(29, 78, 216, 0.25);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-tint);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation-play-state: paused;
  }
}

/* ---------- Responsive ---------- */

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

  .feature-row {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 0;
  }

  .feature-row:nth-child(even) .feature-visual {
    order: 0;
  }

  .about-story,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .facts-grid,
  .process-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .beliefs {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-topics {
    grid-template-columns: 1fr;
  }

  }

@media (max-width: 820px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 30px;
    display: none;
    z-index: 99;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu ul {
    list-style: none;
    display: grid;
    gap: 4px;
  }

  .mobile-menu a {
    display: block;
    padding: 13px 6px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a.active {
    color: var(--blue);
  }

  .mobile-menu a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
    padding: 15px 26px;
    border-bottom: none;
  }

  body.menu-open .menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 140px;
  }

  .section {
    padding: 76px 0;
  }

  .product-grid,
  .leader-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card--featured {
    padding: 32px 30px;
  }

  .facts-grid,
  .process-strip {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 26px;
  }

  .match-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

    .window-wrap {
    margin-top: 56px;
  }
}

/* ---------- Product preview animations ---------- */

.reveal .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.reveal.visible .draw {
  animation: drawline 1.4s ease 0.2s forwards;
}

@keyframes drawline {
  to { stroke-dashoffset: 0; }
}

.reveal .fcast {
  opacity: 0;
}

.reveal.visible .fcast {
  animation: previewfade 0.8s ease 1.5s forwards;
}

@keyframes previewfade {
  to { opacity: 1; }
}

.chat-anim-ready .chat-msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.chat-anim-ready .chat-msg.shown {
  opacity: 1;
  transform: none;
}

/* ---------- Docs contract preview ---------- */

.doc-paper {
  position: relative;
  margin: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.73rem;
  line-height: 1.65;
  color: var(--ink-soft);
  box-shadow: 0 12px 30px -18px rgba(10, 12, 16, 0.2);
  overflow: hidden;
}

.doc-paper .dp-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin-bottom: 12px;
}

.doc-paper p + p {
  margin-top: 8px;
}

.doc-paper strong {
  color: var(--ink);
}

.doc-paper mark {
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 1px 3px;
  transition: background 0.4s ease, color 0.4s ease;
}

.doc-paper mark.lit {
  background: rgba(37, 99, 235, 0.14);
  color: var(--blue-deep);
  font-weight: 600;
}

.dp-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.09), transparent);
  animation: dp-sweep 5.6s linear infinite;
  pointer-events: none;
}

@keyframes dp-sweep {
  0% { transform: translateY(-60px); }
  100% { transform: translateY(340px); }
}

.dp-extract {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.dp-extract .chip {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dp-extract .chip.on {
  opacity: 1;
  transform: none;
}

.live-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 3px 9px;
  border-radius: 999px;
}

.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: status-pulse 2s ease-in-out infinite;
}

.visual-caption {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Sales points (contact) ---------- */
.sales-points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.sales-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sales-points li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
}

/* ---------- Custom video player ---------- */
.vid-sound {
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 12, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vid-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.vid-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-bright), var(--blue-deep));
  transition: width 0.2s linear;
}

/* ---------- Invoice preview lines ---------- */
.doc-paper table.inv-lines {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.inv-lines td {
  padding: 3px 0;
  border-bottom: 1px dashed #eef1f7;
  font-variant-numeric: tabular-nums;
}

.inv-lines td:last-child {
  text-align: right;
}

.inv-lines .inv-total td {
  border-bottom: none;
  font-weight: 700;
  color: var(--ink);
  padding-top: 6px;
}

/* ---------- iOS / mobile hardening ---------- */

html {
  -webkit-text-size-adjust: 100%;
}

a,
button,
.btn,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@supports (padding: max(0px)) {
  .site-header .container {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* Inputs at 16px on touch widths so iOS Safari doesn't zoom on focus */
@media (max-width: 820px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* The hidden attribute must always win, even over display rules */
[hidden] {
  display: none !important;
}

/* extraction chips (shared with previews) */
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip.info {
  color: var(--blue);
  background: var(--blue-tint);
}

.chip.ok {
  color: #15803d;
  background: #f0fdf4;
}

/* ---------- Video player controls ---------- */
.vid-ctrls {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  gap: 10px;
}

.vid-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 12, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vid-btn:hover {
  background: rgba(10, 12, 16, 0.75);
  transform: scale(1.06);
}

.trailer-frame:fullscreen {
  border-radius: 0;
  max-width: none;
  background: #000;
  border: none;
  box-shadow: none;
}

.trailer-frame:fullscreen video {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

/* ---------- Contact form error state ---------- */
.form-success.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
