/* Every page's styles. Colors and fonts come from brand.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 17px/1.55 var(--font-body);
  color: var(--ink);
  background: var(--paper);
}
main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--narrow) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

/* ---------- text ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.1; margin: 0; }
h1, .page-h { font-weight: 700; font-size: clamp(34px, 5.4vw, 54px); margin-top: 30px; }
h2 { font-weight: 600; font-size: 28px; margin-top: 36px; }
h3, h4, .eyebrow { font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
h1.eyebrow { margin-top: 26px; }
p { margin: 12px 0 0; }
ul { padding-left: 1.25rem; }
a { display: inline-flex; align-items: center; min-height: 44px; color: var(--indigo); font-weight: 600; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--lime); }
h1:focus-visible, h2:focus-visible, caption:focus-visible { outline-offset: 6px; border-radius: 4px; }

/* Text that came from a person, the AI or the server keeps its line breaks and never overflows. */
[data-prose] { white-space: pre-wrap; overflow-wrap: anywhere; }
[data-sr-only] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.meta, [id$="-help"], [id$="-hint"] { color: var(--muted); font-size: 15px; }
[id$="-help"], [id$="-hint"] { margin: 2px 0 8px; }
[id$="-note"] { margin-top: 6px; font-weight: 600; }
[role="status"] { color: var(--muted); font-weight: 600; }
[role="status"]:empty { margin: 0; }
[role="alert"] { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--magenta); border-radius: 0 10px 10px 0; background: var(--alert); font-weight: 600; }
.pill { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: 15px; }

/* ---------- buttons and fields ---------- */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 17px/1.2 var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.go { background: var(--lime); }
.small { min-height: 44px; padding: 6px 18px; font-size: 15px; }
.block { width: 100%; }
button:disabled { background: var(--mist); border-color: var(--line); color: var(--muted); cursor: default; }
p:has(> button) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }

label { display: block; margin-top: 22px; font-weight: 600; }
input:not([type="radio"]), select, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 2px solid var(--field);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 7.5rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--magenta); }
form { margin: 8px 0 0; }

/* A radio group: each choice is a card, and the whole card picks it. */
fieldset { display: grid; gap: 10px; min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
fieldset p { margin: 0; }
fieldset label {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 8px 16px 8px 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 500;
  cursor: pointer;
}
fieldset label:has(input:checked) { border-color: var(--ink); background: var(--lilac); }
fieldset label.opt { font: 600 20px/1.25 var(--font-heading); letter-spacing: 0.01em; padding-top: 12px; padding-bottom: 12px; }
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 0 10.5px, var(--ink) 11px 13px, transparent 13.5px);
  cursor: pointer;
}
input[type="radio"]:checked { background: radial-gradient(circle, var(--ink) 0 6px, var(--paper) 6.5px 10.5px, var(--ink) 11px 13px, transparent 13.5px); }

/* The box for asking for a change. */
.tweak { margin-top: 32px; padding-top: 4px; border-top: 1px solid var(--line); }

/* Suggestions the tool offers for an answer: each is a button that adds it. */
[data-suggestions] { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
[data-suggestions] button { width: 100%; justify-content: flex-start; text-align: left; border-radius: 12px; border-color: var(--line); background: var(--mist); font: 500 16px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; }

/* The copy buffer: the text to copy is selected in this box, out of sight, for a moment. */
[data-copy-buffer] { position: fixed; top: 0; left: 0; width: 1px; min-height: 0; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; }

/* ---------- header and footer ---------- */
body > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  min-height: 70px;
  padding: 6px max(var(--gutter), calc((100% - var(--wide)) / 2)) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--indigo), var(--magenta)) top / 100% 6px no-repeat;
}
#home-link { color: var(--ink); font: 700 20px/1.1 var(--font-heading); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
header ul { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
body > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding: 18px max(var(--gutter), calc((100% - var(--wide)) / 2)) 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 15px;
}
footer img { display: block; height: 30px; width: auto; }
footer ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
footer p { margin: 0; }
footer a { color: var(--muted); font-weight: 500; }

/* ---------- the sign-in page ---------- */
.landing { position: relative; }
.landing > header { position: absolute; top: 0; left: 0; right: 0; min-height: 76px; padding-top: 0; border: 0; background: none; }
.landing > header img { display: block; height: 34px; width: auto; }
.landing #home-link { color: var(--paper); }
.landing main { max-width: none; padding: 0; background: var(--indigo); }
.landing #page-error { max-width: var(--narrow); margin: 100px auto 40px; background: var(--paper); }
.hero { padding: 76px 0 88px; background: linear-gradient(180deg, var(--indigo) 0%, var(--violet) 55%, var(--magenta) 100%); color: var(--paper); }
.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; padding-top: 48px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--lime); }
.lede { margin-top: 24px; max-width: 30em; font-size: 20px; font-weight: 500; }
.signin-card { margin: 0; padding: 30px 32px 32px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(20, 8, 60, 0.55); }
.signin-card h2 { margin: 0; font-weight: 700; font-size: 34px; }
.signin-card label { margin-top: 16px; }
.signin-card button { margin-top: 22px; }
.built-on { margin: 0 0 16px; font: 600 15px/1.3 var(--font-heading); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.lede.strong { margin-top: 12px; font-weight: 700; }
.for-who { margin-top: 12px; max-width: 34em; font-size: 16px; }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; align-items: start; margin-top: 18px; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--indigo); }
.consent label { margin: 0; font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--muted); }
#consent-error { margin-top: 8px; }
#bot-check { margin-top: 16px; }
#bot-check:empty { margin: 0; }
.gets { padding: 64px 0 76px; background: var(--mist); }
.gets h2 { margin: 0; font-size: 36px; }
.gets h2::after { content: ''; display: block; width: 220px; max-width: 60%; height: 3px; margin: 22px 0 32px; background: var(--indigo); }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: col; }
.cols li { counter-increment: col; padding: 0 24px; border-left: 1px solid var(--ink); font: 600 26px/1.15 var(--font-heading); }
.cols li:first-child { padding-left: 0; border-left: 0; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols .sub { margin-top: 10px; font-size: 16px; }
.proof { padding: 40px 0 44px; background: var(--paper); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-line { margin: 0; font: 700 26px/1.2 var(--font-heading); }
.proof blockquote { max-width: 44em; margin: 16px auto 0; font-size: 18px; }
.proof blockquote p { margin: 0; }
.proof .by { margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.teaser { padding: 56px 0 64px; background: var(--mist); text-align: center; }
.teaser h2 { margin: 0; font-size: 34px; }
.teaser p { max-width: 40em; margin: 14px auto 0; }
.teaser .btn { margin-top: 10px; white-space: normal; height: auto; }
.cols li::before { content: counter(col, decimal-leading-zero); display: block; margin-bottom: 6px; color: var(--indigo); font-weight: 700; font-size: 24px; }

/* ---------- the script builder ---------- */
ol[aria-label="Steps"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  counter-reset: step;
  color: #6b6b7c;
  font: 600 16px/44px var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
ol[aria-label="Steps"] li { counter-increment: step; border-bottom: 4px solid transparent; white-space: nowrap; }
ol[aria-label="Steps"] li::before { content: counter(step, decimal-leading-zero); margin-right: 6px; }
ol[aria-label="Steps"] li:has(a) { color: var(--indigo); }
ol[aria-label="Steps"] li[aria-current] { color: var(--ink); border-bottom-color: var(--magenta); }
ol[aria-label="Steps"] a { color: inherit; font-weight: inherit; text-decoration: none; vertical-align: top; min-height: 44px; }
ol[aria-label="Steps"] a::after { content: '\2713'; margin-left: 6px; }
.page-h { margin-top: 22px; }
.context { font-size: 18px; }

.script { margin-top: 14px; padding: 26px 30px; border-radius: 16px; background: var(--mist); font-size: 18px; line-height: 1.6; }
mark { padding: 0 3px; border-radius: 4px; background: var(--lilac); color: inherit; }
[aria-labelledby="brief-heading"] .script:empty { display: none; }
.script h3 { margin-top: 22px; }
.script h3:first-child { margin-top: 0; }
.script p, .script ul { margin: 6px 0 0; }
.sub { display: block; margin-top: 4px; color: var(--muted); font: 500 15px/1.45 var(--font-body); letter-spacing: 0; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
h3[tabindex]:focus-visible { outline-offset: 6px; border-radius: 4px; }
/* The cover headline, shown the way it sits on a video cover. */
[aria-labelledby="piece-headline"] .script { background: linear-gradient(180deg, var(--indigo), var(--magenta)); color: var(--paper); font: 700 clamp(28px, 4.6vw, 42px)/1.05 var(--font-heading); text-transform: uppercase; }

/* ---------- cards, lists and the Scripter Pro band ---------- */
.card { margin-top: 24px; padding: 24px 26px 26px; border: 2px solid var(--line); border-radius: 16px; }
.card h2 { margin: 0; }
.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.rows p { margin: 0; }
.rows p:first-child { font-weight: 600; }
.rows p:nth-child(2) { color: var(--muted); font-size: 15px; word-spacing: 0.5em; }
.rows p:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; columns: 2; column-gap: 32px; }
.ticks li { position: relative; padding: 3px 0 3px 28px; break-inside: avoid; }
.ticks li::before { content: '\2713'; position: absolute; left: 0; color: var(--indigo); font-weight: 700; }
.band { margin-top: 56px; padding: 48px 0 56px; background: var(--navy); color: var(--paper); box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.band h2 { margin: 0; font-weight: 700; font-size: clamp(32px, 5vw, 46px); color: var(--lime); }
.band .ticks li::before { color: var(--lime); }
.band .btn { margin-top: 12px; }
.price { font: 700 34px/1.1 var(--font-heading); margin-top: 24px; }
.aside { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.funnel { margin-top: 48px; padding: 30px 30px 34px; border-radius: 18px; background: var(--lilac); }
.funnel > p:first-child { margin-top: 0; }
.funnel .card { margin-top: 20px; border-color: transparent; background: var(--paper); }
.funnel .card > :first-child { margin-top: 0; }
.funnel h3 { font-size: 28px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.funnel .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.funnel code { display: inline-block; padding: 8px 18px; border: 2px dashed var(--ink); border-radius: 10px; font: 700 20px/1 var(--font-heading); letter-spacing: 0.08em; }
.btn.solid { background: var(--ink); color: var(--paper); }
#runs-left { margin-top: 10px; }

dl { margin: 24px 0 0; padding: 22px 26px; border: 2px solid var(--line); border-radius: 16px; }
dt { color: var(--muted); font: 600 15px/1.2 var(--font-heading); letter-spacing: 0.08em; text-transform: uppercase; }
dd { margin: 2px 0 16px; font-weight: 600; overflow-wrap: anywhere; }
dd:last-child { margin-bottom: 0; }

/* ---------- the owner's page ---------- */
table { border-collapse: collapse; margin-top: 14px; }
caption { text-align: left; font-weight: 700; padding: 8px 0; }
th, td { text-align: left; padding: 8px 20px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
[data-scroll] { overflow-x: auto; position: relative; margin-top: 12px; }
[data-scroll] th, [data-scroll] td { white-space: nowrap; }

@media (max-width: 860px) {
  .hero { padding: 68px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; }
  .lede { margin-top: 14px; font-size: 17px; }
  .signin-card { padding: 20px 18px 22px; }
  .signin-card h2 { font-size: 30px; }
  .gets { padding: 44px 0 52px; }
  .gets h2 { font-size: 30px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .cols li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cols.three { grid-template-columns: 1fr; gap: 26px 0; }
  .cols.three li { padding-left: 0; border-left: 0; }
  .funnel .pair { grid-template-columns: 1fr; }
  .funnel { padding: 22px 18px 24px; }
  .teaser h2 { font-size: 28px; }
  .proof-line { font-size: 22px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  #home-link { font-size: 17px; letter-spacing: 0.03em; }
  .landing > header img { height: 26px; }
  ol[aria-label="Steps"] { gap: 0 16px; font-size: 15px; }
  fieldset label.opt { font-size: 18px; }
  .script { padding: 20px 18px; font-size: 17px; }
  .card { padding: 20px 18px 22px; }
  .ticks { columns: 1; }
  dl { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
