* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafaf6;
  --green: #5f7e5f;
  --green-dark: #46603f;
  --text: #2a2a2a;
  --muted: #8a8a85;
  --line: #ececea;
  --cream: #f4ecde;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  padding-bottom: 90px;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 4px;
  font-size: 14px;
  font-weight: 600;
}
.status-icons { letter-spacing: 2px; }

.content { padding: 8px 0; }

.main-card {
  background: #fff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  padding: 16px 0 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.95;
}
.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  margin-top: 14px;
}
.greet { font-size: 15px; color: var(--text); text-shadow: 0 1px 2px rgba(255,255,255,0.7); }
.greet-sub { font-size: 16px; font-weight: 600; margin-top: 2px; color: var(--green-dark); text-shadow: 0 1px 2px rgba(255,255,255,0.7); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #cfd9cb, #a6b4a0);
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 22px 8px;
}
.quote-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.divider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0 10px;
}
.divider span:not(.leaf) { width: 40px; height: 1px; background: #c8c8c0; }
.leaf { font-size: 12px; }
.quote-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.cta-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(95,126,95,.3);
}
.cta-btn:hover { background: var(--green-dark); }

/* Sections */
.section { margin-top: 26px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 22px;
}
.section-head h2 {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text);
  font-weight: 600;
}
.see-all { color: var(--muted); font-size: 12px; cursor: pointer; }

/* Apps row */
.apps-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 22px 4px;
}
.apps-row::-webkit-scrollbar { display: none; }
.app-card {
  flex: 0 0 70px;
  min-height: 100px;
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
}
.app-icon {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.app-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.app-card small { color: var(--muted); font-size: 10px; display: block; margin-top: 4px; }
.a1 { background: #e8ece4; }
.a2 { background: #e9e6f0; }
.a3 { background: #f4ecde; }
.a4 { background: #dee5ec; }
.a5 { background: #e6ece8; }

/* Quote card */
.quote-card {
  background: #f5f2e9;
  border-radius: 20px;
  padding: 24px 22px 20px;
  position: relative;
  min-height: 160px;
  margin: 0 22px;
  overflow: hidden;
  border: 1px solid #eae7dc;
}
.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  color: #c7cfc5;
  line-height: .5;
  position: absolute;
  top: 24px;
  left: 20px;
  z-index: 1;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.45;
  margin: 20px 0 8px 10px;
  color: #2c3e2c;
  max-width: 70%;
  position: relative;
  z-index: 1;
}
.quote-author {
  font-size: 12px;
  color: var(--muted);
  margin-left: 10px;
  position: relative;
  z-index: 1;
}
.quote-leaf {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
.quote-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 1;
}
.round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}
.round-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
.action-icon {
  width: 18px;
  height: 18px;
  stroke: #4a5a4a;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.2s, fill 0.2s;
}
.round-btn:hover .action-icon {
  stroke: var(--green);
}
.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #e0ded6;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.dot.active {
  width: 18px;
  height: 6px;
  background: var(--green);
  border-radius: 3px;
}

/* Articles */
.article-list { display: flex; flex-direction: column; gap: 12px; padding: 0 22px; }
.article {
  display: grid;
  grid-template-columns: 110px 1fr 24px;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0efea;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.article img {
  width: 110px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #e8e4d8;
}
.article h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.35;
  color: var(--text);
}
.article p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bookmark {
  color: var(--muted);
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.bookmark-icon {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.bookmark:hover .bookmark-icon {
  stroke: var(--green);
}

/* Library */
.lib-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 22px; }
.lib-card {
  padding: 14px 12px;
  border-radius: 14px;
  min-height: 110px;
}
.lib-icon { font-size: 20px; margin-bottom: 6px; }
.lib-card h4 { font-size: 12px; letter-spacing: 1px; margin-bottom: 4px; }
.lib-card p { font-size: 10px; color: var(--muted); line-height: 1.4; }
.l1 { background: #e9ece4; }
.l2 { background: #f4ecde; }
.l3 { background: #e1e7ec; }

.bottom-spacer { height: 20px; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  border-top: 1px solid var(--line);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}
.nav-item small { font-size: 10px; }
.nav-item.active { color: var(--green); font-weight: 600; }
.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}
.nav-item.active .nav-icon path[d^="m3 9"] {
  fill: currentColor;
}
