:root {
  color-scheme: dark;
  --bg: #0D0D10;            /* DFY --bg-base */
  --surface: #15151B;       /* --bg-elevated */
  --surface-hover: #1C1C24;
  --ink: #F5F5F7;           /* --text-primary */
  --muted: #B8B8C4;         /* --text-secondary */
  --faint: #7A7A88;         /* --text-tertiary */
  --line: rgba(255,255,255,0.10);        /* --border-default */
  --line-subtle: rgba(255,255,255,0.06);
  --line-strong: rgba(255,143,79,0.30);
  --accent: #FF8F4F;        /* --text-accent / brand-400 */
  --accent-500: #FF782D;
  --accent-300: #FFA572;
  --accent-ink: #0D0D10;    /* text on brand */
  --cta: linear-gradient(135deg, #FF8F4F 0%, #FFA572 100%);
  --tint: rgba(255,143,79,0.08);
  --tint-strong: rgba(255,143,79,0.12);
  --success: #A3E635;
  --warning: #FBBF24;
  --error: #FB7185;
  --radius-sm: 8px;         /* inputs */
  --radius: 12px;           /* buttons, radio rows */
  --radius-lg: 16px;        /* cards */
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-cta: 0 1px 20px rgba(255,143,79,0.35), 0 0 60px rgba(255,143,79,0.12);
  --shadow-cta-hover: 0 2px 28px rgba(255,143,79,0.45), 0 0 80px rgba(255,143,79,0.22);
  --font-display: "Lexend", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-ui); font-size: 14px; line-height: 22px; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover, a:focus-visible { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header, main { width: min(100% - 80px, 1100px); margin-inline: auto; }
main { flex: 1 0 auto; }
.site-header { display: flex; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line-subtle); padding: 16px 0; }
.wordmark { text-decoration: none; }
.wordmark img { display: block; height: 18px; width: auto; }
.trial-label { color: var(--faint); border-left: 1px solid var(--line); padding-left: 24px; font-size: 12.5px; }
.lost-entry { margin-left: auto; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lost-entry:hover { border-color: var(--line-strong); color: var(--ink); background: var(--tint); text-decoration: none; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding-block: 76px 96px; align-items: start; }
.intro { padding-top: 18px; }
.eyebrow { font: 600 11px/16px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 22px; }
h1 { font: 600 30px/38px var(--font-display); letter-spacing: -.015em; margin: 0 0 24px; }
h2 { font: 600 22px/30px var(--font-display); letter-spacing: -.01em; margin: 0 0 22px; }
h3 { font: 600 18px/26px var(--font-display); margin: 0 0 12px; }
p { line-height: 22px; }
.lede { font-size: 15px; line-height: 24px; color: var(--muted); max-width: 49ch; }
.progress { display: flex; gap: 6px; margin: 0 0 20px; max-width: 320px; }
.progress span { flex: 1; height: 10px; background: rgba(255,143,79,0.25); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.progress .done, .progress .current { background: var(--cta); }
.progress .current { box-shadow: 0 0 12px rgba(255,143,79,0.45); }
.journey { list-style: none; counter-reset: step; padding: 0; margin-top: 42px; display: grid; gap: 19px; color: var(--muted); }
.journey li { counter-increment: step; display: flex; align-items: center; gap: 13px; font-size: 14px; }
.journey li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; color: var(--faint); }
.journey .current { color: var(--ink); font-weight: 600; }
.journey .current::before { border-color: var(--accent); background: var(--tint); color: var(--accent); box-shadow: 0 0 10px rgba(255,143,79,0.35); }
.card { background: var(--surface); border: 1px solid var(--line-subtle); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend, .field > label:not(.choice) { font: 600 12.5px/18px var(--font-ui); color: var(--muted); display: block; margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 14px; line-height: 1.5; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--tint); }
input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.field { margin-bottom: 22px; min-width: 0; }
input:not([type="radio"]), select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); padding: 12px 14px; font-size: 13.5px; line-height: 20px; min-height: 46px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
input:not([type="radio"]):hover, select:hover, textarea:hover { border-color: rgba(255,143,79,0.35); }
input:not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--accent); background-color: rgba(255,143,79,0.04); box-shadow: 0 0 0 3px rgba(255,143,79,0.15); outline: none; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A7A88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input[type="file"] { border-style: dashed; }
input::file-selector-button { border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--muted); padding: 8px 12px; margin-right: 12px; }
textarea { min-height: 90px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; background: var(--cta); color: var(--accent-ink); padding: 9px 18px; min-height: 40px; min-width: 108px; border-radius: var(--radius); font: 600 13px/1 var(--font-ui); cursor: pointer; box-shadow: var(--shadow-cta); transition: transform .15s, box-shadow .15s; }
button:hover { transform: translateY(-1px); box-shadow: var(--shadow-cta-hover); }
button.lg { padding: 14px 28px; font-size: 14px; min-height: 48px; }
button.secondary { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; box-shadow: none; }
button.secondary:hover { border-color: var(--line-strong); background: var(--tint); color: var(--ink); transform: none; }
button:disabled { background: var(--bg); color: var(--faint); border: 1px solid var(--line); box-shadow: none; transform: none; cursor: wait; }
.hint { font-size: 12.5px; line-height: 18px; color: var(--faint); margin: 10px 0 0; }
.field-error { color: var(--error); font-size: 12.5px; margin: 6px 0; }
.field-error:empty { display: none; }
.notice { background: var(--tint); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); font-size: 13px; }
.workspace { padding-block: 48px 80px; max-width: 860px; }
.page-heading { margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.full-width, .form-actions { grid-column: 1 / -1; }
.form-actions { border-top: 1px solid var(--line); padding-top: 24px; }
.prefill-label { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--tint); color: var(--accent); font: 600 10.5px/16px var(--font-ui); text-transform: uppercase; letter-spacing: .04em; }
.checklist { margin: 22px 0; padding: 16px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.checklist h3 { font: 700 12px/16px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.checklist ul { padding-left: 20px; margin-bottom: 0; }
.checklist li { font-size: 13px; line-height: 1.7; margin-bottom: 8px; overflow-wrap: anywhere; }
#hub-content { display: grid; gap: 24px; }
ol.designer-steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; margin: 0 0 20px; }
.designer-steps li { display: flex; gap: 12px; font-size: 13.5px; line-height: 20px; }
.designer-steps li::before { counter-increment: step; content: counter(step); flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--accent); font: 600 11px/1 var(--font-ui); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font: 12.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); max-height: 360px; overflow: auto; }
.author { padding-block: 18px; border-top: 1px solid var(--line); margin-top: 20px; }
.author img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.quota { font: 600 22px/30px var(--font-display); color: var(--accent); }
#quota-reset { margin-bottom: 16px; }
.keyword-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 14px; margin-bottom: 16px; }
.keyword-row .field { margin: 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.batch { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.article-list { list-style: none; padding: 0; margin: 0; }
.article { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.article p { margin: 8px 0; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); font: 600 10.5px/14px var(--font-ui); text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); color: var(--faint); margin: 8px 0; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.starting, .pill.running { color: var(--accent); border-color: var(--line-strong); background: var(--tint); }
.pill.ready { color: var(--success); border-color: rgba(163,230,53,0.30); background: rgba(163,230,53,0.08); }
.pill.blocked { color: var(--error); border-color: rgba(251,113,133,0.30); background: rgba(251,113,133,0.08); }
.site-footer { width: 100%; box-sizing: border-box; margin: 48px 0 0; padding: 20px max(40px, calc((100% - 1100px) / 2)); border-top: 1px solid var(--line-subtle); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12.5px; background: #0B0B0E linear-gradient(115deg, rgba(255,120,45,0.22) 0 18%, transparent 18% 34%, rgba(255,120,45,0.10) 34% 49%, transparent 49% 62%, rgba(255,120,45,0.18) 62% 80%, transparent 80%); }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 4; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px; }
.skip-link:focus { top: 10px; }
@media (prefers-reduced-motion: reduce) { button:hover { transform: none; } }
@media (min-width: 1440px) { main, .site-header { max-width: 1100px; } .workspace { max-width: 860px; } }
@media (max-width: 760px) {
  .site-header, main { width: calc(100% - 48px); }
  .site-header { gap: 12px; }
  .trial-label { display: none; }
  .split-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 34px 48px; }
  .intro { padding-top: 0; }
  .journey { margin-top: 24px; gap: 10px; }
  .card { padding: 24px; }
  .form-grid, .keyword-row { grid-template-columns: 1fr; }
  .workspace { padding-block: 32px 48px; }
  .site-footer { padding: 20px 24px; flex-direction: column; gap: 8px; }
  .keyword-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 390px) {
  .split-layout, .form-grid { grid-template-columns: 1fr; }
  .site-header, main { width: calc(100% - 32px); }
  .card { padding: 20px; }
  .site-footer { padding: 20px 16px; }
  .button-row button, .form-actions button, #start-submit, #link-form button { width: 100%; }
}
