:root {
  --bg-color: #faf7f2;
  --surface-color: #ffffff;
  --text-main: #2b2623;
  --text-muted: #726861;
  --accent: #d96b52;
  --accent-hover: #c45b43;
  --accent-light: #faeae6;
  --border-color: #eee7dc;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(43, 38, 35, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
}

.brand span {
  color: var(--accent);
  font-size: 1.2rem;
  margin-left: 2px;
}

.byline {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

/* Main Container */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero em {
  font-style: italic;
  font-weight: 600;
}

.intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}

.trust-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
}

/* Buttons */
.primary-button, .secondary-button, .spin-button {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-button:hover, .secondary-button:hover, .spin-button:hover:not(:disabled) {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.text-button {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
}

.text-button:hover {
  background-color: #f1ede6;
}

/* Category Chooser */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Button Category Card in user script */
.category {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: inherit;
}

.category:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category[aria-pressed="true"] {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.category .icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.category strong {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.category small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Spin Section */
.spin-panel {
  text-align: center;
  background-color: var(--surface-color);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.spin-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.selected-message {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.spin-button:disabled {
  background-color: #d1cbc5;
  cursor: not-allowed;
  transform: none;
}

/* Result Card */
.result-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.result-category {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.result-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0.4rem 0 1.5rem;
}

.result-idea {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.result-meta {
  margin-bottom: 1.5rem;
}

.info-badge {
  display: inline-flex;
  gap: 0.5rem;
  background: #f4ede4;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.result-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.result-copy h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.result-copy p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Form */
.email-form {
  background: #f4efe8;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.email-form h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0.25rem 0 0.5rem;
}

.email-form p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.email-row {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 1.25rem auto 0.5rem;
}

.email-row input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--accent);
}

/* Footer & Legal */
footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-wrap {
  text-align: left;
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  font-size: 0.85rem;
}

.legal:first-child {
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .result-copy { grid-template-columns: 1fr; }
  .email-row { flex-direction: column; }
}
