:root {
  --ink: #1d2522;
  --muted: #5f6f68;
  --line: #d7ded7;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --leaf: #2f6b4f;
  --leaf-dark: #214d39;
  --gold: #c59135;
  --rose: #b7554f;
  --blue: #3c6f8f;
  --shadow: 0 20px 50px rgba(30, 38, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(215, 222, 215, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--leaf);
  border-radius: 8px;
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.intro-section,
.band,
.examples,
.form-section {
  padding: clamp(38px, 7vw, 84px) clamp(18px, 4vw, 56px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 68px);
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.intro-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.audience-line {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span {
  padding: 8px 10px;
  color: var(--leaf-dark);
  background: #edf4ed;
  border: 1px solid #d2dfd4;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.primary-action,
.secondary-action,
.submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action,
.submit-button {
  color: #fff;
  background: var(--leaf);
  box-shadow: 0 10px 24px rgba(47, 107, 79, 0.22);
}

.primary-action:hover,
.submit-button:hover {
  background: var(--leaf-dark);
}

.secondary-action {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.sample-report {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 30px 70px rgba(30, 38, 34, 0.16),
    0 0 0 8px rgba(255, 255, 255, 0.72);
}

.report-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-topline strong {
  color: var(--leaf);
}

.photo-stack,
.sample-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.photo-card,
.sample-photo {
  min-height: 112px;
  border-radius: 8px;
  border: 1px solid rgba(29, 37, 34, 0.14);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.photo-card::after,
.sample-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.42), transparent 22%);
}

.sample-photo {
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.sample-photo span {
  position: relative;
  z-index: 1;
  padding: 5px 7px;
  background: rgba(29, 37, 34, 0.72);
  border-radius: 6px;
}

.sample-photo.bracelet-main {
  grid-row: span 2;
  min-height: 234px;
  background:
    radial-gradient(ellipse at 48% 48%, transparent 0 38px, #c59135 39px 54px, transparent 55px),
    radial-gradient(circle at 54% 44%, #f7e7bd 0 10px, transparent 11px),
    radial-gradient(circle at 35% 62%, #d8b065 0 7px, transparent 8px),
    linear-gradient(145deg, #24352f, #b7c8bc);
}

.sample-photo.bracelet-mark {
  background:
    linear-gradient(90deg, transparent 0 38%, #d7b66d 39% 62%, transparent 63%),
    radial-gradient(circle at 50% 52%, #26352f 0 8px, transparent 9px),
    linear-gradient(145deg, #f4ecd9, #b78f42);
}

.sample-photo.bracelet-detail {
  background:
    radial-gradient(circle at 38% 48%, #f6eac8 0 13px, transparent 14px),
    radial-gradient(circle at 63% 52%, #e4c06e 0 11px, transparent 12px),
    linear-gradient(145deg, #2f6b4f, #c7d8cd);
}

.photo-card.ring {
  grid-row: span 2;
  background:
    radial-gradient(circle at 47% 42%, transparent 0 18px, #d5a34c 19px 26px, transparent 27px),
    radial-gradient(circle at 53% 52%, #efe3c1 0 9px, transparent 10px),
    linear-gradient(145deg, #3f4b45, #aeb9b1);
}

.photo-card.guitar {
  background:
    radial-gradient(ellipse at 42% 58%, #9c463e 0 24%, transparent 25%),
    linear-gradient(100deg, transparent 0 45%, #d9b775 46% 52%, transparent 53%),
    linear-gradient(145deg, #24352f, #7ea18c);
}

.photo-card.watch {
  background:
    radial-gradient(circle at 51% 48%, #f6f0df 0 21%, #1e2824 22% 28%, transparent 29%),
    linear-gradient(90deg, transparent 0 38%, #916f3c 39% 61%, transparent 62%),
    linear-gradient(145deg, #2d526c, #b9cfe0);
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.value-callout {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(197, 145, 53, 0.24), transparent 46%),
    var(--leaf);
  border-radius: 8px;
}

.value-callout span {
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0.86;
}

.value-callout strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.listing-preview {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: var(--leaf-dark);
  background: #edf4ed;
  border: 1px solid #d2dfd4;
  border-radius: 8px;
  font-weight: 800;
}

.band {
  background: #f1f5ed;
}

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

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

.steps article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-value {
  padding: clamp(38px, 7vw, 84px) clamp(18px, 4vw, 56px);
  background: #fff;
}

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

.value-grid article {
  padding: 22px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.steps p,
.value-grid p,
.form-intro p,
.field-help,
.site-footer p,
.thank-you p {
  color: var(--muted);
}

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

.example-grid span {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 96px;
}

.form-notes {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.form-notes li {
  padding: 12px 14px;
  color: var(--leaf-dark);
  background: #edf4ed;
  border: 1px solid #d2dfd4;
  border-radius: 8px;
  font-weight: 800;
}

.limited-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff8e7;
  border: 1px solid #ead49f;
  border-radius: 8px;
  font-weight: 800;
}

.submission-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(30, 38, 34, 0.08);
}

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #cbd5cc;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 107, 79, 0.2);
  border-color: var(--leaf);
}

.field-help {
  margin-bottom: 0;
}

.photo-fields {
  display: grid;
  gap: 12px;
}

.photo-field {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(47, 107, 79, 0.08), rgba(197, 145, 53, 0.08)),
    #fbfcfa;
  border: 1px dashed var(--leaf);
  border-radius: 8px;
}

.photo-field input {
  background: #fff;
  cursor: pointer;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
}

.consent input {
  min-height: auto;
  margin-top: 4px;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.hidden {
  display: none;
}

.site-footer {
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.privacy-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: start;
  padding: clamp(38px, 7vw, 84px) clamp(18px, 4vw, 56px);
  background: #f1f5ed;
}

.privacy-note h2 {
  margin-bottom: 0;
}

.privacy-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thank-you {
  width: min(760px, calc(100vw - 32px));
  padding: clamp(24px, 6vw, 54px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thank-you .brand {
  margin-bottom: 38px;
}

.thank-you h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.builder-page {
  padding: clamp(30px, 6vw, 70px) clamp(18px, 4vw, 56px);
}

.builder-intro {
  max-width: 860px;
  margin-bottom: 30px;
}

.builder-intro h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.admin-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: clamp(18px, 4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-import h2,
.preview-panel h2 {
  font-size: 1.35rem;
}

.admin-import p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-import-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-import > label,
.admin-import .field-help {
  grid-column: 1 / -1;
}

.builder-form,
.builder-output {
  display: grid;
  gap: 18px;
}

.builder-form,
.preview-panel {
  padding: clamp(18px, 4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.builder-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.builder-photos p {
  color: var(--muted);
}

.builder-photo {
  display: grid;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.builder-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f1f5ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#ai-prompt {
  min-height: 360px;
}

@media (max-width: 900px) {
  .intro-section,
  .form-section,
  .privacy-note,
  .builder-layout,
  .admin-import,
  .admin-import-controls {
    grid-template-columns: 1fr;
  }

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

  .sample-report,
  .form-intro {
    position: static;
  }

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

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
    line-height: 1;
  }

  .field-grid,
  .steps,
  .value-grid,
  .example-grid,
  dl div {
    grid-template-columns: 1fr;
  }

  .intro-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .intro-section,
  .band,
  .report-value,
  .examples,
  .form-section,
  .privacy-note {
    padding: 34px 16px;
  }

  .sample-report,
  .submission-form {
    box-shadow: none;
  }

  .photo-stack {
    grid-template-columns: 1fr;
  }

  .photo-card.ring,
  .sample-photo.bracelet-main {
    grid-row: auto;
    min-height: 180px;
  }

  .submission-form {
    padding: 18px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
    font-size: 16px;
  }

  .photo-field {
    padding: 16px;
  }

  .submit-button {
    min-height: 56px;
  }
}
