:root {
  --bg: #f4efe7;
  --panel: rgba(255, 251, 245, 0.84);
  --panel-strong: #fffaf2;
  --line: rgba(107, 78, 47, 0.16);
  --text: #24160a;
  --muted: #695746;
  --accent: #bd4f26;
  --accent-strong: #8a2f12;
  --accent-soft: #f4c3a2;
  --highlight: #145b4c;
  --shadow: 0 24px 70px rgba(36, 22, 10, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 170, 0.9), transparent 32%),
    radial-gradient(circle at top right, rgba(20, 91, 76, 0.18), transparent 24%),
    linear-gradient(135deg, #f4efe7 0%, #f7eadf 42%, #ede4d7 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.5;
}

body::before {
  width: 260px;
  height: 260px;
  background: rgba(244, 195, 162, 0.7);
  top: 90px;
  right: 6vw;
}

body::after {
  width: 200px;
  height: 200px;
  background: rgba(20, 91, 76, 0.18);
  bottom: 40px;
  left: 5vw;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-simple {
  grid-template-columns: 1fr;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 32px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.hero-copy-simple {
  min-height: auto;
  padding: 28px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy-simple::after {
  display: none;
}

.hero-copy-simple h1 {
  max-width: 14ch;
  margin: 0;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 68%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--highlight);
}

h1,
h2,
h3,
legend {
  font-family: "Plus Jakarta Sans", sans-serif;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.choice-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 78, 47, 0.1);
  font-weight: 700;
}

.hero-card {
  border-radius: 28px;
  padding: 28px;
}

.hero-card h2,
.section-heading h2,
.export-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.hero-card p,
.hero-card li,
.section-heading p,
.helper-text,
.muted,
.summary-output,
small {
  color: var(--muted);
  line-height: 1.65;
}

.hero-card ul,
.sidebar-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.panel {
  border-radius: 28px;
  padding: 28px;
}

.intake-form {
  display: grid;
  gap: 22px;
}

fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
}

legend {
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.field-grid {
  display: grid;
  gap: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-input-group {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
}

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

.time-block {
  display: grid;
  gap: 8px;
}

.time-block small {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.time-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

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

.field span {
  font-weight: 700;
  font-size: 0.95rem;
}

input,
select,
textarea,
.upload-box {
  width: 100%;
  border: 1px solid rgba(107, 78, 47, 0.16);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(189, 79, 38, 0.58);
  box-shadow: 0 0 0 4px rgba(189, 79, 38, 0.1);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-pill {
  position: relative;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  min-width: 160px;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid rgba(107, 78, 47, 0.16);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.choice-pill input:checked + span {
  background: linear-gradient(135deg, var(--accent) 0%, #dd7d4b 100%);
  color: #fffaf4;
  border-color: transparent;
  box-shadow: 0 18px 28px rgba(189, 79, 38, 0.2);
}

.upload-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 238, 0.9));
}

.upload-box.dragover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(189, 79, 38, 0.08);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.file-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(107, 78, 47, 0.14);
  font-size: 0.92rem;
}

.actions,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.export-card .helper-text {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  color: #fffaf2;
  box-shadow: 0 18px 30px rgba(138, 47, 18, 0.2);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(107, 78, 47, 0.16);
}

.sidebar-panel {
  display: grid;
  gap: 22px;
  align-content: start;
}

.sidebar-list li + li {
  margin-top: 10px;
}

.style-options {
  display: grid;
  gap: 14px;
}

.font-options-wrap {
  display: grid;
  gap: 14px;
}

.compact-heading h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.compact-heading p:last-child {
  margin: 0;
}

.style-card {
  cursor: pointer;
}

.style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-card-inner {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(107, 78, 47, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.style-card:hover .style-card-inner {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(36, 22, 10, 0.08);
}

.style-card input:checked + .style-card-inner {
  border-color: rgba(189, 79, 38, 0.5);
  box-shadow: 0 0 0 4px rgba(189, 79, 38, 0.1);
}

.style-card strong {
  font-size: 1rem;
}

.style-preview {
  display: block;
  height: 94px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.preview-sunset {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 30%),
    linear-gradient(135deg, #f2d2b3 0%, #f8efe4 50%, #cf6a39 100%);
}

.preview-forest {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), transparent 30%),
    linear-gradient(135deg, #dbe7de 0%, #f3efe7 45%, #2f6a57 100%);
}

.preview-midnight {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 25%),
    linear-gradient(135deg, #121827 0%, #253048 48%, #5da3ff 100%);
}

.preview-sky {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5), transparent 30%),
    linear-gradient(135deg, #eef7f8 0%, #ffffff 50%, #84cfd5 100%);
}

.font-options {
  display: grid;
  gap: 12px;
}

.font-card {
  cursor: pointer;
}

.font-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.font-card-inner {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(107, 78, 47, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.font-card:hover .font-card-inner {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(36, 22, 10, 0.08);
}

.font-card input:checked + .font-card-inner {
  border-color: rgba(20, 91, 76, 0.44);
  box-shadow: 0 0 0 4px rgba(20, 91, 76, 0.1);
}

.font-sample {
  font-size: 1.3rem;
}

.font-sample-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.font-sample-modern {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

.font-sample-bold {
  font-family: "Arial Black", "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.font-sample-friendly {
  font-family: "Trebuchet MS", "Manrope", sans-serif;
  font-weight: 700;
}

.export-card {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 251, 245, 0.95), rgba(246, 238, 229, 0.92));
  border: 1px solid rgba(107, 78, 47, 0.12);
}

.summary-output {
  min-height: 140px;
  margin: 16px 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 78, 47, 0.1);
  white-space: pre-line;
}

.summary-output strong {
  color: var(--text);
}

.submission-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.submission-status.success {
  color: var(--highlight);
  font-weight: 700;
}

.submission-status.error {
  color: var(--accent-strong);
  font-weight: 700;
}

.submission-status.warning {
  color: #9a5a10;
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 16, 8, 0.42);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.modal-card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.98);
  border: 1px solid rgba(107, 78, 47, 0.14);
  box-shadow: 0 28px 70px rgba(36, 22, 10, 0.2);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.modal-steps {
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 78, 47, 0.1);
}

.modal-steps p {
  margin: 0;
  color: var(--muted);
}

.modal-steps p + p {
  margin-top: 10px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    border-radius: 24px;
    padding: 22px;
  }

  fieldset {
    padding: 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .phone-input-group {
    grid-template-columns: 1fr;
  }

  .hours-group,
  .time-selectors {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .choice-pill span,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-copy-simple {
    padding: 22px;
  }
}
