/* Phone mockups recreated from the Flutter source — no baked-in promo text.
   Values lifted from lib/theme/tapback_theme.dart and
   lib/widgets/tapback_item_card.dart: card radius 18 / padding 13,
   thumbnail 54, action height 46, quiet action 46 radius 14,
   filled button radius 15, chip radius 99. */

.phone {
  --paper: #F7F4ED;
  --surface: #FFFDFA;
  --ink: #1F1C17;
  --muted: #746E63;
  --line: #E1DACE;
  --blue: #3457E6;
  --green: #269D68;
  width: 300px;
  flex: none;
  background: var(--paper);
  border: 9px solid #171410;
  border-radius: 40px;
  box-shadow: 0 22px 54px rgba(31, 28, 23, 0.20);
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.phone .scr {
  padding: 22px 14px 0;
  height: 560px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phone .scr-dim { background: #2A2620; padding-top: 60px; gap: 10px; }

/* --- header --- */

.brandrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: #FFD84D url("assets/icon.56440ea4.png") center/cover;
}

.mark.sm { width: 16px; height: 16px; border-radius: 5px; }

.wordmark { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }

.scr-title { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -0.7px; line-height: 1.12; }

.scr-sub { margin: 3px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.4; }

.scr-head { margin-bottom: 14px; }
.scr-head.tight { margin-bottom: 12px; }

.grouplabel {
  font-size: 10px; font-weight: 800; letter-spacing: 1.1px;
  color: var(--muted); margin: 0 0 8px 2px;
}

/* --- item card (radius 18, padding 13) --- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 10px;
}

.card.due {
  border: 1.5px solid var(--blue);
  box-shadow: 0 6px 20px rgba(52, 87, 230, 0.10);
}

.cardtop { display: flex; gap: 13px; align-items: flex-start; }

.thumb {
  width: 54px; height: 54px; flex: none;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tint) 14%, #FFFFFF);
  display: grid; place-items: center;
}

.thumb svg { width: 24px; height: 24px; }
.thumb.sm { width: 40px; height: 40px; border-radius: 12px; }
.thumb.sm svg { width: 19px; height: 19px; }

.cardtext { min-width: 0; flex: 1; }

.cardtitle {
  margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.2px;
  line-height: 1.25;
}

.cardtitle.sm { font-size: 13px; }

.metarow { display: flex; align-items: center; gap: 7px; margin-top: 6px; flex-wrap: wrap; }

.chip {
  font-size: 11px; font-weight: 800; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 12%, #FFFFFF);
  border-radius: 99px; padding: 3px 9px;
}

.meta { font-size: 12px; font-weight: 500; color: var(--muted); }

/* --- actions --- */

.actions { display: flex; gap: 8px; margin-top: 12px; }

.btn-open {
  flex: 1; height: 46px; border-radius: 15px;
  background: var(--blue); color: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 800;
}

.btn-open svg { width: 18px; height: 18px; }

.quiet {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center;
}

.quiet svg { width: 20px; height: 20px; }

.card.quiet-card { opacity: 0.72; }

/* --- fab + nav --- */

.fab {
  position: absolute; right: 14px; bottom: 74px;
  display: flex; align-items: center; gap: 7px;
  height: 46px; padding: 0 18px; border-radius: 15px;
  background: var(--blue); color: var(--surface);
  font-size: 14px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(52, 87, 230, 0.30);
}

.fab svg { width: 18px; height: 18px; }

.navbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 62px; background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 6px;
}

.navitem {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--muted);
}

.navitem svg { width: 20px; height: 20px; }

.navitem.on { color: var(--blue); }

.navitem.on svg {
  background: #E9EDFF; border-radius: 99px;
  padding: 3px 12px; box-sizing: content-box; width: 20px;
}

/* --- notification shade --- */

.notif {
  background: var(--surface);
  border-radius: 18px;
  padding: 13px 15px;
}

.notif.muted-notif { opacity: 0.55; }

.notif-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }

.notif-app { font-size: 11px; font-weight: 800; color: var(--muted); }

.notif-time { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: auto; }

.notif-title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.3; }

.notif-body { margin: 3px 0 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }

.notif-actions {
  display: flex; gap: 20px; margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--line);
}

.notif-actions span { font-size: 12px; font-weight: 800; letter-spacing: 0.5px; color: var(--blue); }

/* --- composer --- */

.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 13px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sheet-head svg { width: 20px; height: 20px; }

.sheet-head span { font-size: 15px; font-weight: 800; }

.fieldlabel { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }

.field {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 15px; padding: 13px 15px;
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
}

.field.muted-field { color: var(--muted); font-weight: 500; }

.chiprow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.pick {
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 99px; padding: 7px 12px;
}

.pick.on { background: #E9EDFF; border-color: var(--blue); color: var(--blue); font-weight: 800; }

.when {
  display: flex; align-items: center; gap: 12px;
  background: #E9EDFF; border-radius: 15px; padding: 13px;
  margin-bottom: 16px;
}

.when-ico {
  width: 38px; height: 38px; flex: none; border-radius: 99px;
  background: var(--surface); display: grid; place-items: center;
}

.when-ico svg { width: 20px; height: 20px; }

.when-main { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.2px; }

.when-sub { margin: 2px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); }

.send {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; border-radius: 15px;
  background: var(--blue); color: var(--surface);
  font-size: 15px; font-weight: 800;
}

.send svg { width: 19px; height: 19px; }

@media (max-width: 520px) {
  .phone { width: 268px; border-width: 8px; border-radius: 34px; }
  .phone .scr { height: 520px; }
}

/* feature-row placement: the phone replaces the old <img class="shot">,
   so it inherits the same flip behaviour */
.feature.flip .phone { order: 2; margin-left: auto; }
.feature .phone { margin-inline: auto; }
@media (max-width: 900px) { .feature.flip .phone { order: 0; } }
