:root {
  color-scheme: light;
  --color-primary: #5f7440;
  --color-primary-dark: #3f4f2c;
  --color-primary-soft: #eef3e7;
  --color-accent: #f28b72;
  --color-accent-dark: #d96f58;
  --color-accent-soft: #fff0ea;
  --color-background: #fff8ed;
  --color-surface: #ffffff;
  --color-surface-warm: #fffcf7;
  --color-surface-muted: #f7f0e5;
  --color-text-primary: #1f261b;
  --color-text-secondary: #65705c;
  --color-text-muted: #8f9788;
  --color-border: #e3d9c8;
  --color-border-strong: #c7b99f;
  --color-success: #5f7440;
  --color-success-soft: #eef3e7;
  --color-warning: #e6a33a;
  --color-warning-soft: #fff4d8;
  --color-error: #d85c4a;
  --color-error-soft: #fff0ed;
  --shadow: 0 24px 64px rgba(63, 79, 44, 0.14);
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text-primary);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 248, 237, 0.84)),
    var(--color-background);
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 32px 0;
}

.hero,
.learning-card {
  min-width: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-mark {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-warm);
}

.brand-name {
  color: var(--color-accent);
  font-size: 1.18rem;
  font-weight: 850;
}

.brand-name span {
  color: var(--color-primary);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.message {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 800;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  color: var(--color-primary-dark);
  font-size: 5.25rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--color-primary-dark);
  font-size: 1.75rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.supporting-copy {
  max-width: 37rem;
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.topic-strip {
  max-width: 40rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.topic-strip span {
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface-warm);
  color: var(--color-primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.learning-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: var(--shadow);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}

.step.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.step.is-done {
  border-color: rgba(242, 139, 114, 0.42);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.request-form {
  display: grid;
  gap: 16px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-primary);
  font-weight: 850;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 14px 15px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  line-height: 1.45;
  outline: none;
}

textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--color-border);
}

.drop-zone {
  min-height: 176px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 24px;
  border: 2px dashed var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-surface-muted);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
}

.drop-title {
  color: var(--color-primary-dark);
  font-weight: 850;
  font-size: 1.15rem;
}

.drop-detail,
.form-message,
.slot span,
.muted-copy,
.paywall-copy,
.safety-note,
.paywall-list {
  color: var(--color-text-secondary);
}

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

.slot {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 850;
}

.slot.has-photo {
  position: relative;
  background: var(--color-text-primary);
}

.slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 139, 114, 0.32);
  border-radius: 8px;
  background: var(--color-accent-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.form-message {
  min-height: 1.45em;
  margin: 0;
  font-size: 0.95rem;
}

.form-message[data-tone="success"] {
  color: var(--color-success);
}

.form-message[data-tone="warning"] {
  color: #8a5d05;
}

.form-message[data-tone="error"] {
  color: var(--color-error);
}

.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.primary-button {
  border: 0;
  background: var(--color-primary);
  color: #fff;
}

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

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.secondary-button {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-primary);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.confirmation-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(95, 116, 64, 0.22);
  border-radius: 8px;
  background: var(--color-primary-soft);
}

.confirmation-panel[hidden] {
  display: none;
}

.confirmation-panel .muted-copy {
  margin-bottom: 0;
  line-height: 1.5;
}

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

.paywall-dialog {
  width: min(450px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.paywall-dialog::backdrop {
  background: rgba(31, 38, 27, 0.58);
  backdrop-filter: blur(4px);
}

.paywall-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
}

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

.paywall-copy {
  margin-bottom: 0;
  line-height: 1.55;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-muted);
}

.plan-row strong {
  color: var(--color-primary);
}

.paywall-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .app-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px 0;
  }

  .brand-row {
    margin-bottom: 28px;
  }

  h1 {
    max-width: 13ch;
    font-size: 4.25rem;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 24px, 1120px);
    gap: 24px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .learning-card {
    padding: 14px;
  }

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

  .drop-zone {
    min-height: 162px;
    padding: 20px 14px;
  }

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

  .slot {
    aspect-ratio: 16 / 9;
  }

  .confirmation-actions,
  .plan-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
