/* app-mock.css — рамка Android-телефона и экраны приложения «Незабудка».
   Все селекторы экранов scoped под .phone, чтобы не конфликтовать с сайтом. */

/* ── Рамка телефона ─────────────────────────────────────────── */
.phone {
  width: 320px;
  height: 672px;
  background: #15151b;
  border-radius: 42px;
  padding: 9px;
  box-shadow:
    0 50px 90px -40px rgba(45, 50, 90, 0.55),
    0 18px 40px -28px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.phone .screen {
  width: 100%;
  height: 100%;
  background: var(--pearl);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone .petal-line {
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--lav) 38%, var(--pink) 62%, var(--gold) 100%);
}
.phone .statusbar {
  flex-shrink: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.phone .statusbar .dots { display: flex; gap: 4px; align-items: center; }
.phone .statusbar .dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.7; }

.phone .appbar { padding: 4px 18px 0; flex-shrink: 0; }
.phone .appbar .top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0 12px;
}
.phone .appbar .title { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.phone .appbar .sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 5px; }

.phone .fab {
  width: 42px; height: 42px; border-radius: 15px; flex-shrink: 0;
  background: radial-gradient(circle at 38% 34%, #F8D469 0%, var(--gold) 52%, #E0A91C 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-ink);
  box-shadow: 0 12px 24px -10px rgba(214, 150, 18, 0.7);
}

.phone .tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
}
.phone .tabs .tab {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em; color: var(--muted);
}
.phone .tabs .tab.on { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(78, 111, 212, 0.8); }

.phone .filters { display: flex; gap: 6px; padding: 12px 0 2px; overflow: hidden; }
.phone .pill {
  flex-shrink: 0; padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink2);
}
.phone .pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.phone .body {
  flex: 1; overflow: hidden; padding: 14px 18px 20px;
  display: flex; flex-direction: column; gap: 18px;
}
.phone .psection .shead { display: flex; align-items: center; gap: 6px; padding: 0 2px 9px; }
.phone .psection .shead .lbl {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}
.phone .psection.danger .shead .lbl { color: var(--rose-deep); }
.phone .psection .shead .dotwarn {
  width: 14px; height: 14px; border-radius: 50%; background: var(--rose-deep);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 800;
}
.phone .cards { display: flex; flex-direction: column; gap: 10px; }

.phone .card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 13px 11px; position: relative; overflow: hidden;
}
.phone .card.overdue::before {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 13px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--rose-deep);
}
.phone .card .crow { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.phone .card .ctitle {
  flex: 1; font-size: 14px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.018em; color: var(--ink);
}
.phone .badge {
  flex-shrink: 0; display: inline-flex; align-items: center; border-radius: 999px;
  padding: 5px 10px; font-size: 11px; font-weight: 700; line-height: 1.15; white-space: nowrap;
}
.phone .badge.new { background: var(--blue-soft); color: var(--blue-deep); }
.phone .badge.doing { background: var(--gold-soft); color: var(--gold-deep); }
.phone .badge.post { background: var(--lav-soft); color: var(--lav-deep); }
.phone .badge.done { background: var(--done-soft); color: var(--done-deep); }

.phone .meta {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px;
  color: var(--ink2); margin-bottom: 11px; flex-wrap: wrap;
}
.phone .avatar {
  width: 21px; height: 21px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px; font-weight: 800; flex-shrink: 0;
}
.phone .meta .who { font-weight: 700; }
.phone .meta .sep, .phone .meta .fam { color: var(--muted); font-weight: 600; }
.phone .meta .due { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink2); }
.phone .meta .due.late { color: var(--rose-deep); }

.phone .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.phone .chips { display: flex; gap: 5px; flex-wrap: wrap; }
.phone .chip {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 8px;
  padding: 6px 9px; font-size: 11px; font-weight: 700; line-height: 1;
  background: var(--chip-bg); color: var(--ink2); border: 1px solid var(--line);
}
.phone .chip.ok { background: var(--done-soft); color: var(--done-deep); border-color: transparent; }
.phone .chip .bar { width: 32px; height: 5px; border-radius: 3px; background: var(--line-cool); overflow: hidden; position: relative; }
.phone .chip .bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); }
.phone .remind {
  width: 36px; height: 36px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--remind-bg); color: var(--blue-deep);
}

.phone .pnav {
  flex-shrink: 0; background: var(--paper); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: center; padding: 8px 0 12px;
}
.phone .pnav .item { display: flex; flex-direction: column; align-items: center; padding: 5px 12px; color: var(--muted); }
.phone .pnav .item.on { color: var(--blue); }

/* ── Экран «Заметки · библиотека» (умная сетка) ─────────────── */
.phone .libgrid {
  flex: 1; overflow: hidden; padding: 12px 14px 16px;
  columns: 2; column-gap: 10px;
}
.phone .note {
  break-inside: avoid; margin-bottom: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 15px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.phone .note .ntag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.01em;
}
.phone .note .ntitle { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.phone .note .nbody { font-size: 11px; line-height: 1.45; color: var(--ink2); }
.phone .note .nthumb { height: 64px; border-radius: 10px; background-size: cover; background-position: center; }
.phone .note .nlist { display: flex; flex-direction: column; gap: 6px; }
.phone .note .nlist .li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink2); font-weight: 600; }
.phone .note .nlist .li .box { width: 13px; height: 13px; border-radius: 4px; border: 1.6px solid var(--muted); flex-shrink: 0; }
.phone .note .nlist .li.done .box { background: var(--done-deep); border-color: var(--done-deep); }
.phone .note .nlist .li.done { color: var(--muted); text-decoration: line-through; }

/* tag color tokens */
.tag-web { background: var(--blue-soft); color: var(--blue-deep); }
.tag-text { background: var(--lav-soft); color: var(--lav-deep); }
.tag-photo { background: var(--pink); color: var(--rose-deep); }
.tag-doc { background: #F6E6DC; color: #B5662B; }
.tag-voice { background: var(--gold-soft); color: var(--gold-deep); }
.tag-list { background: var(--done-soft); color: var(--done-deep); }

/* floating glow under hero phone */
.phone-glow { position: relative; }
.phone-glow::after {
  content: ""; position: absolute; inset: -8% -12% -14%; z-index: -1;
  background: radial-gradient(60% 50% at 50% 42%, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%);
  filter: blur(8px); pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   Онбординг в экране телефона (hero) — pop-pastel комикс
   ══════════════════════════════════════════════════════════════ */
/* hero-телефон с онбордингом — фиксированная высота, чтобы при листании размер не менялся */
.phone-glow { height: 716px; }
.phone .screen.onb {
  height: 100%;
  background: linear-gradient(170deg, #EFF3FE 0%, #F3ECF7 100%);
}
:root { --reply: #3B5BDB; --pop: #6B8AFD; }

.phone .onb-head {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 18px 18px;
}
.phone .onb-brand { display: flex; align-items: center; gap: 8px; }
.phone .onb-brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.phone .onb-brand b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.phone .onb-skip { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.phone .onb-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.phone .onb-variant { display: none; }
.phone .onb-variant.on { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.phone .onb-step { display: none; flex-direction: column; min-height: 0; }
.phone .onb-step.on { display: flex; flex: 1; justify-content: center; }

.phone .onb-illo {
  display: flex; flex-direction: column; justify-content: center; gap: 11px;
  padding: 6px 18px 0;
}

/* comic frame */
.phone .frame {
  position: relative; background: #F6F8FF; border: 1.8px solid var(--pop);
  border-radius: 18px; padding: 11px;
  box-shadow: 0 12px 24px -14px rgba(59,91,219,0.34);
}
.phone .frame.danger { border-color: var(--rose-deep); }
.phone .frame.white { background: #fff; }
.phone .frame .fnum {
  position: absolute; top: -11px; left: -11px; width: 23px; height: 23px; border-radius: 50%;
  background: var(--pop); color: #fff; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; box-shadow: 0 3px 8px rgba(59,91,219,0.4); z-index: 2;
}
.phone .frame.danger .fnum { background: var(--rose-deep); }

/* chat turn */
.phone .turn { display: flex; align-items: flex-end; gap: 7px; }
.phone .turn.r { flex-direction: row-reverse; }
.phone .turn .pers { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 38px; flex-shrink: 0; }
.phone .turn .pers .av {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 10px; font-weight: 800;
}
.phone .turn .pers .nm { font-size: 9px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.phone .turn .bub { padding-bottom: 7px; }

.phone .say {
  position: relative; display: inline-block; max-width: 188px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
  border-radius: 13px; padding: 8px 11px; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 3px 9px -7px rgba(31,35,53,0.4);
}
.phone .say.reply {
  background: var(--reply); color: #fff; border: none; font-size: 15px; font-weight: 800;
  letter-spacing: -0.02em; padding: 9px 13px; border-radius: 14px;
  box-shadow: 0 10px 22px -10px rgba(59,91,219,0.6);
}
.phone .quip {
  display: inline-block; margin-left: 4px; background: var(--gold-soft); color: var(--gold-deep);
  border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 800; font-style: italic;
}

.phone .accent-lead { display: flex; justify-content: flex-end; padding-right: 14px; margin: 1px 0; }
.phone .accent-lead span {
  position: relative; display: inline-block; background: var(--gold); color: var(--gold-ink);
  border-radius: 9px; padding: 3px 10px; font-size: 12px; font-weight: 900; font-style: italic;
  transform: rotate(-3deg); border: 2px solid #D9A520;
  box-shadow: 0 0 0 2px #fff, 0 7px 15px -7px rgba(214,165,30,0.7);
}

/* send label + result card */
.phone .send-lbl {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--reply); font-size: 11.5px; font-weight: 800; white-space: nowrap;
}
.phone .rescard { display: flex; align-items: center; gap: 10px; }
.phone .rescard .ricon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; background: var(--remind-bg);
  display: flex; align-items: center; justify-content: center;
}
.phone .rescard .rtitle { font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.phone .rescard .rmeta { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.phone .rescard .rmeta .av { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 800; flex-shrink: 0; }
.phone .rescard .rmeta span { font-size: 11px; font-weight: 700; color: var(--muted); }
.phone .sbadge {
  flex-shrink: 0; display: inline-flex; align-items: center; border-radius: 999px;
  padding: 4px 9px; font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
.phone .sbadge.new { background: var(--blue-soft); color: var(--blue-deep); }
.phone .sbadge.doing { background: var(--gold-soft); color: var(--gold-deep); }
.phone .sbadge.done { background: var(--done-soft); color: var(--done-deep); }

.phone .onb-cap {
  align-self: center; text-align: center; background: var(--done-soft); color: var(--done-deep);
  font-size: 13.5px; font-weight: 800; border-radius: 11px; padding: 6px 13px;
  line-height: 1.25; letter-spacing: -0.015em; max-width: 92%; text-wrap: pretty;
}

/* slide 3 — lost */
.phone .msgrow { display: flex; justify-content: center; gap: 7px; margin: 4px 0 2px; }
.phone .msgtile {
  position: relative; width: 38px; height: 38px; border-radius: 11px; background: #fff;
  border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -10px rgba(31,35,53,0.35);
}
.phone .msgtile .q {
  position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--rose-deep); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; border: 2px solid #F3ECF7;
}
.phone .lost-big { text-align: center; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: var(--rose-deep); margin-top: 2px; }
.phone .lost-sub { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.phone .frame .fhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.phone .frame .fhead img { width: 24px; height: 24px; border-radius: 7px; }
.phone .frame .fhead b { font-size: 13.5px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.phone .lrow {
  display: flex; align-items: center; gap: 9px; background: #F6F8FF;
  border-radius: 10px; padding: 6px 9px; margin-top: 6px;
}
.phone .lrow .av { width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 800; flex-shrink: 0; }
.phone .lrow .lt { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* slide caption text */
.phone .onb-text { padding: 12px 24px 20px; text-align: center; flex-shrink: 0; }
.phone .onb-text h3 { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.phone .onb-text p { font-size: 12.5px; font-weight: 500; color: var(--ink2); line-height: 1.4; margin-top: 6px; text-wrap: pretty; }

/* footer: dots + button */
.phone .onb-foot { flex-shrink: 0; padding: 12px 20px 18px; }
.phone .onb-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.phone .onb-dots span { width: 6px; height: 6px; border-radius: 4px; background: #CFD6EC; transition: width .25s, background .25s; }
.phone .onb-dots span.on { width: 20px; background: var(--reply); }
.phone .onb-btn {
  width: 100%; height: 48px; border-radius: 14px; border: none; background: var(--reply); color: #fff;
  font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 26px -10px rgba(59,91,219,0.6);
}

/* ── Шаг 2 · форма добавления и Шаг 3 · список ── */
.phone .onb-app { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.phone .app-h { display: flex; align-items: flex-end; justify-content: space-between; }
.phone .app-h .ttl { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; white-space: nowrap; }
.phone .app-h .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 5px; white-space: nowrap; }
.phone .app-fab {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0;
  background: radial-gradient(circle at 38% 34%, #F8D469 0%, var(--gold) 52%, #E0A91C 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-ink); font-size: 23px; font-weight: 400; line-height: 1;
  box-shadow: 0 10px 20px -10px rgba(214,150,18,0.7);
}

.phone .form {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 11px;
  box-shadow: 0 16px 32px -22px rgba(31,35,53,0.35);
}
.phone .field { display: flex; flex-direction: column; gap: 5px; }
.phone .field > label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.phone .ctrl {
  display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 11px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.phone .ctrl svg { color: var(--blue-deep); flex-shrink: 0; }
.phone .ctrl-title {
  font-size: 14.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em;
  background: #fff; border-color: var(--pop);
}
.phone .ctrl-title .caret {
  width: 2px; height: 16px; background: var(--reply); margin-left: 1px; border-radius: 1px;
  animation: nzcaret 1.1s step-end infinite;
}
@keyframes nzcaret { 50% { opacity: 0; } }
.phone .who-av {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 9px; font-weight: 800; flex-shrink: 0;
}
.phone .row2 { display: flex; gap: 8px; }
.phone .row2 .field { flex: 1; }
.phone .toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--remind-bg); border-radius: 11px; padding: 9px 11px;
}
.phone .toggle-row .tl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--blue-deep); }
.phone .switch { width: 38px; height: 22px; border-radius: 999px; background: var(--blue); position: relative; flex-shrink: 0; }
.phone .switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.phone .form-cta {
  height: 46px; border-radius: 13px; background: var(--reply); color: #fff; font-weight: 800; font-size: 14.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 14px 28px -12px rgba(59,91,219,0.6);
}

.phone .list { display: flex; flex-direction: column; gap: 10px; }
.phone .tcard { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 12px; position: relative; }
.phone .tcard.fresh {
  border-color: var(--pop); margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(107,138,253,0.16), 0 16px 30px -18px rgba(59,91,219,0.45);
}
.phone .tcard .just {
  position: absolute; top: -9px; left: 12px; background: var(--reply); color: #fff;
  font-size: 9px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 10px -3px rgba(59,91,219,0.6);
}
.phone .tcard .trow { display: flex; align-items: flex-start; gap: 8px; }
.phone .tcard .tt { flex: 1; font-size: 13.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); line-height: 1.3; }
.phone .tcard .tmeta { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--ink2); font-weight: 700; }
.phone .tcard .tmeta .av { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 800; flex-shrink: 0; }
