/* ChangeLens landing page. Calm Bold tokens from DESIGN.md; layout from
   docs/landing-page-direction-a-handoff.md. No third-party requests. */

@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/roboto-600.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/roboto-700.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ground: #F5F5F2;
  --surface: #FFFFFF;
  --line: #DCDCD6;
  --control-border: #86868E;
  --ink: #111114;
  --muted: #5E5E66;
  --action: #111114;
  --action-hover: #2E2E35;
  --action-pressed: #45454D;
  --on-action: #FFFFFF;
  --link: #4B3BFF;
  --disabled: #E4E4DE;
  --disabled-text: #8A8A92;
  --error: #C81E1E;
  --error-surface: #FDECEC;
  --warning: #8A5300;
  --warning-surface: #FFF3D6;
  --info-surface: #ECEBFF;
  --selection: #DFFF4F;
  /* Fixed in both themes: marker, review and topic colours, and the ink on them. */
  --fixed-ink: #111114;
  --marker: #DFFF4F;
  --review: #F05A1E;
  --topic-budget: #FFE45C;
  --topic-deadlines: #CDBEFF;
  --topic-deliverables: #A8F0C6;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121214;
    --surface: #1E1E22;
    --line: #34343A;
    --control-border: #76767E;
    --ink: #F3F3EF;
    --muted: #A6A6AE;
    --action: #F3F3EF;
    --action-hover: #FFFFFF;
    --action-pressed: #D9D9D3;
    --on-action: #111114;
    --link: #A99FFF;
    --disabled: #2A2A2F;
    --disabled-text: #6E6E76;
    --error: #FF8A8A;
    --error-surface: #3A1D1D;
    --warning: #FFC857;
    --warning-surface: #33290F;
    --info-surface: #25234A;
    --selection: rgb(169 159 255 / 0.4);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--control-border) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.53 Roboto, system-ui, sans-serif;
  accent-color: var(--action);
  caret-color: var(--link);
  overflow-wrap: break-word;
}

::selection { background: var(--selection); color: var(--ink); }
.fixed-ink ::selection { background: var(--fixed-ink); color: #FFFFFF; }

h1, h2, h3, h4, p, ol, ul, figure, fieldset { margin: 0; padding: 0; }
h1, h2, h3, h4, legend { text-wrap: balance; }
p, li { text-wrap: pretty; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* German hyphenates running text and long headings; short labels never break in a word. */
:lang(de) { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
:lang(en), .no-hyphens, .no-hyphens * { hyphens: manual; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--muted); }

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

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

/* ---- Layout -------------------------------------------------------- */

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  container-type: inline-size;
}

.section { padding-top: 80px; }
.section > .wrap { display: grid; gap: 28px; }
.section [id], [id].section { scroll-margin-top: 24px; }

.h2 { font-size: clamp(1.875rem, 3.2vw, 2.375rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.h3 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.017em; }
.meta { font-size: 0.875rem; line-height: 1.43; color: var(--muted); }
.label { font-size: 0.8125rem; line-height: 1.23; font-weight: 600; letter-spacing: 0.4px; }

/* ---- Top bar ------------------------------------------------------- */

.topbar { padding-block: 24px; }
.topbar > .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.logo { display: block; border-radius: 8px; }
.logo img { height: 40px; width: auto; }
.topnav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; font-size: 0.875rem; line-height: 1.43; font-weight: 600; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang a { justify-content: center; min-width: 44px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; }
.lang a[aria-current] { color: var(--ink); }
.lang span { color: var(--muted); }

/* ---- First viewport ------------------------------------------------ */

.hero > .wrap { display: grid; gap: 28px; }
.hero > .wrap > * { min-width: 0; }

h1 {
  max-width: 22ch;
  /* The 11vw cap keeps the longest word on one line at 200% text size on a phone. */
  font-size: min(clamp(2.125rem, 4.6vw, 4rem), 11vw);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}
html:lang(de) h1 { max-width: 30ch; }

.briefs { display: grid; gap: 12px; }
@container (min-width: 600px) { .briefs { grid-template-columns: 1fr 1fr; } }

.brief { display: grid; align-content: start; gap: 14px; padding: 24px 28px; border-radius: 28px; background: var(--surface); }
.brief-new { background: var(--marker); color: var(--fixed-ink); }
.brief-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.brief-head h2 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.brief-head .label { color: var(--muted); }
.brief-new .label { color: var(--fixed-ink); }
.brief-lines { display: grid; gap: 6px; line-height: 1.45; }

.scope-block { display: grid; gap: 16px; }
.scope { border: 0; min-width: 0; }
.scope legend { padding: 0; margin-bottom: 12px; }
.scope-rows { display: grid; gap: 12px; }
@container (min-width: 924px) { .scope-rows { grid-template-columns: repeat(3, 1fr); } }

.scope-row {
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 56px; padding: 14px 18px;
  border: 2px solid transparent; border-radius: 24px;
  background: var(--surface); cursor: pointer;
  transition: border-color 120ms var(--ease-out);
}
.scope-row:hover { border-color: var(--control-border); }
.scope-row:active { border-color: var(--muted); }
.scope-row:has(input:checked) { border-color: var(--ink); }
.scope-row:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }

.scope-row input {
  appearance: none; flex: none; display: grid; place-content: center;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 2px solid var(--control-border); border-radius: 50%;
  background: var(--surface); cursor: pointer; outline: none;
}
.scope-row input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); }
.scope-row input:checked { border-color: var(--ink); }
.scope-row input:checked::before { transform: scale(1); }
@media (forced-colors: active) { .scope-row input { appearance: auto; } .scope-row input::before { content: none; } }

.scope-text { display: grid; gap: 2px; min-width: 0; }
/* The label is laid out at its semibold width, so choosing a row does not move it. */
.scope-label { display: grid; line-height: 1.41; }
.scope-label::after { content: attr(data-text); grid-area: 1 / 1; font-weight: 600; visibility: hidden; }
.scope-label > span { grid-area: 1 / 1; }
.scope-row:has(input:checked) .scope-label > span { font-weight: 600; }

.count span { font-weight: 400; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta .meta { max-width: 34ch; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 32px;
  border: 0; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font: 600 1.0625rem/1.3 Roboto, system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms var(--ease-out);
}
.pill:hover { background: var(--action-hover); }
.pill:active { background: var(--action-pressed); color: var(--on-action); }
.pill:focus-visible { border-radius: 999px; }
.pill:disabled { background: var(--disabled); color: var(--disabled-text); cursor: default; }

/* ---- Findings ------------------------------------------------------ */

.findings { display: grid; gap: 16px; }
.findings > * { min-width: 0; }
.findings-none { padding: 20px 24px; border-radius: 24px; background: var(--surface); color: var(--muted); }

.tiles { display: grid; gap: 12px; }
@container (min-width: 864px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: 24px; color: var(--fixed-ink); }
.tile-budget { background: var(--topic-budget); }
.tile-deadlines { background: var(--topic-deadlines); }
.tile-deliverables { background: var(--topic-deliverables); }
.tile h3, .result h3, .result h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }

.quote { font-size: 1rem; line-height: 1.44; }
.quote .label { display: block; margin-bottom: 2px; }
.explain { padding-top: 12px; border-top: 1px solid rgb(17 17 20 / 0.28); font-size: 1rem; line-height: 1.44; font-weight: 600; }

.review-group { display: grid; gap: 12px; padding-top: 12px; }
.review-group > h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }

.result { display: grid; gap: 8px; padding: 18px 20px; border-radius: 24px; background: var(--surface); }
.result .label { color: var(--muted); }
.result-review { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; border: 2px dashed var(--review); }
.result-review > :not(.disc) { grid-column: 2; }
.disc {
  grid-row: 1 / span 3; display: grid; place-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--review); color: var(--fixed-ink);
  font-size: 1.375rem; line-height: 1; font-weight: 700;
}
.result-body { font-size: 1rem; line-height: 1.44; }

/* The four result states are all in the markup; the checked radio decides which one shows. */
.hero:not(:has(#scope-complete:checked)) .for-complete,
.hero:not(:has(#scope-partial:checked)) .for-partial,
.hero:not(:has(#scope-unknown:checked)) .for-unknown,
.hero:not(:has(#scope-complete:checked, #scope-unknown:checked)) .for-review,
.hero:not(:has(.scope input:checked)) .for-any,
.hero:has(.scope input:checked) .for-none { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .enter { animation: enter 180ms var(--ease-out) both; }
}
@keyframes enter { from { opacity: 0; transform: translateX(-8px); } }

/* ---- How it works, limits ------------------------------------------ */

.cards { display: grid; gap: 12px; }
.card { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 24px; background: var(--surface); }

@container (min-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }
@container (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-number { font-size: 3.375rem; line-height: 1; font-weight: 700; letter-spacing: -0.037em; }
.step h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.step p { font-size: 1rem; line-height: 1.44; }

@container (min-width: 864px) { .limits { grid-template-columns: repeat(3, 1fr); } }

/* ---- The app ------------------------------------------------------- */

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px; }
@container (min-width: 600px) { .shots { grid-template-columns: repeat(4, minmax(0, 260px)); } }
.shots figure { display: grid; gap: 10px; align-content: start; }
.shots img { width: 100%; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.shots-note { max-width: 70ch; }

/* ---- Demo period and form ------------------------------------------ */

.demo { display: grid; gap: 32px 48px; align-items: start; }
@container (min-width: 800px) { .demo { grid-template-columns: 1fr 1fr; } }
.demo-text { display: grid; gap: 24px; }
.demo-points li { padding-block: 12px; border-top: 1px solid var(--line); }
.demo-points li:last-child { border-bottom: 1px solid var(--line); }

.form { display: grid; gap: 16px; padding: 28px; border-radius: 36px; background: var(--surface); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; line-height: 1.43; font-weight: 600; }
.field input {
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 1px solid var(--control-border); border-radius: 18px;
  background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.41 Roboto, system-ui, sans-serif;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:hover { border-color: var(--ink); }
.field input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 18px; }
.field input[aria-invalid="true"] { border: 2px solid var(--error); }
.form .pill { width: 100%; }
.form-status:empty { display: none; }

/* Messages: error, warning and info each have their own colour and icon (DESIGN.md, Messages). */
.msg { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.4; }
.msg::before {
  content: ""; width: 20px; height: 20px; margin-top: 0.5px;
  background: var(--msg-color);
  -webkit-mask: var(--msg-icon) center / contain no-repeat;
  mask: var(--msg-icon) center / contain no-repeat;
}
.msg-banner { padding: 12px 14px; border: 2px solid var(--msg-color); border-radius: 18px; background: var(--msg-surface); color: var(--ink); }
.msg-field { color: var(--error); font-weight: 600; }
.msg[hidden] { display: none; }
.msg-error {
  --msg-color: var(--error); --msg-surface: var(--error-surface);
  --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5v5M12 16.5h.01'/%3E%3C/svg%3E");
}
.msg-warning {
  --msg-color: var(--warning); --msg-surface: var(--warning-surface);
  --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.5 20h19L12 3.5z'/%3E%3Cpath d='M12 10v4.5M12 17.25h.01'/%3E%3C/svg%3E");
}
.msg-info {
  --msg-color: var(--link); --msg-surface: var(--info-surface);
  --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16.5v-5M12 7.5h.01'/%3E%3C/svg%3E");
}

/* Confirmation states: where the link in the confirmation mail lands (#confirmed, #confirm-failed).
   Hidden unless addressed; no script is involved. */
.notice { display: none; padding-bottom: 28px; scroll-margin-top: 24px; }
.notice:target { display: block; }
.notice .msg { max-width: 70ch; }

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

.footer { padding-top: 80px; padding-bottom: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.43; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-weight: 600; }

@media print {
  .hero .for-none, .topnav, .form, .notice:target { display: none; }
}
