/* Direction D — warm neutral, blue accent, serif emphasis */
:root {
  --bg: #fbfaf7;
  --bg-2: #f4f1e8;
  --panel: #ffffff;
  --border: #e6e3d9;
  --border-2: #ddd9cc;
  --ink: #15171c;
  --ink-2: #2a2d35;
  --ink-3: #4a4e58;
  --muted: #8b8e97;
  --blue: #2f6bf5;
  --blue-ink: #1e3f99;
  --blue-soft: #eaf0ff;
  --ok: #1b9e6a;
  --accent-warm: #c07a3a;
  --shadow-lg: 0 30px 60px -24px rgba(21,23,28,0.20), 0 10px 24px -12px rgba(21,23,28,0.08);
  --shadow-md: 0 10px 24px -12px rgba(21,23,28,0.12);
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Tiempos Headline", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.serif { font-family: var(--serif); font-weight: 400; font-style: italic; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---- STRIP ---- */
.strip {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 20px;
  flex-wrap: wrap;
}
.strip-tag {
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
}
.strip-link {
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
}
.strip-link:hover { opacity: 1; }

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-item:hover { color: var(--ink); background: rgba(21,23,28,0.04); }
.nav-item-new {
  font-size: 9px;
  letter-spacing: 0.08em;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}
.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 8px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink-3); }
.btn-ghost:hover { color: var(--ink); background: rgba(21,23,28,0.04); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { background: #000; }
.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: var(--bg-2); }
.btn-lg { padding: 12px 20px; font-size: 14.5px; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-arrow { transition: transform .15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(47,107,245,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-top { max-width: 820px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 5px 12px 5px 10px;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 26px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,107,245,0.18);
}
.eyebrow-tag {
  background: var(--blue);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
}
.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-title-accent {
  color: var(--blue);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.5;
}
.hero-cta {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  display: flex;
  gap: 22px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-check { color: var(--ok); font-weight: 700; margin-right: 4px; }

/* ---- DEMO ---- */
.demo-wrap {
  max-width: 1140px;
  margin: 60px auto 0;
  position: relative;
}
.demo-shadow {
  position: absolute;
  inset: 40px 40px -20px 40px;
  background: radial-gradient(ellipse at center bottom, rgba(47,107,245,0.18) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.demo-label {
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.demo-label-kbd {
  color: var(--ink-3);
  font-weight: 500;
}

/* ---- INTEGRATIONS ---- */
.integrations {
  padding: 60px 0 30px;
  text-align: center;
}
.integrations-label {
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto 22px;
}
.integrations-label b { color: var(--ink); }
.integrations-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}
.int-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.int-pill.primary {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.int-pill-logo {
  width: 20px; height: 20px; border-radius: 5px;
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700;
}
.int-pill-note { color: var(--muted); font-weight: 400; font-size: 12px; }
.int-pill.primary .int-pill-note { color: var(--blue-ink); opacity: 0.7; }

/* ---- SECTION HEADINGS ---- */
.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-kicker {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--ink);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

/* ---- TEMPLATES ---- */
.templates {
  padding: 90px 0 80px;
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
  border-top: 1px solid var(--border);
}

/* Demo container */
.tpl-demo {
  max-width: 1080px;
  margin: 0 auto 48px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tpl-demo-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--ink-3);
}
.tpl-demo-dots { display: flex; gap: 5px; }
.tpl-demo-dots i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border-2);
  display: inline-block;
}
.tpl-demo-url {
  flex: 1; text-align: center; font-family: ui-monospace, Menlo, monospace;
  font-size: 11.5px; color: var(--muted);
}
.tpl-demo-status {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px;
  font-family: ui-monospace, Menlo, monospace;
}
.tpl-demo-rec {
  width: 8px; height: 8px; border-radius: 50%; background: #d94f6d;
  animation: tpl-pulse 1.2s ease-in-out infinite;
}
.tpl-demo-rec.is-paused { background: var(--muted); animation: none; }
@keyframes tpl-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.tpl-demo-stage {
  position: relative;
  height: 420px;
  background: var(--bg);
  overflow: hidden;
}

/* Rail */
.tpl-demo-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.tpl-demo-step {
  position: relative;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  font: inherit;
  transition: background 0.15s;
}
.tpl-demo-step:last-child { border-right: none; }
.tpl-demo-step:hover { background: var(--bg-2); }
.tpl-demo-step-num {
  grid-row: 1 / 3;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 12px; font-weight: 600;
  font-family: ui-monospace, Menlo, monospace;
  align-self: center;
  transition: background 0.2s, color 0.2s;
}
.tpl-demo-step-label {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -0.01em;
}
.tpl-demo-step-hint {
  font-size: 11.5px; color: var(--muted);
  grid-column: 2;
}
.tpl-demo-step.is-active .tpl-demo-step-num { background: var(--blue); color: #fff; }
.tpl-demo-step.is-active .tpl-demo-step-label { color: var(--ink); }
.tpl-demo-step.is-done .tpl-demo-step-num { background: var(--blue-soft); color: var(--blue); }
.tpl-demo-step.is-done .tpl-demo-step-num::before { content: '✓'; font-size: 13px; }
.tpl-demo-step.is-done .tpl-demo-step-num > * { display: none; }
.tpl-demo-step-fill {
  position: absolute; left: 0; bottom: 0; height: 2px;
  background: var(--blue);
  transition: width 0.1s linear;
}

/* Stages (shared) */
.stage {
  position: absolute; inset: 0;
  padding: 24px 28px;
}
@keyframes stage-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Stage: Browse */
.stage-browse { display: flex; flex-direction: column; gap: 14px; }
.stage-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 12px; color: var(--ink-3);
  transition: all 0.25s;
}
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stage-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  flex: 1;
}
.stage-tile {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.stage-tile.is-hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -12px rgba(47,107,245,0.3);
}
.stage-tile-viz {
  position: relative; height: 80px; background: var(--bg); border-bottom: 1px solid var(--border);
}
.stage-tile-bar { position: absolute; height: 5px; border-radius: 2px; }
.stage-tile-body { padding: 8px 10px 10px; }
.stage-tile-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.stage-tile-title { font-size: 12.5px; font-weight: 600; margin-top: 2px; letter-spacing: -0.01em; }
.stage-tile-meta { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.stage-cursor {
  position: absolute;
  width: 14px; height: 14px;
  background: #15171c;
  clip-path: polygon(0 0, 100% 50%, 40% 60%, 60% 100%, 0 40%);
  transition: left 0.6s cubic-bezier(.4,.2,.2,1), top 0.6s cubic-bezier(.4,.2,.2,1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  pointer-events: none;
}

/* Stage: Preview */
.stage-preview { display: flex; flex-direction: column; gap: 14px; }
.stage-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.stage-preview-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.stage-preview-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stage-preview-action {
  background: var(--blue); color: #fff;
  padding: 7px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
}
.stage-preview-gantt { display: flex; flex-direction: column; gap: 6px; }
.stage-preview-ruler {
  margin-left: 180px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--muted);
  padding-bottom: 4px; border-bottom: 1px dashed var(--border);
}
.stage-preview-ruler > span { text-align: left; }
.stage-preview-row {
  display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 8px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s, transform 0.35s;
}
.stage-preview-row.is-in { opacity: 1; transform: none; }
.stage-preview-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
}
.stage-preview-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; color: #15171c;
  flex-shrink: 0;
}
.stage-preview-track {
  position: relative; height: 22px; background: var(--bg-2); border-radius: 4px;
}
.stage-preview-bar {
  position: absolute; top: 4px; height: 14px; border-radius: 3px;
}

/* Stage: Clone */
.stage-clone {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.stage-clone-source, .stage-clone-dest {
  flex: 1; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
  height: 280px;
  transition: all 0.4s cubic-bezier(.4,.2,.2,1);
}
.stage-clone-label, .stage-clone-dest-head {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.stage-clone-mini { position: relative; height: 200px; background: var(--bg); border-radius: 6px; }
.stage-clone-arrow { font-size: 24px; color: var(--blue); transition: opacity 0.3s; }
.stage-clone-dest { border-width: 2px; }
.stage-clone-dest-body { display: grid; place-items: center; height: 200px; }
.stage-clone-empty { color: var(--muted); font-size: 13px; }
.stage-clone-success {
  display: flex; align-items: center; gap: 14px;
  animation: stage-in 0.5s ease-out;
}
.stage-clone-check {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1b9e6a; color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.stage-clone-success b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.stage-clone-success > div > div { font-size: 12px; color: var(--muted); }

/* Stage: Edit */
.stage-edit { display: flex; flex-direction: column; gap: 14px; }
.stage-edit-hint {
  font-size: 12.5px; color: var(--ink-3);
  background: var(--blue-soft); padding: 8px 12px; border-radius: 6px;
  border-left: 3px solid var(--blue);
}
.stage-edit-gantt { display: flex; flex-direction: column; gap: 8px; }
.stage-edit-ruler {
  margin-left: 220px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--muted);
  padding-bottom: 4px; border-bottom: 1px dashed var(--border);
}
.stage-edit-ruler > span { text-align: left; }
.stage-edit-row {
  display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 10px;
}
.stage-edit-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
}
.stage-edit-owner {
  font-size: 10.5px; padding: 2px 7px; border-radius: 4px;
  background: var(--bg-2); color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  transition: all 0.3s;
}
.stage-edit-owner.is-new {
  background: #1b9e6a; color: #fff;
  font-family: inherit; font-weight: 500;
}
.stage-edit-track { position: relative; height: 22px; background: var(--bg-2); border-radius: 4px; }
.stage-edit-bar {
  position: absolute; top: 4px; height: 14px; border-radius: 3px;
  transition: left 0.6s cubic-bezier(.4,.2,.2,1);
}

/* Stage: Push */
.stage-push { display: grid; place-items: center; }
.stage-push-modal {
  width: 480px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stage-push-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.stage-push-jira {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
}
.stage-push-jira-mark {
  width: 16px; height: 16px; border-radius: 3px; background: #2684ff;
  display: inline-block;
}
.stage-push-count { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.stage-push-list { padding: 6px 0; max-height: 180px; overflow: hidden; }
.stage-push-item {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px;
  padding: 7px 16px;
  font-size: 12px; color: var(--ink-3);
  transition: color 0.2s;
}
.stage-push-item.is-done { color: var(--ink); }
.stage-push-check {
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); color: transparent;
  font-size: 10px; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.stage-push-item.is-done .stage-push-check { background: #1b9e6a; color: #fff; }
.stage-push-key { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--muted); }
.stage-push-item.is-done .stage-push-key { color: var(--blue); }
.stage-push-progress {
  height: 3px; background: var(--bg-2); position: relative;
}
.stage-push-progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--blue);
  transition: width 0.1s linear;
}
.stage-push-footer {
  padding: 10px 16px; font-size: 11.5px; color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  background: var(--bg-2);
}
.stage-push-success { color: #1b9e6a; font-weight: 600; }

/* Featured cards */
.tpl-featured-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 auto 18px; max-width: 1080px;
}
.tpl-featured-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
}
.tpl-featured-count { font-size: 12.5px; color: var(--muted); }

.tpl-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tpl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.tpl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}
.tpl-viz {
  position: relative;
  height: 140px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.tpl-viz-ruler {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between;
  font-family: ui-monospace, Menlo, monospace; font-size: 9px; color: var(--muted);
}
.tpl-bar {
  position: absolute;
  height: 10px;
  border-radius: 2px;
}
.tpl-tag {
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tpl-body { padding: 14px 16px 16px; }
.tpl-title {
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.tpl-desc {
  font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px;
  line-height: 1.45;
}
.tpl-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
}
.tpl-contributor {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
}

.tpl-cta {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .tpl-demo-rail { grid-template-columns: repeat(5, 1fr); }
  .tpl-demo-step-hint { display: none; }
  .stage-tiles { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: 1fr; }
}

/* ---- FEATURES ---- */
.features {
  padding: 90px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feat-wide { grid-column: span 2; }
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
}
.feat-vis {
  position: relative;
  height: 160px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.mini-gantt { position: absolute; inset: 0; }
.feat-vis-push {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bg), var(--blue-soft));
}
.push-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}
.push-from, .push-to {
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.push-to { border-color: var(--blue); color: var(--blue-ink); }
.push-arrow { color: var(--blue); font-size: 20px; }
.push-count {
  font-size: 12px;
  color: var(--blue-ink);
  font-family: ui-monospace, monospace;
}
.feat-vis-sync {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sync-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 240px;
}
.sync-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
}
.sync-dot { width: 7px; height: 7px; border-radius: 4px; }
.feat-vis-team { padding: 18px; }
.lane-viz { display: flex; flex-direction: column; gap: 8px; }
.lane {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 10px;
}
.lane-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}
.lane-track {
  height: 10px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
}
.lane-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
}
.feat-body { padding: 16px 18px 18px; }
.feat-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.feat-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
}

/* ---- AI SECTION ---- */
.ai {
  padding: 100px 0 70px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.ai-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .ai-inner { grid-template-columns: 1fr; }
}
.ai-copy .section-title { font-size: clamp(32px, 4.5vw, 54px); }
.ai-kicker { color: var(--blue); }
.ai-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.ai-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--ink-3);
}
.ai-list li:last-child { border-bottom: 1px solid var(--border); }
.ai-list li b { color: var(--ink); font-weight: 600; }
.ai-num {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  padding-top: 4px;
}
.ai-demo { display: flex; justify-content: center; }
.ai-card {
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}
.ai-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ai-glyph {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), #6d4cc8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.ai-card-title {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ai-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.ai-field { margin-bottom: 10px; }
.ai-field-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.ai-field-after .ai-field-label { color: var(--blue); font-weight: 500; }
.ai-field-text {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.ai-field-text.strike {
  color: var(--muted);
  text-decoration: line-through;
}
.ai-field-after .ai-field-text {
  background: var(--blue-soft);
  border-color: rgba(47,107,245,0.3);
  color: var(--ink);
}
.ai-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* ---- PRICING ---- */
.pricing {
  padding: 90px 0 60px;
  border-top: 1px solid var(--border);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured {
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
@media (max-width: 900px) {
  .price-card-featured { transform: none; }
}
.price-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.price-head { margin-bottom: 22px; }
.price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.price-big {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-unit { color: var(--muted); font-size: 13px; }
.price-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
  border-top: 1px solid var(--border);
}
.price-list li {
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 22px;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.price-list li b { color: var(--ink); }

/* ---- FAQ ---- */
.faq {
  padding: 90px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
}
@media (max-width: 900px) { .faq-inner { grid-template-columns: 1fr; } }
.faq-head .section-title { font-size: clamp(32px, 4vw, 52px); text-align: left; }
.faq-head .section-kicker { text-align: left; }
.faq-list {
  border-top: 1px solid var(--border-2);
}
.faq-item {
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-icon {
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
.faq-item.open .faq-icon { color: var(--blue); }
.faq-a {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 10px;
  max-width: 640px;
  line-height: 1.6;
}

/* ---- CTA ---- */
.cta {
  padding: 120px 0 100px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at center top, rgba(47,107,245,0.12) 0%, transparent 60%),
    var(--bg);
  text-align: center;
}
.cta-title {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 18px;
}
.cta-sub {
  font-size: 17px;
  color: var(--ink-3);
  margin: 0 0 30px;
}
.cta-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  color: #cfd0d5;
  padding: 60px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; }
.footer .brand-mark { background: rgba(255,255,255,0.12); }
.footer-tag {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-top: 12px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-head {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13.5px;
  padding: 5px 0;
  transition: color .15s;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- PHONE (≤720px): single-pass mobile readability.
   The two heavy interactive demos (`.demo-wrap` hero gantt and `.tpl-demo`
   templates rail) are hidden because their internal grids assume a desktop
   width and can't reflow gracefully. Phone visitors still see all copy,
   pricing, FAQ, and the static template cards. */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-row { padding: 12px 16px; }
  .nav .nav-item,
  .nav .nav-divider,
  .nav .btn-ghost { display: none; }
  .nav .btn-primary { padding: 8px 12px; font-size: 13px; }

  .strip { font-size: 12px; padding: 8px 12px; gap: 8px; }

  .hero { padding: 40px 0 24px; }
  .hero-glow { width: 600px; height: 400px; top: -120px; }
  .hero-title { font-size: 40px; line-height: 1; letter-spacing: -0.025em; }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; gap: 8px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 8px; font-size: 12px; }

  .demo-wrap { display: none; }
  .tpl-demo { display: none; }

  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 30px; line-height: 1.05; }
  .section-sub { font-size: 15px; }

  .integrations { padding: 40px 0 20px; }
  .templates { padding: 60px 0 50px; }
  .features { padding: 60px 0 40px; }
  .ai { padding: 70px 0 50px; }
  .pricing { padding: 60px 0 40px; }
  .faq { padding: 60px 0 40px; }
  .cta { padding: 80px 0 70px; }

  .price-card { padding: 22px 20px; }
  .price-big { font-size: 36px; }
  .price-card-featured { transform: none; }

  .cta-title { font-size: 38px; line-height: 1.05; }
  .cta-sub { font-size: 15px; }

  .faq-q { font-size: 14.5px; }
  .faq-head .section-title { font-size: 30px; text-align: left; }

  .footer { padding: 40px 0 24px; }
  .footer-inner { gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 26px; }
  .cta-title { font-size: 32px; }
}
