:root {
  color-scheme: light;
  --paper: #fffaf0;
  --ink: #2b2118;
  --muted: #76685c;
  --line: #e7d8c4;
  --accent: #a64129;
  --accent-dark: #78301f;
  --success: #26734d;
  --danger: #a12626;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(190, 105, 63, .2), transparent 34rem),
    linear-gradient(145deg, #efe1c9, #f8f0e2 55%, #ead8bd);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

.shell { width: min(880px, calc(100% - 28px)); margin: 0 auto; padding: 42px 0 64px; }
.card {
  background: rgba(255, 250, 240, .94);
  border: 1px solid rgba(154, 116, 77, .22);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(83, 54, 29, .12);
  padding: clamp(24px, 6vw, 46px);
}
.card + .card { margin-top: 18px; }
.hero { position: relative; overflow: hidden; text-align: center; }
.hero::before {
  position: absolute;
  width: 280px;
  height: 280px;
  top: -180px;
  right: -100px;
  border-radius: 50%;
  background: rgba(166, 65, 41, .08);
  content: "";
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  padding: 7px 11px;
  color: var(--success);
  border: 1px solid rgba(38, 115, 77, .2);
  border-radius: 999px;
  background: rgba(38, 115, 77, .07);
  font-size: 12px;
  font-weight: 700;
}
.service-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(38, 115, 77, .12); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 10px 0 14px; font-size: clamp(34px, 8vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 8px 0 14px; font-size: clamp(24px, 5vw, 32px); }
h3 { margin: 10px 0 8px; font-size: 18px; }
.lead { margin: 0 auto 30px; max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.75; }
button, .secondary {
  appearance: none;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}
.primary { width: min(100%, 480px); padding: 17px 20px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 26px rgba(120, 48, 31, .2); }
.primary:active { transform: translateY(1px); box-shadow: 0 7px 18px rgba(120, 48, 31, .18); }
.primary:disabled { cursor: wait; opacity: .6; }
.secondary { display: inline-block; padding: 11px 15px; color: var(--accent-dark); background: #f0dfcb; }
.result-reset { margin-top: 10px; }
.danger { padding: 10px 14px; color: white; background: var(--danger); }
.button-tip { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.pending-icon { width: 54px; height: 54px; margin: 4px auto 12px; color: white; border-radius: 16px; background: var(--accent); font-size: 26px; font-weight: 800; line-height: 54px; }
.status { max-width: 540px; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.pending-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.success-mark { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 50%; color: white; background: var(--success); font-size: 36px; line-height: 58px; }
.udid-box { margin: 20px auto; max-width: 590px; padding: 16px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 14px; background: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-top: 30px; padding-top: 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.section-heading { margin-bottom: 26px; text-align: center; }
.section-heading p { margin: 0; color: var(--muted); }
.step-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.step-card, .feature-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .64); }
.step-card b { display: inline-block; color: var(--accent); font-size: 13px; letter-spacing: .08em; }
.step-card p, .feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; color: white; border-radius: 13px; background: linear-gradient(145deg, var(--accent), var(--accent-dark)); font-size: 13px; font-weight: 850; }
.muted, .note p { color: var(--muted); line-height: 1.65; }
.note { border-left: 4px solid var(--accent); }
.note h2 { font-size: 22px; }
.note p { margin: 8px 0; }
.error { margin-top: 18px; padding: 12px; color: #7d1717; background: #f8dddd; border-radius: 12px; }
.hidden { display: none !important; }
.admin-shell { width: min(980px, calc(100% - 28px)); }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-heading h1 { font-size: clamp(28px, 5vw, 40px); }
.records { display: grid; gap: 12px; margin-top: 24px; }
.record { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.record-udid { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.record-time { color: var(--muted); font-size: 13px; }
.record-actions { display: flex; gap: 8px; }
.record-actions button { padding: 9px 11px; color: var(--accent-dark); background: #f0dfcb; }
.record-actions .delete { color: #861d1d; background: #f5dddd; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
@media (max-width: 680px) {
  .shell { padding-top: 18px; }
  .card { padding: 24px 20px; border-radius: 18px; }
  .step-grid, .feature-grid { grid-template-columns: 1fr; }
  .pending-actions { flex-direction: column; }
  .trust-row { align-items: flex-start; flex-direction: column; text-align: left; }
  .record { grid-template-columns: 1fr; }
  .record-actions { justify-content: flex-start; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
}
