/* skye-web: the site's design language is the product's own.
   Warm paper, dotted canvas, ink type, role colors from the app.
   One composed hero scene; one task told in four differently-composed beats. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter[opsz,wght].ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic[opsz,wght].ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono[wght].ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f4f1;
  --card: #fcfbfa;
  --ink: #1c1917;
  --ink-soft: #55504a;
  --ink-faint: #8a847c;
  --line: rgba(28, 25, 23, 0.1);
  --dots: rgba(28, 25, 23, 0.13);
  --pm: #6d5bd0;
  --dev: #2b8fd6;
  --front: #d9732f;
  --amber: #c98a0a;
  --amber-bg: #fdf3e0;
  --amber-line: #ecdcb4;
  --green: #2f9e4f;
  --neon: #f5ff00;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 24px rgba(28,25,23,.07), 0 24px 64px rgba(28,25,23,.08);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dots) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--neon); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--neon); }

a { color: inherit; }

/* ---------- top bar ---------- */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }

.wordmark {
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.top nav { display: flex; align-items: center; gap: 10px; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(28,25,23,.06); }

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: var(--neon);
  border: 1.5px solid var(--ink);
  padding: 8px 17px;
  border-radius: 999px;
  transition: transform .18s, box-shadow .18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 150px 24px 0;
  text-align: center;
}

.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 1.5px var(--ink);
  margin-right: 9px;
  vertical-align: 1px;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 0 rgba(245,255,0,.7); } 100% { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 12px rgba(245,255,0,0); } }
mark.neon { background: linear-gradient(transparent 58%, var(--neon) 58%, var(--neon) 94%, transparent 94%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.hero-kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-typed {
  margin-top: 12px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  font-weight: 500;
}
.typed-wrap { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, var(--neon) 62%); padding: 0 2px; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--ink);
  margin-left: 3px;
  vertical-align: -0.15em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform .18s, box-shadow .18s, background .2s, color .2s;
}
.btn-ink { background: var(--neon); color: var(--ink); font-weight: 600; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn-ink:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ink:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-soft); background: var(--card); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-faint); }

/* ---------- the hero scene: product window, team nodes connecting in ---------- */
.scene {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1020px, calc(100vw - 48px));
  margin-top: 64px;
}

/* ---------- screenshots ---------- */
.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  position: relative;
  z-index: 1;
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.shot:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(28,25,23,.06), 0 16px 40px rgba(28,25,23,.1), 0 36px 96px rgba(28,25,23,.12); }
.shot img { display: block; width: 100%; height: auto; }

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

/* ---------- node tags ---------- */
.node-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-goal { background: var(--neon); box-shadow: 0 0 0 1.5px var(--ink); }
.dot-pm { background: var(--pm); }
.dot-dev { background: var(--dev); }
.dot-front { background: var(--front); }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--neon); box-shadow: 0 0 0 1.5px var(--ink); }
.dot-ink { background: var(--ink); }

/* ---------- the flow ---------- */
.flow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 130px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 150px;
}

.node h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 14px 0 16px;
}

.lede {
  color: var(--ink-soft);
  font-size: 17.5px;
  max-width: 32em;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* beat 1 + 4: centered text, screen below */
.node-center { text-align: center; }
.node-center .node-tag { justify-content: center; }
.node-center .lede { margin: 0 auto; }
.node-center .shot { margin-top: 44px; }
.node-center .shot-inset { max-width: 900px; margin-left: auto; margin-right: auto; }

/* beat 2 + 3: screen with the text card overlapping its edge */
.node-overlap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.node-overlap .shot { grid-column: 1 / 10; grid-row: 1; }
.node-overlap .node-text {
  grid-column: 9 / 13;
  grid-row: 1;
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.node-overlap.node-flip .shot { grid-column: 4 / 13; }
.node-overlap.node-flip .node-text { grid-column: 1 / 5; }
#n-ask .node-text { align-self: start; margin-top: 44px; }
.node-overlap .node-text.amber-card {
  background: var(--amber-bg);
  border-color: var(--amber-line);
}
.amber-card .node-tag { color: #9a6f12; }

/* ---------- workers ---------- */
.workers {
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 24px 30px;
  text-align: center;
}
.workers h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.workers .lede { margin: 0 auto; }
.worker-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.worker-row .chip { font-size: 14px; padding: 10px 20px; background: var(--card); }

.chip {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--card);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip em { font-style: normal; color: var(--ink-faint); }

/* ---------- honest status ---------- */
.status {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px;
  text-align: center;
}
.status .node-tag { justify-content: center; }
.status-line {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* ---------- install ---------- */
.install {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  text-align: center;
}
.install h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.install .lede { margin: 0 auto 34px; }

.term {
  position: relative;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  overflow-x: auto;
}
.term pre {
  font-family: 'Geist Mono', monospace;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}
.term .dim { color: var(--ink-faint); }

.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--ink); border-color: var(--ink-faint); }
.copy.copied { color: var(--ink); background: var(--neon); border-color: var(--ink); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 28px 48px;
  text-align: center;
}
footer .wordmark { font-size: 17px; }
.fine {
  margin: 10px auto 0;
  font-size: 13.5px;
  color: var(--ink-faint);
  max-width: 60em;
}
.fine a { color: var(--ink-soft); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  opacity: 0;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  background: var(--card);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-hint {
  color: rgba(245, 244, 241, 0.8);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}

/* ---------- rise on scroll ---------- */
.rise {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.rise.in { opacity: 1; transform: none; }

/* verification mode: everything settled */
html.still .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
html.still .caret, html.still .hero-kicker::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .caret, .hero-kicker::before { animation: none; }
  .btn-ink { transition: none; }
  .lightbox { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 122px; }
  .flow { gap: 100px; padding-top: 90px; }
  .node-overlap { display: flex; flex-direction: column; gap: 0; }
  .node-overlap .shot { order: 2; margin-top: -30px; }
  .node-overlap .node-text { order: 1; margin: 0 12px; }
  .node-overlap.node-flip .node-text { align-self: stretch; }
  .term pre { font-size: 12.5px; }
}

/* ---------- cloud edition: hero note, phone section, commands, questions ---------- */
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }
code {
  font-family: 'Geist Mono', monospace;
  font-size: .86em;
  background: rgba(28,25,23,.07);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}

.phone-sec {
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px 24px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.phone-sec h2, .cmds-sec h2, .faq h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 14px 0 16px;
}
.steps { list-style: none; counter-reset: step; margin: 28px 0 30px; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--ink-soft); font-size: 16.5px; }
.steps li b { color: var(--ink); font-weight: 600; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 600;
  background: var(--neon); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink);
}
.phone-copy .btn { display: inline-block; }

.phone {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 16px 14px 20px;
  max-width: 380px;
  width: 100%;
  justify-self: end;
}
.phone-top {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}
.phone-top b { color: var(--ink); font-size: 14px; }
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: 'Geist Mono', monospace; font-weight: 600;
}
.msgs { display: flex; flex-direction: column; }
.msg {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 18px;
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.38;
}
.msg.me { align-self: flex-end; background: #2f7cf6; color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: #ebe9e5; color: var(--ink); border-bottom-left-radius: 6px; }
.msg code { background: rgba(28,25,23,.1); font-size: 12.5px; }
.msg.me + .msg.them, .msg.them + .msg.me { margin-top: 9px; }

.cmds-sec, .faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 24px 0;
}
.cmds-sec { text-align: center; }
.cmds-sec .lede { margin: 0 auto 30px; }
.cmds {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}
.cmds dt { font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.cmds dd { color: var(--ink-soft); font-size: 15.5px; }

.faq h2 { text-align: center; margin-bottom: 26px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; list-style-position: outside; }
.faq details p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; }

@media (max-width: 900px) {
  .phone-sec { grid-template-columns: 1fr; gap: 44px; padding-top: 100px; }
  .phone { justify-self: center; }
  /* the text card sits above its screen, not over it: the screen's top is the point */
  .node-overlap .shot { margin-top: 16px; }
  .nav-hide { display: none; }
  .cmds { grid-template-columns: 1fr; gap: 2px; }
  .cmds dd { margin-bottom: 10px; }
}

/* ---------- pricing ---------- */
.pricing { max-width: 860px; margin: 0 auto; padding: 110px 24px 0; text-align: center; }
.pricing h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 14px; }
.pricing .lede { margin: 0 auto 34px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan-main { border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.price { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }
.price b { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.plan-note { font-size: 14px; color: var(--ink-faint); margin-top: 2px; }
.plan ul { list-style: none; margin: 18px 0 22px; display: grid; gap: 8px; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.plan li::before { content: '\2713'; margin-right: 10px; font-weight: 700; color: var(--ink); }
.plan .btn { align-self: flex-start; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
