@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-warm: #f8f8f7;
  --ink: #171717;
  --body: #414141;
  --muted: #737373;
  --line: #d8d8d5;
  --burgundy: #6b355f;
  --burgundy-dark: #4f2546;
  --burgundy-wash: #f5f1f4;
  --burgundy-soft: #d5bccc;
  --error: #a94c49;
  --error-bg: #fff4f3;
  --shadow: 0 20px 60px rgba(35, 29, 25, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { min-height: 100vh; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  min-height: 0;
}

.brand-bar {
  width: min(1600px, calc(100% - 96px));
  margin: 0 auto;
  padding: 8px 0 7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 58vw;
  height: auto;
}

.app {
  width: 100%;
  margin: 0;
  padding: 0;
}

.progress-row {
  width: min(760px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-count {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.progress {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.progress-seg {
  height: 4px;
  overflow: hidden;
  background: #d8d2ca;
  border-radius: 10px;
  position: relative;
}

.progress-seg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--burgundy-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.progress-seg.filled::after { transform: scaleX(1); }

.card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 42px 0;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.intro-page {
  width: 100%;
  margin: 0 auto;
}

.intro-hero {
  padding: 0;
  border-bottom: 5px solid var(--burgundy);
  background: var(--ink);
  color: #ffffff;
}

.intro-hero-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.intro-hero-copy {
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.hero-form-panel {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 24px 22px 16px;
  border-top: 5px solid var(--burgundy);
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

h1.intro-title {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(42px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-align: left;
  white-space: nowrap;
}

h1.intro-title span {
  color: var(--burgundy-soft);
}

.intro-lead {
  max-width: 610px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.62;
  text-wrap: balance;
}

.intro-benefits {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.intro-benefits li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.intro-benefits li:last-child { margin-bottom: 0; }

.intro-benefits span {
  flex: 0 0 auto;
  color: var(--burgundy-soft);
  font-weight: 800;
}

.hero-creator {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 610px;
}

.hero-creator-photo {
  display: block;
  width: 112px;
  height: 112px;
  border-bottom: 4px solid var(--burgundy);
  object-fit: cover;
  object-position: center;
}

.hero-creator p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.55;
}

.hero-creator strong {
  color: #ffffff;
  font-weight: 700;
}

.fgf-form-heading {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.fgf-form-intro {
  margin: 0 0 10px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: balance;
}

.fgf-form-shell {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.fgf-form-frame {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
  border-radius: 0;
}

.value-preview {
  padding: 60px 0 64px;
  background: #ffffff;
}

.value-preview-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.value-preview h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
}

.value-preview-intro {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
}

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

.value-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.value-card h3 {
  margin: 0 0 10px;
  color: var(--burgundy-dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.value-card p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.65;
}

.question {
  margin: 0 0 12px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.helper {
  max-width: none;
  margin: 0 0 28px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--body);
  font-size: 12px;
  font-weight: 700;
}

input[type='text'], input[type='email'], textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: var(--paper-warm);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}

input[type='text']:focus, input[type='email']:focus, textarea:focus {
  border-color: var(--burgundy-dark);
  box-shadow: 0 0 0 3px rgba(122, 62, 114, 0.18);
}

input::placeholder, textarea::placeholder {
  color: #9f9992;
  opacity: 1;
}

.triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.optional-block textarea { min-height: 86px; }

.main-answer { min-height: 120px; }

.theme-answer { min-height: 92px; }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

button { border: 0; cursor: pointer; }

.btn-primary, .closing-note a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid var(--burgundy);
  border-radius: 3px;
  background: var(--burgundy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  border-color: var(--burgundy-dark);
  background: var(--burgundy-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-start {
  min-height: 52px;
  padding-inline: 28px;
  font-size: 14px;
}

.btn-ghost {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.btn-ghost:hover {
  border-color: var(--burgundy-dark);
  color: var(--burgundy-dark);
}

.btn-link {
  padding: 7px 0;
  border-bottom: 1px solid var(--burgundy-dark);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.loading {
  padding: 36px 0 18px;
  text-align: center;
}

.loading p {
  margin: 18px 0 0;
  color: var(--body);
  font-size: 14px;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 3px solid var(--burgundy-soft);
  border-top-color: var(--burgundy-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .btn-primary, .closing-note a { transition: none; }
}

.error-box {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(169, 76, 73, 0.35);
  border-radius: 4px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 13px;
  line-height: 1.6;
}

.plan-header {
  margin: 0 0 44px;
  padding: 0 0 28px;
  border-bottom: 4px solid var(--burgundy);
  border-radius: 0;
  background: transparent;
}

.result-page {
  width: min(1100px, 100%);
  padding-top: 38px;
}

.result-page .plan {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.plan-kicker {
  margin: 0 0 9px;
  color: var(--burgundy-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan-title {
  margin: 0 0 10px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.plan-intro {
  max-width: 56ch;
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.65;
}

.plan h2.section {
  margin: 36px 0 11px;
  color: var(--ink);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.plan h2.section:first-of-type { margin-top: 0; }

.plan p.section-body {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.8;
}

.verdict {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 600;
}

.result-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
}

.result-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.result-list li::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burgundy-dark);
}

.connection-box {
  margin-top: 14px;
  padding: 22px 24px;
  background: var(--ink);
  color: #ffffff;
}

.connection-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--burgundy-soft);
  font-size: 15px;
}

.connection-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.theme-list, .gap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.theme-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-warm);
}

.theme-item .theme-title, .gap-item .gap-issue {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.theme-item .theme-explain, .gap-item .gap-why {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.65;
}

.gap-item {
  padding: 18px 20px;
  border: 1px solid rgba(122, 62, 114, 0.38);
  border-radius: 4px;
  background: var(--burgundy-wash);
}

.decision-list {
  margin: 14px 0 0;
  padding-left: 25px;
}

.decision-list li {
  margin-bottom: 11px;
  padding-left: 5px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.7;
}

.decision-list li::marker {
  color: var(--burgundy-dark);
  font-weight: 700;
}

.plan-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.closing-note {
  margin-top: 38px;
  padding: 26px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
}

.closing-note > strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.closing-note p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.closing-note a {
  min-height: 44px;
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--ink);
  transition: none;
}

.closing-note a:hover,
.closing-note a:focus {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--ink);
  transform: none;
}

.next-step {
  margin-top: 34px;
  padding: 24px;
  border: 2px solid var(--burgundy-dark);
  background: #ffffff;
}

.next-step p {
  margin: 0 0 8px;
  color: var(--burgundy-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-step strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.restart-row {
  margin-top: 20px;
  text-align: center;
}

.restart-row button {
  padding: 5px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  width: min(1600px, calc(100% - 96px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer a {
  color: var(--body);
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1180px) {
  .brand-bar, .site-footer {
    width: min(1080px, calc(100% - 48px));
  }
  .intro-hero-inner {
    width: min(1080px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
    gap: 40px;
  }
  .hero-form-panel {
    max-width: 470px;
  }
  .value-preview-inner {
    width: min(1080px, calc(100% - 48px));
  }
}

@media (max-width: 980px) {
  .intro-hero-inner {
    width: min(760px, calc(100% - 48px));
    padding: 36px 0 34px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-hero-copy {
    max-width: 620px;
    justify-self: center;
  }
  .hero-form-panel {
    width: min(480px, 100%);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .intro-hero-inner {
    width: min(760px, calc(100% - 48px));
    padding: 34px 0 32px;
    gap: 28px;
  }
  .value-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  .brand-bar, .site-footer { width: min(100% - 30px, 1120px); }
  .app { width: 100%; }
  .brand-bar {
    padding: 8px 0 7px;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .brand-logo { width: 170px; max-width: 72vw; }
  .app { padding: 0; }
  .card { padding: 30px 0; }
  .intro-hero-inner {
    width: 100%;
    padding: 36px 24px 32px;
    gap: 26px;
  }
  .hero-form-panel {
    width: 100%;
    padding: 22px 12px 14px;
  }
  .hero-creator {
    width: 100%;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
  }
  .hero-creator-photo {
    width: 86px;
    height: 86px;
  }
  h1.intro-title { font-size: clamp(36px, 10vw, 46px); white-space: normal; text-wrap: balance; }
  .intro-lead { font-size: 16px; }
  .intro-benefits li { font-size: 15px; }
  .value-preview {
    padding: 44px 0 48px;
  }
  .value-preview-inner {
    width: calc(100% - 48px);
  }
  .value-preview h2 {
    font-size: 30px;
  }
  .value-preview-intro {
    font-size: 15px;
  }
  .value-card {
    padding: 22px;
  }
  .triple { grid-template-columns: 1fr; }
  .plan-header {
    margin: 0 0 30px;
    padding: 0 0 24px;
  }
  .nav-row { margin-top: 28px; }
  .nav-row .btn-primary, .nav-row .btn-ghost { padding-inline: 17px; }
  .site-footer {
    padding-bottom: 22px;
    flex-direction: column;
    gap: 4px;
  }
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media print {
  body { background: #ffffff; }
  .brand-bar, .progress-row, .site-footer, .plan-actions, .restart-row, .closing-note { display: none !important; }
  .app { width: 100%; padding: 0; }
  .card { width: 100%; padding: 0; border: 0; box-shadow: none; }
  .plan-header { margin: 0 0 26px; padding: 0 0 24px; background: transparent; }
  .theme-item, .gap-item { break-inside: avoid; }
}

