:root {
  --header: #075e54;
  --header-2: #128c7e;
  --chat-bg: #efeae2;
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --text: #111b21;
  --muted: #667781;
  --dim: #8696a0;
  --accent: #008069;
  --green: #25d366;
  --teal: #128c7e;
  --blue: #34b7f1;
  --amber: #f4a300;
  --red: #ea4335;
  --line: #e7e1d8;
}
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: #0d1b16;
  background: radial-gradient(900px 500px at 50% -5%, #d7efe6, transparent),
    linear-gradient(180deg, #f3f1ec, #e8efe9);
  min-height: 100vh;
}

.page-head {
  text-align: center;
  padding: 40px 20px 8px;
}
.page-head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0c3a32;
}
.page-head .mark {
  color: var(--green);
}
.page-head .thin {
  font-weight: 500;
  color: #5b6b66;
}
.page-head p {
  color: #5b6b66;
  margin: 8px 0 0;
  font-size: 15px;
}

.stage {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 24px 30px;
  max-width: 1500px;
  margin: 0 auto;
}
.frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.frame .caption {
  font-size: 14px;
  font-weight: 600;
  color: #45554f;
}

/* ---- iPhone 15 device ---- */
.device {
  width: 393px;
  height: 852px;
  background: #000;
  border-radius: 55px;
  padding: 11px;
  position: relative;
  box-shadow: 0 1px 0 2px #2a2a2a, 0 0 0 12px #0b0b0b, 0 40px 70px -20px rgba(7, 50, 42, 0.45);
  flex: 0 0 auto;
}
.island {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 20px;
  z-index: 30;
}
.home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 30;
  mix-blend-mode: difference;
}
.screen {
  width: 100%;
  height: 100%;
  border-radius: 45px;
  overflow: hidden;
  position: relative;
  background: var(--chat-bg);
  display: flex;
  flex-direction: column;
}

/* status bar */
.statusbar {
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 17px 32px 0;
  color: #fff;
  flex: 0 0 auto;
}
.statusbar .time {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
}
.statusbar .sb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}
.statusbar svg {
  display: block;
}

/* app header */
.appheader {
  background: linear-gradient(180deg, var(--header), var(--header-2));
  color: #fff;
  flex: 0 0 auto;
}
.titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 20px 16px;
}
.titlerow .ttl {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.titlerow h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.titlerow .sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.titlerow .acts {
  display: flex;
  gap: 18px;
  opacity: 0.95;
}

/* scrollable content */
.content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 16px 20px;
}
.content::-webkit-scrollbar {
  display: none;
}

/* tab bar */
.tabbar {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  display: flex;
  padding: 8px 6px 22px;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #8696a0;
  font-size: 11px;
  font-weight: 600;
}
.tab.active {
  color: var(--accent);
}
.tab svg {
  width: 25px;
  height: 25px;
}

/* ---------- components ---------- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 6px 4px 10px;
}

/* summary chips (Today) */
.greet {
  font-size: 15px;
  color: var(--muted);
  margin: 2px 4px 12px;
}
.greet b {
  color: var(--text);
}
.sumrow {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.sumcard {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 11px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.06);
}
.sumcard .n {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}
.sumcard .l {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.25;
}

/* chat bubbles (nudges) */
.bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bubble-in);
  border-radius: 3px 14px 14px 14px;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.14);
  padding: 10px 12px;
  margin-bottom: 9px;
}
.bubble .dot {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.bubble .txt {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}
.bubble .txt b {
  font-weight: 700;
}
.bubble .time {
  font-size: 10px;
  color: var(--dim);
  margin-top: 3px;
}
.d-amber {
  background: var(--amber);
}
.d-red {
  background: var(--red);
}
.d-blue {
  background: var(--blue);
}
.d-green {
  background: var(--accent);
}

/* people list (WhatsApp chat list) */
.list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0ece5;
}
.row:last-child {
  border-bottom: none;
}
.row .meta {
  flex: 1;
  min-width: 0;
}
.row .nm {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.row .ms {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .rt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.chip {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
}
.chip.work {
  color: #0b6a8e;
  background: rgba(52, 183, 241, 0.16);
}
.chip.personal {
  color: #0a8a3f;
  background: rgba(37, 211, 102, 0.16);
}
.chip.group {
  color: #0c6b5e;
  background: rgba(18, 140, 126, 0.15);
}
.badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* balance */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.05);
}
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.ah {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ah .big {
  font-size: 34px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -1px;
}
.ah .l {
  font-size: 13px;
  color: var(--muted);
}
.weekbars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  margin-top: 4px;
}
.weekbars .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  justify-content: flex-end;
}
.weekbars .fl {
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--green), rgba(37, 211, 102, 0.4));
}
.weekbars .dy {
  font-size: 10px;
  color: var(--muted);
}
.mom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #f0ece5;
  font-size: 13.5px;
}
.mom:first-child {
  border-top: none;
}
.mom .up {
  color: var(--accent);
  font-weight: 700;
}
.mom .dn {
  color: var(--amber);
  font-weight: 700;
}
.mom .c {
  color: var(--muted);
  font-size: 12px;
}

/* splash */
.splash {
  flex: 1 1 auto;
  background: linear-gradient(170deg, #075e54, #128c7e 60%, #25d366);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.splash .logo {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
}
.splash .logo .mk {
  display: block;
  font-size: 40px;
  margin-bottom: 4px;
  opacity: 0.95;
}
.splash .tg {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.splash .foot {
  position: absolute;
  bottom: 70px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  letter-spacing: 0.3px;
}
.splash .foot b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
  color: #fff;
}

@media (max-width: 520px) {
  .device {
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -150px;
  }
}
