
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --bg: #f8f6f0;
  --paper: #fffefa;
  --ink: #233c32;
  --muted: #777d73;
  --green: #315c48;
  --green-dark: #254936;
  --peach: #edc2aa;
  --border: #e8e4d9;
  --shadow: 0 15px 45px rgba(37, 57, 42, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button, input, textarea, select {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  height: 76px;
  padding: 0 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 254, 250, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-icon {
  color: #c7785d;
  font-size: 28px;
  margin-right: 5px;
}

.brand-ai {
  color: #c7785d;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 27px;
}

.open-badge {
  color: var(--green);
  font-size: 12px;
  border: 1px solid #d7e2d8;
  border-radius: 50px;
  padding: 7px 12px;
}

.open-badge span,
.result-status span {
  display: inline-block;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #67a57b;
  margin-right: 6px;
}

.nav-link {
  color: #616b60;
  font-size: 13px;
}

.hero {
  text-align: center;
  padding: 75px 20px 54px;
  max-width: 850px;
  margin: auto;
}

.eyebrow {
  color: #a96d52;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.1px;
}

.eyebrow span {
  margin-right: 5px;
}

.hero h1,
.how-section > h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -1.5px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 65px);
  line-height: 1.14;
  margin: 22px 0 18px;
}

.hero h1 span {
  color: #bc795e;
  font-style: italic;
}

.hero-text {
  color: var(--muted);
  max-width: 570px;
  margin: auto;
  line-height: 1.9;
  font-size: 14px;
}

.hero-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.hero-pills span {
  border: 1px solid #e5e2d7;
  background: #fffdf8;
  border-radius: 50px;
  padding: 7px 12px;
  color: #626b60;
  font-size: 11px;
}

.workspace {
  max-width: 1120px;
  margin: 0 auto 95px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 22px;
  align-items: stretch;
}

.form-panel,
.results-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.step-label {
  font-size: 10px;
  font-weight: 700;
  color: #b67a5f;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 5px 0 0;
  font-weight: 600;
}

.sparkle,
.result-icon {
  font-size: 28px;
  color: #c9876c;
}

form label {
  display: block;
  margin: 19px 0 8px;
  font-size: 12px;
  font-weight: 600;
}

form label span {
  color: #c46f55;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #e4e3d9;
  border-radius: 8px;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7b9c83;
  box-shadow: 0 0 0 3px rgba(77, 126, 92, 0.09);
}

textarea {
  resize: vertical;
  min-height: 105px;
  line-height: 1.7;
}

input::placeholder,
textarea::placeholder {
  color: #a2a49b;
}

select {
  cursor: pointer;
  min-height: 42px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-note,
.form-footnote,
.small-note {
  color: #93968d;
  font-size: 10px;
}

.input-note {
  margin-top: 6px;
}

.primary-btn {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 9px;
  margin-top: 26px;
  padding: 12px 16px;
  background: var(--green);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.primary-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.arrow {
  margin-left: auto;
  font-size: 17px;
}

.form-footnote {
  text-align: center;
  line-height: 1.7;
  margin: 12px 0 0;
}

.results-panel {
  background: #fcfbf6;
}

.result-heading {
  margin-bottom: 0;
}

.welcome-state {
  text-align: center;
  padding: 32px 8px 22px;
}

.welcome-art {
  position: relative;
  width: 160px;
  height: 150px;
  margin: 0 auto 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5eadb;
  border-radius: 46% 54% 48% 52%;
  transform: rotate(-4deg);
}

.art-paper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95px;
  height: 112px;
  background: #fffdf7;
  border: 1px solid #e4d4be;
  box-shadow: 7px 8px 0 #dfc7ac;
  border-radius: 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-style: italic;
  color: #b8765b;
  transform: rotate(5deg);
}

.art-star {
  position: absolute;
  z-index: 2;
  color: #b8765b;
  font-size: 25px;
}

.star-one {
  top: 15px;
  left: 12px;
}

.star-two {
  right: 7px;
  bottom: 17px;
}

.welcome-state h3,
.loading-state h3,
.error-state h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.welcome-state > p,
.loading-state > p,
.error-state > p {
  color: var(--muted);
  max-width: 310px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.9;
}

.mini-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mini-features span {
  background: #f0eee5;
  border-radius: 50px;
  padding: 7px 9px;
  font-size: 10px;
  color: #59685a;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 65px 8px;
}

.loader {
  width: 37px;
  height: 37px;
  border: 3px solid #e5e6dc;
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-track {
  height: 4px;
  background: #e9e9df;
  border-radius: 10px;
  margin: 25px auto 12px;
  max-width: 220px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 35%;
  background: #6e9478;
  border-radius: inherit;
  animation: progress 2s ease-in-out infinite alternate;
}

@keyframes progress {
  from { width: 10%; }
  to { width: 90%; }
}

.error-state {
  color: #934c40;
}

.secondary-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 15px;
  border: 1px solid #d9ded3;
  border-radius: 8px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.secondary-btn:hover {
  background: #f0f2e9;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 26px 0 15px;
  font-size: 10px;
  color: var(--muted);
}

.result-status {
  color: var(--green);
  font-weight: 600;
}

.result-card {
  border: 1px solid var(--border);
  background: #fffefa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
}

.result-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.result-card h3 {
  font-size: 12px;
  margin: 0;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid #e3e3d9;
  background: #fffefa;
  color: #55725b;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #eef2e9;
}

.result-content {
  color: #5e655c;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-all-btn {
  margin-top: 18px;
}

.small-note {
  line-height: 1.8;
  text-align: center;
  margin: 13px 0 0;
}

.hidden {
  display: none !important;
}

.how-section {
  max-width: 1030px;
  padding: 0 22px;
  margin: 0 auto 75px;
  text-align: center;
}

.how-section > h2 {
  font-size: clamp(27px, 3.6vw, 39px);
  line-height: 1.3;
  margin: 15px 0 32px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.benefit-card {
  background: #fffefa;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 25px;
}

.benefit-icon {
  color: #b9785b;
  font-size: 24px;
}

.benefit-card h3 {
  font-size: 14px;
  margin: 15px 0 7px;
}

.benefit-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.challenge-note {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto 70px;
  padding: 24px 28px;
  background: #f1e9dc;
  border: 1px solid #e8ddcc;
  border-radius: 12px;
}

.challenge-icon {
  font-size: 30px;
  color: #b9785b;
}

.challenge-note h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.challenge-note p {
  margin: 0;
  color: #73756b;
  font-size: 12px;
  line-height: 1.8;
}

footer {
  border-top: 1px solid var(--border);
  background: #fffefa;
  min-height: 90px;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-size: 17px;
}

footer p {
  font-size: 11px;
  color: #85877e;
  text-align: right;
}

@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .hero {
    padding-top: 55px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 22px;
  }

  .challenge-note {
    margin-left: 22px;
    margin-right: 22px;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 65px;
    padding: 0 18px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-right {
    gap: 0;
  }

  .open-badge {
    font-size: 10px;
    padding: 6px 8px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 45px 18px 38px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-text {
    font-size: 13px;
  }

  .workspace {
    padding: 0 13px;
    gap: 15px;
    margin-bottom: 70px;
  }

  .form-panel,
  .results-panel {
    padding: 21px 17px;
    border-radius: 13px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .how-section {
    padding: 0 17px;
  }

  .challenge-note {
    padding: 18px;
    gap: 12px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 20px 15px;
  }

  footer p {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
