:root {
  --bg: #f7f0e8;
  --surface: rgba(255, 250, 243, 0.84);
  --surface-strong: #fff8f0;
  --surface-dark: #1f1712;
  --text: #1d1b19;
  --muted: #6b6259;
  --line: rgba(29, 27, 25, 0.09);
  --accent: #f05a28;
  --accent-dark: #bc3f17;
  --accent-soft: #ffd8ca;
  --success: #1d7f5f;
  --shadow: 0 28px 80px rgba(88, 53, 33, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(255, 202, 173, 0.9), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(255, 232, 168, 0.75), transparent 22%),
    linear-gradient(145deg, #f7f0e8 0%, #f5ece1 56%, #efe4d6 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 12vh;
  left: -5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(240, 90, 40, 0.12);
}

body::after {
  right: 4vw;
  bottom: 8vh;
  width: 14rem;
  height: 14rem;
  background: rgba(255, 216, 202, 0.55);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(126px, 22vw, 160px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(240, 90, 40, 0.14));
}

.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 64px);
}

.action-stack {
  display: grid;
  gap: 22px;
}

.hero-single .action-stack {
  display: block;
}

.hero-copy,
.signup-card,
.order-card,
.confirmation-card,
.admin-card,
.stats-card,
.empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 32px;
  border-radius: var(--radius-xl);
  animation: rise 0.7s ease both;
}

.eyebrow,
.card-kicker,
.message-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.card-kicker::before,
.message-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
}

.hero-text,
.confirmation-card p,
.admin-header p,
.empty-state p,
.tiny-note {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.example-panel {
  display: grid;
  gap: 14px;
  max-width: 48rem;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(240, 90, 40, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(255, 241, 232, 0.88));
}

.example-title {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-list {
  display: grid;
  gap: 12px;
}

.example-item {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 27, 25, 0.08);
  color: #5c4034;
  line-height: 1.55;
}

.example-item a,
.example-item a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none !important;
}

.signup-card,
.order-card,
.confirmation-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  animation: rise 0.9s ease both;
}

.order-card--wide {
  position: relative;
}

.card-head {
  margin-bottom: 18px;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.profile-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(29, 27, 25, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.profile-summary-copy {
  display: grid;
  gap: 10px;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(240, 90, 40, 0.1);
  color: var(--text);
  font-weight: 600;
}

.prompt-lock {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px dashed rgba(240, 90, 40, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 240, 0.88);
}

.prompt-lock-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.prompt-lock-text,
.gate-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.prompt-form {
  display: grid;
  gap: 14px;
}

.order-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.order-fieldset:disabled {
  opacity: 0.5;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(29, 27, 25, 0.1);
  border-radius: var(--radius-lg);
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 1.03rem;
  line-height: 1.55;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

input {
  min-height: 58px;
  padding: 0 18px;
}

textarea {
  resize: vertical;
  min-height: 210px;
  padding: 20px;
}

input:focus,
textarea:focus {
  border-color: rgba(240, 90, 40, 0.48);
  box-shadow: 0 0 0 5px rgba(240, 90, 40, 0.12);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: #8e8277;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.input-grid {
  display: grid;
  gap: 12px;
}

button,
.ghost-link,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button {
  background: linear-gradient(135deg, var(--accent) 0%, #ff7f50 100%);
  color: #fffaf6;
  box-shadow: 0 18px 36px rgba(240, 90, 40, 0.26);
}

button:hover,
button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid rgba(29, 27, 25, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.ghost-link {
  border: 1px solid rgba(29, 27, 25, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.form-error {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 235, 228, 0.95);
  color: #8f3417;
  font-weight: 600;
}

.form-success {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(226, 247, 238, 0.95);
  color: var(--success);
  font-weight: 600;
}

.tiny-note {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.profile-gate[hidden] {
  display: none;
}

.profile-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.profile-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 10, 0.56);
  backdrop-filter: blur(10px);
}

.profile-gate-panel {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(255, 248, 240, 0.96);
  box-shadow: 0 30px 80px rgba(26, 15, 9, 0.3);
}

.confirmation-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.confirmation-card {
  width: min(680px, 100%);
}

.admin-shell {
  padding-top: 44px;
  padding-bottom: 44px;
}

.admin-header {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats-card {
  width: fit-content;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}

.stats-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.stats-card span {
  display: inline-flex;
  margin-top: 6px;
  color: var(--muted);
}

.orders-grid {
  display: grid;
  gap: 18px;
}

.section-block {
  display: grid;
  gap: 16px;
}

.section-block + .section-block {
  margin-top: 26px;
}

.section-head {
  display: grid;
  gap: 4px;
}

.section-title {
  max-width: none;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.admin-card,
.empty-state {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.admin-card-head {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.order-id {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.prompt-preview {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 27, 25, 0.09);
  background: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-list div {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(29, 27, 25, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
  }

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

  .admin-header {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (max-width: 899px) {
  .page-shell {
    width: min(100% - 1.2rem, 100%);
    padding: 18px 0 36px;
  }

  .site-header {
    margin-bottom: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .signup-card,
  .order-card,
  .confirmation-card,
  .admin-card,
  .stats-card,
  .empty-state,
  .profile-gate-panel {
    padding: 22px;
  }

  .example-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .example-item {
    padding: 12px 14px;
    border-radius: 16px;
  }
}
