/* ============================================================
   WPFeatureLoop — marketing site
   Foundation + Hero
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --cyan-400: #22d3ee;
  --violet:   #8b5cf6;
  --indigo:   #6366f1;
  --amber:    #f59e0b;
  --green:    #22c55e;

  /* neutrals */
  --ink:        #0b0d12;
  --slate-900:  #0f172a;
  --slate-800:  #1e293b;
  --slate-700:  #334155;
  --slate-600:  #475569;
  --slate-500:  #64748b;
  --slate-400:  #94a3b8;
  --slate-300:  #cbd5e1;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --slate-50:   #f8fafc;
  --canvas:     #fafafb;
  --white:      #ffffff;

  /* semantic */
  --text:        var(--ink);
  --text-muted:  var(--slate-500);
  --text-soft:   var(--slate-600);
  --border:      var(--slate-200);
  --bg:          var(--canvas);

  /* type */
  --font-display: "Clash Display", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* radii */
  --r-sm: 8px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .12);
  --shadow-float: 0 30px 60px -18px rgba(30, 41, 59, .28), 0 12px 24px -12px rgba(59, 130, 246, .18);
  --shadow-btn: 0 1px 2px rgba(15, 23, 42, .12), 0 8px 20px -8px rgba(37, 99, 235, .55);

  /* gradient accent */
  --grad: linear-gradient(100deg, var(--blue-500), var(--cyan-400));

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
strong { font-weight: 600; color: var(--text); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; flex: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 12px; --btn-px: 20px; --btn-fz: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--btn-fz);
  letter-spacing: -.01em;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.btn--sm { --btn-py: 9px; --btn-px: 16px; --btn-fz: 14px; }
.btn--lg { --btn-py: 15px; --btn-px: 26px; --btn-fz: 16px; }

.btn--primary {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  box-shadow: var(--shadow-btn);
  overflow: hidden;
}
.btn--primary::after { /* sheen */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15,23,42,.12), 0 16px 34px -10px rgba(37,99,235,.65);
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--slate-700);
  background: rgba(255,255,255,.6);
  border-color: var(--border);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--slate-300);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 250, 251, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; }
.nav__logo { width: 30px; height: 30px; }
.nav__wordmark { font-weight: 600; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }

.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--slate-100); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__signin { font-size: 15px; font-weight: 500; color: var(--slate-700); }
.nav__signin:hover { color: var(--ink); }

.nav__toggle { display: none; padding: 8px; border-radius: var(--r-sm); color: var(--ink); }
.nav__toggle .icon { width: 24px; height: 24px; }

.nav__mobile {
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px var(--gutter) 22px;
  background: rgba(250,250,251,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 4px; font-size: 17px; font-weight: 500; color: var(--slate-700); }
.nav__mobile .btn { margin-top: 8px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(32px, 7vw, 84px));
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* atmosphere: clean canvas + one soft glow behind the board */
.hero__visual::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -10%;
  background: radial-gradient(closest-side at 58% 46%, rgba(59,130,246,.15), rgba(34,211,238,.05) 55%, transparent 80%);
  filter: blur(6px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* ---- copy ---- */
.hero__copy { max-width: 580px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--ink);
  overflow-wrap: break-word;
}
.hero__title-accent { position: relative; display: inline-block; max-width: 100%; }
.hero__title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--slate-600);
  max-width: 53ch;
}
.hero__sub-lead { color: var(--ink); font-weight: 600; }

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__proof {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-600);
}
.hero__proof .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 2.6; }

.hero__trust {
  margin-top: clamp(48px, 8vw, 88px);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--slate-400);
}

/* ============================================================
   Living board mockup
   ============================================================ */
.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  perspective: 1400px;
}

/* orbit rings (loop motif) */
.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 124%; aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
}
.orbit__svg { width: 100%; height: 100%; overflow: visible; }
.orbit__svg circle {
  fill: none;
  stroke: rgba(59,130,246,.16);
  stroke-width: 1.4;
  stroke-dasharray: 2 9;
}
.orbit__spin {
  position: absolute; inset: 0;
  animation: spin 22s linear infinite;
}
.orbit__dot {
  position: absolute; top: 50%; left: calc(50% + 38.3%);
  width: 11px; height: 11px; border-radius: 50%;
  translate: -50% -50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 5px rgba(59,130,246,.16), 0 0 16px rgba(59,130,246,.6);
}

.board {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  padding: 22px 22px 24px;
  transform: rotate3d(1, 1, 0, 0deg);
  transition: transform .4s ease;
}
.board__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.board__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.board__subtitle { font-size: 13px; color: var(--slate-500); margin-top: 2px; }
.board__suggest {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(37,99,235,.6);
}
.board__suggest .icon { width: 15px; height: 15px; stroke-width: 2.6; }

.board__list { display: flex; flex-direction: column; gap: 12px; }

.fcard {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fcard:hover { border-color: var(--slate-300); box-shadow: var(--shadow-sm); }
.fcard--active { border-color: rgba(59,130,246,.45); box-shadow: 0 0 0 3px rgba(59,130,246,.08); }

.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: none;
  width: 40px;
  padding: 6px 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  background: var(--slate-50);
}
.vote__btn {
  display: grid; place-items: center;
  width: 26px; height: 22px;
  color: var(--slate-400);
  border-radius: 6px;
  transition: color .15s, background-color .15s;
}
.vote__btn .icon { width: 18px; height: 18px; }
.vote__btn--up { color: var(--blue-500); }
.vote__count { font-size: 14px; font-weight: 700; color: var(--slate-800); font-variant-numeric: tabular-nums; }
.fcard--active .vote { border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.07); }
.fcard--active .vote__count { color: var(--blue-600); }

.fcard__body { flex: 1; min-width: 0; }
.fcard__top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.fcard__title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.fcard__desc {
  margin-top: 3px;
  font-size: 13px; line-height: 1.5; color: var(--slate-500);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcard__meta {
  margin-top: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--slate-400);
}
.fcard__meta .icon { width: 14px; height: 14px; }

.pill {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 5px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--planned  { color: #b45309; background: #fef3c7; }
.pill--progress { color: #1d4ed8; background: #dbeafe; }
.pill--open     { color: #4338ca; background: #e0e7ff; }

/* the "+1" pop on the active card */
.vote-pop {
  position: absolute;
  left: 18px; top: 8px;
  font-size: 13px; font-weight: 800;
  color: var(--blue-600);
  opacity: 0;
  pointer-events: none;
}
.vote-pop.is-on { animation: pop 1s cubic-bezier(.2,.7,.3,1) forwards; }

/* floating chips */
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  font-size: 12.5px; font-weight: 600; color: var(--slate-700);
  animation: float 6s ease-in-out infinite;
}
.chip .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.chip--vote { top: -20px; left: -14px; color: var(--blue-600); }
.chip--vote .icon { color: var(--blue-500); }
.chip--ship { bottom: -18px; right: -14px; animation-delay: -3s; }
.chip--ship .icon { color: var(--green); }

/* demo cursor */
.cursor {
  position: absolute;
  z-index: 4;
  width: 26px; height: 26px;
  left: 12%; top: 38%;
  filter: drop-shadow(0 4px 6px rgba(15,23,42,.25));
  opacity: 0;
  pointer-events: none;
}
.cursor.is-anim { animation: cursorClick 2.6s ease-in-out .6s forwards; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}
@keyframes pop {
  0%   { opacity: 0; transform: translateY(4px) scale(.8); }
  30%  { opacity: 1; transform: translateY(-6px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(1); }
}
@keyframes cursorClick {
  0%   { opacity: 0; left: 12%; top: 40%; transform: scale(1); }
  22%  { opacity: 1; }
  55%  { opacity: 1; left: 13.5%; top: 26%; transform: scale(1); }
  64%  { transform: scale(.82); }       /* press */
  72%  { transform: scale(1); }
  100% { opacity: 0; left: 13.5%; top: 26%; transform: scale(1); }
}

/* ---- load reveal ---- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.is-ready .reveal { animation: reveal .7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.is-ready .reveal[data-reveal="1"] { animation-delay: .05s; }
.is-ready .reveal[data-reveal="2"] { animation-delay: .13s; }
.is-ready .reveal[data-reveal="3"] { animation-delay: .22s; }
.is-ready .reveal[data-reveal="4"] { animation-delay: .31s; }
.is-ready .reveal[data-reveal="5"] { animation-delay: .40s; }
.is-ready .reveal[data-reveal="6"] { animation-delay: .55s; }
.is-ready .reveal[data-reveal="board"] {
  animation: revealBoard .9s cubic-bezier(.2,.7,.3,1) .2s forwards;
}
@keyframes revealBoard {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 640px; margin-inline: auto; text-align: center; }
  .eyebrow, .hero__cta, .hero__proof { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__visual { max-width: 440px; margin-top: 4px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-menu-open { background: rgba(250,250,251,.96); backdrop-filter: blur(14px); }
  .chip--vote { left: -4px; }
  .chip--ship { right: -4px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.05rem, 9.6vw, 2.7rem); letter-spacing: -.025em; }
  .board { padding: 18px; }
  .fcard__desc { white-space: normal; }
  .chip { display: none; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .io { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Shared section primitives
   ============================================================ */
ol { list-style: none; padding: 0; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.section { padding: clamp(64px, 9vw, 122px) 0; position: relative; }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 15px;
}
.kicker--light { color: var(--blue-400); }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}
.section__title--light { color: #fff; }
.section__lead { margin-top: 18px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; color: var(--slate-600); }
.section__head .section__lead { max-width: 620px; margin-inline: auto; }

.section--dark {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  color: var(--slate-300);
  overflow: hidden;
  isolation: isolate;
}
.dark-glow {
  position: absolute; inset: -20% 0 auto 0; height: 150%; z-index: -1;
  background: radial-gradient(720px 420px at 50% 0%, rgba(59,130,246,.22), transparent 60%);
  pointer-events: none;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }

/* scroll reveal */
.js .io { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.io.in { opacity: 1; transform: none; }
.io-stagger > *:nth-child(2) { transition-delay: .07s; }
.io-stagger > *:nth-child(3) { transition-delay: .14s; }
.io-stagger > *:nth-child(4) { transition-delay: .21s; }
.io-stagger > *:nth-child(5) { transition-delay: .28s; }
.io-stagger > *:nth-child(6) { transition-delay: .35s; }

/* ============================================================
   Problem
   ============================================================ */
.problem__sources {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin: 0 auto clamp(36px, 5vw, 52px);
  max-width: 640px;
}
.src {
  padding: 8px 15px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--r-full);
  background: #fff;
  font-size: 13px; font-weight: 500; color: var(--slate-500);
}
.problem__sources .src:nth-child(odd) { transform: rotate(-1.5deg); }
.problem__sources .src:nth-child(even) { transform: rotate(1.5deg); }

.pcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.pcard__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--slate-100); color: var(--slate-500);
  margin-bottom: 16px;
}
.pcard__icon .icon { width: 22px; height: 22px; }
.pcard p { font-size: 15.5px; line-height: 1.55; color: var(--slate-600); }

/* ============================================================
   How it works (the loop)
   ============================================================ */
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); align-items: stretch; }
.how__step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 26px;
}
.how__num {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; letter-spacing: .02em;
  color: var(--blue-400);
  margin-bottom: 12px;
}
.how__title { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 8px; letter-spacing: -.01em; }
.how__text { font-size: 15px; line-height: 1.6; color: var(--slate-400); }

.code {
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0f1a;
}
.code__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.code__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code__bar em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--slate-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code__body {
  margin: 0; padding: 15px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.7;
  color: #e2e8f0; overflow-x: auto;
}
.t-c { color: #64748b; font-style: italic; }
.t-f { color: #60a5fa; }
.t-s { color: #34d399; }
.t-k { color: #c084fc; }

.how__code { max-width: 560px; margin: clamp(28px, 4vw, 40px) auto 0; }
.how__code-cap { text-align: center; font-size: 14px; color: var(--slate-400); margin-bottom: 14px; }

.how__loopline {
  margin-top: clamp(32px, 5vw, 48px);
  text-align: center;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: var(--slate-300);
}
.how__loopline strong { color: #fff; font-weight: 600; }

/* ============================================================
   Board showcase
   ============================================================ */
.showcase__inner {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.checklist { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--slate-600); }
.checklist .icon { width: 20px; height: 20px; color: var(--green); stroke-width: 2.6; flex: none; margin-top: 2px; }
.checklist strong { color: var(--ink); }

.window {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.window__dots i:nth-child(1) { background: #f87171; }
.window__dots i:nth-child(2) { background: #fbbf24; }
.window__dots i:nth-child(3) { background: #34d399; }
.window__url {
  font-size: 12.5px; color: var(--slate-500);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; border: 1px solid var(--slate-200);
  padding: 4px 14px; border-radius: var(--r-full);
}
.window__body { padding: 20px; background: linear-gradient(180deg, #fff, #fbfcfe); }
.board--flat { box-shadow: none; border: none; border-radius: 0; padding: 0; transform: none; }
.fcard--done { opacity: .72; }
.pill--done { color: #15803d; background: #dcfce7; }
.pill--done::before { content: none; }
.pill--done .icon { width: 12px; height: 12px; stroke-width: 3; }

/* ============================================================
   Results / benefits
   ============================================================ */
.bcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--slate-300); }
.bcard__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(59,130,246,.1); color: var(--blue-600);
  margin-bottom: 16px;
}
.bcard__icon .icon { width: 23px; height: 23px; }
.bcard__title { font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 7px; }
.bcard p { font-size: 15px; line-height: 1.55; color: var(--slate-600); }

/* ============================================================
   Built for devs
   ============================================================ */
.devs { background: var(--slate-50); }
.devs__cmd {
  margin: 22px auto 0;
  width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border-radius: var(--r-full);
  background: var(--ink); color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(12px, 2.6vw, 14px);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.devs__prompt { color: var(--blue-400); }
.devs__cmd::after {
  content: ""; width: 8px; height: 17px; flex: none;
  background: var(--blue-400); border-radius: 1px;
  animation: caret 1.1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.fcard-lite { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.fcard-lite p { font-size: 15px; line-height: 1.55; color: var(--slate-600); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 1000px; margin-inline: auto; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
}
.plan--featured {
  border: 2px solid var(--blue-500);
  box-shadow: 0 24px 50px -22px rgba(59,130,246,.45);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-btn);
}
.plan__badge .icon { width: 13px; height: 13px; fill: #fff; stroke: none; }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.plan__for { font-size: 13.5px; color: var(--slate-500); margin-top: 3px; }
.plan__price { margin: 16px 0 18px; display: flex; align-items: baseline; gap: 5px; }
.plan__amount { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -.02em; color: var(--ink); }
.plan__per { font-size: 15px; color: var(--slate-500); }
.plan__from { font-size: 14px; color: var(--slate-500); }
.plan__cta { width: 100%; margin-top: 22px; }
.plan__feats { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1 0 auto; }
.plan__feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--slate-600); }
.plan__feats .icon { width: 17px; height: 17px; color: var(--green); stroke-width: 2.6; flex: none; margin-top: 1px; }

.enterprise {
  margin: 20px auto 0;
  max-width: 1000px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, rgba(59,130,246,.07), rgba(34,211,238,.05));
}
.enterprise__text h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.enterprise__text p { margin-top: 5px; font-size: 15px; line-height: 1.5; color: var(--slate-600); max-width: 560px; }
.enterprise .btn { flex: none; }

.pricing__note { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--slate-500); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__inner { max-width: 820px; margin-inline: auto; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq__chev { width: 20px; height: 20px; color: var(--slate-400); transition: transform .3s, color .3s; flex: none; }
.faq__item.open .faq__chev { transform: rotate(180deg); color: var(--blue-500); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2,.7,.3,1); }
.faq__a > div { overflow: hidden; }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 4px 22px; font-size: 15.5px; line-height: 1.6; color: var(--slate-600); max-width: 64ch; }

/* ============================================================
   Final CTA
   ============================================================ */
.cta-final { text-align: center; }
.cta-final__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.cta-final__lead { margin: 18px auto 0; max-width: 540px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--slate-400); }
.cta-final__btns { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--ghost-dark { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.36); transform: translateY(-2px); }
.cta-final__micro { margin-top: 20px; font-size: 13.5px; color: var(--slate-500); }
.orbit--cta { width: min(620px, 92%); opacity: .55; }
.orbit--cta .orbit__svg circle { stroke: rgba(96,165,250,.2); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #0a111e; color: var(--slate-400); padding: clamp(48px, 7vw, 76px) 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2.4fr; gap: 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__tag { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--slate-500); max-width: 240px; }
.nav__wordmark--light { color: #fff; }
.footer__col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--slate-500); margin-bottom: 14px; }
.footer__col a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--slate-400); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--slate-500);
}

/* ============================================================
   Responsive (sections)
   ============================================================ */
@media (max-width: 860px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: 1fr; }
  .showcase__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .enterprise { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* devs typing caret respects reduced motion via global rule above;
   keep command visible if animations are off */
@media (prefers-reduced-motion: reduce) {
  .devs__cmd::after { display: none; }
}
