/* Flowdeck's public landing page. One file, no framework, no external font,
   no analytics. The editor has its own stylesheet under /workspace/. */

:root {
  --bg: #f4faff;
  --panel: #ffffff;
  --panel-2: #f1f9ff;
  --text: #12263c;
  --muted: #4f677c;      /* 4.9:1 on the page field */
  --dim: #5b7186;        /* 4.6:1 on the page field */
  --line: #cfe2f1;
  --line-soft: #e2eff8;
  --accent: #17679c;     /* 4.8:1 on white and on the field */
  --accent-2: #6cc4f2;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(108, 196, 242, .30), transparent 62%),
    radial-gradient(900px 600px at 4% 108%, rgba(59, 159, 232, .13), transparent 60%),
    linear-gradient(180deg, #f9fdff 0%, #f2faff 55%, #eaf6ff 100%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #0e4d75; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 30;
}
.skip:focus { left: 8px; z-index: 40; }

/* --------------------------------------------------------------- header */

.site-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
}
.brand img { width: 108px; height: auto; display: block; }
.brand span { display: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--accent); }

/* ---------------------------------------------------------- live deck hero */

.deckhero {
  position: relative;
  height: 100vh;
  height: 100svh;
  outline: none;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(900px 560px at 76% 4%, rgba(108, 196, 242, .30), transparent 64%),
    radial-gradient(780px 520px at 4% 104%, rgba(59, 159, 232, .14), transparent 62%),
    linear-gradient(180deg, #f9fdff 0%, #eef9ff 100%);
}
.deckhero-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 74px 32px 92px;
}
.deckhero:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}
.deckhero-frame-wrap {
  width: calc(1280px * var(--deck-scale, .8));
  height: calc(720px * var(--deck-scale, .8));
}
.deckhero-frame {
  position: relative;
  width: 1280px;
  height: 720px;
  transform: scale(var(--deck-scale, .8));
  transform-origin: top left;
  border: 1px solid rgba(59, 159, 232, .24);
  border-radius: 18px;
  overflow: hidden;
  background: #eaf5fd;
  box-shadow: 0 32px 80px rgba(42, 101, 145, .22), 0 2px 0 rgba(255, 255, 255, .8) inset;
  opacity: 0;
  transition: opacity .35s ease;
}
.deckhero.demo-painted .deckhero-frame { opacity: 1; }
.deckhero-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #eaf5fd;
}
.deckhero-mock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 780px);
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
}
.deckhero.demo-painted .deckhero-mock {
  opacity: 0;
  pointer-events: none;
}

.deckhero-status {
  position: absolute;
  top: 82px;
  left: clamp(18px, 4vw, 48px);
  z-index: 12;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid rgba(31, 120, 180, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: var(--muted);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: .02em;
  max-width: min(62vw, 560px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deckhero.live .deckhero-status { color: var(--accent); }
.deckhero.demo-failed .deckhero-status { color: #8a3b2e; }

.deckhero-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.deckhero-edit {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  background: rgba(255, 255, 255, .9);
}

.deckhero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 48px) 22px;
  background: linear-gradient(0deg, rgba(249, 253, 255, .95), rgba(249, 253, 255, 0));
}
.deckhero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.deckhero-arrow,
.deckhero-play {
  appearance: none;
  border: 1px solid rgba(176, 207, 226, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  cursor: pointer;
  font: 700 15px/1 var(--mono);
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.deckhero-play { font: 600 11.5px/1 Inter, ui-sans-serif, system-ui, sans-serif; }
.deckhero-arrow:hover,
.deckhero-play:hover { background: #fff; border-color: #8fc2e2; }
.deckhero-arrow:disabled { opacity: .38; cursor: default; }
.deckhero-count {
  color: var(--muted);
  font: 600 11.5px/1 var(--mono);
  min-width: 48px;
  text-align: center;
}
.deckhero-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 42vw;
  overflow: hidden;
}
.deckhero-dot {
  appearance: none;
  border: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.deckhero-dot i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bfd7e7;
  transition: background .15s ease, transform .15s ease;
}
.deckhero-dot[aria-current="true"] i { background: var(--accent); transform: scale(1.45); }
.deckhero-dot:hover i { background: #7fb3d3; }
.deckhero-progress {
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: rgba(191, 215, 231, .7);
  overflow: hidden;
}
.deckhero-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .1s linear;
}
.deckhero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 600 12px/1.3 var(--mono);
  text-decoration: none;
  white-space: nowrap;
}
.deckhero-scroll:hover { color: var(--accent); }
.deckhero-chev {
  display: inline-block;
  animation: deckNudge 1.8s ease-in-out infinite;
}
.deckhero.at-end .deckhero-chev { animation-duration: .9s; }
@keyframes deckNudge {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(4px); }
}

/* ------------------------------------------------------------ top intro */

.top-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 24px clamp(30px, 4vw, 48px);
}
.top-intro-copy { min-width: 0; }
.top-intro h1 { max-width: 18ch; }
.top-intro .lede { margin-top: 20px; max-width: 58ch; }
.intro-hint {
  margin: 18px 0 0;
  color: var(--accent);
  font: 700 12.5px/1.4 var(--mono);
  letter-spacing: .02em;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}
.btn-large {
  min-height: 54px;
  padding: 0 26px;
  font-size: 17px;
  font-weight: 700;
}
.top-intro-art { min-width: 0; text-align: center; }
.top-logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
}
#top { scroll-margin-top: 14px; }
#deckHero { scroll-margin-top: 10px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  text-decoration: none;
  font: 600 15px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #9cc9e6; color: var(--text); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 103, 156, .22);
}
.btn-primary:hover { background: #12587f; border-color: #12587f; color: #fff; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }

/* --------------------------------------------------------------- layout */

main { position: relative; z-index: 1; display: block; }

.section, .hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 24px;
}

.hero { padding-top: 34px; }
.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 12px/1.3 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 850;
}
.lede {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.hero-note { margin: 14px 0 0; color: var(--dim); font-size: 13.5px; }

h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.prose { max-width: 76ch; }
.prose p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.prose p:last-child { margin-bottom: 0; }

.muted { color: var(--dim); font-size: 13.5px; }

/* --------------------------------------------------------------- hero mock */

.mock {
  margin: 38px 0 0;
  max-width: 780px;
}
.mock-slide {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(59, 159, 232, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 340px at 82% -10%, rgba(124, 201, 245, .42), transparent 66%),
    linear-gradient(160deg, #ffffff 0%, #f3fbff 72%, #e9f6ff 100%);
  box-shadow: 0 26px 60px rgba(42, 101, 145, .14), inset 0 1px 0 #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.mock-slide:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 120, 180, .10) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .55;
  pointer-events: none;
}
.mock-band { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mock-kicker {
  color: var(--accent);
  font: 700 clamp(9px, 1vw, 12px)/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mock-tag {
  border: 1px solid rgba(31, 120, 180, .30);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--accent);
  font: 700 clamp(8px, .85vw, 11px)/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mock-headline {
  position: relative;
  margin: 0;
  max-width: 18ch;
  font-size: clamp(20px, 3.1vw, 34px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 800;
}
.mock-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1.2vw, 12px);
  height: clamp(70px, 16vw, 150px);
  margin-top: auto;
}
.mock-chart i {
  flex: 1;
  min-width: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #4aa8e0, #1f78b4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mock-chart .b1 { height: 38%; }
.mock-chart .b2 { height: 54%; }
.mock-chart .b3 { height: 47%; }
.mock-chart .b4 { height: 71%; }
.mock-chart .b5 { height: 88%; }
.mock-chart .b6 { height: 100%; background: linear-gradient(180deg, #7cc9f5, #3b9fe8); }
.mock-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font: 600 clamp(9px, 1vw, 12px)/1.3 var(--mono);
}
.mock-play { color: var(--accent); }
.mock figcaption {
  margin-top: 10px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------- sections */

.section { border-top: 1px solid var(--line-soft); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 20px 20px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 26px rgba(42, 101, 145, .06);
}
.features p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 20px 20px 18px 58px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  counter-increment: step;
}
.steps li:before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 12px/1 var(--mono);
}
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.section-action { margin: 24px 0 0; }

.beta {
  background: linear-gradient(150deg, rgba(233, 246, 255, .9), rgba(255, 255, 255, .55));
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  margin-top: 30px;
  margin-bottom: 30px;
}
.beta p { max-width: 72ch; color: var(--muted); }
.beta-amount {
  margin: 16px 0 6px;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.03em;
}

.faq { margin: 0; max-width: 78ch; }
.faq dt { margin: 18px 0 4px; font-weight: 700; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 0; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------- footer */

.site-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 12.5px;
}
.site-foot-brand { display: flex; flex-direction: column; gap: 4px; }
.site-foot .foot-logo { display: block; width: 124px; height: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }

.noscript {
  max-width: 70ch;
  margin: 0 auto 30px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1000px) and (min-width: 761px) {
  .deckhero-bar { flex-wrap: wrap; }
  .deckhero-dots { max-width: 32vw; }
}

@media (max-width: 760px) {
  .top-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }
  .top-intro-art { order: -1; }
  .top-logo { max-width: 260px; }
  .top-intro h1 { max-width: none; }
  .deckhero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 78px 16px 22px;
  }
  .deckhero-stage {
    position: relative;
    inset: auto;
    display: block;
    padding: 0;
  }
  .deckhero-frame-wrap { margin: 0 auto; }
  .deckhero-mock {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    transform: none;
    display: grid;
    place-items: center;
  }
  .deckhero-status {
    position: static;
    align-self: center;
    margin: 12px auto 0;
    max-width: 100%;
  }
  .deckhero-bar {
    position: static;
    margin-top: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0 0;
    background: none;
  }
  .deckhero-controls { justify-content: center; flex-wrap: wrap; }
  .deckhero-dots { max-width: 56vw; }
  .deckhero-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .deckhero-scroll {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .deckhero-progress { width: 64px; }
  .intro h1 { max-width: none; }
}

@media (max-width: 720px) {
  .site-nav { gap: 4px 14px; font-size: 13px; }
  .site-nav .btn-small { order: -1; }
  .section, .hero { padding-top: 34px; padding-bottom: 34px; }
  .hero { padding-top: 20px; }
  .mock-slide { padding: 16px; }
  .mock-play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .deckhero-chev { animation: none; }
  .deckhero-progress { display: none; }
  .deckhero-frame, .deckhero-mock { transition: none; }
}
