/* Landing page styles — self-contained, used only by index.html
   (layout: null, outside the just-the-docs theme).

   Professional-with-a-wink: a warm paper neutral palette, hairline
   borders, and soft depth for the serious side; the bird brand carries
   the light-heartedness in small doses — the perched mascot on the
   hero shot, a hand-drawn underline, footprint dividers, and the copy.
   All motion is disabled under prefers-reduced-motion. */

:root {
  --ink: #1f1a13;
  --muted: #6a6255;
  --line: #e7e2d6;
  --paper: #fcfaf5;
  --cream: #f6f1e6;
  --red: #ec2000;
  --red-deep: #b93000;
  --gold: #ffbb10;
  --navy: #161d28;
  --col-blue: #3b82f6;
  --col-amber: #f59e0b;
  --col-violet: #8b5cf6;
  --col-green: #16a34a;
  --radius: 12px;
  --max: 1120px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 19, 0.06);
  --shadow-lg:
    0 16px 40px -16px rgba(31, 26, 19, 0.22), 0 2px 6px rgba(31, 26, 19, 0.05);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
}

* {
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
}

a {
  color: var(--red-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Small-caps section label — quiet, no pill. */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
}

/* ── top bar ── */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(252, 250, 245, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 20;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.topbar img {
  width: 30px;
  height: 30px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.topbar nav a {
  color: var(--muted);
}

.topbar nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.topbar nav a.gh {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.topbar nav a.gh:hover {
  border-color: #cfc7b6;
  box-shadow: 0 2px 6px rgba(31, 26, 19, 0.1);
}

/* ── hero ── */

.hero {
  position: relative;
  text-align: center;
  padding: 92px 0 44px;
  background:
    radial-gradient(
      900px 420px at 50% -140px,
      #f8edd4 0%,
      rgba(248, 237, 212, 0) 70%
    ),
    var(--paper);
}

.hero .kicker {
  animation: rise 0.5s ease both;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 760px;
  margin: 20px auto 0;
  animation: rise 0.5s 0.06s ease both;
}

/* A single hand-drawn stroke under the key phrase — the one flourish. */
.hero h1 .mark {
  position: relative;
  white-space: nowrap;
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.12em;
  height: 0.22em;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M3 10 C 45 3, 90 3, 118 7 S 175 12, 197 6' fill='none' stroke='%23ec9d10' stroke-width='5' stroke-linecap='round'/></svg>")
    center / 100% 100% no-repeat;
}

.hero .pitch {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 17.5px;
  color: var(--muted);
  animation: rise 0.5s 0.12s ease both;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
  animation: rise 0.5s 0.18s ease both;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow:
    0 8px 20px -8px rgba(236, 32, 0, 0.5),
    var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: #cfc7b6;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  animation: rise 0.5s 0.24s ease both;
}

.hero-note b {
  color: var(--ink);
  font-weight: 600;
}

/* floating mini kanban cards — quiet, glassy, desktop only */

.float-card {
  position: absolute;
  width: 185px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  line-height: 1.35;
  animation: bob 7s ease-in-out infinite;
  z-index: 1;
}

.float-card .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 1px 8px;
  color: #fff;
  margin-bottom: 6px;
}

.float-card b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.fc-1 {
  top: 130px;
  left: max(24px, calc(50% - 620px));
  transform: rotate(-3deg);
}

.fc-1 .tag {
  background: var(--col-blue);
}

.fc-2 {
  top: 330px;
  left: max(12px, calc(50% - 655px));
  transform: rotate(2deg);
  animation-delay: 1.4s;
}

.fc-2 .tag {
  background: var(--col-amber);
}

.fc-3 {
  top: 150px;
  right: max(24px, calc(50% - 620px));
  transform: rotate(3deg);
  animation-delay: 0.7s;
}

.fc-3 .tag {
  background: var(--col-violet);
}

.fc-4 {
  top: 340px;
  right: max(12px, calc(50% - 650px));
  transform: rotate(-2deg);
  animation-delay: 2s;
}

.fc-4 .tag {
  background: var(--col-green);
}

@media (max-width: 1150px) {
  .float-card {
    display: none;
  }
}

.hero-shot {
  position: relative;
  margin: 56px auto 0;
  max-width: 1000px;
  padding: 0 24px;
  animation: rise 0.6s 0.3s ease both;
}

.hero-shot img:not(.perch) {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* The bird perches on the top edge of the board shot. */
.hero-shot .perch {
  position: absolute;
  top: -37px;
  right: 72px;
  width: 64px;
  height: 64px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 2px 3px rgba(31, 26, 19, 0.18));
  animation: bob 7s 1s ease-in-out infinite;
  z-index: 2;
}

/* ── capability strip ── */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  margin-top: 68px;
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
}

.marquee-track {
  display: inline-block;
  animation: slide 46s linear infinite;
}

.marquee span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 16px;
}

.marquee span::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 32px;
  vertical-align: -1.5px;
  opacity: 0.5;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b93000' stroke-width='2.4' stroke-linecap='round'><path d='M4 12h9M13 12l6-6M13 12h7M13 12l6 6'/></svg>")
    center / contain no-repeat;
}

/* ── how it works ── */

.steps {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
  text-align: center;
}

.steps h2,
.features h2,
.binary h2 {
  font-size: clamp(27px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.steps h2 {
  margin-top: 14px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.step .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-deep);
}

.step .num::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 2px;
}

.step h3 {
  margin-top: 14px;
  font-size: 18.5px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ── feature rows ── */

.features {
  padding: 80px 0 24px;
  text-align: center;
}

.features > .wrap {
  text-align: left;
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}

/* Hairline divider with a tiny footprint walking through it. */
.feature + .feature {
  border-top: 1px solid var(--line);
}

.feature + .feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 58px;
  height: 16px;
  transform: translate(-50%, -50%);
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 16' fill='none' stroke='%23b9ae99' stroke-width='1.6' stroke-linecap='round'><g transform='rotate(8 12 8)'><path d='M6 8h5M11 8l3.4-3.4M11 8h4.4M11 8l3.4 3.4'/></g><g transform='rotate(-8 42 8)'><path d='M36 8h5M41 8l3.4-3.4M41 8h4.4M41 8l3.4 3.4'/></g></svg>")
      center / contain no-repeat,
    var(--paper);
}

.feature:nth-child(even) .feature-copy {
  order: 2;
}

.feature h3 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
}

.feature .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
}

.feature-shot img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ── also-in-the-box grid ── */

.extras {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 76px 0;
  text-align: center;
  margin-top: 48px;
}

.extras h2 {
  margin-top: 14px;
  font-size: clamp(27px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}

.extra {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.extra:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.extra h3 {
  font-size: 16.5px;
  font-weight: 700;
}

.extra h3::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 2px;
}

.extra p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
/* ── one binary strip ── */

.binary {
  background: var(--navy);
  color: #edf1f6;
  padding: 80px 0;
  margin-top: 0;
}

.binary .wrap {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 56px;
  align-items: center;
}

.binary .kicker {
  color: var(--gold);
}

.binary h2 {
  margin-top: 14px;
  color: #fff;
}

.binary p {
  margin-top: 14px;
  color: #a3aebd;
  font-size: 15.5px;
}

.binary a {
  color: #ffd78a;
}

.term {
  background: #0d141d;
  border: 1px solid #2a3646;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.term-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: #131c28;
  border-bottom: 1px solid #223047;
}

.term-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.term-bar i:nth-child(1) {
  background: #ff5f57;
}

.term-bar i:nth-child(2) {
  background: #febc2e;
}

.term-bar i:nth-child(3) {
  background: #28c840;
}

.term pre {
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}

.term code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.term .comment {
  color: #5f7288;
}

.term .cmd {
  color: #ffd78a;
}

.term .cmd::after {
  content: "▌";
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

/* ── footer ── */

footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 40px 0 48px;
  font-size: 14px;
}

footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}

footer img {
  width: 24px;
  height: 24px;
}

footer .foot-note {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
}

footer nav a {
  color: var(--muted);
  font-weight: 500;
}

footer nav a:hover {
  color: var(--ink);
}

/* ── motion ── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::after,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ── small screens ── */

@media (max-width: 860px) {
  .step-grid,
  .extra-grid,
  .feature,
  .binary .wrap {
    grid-template-columns: 1fr;
  }

  .feature {
    gap: 26px;
    padding: 40px 0;
  }

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

  .hero {
    padding-top: 56px;
  }

  .hero-shot {
    margin-top: 40px;
  }

  .topbar nav {
    gap: 14px;
  }

  .topbar nav .hide-sm {
    display: none;
  }

  footer nav {
    margin-left: 0;
  }
}
