/* Landing page. Reuses style.css's tokens (Fraunces/Inter, brand colors,
   --ink-deep/--ink-mid) so the marketing page and the product feel like the
   same thing, not a bolt-on. */

html { overflow-x: hidden; }
body.landing {
  background:
    radial-gradient(circle at 10% 0%, rgba(224,69,154,0.10), transparent 38%),
    radial-gradient(circle at 88% 6%, rgba(58,160,224,0.11), transparent 40%),
    radial-gradient(circle at 25% 55%, rgba(56,178,74,0.06), transparent 45%),
    var(--ink-deep);
  max-width: 100vw;
  overflow-x: hidden;
}

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(20px, env(safe-area-inset-left)) 18px max(20px, env(safe-area-inset-right));
  max-width: 1180px; margin: 0 auto;
}
.landing-nav .logo-chip { padding: 5px 10px; }
.landing-nav .logo-img { height: 26px; }
.landing-nav .nav-actions { display: flex; align-items: center; gap: 8px; }
.landing-nav a.btn.ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.landing-nav a.btn.ghost:hover { background: rgba(255,255,255,0.1); }

.landing-hero {
  max-width: 1180px; margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  position: relative;
}
.hero-bg-photo {
  position: absolute; inset: -20px 0 -60px 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.hero-bg-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 92%);
}
.hero-bg-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--ink-deep) 10%, rgba(14,23,41,0.55) 45%, rgba(14,23,41,0.15) 75%);
}

/* --- Alternating light/dark bands below the hero, blended with a soft
   gradient instead of a hard-edged border, so sections ease into each
   other rather than cutting sharply. The hero and final CTA stay dark on
   purpose; only the bands in between alternate. --- */
.landing-strip.light {
  background:
    linear-gradient(var(--ink-deep), var(--paper) 90px, var(--paper) calc(100% - 90px), var(--ink-deep));
}
.landing-strip.light .band-copy h2,
.landing-strip.light .landing-note h3,
.landing-strip.light .step-text h3 { color: var(--ink); }
.landing-strip.light .band-copy p,
.landing-strip.light .landing-note p,
.landing-strip.light .step-text p { color: var(--text-muted); }
.landing-strip.light .band-visual {
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(27,42,65,0.1), 0 4px 10px rgba(27,42,65,0.1);
}
.landing-strip.light .landing-steps h2 { color: var(--ink); }
.landing-strip.light .step-text p { color: var(--text-muted); }
.hero-copy h1 {
  color: #fff; font-size: 44px; line-height: 1.12; margin: 0 0 18px;
  max-width: 15ch;
}
.hero-copy p.lede {
  color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.55;
  max-width: 46ch; margin: 0 0 24px;
}
/* Quick, unambiguous "what this actually is" row -- three short labels
   instead of leaving the visitor to infer the product from the hero
   visual alone. */
.hero-value-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 28px;
}
.hero-value-row span {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600;
}
.hero-value-row svg { width: 17px; height: 17px; color: var(--brand-blue); flex-shrink: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 12px 22px; font-size: 15px; }
.hero-ctas .btn.ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.hero-ctas .btn.ghost:hover { background: rgba(255,255,255,0.1); }

/* Staggered entrance for the hero copy on page load. */
.hero-copy h1,
.hero-copy p.lede,
.hero-copy .hero-value-row,
.hero-copy .hero-ctas {
  animation: rise-in 0.6s cubic-bezier(.2,.7,.3,1) both;
}
.hero-copy h1 { animation-delay: 0s; }
.hero-copy p.lede { animation-delay: 0.08s; }
.hero-copy .hero-value-row { animation-delay: 0.16s; }
.hero-copy .hero-ctas { animation-delay: 0.24s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1, .hero-copy p.lede, .hero-copy .hero-value-row,
  .hero-copy .hero-ctas { animation: none; }
}

/* Scroll-reveal: sections fade/rise into place as they enter the
   viewport. JS toggles .in-view; CSS handles the transition so there's
   no layout jank while landing.js loads. */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Slight cascade for the individual notes/steps inside their (already
   reveal-triggered) parent, so they don't all just pop in at once. */
.landing-notes .landing-note,
.landing-steps .step-row {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(.2,.7,.3,1), transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.landing-notes.in-view .landing-note,
.landing-steps.in-view .step-row {
  opacity: 1; transform: none;
}
.landing-notes.in-view .landing-note:nth-child(1) { transition-delay: 0s; }
.landing-notes.in-view .landing-note:nth-child(2) { transition-delay: 0.1s; }
.landing-notes.in-view .landing-note:nth-child(3) { transition-delay: 0.2s; }
.landing-steps.in-view .step-row:nth-child(2) { transition-delay: 0.1s; }
.landing-steps.in-view .step-row:nth-child(3) { transition-delay: 0.22s; }
.landing-steps.in-view .step-row:nth-child(4) { transition-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .landing-notes .landing-note, .landing-steps .step-row { opacity: 1; transform: none; transition: none; }
}

/* --- Hero visual: real UI, not a stock photo. A tilted mini board sits
   behind a tilted mini map, both built from the app's own classes so it
   reads as the actual product rather than an illustration of it. --- */
.hero-visual { position: relative; height: 440px; }

/* Ambient glow breathing behind the hero visual for continuous life. */
.hero-visual::before {
  content: '';
  position: absolute; inset: -60px;
  background:
    radial-gradient(circle at 30% 30%, rgba(224,69,154,0.22), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(58,160,224,0.22), transparent 45%);
  filter: blur(10px);
  animation: glow-breathe 6s ease-in-out infinite;
  z-index: 0;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.mock-board, .mock-map {
  position: absolute; border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 14px 24px rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden; z-index: 1;
  /* Never exceed the viewport, regardless of exact device width -- safer
     than only fixing sizes at a couple of hand-picked breakpoints. */
  max-width: 85vw;
}
.mock-board {
  width: 340px; top: 10px; left: 0;
  background: #F0EEE4; transform: rotate(-6deg);
  border: 1px solid rgba(255,255,255,0.08);
}
.mock-board .mock-chrome {
  display: flex; gap: 5px; align-items: center;
  padding: 8px 10px; background: #E4E1D8;
}
.mock-board .mock-chrome span { width: 8px; height: 8px; border-radius: 50%; background: rgba(27,42,65,0.25); }
.mock-board .mock-board-inner { padding: 14px; }
.mock-board .mock-board-cols { display: flex; gap: 10px; }
.mock-col { flex: 1; }
.mock-col-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink); margin-bottom: 6px;
}
.mock-card {
  background: #fff; border-radius: 7px; padding: 8px 9px; margin-bottom: 7px;
  font-size: 11px; font-weight: 600; color: var(--ink);
  border-left: 3px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.mock-card .mock-tag {
  display: inline-block; width: 26px; height: 5px; border-radius: 3px; margin-top: 5px;
}
.mock-map {
  width: 300px; height: 220px; top: 210px; left: 200px;
  background: linear-gradient(160deg, #cfe8d8, #bcd9e0);
  transform: rotate(4deg);
  border: 1px solid rgba(255,255,255,0.1);
}
.mock-map svg { width: 100%; height: 100%; display: block; }
.mock-pin { transform-origin: center bottom; animation: pin-drop 0.5s cubic-bezier(.3,1.4,.6,1) both; }
@keyframes pin-drop {
  from { opacity: 0; transform: translateY(-14px) scale(0.6); }
}
.mock-pin.pulse circle.ring {
  animation: pin-pulse 2.4s ease-out infinite;
  transform-origin: center;
}
@keyframes pin-pulse {
  0% { r: 6; opacity: 0.55; }
  100% { r: 16; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mock-pin { animation: none; }
  .mock-pin.pulse circle.ring { animation: none; }
}

/* Small floating stat chip -- purely illustrative "richness", not a
   claim of real data, but reads as a live product rather than a static
   diagram. */
.mock-badge {
  position: absolute; top: 0; right: 10px; z-index: 2;
  background: #fff; border-radius: 10px; padding: 9px 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 8px 16px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 8px;
  animation: rise-in 0.6s cubic-bezier(.2,.7,.3,1) 0.5s both, float-badge 3.4s ease-in-out 1.1s infinite;
}
.mock-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-green); flex-shrink: 0; }
.mock-badge span.label { font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-badge { animation: none; }
}

/* One entrance on load, then a slow continuous idle float so the hero
   keeps a sense of motion rather than going static. Board and map float
   on offset timings/directions so they don't move in sync. */
.hero-visual .mock-board {
  animation: settle-in 0.7s cubic-bezier(.2,.7,.3,1) 0.15s both, float-board 5.5s ease-in-out 0.9s infinite;
}
.hero-visual .mock-map {
  animation: settle-in 0.7s cubic-bezier(.2,.7,.3,1) 0.28s both, float-map 6.5s ease-in-out 1.0s infinite;
}
@keyframes settle-in {
  from { opacity: 0; transform: translateY(18px) rotate(0deg); }
}
@keyframes float-board {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-10px); }
}
@keyframes float-map {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .mock-board, .hero-visual .mock-map { animation: none; }
  .hero-visual::before { animation: none; }
}

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-copy h1 { font-size: 34px; max-width: 100%; }
  .hero-visual { height: 360px; margin-top: 10px; }
  .mock-board { width: 270px; }
  .mock-map { width: 240px; height: 190px; top: 170px; left: 120px; }
  .mock-badge { top: -6px; right: 0; }
}
@media (max-width: 520px) {
  .hero-visual { height: 320px; }
  .mock-board { width: 230px; }
  .mock-map { width: 195px; height: 165px; top: 150px; left: 95px; }
}

/* --- Feature bands: alternating text/visual rows on a slightly lighter
   dark surface than the hero, for gentle depth as you scroll. --- */
.landing-band {
  max-width: 1180px; margin: 0 auto; padding: 70px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.landing-band.alt .band-copy { order: 2; }
.landing-band.alt .band-visual { order: 1; }
.band-copy h2 { color: #fff; font-size: 30px; margin: 0 0 14px; max-width: 14ch; }
.band-copy p { color: rgba(255,255,255,0.68); font-size: 16px; line-height: 1.6; max-width: 42ch; }
.band-visual {
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 22px; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .landing-band, .landing-band.alt { grid-template-columns: 1fr; }
  .landing-band.alt .band-copy, .landing-band.alt .band-visual { order: initial; }
}

/* Map-feature visual: a bigger version of the pin map */
.band-visual.map-visual svg { width: 100%; height: 260px; }

/* Board-feature visual: three fuller mini columns */
.band-visual.board-visual { flex-direction: column; align-items: stretch; }
.board-visual .mock-board-cols { display: flex; gap: 12px; width: 100%; }
.board-visual .mock-col-title { font-size: 11px; }

/* Real product-adjacent photography, framed and tinted to match the
   brand palette rather than dropped in raw. */
.band-visual.photo-frame {
  padding: 0; overflow: hidden; position: relative; min-height: 300px;
  border: 1px solid rgba(27,42,65,0.12);
}
.band-visual.photo-frame img {
  width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block;
}
.band-visual.photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  /* A crisp 1px inner edge rather than a soft blurred vignette. */
  box-shadow: inset 0 0 0 1px rgba(14,23,41,0.1);
}
.band-visual.photo-frame img { border-radius: 0; }

/* --- Three feature notes: icon badge + heading + line, separated by
   generous spacing rather than ruled hairlines. --- */
.landing-notes {
  max-width: 1180px; margin: 0 auto; padding: 60px 20px 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.landing-note { padding: 0; }
.landing-note .note-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(58,160,224,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.landing-note svg { width: 22px; height: 22px; color: var(--brand-blue); }
.landing-note h3 { color: #fff; font-size: 17px; margin: 0 0 6px; }
.landing-note p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.5; margin: 0; }
.landing-strip.light .landing-note .note-icon { background: rgba(58,160,224,0.1); }
@media (max-width: 780px) {
  .landing-notes { grid-template-columns: 1fr; gap: 30px; }
}

/* --- How it works: a genuine 3-step sequence, numbered because it is
   one. --- */
.landing-steps { max-width: 900px; margin: 0 auto; padding: 20px 20px 80px; }
.landing-steps h2 { color: #fff; font-size: 28px; text-align: center; margin: 0 0 40px; }
.step-row { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step-text h3 { color: #fff; font-size: 17px; margin: 2px 0 5px; }
.step-text p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.55; margin: 0; max-width: 52ch; }

/* --- Final CTA --- */
.landing-cta {
  max-width: 100%; margin: 0; padding: 90px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.landing-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/img/cta-kanban-hologram.png') center 20%/cover;
  opacity: 0.6;
}
.landing-cta::after {
  content: '';
  position: absolute; inset: 0;
  /* Semi-transparent throughout (not solid at the edges) so the photo
     actually stays visible -- just enough darkening for the white text
     to stay readable. */
  background: linear-gradient(180deg, rgba(14,23,41,0.72), rgba(14,23,41,0.55) 40%, rgba(14,23,41,0.78));
}
.landing-cta > * { position: relative; z-index: 1; }
.landing-cta-inner { max-width: 780px; margin: 0 auto; }
.landing-cta h2 { color: #fff; font-size: 32px; margin: 0 0 14px; }
.landing-cta p { color: rgba(255,255,255,0.68); font-size: 16px; margin: 0 0 26px; }
.landing-cta .btn { padding: 13px 26px; font-size: 15px; }

.landing-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 26px 20px max(26px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 1180px; margin: 0 auto;
  color: rgba(255,255,255,0.45); font-size: 13px;
}
.landing-footer a { color: rgba(255,255,255,0.6); text-decoration: none; margin-left: 16px; }
.landing-footer a:hover { color: #fff; }
