:root {
  --milk: #faf8f3;
  --surface: #ffffff;
  --interface: #f6f8fa;
  --ink: #1f2933;
  --muted: #65727f;
  --line: #dde3ea;
  --soft-line: #eef1f4;
  --sky: #a9d6f5;
  --sky-soft: #dceeff;
  --green: #7dafa3;
  --green-soft: #ddefe3;
  --peach: #ffe2d1;
  --danger: #b42318;
  --success: #216e4e;
  --shadow: 0 18px 48px rgba(31, 41, 51, 0.08);
  font-family: Inter, Onest, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--milk);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(250, 248, 243, 0.92);
  border-bottom: 1px solid rgba(221, 227, 234, 0.8);
  backdrop-filter: blur(18px);
}

.compact-header {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
}

.brand img {
  border-radius: 8px;
}

.top-nav,
.hero-actions,
.hero-proof,
.user-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--muted);
  font-size: 15px;
}

.top-nav a:hover,
.side-nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 41, 51, 0.12);
}

.button:disabled,
.button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 78vh;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px) 54px;
  background:
    linear-gradient(90deg, rgba(220, 238, 255, 0.45), transparent 38%),
    linear-gradient(180deg, var(--milk), #ffffff 100%);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #3d796e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  font-weight: 850;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lead {
  max-width: 640px;
  font-size: 19px;
}

.hero-proof {
  margin-top: 26px;
}

.hero-proof span,
.plan-badge,
.kit-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.band-soft {
  background: var(--interface);
}

.band-product {
  background: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards-grid,
.pricing-grid,
.comparison,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.pricing-card,
.comparison article,
.workspace-panel,
.auth-panel,
.security-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.05);
}

.info-card,
.pricing-card,
.comparison article {
  padding: 24px;
}

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

.workflow article {
  min-height: 210px;
  padding: 20px;
  border-top: 3px solid var(--sky);
  background: var(--surface);
}

.workflow span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 850;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.kit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comparison-focus {
  background: var(--ink) !important;
  color: #fff;
}

.comparison-focus p {
  color: #d9e2ea;
}

.pricing-main {
  border-color: var(--green);
  background: linear-gradient(180deg, #ffffff, #f4fbf8);
}

.price {
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
}

ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.final-cta {
  text-align: center;
}

.final-cta p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 32px 18px;
  background: linear-gradient(180deg, var(--milk), var(--interface));
}

.auth-panel {
  width: min(100%, 460px);
  padding: 28px;
}

.auth-panel h1 {
  font-size: 38px;
}

.auth-form,
.project-form {
  display: grid;
  gap: 16px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(169, 214, 245, 0.8);
  outline-offset: 2px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-success {
  color: var(--success);
}

.auth-switch {
  margin: 18px 0 0;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--interface);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.side-nav a {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.side-nav a.is-active {
  background: var(--sky-soft);
  color: var(--ink);
}

.security-note {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.security-note strong {
  color: var(--ink);
}

.dashboard-main {
  padding: 28px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin-bottom: 0;
  font-size: 44px;
}

.user-box {
  justify-content: flex-end;
}

.dashboard-grid {
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  margin-bottom: 18px;
}

.workspace-panel {
  padding: 22px;
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading h2,
.project-detail h2 {
  font-size: 28px;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.project-item.is-selected {
  border-color: var(--green);
  background: #f4fbf8;
}

.project-item strong,
.concept-card strong {
  font-size: 16px;
}

.meta-row,
.output-tags,
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span,
.output-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--interface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.project-detail {
  min-height: 280px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.empty-state {
  max-width: 620px;
}

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

.concept-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--interface);
}

.concept-card.is-chosen {
  border-color: var(--green);
  background: #f4fbf8;
}

.concept-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.selected-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #275f54;
  font-size: 12px;
  font-weight: 800;
}

.concepts-section,
.brandbook-preview,
.superstar-block,
.feedback-block,
.selection-hint {
  margin-top: 28px;
}

.output-summary {
  margin-top: 18px;
  max-width: 880px;
  font-weight: 700;
}

.key-value {
  display: grid;
  gap: 4px;
}

.key-value span,
.mini-hero-preview span,
.preview-section h4,
.rule-box h4,
.usage-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.key-value p,
.usage-card p,
.rule-box ul,
.preview-section p {
  margin-bottom: 0;
}

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

.palette-swatch {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.palette-swatch i {
  grid-row: span 2;
  width: 34px;
  height: 24px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 6px;
}

.palette-swatch b {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.palette-swatch small {
  color: var(--muted);
  font-weight: 700;
}

.palette-row i[data-color="f6f8fa"] {
  background: #f6f8fa;
}

.palette-row i[data-color="a9d6f5"] {
  background: #a9d6f5;
}

.palette-row i[data-color="7dafa3"] {
  background: #7dafa3;
}

.palette-row i[data-color="1f2933"] {
  background: #1f2933;
}

.palette-row i[data-color="faf8f3"] {
  background: #faf8f3;
}

.palette-row i[data-color="ddefe3"] {
  background: #ddefe3;
}

.palette-row i[data-color="eef1f4"] {
  background: #eef1f4;
}

.palette-row i[data-color="ffffff"] {
  background: #ffffff;
}

.palette-row i[data-color="ffe2d1"] {
  background: #ffe2d1;
}

.mini-hero-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(220, 238, 255, 0.72), rgba(255, 226, 209, 0.42)),
    #ffffff;
}

.mini-hero-preview h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.usage-grid,
.rules-grid,
.brandbook-grid,
.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.concept-card .usage-grid,
.concept-card .rules-grid {
  grid-template-columns: 1fr;
}

.usage-card,
.rule-box,
.preview-section,
.brief-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.rule-box ul,
.plain-list {
  margin: 0;
  padding-left: 18px;
}

.rule-box-muted {
  background: #fff8f4;
}

.why-it-fits {
  padding: 12px;
  border-left: 3px solid var(--green);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.selection-hint,
.superstar-block,
.feedback-block {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.brandbook-preview {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.brandbook-cover {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(169, 214, 245, 0.36), rgba(221, 239, 227, 0.7)),
    var(--interface);
}

.brandbook-cover h3 {
  font-size: 34px;
}

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

.launch-kit-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.launch-kit-cta p {
  max-width: 620px;
  color: #d9e2ea;
}

.watermark {
  position: absolute;
  right: -42px;
  top: 38px;
  transform: rotate(28deg);
  padding: 8px 52px;
  border: 1px solid rgba(31, 41, 51, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(31, 41, 51, 0.48);
  font-size: 13px;
  font-weight: 900;
}

.has-watermark .brandbook-cover,
.has-watermark .preview-section {
  opacity: 0.86;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.rating-button.is-active {
  border-color: var(--green);
  background: var(--green-soft);
}

.feedback-saved {
  margin: 12px 0 0;
  color: var(--success);
  font-weight: 800;
}

.demo-hero {
  display: grid;
  align-items: center;
  min-height: 56vh;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(169, 214, 245, 0.42), rgba(255, 226, 209, 0.36)),
    var(--milk);
}

.demo-hero > div {
  max-width: 840px;
}

.demo-output {
  background: #ffffff;
}

.risk-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.risk-list li {
  padding: 12px;
  border-left: 3px solid var(--peach);
  background: #fff8f4;
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero-section,
  .split-layout,
  .app-shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cards-grid,
  .pricing-grid,
  .comparison,
  .workflow,
  .concept-grid,
  .usage-grid,
  .brandbook-grid,
  .brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .dashboard-header,
  .detail-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .nav-login {
    margin-left: 0;
  }

  h1 {
    font-size: 40px;
  }

  .cards-grid,
  .pricing-grid,
  .comparison,
  .workflow,
  .concept-grid,
  .usage-grid,
  .rules-grid,
  .brandbook-grid,
  .brief-grid,
  .palette-row,
  fieldset {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 18px;
  }

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