/* Urrgh kit app — brand: green #BFD730, yellow #F4E30F, pink #F48FCC, ink #231F20, Poppins */
:root {
  --green: #BFD730;
  --green-pale: #F1F7CF;
  --green-chip: #EEF5C8;
  --green-dark: #8FA322;
  --yellow: #F4E30F;
  --yellow-pale: #FDF6B5;
  --pink: #F48FCC;
  --pink-pale: #FDE6F3;
  --red: #C41E1E;
  --red-pale: #FCE4E4;
  --ink: #231F20;
  --ink-soft: #4A4546;
  --line: #D5D2C8;
  --line-soft: #E4E2DA;
  --paper: #FFFFFF;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--green); }
body {
  font-family: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
/* Phone-width column; centred card on bigger screens */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--paper); display: flex; flex-direction: column; }
@media (min-width: 520px) { .app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.06); } }

a { color: var(--ink); }
h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
h2 { margin: 0; font-size: 19px; font-weight: 800; }
p { margin: 0; font-size: 15px; line-height: 1.5; }
.small { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }

/* Header */
.top { background: var(--green); padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.top-row { display: flex; justify-content: space-between; align-items: center; }
.top-row img { height: 30px; width: auto; display: block; }
.chip { font-size: 13px; font-weight: 600; background: var(--green-chip); padding: 6px 12px; border-radius: 999px; }
.parts { display: flex; gap: 8px; }
.part { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 2px solid var(--green-dark); }
.part.done { background: var(--paper); border-color: var(--paper); }
.part.now { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }

.main { flex: 1; padding: 20px 20px 0; display: flex; flex-direction: column; gap: 20px; }
.foot { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 6px; }

/* Buttons */
.btn { appearance: none; border: none; height: 56px; border-radius: 16px; background: var(--ink); color: var(--paper); font: 700 17px/1 Poppins, system-ui, sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.outline { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.btn.slim { height: 48px; font-size: 15px; }
.link { appearance: none; background: none; border: none; height: 44px; font: 600 14px Poppins, system-ui, sans-serif; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; width: 100%; }
.row { display: flex; gap: 12px; }
.row .btn.outline { width: auto; padding: 0 18px; }

/* Welcome */
.hero { position: relative; background: var(--green); height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.hero img { width: 170px; height: auto; position: relative; }
.hero span { position: relative; font-size: 22px; font-weight: 800; }
.hero .dots { position: absolute; inset: 0; }
.sheet { flex: 1; background: var(--paper); border-radius: 28px 28px 0 0; margin-top: -24px; position: relative; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.three { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.three li { display: flex; gap: 14px; align-items: center; }
.tile { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.tile.yellow { background: var(--yellow); } .tile.green { background: var(--green); } .tile.pink { background: var(--pink); }
.three strong { font-size: 16px; display: block; }
.three span { font-size: 14px; line-height: 1.4; }
.privacy { display: flex; gap: 8px; align-items: flex-start; }

/* Camera */
.cam { position: relative; width: 100%; aspect-ratio: 7 / 8; border-radius: 24px; overflow: hidden; background: #141213; }
.cam video, .cam img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam img.overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; pointer-events: none; }
.cam .corners { position: absolute; inset: 0; pointer-events: none; }
.cam .tip { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; line-height: 1.4; padding: 8px 12px; border-radius: 14px; }
.cam .badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.cam .nocam { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--paper); text-align: center; padding: 24px; font-size: 15px; }
.shutter { width: 76px; height: 76px; border-radius: 999px; border: 4px solid var(--ink); background: var(--paper); padding: 5px; cursor: pointer; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--yellow); }
.shutter.pink span { background: var(--pink); }
.center { display: flex; justify-content: center; align-items: center; }
.switch { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 4px; background: none; border: none; font: 600 15px Poppins, system-ui, sans-serif; color: var(--ink); cursor: pointer; width: 100%; }
.switch .track { width: 52px; height: 30px; border-radius: 999px; background: #C9C6BC; display: flex; align-items: center; padding: 3px; }
.switch .knob { width: 24px; height: 24px; border-radius: 999px; background: var(--paper); border: 1px solid var(--ink); }
.switch[aria-checked="true"] .track { background: var(--ink); justify-content: flex-end; }
.busy { font-size: 14px; font-weight: 600; text-align: center; }

/* Form bits */
fieldset { margin: 0; padding: 0; border: none; }
legend, .label { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 700; display: block; }
.opt { font-weight: 500; color: var(--ink-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { appearance: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 500 15px Poppins, system-ui, sans-serif; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--green); font-weight: 700; }
.choices.pink .choice[aria-pressed="true"] { background: var(--pink); }
input[type=text], input[type=email], textarea { width: 100%; border-radius: 14px; border: 2px solid var(--line); padding: 0 14px; height: 50px; font: 16px Poppins, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
textarea { height: auto; padding: 12px 14px; resize: none; }
input:focus, textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; }
.err { color: var(--red); font-size: 14px; font-weight: 600; }

/* Clean */
.needs { display: flex; flex-wrap: wrap; gap: 8px; }
.needs span { font-size: 13px; font-weight: 600; background: var(--pink); padding: 6px 12px; border-radius: 999px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; border: 1.5px solid var(--line-soft); }
.step .pic { width: 76px; height: 76px; border-radius: 14px; background: var(--green-pale); flex: none; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.step .num { width: 24px; height: 24px; border-radius: 999px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step p { font-size: 14px; line-height: 1.45; }
.step .warn { color: #8E1A1A; font-weight: 600; font-size: 13px; margin-top: 4px; }
.timer { margin-top: 8px; height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); font: 700 14px Poppins, system-ui, sans-serif; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.timer.running { background: var(--green-pale); } .timer.done { background: var(--yellow); }

/* Result */
.pair { display: flex; gap: 10px; }
.pair figure { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pair img, .pair .empty { width: 100%; aspect-ratio: 7/5; object-fit: cover; border-radius: 14px; background: #E6E0D0; display: block; }
.pair figcaption { font-size: 13px; font-weight: 600; }

/* Boxes */
.box { border-radius: 14px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.box.pink { background: var(--pink-pale); }
.box.green { background: var(--green-pale); }
.box.red { background: var(--red-pale); }

/* Tips */
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tips li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.tips .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; flex: none; }

.home { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 32px 20px; }
.loading { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Day 30 */
.photo-card { appearance: none; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 2px solid var(--ink); background: var(--paper); text-align: left; font: 15px Poppins, system-ui, sans-serif; color: var(--ink); cursor: pointer; width: 100%; }
.photo-card strong { display: block; font-size: 16px; }
.photo-card span span { font-size: 14px; line-height: 1.4; }
.nextsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nextsteps li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.nextsteps .n { width: 26px; height: 26px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 800; }
.rights { background: var(--pink-pale); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rights p { font-size: 14px; }
.tabs { display: flex; gap: 6px; background: var(--paper); border-radius: 999px; padding: 4px; }
.tabs button { flex: 1; height: 40px; border-radius: 999px; border: none; background: var(--paper); color: var(--ink); font: 700 14px Poppins, system-ui, sans-serif; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* Record */
.shots { display: flex; flex-direction: column; gap: 14px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.shots img { width: 100%; border-radius: 14px; display: block; }
.shots figcaption { font-size: 14px; }
.answers { width: 100%; border-collapse: collapse; font-size: 14px; }
.answers th { text-align: left; font-weight: 600; padding: 8px 10px 8px 0; border-top: 1px solid var(--line-soft); vertical-align: top; width: 55%; }
.answers td { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.printhead { display: none; }

/* My rooms */
.rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rooms a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); text-decoration: none; }
.rooms strong { font-size: 16px; }
.rooms span { font-size: 13px; color: var(--ink-soft); }

@media print {
  html, body { background: #fff; }
  .app { max-width: none; margin: 0; box-shadow: none; border-radius: 0; }
  .noprint, .foot { display: none !important; }
  .printhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
  .record { padding: 0; }
  .shots { flex-direction: row; flex-wrap: wrap; }
  .shots figure { width: 48%; break-inside: avoid; }
  .answers { break-inside: avoid; }
}

a.link { display: flex; align-items: center; justify-content: center; }
a.link[hidden] { display: none; }

[hidden] { display: none !important; }
