﻿:root {
  color-scheme: light;
  --bg: #F7F8FC;
  --paper: #FFFFFF;
  --ink: #161B2E;
  --muted: #667085;
  --line: #E4E7EC;
  --blue: #6D5DFB;
  --blue-2: #EEF2FF;
  --teal: #22D3EE;
  --green: #22C55E;
  --brass: #EC4899;
  --brass-2: #FDF2F8;
  --navy: #0B1020;
  --shadow: 0 18px 48px rgba(13, 19, 41, .12);
  font-family: "Segoe UI Semibold", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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(217, 216, 210, .84);
  background: rgba(244, 244, 241, .9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 22px rgba(47, 52, 55, .16);
}

.brand-mark span {
  width: 13px;
  height: 16px;
  border-right: 3px solid #FFFFFF;
  border-bottom: 3px solid #FFFFFF;
  transform: rotate(42deg) translate(-1px, -1px);
  border-radius: 1px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brass);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  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;
  text-align: center;
  white-space: normal;
}

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

.btn.secondary.light {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.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;
}

.builder-hero,
.docs-page {
  padding: clamp(42px, 7vw, 82px) clamp(20px, 5vw, 72px) 34px;
}

.builder-hero {
  max-width: 940px;
}

.builder-hero h1,
.docs-page h1 {
  max-width: 860px;
}

.builder-hero p,
.docs-page > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

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

h1 {
  max-width: 680px;
  margin: 0;
  color: #303538;
  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: var(--paper);
}

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

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

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

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

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

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

.board-column,
.chat-panel {
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  background: var(--paper);
}

.board-column {
  padding: 12px;
}

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

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

.mini-card strong,
.message strong {
  display: block;
  color: #303538;
  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: var(--brass-2);
  color: #80672f;
}

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

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

.chat-thread {
  padding: 14px;
}

.message {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  background: var(--paper);
}

.message.ai {
  margin-left: auto;
  border-color: #b8d6d1;
  background: var(--blue-2);
}

.calendar-strip {
  margin-top: 12px;
  padding: 11px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

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

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

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

.section h2 {
  margin: 0;
  color: #303538;
  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: var(--paper);
}

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

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

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

.extension-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(247, 248, 252, 0)),
    radial-gradient(circle at 18% 14%, rgba(34, 211, 238, .16), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(236, 72, 153, .12), transparent 30%);
}

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

.extension-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 36px rgba(13, 19, 41, .08);
}

.extension-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-2);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.extension-card h3 {
  margin: 16px 0 0;
  color: #303538;
  font-size: 20px;
  line-height: 1.2;
}

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

.extension-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.extension-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13px;
}

.extension-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14);
}

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

.code-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(13, 19, 41, .08);
}

.code-card h3,
.docs-page h2 {
  margin: 0 0 10px;
  color: #303538;
}

.code-card pre,
.prompt-box,
.docs-page pre {
  overflow: auto;
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--navy);
  color: #EEF2FF;
  white-space: pre-wrap;
}

.prompt-box {
  max-width: 980px;
}

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

.recipe-list a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue);
  font-weight: 750;
}

.docs-page {
  max-width: 1040px;
}

.docs-page h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
}

.docs-page h2 {
  margin-top: 28px;
  font-size: 22px;
}

.docs-page ol,
.plain-list {
  display: grid;
  gap: 9px;
  max-width: 760px;
  color: var(--muted);
}

.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: var(--paper);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--navy);
  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: #5746E8;
  color: #fff;
}

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

.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);
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(34, 211, 238, .18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(236, 72, 153, .14), transparent 32%),
    var(--bg);
}

.redirect-card {
  width: min(520px, 100%);
}

.redirect-card h1 {
  margin-top: 12px;
  font-size: 34px;
}

.redirect-card p:not(.eyebrow) {
  color: var(--muted);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  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: #4b504f;
  font-size: 12px;
  font-weight: 700;
}

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

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

.password-rule {
  color: var(--muted);
  font-size: 12px;
}

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

.password-rule.valid {
  color: var(--green);
}

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: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.wizard-steps span.complete {
  border-color: #ded2b4;
  background: var(--brass-2);
  color: #80672f;
}

.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 #ded2b4;
  border-radius: 8px;
  background: var(--brass-2);
}

.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;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--navy);
  color: #f4f1e9;
}

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

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

.check b {
  color: #303538;
}

.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,
  .extension-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    min-width: 0;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .hero,
  .builder-hero,
  .docs-page,
  .section,
  .onboarding,
  .login-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .onboarding,
  .login-page {
    gap: 18px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.1;
  }

  .hero p,
  .builder-hero p,
  .docs-page > p {
    font-size: 14px;
  }

  .hero-actions,
  .result-actions,
  .form-actions,
  .wizard-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .result-actions .btn,
  .form-actions .btn,
  .wizard-actions .btn,
  .redirect-card .btn {
    width: 100%;
  }

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

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 16px;
    margin-right: 16px;
    padding: 18px;
  }

  .panel.pad {
    padding: 16px;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .wizard-panel {
    min-height: 0;
  }

  .redirect-page {
    align-items: start;
    padding: 14px;
  }

  .redirect-card h1 {
    font-size: 26px;
    line-height: 1.16;
  }

  .code-card,
  .prompt-box,
  .docs-page pre {
    overflow-wrap: anywhere;
  }
}


