/* Appriz site — HIG style: system font, clear hierarchy, generous spacing, light and dark. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --accent: #0071e3;
  --fill: #f5f5f7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* The Taskriz landing page's background (agenteer/renderers/web/task/task.css, .task-landing). */
  background: repeating-linear-gradient(180deg, #f5f5f7 0 3px, #ececef 3px 6px);
  color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.bar { padding: 16px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 21px; }
.brand img { border-radius: 8px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; } /* 24px above the heading, the same as under it (spec 0001, amended) */
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 24px; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--secondary); margin: 0 0 32px; }
.soon { display: inline-block; margin: 0; text-decoration: none; padding: 8px 18px; border-radius: 980px; background: #ffffff; color: var(--accent); font-weight: 600; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Spec 0006: the prompt box, "Building your app…", and its messages. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prompt { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.prompt textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 14px; background: #ffffff; color: var(--text); font: inherit; font-size: 19px; line-height: 1.4; }
.prompt textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prompt-count { color: var(--secondary); font-size: 15px; }
.prompt-go { border: 0; border-radius: 980px; padding: 12px 22px; background: var(--accent); color: #ffffff; font: inherit; font-weight: 600; cursor: pointer; }
.prompt-go:disabled { opacity: .5; cursor: default; }
.quiet { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 12px 8px; }
.building h2 { font-size: 28px; margin: 0 0 12px; }
.steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 20px; color: var(--secondary); font-weight: 600; }
.steps li.active { color: var(--accent); }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓ "; }
.building-note { color: var(--secondary); min-height: 1.5em; margin: 0; }
.notice { padding: 16px; border-radius: 14px; background: #ffffff; margin: 0 0 16px; }
.notice p { margin: 0 0 8px; }
.notice-actions { display: flex; gap: 8px; align-items: center; }
.prompt-error { color: #d70015; margin: 0 0 16px; }
.current { margin: 0; }

/* Spec 0006, amended: an activity indicator whenever the page waits. */
.spinner { display: inline-block; flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
.building-status { display: flex; align-items: center; gap: 10px; margin: 0; }
button .spinner { width: 15px; height: 15px; margin-left: 8px; }
.prompt-go .spinner { border-color: rgba(255, 255, 255, .45); border-top-color: #ffffff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: pulse 1.2s ease-in-out infinite; border-top-color: var(--accent); }
}

/* Dark mode last, so it overrides the rules above. */
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --text: #f5f5f7; --secondary: #a1a1a6; --accent: #2997ff; --fill: #1c1c1e; }
  body { background: repeating-linear-gradient(180deg, #000000 0 3px, #111113 3px 6px); }
  .soon { background: #1c1c1e; }
  .prompt textarea, .notice { background: #1c1c1e; border-color: rgba(255, 255, 255, .16); }
  .prompt-error { color: #ff6961; }
  .spinner { border-color: rgba(255, 255, 255, .2); border-top-color: var(--accent); }
  .brand img { filter: invert(1); }
}
