/* welcome.css - pre-sign-in page (spec 008). Standalone: no shell.css. */

.welcome {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-sans);
}

.welcome-bar {
  padding: 20px 32px;
  background: var(--panel);
  border-bottom: 4px solid var(--orange);
}
.welcome-logo {
  display: block;
  height: 40px;
  width: auto;
}

.welcome-main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  box-sizing: border-box;
}

.welcome-hero {
  max-width: 680px;
}
.welcome-eyebrow {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--altgeld);
}
.welcome-heading {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  color: var(--blue);
}
.welcome-lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.welcome-cta {
  margin-top: 32px;
}
.welcome-signin {
  font-size: 16px;
  padding: 14px 26px;
}
.welcome-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.welcome-tiles {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.welcome-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.welcome-tile-icon {
  width: 28px;
  height: 28px;
  color: var(--orange);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}
.welcome-tile-title {
  margin: 12px 0 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--blue);
}
.welcome-tile-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.welcome-foot {
  padding: 20px 0;
  background: var(--blue);
  color: var(--panel);
  font-size: 14px;
  line-height: 1.5;
}
/* Same column as .welcome-main so the footer text lines up with the hero. */
.welcome-foot p {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}
.welcome-foot a {
  color: var(--panel);
  text-decoration: underline;
}

/* First-time setup + My profile (spec 008 slice 2) ------------------------- */

.setup-main {
  padding-top: 48px;
}
.setup-card {
  max-width: 640px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-sizing: border-box;
}
.setup-card--page {
  margin-top: 8px;
}
/* Standalone setup pages don't load shell.css's border-box reset. */
.setup-card :is(input, select, textarea) {
  box-sizing: border-box;
}
.setup-heading {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  color: var(--blue);
}
.setup-subheading {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
}
.setup-lede {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.setup-group {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.setup-group > legend {
  padding: 0;
  margin-bottom: 8px;
}
.setup-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.setup-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.setup-role:has(input:checked) {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 8%, transparent);
}
.setup-role input,
.setup-check input {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
}
.setup-rules {
  padding: 16px 18px;
  background: var(--canvas);
  border-radius: 10px;
}
/* Floated so the legend sits inside the shaded box, not on its edge. */
.setup-rules > legend {
  float: left;
  width: 100%;
}
.setup-rules-body {
  clear: both;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
}
.setup-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
}
.setup-goals {
  display: grid;
  gap: 8px;
}
.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.setup-prefilled {
  margin: -8px 0 20px;
  padding: 10px 14px;
  border-left: 4px solid var(--orange);
  background: var(--canvas);
  font-size: 14.5px;
  line-height: 1.45;
}

/* Onboarding chat (slice 3) */
.setup-chat-log {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.setup-chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.45;
}
.setup-chat-msg--assistant {
  align-self: flex-start;
  background: var(--canvas);
  border: 1px solid var(--line);
}
.setup-chat-msg--user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--panel);
}
.setup-chat-form {
  display: flex;
  gap: 8px;
}
.setup-chat-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.setup-chat-form input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}
.setup-chat-note {
  margin: 8px 0 16px;
}
.setup-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .setup-main {
    padding-top: 24px;
  }
  .setup-card {
    padding: 20px 16px;
  }
  .welcome-bar,
  .welcome-foot p {
    padding-left: 16px;
    padding-right: 16px;
  }
  .welcome-main {
    padding: 40px 16px 32px;
  }
  .welcome-tiles {
    margin-top: 40px;
  }
}
