/* Walkcut — sales page
   A revised page, not a neon editor: paper, ink and one red pencil.
   Paper #F3F0E8 · Sheet #FBFAF6 · Rule #DAD5C8 · Graphite #6B665C · Ink #1A1814 · Redline #D9432B */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --sheet: #fbfaf6;
  --rule: #dad5c8;
  --graphite: #6b665c;
  --ink: #1a1814;
  --red: #d9432b;

  /* derived, for text that must read at small sizes */
  --ink-2: #45413a; /* body copy on paper and sheet */
  --red-text: #a8321d; /* red words under 19 px on light backgrounds */
  --on-ink: #cfc9bc; /* body copy on ink */
  --on-ink-2: #b5afa1; /* quiet text on ink */
  --red-on-ink: #ef7a63; /* red words on ink */

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ui: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(76px, 10vw, 132px);
  --radius: 14px;

  /* the red pencil: one slightly uneven stroke, stretched to any word */
  --pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7.4C28 5.4 61 7.9 96 6.3S158 4.6 198 6.1' fill='none' stroke='%23D9432B' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --pencil-under: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C40 6 82 10.5 122 7.4S176 5.5 197 8.2' fill='none' stroke='%23D9432B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .94 0 0 0 0 .91 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--red);
}

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

.on-ink :focus-visible {
  outline-color: var(--paper);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.skip:focus {
  top: 12px;
}

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

.sec {
  padding: var(--sec) 0;
}

.band {
  background: var(--sheet);
  border-block: 1px solid var(--rule);
}

.mono {
  font-family: var(--mono);
  font-feature-settings: 'zero' 0;
}

/* ------------------------------------------------------------ type scale */

.overline {
  font: 700 12px/1.3 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

h1 {
  font: 500 clamp(46px, 6.3vw, 86px) / 0.98 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font: 500 clamp(36px, 4.8vw, 58px) / 1.04 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font: 700 19px/1.3 var(--ui);
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.head .lead {
  margin-top: 6px;
}

/* ----------------------------------------------------- the red pencil */

/* a word struck by the red pencil; drawn left to right when it comes into view */
.strike {
  background: var(--pencil) no-repeat 0 58% / 0% 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size 0.6s cubic-bezier(0.6, 0.1, 0.3, 1),
    color 0.4s ease 0.2s;
}

.strike.drawn,
.strike.in,
.in .strike,
html:not(.js) .strike {
  background-size: 100% 0.5em;
  color: var(--graphite);
}

.strike.keep-color {
  color: inherit !important;
}

/* a word underlined by the red pencil */
.under {
  background: var(--pencil-under) no-repeat 0 100% / 0% 0.42em;
  padding-bottom: 0.06em;
  transition: background-size 0.8s cubic-bezier(0.6, 0.1, 0.3, 1) 0.35s;
}

.in .under,
.under.drawn,
html:not(.js) .under {
  background-size: 100% 0.42em;
}

/* things come in like a sheet set down on the desk: a short rise, no bounce */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal.d1 {
  transition-delay: 0.08s;
}
.js .reveal.d2 {
  transition-delay: 0.16s;
}
.js .reveal.d3 {
  transition-delay: 0.24s;
}
.js .reveal.d4 {
  transition-delay: 0.32s;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: 700 16px/1.2 var(--ui);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.15s ease;
  white-space: nowrap;
}

/* the main action: red like the pencil, with a pressed-paper edge instead of a glow */
.btn-red {
  background: var(--red);
  color: #fff;
  font-size: 19px;
  min-height: 60px;
  padding: 0 28px;
  box-shadow: 0 3px 0 #9e2f1b;
}

.btn-red:hover {
  background: #cf3d26;
  text-decoration: none;
}

.btn-red:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #9e2f1b;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 0 #000;
}

.btn-ink:hover {
  background: #2c2924;
  text-decoration: none;
}

.btn-ink:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-line {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-line:hover {
  background: var(--sheet);
  text-decoration: none;
}

.btn svg {
  flex: none;
}

.btn-note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

/* before launch: the download and buy buttons say "coming soon" and go nowhere
   (each keeps its link in data-href, to be turned back into <a href> at launch) */
.btn.soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
  box-shadow: none;
}

/* buying Pro (walkcut.js, when sale.js opens the sale) */
.btn[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}

.price-note {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--graphite);
}

dialog.thanks {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 24px 60px rgb(26 24 20 / 0.25);
}

dialog.thanks::backdrop {
  background: rgb(26 24 20 / 0.45);
}

.thanks h3 {
  margin: 0 0 12px;
  font: 600 26px/1.2 var(--serif);
}

.thanks-status,
.thanks-how {
  margin: 0 0 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.thanks-key {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper);
  font: 500 17px/1.4 var(--mono);
  letter-spacing: 0.02em;
  word-break: break-all;
  user-select: all;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* --------------------------------------------------------------- keycaps */

.keys {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--sheet);
  font: 600 13px/1 var(--ui);
  color: var(--ink);
}

.on-ink .k {
  background: #2a2723;
  border-color: #4d483f;
  color: var(--paper);
}

/* ----------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 240, 232, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.top.scrolled {
  border-bottom-color: var(--rule);
}

.top-in {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 800 21px/1 var(--ui);
  letter-spacing: -0.035em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.top nav {
  margin-left: auto;
  display: none;
  gap: 26px;
}

.top nav a {
  font: 500 15px/1 var(--ui);
  color: var(--ink-2);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
}

.top .btn {
  margin-left: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

@media (min-width: 900px) {
  .top nav {
    display: flex;
  }

  .top .btn,
  .top .lang {
    margin-left: 0;
  }
}

/* the language picker: a globe beside Baixar; the list opens under it */
.top .lang {
  position: relative;
  margin-left: auto;
}

.top .lang + .btn {
  margin-left: -14px;
}

.lang summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-2);
  list-style: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary:hover,
.lang[open] summary {
  background: var(--sheet);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.lang ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(26, 24, 20, 0.14);
}

.lang li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 8px;
  font: 500 15px/1.2 var(--ui);
  color: var(--ink-2);
  text-decoration: none;
}

.lang li a:hover {
  background: var(--paper);
  color: var(--ink);
}

.lang li a[aria-current] {
  color: var(--ink);
  font-weight: 700;
}

.lang li a[aria-current]::after {
  content: '✓';
  color: var(--red-text);
}

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

.hero {
  padding: clamp(36px, 6vw, 88px) 0 clamp(72px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  gap: clamp(44px, 5vw, 72px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }
}

.hero h1 {
  margin: 16px 0 26px;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero .lead {
  margin-bottom: 34px;
}

/* the hero demo: a sheet where the pencil strikes the pauses and the length drops */
.demo {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 16px;
  /* a second sheet peeking out underneath, like a small stack of paper */
  box-shadow:
    9px 10px 0 -1px var(--sheet),
    9px 10px 0 0 var(--rule),
    0 30px 50px -30px rgba(26, 24, 20, 0.45);
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font: 500 13px/1 var(--mono);
  color: var(--graphite);
}

.demo-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-family: var(--ui);
  font-weight: 600;
}

.demo-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.demo.done .demo-state i {
  background: var(--ink);
}

.demo-text {
  padding: 22px 22px 6px;
  font: 400 clamp(18px, 1.7vw, 21px) / 1.85 var(--serif);
  color: var(--ink);
}

.pause {
  display: inline-block;
  font: 500 13px/1 var(--mono);
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 4px 6px;
  vertical-align: 2px;
  white-space: nowrap;
}

.demo .cut {
  background: var(--pencil) no-repeat 0 58% / 0% 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    background-size 0.5s linear,
    color 0.3s ease 0.3s;
}

.demo .cut.struck {
  background-size: 100% 0.5em;
  color: var(--graphite);
}

.tl {
  display: flex;
  height: 34px;
  margin: 18px 22px 0;
}

.seg {
  flex: var(--s) 1 0;
  margin-right: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition:
    flex-grow 1s cubic-bezier(0.6, 0, 0.2, 1),
    margin 1s cubic-bezier(0.6, 0, 0.2, 1),
    opacity 0.4s ease 0.5s,
    background-color 0.3s ease;
}

.seg:last-child {
  margin-right: 0;
}

.seg.struck {
  background: repeating-linear-gradient(135deg, var(--red) 0 2px, rgba(217, 67, 43, 0.16) 2px 6px);
}

.collapsed .seg.is-cut {
  flex-grow: 0;
  margin-right: 0;
  opacity: 0;
}

.tl-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 16px 22px 22px;
}

.tl-label {
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.tl-was {
  font: 500 16px/1 var(--mono);
  color: var(--ink-2);
  background: var(--pencil) no-repeat 0 58% / 0% 0.55em;
  transition: background-size 0.5s ease 0.2s;
}

.done .tl-was {
  background-size: 100% 0.55em;
}

.tl-now {
  margin-left: auto;
  font: 600 clamp(32px, 3.6vw, 42px) / 1 var(--mono);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tl-saved {
  flex-basis: 100%;
  text-align: right;
  font: 500 14px/1 var(--ui);
  color: var(--red-text);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.done .tl-saved {
  opacity: 1;
}

.pencil {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0));
  transition:
    transform 0.45s cubic-bezier(0.5, 0, 0.3, 1),
    opacity 0.3s ease;
  filter: drop-shadow(0 3px 2px rgba(26, 24, 20, 0.18));
}

.pencil.show {
  opacity: 1;
}

.pencil.drawing {
  transition:
    transform 0.5s linear,
    opacity 0.3s ease;
}

.demo-top .end {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.demo-again {
  visibility: hidden;
  border: 0;
  background: none;
  padding: 4px 0;
  font: 600 14px/1 var(--ui);
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.done .demo-again {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------------------------------------- how it works */

.steps {
  position: relative;
  display: grid;
  gap: clamp(36px, 4vw, 40px);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* the dotted pencil path between the three steps */
  .steps::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 112px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--graphite) 0 6px, transparent 6px 12px) no-repeat 0 0 / 0% 100%;
    opacity: 0.45;
    transition: background-size 1.4s ease 0.3s;
  }

  .steps.in::before,
  html:not(.js) .steps::before {
    background-size: 100% 100%;
  }
}

.step {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}

.step-n {
  font: 500 13px/1 var(--mono);
  color: var(--graphite);
}

.art {
  position: relative;
  z-index: 1;
  height: 190px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  margin: 4px 0 10px;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 16px/1 var(--ui);
}

.rec-btn i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  animation: breathe 2.4s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}

.art-rec {
  flex-direction: column;
}

.art-cut p {
  font: 400 21px/1.7 var(--serif);
  text-align: center;
}

.file {
  display: grid;
  align-content: end;
  gap: 4px;
  width: 92px;
  height: 64px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 18px -14px rgba(26, 24, 20, 0.5);
  font: 600 12px/1 var(--mono);
}

.file span {
  font-weight: 400;
  color: var(--graphite);
}

.file.tall {
  width: 62px;
  height: 110px;
}

.step h3 {
  font: 500 30px/1.1 var(--serif);
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------ video slots */

/* A short real clip of each feature. Until the file exists, a sheet of lined
   paper says which clip goes here, its shape and what to show. */
.clip {
  position: relative;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.clip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.clip.has-video video {
  opacity: 1;
}

.clip-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 14px 38px;
  background:
    linear-gradient(90deg, transparent 24px, rgba(217, 67, 43, 0.4) 24px 25px, transparent 25px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(107, 102, 92, 0.16) 25px 26px),
    var(--sheet);
  transition: opacity 0.4s ease;
}

.clip.has-video .clip-ph {
  opacity: 0;
  pointer-events: none;
}

.clip-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.clip-tag::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 7px solid var(--graphite);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

.clip-what {
  font: italic 400 16px/1.45 var(--serif);
  color: var(--ink-2);
  max-width: 36ch;
}

.clip-file {
  font: 500 12px/1.4 var(--mono);
  color: var(--graphite);
  overflow-wrap: anywhere;
}

.on-ink .clip {
  background: #23201b;
  border-color: #3a362f;
}

.on-ink .clip-ph {
  background:
    linear-gradient(90deg, transparent 24px, rgba(239, 122, 99, 0.45) 24px 25px, transparent 25px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(243, 240, 232, 0.07) 25px 26px),
    #23201b;
}

.on-ink .clip-tag {
  color: var(--on-ink-2);
}

.on-ink .clip-tag::before {
  border-left-color: var(--on-ink-2);
}

.on-ink .clip-what {
  color: var(--on-ink);
}

.on-ink .clip-file {
  color: var(--on-ink-2);
}

.tall-clip {
  --ar: 9 / 16;
  width: 100%;
  max-width: 270px;
}

/* ------------------------------------------------------------ what it cuts */

.cuts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  margin-bottom: clamp(56px, 7vw, 88px);
}

.cut-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.cut-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cut-card h3::before {
  content: '';
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.cut-line {
  font: 400 22px/1.6 var(--serif);
}

.duo {
  display: grid;
  gap: clamp(40px, 5vw, 56px);
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feat {
  display: grid;
  gap: 10px;
  align-content: start;
}

.feat .clip {
  margin-bottom: 10px;
}

.feat p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* --------------------------------------------------------------- looks good */

.mosaic {
  display: grid;
  gap: clamp(40px, 4vw, 44px) clamp(20px, 3vw, 32px);
}

@media (min-width: 760px) {
  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic .wide {
    grid-column: span 2;
  }
}

/* two columns: the fifth one takes the whole row instead of sitting alone */
@media (min-width: 760px) and (max-width: 999px) {
  .mosaic .last {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mosaic .feat {
    grid-column: span 2;
  }

  .mosaic .half {
    grid-column: span 3;
  }

  .mosaic .wide {
    grid-column: span 2;
  }
}

/* ---------------------------------------------------- one recording, many */

.vert {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 96px);
}

@media (min-width: 960px) {
  .vert {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

.vert h3 {
  font: 500 30px/1.15 var(--serif);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.vert .body {
  max-width: 56ch;
  margin-bottom: 28px;
}

.vframes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.vf {
  display: grid;
  gap: 10px;
}

.vf figcaption {
  font: 600 14px/1.3 var(--ui);
}

.vf figcaption span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}

.vframe {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.vframe i {
  position: absolute;
  display: block;
}

/* a picture of a game or a screen */
.scr {
  left: 0;
  right: 0;
  background:
    radial-gradient(45% 55% at 72% 38%, #4f626b 0%, rgba(79, 98, 107, 0) 70%),
    radial-gradient(55% 45% at 24% 72%, #6e5a41 0%, rgba(110, 90, 65, 0) 70%),
    #24211c;
}

/* a person on camera */
.cam {
  left: 0;
  right: 0;
  top: 0;
  background:
    radial-gradient(circle at 50% 44%, #e6e0d3 0 15%, transparent 16%),
    radial-gradient(ellipse 30% 24% at 50% 100%, #e6e0d3 0 97%, transparent 100%),
    #8a8478;
}

.cap {
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: #fff;
  font: 700 9px/1 var(--ui);
  padding: 4px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.cap b {
  background: var(--red);
  padding: 1px 2px;
  border-radius: 2px;
}

.vf-fit .scr {
  top: 50%;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
}

.vf-fill .scr {
  top: 0;
  bottom: 0;
}

/* the frame you drag to choose what shows */
.vf-fill .pick {
  inset: 10% 14%;
  border: 1.5px dashed rgba(243, 240, 232, 0.75);
  border-radius: 4px;
}

.vf-stack .cam {
  height: 42%;
}

.vf-stack .scr {
  top: 42%;
  bottom: 0;
}

.vf-stack .cap {
  top: 42%;
}

.blur {
  filter: blur(7px) saturate(0.9);
  transform: scale(1.2);
  opacity: 0.85;
}

.vf-blur .scr.blur {
  top: 0;
  bottom: 0;
}

.vf-blur .scr:not(.blur) {
  top: 50%;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
}

.vf-whole .cam {
  height: 36%;
}

.vf-whole .scr.blur {
  top: 36%;
  bottom: 0;
  transform: none;
}

.vf-whole .scr:not(.blur) {
  top: 68%;
  aspect-ratio: 16 / 9;
  transform: translateY(-50%);
}

.vert-clip {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.vert-clip p {
  font-size: 15px;
  color: var(--ink-2);
}

.outs {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 960px) {
  .outs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.out-list {
  display: grid;
  border-bottom: 1px solid var(--rule);
}

.out-list li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.out-list b {
  font: 500 20px/1.3 var(--serif);
}

.out-list span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 520px) {
  .out-list li {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ games */

/* the one dark sheet on the page: ink paper, the same pencil */
.games {
  position: relative;
  background: var(--ink) var(--grain-light);
  color: var(--paper);
}

.games .overline {
  color: var(--on-ink-2);
}

.games .lead,
.games .body,
.games .feat p {
  color: var(--on-ink);
}

/* deckled edges, as if the dark sheet were torn from a pad */
.games::before,
.games::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V7l8-3 9 4 11-5 7 3 12-4 8 5 10-3 9 4 12-5 8 4 11-3 9 5 10-4 12 3 8-4 11 5 9-3 10 4 12-5 8 3 11-4 9 5 12-4 14 2V14z'/%3E%3C/svg%3E") 0 0 / 240px 14px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V7l8-3 9 4 11-5 7 3 12-4 8 5 10-3 9 4 12-5 8 4 11-3 9 5 10-4 12 3 8-4 11 5 9-3 10 4 12-5 8 3 11-4 9 5 12-4 14 2V14z'/%3E%3C/svg%3E") 0 0 / 240px 14px repeat-x;
}

.games::before {
  top: -13px;
}

.games::after {
  bottom: -13px;
  transform: scaleY(-1);
}

.clip-that {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(72px, 9vw, 112px);
}

@media (min-width: 900px) {
  .clip-that {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.clip-that h2 {
  margin: 14px 0 22px;
}

.big-time-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 34px 0 30px;
}

.big-time {
  position: relative;
  display: inline-block;
  font: 600 clamp(84px, 13vw, 152px) / 1 var(--mono);
  letter-spacing: -0.05em;
  padding: 0 0.08em;
}

/* the red pencil circles the moment */
.big-time svg {
  max-width: none;
  position: absolute;
  left: -14%;
  top: -22%;
  width: 128%;
  height: 144%;
  overflow: visible;
  pointer-events: none;
}

.big-time path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.6, 0.1, 0.3, 1) 0.3s;
}

.in .big-time path,
html:not(.js) .big-time path {
  stroke-dashoffset: 0;
}

.clip-key {
  display: grid;
  gap: 8px;
}

.clip-key .keys .k {
  min-width: 44px;
  height: 40px;
  font-size: 16px;
}

.clip-key span.small {
  font-size: 14px;
  color: var(--on-ink-2);
}

.keeping {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 10px;
  border: 1px solid #3a362f;
  border-radius: 999px;
  font: 500 13px/1 var(--mono);
  color: var(--on-ink);
}

.keeping i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: breathe 2s ease-in-out infinite;
}

.games-grid {
  display: grid;
  gap: clamp(48px, 5vw, 40px) clamp(24px, 3vw, 40px);
}

@media (min-width: 760px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.games-grid .feat .clip {
  max-width: 250px;
}

/* on a phone, each game clip sits beside its text instead of three tall clips in a row */
@media (max-width: 759px) {
  .games-grid .feat {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-items: start;
  }

  /* small slots keep only the label; the full shot list is in the page's source */
  .games-grid .feat .clip-what,
  .games-grid .feat .clip-file {
    display: none;
  }

  .games-grid .feat .clip {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .games-grid .feat .clip-ph {
    padding: 10px 10px 10px 30px;
    background-position: -6px 0, 0 0, 0 0;
  }

}

.games-grid h3 {
  color: var(--paper);
}

.games .strike.drawn,
.games .in .strike {
  color: var(--on-ink-2);
}

/* ------------------------------------------------------------------ brand */

.brand-grid {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  align-items: start;
}

@media (min-width: 960px) {
  .brand-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* a style sheet card: what one saved Modelo holds */
.kit {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 26px 50px -34px rgba(26, 24, 20, 0.4);
  overflow: hidden;
}

.kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.kit-head b {
  font: 500 22px/1.2 var(--serif);
}

.kit-file {
  font: 500 12px/1 var(--mono);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--paper);
  white-space: nowrap;
}

.kit-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.kit-row:last-child {
  border-bottom: 0;
}

.kit-row > span:first-child {
  font: 700 12px/1.3 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.kit-font {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.kit-font b {
  font: italic 600 40px/1 var(--serif);
}

.kit-font span,
.kit-note {
  font-size: 14px;
  color: var(--ink-2);
}

.kit-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-slot {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1.5px dashed var(--graphite);
  display: grid;
  place-items: center;
  font: 600 10px/1 var(--ui);
  color: var(--ink-2);
}

.at {
  font: 600 14px/1 var(--ui);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 7px 9px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sw {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(26, 24, 20, 0.15);
}

.sw-img {
  width: auto;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--ui);
  color: var(--ink);
  background: var(--paper);
}

.title-card {
  aspect-ratio: 16 / 9;
  max-width: 280px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font: 500 clamp(22px, 2.3vw, 26px) / 1.15 var(--serif);
}

.title-card .strike {
  color: var(--on-ink-2);
}

.title-card small {
  display: block;
  margin-top: 10px;
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}

.brand-list {
  display: grid;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}

.brand-list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 4px;
}

.brand-list b {
  font: 700 18px/1.3 var(--ui);
}

.brand-list span {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- privacy */

.priv {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (min-width: 960px) {
  .priv {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.priv .lead {
  margin: 22px 0 22px;
}

.nots {
  display: grid;
  border-bottom: 1px solid var(--rule);
}

.nots li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.nots b {
  font: 500 clamp(28px, 3vw, 34px) / 1.1 var(--serif);
  justify-self: start;
}

.nots span {
  font-size: 16px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ price */

.plans {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 3vw, 36px);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 18px;
}

.plan.pro {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.plan-name {
  font: 700 17px/1 var(--ui);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.price b {
  font: 500 clamp(56px, 6vw, 72px) / 1 var(--serif);
  letter-spacing: -0.03em;
}

.price span {
  font-size: 16px;
  color: var(--ink-2);
}

.plan p {
  font-size: 16px;
  color: var(--ink-2);
}

.plan ul {
  display: grid;
  border-bottom: 1px solid var(--rule);
}

.plan li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}

.plan li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg) translateY(-3px);
}

.plan li.gone::before {
  /* not a tick: a short red stroke, the thing is gone */
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--red);
  transform: translateY(-5px);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.honest {
  margin-top: 28px;
  font: italic 400 clamp(20px, 2vw, 24px) / 1.4 var(--serif);
  color: var(--ink-2);
  text-align: center;
  text-wrap: balance;
}

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

.faq-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 64px;
  }
}

.qa {
  border-bottom: 1px solid var(--rule);
}

.qa details {
  border-top: 1px solid var(--rule);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font: 600 18px/1.35 var(--ui);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.25s ease;
}

.qa details[open] summary::after {
  transform: rotate(45deg);
}

.qa details p {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ------------------------------------------------------------------ final */

.final {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 960px) {
  .final {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.final h2 {
  font-size: clamp(44px, 6vw, 76px);
  margin-bottom: 30px;
}

.list-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  gap: 12px;
}

.list-card h3 {
  font: 500 26px/1.2 var(--serif);
}

.list-card label {
  font: 600 14px/1 var(--ui);
  margin-top: 8px;
}

.list-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.list-row input {
  flex: 1 1 180px;
  min-width: 0;
  height: 48px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  font: 400 16px var(--ui);
  color: var(--ink);
}

.list-row input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 24, 20, 0.12);
}

.list-row .btn {
  flex: 0 0 auto;
  min-height: 48px;
}

.list-msg {
  font-size: 14px;
  color: var(--ink-2);
  min-height: 1.6em;
}

.list-msg.ok {
  color: var(--ink);
  font-weight: 600;
}

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

.foot {
  border-top: 1px solid var(--rule);
  /* the same room above and below its row */
  padding: 40px 0;
}

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

.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 15px;
  color: var(--ink-2);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15px;
}

/* --------------------------------------------------------- reduced motion */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* what only Walkcut Pro has, marked where it is shown */
.pro-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 700 10px/1.4 'Hanken Grotesk', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--red, #d9432b);
}
