/* Leyla Davud — static build */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --milk: #fbf8f2;
  --sand: #f5ecdf;
  --clay: #c9a877;          /* champagne gold */
  --sage: #b58a80;          /* muted rose */
  --graphite: #2a221c;

  --background: #f7f0e4;
  --foreground: #2a221c;
  --card: #fdf9f1;
  --muted: #ece3d3;
  --muted-foreground: #7d6f5e;
  --border: #e2d6c2;
  --accent: #c9a877;
  --accent-foreground: #2a221c;
  --primary: #2a221c;
  --primary-foreground: #fbf8f2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #e8e2d5;
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
}
.font-serif, h1, h2, h3 { font-family: "Instrument Serif", ui-serif, Georgia, serif; letter-spacing: -0.01em; font-weight: 400; }

/* --- phone shell --- */
.stage {
  min-height: 100vh; width: 100%;
  background: var(--background);
  display: flex; justify-content: center;
  padding: 0;
}
.phone {
  position: relative; width: 100%; max-width: 480px; min-height: 100vh;
  background: var(--background); overflow: hidden;
}
.phone-scroll { min-height: 100vh; overflow-y: visible; padding-bottom: 112px; }
.phone-scroll.bare { padding-bottom: 0; }
.statusbar { display: none; }

/* --- bottom nav --- */
.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40; width: 100%; max-width: 480px; }
.bottom-nav .wrap {
  margin: 0 12px 12px; border-radius: 28px;
  border: 1px solid rgba(226,214,194,0.6);
  background: rgba(253,249,241,0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px -15px rgba(60,40,20,0.35);
}
.bottom-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; font-size: 10px; letter-spacing: .05em; color: rgba(42,34,28,0.5); text-decoration: none; }
.bottom-nav a.active { color: var(--foreground); }
.bottom-nav a .icon { width: 18px; height: 18px; stroke: currentColor; }
.bottom-nav a.active .icon { color: var(--accent); }

/* --- helpers --- */
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.container-p { padding: 40px 20px 24px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .3em; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 12px; }
.chip.active { background: var(--foreground); color: var(--primary-foreground); border-color: var(--foreground); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font-size: 14px; border: 1px solid transparent; }
.btn-dark { background: var(--foreground); color: var(--primary-foreground); }
.btn-outline { background: var(--card); border-color: var(--border); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-block { width: 100%; padding: 16px; border-radius: 999px; text-align: center; font-size: 14px; }
.balance { text-wrap: balance; }
.hstack { display: flex; align-items: center; }
.vstack { display: flex; flex-direction: column; }
.divider { height: 1px; background: var(--border); }

/* practice card */
.pcard { position: relative; overflow: hidden; border-radius: 20px; background: var(--muted); display: block; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.pcard:hover img { transform: scale(1.03); }
.pcard .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1) 60%, transparent); }
.pcard .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pcard .badges span { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); color: rgba(255,255,255,0.9); border-radius: 999px; padding: 2px 8px; font-size: 10px; }
.pcard .playbtn { position: absolute; bottom: 12px; right: 12px; height: 36px; width: 36px; border-radius: 999px; background: rgba(255,255,255,0.9); color: var(--foreground); display: flex; align-items: center; justify-content: center; }
.pcard .title-overlay { position: absolute; bottom: 12px; left: 12px; right: 56px; color: #fff; }
.pcard .title-overlay .cat { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.pcard .title-overlay .t { font-family: "Instrument Serif", serif; font-size: 18px; line-height: 1.1; margin-top: 2px; }
.pcard-h-sm { height: 112px; }
.pcard-h-md { height: 160px; }
.pcard-h-lg { height: 224px; }
.pcard-meta { margin-top: 8px; }
.pcard-meta .t { font-size: 14px; line-height: 1.2; color: var(--foreground); }
.pcard-meta .m { font-size: 12px; color: var(--muted-foreground); }

/* grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }

/* hero splash */
.splash-hero { position: relative; min-height: 100vh; }
.splash-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-hero .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3), rgba(0,0,0,0.7)); }
.splash-hero .body { position: relative; z-index: 10; display: flex; flex-direction: column; padding: 32px; color: #fff; min-height: 100vh; }

/* progress bar */
.step-track { display: flex; gap: 6px; }
.step-track span { height: 3px; flex: 1; border-radius: 999px; background: rgba(42,34,28,0.15); }
.step-track span.on { background: var(--foreground); }

/* misc */
.avatar { height: 56px; width: 56px; border-radius: 999px; background: rgba(201,168,119,0.15); border: 1px solid rgba(201,168,119,0.4); display: flex; align-items: center; justify-content: center; font-family: "Instrument Serif", serif; font-size: 20px; color: var(--accent); }
.rounded-full { border-radius: 999px; }
.rounded-2xl { border-radius: 20px; }
.rounded-3xl { border-radius: 28px; }
.border { border: 1px solid var(--border); }
.bg-card { background: var(--card); }
.bg-dark { background: var(--foreground); color: var(--primary-foreground); }
.text-accent { color: var(--accent); }
.px-5 { padding-left: 20px; padding-right: 20px; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { scrollbar-width: none; }

/* form */
input[type="search"], .searchbar input { background: transparent; border: 0; outline: none; flex: 1; font-size: 14px; color: inherit; }
input::placeholder { color: var(--muted-foreground); }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 12px 16px; }

/* subscription block */
.sub-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--foreground); color: var(--primary-foreground); padding: 20px; }
.sub-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(201,168,119,0.3), transparent 60%); opacity: .5; pointer-events: none; }

/* end sheet */
.sheet-mask { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: flex-end; }
.sheet { width: 100%; border-radius: 28px 28px 0 0; background: var(--background); color: var(--foreground); padding: 24px 24px 32px; }
.mood { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood button { height: 56px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); font-size: 24px; }
.mood button.active { border-color: var(--foreground); background: rgba(42,34,28,0.05); }