/* ALL for Creators: the application form and the owner's review page, in the v7 look. Loaded after kit.css and pages.css (their tokens, buttons, bar and footer);
   one surface per block, never a card inside a card: fields and rows are separated by space and hairlines. */
.cr-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(20px, 3vw, 40px); }
.cr-hero .lede { margin: 20px 0 0; max-width: 640px; color: var(--ink-2); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.cr-hero .hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.cr-hero .hero-facts li { padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 14.5px; }
.cr-form-section { padding: clamp(16px, 3vw, 32px) 0 clamp(32px, 5vw, 72px); }
.cr-form-wrap { display: grid; justify-items: center; }
.cr-panel { width: min(680px, 100%); }
.cr-form h2, .cr-success h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); font-weight: 560; letter-spacing: -.03em; }
.cr-field { display: grid; gap: 8px; margin: 0 0 18px; }
.cr-field > span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cr-field small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.cr-field input, .cr-field select, .cr-field textarea { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 18px; outline: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.4 "Inter Tight", system-ui, sans-serif; }
.cr-field textarea { resize: vertical; min-height: 130px; }
.cr-field input[type="file"] { padding: 8px 12px 8px 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.cr-field input[type="file"]::file-selector-button { margin-right: 14px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font: 600 14px "Inter Tight", system-ui, sans-serif; cursor: pointer; }
.cr-field input[type="file"]:hover::file-selector-button { background: var(--soft-2); }
.cr-field input:focus, .cr-field select:focus, .cr-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.cr-cat[hidden] { display: none; }
.cr-form .btn { width: 100%; margin-top: 6px; min-height: 52px; background: linear-gradient(180deg, #ffd54a, var(--gold) 55%, var(--gold-2)); color: #17140f; }
.cr-form[hidden], .cr-success[hidden] { display: none; }
.cr-success p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.6; }
.cr-success .btn { display: inline-flex; }

/* The owner's review page: one column, made for a phone; the bar is the brand mark only. */
.cr-review { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; }
.cr-top { display: flex; align-items: center; gap: 10px; width: min(760px, 100% - 32px); margin: 0 auto; padding: 18px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.cr-top a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.cr-top img { width: 36px; height: 36px; border-radius: 50%; }
.cr-wrap { width: min(760px, 100% - 32px); margin: 0 auto; padding: 14px 0 64px; }
.cr-wrap h1 { margin: 6px 0 18px; font-size: clamp(30px, 6vw, 46px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.cr-kicker { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cr-chip { padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.cr-banner { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--gold-soft); font-weight: 600; line-height: 1.5; }
.cr-list { margin: 0 0 22px; }
.cr-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cr-list dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.cr-list dd { margin: 4px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.cr-wrap a { color: var(--ink); }
.cr-id { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); }
.cr-note, .cr-done { margin: 0 0 18px; line-height: 1.55; }
.cr-actions { display: grid; gap: 14px; }
.cr-decide { display: grid; gap: 12px; margin: 0; }
.cr-field-inline { display: grid; gap: 8px; }
.cr-field-inline span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cr-field-inline select { min-height: 52px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg); color: var(--ink); font: 500 16px/1.4 "Inter Tight", system-ui, sans-serif; }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ffd54a, var(--gold) 55%, var(--gold-2)); color: #17140f; font: 700 16px/1.2 "Inter Tight", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.cr-btn-plain { background: var(--chip); color: var(--ink); }
.cr-wrap code { overflow-wrap: anywhere; }


/* Hero: the copy and Robi the creator side by side (stacked on a phone). */
.cr-hero { padding-bottom: 0; }
.cr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.cr-hero-copy { padding-bottom: clamp(24px, 4vw, 56px); min-width: 0; }
.cr-robi { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.cr-robi-hero { width: auto; height: clamp(190px, 50vw, 250px); margin: 0 auto; }
@media (min-width: 900px) {
  .cr-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: clamp(24px, 4vw, 64px); }
  .cr-robi-hero { height: clamp(440px, 36vw, 560px); margin: 0; justify-self: end; }
}

/* The title: a right-aligned stair. The front line is the biggest and in full colour (only its "ALL" is yellow); the others step back, each smaller, fainter and
   ending further left than the one above. The real h1 is visually hidden; the stair is decoration. The script moves the front line with the form's category. */
.cr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cr-stair { --u: clamp(26px, 10.6vw, 56px); display: grid; justify-items: end; width: max-content; max-width: 100%; margin: 16px 0 24px; font-weight: 800; letter-spacing: -.045em; line-height: .86; user-select: none; }
.cr-stair span { display: block; white-space: nowrap; color: var(--ink); transform-origin: 100% 0; transition: opacity .45s ease; }
.cr-stair b { font-weight: inherit; transition: color .45s ease; }
.cr-stair [data-rank="0"] { order: 0; font-size: var(--u); opacity: 1; margin-right: 0; }
.cr-stair [data-rank="0"] b { color: var(--gold); }
.cr-stair [data-rank="1"] { order: 1; font-size: calc(var(--u) * .786); opacity: .42; margin-right: calc(var(--u) * .536); }
.cr-stair [data-rank="2"] { order: 2; font-size: calc(var(--u) * .607); opacity: .24; margin-right: var(--u); }
.cr-stair [data-rank="3"] { order: 3; font-size: calc(var(--u) * .464); opacity: .12; margin-right: calc(var(--u) * 1.393); }
@media (min-width: 900px) { .cr-stair { --u: 56px; } }
/* On a phone the lines get a little more air so a descender (the p of Startups) never touches the line below. */
@media (max-width: 899px) { .cr-stair { line-height: 1.02; margin-bottom: 18px; } }
.cr-robi-hero { transition: opacity .2s ease; }
.cr-robi-hero.is-swapping { opacity: 0; }

/* What is ALL / how it helps */
.cr-about, .cr-how { padding: clamp(28px, 5vw, 72px) 0; }
.cr-about-grid, .cr-how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.cr-about-text { margin: 18px 0 0; max-width: 560px; color: var(--ink-2); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; }
.cr-robi-founder { height: clamp(170px, 46vw, 230px); width: auto; margin: 0 auto; }
.cr-how-list { margin: 22px 0 0; padding: 0; list-style: none; max-width: 600px; }
.cr-how-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.cr-how-list li:last-child { border-bottom: 1px solid var(--line); }
.cr-how-list strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.cr-how-list span { color: var(--ink-2); line-height: 1.5; }
.cr-duo { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 2vw, 16px); }
.cr-duo .cr-robi { height: clamp(150px, 40vw, 210px); width: auto; }
@media (min-width: 900px) {
  .cr-about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); }
  .cr-how-grid { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
  .cr-robi-founder { height: 380px; margin: 0; justify-self: center; }
  .cr-duo .cr-robi { height: 380px; }
}

/* The optional "plans for your idea" checkbox on the form, the extra line in the hero, and the private plans page. */
.cr-check { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 6px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.cr-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold-2, #e0a800); }
.cr-check-note { display: block; margin: 0 0 18px 34px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cr-extra-line { margin: 14px 0 0; max-width: 640px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.cr-field-inline.cr-check { margin: 0 0 12px; }
.cr-plan-lede { margin: 0 0 20px; color: var(--ink-2); line-height: 1.6; }
.cr-plan-form { margin: 0 0 28px; }
.cr-plan-h2 { margin: 8px 0 12px; font-size: 22px; font-weight: 560; letter-spacing: -.02em; }
.cr-plan-list { margin: 0 0 22px; padding: 0; list-style: none; }
.cr-plan-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cr-plan-list small { display: block; color: var(--muted); }
.cr-plan-links { display: flex; gap: 16px; align-items: center; }
.cr-plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.cr-plan-md { margin: 0; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }

/* The AI's opinion on the review page: one flat block above the decision, a coloured rule on the left, no card inside a card. */
.cr-opinion { margin: 0 0 24px; padding: 4px 0 4px 18px; border-left: 4px solid var(--line-2); }
.cr-opinion h2 { margin: 0 0 10px; font-size: clamp(22px, 4.5vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.cr-opinion-yes { border-left-color: #2f9e57; }
.cr-opinion-no { border-left-color: #c8452f; }
.cr-opinion-maybe { border-left-color: var(--gold); }
.cr-opinion-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.55; }
.cr-opinion-plans, .cr-opinion-flags { margin: 0 0 8px; line-height: 1.55; }
.cr-opinion-note { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.cr-opinion-again { max-width: 280px; }

/* Private plans page: header, the two ways to start, the guide for an existing project, the loading state and the rendered plan. One flat column; the only bordered
   things are controls (the two big options, fields, the prompt), never a card inside a card. */
[hidden] { display: none !important; }
.cr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.cr-plans-head { margin: 0 0 22px; }
.cr-plans-head h1 { margin: 6px 0 12px; }
.cr-plan-meter { margin: 0 0 12px; }
.cr-plans-head .cr-plan-lede { margin: 0; font-size: 17px; }
.cr-tag { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 600; }
.cr-wrap fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.cr-step { margin: 0 0 30px !important; padding: 26px 0 0 !important; border-top: 1px solid var(--line) !important; }
.cr-step legend { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0; font-size: clamp(20px, 3vw, 24px); font-weight: 560; letter-spacing: -.02em; }
.cr-step-n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; }
.cr-pane-existing { display: block; }
.cr-seg { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.cr-opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px 16px 52px; border: 1.5px solid var(--line-2); border-radius: 18px; background: var(--bg); cursor: pointer; }
.cr-opt input { position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; margin: 0; accent-color: var(--gold-2); cursor: pointer; }
.cr-opt-t { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.cr-opt-d { color: var(--muted); font-size: 14px; line-height: 1.45; }
.cr-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-soft); }
.cr-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.cr-plan-form:not(:has(#mode-existing:checked)) .cr-pane-existing { display: none; }
.cr-plan-form:has(#mode-existing:checked) .cr-pane-new { display: none; }
.cr-field > label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cr-guide { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 12px; line-height: 1.55; }
.cr-prompt { margin: 10px 0 0; display: grid; gap: 10px; justify-items: start; }
.cr-prompt-label { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cr-prompt pre { width: 100%; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--chip); color: var(--ink); font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; box-sizing: border-box; }
.cr-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cr-btn-wide { width: 100%; gap: 10px; }
.cr-btn:disabled { opacity: .75; cursor: progress; }
.cr-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cr-file { font-size: 13px; color: var(--muted); }
.cr-field .cr-file-row input[type="file"] { width: auto; min-height: 0; flex: 1 1 220px; border: 0; padding: 0; background: transparent; }
.cr-count.cr-over { color: #b3261e; font-weight: 700; }
.cr-spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(23, 20, 15, .25); border-top-color: #17140f; border-radius: 50%; animation: cr-turn .8s linear infinite; }
.cr-loading .cr-spin { display: inline-block; }
@keyframes cr-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cr-spin { animation-duration: 2.4s; } }
.cr-wait { margin: 12px 0 0; color: var(--muted); }
.cr-banner-error { margin: 14px 0 0; background: #fde7e4; color: #5c1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cr-banner-error { background: #4a1d19; color: #ffd9d4; } :root:not([data-theme="light"]) .cr-count.cr-over { color: #ff9a90; } }
.cr-plan-goal { margin: 0 0 16px; color: var(--ink-2); line-height: 1.55; }
.cr-plan-actions .cr-btn { min-height: 46px; }
.cr-md { margin: 8px 0 0; line-height: 1.65; overflow-wrap: anywhere; }
.cr-md h2 { margin: 32px 0 10px; font-size: 26px; font-weight: 580; letter-spacing: -.03em; }
.cr-md h3 { margin: 26px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cr-md h4 { margin: 20px 0 6px; font-size: 17px; font-weight: 650; }
.cr-md p { margin: 0 0 14px; }
.cr-md ul, .cr-md ol { margin: 0 0 16px; padding-left: 24px; display: grid; gap: 7px; }
.cr-md li.sub { margin-left: 22px; list-style: circle; }
.cr-md code { padding: 1px 6px; border-radius: 6px; background: var(--chip); font: .92em ui-monospace, Menlo, Consolas, monospace; }
.cr-md-code { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--chip); overflow-x: auto; }
.cr-md-code code { padding: 0; background: none; font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.cr-md blockquote { margin: 0 0 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--gold); color: var(--ink-2); }
.cr-md hr { margin: 26px 0; border: 0; border-top: 1px solid var(--line); }
.cr-md-table { margin: 0 0 18px; overflow-x: auto; }
.cr-md-table table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
.cr-md-table th, .cr-md-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
@media (max-width: 560px) { .cr-seg { grid-template-columns: 1fr; } .cr-step-n { width: 28px; height: 28px; } }
.cr-brand-link { margin: 0; padding: 0 0 clamp(28px, 4vw, 48px); text-align: center; font-size: 14px; color: var(--muted); }
.cr-brand-link a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
