:root {
  --paper: #f3efe4;
  --card: #fffdf8;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #e2dac8;
  --sea: #0e4d57;
  --sea-dark: #0a3941;
  --good: #1d6b45;
  --good-bg: #e5f4eb;
  --bad: #8d3428;
  --bad-bg: #fdecea;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 50% -10%, #fffaf0 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.45;
}

button, input { font: inherit; }

.phone {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.7rem; }

.lede, .hint, .prompt {
  color: var(--muted);
}

.lede { margin: 12px 0 0; font-size: 1.05rem; }

.card {
  margin-top: 22px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.steps {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e4dccb;
}

.steps li.done { background: var(--good); }
.steps li.now { background: var(--sea); }

.where {
  margin: 8px 0 0;
  font-size: 1.02rem;
}

#reader, #reader-file {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  min-height: 240px;
}

#reader-file { display: none; }

.banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.good { background: var(--good-bg); color: var(--good); }

.primary, .choice {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
}

.primary {
  background: var(--sea);
  color: white;
  font-weight: 700;
  text-align: center;
}

.primary:hover { background: var(--sea-dark); }

.choice {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.choice:hover { border-color: var(--sea); }

.file-row {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.file-row input { margin-top: 6px; }

.foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot a { color: var(--sea); }

.log {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.log li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.label-page {
  width: min(880px, 100%);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 800px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.label {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px dashed #b7ad98;
  border-radius: 16px;
}

.label img {
  width: 180px;
  height: 180px;
  background: white;
}

.label h2 { font-size: 1.25rem; }
.label p { margin: 8px 0 0; }

.decoy {
  background: #f7f1e4;
}
