/*
  Umless website (umless.video)
  Hand-written CSS, no build step. Colors, type, radii and component sizes come from the app
  design in "Umless app design/HTML". There are no inline styles anywhere on the site, because
  the Content-Security-Policy in /_headers only allows this stylesheet.
*/

/* ---------- Fonts (self-hosted, Latin subset, SIL Open Font License) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallbacks sized to match the web fonts, so text does not jump when they arrive.
   Values are measured from the font files (average character width and vertical metrics). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.34%;
  ascent-override: 90.25%;
  descent-override: 22.47%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Space Grotesk Fallback";
  font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 102.5%;
  ascent-override: 96%;
  descent-override: 28.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  /* light surfaces */
  --page: #F5F6F8;
  --surface: #FFFFFF;
  --line: #E2E5EA;
  --ink: #0D1117;
  --muted: #566070;          /* muted text */
  --mark: #5F6B7E;           /* muted marks that are not text */
  --primary: #2447F9;
  --primary-hover: #1F3FE3;
  --tint: #E8ECFF;
  --well: #E7EAEF;
  --track: #D5D9E0;

  /* video surfaces (always dark) */
  --video: #0B0D11;
  --video-raised: #14171D;
  --frame: #1B1F27;
  --video-line: #232832;
  --video-cut: #2C323D;
  --on-video: #F2F4F7;
  --on-video-muted: #9AA3B2;
  --on-video-soft: #B5BDCA;
  --on-video-accent: #8EA2FF;
  --cut-text: #838C9C;
  --ok: #6FD6A6;
  --rec: #FF8177;

  /* a blank that must be filled in before launch (legal pages) */
  --blank: #FFE9A8;

  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Space Grotesk Fallback", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --container: 1160px;
  --section: clamp(72px, 11vw, 152px);
}
@media (min-width: 600px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

strong,
b {
  font-weight: 600;
}

svg {
  display: block;
  flex-shrink: 0;
}

[id] {
  scroll-margin-top: 24px;
}

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

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

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

/* ---------- Header ---------- */

.site-header {
  padding-block: 12px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span {
  color: var(--primary);
}

.site-nav ul {
  display: flex;
  gap: 2px;
  margin: 0 -12px 0 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--well);
}
.site-nav a[aria-current="page"] {
  color: var(--primary);
}
@media (max-width: 419px) {
  .site-nav .nav-wide {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--primary-hover);
}
.btn--on-primary {
  background: #FFFFFF;
  color: var(--ink);
}
.btn--on-primary:hover {
  background: var(--tint);
}
.btn--quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn--quiet:hover {
  background: var(--page);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(36px, 6vw, 88px) 0;
}
.hero + .section {
  padding-top: clamp(72px, 7.5vw, 104px);
}
.hero .wrap {
  container-type: inline-size;
}
.hero h1 {
  /* "Post a finished video." is 9.72em wide, so this keeps it on one line at every width */
  font-size: clamp(1.5rem, calc((100vw - (2 * var(--gutter))) / 10.4), 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
@supports (font-size: 1cqi) {
  .hero h1 {
    font-size: clamp(1.5rem, calc(100cqi / 10.1), 6.5rem);
  }
}
.hero h1 span {
  display: block;
}
.hero-lead {
  max-width: 35em;
  margin-top: clamp(20px, 2.6vw, 36px);
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.9rem + 0.55vw, 1.3125rem);
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero-cta .btn {
  flex: 0 0 auto;
}
.soon {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.soon b {
  display: block;
  color: var(--ink);
}
@media (max-width: 519px) {
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section) 0;
}
.section:last-of-type {
  padding-bottom: var(--section);
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section h2,
.cta h2 {
  font-size: clamp(1.875rem, 1.2rem + 3.1vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
/* A heading made of two short sentences: if it needs two lines, it breaks between them. */
.lines span {
  display: inline-block;
}
.section-head p {
  margin-top: 16px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}
.note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- How it works: three steps ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-content: start;
}
.step-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 16px;
}
.step-bar span {
  height: 3px;
  border-radius: 2px;
  background: var(--track);
}
.step-bar .on {
  background: var(--ink);
}
.step h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.step h3 .n {
  margin-right: 0.35em;
  color: var(--muted);
}
.step-text p {
  margin-top: 8px;
  max-width: 30em;
  color: var(--muted);
}
@media (min-width: 640px) and (max-width: 919.98px) {
  .step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
  }
}
@media (min-width: 920px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
  }
  @supports (grid-template-rows: subgrid) {
    .steps {
      grid-template-rows: auto 1fr;
    }
    .step {
      grid-row: span 2;
      grid-template-rows: subgrid;
      row-gap: 24px;
    }
  }
}

/* The panels are pictures of the app. Everything inside them is decoration for screen
   readers; each panel has a text alternative on its role="img" wrapper. */
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--video);
  color: var(--on-video);
  overflow: hidden;
}
.panel--take {
  background: var(--frame);
}
@media (min-width: 920px) {
  .panel {
    height: 100%;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--video-raised);
  color: var(--on-video);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.panel--take .pill {
  background: var(--video);
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--rec);
}
.pill-ring {
  width: 12px;
  height: 12px;
  border: 2px solid var(--video-cut);
  border-top-color: var(--on-video-accent);
  border-radius: 50%;
}

.take-text {
  flex: 1;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-video);
}
@media (min-width: 1100px) {
  .take-text {
    font-size: 1.25rem;
    line-height: 1.55;
  }
}
.take-text i {
  font-style: normal;
  color: var(--on-video-muted);
}
.take-text del {
  color: var(--cut-text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 57%;
  background-size: 100% 1.5px;
}
.take-text del i {
  color: inherit;
}

/* The take as a bar. One unit of flex-grow is one second of the example take. */
.tl {
  display: grid;
  gap: 10px;
}
.tl-bar {
  display: flex;
  gap: 2px;
  height: 6px;
}
.tl-bar span {
  min-width: 0;
  border-radius: 3px;
  background: var(--video-cut);
}
.tl-bar .keep {
  background: var(--primary);
}
.tl-bar--raw span {
  flex: 1;
  background: var(--mark);
}
.tl-bar--final {
  width: 24.3%;   /* 17 of 70 seconds */
}
.s3 { flex-grow: 3; }
.s4 { flex-grow: 4; }
.s5 { flex-grow: 5; }
.s6 { flex-grow: 6; }
.s7 { flex-grow: 7; }
.s8 { flex-grow: 8; }
.s9 { flex-grow: 9; }

.tl-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  color: var(--on-video-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-wrap: balance;
}
.ready {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  color: var(--on-video);
  font-size: 0.9375rem;
  font-weight: 600;
}
.ready svg {
  color: var(--ok);
}
.lengths {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.lengths s {
  color: var(--on-video-muted);
  font-size: 0.9375rem;
}
.lengths b {
  color: var(--on-video);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* The finished video */
.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(100%, 204px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--frame);
  overflow: hidden;
}
.speaker {
  position: absolute;
  inset: 0;
}
.speaker::before,
.speaker::after {
  content: "";
  position: absolute;
  left: 50%;
  background: var(--video-line);
  transform: translateX(-50%);
}
.speaker::before {
  top: 24%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.speaker::after {
  top: 47%;
  bottom: -12%;
  width: 78%;
  border-radius: 46% 46% 0 0 / 34% 34% 0 0;
}
.frame-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px dashed #6B7485;
  border-radius: 8px;
  color: var(--on-video-soft);
  font-size: 0.625rem;
}
.frame-bottom {
  position: relative;
  display: grid;
  gap: 12px;
}
.namecard {
  display: grid;
  gap: 1px;
  justify-self: start;
  padding: 6px 10px;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--ink);
  line-height: 1.3;
}
.namecard b {
  font-size: 0.8125rem;
  font-weight: 600;
}
.namecard span {
  color: var(--muted);
  font-size: 0.6875rem;
}
.caption {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.caption em {
  color: var(--on-video-accent);
  font-style: normal;
  white-space: nowrap;
}

/* The one moment of motion on the site: the retakes are crossed out as the panel scrolls
   into view. Browsers without scroll timelines, and people who prefer reduced motion, see
   the finished state. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .panel--cut {
      view-timeline: --cut block;
    }
    .panel--cut .take-text del {
      animation: strike linear both;
      animation-timeline: --cut;
    }
    .panel--cut .take-text del:nth-of-type(1) {
      animation-range: entry 30% entry 62%;
    }
    .panel--cut .take-text del:nth-of-type(2) {
      animation-range: entry 52% entry 84%;
    }
    .panel--cut .take-text del:nth-of-type(3) {
      animation-range: entry 74% entry 100%;
    }
  }
}
@keyframes strike {
  from {
    color: var(--on-video);
    background-size: 0% 1.5px;
  }
  to {
    color: var(--cut-text);
    background-size: 100% 1.5px;
  }
}

/* ---------- Who it is for ---------- */

.who {
  border-top: 1px solid var(--line);
}
.who > div {
  display: grid;
  gap: 6px 32px;
  padding-block: clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}
.who dt {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.who dd {
  max-width: 36em;
  color: var(--muted);
}
@media (min-width: 760px) {
  .who > div {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
  }
}

/* ---------- What sets it apart: brand kit and chat ---------- */

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}
.feature h2 {
  align-self: end;   /* when one heading wraps and the other does not, both sit on their paragraph */
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}
.feature > p {
  max-width: 32em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
}
.feature-mock {
  max-width: 36rem;
  margin-top: 16px;
}
@media (min-width: 920px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 5vw, 72px);
  }
  .feature-mock {
    max-width: none;
  }
  @supports (grid-template-rows: subgrid) {
    .pair {
      grid-template-rows: auto auto 1fr auto;
    }
    .feature {
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 16px;
    }
  }
}

/* Brand kit demo: real radio buttons, styled as the app's color swatches */
.brand-demo {
  min-width: 0;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.swatch-label {
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.brand-preview {
  --brand: #0B6B43;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 232px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--frame);
}
.bp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bp-row--end {
  align-items: flex-end;
  flex-wrap: wrap;
}
.bp-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.bp-label {
  color: var(--on-video-muted);
  font-size: 0.75rem;
}
.bp-caption {
  margin-left: auto;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}
.bp-caption em {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-style: normal;
  transition: background-color 0.2s ease;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  padding-top: 2px;
}
.swatches label {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}
.swatches .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
/* On phones eight swatches in one row would be under 44px wide each, so they sit in two rows of
   four. From 430px up one row gives every swatch a full-size tap target. */
@media (max-width: 429.98px) {
  .swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.sw-ink { background: #0D1117; }
.sw-blue { background: #2447F9; }
.sw-green { background: #0B6B43; }
.sw-red { background: #B42318; }
.sw-amber { background: #B54708; }
.sw-violet { background: #6938EF; }
.sw-teal { background: #0E7090; }
.sw-pink { background: #C11574; }

#bc-ink:checked ~ .brand-preview { --brand: #0D1117; }
#bc-blue:checked ~ .brand-preview { --brand: #2447F9; }
#bc-green:checked ~ .brand-preview { --brand: #0B6B43; }
#bc-red:checked ~ .brand-preview { --brand: #B42318; }
#bc-amber:checked ~ .brand-preview { --brand: #B54708; }
#bc-violet:checked ~ .brand-preview { --brand: #6938EF; }
#bc-teal:checked ~ .brand-preview { --brand: #0E7090; }
#bc-pink:checked ~ .brand-preview { --brand: #C11574; }

#bc-ink:checked ~ .swatches [for="bc-ink"] .dot,
#bc-blue:checked ~ .swatches [for="bc-blue"] .dot,
#bc-green:checked ~ .swatches [for="bc-green"] .dot,
#bc-red:checked ~ .swatches [for="bc-red"] .dot,
#bc-amber:checked ~ .swatches [for="bc-amber"] .dot,
#bc-violet:checked ~ .swatches [for="bc-violet"] .dot,
#bc-teal:checked ~ .swatches [for="bc-teal"] .dot,
#bc-pink:checked ~ .swatches [for="bc-pink"] .dot {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ink);
}

#bc-ink:focus-visible ~ .swatches [for="bc-ink"],
#bc-blue:focus-visible ~ .swatches [for="bc-blue"],
#bc-green:focus-visible ~ .swatches [for="bc-green"],
#bc-red:focus-visible ~ .swatches [for="bc-red"],
#bc-amber:focus-visible ~ .swatches [for="bc-amber"],
#bc-violet:focus-visible ~ .swatches [for="bc-violet"],
#bc-teal:focus-visible ~ .swatches [for="bc-teal"],
#bc-pink:focus-visible ~ .swatches [for="bc-pink"] {
  outline: 3px solid var(--primary);
  outline-offset: 0;
}

/* Chat demo: a picture of the editor in Chat mode */
.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 16px;
  border-radius: 20px;
  background: var(--video);
  color: var(--on-video);
  overflow: hidden;
}
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 12px;
  background: var(--video-raised);
}
.modes span {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 9px;
  color: var(--on-video-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}
.modes .on {
  background: var(--on-video);
  color: var(--video);
}
.bubble {
  align-self: flex-end;
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.reply {
  padding: 14px 14px 12px;
  border: 1px solid var(--video-line);
  border-radius: 14px;
  background: var(--video-raised);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.reply-actions {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  color: var(--on-video-accent);
  font-size: 0.875rem;
  font-weight: 500;
}
.chips {
  display: flex;
  gap: 8px;
  margin: auto -16px 0 0;
  padding-top: 8px;
  overflow: hidden;
}
.chips span {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--video-line);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.composer {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--video-line);
  border-radius: 14px;
  background: var(--video-raised);
  color: var(--on-video-muted);
  font-size: 0.9375rem;
}
.composer span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--on-video);
}
.composer .ico--send {
  border-radius: 11px;
  background: var(--video-line);
}

.feature-more {
  margin-top: 8px;
}
.asks-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.asks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.asks li {
  /* plain labels, not buttons: no border, no white fill */
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--well);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- Price ---------- */

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.price .section-head {
  margin-bottom: 0;
}
.price-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.price-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 920px) {
  .price {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 6vw, 96px);
  }
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 2px solid var(--primary);
  border-radius: 20px;
  background: var(--surface);
}
.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.plan-name {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.plan-head svg {
  color: var(--primary);
}
.plan-prices {
  display: grid;
  gap: 16px 24px;
  margin: 0;
}
.plan-prices dt {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.plan-prices dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.plan-prices dd b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.plan-prices dd small {
  flex-basis: 100%;
  font-size: 0.8125rem;
}
@media (min-width: 480px) {
  .plan-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.plan hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}
.plan-allowance {
  font-size: 0.9375rem;
  font-weight: 600;
}
.checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checks svg {
  margin-top: 3px;
  color: var(--primary);
}
.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tint);
}
.trial b {
  font-size: 0.9375rem;
}
.trial span {
  color: var(--muted);
  font-size: 0.8125rem;
  text-wrap: balance;
}
.fine {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.plan-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

/* ---------- Final call to action ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(28px, 6vw, 80px);
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--primary);
  color: #FFFFFF;
}
.cta-mark {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 3rem + 14vw, 13rem);
  font-weight: 600;
  line-height: 0.74;
  letter-spacing: -0.04em;
}
.cta-body {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.cta-body p {
  max-width: 30em;
  color: var(--tint);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
}
.cta-body .btn {
  margin-top: 8px;
}
.cta-body .fine {
  color: var(--tint);
  font-size: 0.8125rem;
}
.cta a:not(.btn) {
  color: #FFFFFF;
}
.cta :focus-visible {
  outline-color: #FFFFFF;
}
@media (max-width: 519px) {
  .cta-body .btn {
    width: 100%;
  }
}
@media (min-width: 920px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .cta-mark {
    order: 2;
    padding-bottom: 0.08em;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px 48px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.footer-brand p {
  max-width: 24em;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-legal {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}
@media (min-width: 760px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* ---------- Documents: privacy, terms, support ---------- */

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(28px, 5vw, 72px) clamp(64px, 10vw, 128px);
}
.doc-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.doc-head p {
  max-width: 40em;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
}
.doc-head .doc-date {
  margin-top: 12px;
  font-size: 0.9375rem;
}

.toc {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.9375rem;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
}
.toc ol {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.toc a,
.toc-fold a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ink);
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover,
.toc-fold a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* The privacy policy and the terms have long lists of sections. On phones and tablets the list
   is folded away so the text starts on the first screen. It is a details element, so it opens
   and closes without a script. On wide screens the same list sits beside the text instead. */
.toc-fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.9375rem;
}
.toc-fold summary {
  border-radius: 13px;
  cursor: pointer;
  list-style: none;
}
.toc-fold summary::-webkit-details-marker {
  display: none;
}
.toc-fold summary > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px 0 20px;
  font-weight: 600;
}
.toc-fold summary svg {
  color: var(--muted);
  transition: transform 0.2s ease;
}
.toc-fold[open] summary svg {
  transform: rotate(180deg);
}
.toc-fold ol {
  margin: 0;
  padding: 0 20px 12px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.toc-fold ol li:first-child {
  margin-top: 8px;
}
.toc-fold ~ .toc {
  display: none;
}

@media (min-width: 600px) and (max-width: 999.98px) {
  .toc ol,
  .toc-fold ol {
    columns: 2;
    column-gap: 32px;
  }
  .toc li,
  .toc-fold li {
    break-inside: avoid;
  }
  .toc-fold ol li:first-child {
    margin-top: 0;
  }
  .toc-fold ol {
    padding-top: 8px;
  }
}
@media (min-width: 1000px) {
  .toc-fold {
    display: none;
  }
  .toc-fold ~ .toc {
    display: block;
  }
  .doc {
    grid-template-columns: 248px minmax(0, 44rem);
    gap: 48px clamp(48px, 7vw, 96px);
  }
  .doc-head {
    grid-column: 1 / -1;
  }
  /* Help page: the contact card sits above the answers, with the list of questions beside both */
  .doc--help .contact-card {
    grid-column: 2;
    grid-row: 2;
  }
  .doc--help .toc {
    grid-column: 1;
    grid-row: 2 / span 2;
  }
  .doc--help .prose {
    grid-column: 2;
    grid-row: 3;
  }
  .toc {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: auto;
  }
  .toc a {
    min-height: 0;
    padding: 6px 0;
  }
}

.prose {
  min-width: 0;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.prose h3 {
  margin: 1.8em 0 0.4em;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin: 0 0 0.45em;
}
.prose li::marker {
  color: var(--muted);
}
.prose a {
  font-weight: 500;
}

.summary {
  margin: 0 0 2em;
  padding: 20px 24px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.prose .summary h2 {
  margin: 0 0 0.6em;
  font-size: 1.25rem;
}

.processors {
  margin: 0 0 1.4em;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.prose .processors {
  padding-left: 0;
}
.processors li {
  display: grid;
  gap: 2px 24px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.processors b {
  display: block;
}
.processors li > span {
  color: var(--muted);
}
@media (min-width: 640px) {
  .processors li {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}

.kept {
  margin: 0 0 1.4em;
  border-top: 1px solid var(--line);
}
.kept > div {
  display: grid;
  gap: 2px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.kept dt {
  font-weight: 600;
}
.kept dd {
  color: var(--muted);
}
@media (min-width: 640px) {
  .kept > div {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.blank {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--blank);
  color: var(--ink);
  font-weight: 600;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 44rem;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.contact-card p {
  margin: 0;
}
.contact-card a:not(.btn) {
  font-weight: 500;
}
.contact-card .btn {
  justify-self: start;
}
@media (max-width: 519px) {
  .contact-card .btn {
    justify-self: stretch;
  }
}

.steps-list {
  counter-reset: s;
  padding-left: 0;
  list-style: none;
}
.prose .steps-list {
  padding-left: 0;
}
.steps-list li {
  position: relative;
  min-height: 26px;
  padding-left: 38px;
  counter-increment: s;
}
.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Not found ---------- */

.lost {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  justify-items: start;
  padding-block: clamp(56px, 12vw, 160px);
}
.lost h1 {
  font-size: clamp(2.25rem, 1.4rem + 4.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lost p {
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}
.lost-bar {
  display: flex;
  gap: 3px;
  width: min(100%, 320px);
  height: 6px;
}
.lost-bar span {
  flex: 3;
  border-radius: 3px;
  background: var(--primary);
}
.lost-bar .gone {
  flex: 2;
  background: var(--track);
}
.lost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 519px) {
  .lost-actions {
    width: 100%;
  }
  .lost-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #FFFFFF;
    font-size: 11pt;
  }
  .site-header nav,
  .site-footer nav,
  .toc,
  .toc-fold,
  .toc-fold ~ .toc,
  .skip {
    display: none;
  }
  .doc {
    display: block;
    padding-block: 0;
  }
  .doc-head,
  .contact-card {
    margin-bottom: 18pt;
  }
  a {
    color: inherit;
  }
}
