/* /create — the studio page: signed out, blocked, the form, and one video being made.
   Same visual language as the guide (paper, Fraunces / Figtree / Caveat, clay accent); this page
   loads only this stylesheet. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/figtree-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/caveat-latin.woff2) format("woff2");
}

:root {
  --paper: #f5efe3;
  --paper-2: #ede3d0;
  --card: #fbf7ef;
  --note: #fff6d9;
  --field-bg: #fffdf8;
  --ink: #2a2521;
  --ink-2: #5b5048;
  --ink-3: #6f6358;
  --clay-d: #a5492c;
  --clay-btn: #a94f31;
  --clay-hover: #94432a;
  --clay-tint: #f6e7dc;
  --wechat: #067a3f;
  --wechat-soft: #e3f2e9;
  --sky-d: #48697c;
  --sage-d: #56693f;
  --line: rgba(42, 37, 33, 0.18);
  --field: #8a7d6b;
  --focus: #1f5f8b;
  --error: #a3271b;
  --r-blob: 22px 16px 26px 18px / 18px 24px 16px 22px;
  --shadow: 0 1px 0 rgba(42, 37, 33, 0.06), 0 10px 24px -14px rgba(90, 60, 40, 0.35);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 24px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font: 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 12% 18%, rgba(214, 178, 130, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 30% at 88% 42%, rgba(200, 160, 120, 0.18), transparent 70%);
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--clay-d);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover {
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}
p {
  margin: 0;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
main {
  max-width: 1168px;
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

/* ---------- header ---------- */
.top {
  max-width: 1168px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 21px/1 var(--f-display);
  font-variation-settings: "SOFT" 100;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.acct {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  font-size: 15px;
  color: var(--ink-3);
}
.acct a,
.acct .linklike {
  color: var(--ink-2);
  display: inline-block;
  padding: 10px 2px;
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--clay-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.linklike:hover {
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  font: 700 17px/1.2 var(--f-body);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-blob);
  transition: transform 0.15s;
}
.btn:hover {
  transform: translateY(-2px) rotate(-0.4deg);
}
.btn-primary {
  background: var(--clay-btn);
  color: #fff;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.14),
    0 8px 18px -10px rgba(160, 70, 40, 0.9);
}
.btn-primary:hover {
  background: var(--clay-hover);
  color: #fff;
}
.btn.btn-wechat {
  background: var(--wechat);
  color: #fff;
  gap: 10px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 8px 18px -10px rgba(6, 90, 46, 0.9);
}
.btn.btn-wechat:not(:disabled):hover {
  background: var(--wechat);
  color: #fff;
}
.payment-symbols {
  position: absolute;
}
.payment-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}
.payment-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 8px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.payment-tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.buy-method .payment-tile:has(input:checked) {
  border: 2px solid var(--ink);
}
.buy-method .payment-tile:has(input[value="wechat"]:checked) {
  border-color: var(--wechat);
  background: var(--wechat-soft);
  color: var(--wechat);
}
.payment-tile:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
}
.btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}
.btn:disabled {
  cursor: not-allowed;
  transform: none;
  background: #b9ab98;
  box-shadow: none;
  color: #fff;
}
.btn.is-busy {
  cursor: wait;
}
/* Google's light "Continue with Google" button: white fill, #747775 stroke, #1F1F1F text, full-colour G. */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px 0 14px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 24px;
  font: 500 16px/20px Roboto, var(--f-body);
  text-decoration: none;
  letter-spacing: 0.1px;
  box-shadow: 0 6px 16px -10px rgba(70, 40, 20, 0.45);
}
.btn-google:hover {
  background: #f8f9fa;
  color: #1f1f1f;
  box-shadow: 0 8px 18px -10px rgba(70, 40, 20, 0.55);
}
.btn-google .g {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-google .g svg {
  width: 20px;
  height: 20px;
}

/* ---------- hero ---------- */
.kicker {
  display: inline-block;
  font: 700 24px/1.2 var(--f-hand);
  color: var(--clay-d);
  transform: rotate(-2deg);
  margin-bottom: 10px;
}
.h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 750;
}
.sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 32em;
}
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 20px) 56px;
  padding-top: 40px;
  text-align: left;
}
.hero > :not(.hero-demo) {
  grid-column: 1;
  min-width: 0;
}
.hero .kicker {
  justify-self: start;
  margin: 0;
  font-size: clamp(23px, 2.1vw, 26px);
  transform: rotate(-3deg);
}
.hero .h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
}
.hero .sub {
  margin: 0;
  max-width: 30em;
  font-size: clamp(17px, 1.5vw, 19px);
}
.hero .cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}
.hero .cta-note {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.hero .status {
  margin: 0;
}
.hero-demo {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  min-width: 0;
  position: relative;
  padding: 48px 0 0 36px;
}
.sentence-note {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  max-width: 300px;
  padding: 14px 18px;
  background: var(--note);
  border-radius: 6px 10px 8px 12px;
  box-shadow: 0 6px 16px -10px rgba(90, 60, 40, 0.5);
  transform: rotate(-3deg);
  font: 700 25px/1.15 var(--f-hand);
}
.sentence-arrow {
  position: absolute;
  left: 290px;
  top: 34px;
  z-index: 2;
  fill: none;
  stroke: var(--clay-d);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.hero-demo.is-playing .sentence-note,
.hero-demo.is-playing .sentence-arrow {
  display: none;
}
.hero-demo .poster .play {
  width: 72px;
  height: 72px;
}
.poster-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(42, 37, 33, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.cta {
  margin-top: 24px;
}
.cta-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-3);
}
.page-error {
  max-width: 760px;
  margin: 8px auto 16px;
  color: var(--error);
  background: #fbe9e5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
}

/* ---------- closed-account status ---------- */
.status {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: left;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px 28px 22px;
  border-left: 5px solid var(--sage-d);
}
.status h2 {
  font-size: clamp(24px, 2.5vw, 30px);
}
.status p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}
textarea::placeholder {
  color: #7a6e62;
}
.error {
  color: var(--error);
  font-size: 15px;
  line-height: 1.5;
  margin-top: 10px;
}

/* ---------- sample strip ---------- */
.samples {
  margin-top: clamp(64px, 7.5vw, 96px);
}
.h2s,
.pricing > .section-head .h2 {
  text-align: center;
  font-size: clamp(27px, 2.7vw, 34px);
  line-height: 1.2;
}
.films {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 22px;
}
.film {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 10px;
}
.film .idea {
  margin: 0;
  min-height: 3.2em;
  font: italic 500 16.5px/1.4 var(--f-display);
  color: var(--ink);
}
.film figcaption {
  font-size: 14px;
  color: var(--ink-2);
}
.film figcaption b {
  color: var(--ink);
}
.poster {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: 14px 18px 12px 16px/16px 12px 18px 14px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow:
    0 0 0 6px var(--card),
    0 0 0 7px rgba(42, 37, 33, 0.12),
    0 20px 34px -22px rgba(70, 40, 20, 0.55);
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
  fill: #fbf7ef;
  filter: drop-shadow(0 4px 10px rgba(30, 20, 10, 0.35));
}
.poster .play .tri {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
}
.poster:hover .play {
  transform: translate(-50%, -50%) scale(1.07) rotate(-4deg);
}
.poster iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#samples .poster,
#gate-panel .poster {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
#gate-panel .poster {
  border-radius: 14px;
  box-shadow: 8px 10px 0 rgba(232, 222, 206, 0.95);
}
#samples .poster .play,
#gate-panel .poster .play {
  fill: rgba(255, 255, 255, 0.92);
  filter: none;
}
#samples .poster .play {
  width: 52px;
  height: 52px;
}
#samples .poster .play .tri,
#gate-panel .poster .play .tri {
  fill: var(--clay-btn);
  stroke: none;
}

/* ---------- how it works + five drawing styles ---------- */
.story {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 28px);
  margin-top: clamp(64px, 7.5vw, 96px);
}
.story-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-steps li,
.step-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  font: 700 19px/1 var(--f-display);
  color: #fff;
  background: var(--clay-btn);
  border-radius: 50%;
}
.story-steps li:nth-child(2) .step-num {
  background: var(--sky-d);
}
.story-steps li:nth-child(3) .step-num {
  background: var(--sage-d);
}
.step-text b {
  font: 700 21px/1.25 var(--f-display);
}
.step-text > span {
  font-size: clamp(15px, 1.25vw, 15.5px);
  color: var(--ink-2);
}
.board {
  margin: 0;
}
.board img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.board figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.board-caption-phone {
  display: none;
}
.drawing-styles {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 68px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.section-head p {
  color: var(--ink-2);
}
.style-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.style-gallery figure {
  margin: 0;
}
.style-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
.style-gallery figcaption {
  margin-top: 8px;
  font-size: clamp(14.5px, 1.25vw, 15.5px);
  font-weight: 700;
  text-align: center;
}

/* ---------- price note + spot ---------- */
.pricing {
  margin-top: clamp(64px, 7.5vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(14px, 1.7vw, 22px) 28px;
  align-items: stretch;
}
.pricing > .section-head,
.price-strip {
  grid-column: 1 / -1;
}
.h2 {
  font-size: clamp(26px, 2.6vw, 32px);
}
.price-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 32px;
  padding: 22px 28px;
  background: var(--note);
  border-radius: 12px 16px 12px 14px;
}
.price-pack {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.price-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16.5px;
  font-weight: 700;
}
.price-fine {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-fine .fine {
  margin: 0;
  font-size: clamp(13.5px, 1.2vw, 14.5px);
  line-height: 1.55;
}
.ptable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}
.ptable th,
.ptable td {
  padding: 14px 0;
  border-top: 1.5px dashed rgba(42, 37, 33, 0.22);
  text-align: left;
  vertical-align: middle;
}
.ptable tbody tr:first-child th,
.ptable tbody tr:first-child td {
  border-top: 0;
}
.ptable th {
  font: 700 19px/1.2 var(--f-body);
  width: 27%;
}
.fine {
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 14px;
}
.promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.promise svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--sage-d);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.welcome svg path {
  fill: none;
  stroke: var(--sage-d);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px 16px 12px 14px;
  box-shadow: 5px 7px 0 rgba(232, 222, 206, 0.85);
  padding: 26px;
}
.spot .h2 {
  font-size: 26px;
}
.spot p {
  color: var(--ink-2);
  font-size: 15.5px;
}
.spot .btn-google {
  justify-content: center;
}
.privacy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 16px;
}
.spot .privacy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.privacy svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---------- signed in: heading + form ---------- */
.act-head {
  margin: 0;
  padding: 0;
}
.welcome {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: #e8eedf;
  color: #3f4f2c;
  font-weight: 600;
  font-size: 15px;
  margin-top: 2px;
}
.welcome svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--sage-d);
  stroke-width: 2.4;
}
.act-h1 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-top: 10px;
}
.card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid #ddd1bd;
  border-radius: 12px 16px 12px 14px;
  box-shadow: 5px 7px 0 rgba(232, 222, 206, 0.85);
  padding: 34px;
}
.card + .card,
.create + .card {
  margin-top: 28px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-title {
  font: 700 24px/1.25 var(--f-display);
  font-variation-settings: "SOFT" 100;
}
.packs {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.packs small {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
}
#balance-line {
  margin-top: 12px;
}
.hint {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
}
textarea {
  display: block;
  width: 100%;
  margin-top: 14px;
  min-height: 112px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: var(--field-bg);
  padding: 14px 16px;
  font: 17px/1.55 var(--f-body);
  color: var(--ink);
  resize: vertical;
}
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.count {
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
}
.idea-help {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}
.idea-help-h {
  font-weight: 700;
}
.idea-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.idea-example {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--field-bg);
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.idea-example:hover {
  border-color: var(--field);
  color: var(--ink);
}
.opts {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.lens {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.length-custom {
  display: grid;
  margin-top: 20px;
}
.length-custom label {
  font-weight: 600;
}
.length-custom output,
.length-scale {
  color: var(--ink-2);
  font-size: 14px;
}
.length-scale {
  display: flex;
  justify-content: space-between;
}
#duration {
  --length-fill: 11.8644%;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
#duration::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--clay-btn) var(--length-fill), var(--line) var(--length-fill));
}
#duration::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
#duration::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--clay-btn);
}
#duration::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--clay-btn);
}
#duration::-moz-range-thumb {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--clay-btn);
}
#duration:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.opt {
  position: relative;
  display: block;
  cursor: pointer;
  min-width: 0;
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.opt .face {
  position: relative;
  display: block;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--field-bg);
  height: 100%;
}
.opt input:checked + .face {
  border: 2px solid var(--clay-d);
  padding: 13.5px 15.5px;
  background: var(--clay-tint);
  box-shadow: 0 0 0 3px rgba(169, 79, 49, 0.14);
}
.opt input:focus-visible + .face {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.opt .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clay-btn);
  display: none;
  place-items: center;
}
.opt .tick svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.opt input:checked + .face .tick {
  display: grid;
}
.opt b {
  display: block;
  font: 700 19px/1.2 var(--f-body);
}
.opt .p {
  display: block;
  font: 750 23px/1.2 var(--f-display);
  font-variation-settings: "SOFT" 100;
  color: var(--clay-d);
  margin-top: 6px;
}
.btn-pay {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}
.estimate {
  margin-top: 12px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.paynotes {
  margin-top: 14px;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.after {
  background: var(--paper);
  border-radius: 12px;
  padding: 20px 22px;
  border: 1px solid #e2d7c4;
}
.after h3 {
  font-size: 19px;
}
.after ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.after li::marker {
  font-weight: 700;
  color: var(--ink);
}

/* The signed-in form and summary; shared cards elsewhere keep their existing layout. */
#create-panel {
  padding-top: 14px;
}
.create-title-row,
.create-title-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
#create-title {
  flex: 1;
  margin: 0;
  font-size: 42px;
}
#create-panel #gift-section {
  max-width: none;
  margin: 0;
}
#create-panel #welcome {
  margin-bottom: 12px;
}
#create-panel .balance-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid #ddd1bd;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
}
#balance {
  font: 700 20px/1.4 var(--f-display);
  color: var(--clay-d);
}
#balance.is-zero {
  color: var(--ink-3);
}
#create-panel #buy-seconds,
#create-panel #gift-toggle {
  min-height: 44px;
  font-size: 15px;
}
#create-panel #buy-seconds {
  font-weight: 700;
}
#create-panel #gift-toggle {
  color: var(--ink-2);
}
#create-panel #payment-notice {
  margin-top: 14px;
}
.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  align-items: start;
  gap: 32px;
  margin-top: 26px;
}
#create-panel #idea-form {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 8px 34px;
}
.create-step {
  padding: 26px 0;
}
.create-step + .create-step {
  border-top: 1px dashed var(--line);
}
.create-step h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  line-height: 1.3;
}
.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--card);
  font: 700 15px/1 var(--f-body);
}
.create-step > label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
#create-panel #idea {
  font: italic 500 21px/1.45 var(--f-display);
  padding: 16px 18px;
  border-radius: 12px;
}
#create-panel .idea-examples {
  display: grid;
  gap: 8px;
}
#create-panel .idea-example {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px dashed rgba(169, 79, 49, 0.6);
  border-radius: 10px;
  background: var(--note);
  color: var(--ink);
  font: italic 500 14.5px/1.4 var(--f-display);
}
.lyrics-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  margin-top: 14px;
  border-radius: 12px;
  background: var(--paper-2);
}
.lyrics-switch span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink-2);
}
.lyrics-switch input:checked + span {
  background: var(--field-bg);
  box-shadow: 0 1px 2px rgba(42, 37, 33, 0.2);
  color: var(--ink);
  font-weight: 700;
}
.lyrics-switch input:focus-visible + span {
  outline: 3px solid var(--focus);
}
.summary-column {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}
#create-panel .summary-card {
  width: 100%;
  padding: 22px;
}
.summary-overview {
  display: grid;
  gap: 14px;
}
.summary-card:has(#buy-form:not([hidden])) .summary-overview {
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.summary-card:has(#buy-form:not([hidden])) .summary-overview h2 {
  grid-column: 1 / -1;
}
.summary-overview h2 {
  font-size: 22px;
}
.summary-overview dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: 15px;
}
.summary-overview dt,
.summary-usage > span {
  color: var(--ink-3);
}
.summary-overview dd {
  margin: 0;
  font-weight: 700;
}
.summary-usage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.summary-usage b {
  text-align: right;
  font: 700 24px/1.4 var(--f-display);
  color: var(--clay-d);
}
.summary-usage p {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 14px;
  color: var(--ink-2);
}
.summary-card .btn-pay,
#create-button {
  min-height: 54px;
  font-size: 17px;
}
.summary-card .estimate {
  font: 400 14px/1.45 var(--f-body);
  text-align: center;
  color: var(--ink-2);
}
.summary-card .privacy {
  justify-content: center;
  font-size: 13px;
}
.summary-column .after {
  padding: 0 6px;
  background: transparent;
  border: 0;
}
.summary-column .after ol {
  font-size: 14.5px;
  gap: 6px;
}
#buy-title {
  font: 700 16px/1.4 var(--f-body);
  margin-bottom: 8px;
}
#pack-options {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}
.summary-buy .buy-method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.buy-method legend {
  padding: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}
#pack-options .face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
}
#pack-options input:checked + .face {
  padding: 9.5px 12.5px;
}
#pack-options .tick {
  display: none;
}
#pack-options b,
#pack-options .p {
  font: 700 15.5px/1.3 var(--f-body);
  color: var(--ink);
  margin: 0;
}
#pack-options .p {
  grid-area: 1 / 2 / 3 / 3;
}
#pack-options small {
  font: 400 12.5px/1.3 var(--f-body);
  color: var(--ink-2);
}
#pack-options .opt:has(input:disabled) {
  cursor: not-allowed;
}
#pack-options input:disabled + .face {
  border: 1.5px dashed #c9bca6;
  background: transparent;
  box-shadow: none;
}
#pack-options input:disabled + .face b,
#pack-options input:disabled + .face .p,
#pack-options input:disabled + .face small {
  color: var(--ink-3);
}
.buy-payment {
  margin-top: 14px;
}
.kept-idea {
  margin-top: 12px;
  font: 14px/1.5 var(--f-body);
  text-align: center;
}
.summary-buy .paynotes {
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
#buy-cancel {
  display: block;
  min-height: 44px;
  margin: 6px auto 0;
}
.phone-bar,
.sheet-only,
.buy-backdrop {
  display: none;
}
@media (max-width: 979px) {
  .create-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
  }
  .create-title-actions {
    grid-column: 1 / -1;
    gap: 18px;
    justify-self: start;
  }
  #create-title {
    font-size: clamp(26px, 7.95vw, 31px);
  }
  #create-panel .balance-chip {
    padding: 4px 12px;
    font-size: 14px;
  }
  #balance {
    font-size: 18px;
  }
  #create-panel #buy-seconds,
  #create-panel #gift-toggle {
    font-size: 14.5px;
  }
  .create-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 4px;
  }
  #create-panel #idea-form {
    padding: 4px 16px;
  }
  .create-step {
    padding: 20px 0;
  }
  .create-step h2 {
    gap: 10px;
    font-size: 20px;
  }
  .step-number {
    width: 26px;
    height: 26px;
    font-size: 13.5px;
  }
  .create-step > label {
    font-size: 14px;
  }
  #create-panel #idea {
    font-size: 18px;
    padding: 12px 14px;
  }
  #create-panel .lens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #create-panel .lens .face,
  #create-panel .lens input:checked + .face {
    display: grid;
    gap: 0;
    padding: 10px 4px;
    text-align: center;
  }
  #create-panel .lens .tick {
    display: none;
  }
  #create-panel .lens .hint {
    margin: 4px 0 0;
    font-size: 12.5px;
  }
  #create-panel .styles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #create-panel .style b {
    font-size: 14px;
  }
  #create-panel .modes {
    grid-template-columns: minmax(0, 1fr);
  }
  .lyrics-switch {
    display: grid;
  }
  .summary-column,
  #create-panel .summary-card,
  #start-actions {
    display: contents;
  }
  .summary-overview,
  .summary-usage,
  #start-button,
  #start-estimate,
  .desktop-paynotes {
    display: none;
  }
  .summary-column .after {
    order: 1;
  }
  .summary-card .privacy {
    order: 2;
    margin-top: 0;
    justify-content: flex-start;
  }
  .phone-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid #ddd1bd;
    box-shadow: 0 -8px 20px -14px rgba(90, 60, 40, 0.5);
  }
  .phone-bar > div {
    display: grid;
    gap: 3px;
    min-width: 0;
    font: 15px/1.3 var(--f-body);
  }
  #phone-detail {
    font-size: 13px;
    color: var(--ink-2);
  }
  #phone-start {
    min-height: 50px;
    max-width: 55%;
    flex: none;
    padding: 10px 18px;
    font-size: 16.5px;
    white-space: nowrap;
  }
  .buy-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(42, 37, 33, 0.45);
  }
  #buy-sheet {
    position: fixed;
    inset: auto 0 0;
    z-index: 31;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--card);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px -12px rgba(42, 37, 33, 0.5);
  }
  .sheet-only {
    display: block;
  }
  .sheet-handle {
    width: 40px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(42, 37, 33, 0.25);
  }
  .sheet-close {
    position: absolute;
    inset: 21px 8px auto auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .sheet-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
  }
  #buy-title {
    max-width: calc(100% - 40px);
    font: 700 23px/1.3 var(--f-display);
    margin-bottom: 2px;
  }
  #buy-description {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 12px;
  }
  #pack-options .face {
    padding: 8px 13px;
  }
  #pack-options input:checked + .face {
    padding: 7.5px 12.5px;
  }
  .kept-idea {
    font-size: 13.5px;
  }
  .sheet-paynotes {
    font: 12px/1.5 var(--f-body);
    color: var(--ink-3);
    margin-top: 12px;
  }
  .sheet-paynotes summary {
    min-height: 44px;
    display: flex;
    align-items: center;

  }
  #sheet-gift {
    min-height: 44px;
    margin: 0 auto;
    font-size: 14.5px;
  }
  body:has(#create-panel:not([hidden])) {
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }
  body:has(#buy-sheet[aria-modal="true"]) {
    overflow: hidden;
  }
}

.gift {
  max-width: 760px;
  margin: 20px auto 0;
}
.purchases-table {
  overflow-x: auto;
}
.purchases-table .ptable {
  min-width: 620px;
}
.purchases-table .ptable th,
.purchases-table .ptable td {
  padding: 12px 8px;
  width: auto;
  font-size: 15px;
}
#gift-form {
  margin-top: 12px;
}
#gift-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
#gift-code {
  max-width: 100%;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: var(--field-bg);
  padding: 12px;
  font: inherit;
  color: var(--ink);
}
#gift-code:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

/* ---------- My home ---------- */
#home-panel {
  padding-top: 18px;
}
#home-panel > section {
  margin-top: 36px;
}
#home-panel h2 {
  font-size: clamp(24px, 2.3vw, 28px);
}
#home-panel[data-signed-in="true"] .home-heading {
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.home-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(14px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px);
  align-items: center;
}
#home-title {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 750;
}
#home-balance {
  padding: 10px 18px;
  border: 1px solid #ddd1bd;
  border-radius: 14px;
  background: var(--card);
}
.home-balance-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font: 650 clamp(16px, 1.5vw, 18px)/1.1 var(--f-display);
}
#home-balance-figure {
  font-size: clamp(30px, 2.7vw, 34px);
  font-weight: 750;
  color: var(--clay-d);
}
#home-balance[data-empty="true"] #home-balance-figure {
  color: var(--ink-3);
}
#home-balance-breakdown {
  font-size: clamp(12.5px, 1.1vw, 14px);
  color: var(--ink-2);
}
.home-actions {
  display: flex;
  gap: clamp(10px, 1.1vw, 14px);
}
.list {
  list-style: none;
  margin: clamp(12px, 1.3vw, 16px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}
.list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ddd1bd;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 4px 6px 0 rgba(232, 222, 206, 0.85);
}
.home-video-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 16 / 9;
  flex: none;
  background: var(--paper-2);
  text-align: center;
}
.home-video-poster img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-video-making img {
  opacity: 0.55;
}
.home-video-chip,
.home-video-duration {
  position: absolute;
  padding: 3px 10px;
  font-size: clamp(11.5px, 1.1vw, 13px);
  font-weight: 700;
}
.home-video-chip {
  top: clamp(6px, 0.8vw, 10px);
  left: clamp(6px, 0.8vw, 10px);
  border-radius: 999px;
  background: #fff;
  color: var(--sky-d);
}
.home-video-duration {
  right: 10px;
  bottom: 10px;
  border-radius: 6px;
  background: rgba(42, 37, 33, 0.8);
  color: #fff;
}
.home-video-progress {
  position: absolute;
  inset: auto clamp(8px, 1.1vw, 14px) clamp(8px, 1.1vw, 14px);
  display: grid;
  gap: clamp(4px, 0.5vw, 6px);
  text-align: left;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
}
.home-video-progress progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sky-d);
}
.home-video-progress progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.85);
}
.home-video-progress progress::-webkit-progress-value {
  background: var(--sky-d);
}
.home-video-progress progress::-moz-progress-bar {
  background: var(--sky-d);
}
.list .home-video-waiting {
  border: 2px solid var(--clay-btn);
}
.home-video-waiting .home-video-poster,
.home-share-note {
  background: var(--note);
}
.home-video-waiting .home-video-chip {
  background: var(--clay-btn);
  color: #fff;
}
.home-video-hand,
.home-share-note h3 {
  font: 700 clamp(20px, 2.4vw, 30px)/1.1 var(--f-hand);
  color: var(--clay-d);
}
.home-video-action {
  font-size: clamp(11.5px, 1.2vw, 15px);
  font-weight: 700;
  text-decoration: underline;
}
.home-video-message {
  font: 700 clamp(15px, 1.5vw, 19px)/1.2 var(--f-display);
}
.home-video-failed .home-video-poster {
  background: var(--line);
}
.home-video-return {
  padding: 0 clamp(6px, 1.5vw, 18px);
  font-size: clamp(11.5px, 1.2vw, 14.5px);
  color: var(--ink-2);
  line-height: 1.25;
}
.home-video-body {
  display: grid;
  gap: clamp(4px, 0.5vw, 6px);
  padding: clamp(10px, 1.1vw, 14px) clamp(10px, 1.3vw, 16px) clamp(12px, 1.3vw, 16px);
}
.list-idea {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font: italic 500 clamp(14px, 1.3vw, 16px)/1.4 var(--f-display);
}
.list-status {
  color: var(--ink-3);
  font-size: clamp(12.5px, 1.1vw, 13.5px);
}
.list .home-new {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 20px;
  border: 2px dashed rgba(169, 79, 49, 0.45);
  background: none;
  box-shadow: none;
  text-align: center;
}
.home-new-icon {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 56px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clay-btn);
  color: #fff;
  font: 400 clamp(30px, 2.9vw, 36px)/1 var(--f-body);
}
.home-new-title {
  font: 700 21px/1.2 var(--f-display);
}
.home-new-phone {
  display: none;
}
.home-new-description {
  color: var(--ink-2);
  font-size: 14.5px;
}
.home-new-first {
  grid-column: 1 / -1;
}
#home-seconds {
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.home-seconds-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 16px;
  align-items: start;
}
#home-panel .home-seconds-grid .card {
  width: 100%;
  padding: 18px 20px;
  box-shadow: none;
}
#home-panel #purchases-title {
  font: 700 16px/1.5 var(--f-body);
}
#home-panel .purchases-table .ptable {
  min-width: 0;
  margin-top: 6px;
}
#home-panel .ptable th,
#home-panel .ptable td {
  padding: 10px 4px;
  border-top: 1px solid var(--line);
}
#home-panel .ptable thead th {
  border: 0;
  font-size: 13px;
  color: var(--ink-3);
}
#home-panel .ptable .btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 12px;
}
#home-panel .fine {
  font-size: 13.5px;
}
.home-seconds-aside {
  display: grid;
  gap: 18px;
}
#purchases[hidden] + .home-seconds-aside {
  grid-column: 1 / -1;
}
#home-gift #gift-form label,
#home-prices {
  font-weight: 700;
}
#home-gift .gift {
  margin: 0;
}
#home-gift #gift-toggle {
  display: none;
}
#home-gift #gift-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-top: 0;
}
#home-gift #gift-form label {
  flex-basis: 100%;
  margin-bottom: 0;
}
#home-gift #gift-code {
  min-width: 0;
  width: 100%;
  flex: 1;
}
#home-gift #gift-button {
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.home-share-note {
  padding: 18px 20px;
  border-radius: 12px 16px 12px 14px;
  transform: rotate(-0.6deg);
}
.home-share-note h3 {
  font-size: 27px;
}
.home-share-note p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- one video being made ---------- */
.job {
  margin-top: 16px;
}
.job .act-h1 {
  margin: 0 0 18px;
}
.job blockquote {
  border-left: 3px solid #e4b769;
  margin: 0 0 18px;
  padding: 6px 16px;
  font: italic 500 18px/1.45 var(--f-display);
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#job-message {
  font-weight: 600;
}
.paid {
  margin: -8px 0 16px;
  color: var(--sage-d);
  font-weight: 700;
}
.private {
  margin-top: 16px;
}
.progress {
  padding: 0;
  margin: 22px 0 22px;
  list-style: none;
  display: grid;
  gap: 16px;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 16px;
}
.dot {
  width: 24px;
  height: 24px;
  border: 1.5px solid #b5a790;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  flex: none;
  background: var(--field-bg);
}
.progress .is-done {
  color: var(--sage-d);
}
.is-done .dot {
  background: #dfe7d4;
  border-color: var(--sage-d);
}
.is-done .dot::after {
  content: "✓";
  font-weight: 700;
}
.progress .is-current {
  color: var(--clay-d);
  font-weight: 700;
}
.is-current .dot {
  border: 2px solid var(--clay-d);
  background: var(--clay-tint);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(169, 79, 49, 0.12);
  }
}
.job video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper-2);
  border-radius: 8px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
#failure p + p {
  margin-top: 10px;
}
#failure .btn {
  margin-top: 20px;
}
.noscript {
  text-align: center;
  margin-top: 24px;
}
.foot {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 24px var(--gutter) 40px;
}
.foot p {
  margin: 0;
}
/* who runs the site + legal links: the same block as the site footer (docs/legal-pages.md) */
.foot .legal {
  max-width: 1168px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 24px;
}
.foot .legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
}
.foot .legal a {
  color: var(--clay-d);
}
.foot .legal nav a {
  display: inline-block;
  padding-block: 6px;
  font-weight: 600;
}

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-demo {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }
  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .price-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
  }
  .price-pack {
    justify-content: space-between;
  }
  .price-strip a {
    align-self: flex-start;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px var(--gutter) 0;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .acct {
    width: calc(100% + 12px);
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px;
    margin: 0 -6px;
    white-space: nowrap;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .acct > * {
    flex: none;
  }
  .acct .email {
    display: none;
  }
  .hero {
    padding-top: 22px;
  }
  .hero .h1 {
    line-height: 1.08;
  }
  .hero-demo {
    padding-top: 58px;
    margin-top: 6px;
  }
  .sentence-note {
    max-width: 250px;
    padding: 10px 14px;
    font-size: 21px;
  }
  .sentence-arrow {
    display: none;
  }
  .hero-demo .poster .play {
    width: 56px;
    height: 56px;
  }
  #gate-panel .poster {
    border-radius: 12px;
    box-shadow: 6px 8px 0 rgba(232, 222, 206, 0.95);
  }
  .poster-caption {
    left: 10px;
    bottom: 10px;
    padding: 1px 8px;
    font-size: 12.5px;
  }
  .hero .cta {
    margin-top: 8px;
    align-items: stretch;
  }
  .hero .cta-note {
    font-size: 14px;
    text-align: center;
  }
  .kicker {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .cta {
    margin-top: 20px;
  }
  .cta .btn-google {
    width: 100%;
    justify-content: center;
  }
  .cta-note {
    font-size: 14.5px;
  }
  .status {
    margin-top: 24px;
    padding: 20px 18px 18px;
  }
  .h2s,
  .pricing > .section-head .h2 {
    text-align: left;
  }
  .films {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
  }
  .film {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .film:first-child {
    display: none;
  }
  .film .idea {
    font-size: 16px;
    min-height: 0;
  }
  .film figcaption {
    font-size: 13.5px;
  }
  #samples .poster .play {
    width: 48px;
    height: 48px;
  }
  .poster .play {
    width: 56px;
    height: 56px;
  }
  .story-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .story-steps li {
    flex-direction: row;
    gap: 14px;
  }
  .step-num {
    width: 34px;
    height: 34px;
  }
  .step-text {
    gap: 2px;
  }
  .step-text b {
    font-size: 18.5px;
    line-height: 1.3;
  }
  .board figcaption {
    margin-top: 6px;
    font-size: 13px;
  }
  .board-caption-desktop {
    display: none;
  }
  .board-caption-phone {
    display: inline;
  }
  .drawing-styles {
    gap: 14px;
    margin-top: 46px;
  }
  .section-head {
    text-align: left;
  }
  .section-head p {
    font-size: 15.5px;
  }
  .style-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .style-gallery img {
    border-radius: 9px;
  }
  .style-gallery figcaption {
    margin-top: 6px;
    text-align: left;
  }
  .price-fine .fine:last-child {
    font-size: 13px;
  }
  .promise {
    font-size: 15px;
  }
  .ptable th {
    font-size: 17px;
    width: 38%;
    white-space: nowrap;
  }
  .spot {
    margin-top: 50px;
    padding: 22px 18px;
  }
  .spot .h2 {
    font-size: 25px;
  }
  .spot p {
    font-size: 15px;
  }
  .spot .privacy {
    font-size: 12.5px;
  }
  .spot .btn-google {
    width: 100%;
    justify-content: center;
  }
  .card {
    padding: 22px 16px;
  }
  .lens {
    gap: 8px;
  }
  .opt .face {
    padding: 12px 10px;
  }
  .opt input:checked + .face {
    padding: 11.5px 9.5px;
  }
  .opt b {
    font-size: 17px;
  }
  /* phones: one length per row, with its making time beside it */
  .lens {
    grid-template-columns: minmax(0, 1fr);
  }
  .lens .face {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-right: 44px;
  }
  .lens .opt input:checked + .face {
    padding-right: 43.5px;
  }
  .lens .opt .tick {
    top: 50%;
    transform: translateY(-50%);
  }
  .opt .tick {
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover {
    transform: none;
  }
  .poster:hover .play {
    transform: translate(-50%, -50%);
  }
}

/* ---------- the studio (batch 1): mode choice, rail, gates, what has been made ---------- */
.modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mode .face {
  display: grid;
  gap: 6px;
  padding-right: 40px;
}
.opt.mode input:checked + .face {
  padding-right: 39.5px;
}
.mode-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
/* drawing style: a thumbnail per style; the director's pick shows four of them */
.styles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.style .face {
  padding: 8px 8px 10px;
}
.opt.style input:checked + .face {
  padding: 7.5px 7.5px 9.5px;
}
.style .pic,
.summary-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
}
.style .pic img,
.summary-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.style .mix,
.summary-thumbnail.mix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}
.style .mix img,
.summary-thumbnail.mix img {
  min-height: 0;
}
.opt.style b {
  margin-top: 8px;
  font-size: 15.5px;
}
.opt.style .tick {
  box-shadow: 0 0 0 2px #fff;
}
@media (max-width: 640px) {
  .styles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rail {
  list-style: none;
  padding: 0;
  margin: 20px 0 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  counter-reset: none;
}
.rail li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-3);
  padding-top: 10px;
  border-top: 3px solid #d8ccb8;
  min-width: 0;
}
.rail li > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail .dot {
  width: 18px;
  height: 18px;
  font-size: 11px;
}
.rail .is-done {
  color: var(--sage-d);
  border-top-color: var(--sage-d);
}
.rail .is-current {
  color: var(--clay-d);
  font-weight: 700;
  border-top-color: var(--clay-d);
}
.turn {
  margin: 14px 0 0;
  font-weight: 700;
  color: var(--clay-d);
}
.gate {
  margin-top: 18px;
  padding: 22px 22px 18px;
  border: 2px solid var(--clay-d);
  border-radius: 12px;
  background: var(--field-bg);
}
.gate .hint {
  margin-top: 6px;
}
.lyrics-view {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid #e2d7c4;
  border-radius: 10px;
}
.lyrics-view h3,
.made h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.lyrics-text {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.lyrics-edit {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}
.lyrics-edit input,
.gate textarea {
  width: 100%;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font: 16px/1.5 var(--f-body);
  color: var(--ink);
}
.lyrics-edit textarea {
  min-height: 260px;
  margin-top: 0;
}
.gate textarea:focus-visible,
.lyrics-edit input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.lbl-sm {
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
}
.count.is-over {
  color: var(--error);
  font-weight: 700;
}
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}
.gate .linklike {
  padding: 10px 2px;
  font-weight: 600;
}
.fold {
  margin-top: 16px;
  border-top: 1.5px dashed var(--line);
  padding-top: 10px;
}
/* the native marker is gone with display:flex: say it opens */
.fold summary::before {
  content: "▸";
  color: var(--clay-d);
  font-size: 14px;
  width: 14px;
}
.fold[open] summary::before {
  content: "▾";
}
.fold summary::-webkit-details-marker {
  display: none;
}
.fold summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fold textarea {
  margin-top: 6px;
  min-height: 84px;
}
.director {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.waits {
  font-size: 14px;
}
/* a calm note, not an alarm: refused words, a check that couldn't run, lyrics that don't fit */
.info {
  margin-top: 12px;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  background: #e6eff5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='9' fill='%2348697C'/><rect x='9' y='8.5' width='2' height='6' fill='white'/><rect x='9' y='5' width='2' height='2' fill='white'/></svg>")
    no-repeat 12px 13px / 18px 18px;
  color: #22343f;
  font-size: 15px;
  line-height: 1.5;
}
.takes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.take {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.take:has(input:checked) {
  border: 2px solid var(--clay-d);
  background: var(--clay-tint);
  padding: 13.5px 15.5px 13.5px 43.5px;
}
.take input {
  position: absolute;
  left: 14px;
  top: 17px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--clay-btn);
}
.take-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 17px;
}
.take audio,
.made audio {
  width: 100%;
  min-height: 44px;
}
.take small {
  color: var(--ink-3);
  font-size: 13.5px;
}
.tag {
  display: inline-block;
  font: 700 12px/1 var(--f-body);
  letter-spacing: 0.02em;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff3d6;
  color: #6b4a12;
  border: 1px solid #e4b769;
}
.made {
  margin-top: 18px;
  display: grid;
  gap: 4px;
}
.made-song {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid #e2d7c4;
  display: grid;
  gap: 8px;
}
.made-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
@media (max-width: 640px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail li {
    font-size: 12.5px;
    gap: 4px;
  }
  .rail .dot {
    display: none;
  }
  .gate {
    padding: 18px 14px 14px;
  }
}

.waiting-notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid var(--clay-d);
  background: var(--clay-tint);
  font-weight: 600;
}
.waiting-notice a {
  font-weight: 700;
}

/* read by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* My home at narrower widths: actions below the title, with the Seconds columns stacked. */
@media (max-width: 900px) {
  .home-title-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-seconds-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* My home on phones: two video columns and labelled purchase blocks. */
@media (max-width: 640px) {
  #home-panel > section {
    margin-top: 26px;
  }
  #home-balance {
    padding: 0;
    border: 0;
    background: none;
    text-align: right;
  }
  .home-balance-total {
    gap: 6px;
  }
  .home-actions .btn {
    min-height: 48px;
    padding: 0 10px;
    font-size: 15.5px;
  }
  .list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list a {
    border-radius: 12px;
    box-shadow: none;
  }
  .home-video-chip {
    padding: 1px 6px;
    font-size: 10px;
  }
  .home-video-waiting .home-video-poster {
    gap: 2px;
    padding-top: 20px;
  }
  .list .home-new {
    min-height: 0;
    padding: 12px;
  }
  .home-new-tile .home-new-title,
  .home-new-tile .home-new-description {
    display: none;
  }
  .home-new-phone {
    display: block;
    font: 700 16px/1.2 var(--f-display);
  }
  .home-new-first .home-new {
    padding: 30px 20px;
  }
  .home-new-first .home-new-icon {
    width: 52px;
  }
  #home-seconds {
    padding-top: 22px;
  }
  .purchases-table .ptable {
    min-width: 0;
  }
  .purchases-table .ptable thead {
    display: none;
  }
  .purchases-table .ptable tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line, rgba(0, 0, 0, 0.15));
  }
  .purchases-table .ptable td {
    padding: 0;
    width: auto;
    white-space: normal;
  }
  .purchases-table .ptable td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    opacity: 0.7;
  }
  .purchases-table .ptable td:last-child {
    grid-column: 1 / -1;
  }
  #home-panel .ptable td {
    padding: 0;
    border: 0;
  }
  #home-panel .ptable .btn {
    width: 100%;
  }
}

/* My home: My photos (holiday pages; canvas GDpu2YFCDmc7jm7gMVNSoS, board 7) */
.my-photos-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.my-photos-count {
  font-size: 14px;
  color: var(--ink-2);
}
.photo-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}
.photo-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper-2);
}
.photo-caption {
  font-size: 12.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.photo-caption-none {
  color: var(--ink-3);
}
.photo-in-use {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-d);
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.photo-delete {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font: 700 13.5px/1 "Figtree", system-ui, sans-serif;
  cursor: pointer;
}
.photo-delete-confirm {
  padding: 0 10px;
  background: var(--error);
  box-shadow: none;
  color: #fff;
  font-size: 13px;
}
.photo-keep {
  min-height: 36px;
  padding: 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.my-photos-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--note);
  font-size: 14px;
  color: var(--ink-2);
}
