/* The marketing page: a mahogany desk at night under a green-glass banker's lamp. It opens on jet black and
   fades up once, with the lamp looking at us until it swings down (lamp_controller.js). The Writer side lies
   on the green leather the app is written on; at Greenlight the page turns once to the Producer's
   green-black (landing_controller.js). Headings and paragraphs are Nunito Sans; handwriting only for short
   notes beside things. */
.landing-page { background: #000; }

.landing {
  --lamplight: #ffd187;
  --walnut: #3d2116;
  position: relative;
  overflow-x: clip;
  background: var(--desk);
  font-size: 1.0625rem;
  line-height: 1.55;
  animation: landing-fade-in 1s ease-in-out 1 backwards;
}

@keyframes landing-fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .landing { animation: none; }
}

/* The light falls from the lamp's shade across the desk. */
.landing__glow {
  position: absolute;
  inset: 0 0 auto;
  height: min(150vh, 72rem);
  background:
    radial-gradient(ellipse 62rem 46rem at 24rem 15rem, rgb(255 199 107 / 0.62), rgb(226 128 29 / 0.3) 45%, transparent 72%),
    linear-gradient(var(--walnut), var(--desk));
  pointer-events: none;
}

.landing__lamp {
  position: absolute;
  top: -0.5rem;
  left: 0;
  width: clamp(10rem, 25vw, 23rem);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.landing__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 16px;
}

/* Scrawl's name heads the hero, big, with its yarn strung from pin to pin once (after the page fades up). */
.wordmark { display: block; width: min(100%, 34rem); height: auto; margin: 0 0 1.25rem -0.6rem; overflow: visible; }
.wordmark text { font: 700 200px var(--font-hand); }
.wordmark__shadow { fill: #000; opacity: 0.5; }
.wordmark__name { fill: url(#wordmark_ink); }
.wordmark__strand, .wordmark__strand-shadow { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: wordmark-yarn 1.3s 1.1s cubic-bezier(0.4, 0, 0.2, 1) both; }
.wordmark__strand { stroke: #c62828; stroke-width: 6; }
.wordmark__strand-shadow { stroke: #7f1515; stroke-width: 7; opacity: 0.5; }
.wordmark__pin { transform-box: fill-box; transform-origin: center; animation: wordmark-pin 260ms 0.9s ease-out both; }
.wordmark__pin--end { animation-delay: 2.35s; }
@keyframes wordmark-yarn { from { stroke-dashoffset: 1; } }
@keyframes wordmark-pin { from { opacity: 0; scale: 1.8; } }
@media (prefers-reduced-motion: reduce) { .wordmark__strand, .wordmark__strand-shadow, .wordmark__pin { animation: none; } }

/* Write and Produce are for now: the way into the app until this page goes public. */
.landing__doors { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-left: auto; }

.landing__sign-in { display: inline-flex; align-items: center; min-height: 2.5rem; background: var(--desk); text-decoration: none; }

.landing__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 1.5rem 0 0; }

.landing__sign-up {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
  padding: 0 1.6em;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1.1rem var(--font-ui);
  cursor: pointer;
  box-shadow: 0 3px 0 #9c7024, 0 6px 14px rgb(0 0 0 / 0.35);
}

.landing__sign-up:hover { background: #e2b960; }
.landing__sign-up:active { transform: translateY(2px); box-shadow: 0 1px 0 #9c7024; }
.landing :focus-visible { outline: 3px solid var(--lamplight); outline-offset: 2px; }
.landing__pad :focus-visible { outline-color: var(--ink); }

.landing__cta-note { font: 1.1rem var(--font-hand); }

.landing__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
  box-shadow: 0 1.2rem 2.6rem rgb(5 3 0 / 0.6), 0 0 0 1px rgb(0 0 0 / 0.4);
}
.landing__shot--phone { border-radius: 1.4rem; border: 6px solid #0b0b0b; }

/* Pictures rise into place once as they come into view (only once the script is there to show them). */
.landing--revealing :is(.landing__shot:not(.landing__shot--hero), .landing__note, .journey__stop):not(.landing--seen) { opacity: 0; translate: 0 1.5rem; }
.landing--revealing :is(.landing__shot, .landing__note, .journey__stop) { transition: opacity 700ms ease-out, translate 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }


/* The hero: the words under the lamp, and a small corkboard beside them. */
.landing__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 36rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 92rem;
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(16px, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.landing__eyebrow, .landing__kicker { margin: 0 0 0.75rem; color: var(--brass); font: 800 var(--text-sm) var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.landing__kicker--signal { color: #3ddc84; }
.landing__tagline { margin: 0 0 1.1rem; color: var(--chrome); font: 800 clamp(2.8rem, 5vw, 4.6rem) / 1.03 var(--font-ui); letter-spacing: -0.025em; text-shadow: 0 2px 30px rgb(0 0 0 / 0.4); }
.landing__lede { margin: 0; color: var(--chrome); font: 400 clamp(1.15rem, 1.6vw, 1.35rem) / 1.55 var(--font-ui); }
.landing__also { margin: 1rem 0 0; }
.landing__also a { color: var(--chrome-muted); }

.mini-board { padding: clamp(10px, 1.4vw, 18px); border-radius: 6px; background: linear-gradient(135deg, #6d4527, #4a2c18); box-shadow: 0 1.6rem 3.2rem rgb(0 0 0 / 0.6), inset 0 0 0 2px rgb(0 0 0 / 0.35); rotate: 0.8deg; }
.mini-board__cork {
  position: relative;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / 0.06), transparent 60%), radial-gradient(#b98a57 0.8px, transparent 1.4px) 0 0 / 7px 7px, radial-gradient(#8c5f34 0.8px, transparent 1.4px) 3px 4px / 9px 9px, #a87a49;
  box-shadow: inset 0 2px 12px rgb(0 0 0 / 0.45);
}
.mini-card {
  position: absolute;
  width: 29%;
  aspect-ratio: 5 / 3;
  padding: 3.4cqi 2.2cqi 1.6cqi;
  background: var(--card, #fffef8) repeating-linear-gradient(transparent 0 calc(3.2cqi - 1px), #a6c6e3 calc(3.2cqi - 1px) 3.2cqi) 0 6.2cqi / 100% 100% no-repeat;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.35), 0 8px 18px rgb(0 0 0 / 0.25);
  color: var(--ink);
  font-family: var(--font-typed);
}
.mini-card--yellow { --card: #fdf6b8; }
.mini-card--pink { --card: #fbd5dd; }
.mini-card--blue { --card: #d4e6fb; }
.mini-card--green { --card: #d8f0cf; }
.mini-card--1 { left: 4%; top: 6%; rotate: -1.5deg; }
.mini-card--2 { left: 35.5%; top: 4%; rotate: 0.8deg; }
.mini-card--3 { left: 67%; top: 6%; rotate: -0.4deg; }
.mini-card--4 { left: 4%; top: 49%; rotate: 1.2deg; }
.mini-card--5 { left: 36%; top: 50%; rotate: -1deg; }
.mini-card--6 { left: 67%; top: 49%; rotate: 0.6deg; }
.mini-card__pin { position: absolute; top: -1.2cqi; left: 50%; width: 3cqi; aspect-ratio: 1; border-radius: 50%; translate: -50% 0; background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828 60%, #7f1515); box-shadow: 1px 2px 3px rgb(0 0 0 / 0.45); z-index: 2; }
.mini-card__heading { margin: 0 0 1.4cqi; overflow: hidden; font: 700 2cqi/1.2 var(--font-hand); text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid #e07a7a; padding-bottom: 0.6cqi; }
.mini-card__text { margin: 0; font-size: 1.75cqi; line-height: 3.2cqi; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-board__yarn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mini-board__strand { fill: none; stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 1.5px 1px rgb(0 0 0 / 0.4)); stroke-dasharray: 1; stroke-dashoffset: 0; animation: mini-yarn 2.2s 1.4s cubic-bezier(0.4, 0, 0.2, 1) both; }
.mini-board__strand--a { stroke: #c8352e; }
.mini-board__strand--b { stroke: #2f6fc0; animation-delay: 2s; }
@keyframes mini-yarn { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .mini-board__strand { animation: none; } }

/* The plain strip of facts, in words. */
.landing__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1px; max-width: 80rem; margin: 0 auto clamp(2rem, 5vw, 4rem); padding: 0; list-style: none; background: var(--brass-line); border-block: 1px solid var(--brass-line); }
.landing__facts li { display: grid; gap: 0.2rem; padding: 1.1rem 1.4rem; background: var(--desk); color: var(--chrome-muted); font-size: var(--text-md); line-height: 1.45; }
.landing__facts b { color: var(--chrome); font-size: var(--text-base); }

/* The two sides: green leather for writing, the production office's green-black for producing. */
.landing__side--writer {
  background:
    radial-gradient(ellipse 60% 30rem at 50% 0, rgb(255 205 130 / 0.14), transparent 75%),
    linear-gradient(var(--desk), var(--leather) 12rem, var(--leather-deep) calc(100% - 10rem), var(--mahogany-deep));
}
.landing__side--producer { --chrome-muted: #a3b5aa; background: linear-gradient(#111915, #0d1411); color: #e9efea; }

.landing__section { position: relative; max-width: 84rem; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(16px, 5vw, 5rem); }
.landing__section + .landing__section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.landing__words { max-width: 42rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.landing__words p { margin: 0 0 0.9rem; color: var(--chrome); font-size: 1.08rem; line-height: 1.65; }
.landing__words > p:last-of-type { margin-bottom: 0; }
.landing__words .landing__cta, .landing__words .waitlist { margin-top: 1.5rem; }
.landing__words--center { margin-inline: auto; text-align: center; }
.landing__words--center .landing__cta { justify-content: center; }
.landing__section > .landing__cta { justify-content: center; margin-top: 2.25rem; }
.landing__heading { margin: 0 0 1rem; color: var(--chrome); font: 800 clamp(1.9rem, 3.6vw, 2.9rem) / 1.12 var(--font-ui); letter-spacing: -0.02em; }
.landing__heading--big { font-size: clamp(3.4rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.035em; }
.landing__aside { max-width: 40rem; margin: 2rem auto 0; color: var(--chrome-muted); text-align: center; }

.landing__section--split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem); }
.landing__section--split .landing__words { margin-bottom: 0; }
.landing__section--flip > :first-child { order: 2; }

.landing__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.75rem); align-items: center; }
.landing__pair--wide { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.landing__pair--wide > :first-child { rotate: -0.6deg; }
.landing__pair--wide > :last-child { rotate: 0.5deg; }
.landing__shot--board { rotate: 0.4deg; }

.landing__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.landing__note { padding: 1.2rem 1.35rem; border-left: 3px solid var(--brass); background: rgb(0 0 0 / 0.2); border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.landing__side--producer .landing__note { border-left-color: #3ddc84; background: #18231d; }
.landing__note h3 { margin: 0 0 0.4rem; color: var(--chrome); font: 800 1.15rem var(--font-ui); }
.landing__note p { margin: 0; color: var(--chrome-muted); line-height: 1.55; }

.landing__trio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.6vw, 1.25rem); align-items: center; }
.landing__trio > :first-child { grid-column: 1 / -1; }
.landing__phones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.landing__phones--set { max-width: 30rem; margin-inline: auto; }

.landing__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.landing__card { margin: 0; }
.landing__card figcaption { margin-top: 0.85rem; color: var(--chrome-muted); line-height: 1.5; }
.landing__card figcaption b { color: var(--chrome); }

/* Typed or Legal pad, for the visitor to press. */
.paper-demo { display: grid; justify-items: center; gap: 1.25rem; perspective: 1400px; }
.paper-demo__sheet {
  width: min(36rem, 100%);
  padding: 2.5rem 2.5rem 2.5rem 4rem;
  background: var(--typed-paper);
  color: var(--typed-ink);
  font: 0.98rem/1.25 var(--font-typed);
  box-shadow: var(--shadow-paper);
}
.paper-demo__sheet p { margin: 0 0 1.25em; }
.paper-demo__heading { font-weight: 700; text-transform: uppercase; }
.paper-demo__character { margin: 0 !important; padding-left: 38%; }
.paper-demo__parenthetical { margin: 0 !important; padding-left: 30%; }
.paper-demo__dialogue { padding-inline: 18% 14%; }
.paper-demo__sheet--pad {
  padding-top: 2rem;
  background:
    linear-gradient(90deg, transparent 3.1rem, var(--pad-margin) 3.1rem 3.2rem, transparent 3.2rem),
    repeating-linear-gradient(transparent 0 calc(2rem - 1px), var(--pad-rule) calc(2rem - 1px) 2rem) 0 1.5rem / 100% calc(100% - 1.5rem) no-repeat,
    var(--pad-yellow);
  border-top: 1.1rem solid var(--binding);
  color: var(--ink);
  font: 1.25rem/2rem var(--font-hand);
}
.paper-demo__sheet--pad p { margin: 0 0 2rem; }
.paper-demo__sheet--pad .paper-demo__heading { font-weight: 700; text-decoration: underline; }
.paper-demo__switch { border-color: var(--chrome-muted); }

/* Greenlight: the turn from the Writer's room to the Producer's. */
.landing__greenlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(16px, 5vw, 5rem);
  overflow: hidden;
  background: var(--mahogany-deep);
  text-align: center;
  transition: background-color 1.4s ease-in-out;
}
.landing__greenlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 20%, rgb(61 220 132 / 0.35), transparent 70%); opacity: 0; transition: opacity 1.6s 0.4s ease-out; pointer-events: none; }
.landing--greenlit .landing__greenlight { background-color: #111915; }
.landing--greenlit .landing__greenlight::before { opacity: 1; }
.landing__greenlight > * { position: relative; }
.landing__greenlight-words { max-width: 44rem; }
.landing__greenlight-lede { margin: 0; color: var(--chrome); font-size: 1.2rem; line-height: 1.6; }
.landing__heading--big { color: #e9efea; }
.landing--greenlit .landing__heading--big { color: #3ddc84; text-shadow: 0 0 40px rgb(61 220 132 / 0.45); transition: color 0.6s 0.6s, text-shadow 0.6s 0.6s; }
.landing__shot--moment { width: 100%; max-width: 62rem; }
.landing__greenlight > :is(.landing__greenlight-words, .landing__steps) { width: 100%; }
.landing__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; max-width: 72rem; margin: 0; padding: 0; list-style: none; counter-reset: step; text-align: left; }
.landing__steps li { counter-increment: step; padding: 1.25rem 1.35rem 1.25rem 3.6rem; border: 1px solid #2f4238; border-radius: var(--radius-control); background: #18231d; color: #a3b5aa; line-height: 1.55; position: relative; }
.landing__steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.15rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #3ddc84; color: #05240f; font-weight: 800; }
.landing__steps b { display: block; margin-bottom: 0.25rem; color: #e9efea; }
@media (prefers-reduced-motion: reduce) { .landing__greenlight, .landing__greenlight::before, .landing__heading--big { transition: none; } }

.landing__side--producer .landing__words p { color: #e9efea; }
.landing__side--producer .waitlist { max-width: 30rem; background: #18231d; border-color: #2f4238; }

/* One script, first card to last page: a line across the page. */
.landing__journey { max-width: 84rem; }
.journey { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; left: 4%; right: 4%; top: 0.75rem; height: 3px; background: linear-gradient(90deg, var(--brass) 50%, #3ddc84 50%); border-radius: 2px; }
.journey__stop { position: relative; display: grid; justify-items: center; gap: 0.3rem; padding-top: 2.25rem; text-align: center; }
.journey__stop::before { content: ""; position: absolute; top: 0.2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--desk); }
.journey__stop--go::before { background: #3ddc84; }
.journey__stop b { color: var(--chrome); font-size: 1.1rem; }
.journey__stop span { color: var(--chrome-muted); font-size: var(--text-sm); line-height: 1.4; }

/* Switching is safe. */
.landing__formats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-sheet); background: var(--sheet); color: var(--sheet-ink); box-shadow: var(--shadow-paper); }
.landing__format-list h3 { margin: 0 0 0.5rem; color: var(--sheet-muted); font: 800 var(--text-xs) var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.landing__format-list ul { margin: 0; padding: 0; list-style: none; }
.landing__format-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--sheet-rule); font-weight: 600; }
.landing__promise { grid-column: 1 / -1; margin: 0.5rem 0 0; padding: 0.9rem 1rem; border-radius: var(--radius-control); background: var(--ok); color: var(--ok-ink); font-weight: 700; }

/* Questions. */
.landing__questions { max-width: 52rem; }
.landing__faq { display: grid; gap: 0.6rem; }
.landing__faq details { padding: 0.2rem 1.2rem; border-radius: var(--radius-control); background: rgb(255 255 255 / 0.04); border: 1px solid var(--chrome-rule); }
.landing__faq summary { padding: 0.9rem 0; color: var(--chrome); font-weight: 700; font-size: 1.08rem; cursor: pointer; }
.landing__faq p { margin: 0 0 1rem; color: var(--chrome-muted); line-height: 1.6; }

/* The close: a title page. */
.landing__close { padding: clamp(3rem, 7vw, 6rem) 16px clamp(3rem, 6vw, 5rem); background: radial-gradient(ellipse at center, rgb(255 199 107 / 0.25), transparent 65%); }
.landing__title-page { max-width: 34rem; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); background: var(--typed-paper); color: var(--typed-ink); text-align: center; box-shadow: var(--shadow-lifted); rotate: -0.8deg; }
.landing__title-page .landing__tagline { color: var(--typed-ink); text-shadow: none; }
.landing__title-page .landing__lede { color: var(--typed-ink); }
.landing__title-page .landing__cta { justify-content: center; }
.landing__title-page .landing__cta-note { color: var(--pencil); }

.landing__footer { padding: 1rem 16px 2.5rem; color: var(--chrome-muted); font-size: 0.85rem; text-align: center; }
.landing__footer p { max-width: 50rem; margin: 0 auto; }
.landing__footer .landing__legal { margin-bottom: 0.6rem; }
.landing__legal a { color: inherit; }



@media (max-width: 60rem) {
  .landing__hero, .landing__section--split, .landing__pair { grid-template-columns: minmax(0, 1fr); }
  .landing__section--flip > :first-child { order: 0; }
  .landing__hero { padding: 0.5rem 16px 2.5rem; }
  .wordmark { margin-top: 2rem; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .journey::before { display: none; }
}

@media (max-width: 40rem) {
  .wordmark { margin-top: -1.5rem; }
  .landing__doors { width: 100%; }
  .landing__trio, .landing__formats, .landing__cards { grid-template-columns: minmax(0, 1fr); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-demo__sheet { padding: 1.5rem 1.25rem 1.5rem 1.75rem; font-size: 0.85rem; }
  .paper-demo__sheet--pad { padding-left: 3.6rem; font-size: 1.1rem; }
}
