/* tweenshot.com. Brand tokens follow the extension (src/shared/tokens.css, brand/).
   Radius rule: buttons 10px, panels 16px, chips and keys 6px. Cobalt is for actions, vermilion only marks a flag. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #131822;
  --bg-deep: #0e121a;
  --panel: #1c212c;
  --line: #2c3340;
  --line-strong: #3b4351;
  --ink: #f4f5f7;
  --ink-2: #c9ced6;
  --muted: #a3a9b3;
  --signal: #de3f25;
  --signal-ink: #ff8a70;
  --cobalt: oklch(0.48 0.17 260);
  --cobalt-hover: oklch(0.53 0.17 260);
  --cobalt-ink: oklch(0.8 0.1 260);
  --focus: oklch(0.72 0.14 260);
  --paper: #fbfbfa;
  --stage: #eef0f3;
  --page-ink: #1c1b19;
  --page-ink-2: #57534e;
  --page-muted: #7a756e;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
code,
kbd {
  font-family: var(--mono);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 16px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 160ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--cobalt);
  color: #fff;
}
.btn-ghost,
.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-small {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-large {
  height: 56px;
  padding: 0 28px;
  font-size: 18px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--cobalt-hover);
  }
  .btn-ghost:hover,
  .btn-quiet:hover {
    border-color: var(--muted);
  }
}

.text-link {
  color: var(--cobalt-ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Header and footer */
.top,
.foot,
main > section {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: block;
  padding: 6px 0;
}
.logo {
  display: block;
  height: 24px;
  width: auto;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.top-nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .top-nav a:not(.btn):hover {
    color: var(--ink);
  }
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot span {
  margin-right: auto;
}
.foot a {
  color: var(--ink-2);
  text-decoration: none;
}

/* Section type */
.section-title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.section-sub {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.6;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding-block: clamp(24px, 4vw, 56px) clamp(72px, 9vw, 120px);
}
.hero-title {
  font-size: clamp(3rem, 1.6rem + 4.6vw, 5.5rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-sub {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Demo: a stage with the real card, and the contact sheet it is captured into */
.demo {
  position: relative;
  margin: 0;
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 300px;
  border-radius: 16px;
  background: var(--stage);
  overflow: hidden;
}
.stage-card {
  width: 330px;
  height: 300px;
  scale: 0.8;
}
.stage-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: var(--page-ink-2);
  font-size: 13px;
}
/* Touch screens have no hover to invite. */
@media (hover: none) {
  .stage-hint {
    display: none;
  }
}
.pointer {
  position: absolute;
  left: 72%;
  top: 78%;
  width: 26px;
  height: 26px;
  fill: #111318;
  stroke: #fff;
  stroke-width: 10;
  paint-order: stroke;
  filter: drop-shadow(0 3px 6px rgb(14 18 26 / 0.35));
  opacity: 0;
  pointer-events: none;
}
.sheet {
  margin-top: 14px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--page-ink);
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font: 500 13px/1.4 var(--mono);
}
.sheet-meta {
  color: var(--page-muted);
}
.sheet-meta.is-live {
  color: var(--signal);
}
.frames {
  --s: 0.21;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* An empty slot until its frame lands. */
.slot {
  display: block;
  border-radius: 4px;
  outline: 1px dashed #d6d3cd;
  outline-offset: -1px;
}
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 330 / 300;
  border-radius: 4px;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transform-origin: 0 0;
  transition: outline-color 150ms ease;
}
.thumb .wcard {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  scale: var(--s);
}
.frame-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
  font: 600 11px/1 var(--mono);
}
.frame-t {
  font-weight: 400;
  color: var(--page-muted);
}
.frame[aria-pressed="true"] .thumb {
  outline-color: var(--cobalt);
}
.frame.is-flagged .thumb {
  outline-color: var(--signal);
}
.frame.is-flagged .frame-n,
.frame.is-flagged .frame-t {
  color: var(--signal);
}
.readout {
  min-height: 68px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4e2dd;
  font-size: 14px;
  line-height: 1.5;
}
.readout-empty {
  color: var(--page-muted);
}
.readout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font: 600 13px/1.4 var(--mono);
}
.readout-flag {
  color: var(--signal);
}
.readout-values {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin-top: 4px;
  font: 400 13px/1.5 var(--mono);
  color: var(--page-ink-2);
}
.readout-values b {
  color: var(--page-ink);
  font-weight: 600;
}
.readout-note {
  margin-top: 6px;
  color: var(--page-ink);
}

/* The workstream card (store/scene/index.html), including its bug:
   the shadow finishes at 100 ms while the lift runs to 360 ms. */
.wcard {
  position: relative;
  width: 330px;
  height: 300px;
  border: 1px solid #eceae6;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  color: var(--page-ink);
  font-family: var(--sans);
  text-align: left;
  box-shadow:
    0 1px 2px rgb(28 27 25 / 0.05),
    0 0 0 rgb(28 27 25 / 0);
}
.wcard-cover {
  position: relative;
  height: 128px;
  overflow: hidden;
}
.wcard-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff8a65 0%, #ffb86b 100%);
}
.wf {
  position: absolute;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.92);
}
.wf-1 { left: 28px; top: 24px; width: 96px; height: 10px; }
.wf-2 { left: 28px; top: 42px; width: 150px; height: 8px; background: rgb(255 255 255 / 0.45); }
.wf-3 { left: 28px; top: 56px; width: 120px; height: 8px; background: rgb(255 255 255 / 0.45); }
.wf-4 { left: 28px; top: 76px; width: 64px; height: 20px; border-radius: 10px; background: rgb(28 27 25 / 0.82); }
.wf-5 { left: 196px; top: 22px; width: 92px; height: 84px; border-radius: 10px; }
.wcard-open {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  background: rgb(255 255 255 / 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 8px rgb(28 27 25 / 0.12);
  opacity: 0;
  transform: translateX(10px);
}
.wcard-body {
  padding: 14px 16px 16px;
}
.wcard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--page-muted);
  font-size: 12px;
  line-height: 1;
}
.wcard-tag {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: #fff0ea;
  color: #b5452a;
  font-weight: 600;
}
.wcard-title {
  margin: 10px 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.wcard-text {
  color: var(--page-ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.wcard-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--page-muted);
  font-size: 12px;
  line-height: 1;
}
.wcard-av {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 650;
}
.wcard-av-1 { background: #ff8a65; }
.wcard-av-2 { background: #57534e; margin-left: -18px; }
.wcard-meter {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #efede9;
  overflow: hidden;
}
.wcard-meter i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 3px;
  background: #0e8f6e;
}

/* The live card hovers with the product's real transitions. */
.stage-card .wcard {
  transition:
    transform 360ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 100ms ease-out;
}
.stage-card .wcard-art {
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage-card .wcard-open {
  transition:
    opacity 200ms 60ms ease,
    transform 260ms 60ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage-card:hover .wcard,
.stage-card.is-hover .wcard {
  transform: translateY(-6px);
  box-shadow:
    0 24px 40px -16px rgb(28 27 25 / 0.32),
    0 2px 6px rgb(28 27 25 / 0.06);
}
.stage-card:hover .wcard-art,
.stage-card.is-hover .wcard-art {
  transform: scale(1.06);
}
.stage-card:hover .wcard-open,
.stage-card.is-hover .wcard-open {
  opacity: 1;
  transform: none;
}

/* How it works */
.steps {
  padding-block: clamp(80px, 10vw, 140px);
}
.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 64px);
}
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  align-content: center;
  min-height: 64vh;
  opacity: 0.38;
  transition: opacity 300ms ease;
}
.step.is-active {
  opacity: 1;
}
.step:first-child {
  min-height: 46vh;
  align-content: start;
}
.step-n {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: 600 14px/1 var(--mono);
  color: var(--ink-2);
}
.step.is-active .step-n {
  border-color: var(--ink);
  color: var(--ink);
}
.step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.step p {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--ink-2);
}
.step-img {
  display: none;
}
.steps-media {
  position: relative;
}
.media-frame {
  position: sticky;
  top: calc(50vh - min(26vw, 300px));
  aspect-ratio: 1280 / 800;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 40px 80px -40px rgb(5 8 14 / 0.8);
}
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
}
.media-img.is-active {
  clip-path: inset(0 0 0 0);
}

/* What the AI receives */
.spec {
  padding-block: clamp(80px, 10vw, 140px);
}
.spec-panel {
  margin-top: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-deep);
  overflow: hidden;
}
.spec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
}
.spec-file {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink-2);
  font: 500 14px/1 var(--mono);
}
.spec-file img {
  width: 48px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
  object-position: top left;
}
.spec-code {
  margin: 0;
  padding: 24px 28px 28px;
  overflow-x: auto;
  font: 400 15px/1.75 var(--mono);
  color: var(--ink-2);
  tab-size: 2;
}
.spec-code code {
  font: inherit;
}
.ln {
  display: block;
  white-space: pre;
}
.ln-h {
  color: var(--ink);
  font-weight: 600;
}
.ln-m {
  color: var(--muted);
}
.ln-f {
  color: var(--signal-ink);
}
.ln-p {
  color: var(--cobalt-ink);
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(80px, 10vw, 140px);
}
.shots-figure {
  margin: 0;
}
.shots-figure img {
  border-radius: 16px;
}
.modes {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.modes li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.0625rem;
}
.modes li span {
  margin-right: auto;
}
.modes kbd {
  min-width: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}
.modes em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}
.tools {
  margin-top: 24px;
  color: var(--muted);
}

/* Privacy */
.private {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(80px, 10vw, 140px);
}
.private-points {
  display: grid;
  gap: 14px;
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.perms h3 {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}
.perms dl {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}
.perms dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 20px;
  padding-top: 16px;
}
.perms dt code {
  color: var(--cobalt-ink);
  font-size: 14px;
}
.perms dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Close */
.end {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding-block: clamp(96px, 12vw, 180px);
  text-align: center;
}
.end-mark {
  width: 64px;
  height: auto;
}
.end-title {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.end-sub {
  color: var(--muted);
  font-size: 15px;
}

/* Privacy policy and 404 */
.policy {
  max-width: calc(72ch + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 120px;
}
.policy h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.support-contact {
  font-size: 1.25rem;
}
.policy-updated {
  margin-top: 12px;
  color: var(--muted);
}
.policy h2 {
  margin-top: 44px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.policy p,
.policy li {
  margin-top: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.policy ul {
  padding-left: 1.2em;
}
.policy-perms {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}
.policy-perms th,
.policy-perms td {
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: top;
}
.policy-perms thead {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.policy-perms th {
  font-weight: 500;
}
.policy-perms td {
  color: var(--ink-2);
}
.policy-perms code {
  color: var(--cobalt-ink);
  font-size: 14px;
}

/* Tablet and phone */
@media (max-width: 1023px) {
  .hero,
  .steps-grid,
  .shots,
  .private {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-media {
    display: none;
  }
  .step {
    min-height: 0;
    padding-block: 28px;
    opacity: 1;
  }
  .step:first-child {
    min-height: 0;
  }
  .step-img {
    display: block;
    grid-column: 1 / -1;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .top-nav {
    gap: 16px;
  }
  .top-nav a[href*="privacy"],
  .top-nav .btn {
    display: none;
  }
  .logo {
    height: 20px;
  }
  .stage {
    height: 260px;
  }
  .stage-card {
    scale: 0.7;
  }
  .frames {
    gap: 12px 6px;
  }
  .frame-t {
    display: none;
  }
  .perms dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-card .wcard,
  .stage-card .wcard-art,
  .stage-card .wcard-open,
  .step,
  .btn,
  .thumb {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}
