:root{
  --baby-pink:#f6c1d1;
  --bold-pink:#e6006e;
  --cream:#fff6eb;
  --ink:#2b1b22;

  --card:#ffffffcc;
  --stroke:#2b1b2214;

  --radius:28px;
  --shadow: 0 18px 60px rgba(43,27,34,.12);

  --max: 460px;
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  background: radial-gradient(1200px 700px at 20% 10%, #ffffff 0%, var(--cream) 35%, #ffeef6 100%);
  color:var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow:hidden;
}

.topbar{
  position:fixed;
  inset:0 0 auto 0;
  height:78px;
  padding:14px 14px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(255,246,235,.92), rgba(255,246,235,.68));
  border-bottom:1px solid var(--stroke);
  z-index:20;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:200px;
}

.heart{ font-size:18px; }

.brandText{ line-height:1.05; }

.brandName{
  font-weight:800;
  letter-spacing:.6px;
  font-size:13px;
}

.brandTag{
  font-size:12px;
  opacity:.7;
  font-style:italic;
}

.toggles{
  display:flex;
  gap:8px;
  align-items:center;
}

.pill{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.6);
  padding:10px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.pill:active{ transform: scale(.98); }

.pill.active{
  background: rgba(230,0,110,.10);
  border-color: rgba(230,0,110,.25);
}

.app{
  height:100vh;
  padding-top:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.screen{
  width:min(var(--max), calc(100vw - 28px));
  max-height: calc(100vh - 120px);
  overflow:auto;
  display:none;
  padding:26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.screen.active{ display:block; }

.badge{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.6px;
  text-transform:uppercase;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(230,0,110,.20);
  background: rgba(230,0,110,.08);
  margin-bottom:14px;
}

.heroTitle{
  margin: 8px 0 10px;
  font-size: 52px;
  line-height: .95;
  letter-spacing: -1px;
  color: var(--bold-pink);
}

.lead{
  margin: 0 0 18px;
  font-size: 16px;
  opacity: .85;
}

.kicker{
  font-weight:900;
  letter-spacing:2px;
  font-size:11px;
  text-transform:uppercase;
  color: rgba(43,27,34,.64);
  margin-bottom:10px;
}

.title{
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.title strong{ color: var(--bold-pink); }

.copy{
  margin: 0 0 18px;
  font-size: 15px;
  opacity: .84;
}

.ctaRow{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top: 14px;
}

.navRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top: 16px;
}

.btnPrimary, .btnGhost, .btnMini{
  border:none;
  cursor:pointer;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
}

.btnPrimary{
  background: var(--bold-pink);
  color: #fff;
  padding: 13px 18px;
  flex:1;
}

.btnGhost{
  background: rgba(255,255,255,.75);
  color: var(--ink);
  border:1px solid var(--stroke);
  padding: 13px 18px;
  flex:1;
}

.btnMini{
  background: rgba(255,255,255,.75);
  border:1px solid var(--stroke);
  padding: 9px 12px;
  font-size: 12px;
}

.btnMini.danger{
  background: rgba(230,0,110,.10);
  border-color: rgba(230,0,110,.25);
  color: var(--bold-pink);
}

.btnPrimary:active, .btnGhost:active, .btnMini:active{ transform: scale(.99); }

.hint{
  margin-top: 14px;
  font-size: 12px;
  opacity: .68;
}

.dot{ padding: 0 6px; opacity:.45; }

.noteBox{
  background: rgba(246,193,209,.34);
  border: 1px solid rgba(230,0,110,.18);
  border-radius: 18px;
  padding: 14px;
}

.label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.note{
  width:100%;
  resize:none;
  border-radius: 14px;
  border:1px solid rgba(43,27,34,.12);
  padding: 12px 12px;
  font-size: 14px;
  outline:none;
  background: rgba(255,255,255,.86);
  color: var(--ink);
}

.note:focus{
  border-color: rgba(230,0,110,.35);
  box-shadow: 0 0 0 4px rgba(230,0,110,.10);
}

.noteMeta{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  margin-top: 10px;
  flex-wrap:wrap;
}

.saved{
  font-size: 12px;
  opacity: .7;
}

.end{
  background: linear-gradient(180deg, rgba(246,193,209,.55), rgba(255,255,255,.55));
}

.endActions{
  display:flex;
  gap:10px;
  margin-top: 16px;
}

.notesPanel{
  margin-top: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(43,27,34,.10);
  border-radius: 18px;
  padding: 14px;
  display:none;
}

.notesPanel.open{ display:block; }

.panelTitle{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
}

.panelGrid{
  display:grid;
  gap:10px;
}

.panelCard{
  background: rgba(246,193,209,.30);
  border: 1px solid rgba(230,0,110,.18);
  border-radius: 14px;
  padding: 12px;
}

.panelCard h4{
  margin:0 0 6px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity:.7;
}

.panelCard p{
  margin:0;
  white-space: pre-wrap;
  font-size: 13px;
  opacity:.9;
}

.panelActions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  margin-top: 12px;
}

.panelHint{
  margin: 10px 0 0;
  font-size: 12px;
  opacity: .65;
}

.footer{
  margin-top: 18px;
  font-size: 12.5px;
  opacity: .85;
  line-height:1.45;
}

.progress{
  position:fixed;
  left:14px;
  right:14px;
  bottom:14px;
  height:10px;
  border-radius: 999px;
  border: 1px solid rgba(43,27,34,.10);
  background: rgba(255,255,255,.55);
  overflow:hidden;
}

.bar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(230,0,110,.35), rgba(230,0,110,.95));
  border-radius:999px;
  transition: width .22s ease;
}

/* Desktop */
@media (min-width: 900px){
  body{ overflow:auto; }
  .app{ padding-top: 96px; }
  .screen{ max-height: 760px; }
}
