/* getpicado.com. Colors and type from the Round 4 home page (docs/site/home-page-notes.md). */

@font-face {
  font-family: 'Lexend';
  src: url(/fonts/lexend-latin.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url(/fonts/instrument-sans-latin.woff2) format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
/* The app's caption face, for the captions on the example video. */
@font-face {
  font-family: 'Montserrat';
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --ground: #211a1d;
  --raised: #2b2226;
  --sunken: #181315;
  --band: #261e21;
  --surface: #47383e;
  --edge: #35292e;
  --edge-strong: #47383e;
  --hi: rgba(255, 214, 224, 0.06);
  --ink: #f8eff0;
  --kept: #c2b4b8;
  --muted: #b9aaaf;
  --cut: #9a8d92;
  --cut-big: #75666b;
  --strike: #e8607e;
  --strike-sm: #c4566f;
  --rose: #ff9eb0;
  --rose-ink: #2a1219;
  --display: 'Lexend', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --caption: 'Montserrat', 'Lexend', sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--rose); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header and footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-header .logo { display: block; line-height: 0; padding: 8px 0; }
.site-header .logo img { width: 128px; height: 28px; }
.site-header .sign-in {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 4px;
}

main { flex: 1; }

.site-footer { border-top: 1px solid var(--edge); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 40px;
}
.site-footer .tag { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.site-footer .tag img { width: 24px; height: 22px; }
.site-footer nav { display: flex; gap: 24px; font-size: 14px; }
.site-footer nav a { display: inline-block; padding: 12px 0; line-height: 20px; }

/* Home */

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

.home h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.home h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-intro {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}
.feature-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.band { border-top: 1px solid var(--edge); }
.band.tinted { background: var(--band); }
.band > .wrap {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* Sign-in button with the arrow end */
.cta { display: inline-block; border-radius: 12px; text-decoration: none; }
.cta:focus-visible { outline-offset: 4px; border-radius: 12px; }
.cta span {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 40px 0 24px;
  border-radius: 10px 0 0 10px;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 0 100%);
  background: var(--rose);
  color: var(--rose-ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
}
.cta:hover span { background: #ffb4c2; }

/* Pink tag with the arrow end, used on transcript parts */
.flag {
  display: inline-block;
  margin-right: 8px;
  padding: 0 12px 0 7px;
  border-radius: 3px 0 0 3px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
  background: var(--rose);
  color: var(--rose-ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  vertical-align: 3px;
}

/* Hero */

.home-hero {
  padding-top: clamp(28px, 4.5vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
/* The copy stops at its own width so the phone centers in the space to its
   right instead of pinning to the page edge. */
.hero-copy { flex: 1 1 560px; min-width: 0; max-width: min(700px, 49vw); }

/* The headline is a transcript being edited (home.js runs it). Without
   scripts, or with reduced motion, only the finished headline shows. */
.hl-box { position: relative; }
.hl {
  margin: 0;
  max-width: 16em;
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hl-ghost {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}
.hl-kw, .hl-ghost span { display: inline-block; }
.hl-cut {
  display: none;
  background-image: linear-gradient(var(--strike), var(--strike));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 0% 0.065em;
  transition: background-size 0.42s ease-out, color 0.42s ease-out, opacity 0.4s ease-out;
}
.js .hl-cut { display: inline; }
.hl-cut.is-struck { color: var(--cut-big); background-size: 100% 0.065em; }
.headline.is-faded .hl-cut { opacity: 0; }
.js .headline.is-tidy .hl-cut { display: none; }
.headline.is-gliding .hl-box,
.headline.is-gliding .hl-kw { transition: height 1s cubic-bezier(0.65, 0, 0.35, 1), transform 1s cubic-bezier(0.65, 0, 0.35, 1); }

/* Hidden (space kept) until the headline has played; never shown without
   scripts or with reduced motion, since there is nothing to replay. */
.again {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  min-height: 44px;
  margin-top: 6px;
  padding: 12px 0;
  border: 0;
  background: none;
  font-family: var(--text);
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 5px;
  cursor: pointer;
}
.headline.has-played .again { visibility: visible; }
.headline.is-done .again { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 0.4s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .js .hl-cut { display: none; }
}

.home-hero .sub {
  margin: clamp(10px, 1.4vw, 18px) 0 0;
  max-width: 31em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}
.hero-actions {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.hero-actions p { margin: 0; max-width: 22em; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* The finished video in a phone */
.hero-phone { flex: 0 0 auto; width: clamp(240px, 24vw, 310px); margin: 0 auto; }
.phone {
  padding: 9px;
  border-radius: 46px;
  background: #0d0a0b;
  border: 1px solid var(--edge-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -32px rgba(0, 0, 0, 0.9);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 37px;
  overflow: hidden;
  background: #000;
}
.phone-screen img, .tt img, .window-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.phone-screen img { object-position: center 30%; }

/* Captions in the app's style: white with a black outline, current words in yellow */
.caption {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 27%;
  margin: 0;
  text-align: center;
  font-family: var(--caption);
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.caption .karaoke { color: #ffd400; }

/* The hero shows captions at the app's real default size: 96 px type, a 14 px
   outline and 170 px side margins on a 1080 px frame, 28% up from the bottom
   (shorts-pipeline remotion/CaptionBlock.tsx), scaled to the phone's width. */
.phone-screen { container-type: inline-size; }
.phone-screen .caption {
  left: 15.7%;
  right: 15.7%;
  bottom: 28%;
  font-size: 8.89cqw;
  -webkit-text-stroke: 1.3cqw #000;
  text-shadow: 0 0.55cqw 1.85cqw rgba(0, 0, 0, 0.55);
}

/* What Picado cuts */

.cuts h2 { margin-bottom: 14px; }
.cuts .section-intro { margin-bottom: clamp(28px, 3.5vw, 44px); max-width: 34em; }
.cuts-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 40px; }
/* Left: the take and the shorter version (both about what gets cut).
   Right: the captions Picado adds. */
.cuts-main { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.transcript {
  box-sizing: content-box;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 34px);
  border-radius: 16px;
  background: var(--sunken);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.transcript p { margin: 0; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.95; color: var(--kept); }
.transcript .kept { color: var(--ink); }
.transcript .cut {
  color: var(--cut);
  text-decoration: line-through;
  text-decoration-color: var(--strike-sm);
  text-decoration-thickness: 1.5px;
}
.transcript .pause { font-style: italic; }

.cuts-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.captions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 22px; }
.captions-copy { flex: 1 1 180px; min-width: 0; }
.captions-copy h3 { margin-top: 4px; }

/* Video frame with the TikTok overlay drawn on top */
.tt {
  box-sizing: content-box;
  position: relative;
  flex: 0 0 216px;
  height: 384px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--edge);
}
.tt .caption { left: 6px; right: 6px; bottom: 28%; font-size: 14px; }
.tt-ui { position: absolute; inset: 0; color: #fff; font-size: 11px; }
.tt-tabs {
  position: absolute;
  top: 3.5%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 14%;
  font-size: 0.78em;
  font-weight: 600;
  opacity: 0.85;
}
.tt-tabs .on { border-bottom: 2px solid #fff; padding-bottom: 2px; }
.tt-rail { position: absolute; right: 3%; top: 47%; display: grid; gap: 0.9em; justify-items: center; }
.tt-rail span { display: block; width: 1.9em; height: 1.9em; border-radius: 50%; background: rgba(255, 255, 255, 0.82); }
.tt-rail span:first-child {
  box-sizing: content-box;
  width: 2.2em;
  height: 2.2em;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.35);
}
.tt-sound {
  position: absolute;
  left: 4%;
  right: 22%;
  bottom: 9%;
  margin: 0;
  font-size: 0.78em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.tt-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6.5%;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.tt-bar span { display: block; width: 1.2em; height: 1.2em; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.tt-bar .plus { width: 2.2em; border-radius: 5px; background: #fff; }

/* The app's Full / 3-Minute switch (a picture of it, not a control) */
.short { padding: 0 4px; }
.short h3 { margin-top: 18px; }
.versions {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--sunken);
  border: 1px solid var(--edge);
}
.versions > span {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.versions > .on { background: var(--surface); box-shadow: inset 0 1px 0 var(--hi); color: var(--ink); }
.versions .dur { margin-left: 8px; font-family: var(--text); font-variant-numeric: tabular-nums; color: var(--muted); }

/* You get the last word */

.last-word { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.last-word-copy { flex: 1 1 320px; min-width: 0; }
.last-word-copy .section-intro { max-width: 26em; }
.soon { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--edge); max-width: 26em; }
.soon h3 { margin-top: 12px; }
.soon-tag {
  display: inline-block;
  padding: 1px 15px 1px 8px;
  border-radius: 3px 0 0 3px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
}

/* The review screen. The crossed-out parts are real buttons (home.js). */
.review { flex: 1 1 520px; min-width: 0; max-width: 680px; }
.window {
  border-radius: 16px;
  background: var(--raised);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 var(--hi), 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--edge);
}
.window-title {
  margin: 0;
  min-width: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-len { margin: 0; flex: 0 0 auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.window-body { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px; }
.window-thumb {
  box-sizing: content-box;
  flex: 0 0 150px;
  height: 266px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--edge);
}
.window-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.window-text p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--kept); }
.window-text .counts { margin-top: 14px; font-size: 13.5px; line-height: normal; color: var(--muted); }
.window-text .flag { line-height: 1.6; vertical-align: 2px; }
.window-text .flag[hidden] { display: none; }
.part {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--cut);
  text-decoration: line-through;
  text-decoration-color: var(--strike-sm);
  text-decoration-thickness: 1px;
}
.part[aria-pressed="true"] { color: var(--ink); text-decoration: none; }
/* Taller tap area for one-line parts, without changing the layout */
.part::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, 44px);
  transform: translateY(-50%);
}
.window-foot {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--edge);
  background: var(--band);
}
.window-foot span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 10px;
  font-family: var(--display);
  white-space: nowrap;
}
.window-foot .change {
  flex: 0 0 auto;
  padding: 0 18px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--hi);
  font-size: 14.5px;
  font-weight: 500;
}
.window-foot .good {
  flex: 1 1 auto;
  padding-right: 17px;
  border-radius: 10px 0 0 10px;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 0 100%);
  background: var(--rose);
  color: var(--rose-ink);
  font-size: 15px;
  font-weight: 600;
}
.review-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Free while it's in beta */

.beta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 80px; }
.beta-copy { flex: 1 1 420px; min-width: 0; }
.beta-copy .section-intro { max-width: 32em; }

/* Privacy */

.doc {
  max-width: 680px;
  padding-top: clamp(16px, 4vw, 56px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.doc .updated { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.doc h2 {
  margin: 48px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}
.doc p, .doc li { font-size: 17px; line-height: 1.65; }
.doc p { margin: 16px 0 0; }
.doc .lead { margin-top: 32px; font-size: 19px; color: var(--ink); }
.doc ul { margin: 16px 0 0; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 22px; }
.doc li + li { margin-top: 10px; }
.doc li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--rose);
}
.doc a { color: var(--rose); text-underline-offset: 3px; }
.doc a:hover { color: #ffb4c2; }
