/* /creator.css */
/* The creator programme's page for creators (/creator/): what they earn, how it works, the rules, the questions,
   the application. Built from the site's parts: the meadow still as a wide head with torn paper edges (the start
   page's picture, base.css --edge-a / --edge-b), the plan card's look for the programme's own card (c.css .gift),
   a picked stage of films (line.css .ps), rows (calm.css), a painted band with two cards (calm.css .hourband, .vs),
   the questions (calm.css .qa). The form's fields follow the legal forms' (law.css .lawf). */

/* ---------- the wide head: the meadow at noon from edge to edge, the words in its sky, the card in its grass ---------- */
.phero {
  position: relative;
  padding-block: calc(var(--edge) + clamp(44px, 5vw, 80px)) calc(var(--edge) + clamp(52px, 6vw, 96px));
  background: #cfdcd6 url("/assets/meadow/still-noon.webp") 50% 12% / cover no-repeat;
}
.calm > .phero:first-child { margin-top: calc(-1 * clamp(36px, 5vw, 76px)); }
/* torn in and out, like every painted part of the site */
.phero::before, .phero::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--edge); pointer-events: none;
  background-color: var(--morning); background-image: var(--impasto-soft); background-size: 640px;
  -webkit-mask: var(--edge-a) 0 100% / 1200px 100% repeat-x; mask: var(--edge-a) 0 100% / 1200px 100% repeat-x;
}
.phero::before { top: -1px; transform: scaleY(-1); }
.phero::after { bottom: -1px; -webkit-mask-image: var(--edge-b); mask-image: var(--edge-b); }
.phero__in { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px clamp(32px, 5vw, 80px); align-items: center; }
.phero__h { font-family: var(--display); font-weight: 600; font-variation-settings: var(--head-axes); font-size: clamp(2.6rem, 1.3rem + 4.1vw, 5rem); line-height: 1; letter-spacing: -0.022em; max-width: 11ch; text-wrap: balance; }
/* small type never stands on the picture itself: the sentence gets a strip of the page's paper */
.phero__lead { position: relative; width: fit-content; max-width: 30ch; margin: 30px 0 0 -20px; padding: 12px 22px 13px 20px; background: var(--morning); font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); line-height: 1.45; text-wrap: balance; }
.phero__lead::before, .phero__lead::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: var(--morning); -webkit-mask: var(--edge-a) 0 100% / 520px 100% repeat-x; mask: var(--edge-a) 0 100% / 520px 100% repeat-x; }
.phero__lead::before { bottom: calc(100% - 1px); }
.phero__lead::after { top: calc(100% - 1px); transform: scaleY(-1); }
.phero__act { margin-top: 34px; }
.phero .gift { justify-self: center; }

/* the programme's card: the plan card's look in the late hour, the share where a plan has its price */
.deal .gift__sky { background-color: #eab47f; }
.deal .gift__hill { background: #b98556; }
.deal .gift__hill--far { background: #cf9a66; }
.deal .gift__sun { top: 34px; }

/* ---------- what the audience gets: the creator's own link over the gift ---------- */
.pgift__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px clamp(32px, 5vw, 80px); align-items: center; }
.pgift__pic { display: grid; justify-items: center; gap: 0; padding: clamp(36px, 4vw, 52px) clamp(20px, 3vw, 44px) clamp(40px, 4.4vw, 60px); border-radius: 10px; background: var(--golden-late) url("/assets/meadow/still-late.webp") 50% 50% / cover no-repeat; }
.pgift__url { margin-bottom: 40px; padding: 11px 18px 12px; border-radius: 999px; background: var(--sheet); box-shadow: 0 12px 24px -16px rgb(48 28 6 / 0.6); font-size: 1.0625rem; line-height: 1.2; white-space: nowrap; }
.pgift__url span { color: var(--ink-3); }
.pgift__url b { font-weight: 600; }
.pgift__pic .gift { width: min(100%, 300px); }

/* ---------- the films ---------- */
.pshow .ps { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- the way in four steps ---------- */
.pway { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(20px, 2.6vw, 36px); margin-top: clamp(36px, 4vw, 56px); counter-reset: w; list-style: none; padding: 0; }
.pway > li { position: relative; counter-increment: w; padding-top: 22px; border-top: 1px solid var(--rule); }
.pway__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: var(--morning); font-family: var(--display); font-weight: 600; font-variation-settings: var(--head-axes-sm); font-size: 1.25rem; line-height: 1; }
.pway__n::before { content: counter(w); }
.pway__h { font-family: var(--display); font-weight: 600; font-variation-settings: var(--head-axes-sm); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.008em; }
.pway__p { margin-top: 10px; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 28ch; }

/* the app's creator mode: the badge as it stands above the Wave-Bar while dictating (the creator's words, the link) */
.pmode { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 5vw, 76px); }
.pmode__pic { display: grid; justify-items: center; padding: clamp(36px, 4vw, 52px) 24px clamp(32px, 3.6vw, 46px); border-radius: 12px; background-color: #0d1220; background-image: var(--impasto-soft); background-size: 420px; color: #fff; text-align: center; }
.pmode__t { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.pmode__u { margin-top: 6px; margin-bottom: 26px; font-size: 1.125rem; line-height: 1.3; color: rgb(255 255 255 / 0.82); overflow-wrap: anywhere; }
.pmode__words .pway__p { max-width: 44ch; }

/* ---------- material: what is there today ---------- */
.pkit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pkit__a { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.pkit__pic { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 24px; border-radius: 12px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); transition: transform 200ms var(--ease-out); }
.pkit__pic--night { background: #111a2e; box-shadow: none; }
.pkit__pic img { width: min(70%, 220px); height: auto; }
.pkit--kit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; margin-top: clamp(36px, 4vw, 56px); }
.pkit__pic--mark img { width: min(34%, 96px); }
.blk__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.blk__more .ic { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .blk__more:hover .ic { transform: translateX(3px); } }
.pkit__t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.0625rem; font-weight: 600; }
.pkit__dl { font-weight: 400; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--forest); text-underline-offset: 4px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .pkit__a:hover .pkit__pic { transform: translate3d(0, -2px, 0); } .pkit__a:hover .pkit__dl { color: var(--ink); } }

/* the media kit's app pictures: three views of the app, as the app draws them */
.pshots__act { display: flex; margin-top: 30px; }
.pshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.pshots li { display: grid; gap: 14px; align-content: start; }
.pshots__pic { display: block; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule), 0 24px 44px -32px rgb(60 40 10 / 0.35); }
.pshots__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 946; object-fit: cover; object-position: top left; }
.pshots__t { font-size: 1.0625rem; font-weight: 600; }
@media (max-width: 900px) { .pshots { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the rules on a painted band ---------- */
.prules { margin-top: clamp(36px, 4vw, 56px); }
.prules .vs__card { background: var(--sheet); box-shadow: 0 24px 44px -32px rgb(60 40 10 / 0.35); }
.prules .vs__name { margin-bottom: 14px; }
.prules .ticks li { padding: 8px 0; font-size: 1.125rem; line-height: 1.5; }
.prules__more { margin-top: 28px; font-size: 1.125rem; line-height: 1.5; }
.prules__more a { color: var(--ink); text-decoration-color: var(--forest); text-underline-offset: 3px; }
.prules__no .ic { color: #a8321f; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; width: 16px; height: 16px; }

/* ---------- the application ---------- */
.papply { scroll-margin-top: calc(var(--stick) + 8px); }
.pform { padding: clamp(24px, 3vw, 40px); border-radius: 16px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule), 0 24px 44px -32px rgb(60 40 10 / 0.35); }
.pform__f { display: grid; gap: 16px; }
.pform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pform__row { display: grid; gap: 10px; min-width: 0; }
.pform__l { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.pform__set { margin: 0; padding: 0; border: 0; }
.pform__set > legend { padding: 0; margin-bottom: 2px; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { position: relative; display: inline-flex; cursor: pointer; }
.pchip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pchip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(22 19 15 / 0.2); font-size: 1.0625rem; line-height: 1; transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }
.pchip input:checked + span { background: var(--ink); color: var(--morning); box-shadow: none; }
.pchip input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.pform__set[data-wrong] .pchip span { box-shadow: inset 0 0 0 1.5px #a8321f; }
.pform__set[data-wrong] .pchip input:checked + span { box-shadow: none; }
.pform__add { justify-self: start; padding: 6px 0; border: 0; background: none; font: 600 1rem/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--forest); text-underline-offset: 4px; cursor: pointer; }
.pform__note { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.pform__note a { color: var(--ink); text-decoration-color: var(--forest); text-underline-offset: 3px; }
.pform__check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 1.0625rem; line-height: 1.45; cursor: pointer; }
.pform__check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--forest); }
.pform__check a { color: var(--ink); text-decoration-color: var(--forest); text-underline-offset: 3px; }
.pform__check input[aria-invalid="true"] { outline: 2px solid #a8321f; outline-offset: 2px; }
.pform__msg { padding: 16px 20px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px #a8321f; font-size: 1.0625rem; line-height: 1.5; }
.pform__msg[hidden], .pform__note[hidden], .pform__done[hidden], .pform__f[hidden] { display: none; }
.pform__go { display: flex; }
.pform__go .btn { border: 0; cursor: pointer; justify-content: center; }
.pform__go .btn[disabled] { opacity: 0.72; pointer-events: none; }
/* sent: one calm state in the form's place */
.pform__done { display: grid; justify-items: start; gap: 14px; padding-block: clamp(12px, 2vw, 28px); outline: none; }
.pform__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: var(--morning); }
.pform__mark .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.pform__dh { font-family: var(--display); font-weight: 600; font-variation-settings: var(--head-axes-sm); font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.12; letter-spacing: -0.012em; max-width: 16ch; }
.pform__dp { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 40ch; overflow-wrap: anywhere; }
.pform__dp b { font-weight: 600; color: var(--ink); }
.pform__dp--stub { font-size: 1rem; color: var(--ink-3); }

/* ---------- the small pages: the confirmation after the mail's link, the terms ---------- */
.pdone { text-align: center; }
.pdone .wrap { display: grid; justify-items: center; }
.pdone .ph__h { max-width: 16ch; font-size: clamp(2.4rem, 1.3rem + 3.4vw, 3.9rem); text-wrap: balance; }
.pdone .ph__lead { max-width: 40ch; }
.pdone .ph__act { justify-content: center; }
.pdone .pform__mark { margin-bottom: 28px; }
.pdone__more { margin-top: 26px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.pdone__more a, .pdone .ph__lead a { color: var(--ink); text-decoration-color: var(--forest); text-underline-offset: 3px; }
.pdone [data-on] { display: none; }
/* the binding page: the app's button only where the app takes the link, otherwise the way to such a device
   (html[data-bdev] is set at the top of the page; without a script the app's button shows) */
html[data-bdev="carry"] .pdone [data-dev="app"], html:not([data-bdev="carry"]) .pdone [data-dev="carry"] { display: none !important; }
.pdone [hidden] { display: none !important; }
.pdone[data-state="wait"] [data-on~="wait"], .pdone[data-state="ok"] [data-on~="ok"], .pdone[data-state="expired"] [data-on~="expired"], .pdone[data-state="error"] [data-on~="error"], .pdone[data-state="used"] [data-on~="used"] { display: revert; }

@media (max-width: 900px) {
  .phero__in, .pgift__grid, .pmode { grid-template-columns: minmax(0, 1fr); }
  .phero { background-position: 57% 30%; }
  .phero .gift { justify-self: start; }
  .pway { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkit--kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pway, .pkit, .pkit--kit { grid-template-columns: minmax(0, 1fr); }
  .phero .gift { justify-self: stretch; width: 100%; }
  .phero__lead { margin-left: -12px; padding-left: 12px; }
  .pform__go .btn { width: 100%; }
}
