:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --ink: #172321;
  --muted: #60706d;
  --line: #d9d3c8;
  --panel: #fffdf8;
  --brand: #235f61;
  --brand-strong: #174547;
  --accent: #d97941;
  --shadow: 0 18px 42px rgba(28, 41, 38, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 35, 33, 0.58), rgba(23, 35, 33, 0.48)),
    url("https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1800&q=80") center / cover fixed;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.hero {
  min-height: 38vh;
  display: flex;
  align-items: end;
  padding: 32px 0 26px;
  color: white;
}

.hero__content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffcf9f;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(3.2rem, 13vw, 7rem);
  line-height: 0.92;
}

.intro {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.5;
}

.tool,
.preview-section {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

label {
  color: var(--brand-strong);
  font-weight: 700;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
}

.capture-zone {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #9baaa6;
  border-radius: 8px;
  background: #f8f6f0;
}

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

.capture-button {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  text-align: center;
}

.capture-button__icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
}

.hint,
.status {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

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

.primary {
  background: var(--accent);
  color: white;
}

.secondary {
  background: #e8e1d5;
  color: var(--ink);
}

.preview-section {
  margin-top: 18px;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

h2 {
  margin-bottom: 0;
  color: var(--brand-strong);
  font-size: 1.25rem;
}

.count {
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  background: #ece8df;
}

.photo-card__bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
}

.photo-card__bar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-card__bar button {
  min-height: 34px;
  padding: 7px 10px;
  background: #f3d9cc;
  color: #76361d;
  font-size: 0.86rem;
}

@media (min-width: 760px) {
  .tool {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .capture-zone,
  .actions,
  .status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 14px;
  }

  .hero {
    min-height: 34vh;
    padding-top: 20px;
  }

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