/*
 * The landing page's own chrome.
 *
 * The app's two stylesheets are vendored beside this one and loaded first, so
 * every colour, typeface, easing and radius here is the product's own token —
 * nothing is redefined. What this file adds is page-scale layout the app never
 * needed: a wide hero, a sticky nav, section rhythm, and the demo.
 *
 * Light only, by instruction. There is no dark-mode block and there should not
 * be one.
 */

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-chrome);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sea-700); }

:focus-visible {
  outline: 2px solid var(--edge-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--sea-600); color: #fff;
  padding: 10px 16px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section + section { padding-top: 0; }

.sec-head { max-width: 680px; margin: 0 0 44px; }

.eyebrow {
  font-family: var(--font-record);
  font-size: var(--t-overline);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--font-territory); font-weight: 600; color: var(--text-primary); }

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 14px;
}

h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }

.lede {
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
}

code, kbd, samp, .mono { font-family: var(--font-record); }

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 241, 233, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-standard), background .25s var(--ease-standard);
}
.nav.is-stuck { border-bottom-color: var(--edge-hair); }

.nav-in {
  display: flex; align-items: center; gap: 24px;
  height: 62px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-territory);
  font-size: 19px; font-weight: 600;
  color: var(--text-primary); text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text-primary); }

.brand-mark {
  width: 22px; height: 22px; flex: none;
  display: block;
}

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }

.nav-links a {
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; font-weight: 500;
  transition: color .16s var(--ease-standard);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-family: var(--font-record) !important;
  font-size: 12.5px !important;
  background: var(--sea-600); color: #fff !important;
  padding: 8px 14px; border-radius: 7px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--sea-700); color: #fff !important; }

@media (max-width: 720px) {
  .nav-links .hide-sm { display: none; }
}

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

.hero { padding: 72px 0 64px; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-record);
  font-size: var(--t-record-sm);
  color: var(--sea-800);
  background: var(--sea-50);
  border: 1px solid var(--sea-100);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 24px;
}

.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sea-600);
  animation: pulse var(--pulse-period) var(--ease-standard) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 auto 20px;
  max-width: 15ch;
}

.hero .lede { max-width: 56ch; margin: 0 auto 32px; font-size: 18px; }

.hero-note {
  font-size: 13.5px; color: var(--text-tertiary);
  margin: 22px auto 0; max-width: 54ch;
}

/* --------------------------------------------------------- install line -- */

.install {
  display: flex; align-items: stretch;
  max-width: 640px; margin: 0 auto;
  background: var(--ink-900);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 1px 2px rgba(26,28,27,.14), 0 8px 24px -12px rgba(26,28,27,.4);
}

.install code {
  flex: 1 1 auto;
  padding: 15px 18px;
  font-size: 13px;
  color: #E8EDEC;
  overflow-x: auto;
  white-space: nowrap;
  display: flex; align-items: center;
  scrollbar-width: thin;
}
.install code .prompt { color: var(--sea-300); margin-right: 10px; user-select: none; }

.copy-btn {
  flex: none;
  border: 0; border-left: 1px solid rgba(255,255,255,.1);
  background: transparent; color: #AFBAB8;
  font-family: var(--font-chrome); font-size: 12.5px; font-weight: 600;
  padding: 0 18px; cursor: pointer;
  transition: background .16s var(--ease-standard), color .16s var(--ease-standard);
  min-width: 86px;
}
.copy-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.copy-btn.is-done { color: var(--sea-300); }

/* ------------------------------------------------------------- the shot -- */

.shot-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-sheet);
  border: 1px solid var(--edge-hair);
  box-shadow: 0 1px 2px rgba(26,28,27,.05), 0 24px 60px -30px rgba(26,28,27,.45);
}

.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--paper-300);
  border-bottom: 1px solid var(--edge-hair);
}
.shot-bar i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-600); display: block;
}
.shot-bar .ttl {
  margin-left: 10px;
  font-family: var(--font-record);
  font-size: var(--t-record-xs);
  color: var(--text-tertiary);
}

.shot-frame img { width: 100%; height: auto; display: block; }

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

/* Reveal on scroll. */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-decelerate), transform .7s var(--ease-decelerate);
}
.rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .badge .dot { animation: none; }
}

/* --------------------------------------------------------------- strips -- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--edge-hair-soft);
  border: 1px solid var(--edge-hair-soft);
  border-radius: 10px;
  overflow: hidden;
}

.strip div {
  background: var(--surface-sheet);
  padding: 22px 20px;
}

.strip dt {
  font-family: var(--font-record);
  font-size: var(--t-overline);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.strip dd {
  margin: 0; font-size: 14px; line-height: 1.5;
  color: var(--text-secondary);
}
.strip dd b { color: var(--text-primary); font-weight: 600; }

@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- features -- */

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; gap: 24px; } }

.feat {
  background: var(--surface-sheet);
  border: 1px solid var(--edge-hair);
  border-radius: 11px;
  padding: 26px 24px;
  transition: transform .3s var(--ease-standard), box-shadow .3s var(--ease-standard),
              border-color .3s var(--ease-standard);
}
.feat:hover {
  transform: translateY(-3px);
  border-color: var(--sea-200);
  box-shadow: 0 1px 2px rgba(26,28,27,.04), 0 16px 32px -20px rgba(26,28,27,.4);
}

.feat-ico {
  width: 34px; height: 34px; margin-bottom: 16px;
  color: var(--sea-600);
}
.feat-ico svg { width: 100%; height: 100%; display: block; }

.feat p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }

.feat code {
  font-size: 12.5px;
  background: var(--surface-inset);
  padding: 1px 5px; border-radius: 4px;
  color: var(--ink-800);
}

/* ----------------------------------------------------------- split rows -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}
.split + .split { margin-top: 88px; }
.split.flip > *:first-child { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > *:first-child { order: 0; }
  .split + .split { margin-top: 64px; }
}

.split p { color: var(--text-secondary); font-size: 15.5px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 14.5px; color: var(--text-secondary);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--sea-600);
  border-bottom: 2px solid var(--sea-600);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- demo -- */

.demo {
  background: var(--surface-sheet);
  border: 1px solid var(--edge-hair);
  border-radius: 14px;
  overflow: hidden;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

.demo-pane { padding: 26px; }
.demo-pane + .demo-pane {
  border-left: 1px solid var(--edge-hair);
}
@media (max-width: 860px) {
  .demo-pane + .demo-pane { border-left: 0; border-top: 1px solid var(--edge-hair); }
}

.demo-pane.is-machine { background: var(--paper-100); }

.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--edge-hair-soft);
}

.pane-name {
  font-family: var(--font-territory);
  font-size: 17px; font-weight: 600;
}
.pane-sub {
  font-family: var(--font-record);
  font-size: var(--t-record-xs);
  color: var(--text-tertiary);
}

.pill {
  font-family: var(--font-record);
  font-size: var(--t-record-xs);
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--live-edge);
  background: var(--live-soft);
  color: var(--live-on);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.pill .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--sea-600);
  animation: pulse var(--pulse-period) var(--ease-standard) infinite;
}
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

/* The little file tree / action list inside the demo. */
.demo-actions { display: flex; flex-direction: column; gap: 9px; }

.act {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--surface-sheet-raised);
  border: 1px solid var(--edge-hair);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-chrome);
  font-size: 13.5px; color: var(--text-primary);
  cursor: pointer;
  transition: border-color .18s var(--ease-standard), background .18s var(--ease-standard),
              transform .18s var(--ease-standard);
}
.act:hover { border-color: var(--sea-300); transform: translateX(2px); }
.act:disabled { opacity: .5; cursor: default; transform: none; }

.act .k {
  font-family: var(--font-record);
  font-size: var(--t-record-xs);
  color: var(--text-tertiary);
  margin-left: auto; white-space: nowrap;
}

.act-ico { width: 16px; height: 16px; color: var(--sea-600); flex: none; }

/* The log the demo writes into. */
.demo-log {
  font-family: var(--font-record);
  font-size: 12px;
  line-height: 1.75;
  background: var(--ink-900);
  color: #D7DEDC;
  border-radius: 9px;
  padding: 14px 16px;
  height: 232px;
  overflow-y: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.demo-log .ok   { color: var(--sea-300); }
.demo-log .warn { color: var(--ochre-300); }
.demo-log .dim  { color: #76817F; }

.demo-log .line {
  animation: logIn .32s var(--ease-decelerate) both;
}
@keyframes logIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-log .line { animation: none; }
}

/* Files list on the machine side. */
.files { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }

.file {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-record);
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: 5px;
}
.file.is-new {
  background: var(--sea-50);
  color: var(--sea-800);
  animation: fileIn .4s var(--ease-decelerate) both;
}
@keyframes fileIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .file.is-new { animation: none; } }

.file .sz { margin-left: auto; color: var(--text-tertiary); font-size: 11px; }

.demo-foot {
  border-top: 1px solid var(--edge-hair);
  background: var(--paper-300);
  padding: 13px 22px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}

.reset-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-chrome); font-size: 12.5px;
  color: var(--text-link); font-weight: 500;
  padding: 0;
}
.reset-btn:hover { color: var(--sea-700); text-decoration: underline; }

/* ------------------------------------------------------------- the prompt */

.prompt-box {
  background: var(--surface-sheet);
  border: 1px solid var(--edge-hair);
  border-radius: 11px;
  overflow: hidden;
}

.prompt-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--edge-hair);
  background: var(--paper-300);
}
.prompt-head span {
  font-family: var(--font-record);
  font-size: var(--t-record-sm);
  color: var(--text-secondary);
}

.prompt-text {
  margin: 0; padding: 20px;
  font-family: var(--font-record);
  font-size: 13px; line-height: 1.75;
  color: var(--ink-800);
  white-space: pre-wrap;
  max-height: 300px; overflow-y: auto;
}

.btn-sm {
  background: var(--sea-600); color: #fff;
  border: 0; border-radius: 7px;
  font-family: var(--font-chrome); font-size: 12.5px; font-weight: 600;
  padding: 8px 15px; cursor: pointer;
  transition: background .16s var(--ease-standard);
}
.btn-sm:hover { background: var(--sea-700); }
.btn-sm.is-done { background: var(--moss-600); }

/* ------------------------------------------------------------ downloads -- */

.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface-sheet);
  border: 1px solid var(--edge-hair);
  border-radius: 10px;
  overflow: hidden;
}
.dl-table th, .dl-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--edge-hair-soft);
}
.dl-table th {
  font-family: var(--font-record);
  font-size: var(--t-overline);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--paper-300);
  font-weight: 500;
}
.dl-table tr:last-child td { border-bottom: 0; }
.dl-table td.mono { font-family: var(--font-record); font-size: 12.5px; }

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ faq -- */

.faq { max-width: 760px; }

.qa {
  border-bottom: 1px solid var(--edge-hair);
}
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 40px 19px 0;
  position: relative;
  font-family: var(--font-territory);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}
.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease-standard);
}
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.qa summary:hover { color: var(--sea-700); }

.qa-body {
  padding: 0 8px 22px 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-secondary);
  animation: qaIn .28s var(--ease-decelerate) both;
}
@keyframes qaIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .qa-body { animation: none; } }

.qa-body p { margin: 0 0 11px; }
.qa-body p:last-child { margin-bottom: 0; }
.qa-body code {
  font-size: 12.5px; background: var(--surface-inset);
  padding: 1px 5px; border-radius: 4px;
}

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

.foot {
  border-top: 1px solid var(--edge-hair);
  margin-top: 96px;
  padding: 40px 0 56px;
  background: var(--paper-100);
}

.foot-in {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}

.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; color: var(--text-secondary); text-decoration: none; }
.foot-links a:hover { color: var(--text-primary); text-decoration: underline; }

.foot-note {
  font-size: 12.5px; color: var(--text-tertiary);
  margin: 18px 0 0; line-height: 1.6;
}

/* ----------------------------------------------------------------- misc -- */

.cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 18px;
}

.lnk {
  font-size: 13.5px; color: var(--text-secondary);
  text-decoration: none; font-weight: 500;
}
.lnk:hover { color: var(--text-primary); text-decoration: underline; }

.shots-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 800px) { .shots-row { grid-template-columns: 1fr; } }

.shot-cap {
  font-size: 13px; color: var(--text-tertiary);
  margin: 12px 2px 0;
}
.shot-cap b { color: var(--text-secondary); font-weight: 600; }
