/* The Clip Desk. One family (Archivo, self-hosted, OFL), three colours from the logo. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #FF541F;
  --ink: #111111;
  --paper: #FFFFFF;
  --grey: #5B5B5B;
  --line: #D9D9D9;
  --soft: #C4C4C4;
  --wrap: 1180px;
  --pad: clamp(20px, 4.5vw, 56px);
  --gap: clamp(72px, 10vw, 136px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 5;
  padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* Bands: only colour and vertical room live here. */
.band { padding: var(--gap) 0 0; }
.band-last { padding-bottom: var(--gap); }
.band-orange { background: var(--orange); padding: 0; }
.band-ink { background: var(--ink); color: var(--paper); padding: var(--gap) 0; margin-top: var(--gap); }
.band-ink :focus-visible { outline-color: var(--orange); }

/* Type */
.display, .title, .numeral, .amount {
  font-stretch: 66%;
  font-weight: 900;
  letter-spacing: -0.012em;
  margin: 0;
}
.display { font-size: clamp(3.4rem, 4.57vw + 2.64rem, 6.75rem); line-height: 0.92; word-spacing: 0.07em; }
.display .line { display: block; }
.title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1; word-spacing: 0.06em; }
.lede { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.45; max-width: 34em; margin: 0; }
.intro { font-size: 1.1875rem; line-height: 1.45; max-width: 33em; margin: 20px 0 0; }
.small { font-size: 0.9375rem; line-height: 1.45; }
.nums { font-variant-numeric: tabular-nums; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; }
.brand img { width: 52px; height: 52px; }
.top-links { display: flex; gap: clamp(16px, 2.6vw, 34px); list-style: none; margin: 0; padding: 0; font-weight: 600; }
.top-links a { text-decoration: none; padding: 6px 0; }
.top-links a:hover { text-decoration: underline; }

/* Hero stage: the copy on the left, the clip standing on its moment of the reel. */
.stage { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; }
.stage-copy { max-width: min(46rem, 62%); }
.stage-copy .lede { margin-top: clamp(20px, 2.6vw, 30px); }

.start { margin-top: clamp(26px, 3.4vw, 40px); max-width: 35rem; }
.start label { display: block; font-weight: 700; margin-bottom: 8px; }
.start-row { display: flex; gap: 10px; }
.start-row input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 16px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 4px;
}
.start-row input::placeholder { color: #767676; }
.start-note { margin: 10px 0 0; font-size: 0.9375rem; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 4px;
  font: inherit; font-weight: 800; font-stretch: 88%; font-size: 1.0625rem; letter-spacing: 0.005em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-orange { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-orange:hover { background: #FF6A3A; border-color: #FF6A3A; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* The clip: a 9:16 frame as a client gets it. */
.clip { margin: 0; width: 248px; }
.clip-screen {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  background: var(--ink); border-radius: 14px; border: 3px solid var(--ink);
}
.clip-game { position: absolute; inset: 0 0 42% 0; background: #1E1E1E; }
.clip-cam { position: absolute; inset: 58% 0 0 0; background: #2B2B2B; border-top: 2px solid var(--ink); }
.clip-game svg, .clip-cam svg { width: 100%; height: 100%; }
.clip-hook {
  position: absolute; left: 7%; right: 7%; top: 5.5%; margin: 0; padding: 9px 10px 8px;
  background: var(--paper); color: var(--ink); border-radius: 5px;
  font-stretch: 70%; font-weight: 900; font-size: 1.3rem; line-height: 1; text-align: center;
}
.clip-cap {
  position: absolute; left: 4%; right: 4%; top: 49%; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 5px;
  font-stretch: 72%; font-weight: 900; font-size: 1.62rem; line-height: 1.05; color: var(--paper);
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(0, 0, 0, 0.55);
}
.clip-cap span { padding: 1px 5px 0; border-radius: 4px; }
.clip-cap span:last-child { background: var(--orange); color: var(--ink); text-shadow: none; }
.clip figcaption { margin-top: 12px; font-size: 0.875rem; line-height: 1.35; font-weight: 500; }

/* The reel: one recording, three moments. */
.reel { margin-top: clamp(40px, 6vw, 84px); padding-bottom: 26px; }  /* 58px below the track: ends row 32 + 26 */
.reel-track { position: relative; height: 12px; background: var(--ink); border-radius: 2px; }
.reel-moment {
  position: absolute; top: -5px; width: 14px; height: 22px; margin-left: -7px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 2px;
  transform-origin: 50% 100%;
}
.reel-moment b {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.m1 { left: 21.3%; }
.m2 { left: 61.5%; }
.m3 { left: 86.8%; }
.m3 b { display: none; }
.reel-head {
  position: absolute; top: -12px; left: 0; width: 3px; height: 36px; margin-left: -1px;
  background: var(--paper); opacity: 0;
}
.reel-ends {
  display: flex; justify-content: space-between; margin-top: 12px; height: 20px;
  font-size: 0.8125rem; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .clip {
    position: absolute; left: 86.8%; bottom: 130px; transform: translateX(-50%);  /* 60px above the track's top */
  }
  .clip::after {
    content: ""; position: absolute; left: 50%; bottom: -60px; width: 3px; height: 60px; margin-left: -1px;
    background: var(--ink);
  }
  .clip figcaption {
    position: absolute; right: calc(100% + 18px); bottom: 6px; width: 10rem; margin: 0; text-align: right;
  }
  .reel { margin-top: clamp(64px, 7vw, 96px); }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .clip { width: 212px; }
  .clip-hook { font-size: 1.1rem; }
  .clip-cap { font-size: 1.38rem; }
  .clip figcaption { display: none; }
}

@media (max-width: 899px) {
  .stage-copy { max-width: none; }
  .clip { margin-top: 40px; width: 212px; }
  .clip-hook { font-size: 1.1rem; }
  .clip-cap { font-size: 1.38rem; }
  .reel { margin-top: 34px; }
  .m3 b { display: block; }
}

@media (max-width: 560px) {
  .top-links li:nth-child(1), .top-links li:nth-child(4) { display: none; }
  .start-row { flex-direction: column; }
  .start-row .btn { width: 100%; }
  .m1 b, .m2 b, .m3 b { display: none; }
}

/* One run on load: the head crosses the recording, the moments stand up, the clip gets its words.
   The line from the clip to its moment stays still: an animated ::after on the shifted figure was laid out but
   never painted in Chrome (17 Nov 2026). */
@media (prefers-reduced-motion: no-preference) {
  .reel-head { animation: head 2.4s linear 0.35s both; }
  .reel-moment { animation: stand 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
  .m1 { animation-delay: 0.86s; }
  .m2 { animation-delay: 1.83s; }
  .m3 { animation-delay: 2.43s; }
  /* A word is lit for 84% of its run (0.28 s), then settles before the run ends: a state that only arrives at
     exactly 100% of a stepped run can be missed by a rounding error (seen in Chrome, 17 Nov 2026). */
  .clip-cap span { animation: word 0.3333s step-end both; }
  .clip-cap span:nth-child(1) { animation-delay: 2.95s; }
  .clip-cap span:nth-child(2) { animation-delay: 3.23s; }
  .clip-cap span:nth-child(3) { animation-delay: 3.51s; }
  .clip-cap span:nth-child(4) { animation-delay: 3.79s; }
  .clip-cap span:nth-child(5) { animation: lastword 0.01s linear 4.07s both; }
}
@keyframes head {
  0% { left: 0; opacity: 1; }
  92% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes stand { from { transform: scaleY(0.2); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes word {
  0% { opacity: 0; }
  1%, 84% { opacity: 1; background: var(--orange); color: var(--ink); text-shadow: none; }
  85%, 100% { opacity: 1; background: transparent; color: var(--paper); text-shadow: 0 2px 0 #000, 0 0 10px rgba(0, 0, 0, 0.55); }
}
@keyframes lastword { from { opacity: 0; } to { opacity: 1; } }

/* What you get */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0 13px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.numeral { font-size: clamp(4rem, 7vw, 6rem); line-height: 0.8; color: var(--orange); }
.step-name { font-size: 1.3125rem; font-weight: 800; font-stretch: 88%; line-height: 1.2; margin: 18px 0 8px; }
.step p { margin: 0; max-width: 24em; }

/* Price */
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(28px, 3.5vw, 44px); }
.amount { font-size: clamp(5.5rem, 15vw, 12rem); line-height: 0.8; font-variant-numeric: tabular-nums; }
.amount-unit { display: block; margin-top: 22px; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.terms-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--ink); }
.terms-list li { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }

/* Questions */
.faq { margin-top: clamp(28px, 3.5vw, 44px); border-top: 2px solid var(--ink); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 17px 0 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 1.5rem; line-height: 0.7; transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; max-width: 40em; }

/* The form */
.form-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-lead { color: var(--paper); }
.form-lead .intro { color: #E9E9E9; }
.field { margin: 0 0 20px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 7px; }
.field .optional { font-weight: 400; color: var(--soft); }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  width: 100%; padding: 14px 15px; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--paper); border-radius: 4px;
}
.field input { height: 54px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.field .hint { margin: 7px 0 0; font-size: 0.9375rem; color: var(--soft); }
.field [aria-invalid="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.error { margin: 7px 0 0; font-size: 0.9375rem; font-weight: 700; color: #FF8A63; }
.check .error { grid-column: 2; margin-top: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; margin: 4px 0 24px; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--orange); }
.check label { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 16px 0 0; font-weight: 700; min-height: 1.5em; }
.status-bad { color: #FF8A63; }
.fine { margin: 18px 0 0; font-size: 0.9375rem; color: var(--soft); max-width: 36em; }
.sent { border: 2px solid var(--paper); border-radius: 6px; padding: clamp(22px, 3vw, 34px); }
.sent .title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.sent p { margin: 14px 0 0; max-width: 32em; }

/* Foot */
.foot { padding: 44px 0 56px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.foot p { margin: 0; max-width: 36em; font-size: 0.9375rem; color: var(--grey); }
.foot-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.foot img { width: 44px; height: 44px; border-radius: 4px; margin-bottom: 14px; }

/* Text pages (terms, privacy) */
.page-top { border-bottom: 2px solid var(--ink); }
.prose { max-width: 44rem; padding: clamp(40px, 6vw, 80px) 0 var(--gap); }
.prose .title { margin-bottom: 14px; }
.prose h2 { font-size: 1.3125rem; font-weight: 800; font-stretch: 88%; line-height: 1.25; margin: 2.1em 0 0.5em; }
.prose p, .prose li { max-width: 40em; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose .meta { color: var(--grey); }

@media (max-width: 899px) {
  .two, .price, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .price { align-items: start; }
}
@media (max-width: 560px) {
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .btn-wide { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
