:root {
  --ink: #1E1B2E;
  --paper: #FAF7F2;
  --card: #FFFCF7;
  --line: #E4DCCF;
  --muted: #5B5668;
  --accent: #8E4F2E;
  --accent-soft: #F3E3D6;
  --glow: #E3A37C;
  --danger: #9B1C1C;
  --danger-soft: #FBE9E7;
  --warn: #8A5A00;
  --warn-soft: #FFF3D6;
  --ok: #1F6B4A;
  --ok-soft: #E4F3EA;
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}
.prototype {
  background: var(--ink);
  color: #F3EEF8;
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
}
.top {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 28px/1 var(--serif);
}
.partner { font-size: 14px; color: var(--muted); }
main { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
.screen { display: flex; flex-direction: column; gap: 18px; animation: in 300ms ease-out; }
.screen[hidden] { display: none; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }
h1 { font-size: 44px; }
h2 { font-size: 36px; }
h3 { font-size: 18px; margin: 0 0 6px; }
h3.section { margin-top: 10px; font-size: 20px; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 19px; color: #3A3548; }
.muted { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 999px;
  font: 700 17px/1.2 var(--sans);
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-align: center;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.btn.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.btn.file { position: relative; }
.promises { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.promises li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; }
.card.cta { background: var(--accent-soft); border-color: #E8CDB8; margin-top: 8px; }
.card.install { background: #F1ECE4; }
.card.install[hidden] { display: none; }
.prototype { padding-top: calc(6px + env(safe-area-inset-top)); }
body { padding-bottom: env(safe-area-inset-bottom); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.error { color: var(--danger); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: 500 16px var(--sans);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tips { margin: 0; padding-left: 20px; color: #3A3548; }
.frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #EFE8DD;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.oval {
  position: absolute;
  width: 62%;
  height: 70%;
  border: 3px dashed rgba(30, 27, 46, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.frame-hint { color: var(--muted); position: relative; }
.quality { padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.quality.good { background: var(--ok-soft); color: var(--ok); }
.quality.warn { background: var(--warn-soft); color: var(--warn); }
.loader {
  width: 72px; height: 72px; margin: 60px auto 8px;
  border-radius: 50%;
  border: 6px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge { align-self: flex-start; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.alert { border-radius: var(--radius); padding: 16px; background: var(--warn-soft); color: #5A3B00; }
.alert.danger { background: var(--danger-soft); color: var(--danger); border: 1.5px solid #F0B8B0; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.obs { display: grid; gap: 10px; }
.ob { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.ob-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.level { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #EDE7DD; color: var(--muted); white-space: nowrap; }
.level.moderate { background: var(--accent-soft); color: var(--accent); }
.level.marked { background: #EBD2C2; color: #6E3517; }
.opt { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; margin-bottom: 10px; }
.opt .ask { font-size: 15px; color: var(--muted); }
.avoid { margin: 0; padding-left: 20px; }
.days, .times { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.times { flex-wrap: wrap; overflow: visible; }
.day, .time {
  flex: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px 14px;
  font: 500 15px var(--sans);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.day b { display: block; font-size: 20px; }
.day[aria-pressed="true"], .time[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form { display: grid; gap: 14px; }
.form label:not(.check) { display: grid; gap: 6px; font-weight: 500; }
input:not([type="checkbox"]):not([type="file"]), select {
  font: 17px var(--sans);
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px; margin: 0; background: var(--card); }
legend { font-weight: 700; padding: 0 6px; }
.tick { width: 80px; height: 80px; margin: 40px auto 0; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 40px; font-weight: 700; }
.triage h2 { margin-bottom: 8px; }
.triage { display: grid; gap: 12px; }
.callout { display: flex; flex-direction: column; gap: 10px; }
.foot { max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
@media (min-width: 700px) {
  h1 { font-size: 56px; }
}
