@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=DM+Mono:wght@500&family=Work+Sans:wght@400;500;700&family=Young+Serif&display=swap");

/* Deixe Seu Recado — direção B2: mural de recados sobre papel pontilhado */
:root {
  --paper: #e9dfc7;
  --card: #fbf6ea;
  --ink: #1d1a16;
  --muted: #5a5044;
  --line: #bfae8b;
  --rec: #a8321a;
  --yellow: #ffd84d; --pink: #ffb8c8; --green: #bfe8c8; --blue: #bfdcf5; --orange: #ffc58a; --lilac: #d9c8f5;
  --tape: rgba(255,216,77,.8);
  --shadow: 0 12px 22px rgba(29,26,22,.2);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: var(--paper) radial-gradient(rgba(29,26,22,.14) 1px, transparent 1.2px) 0 0 / 6px 6px;
  font-family: "Work Sans", system-ui, sans-serif; line-height: 1.55; min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--rec); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); width: 100%; }
.wrap.wide { max-width: 1120px; }

header.top { padding: 22px 0 6px; }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-family: "Young Serif", Georgia, serif; font-size: 20px; color: #f3ead7; background: var(--ink); padding: 7px 14px; text-decoration: none; display: inline-flex; transform: rotate(-1.2deg); }
.dot { display: none; }
nav { display: flex; gap: 10px; align-items: center; }
nav a { color: var(--ink); background: var(--card); border: 2px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { background: var(--yellow); }

h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.05; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(44px, 9vw, 72px); }
h2 { font-size: clamp(28px, 5vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2.6vw, 20px); color: #3b342b; max-width: 36em; }
.tag { font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rec); margin-bottom: 12px; display: block; }
.hint, label small { color: var(--muted); font-size: 13px; font-weight: 400; }
.hero { padding: 40px 0 24px; }
section { padding: 28px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--ink); cursor: pointer; font: inherit; font-weight: 700; padding: 13px 22px; border-radius: var(--radius); text-decoration: none; background: var(--ink); color: #f3ead7; font-size: 16px; min-height: 44px; }
.btn:hover { background: #3a332b; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--card); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.card { background: var(--card); border: 0; border-radius: 2px; padding: 22px; box-shadow: var(--shadow); position: relative; }
.tape { position: absolute; top: -13px; left: 50%; margin-left: -50px; width: 100px; height: 26px; background: var(--tape); transform: rotate(-3deg); }

/* home */
.board { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; padding: 30px 0 8px; }
.hero-card { background: var(--card); padding: 34px 34px 38px; box-shadow: var(--shadow); transform: rotate(-.8deg); position: relative; }
.hero-card h1 { margin-bottom: 14px; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding-top: 10px; }
.sticky { padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; min-height: 150px; }
.sticky p { font-family: "Caveat", cursive; font-size: 26px; line-height: 1.1; margin: 0 0 8px; }
.sticky small { font-size: 12px; font-weight: 500; }
.sticky:nth-child(1) { transform: rotate(3deg); } .sticky:nth-child(2) { transform: rotate(-3deg); }
.sticky:nth-child(3) { transform: rotate(-2deg); } .sticky:nth-child(4) { transform: rotate(2.5deg); }
.sticky:nth-child(5) { transform: rotate(2deg); } .sticky:nth-child(6) { transform: rotate(-2deg); }
.s-y { background: var(--yellow); } .s-p { background: var(--pink); } .s-g { background: var(--green); }
.s-b { background: var(--blue); } .s-o { background: var(--orange); } .s-l { background: var(--lilac); }
.pin { position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #2a5fd1; box-shadow: 0 3px 5px rgba(0,0,0,.4); }
.pin.r { background: #d63a1c; }
.mini-tape { position: absolute; top: -12px; left: 30%; width: 80px; height: 24px; background: rgba(255,184,200,.85); transform: rotate(4deg); }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 8px 0 0; margin: 0; list-style: none; }
.steps li { padding: 20px; box-shadow: var(--shadow); }
.steps li:nth-child(1) { background: var(--yellow); transform: rotate(-1.2deg); }
.steps li:nth-child(2) { background: var(--pink); transform: rotate(1deg); }
.steps li:nth-child(3) { background: var(--green); transform: rotate(-.6deg); }
.steps h3 { font-size: 24px; margin-bottom: 6px; }
.steps p { margin: 0; }
.notice { background: var(--yellow); padding: 16px 18px; font-size: 15px; box-shadow: 0 8px 16px rgba(29,26,22,.18); }
.notice.safe { background: var(--green); }
.stamp { display: inline-block; border: 3px solid var(--rec); color: var(--rec); font-family: "DM Mono", monospace; font-size: 14px; letter-spacing: .1em; padding: 3px 9px; transform: rotate(-4deg); margin-bottom: 12px; }

form { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea, select {
  width: 100%; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; font: inherit; font-weight: 400; min-height: 44px;
}
textarea { min-height: 200px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.consent-box { border: 2px dashed var(--ink); border-radius: 6px; padding: 14px; background: var(--card); }
.counter { text-align: right; font-family: "DM Mono", monospace; font-size: 12px; color: var(--muted); }
.err { color: #8a1f0c; font-weight: 700; font-size: 14px; min-height: 1.2em; }
.ok-box { background: var(--green); padding: 22px; box-shadow: var(--shadow); transform: rotate(-.4deg); }
.linkbox { font-family: "DM Mono", monospace; font-size: 12px; word-break: break-all; background: #fff; border: 2px solid var(--ink); padding: 10px; margin: 10px 0; }

.recorder { text-align: center; padding: 28px 16px; }
.recbtn { width: 108px; height: 108px; border-radius: 50%; border: 3px solid var(--ink); background: #ff6a4a; color: var(--ink); font-size: 38px; cursor: pointer; box-shadow: 4px 5px 0 var(--ink); }
.recbtn.on { animation: pulse 1.2s infinite; background: #ff3b1c; }
@keyframes pulse { 70% { box-shadow: 4px 5px 0 var(--ink), 0 0 0 14px rgba(255,59,28,0); } 100% { box-shadow: 4px 5px 0 var(--ink), 0 0 0 0 rgba(255,59,28,0); } }
@media (prefers-reduced-motion: reduce) { .recbtn.on { animation: none; } }
.timer { font-family: "DM Mono", monospace; font-size: 28px; margin: 16px 0 4px; }
audio { width: 100%; margin-top: 12px; }
.hidden { display: none !important; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer a { color: var(--ink); }

.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose ul { padding-left: 1.2em; }
.ph { background: #ffe9a8; border-radius: 4px; padding: 0 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; background: var(--card); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { font-family: "DM Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.prose .table-wrap, .table-wrap { overflow-x: auto; }
.prose section { background: var(--card); padding: 28px; box-shadow: var(--shadow); margin-top: 24px; }
.draft { background: var(--yellow); padding: 12px 14px; font-size: 14px; margin-bottom: 24px; }

/* admin */
.bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { background: var(--card); border: 2px solid var(--ink); color: var(--ink); border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; min-height: 40px; }
.chip.on { background: var(--yellow); font-weight: 700; }
.msg { margin-bottom: 18px; }
.msg.withdrawn { opacity: .6; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: "DM Mono", monospace; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.badge { border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 7px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--card); }
.badge.new { background: var(--yellow); } .badge.picked { background: var(--green); } .badge.needs_reply { background: var(--pink); }
.body { white-space: pre-wrap; word-wrap: break-word; margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.notes { margin-top: 10px; min-height: 60px; font-size: 14px; }

@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .hero-card { padding: 28px 22px 30px; }
}
@media (max-width: 480px) {
  .wall { grid-template-columns: minmax(0, 1fr); }
  .sticky { min-height: 0; }
}

/* Como funciona (D2) */
.duo{display:grid;grid-template-columns:minmax(0,440px) 1fr;gap:56px;align-items:start}
.duo h2{margin-top:0}
.card.plain{padding:28px 32px;font-size:19px;line-height:1.55}
.card.plain p{margin:0 0 14px}.card.plain p:last-child{margin:0}
.timeline{list-style:none;margin:0;padding:0 0 0 44px;position:relative}
.timeline:before{content:"";position:absolute;left:15px;top:8px;bottom:8px;width:3px;background:var(--ink)}
.timeline li{position:relative;margin-bottom:26px}
.timeline li:last-child{margin-bottom:0}
.timeline li:before{content:"";position:absolute;left:-39px;top:5px;width:16px;height:16px;border-radius:50%;background:#ffd84d;border:3px solid var(--ink)}
.timeline strong{display:block;font-size:22px}
.timeline span{display:block;font-size:18px;margin-top:2px;color:#3b342b}
.chips-h{font-weight:700;margin:0 0 12px}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chips span{border:2px solid var(--ink);border-radius:999px;padding:8px 18px;font-size:16px;background:var(--card)}
@media (max-width:760px){.duo{grid-template-columns:1fr;gap:34px}}
