:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #1e2a44;
  --muted: #64708a;
  --line: #dfe7f2;
  --blue: #0b68f0;
  --blue-2: #eaf3ff;
  --teal: #18b7c6;
  --green: #22a06b;
  --navy: #111d35;
  --shadow: 0 18px 48px rgba(30, 42, 68, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 231, 242, .82);
  background: rgba(246, 248, 251, .9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 82px) clamp(20px, 5vw, 72px) 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 750;
  font-size: 12px;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  color: #21304c;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 560px;
}

.stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat b,
.metric b {
  display: block;
  color: #22304a;
  font-size: 18px;
}

.stat span,
.metric span {
  color: var(--muted);
  font-size: 12px;
}

.product-shot {
  overflow: hidden;
  border: 1px solid #d6e2f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
}

.shot-top b {
  font-size: 13px;
}

.shot-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 420px;
  padding: 14px;
  background: #f7faff;
}

.board-column,
.chat-panel {
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #fff;
}

.board-column {
  padding: 12px;
}

.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #27324a;
  font-weight: 750;
  font-size: 12px;
}

.mini-card {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #e3ebf5;
  border-radius: 8px;
  background: #fff;
}

.mini-card strong,
.message strong {
  display: block;
  color: #22304a;
  font-size: 12px;
}

.mini-card p,
.message p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.tag-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-2);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.tag.green {
  background: #e9f8f1;
  color: var(--green);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.chat-head {
  padding: 13px;
  border-bottom: 1px solid #edf2f8;
}

.chat-thread {
  padding: 14px;
}

.message {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
}

.message.ai {
  margin-left: auto;
  border-color: #bdd9ff;
  background: #eaf3ff;
}

.calendar-strip {
  margin-top: 12px;
  padding: 11px;
  border-radius: 8px;
  background: #101b31;
  color: #fff;
}

.calendar-strip small {
  display: block;
  color: #b9c4d8;
}

.section {
  padding: 42px clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  color: #263753;
  font-size: 28px;
  line-height: 1.14;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 800;
}

.feature h3 {
  margin: 0;
  color: #263753;
  font-size: 16px;
}

.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #101b31;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px clamp(20px, 5vw, 72px) 54px;
  padding: 24px;
  border-radius: 12px;
  background: #111d35;
  color: #fff;
}

.cta-band p {
  margin: 6px 0 0;
  color: #cbd5e1;
}

.onboarding {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 28px;
  align-items: start;
  padding: 42px clamp(20px, 5vw, 72px);
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, .7fr);
  gap: 28px;
  align-items: start;
  padding: 42px clamp(20px, 5vw, 72px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.panel.pad {
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #34415f;
  font-size: 12px;
  font-weight: 700;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.password-rule {
  color: #64708c;
  font-size: 12px;
}

.password-rule.invalid {
  color: #b42318;
}

.password-rule.valid {
  color: #157347;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.is-hidden {
  display: none !important;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.wizard-steps span {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.wizard-steps span.active {
  border-color: #b8d4ff;
  background: var(--blue-2);
  color: var(--blue);
}

.wizard-steps span.complete {
  border-color: #bee3d1;
  background: #f1fbf6;
  color: var(--green);
}

.wizard-panel {
  min-height: 280px;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.wizard-final[hidden] {
  display: none;
}

.success-note {
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 700;
}

.result {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bee3d1;
  border-radius: 8px;
  background: #f1fbf6;
}

.result.show {
  display: block;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.confirm-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.confirm-form.is-complete {
  display: none;
}

.form-actions.split {
  justify-content: space-between;
}

code,
pre {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

pre {
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #111d35;
  color: #eef4ff;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.check b {
  color: #263753;
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero,
  .onboarding,
  .login-page {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero-stats,
  .feature-grid,
  .workflow,
  .form-grid,
  .shot-body {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
