/* ========================================================
   Patch Marketing Site — Main Stylesheet
   Design: variant 13-product-callouts-blue (designer handoff)
   ======================================================== */

/* ---- Custom Properties ---- */
:root {
  --bg: #fbfbfb;
  --paper: #fff;
  --ink: #2a2d33;
  --sub: #5b6066;
  --faint: #9aa0a7;
  --line: #ededee;
  --line2: #e2e2e4;

  /* Brand blue (called "orange" in the handoff for legacy reasons — the design uses blue) */
  --orange: #0a7aff;
  --orange-d: #0a61cf;
  --orange-soft: #e8f1ff;
  --orange-line: #cfe0fb;

  --green: #1f9d57;
  --green-soft: #e7f4ed;
  --gray: #aeb2b8;
  --gray-soft: #f1f2f3;

  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ui: "Geist", system-ui, -apple-system, sans-serif;
  --disp: "Instrument Sans", "Geist", system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--disp); }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--orange-soft); }

/* ---- Layout ---- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--mono); letter-spacing: 0; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.16s;
  white-space: nowrap;
}
.btn-pri { background: var(--orange); color: #fff; }
.btn-pri:hover { background: var(--orange-d); }
.btn-gho { background: var(--paper); color: var(--ink); border-color: var(--line2); }
.btn-gho:hover { border-color: var(--ink); }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.arrow { transition: transform 0.16s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 251, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
  font-family: var(--ui);
}
.nav.scr { border-bottom-color: var(--line); }
.nav-in {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand .m {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(10, 97, 207, 0.3);
}
.nlinks {
  display: flex;
  gap: 2px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav.scr .nlinks { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.nlink {
  font-size: 14.5px;
  color: var(--sub);
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.nlink:hover { color: var(--ink); }
.nact { display: flex; align-items: center; gap: 12px; }
.signin { font-size: 14.5px; font-weight: 500; }
.signin:hover { color: var(--orange-d); }

/* ---- Mobile nav (hamburger) ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: var(--paper);
  border: 1.5px solid var(--line2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav {
  display: none;
  flex-direction: column;
  gap: 2px;
  background: rgba(251, 251, 251, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 18px;
}
.mnav.open { display: flex; }
.mnav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mnav-link:hover { color: var(--orange-d); }
.mnav-act { display: flex; gap: 10px; margin-top: 14px; }
.mnav-act .btn { flex: 1; justify-content: center; }

/* ---- Hero ---- */
.hero { padding: 112px 0 92px; position: relative; overflow: hidden; }
.hero-deco { display: none; }
.hero .hero-grid { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 64px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange-d);
  margin-bottom: 22px;
}
.tag .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .o { color: var(--orange); }
.hero p {
  margin-top: 22px;
  font-size: 19px;
  color: var(--sub);
  max-width: 40ch;
  line-height: 1.55;
}
.hero-cta { margin-top: 30px; display: flex; gap: 11px; flex-wrap: wrap; }
.hero-foot { margin-top: 24px; font-size: 14px; color: var(--faint); }

/* ---- Terminal ---- */
.term {
  background: #15171c;
  border: 1px solid #15171c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -42px rgba(16, 18, 22, 0.5);
  text-align: left;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #24272f;
  background: #1b1e25;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.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-bar .nm { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: #7c828c; }
.term-body {
  padding: 20px 20px 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: #e4e8ee;
  /* Fixed height — no resize, no layout jump while typing */
  height: 268px;
  overflow: hidden;
  resize: none;
  white-space: pre-wrap;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #3b8bff;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.tp { color: #5aa6ff; }
.tc { color: #fff; font-weight: 600; }
.tdim { color: #7c828c; }
.tok { color: #5fd38d; }
.tacc { color: #5aa6ff; }

/* ---- Sections ---- */
.sec { padding: 120px 0; }
#int { border-top: 1px solid var(--line); padding-top: 108px; }
.head { max-width: 680px; margin: 0 auto 8px; text-align: center; }
.kick { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }
.head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.head p { margin-top: 15px; font-size: 18px; color: var(--sub); }

/* ---- Product Callouts ---- */
.callout {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
}
.callout.rev .co-ui { order: -1; }
.co-ui {
  background: var(--gray-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-ui .ui { width: 100%; }
.co-copy .ek {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.co-copy .ek b {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--gray-soft);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  color: var(--sub);
  font-weight: 700;
}
.co-copy h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.co-copy p { margin-top: 14px; font-size: 17px; color: var(--sub); line-height: 1.55; max-width: 36ch; }
.co-list { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.co-list .li { display: flex; gap: 11px; font-size: 15px; color: var(--sub); }
.co-list .li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* ---- UI Panel Base ---- */
.ui {
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(27, 23, 18, 0.28);
}
.ui-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafafb;
}
.ui-ttl { font-weight: 600; font-size: 14px; }
.ui-ttl span { color: var(--faint); font-weight: 400; }
.ui-tag { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; }
.t-live { background: var(--green-soft); color: var(--green); }
.t-roll { background: var(--orange-soft); color: var(--orange-d); }
.ui-body { padding: 22px; }

/* ---- Rollout Panel ---- */
.rollout { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 128px; height: 128px; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--gray-soft); }
.ring .prog {
  stroke: var(--orange);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .center .pct { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring .center .lbl { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.rm { display: flex; flex-direction: column; gap: 13px; }
.rm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14px; }
.rm-row span { color: var(--sub); }
.rm-row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-row b.ok { color: var(--green); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: 4px; }
.spark i { flex: 1; background: var(--gray-soft); border-radius: 3px 3px 0 0; height: 0; transition: height 0.9s cubic-bezier(0.3, 0.8, 0.3, 1); }
.spark i.on { background: var(--orange); }

/* ---- Releases Panel ---- */
.rel { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; }
.rel + .rel { border-top: 1px solid var(--line); }
.rel .v { font-family: var(--mono); font-size: 13px; font-weight: 600; width: 58px; }
.rel .msg { font-size: 14px; color: var(--sub); }
.rel .msg b { color: var(--ink); font-weight: 600; display: block; font-family: var(--sans); font-size: 13.5px; }
.rel .st { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.st-live { background: var(--green-soft); color: var(--green); }
.st-rev { background: var(--gray-soft); color: #7c7468; }
.st-now { background: var(--orange-soft); color: var(--orange-d); }
.rb-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-d);
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: 8px;
  padding: 8px 13px;
  white-space: nowrap;
  cursor: pointer;
}
.rb-btn.pulse { animation: rbpulse 2.4s ease-in-out infinite; }
@keyframes rbpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 122, 255, 0); }
  40% { box-shadow: 0 0 0 5px rgba(10, 122, 255, 0.14); }
}

/* ---- Channels Panel ---- */
.chan { display: flex; flex-direction: column; gap: 18px; }
.chan-row { display: grid; grid-template-columns: 96px 1fr 46px; gap: 14px; align-items: center; }
.chan-row .nm { font-size: 14px; font-weight: 600; }
.chan-row .nm i { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); font-weight: 400; font-style: normal; margin-top: 1px; }
.chan-bar { height: 8px; border-radius: 8px; background: var(--gray-soft); overflow: hidden; }
.chan-bar i { display: block; height: 100%; border-radius: 8px; width: 0; transition: width 1.2s cubic-bezier(0.3, 0.8, 0.3, 1); }
.chan-bar i.full { background: var(--green); }
.chan-bar i.part { background: var(--orange); }
.chan-pct { font-family: var(--mono); font-size: 12.5px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Coverage Panel ---- */
.cov { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.donut { position: relative; width: 120px; height: 120px; }
.donut svg { transform: rotate(-90deg); }
.donut .track { stroke: var(--gray-soft); }
.donut .seg-w { stroke: var(--green); transition: stroke-dashoffset 1.4s cubic-bezier(0.3, 0.8, 0.3, 1); }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .center .pct { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.donut .center .lbl { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.cov-list { display: flex; flex-direction: column; gap: 9px; }
.cov-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; }
.cov-row .fn { color: var(--sub); flex: 1; }
.pill { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 5px; }
.pill.w { background: var(--green-soft); color: var(--green); }
.pill.s { background: var(--orange-soft); color: var(--orange-d); }
.pill.n { background: var(--gray-soft); color: #7c7468; }

/* ---- SDK Integration Section ---- */
.sdk-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 66px;
  align-items: center;
}
/* Grid items default to min-width: auto, so the wide code window (and long inline
   commands) would force the track past the viewport on mobile. Allow them to
   shrink so the code window's own overflow-x: auto scrolls instead. */
.sdk-grid > * { min-width: 0; }
.sdk-steps { display: flex; flex-direction: column; min-width: 0; }
.sdk-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.sdk-step:first-child { border-top: 0; padding-top: 0; }
.sdk-step .n { font-size: 14px; color: var(--faint); font-weight: 700; padding-top: 2px; }
.sdk-step h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.01em; }
.sdk-step p { font-size: 14.5px; color: var(--sub); line-height: 1.5; }
.sdk-step code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--gray-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink);
  /* Long commands (brew install patch-release/tap/patchcli) break instead of
     pushing the column wider than a phone screen. */
  overflow-wrap: anywhere;
}
.codewin {
  background: #15171c;
  border: 1px solid #15171c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -42px rgba(16, 18, 22, 0.5);
  min-width: 0;
}
.codewin .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #24272f;
  background: #1b1e25;
}
.codewin .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.codewin .bar i:nth-child(1) { background: #ff5f57; }
.codewin .bar i:nth-child(2) { background: #febc2e; }
.codewin .bar i:nth-child(3) { background: #28c840; }
.codewin .bar .nm { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: #7c828c; }
.codewin .code { padding: 18px 14px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.92; overflow-x: auto; resize: none; }
.cl { display: block; padding: 0 10px; border-left: 2px solid transparent; white-space: pre; color: #e4e8ee; }
.cl.add { background: rgba(95, 211, 141, 0.12); border-left-color: #5fd38d; }
.cl .g { color: #5fd38d; user-select: none; }
.cl .gp { color: #3a3f46; user-select: none; }
.ckw { color: #c792ea; }
.cty { color: #7cc5e0; }
.cat { color: #5aa6ff; }
.cst { color: #7fd99a; }
.sdk-foot { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---- Deployment Terminals ---- */
.dep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.dep-cap { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.dep-col { display: flex; flex-direction: column; }
.dwin {
  background: #15171c;
  border: 1px solid #15171c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -42px rgba(16, 18, 22, 0.5);
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.dwin:hover {
  border-color: #3a414c;
  box-shadow: 0 38px 82px -40px rgba(16, 18, 22, 0.62);
  transform: translateY(-3px);
}
.dwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #24272f;
  background: #1b1e25;
}
.dwin-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dwin-bar i:nth-child(1) { background: #ff5f57; }
.dwin-bar i:nth-child(2) { background: #febc2e; }
.dwin-bar i:nth-child(3) { background: #28c840; }
.dwin-bar .nm { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: #7c828c; }
.dwin-body {
  padding: 22px 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: #e4e8ee;
  white-space: pre;
  /* Height = content (flex: none). The two terminals are kept equal-height by the
     grid (.dep-cols align-items: stretch + .dwin flex: 1): the taller window (the
     CI YAML) sets the height and the shorter one fills to match with terminal
     space below — so neither is ever clipped. */
  overflow: hidden;
  resize: none;
  flex: none;
}
.dp { color: #5aa6ff; }
.dc { color: #fff; font-weight: 600; }
.ddim { color: #7c828c; }
.dok { color: #5fd38d; }
.yk { color: #5aa6ff; }
.ys { color: #7fd99a; }
.yc { color: #7c828c; }
.yt { color: #d8b06a; }
.yp { color: #9aa0a7; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s;
}
.faq-q:hover { color: var(--orange-d); }
.faq-ico { flex: none; width: 18px; height: 18px; position: relative; }
.faq-ico::before, .faq-ico::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 2px;
}
.faq-ico::before { top: 8px; left: 0; right: 0; height: 2px; }
.faq-ico::after { left: 8px; top: 0; bottom: 0; width: 2px; transition: opacity 0.25s, transform 0.25s; }
.faq-item.open .faq-ico::after { opacity: 0; transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.32s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 26px; font-size: 16px; color: var(--sub); line-height: 1.6; max-width: 66ch; }

/* ---- Use Cases (tab panel) ---- */
.uct-wrap { display: grid; grid-template-columns: 248px 1fr; gap: 34px; align-items: start; }
.uct-list { display: flex; flex-direction: column; gap: 3px; }
.uct-list button {
  text-align: left;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--sub);
  background: none;
  border: 0;
  border-left: 2px solid var(--line);
  padding: 13px 16px;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.uct-list button small { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; }
.uct-list button:hover { color: var(--ink); }
.uct-list button.on { color: var(--ink); border-left-color: var(--orange); }
.uct-panel {
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 40px;
  min-height: 236px;
}
.uct-cmd {
  margin-top: 22px;
  background: #15171c;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: #e4e8ee;
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  box-shadow: 0 10px 24px -16px rgba(16, 18, 22, 0.5);
}
.uct-cmd .cd { color: #5aa6ff; margin-right: 8px; }
.uct-meta { margin-top: 16px; font-size: 13px; color: var(--faint); }
.uct-panel h3 { font-size: 25px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 10px; }
.uct-panel p { font-size: 16.5px; color: var(--sub); max-width: 52ch; line-height: 1.55; }
.uct-panel.fade { animation: ucfade 0.35s ease; }
@keyframes ucfade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---- Pricing ---- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.feat {
  border-color: var(--orange);
  box-shadow: 0 24px 56px -34px rgba(10, 122, 255, 0.45);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--orange);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--ui);
  white-space: nowrap;
}
.price-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.price-amt {
  margin-top: 14px;
  font-family: var(--disp);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amt .per { font-size: 16px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.price-cap { margin-top: 10px; font-size: 14px; color: var(--sub); }
.price-rule { height: 1px; background: var(--line); margin: 22px 0; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-feats li { display: flex; gap: 11px; font-size: 14.5px; color: var(--sub); line-height: 1.4; }
.price-feats li .ck { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--orange-d); }
.price-feats li.no { color: var(--faint); }
.price-feats li.no .ck { color: var(--gray); }
.price-feats li b { color: var(--ink); font-weight: 600; }
.price-card .btn { margin-top: 26px; width: 100%; justify-content: center; }

/* ---- CTA Section ---- */
.cta { padding: 136px 0; text-align: center; }
.cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.cta h2 .o { color: var(--orange); }
.cta p { margin-top: 16px; font-size: 19px; color: var(--sub); }
.cta-act { margin-top: 32px; display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 38px; font-family: var(--ui); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.foot p { font-size: 14.5px; color: var(--sub); max-width: 28ch; margin-top: 14px; }
.foot h5 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 14px; }
.foot a { display: block; font-size: 14.5px; color: var(--sub); padding: 4px 0; }
.foot a:hover { color: var(--orange-d); }
.foot-bot {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Scroll Animations ---- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  z-index: 200;
  box-shadow: 0 0 12px rgba(10, 122, 255, 0.5);
}
.r-init {
  opacity: 0;
  transform: translateY(20px) scale(0.992);
  filter: blur(3px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: opacity, transform, filter;
}
.r-init.r-left { transform: translateX(-26px) translateY(8px); }
.r-init.r-right { transform: translateX(26px) translateY(8px); }
.r-init.r-in { opacity: 1; transform: none; filter: none; }
[data-plx] { will-change: transform; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .callout { grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
  .co-ui { height: auto; padding: 30px; }
  .callout.rev .co-ui { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .sdk-grid { grid-template-columns: 1fr; gap: 32px; }
  .dep-cols { grid-template-columns: 1fr; gap: 34px; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .uct-wrap { grid-template-columns: 1fr; }
  .uct-list { flex-direction: row; overflow-x: auto; gap: 0; }
  .uct-list button { border-left: 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
  .uct-list button.on { border-left: 0; border-bottom-color: var(--orange); background: none; }
}
@media (max-width: 600px) {
  .nlinks, .signin, .nact .btn { display: none; }
  .nav-burger { display: flex; }
  .rollout { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .cov { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 24px; }
  /* Stacked deploy terminals: smaller mono so lines don't clip. Height is content
     (no fixed clamp) so the CI YAML is never cut off. */
  .dep-cols { grid-template-columns: 1fr; gap: 28px; }
  .dwin-body { font-size: 11.5px; padding: 18px 16px; }
  .term-body { font-size: 12px; height: 248px; padding: 18px 16px; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .r-init { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ============================================================
   COMPARISON / "ALTERNATIVE" LANDING PAGES
   (codepush-alternative, expo-eas-update-alternative)
============================================================ */

/* Eyebrow above the H1 */
.lp-eyebrow {
  display: inline-block;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--orange-d);
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

/* Landing hero — centered, narrower than the homepage split hero */
.lp-hero { padding: 84px 0 64px; text-align: center; }
.lp-hero h1 { max-width: 16ch; margin: 0 auto; }
.lp-hero .lp-sub {
  max-width: 60ch;
  margin: 20px auto 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--sub);
}
.lp-hero .hero-cta { justify-content: center; }

/* Prose blocks */
.lp-prose { max-width: 720px; margin: 0 auto; }
.lp-prose p { font-size: 17px; line-height: 1.75; color: var(--sub); margin-top: 18px; }
.lp-prose p:first-child { margin-top: 0; }
.lp-prose strong, .lp-prose b { color: var(--ink); font-weight: 600; }
.lp-prose a { color: var(--orange-d); font-weight: 500; }

/* Highlight banner (e.g. "CodePush retired March 2025") */
.lp-banner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  border-radius: 14px;
  padding: 22px 26px;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.lp-banner b { font-weight: 600; }

/* Comparison table */
.cmp-wrap { max-width: 920px; margin: 0 auto; overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 15px;
  min-width: 560px;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.cmp thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line2);
}
.cmp thead th.is-patch { color: var(--orange-d); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.cmp td { color: var(--sub); }
.cmp td.is-patch { color: var(--ink); background: var(--orange-soft); font-weight: 500; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp .yes { color: var(--green); font-weight: 600; }
.cmp .no { color: var(--faint); }

/* Two-column "who's it for" audience split */
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.lp-card {
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 30px 28px;
}
.lp-card.feat { border-color: var(--orange-line); background: var(--orange-soft); }
.lp-card h3 { font-size: 19px; margin-bottom: 6px; }
.lp-card p { font-size: 15.5px; line-height: 1.6; color: var(--sub); margin-top: 10px; }
.lp-card .lp-card-tag {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.lp-card.feat .lp-card-tag { color: var(--orange-d); }

@media (max-width: 720px) {
  .lp-hero { padding: 64px 0 48px; }
  .lp-hero .lp-sub { font-size: 17px; }
  .lp-split { grid-template-columns: 1fr; }
  .cmp th, .cmp td { padding: 12px 12px; font-size: 14px; }
}
