/* By Design site: page CSS that sits inside visuals only (the app's own screens drawn as live HTML,
   in the Garden Psalm tokens from design/by-design-ui-handoff/DESIGN_SPEC.md), plus the client's
   own type (Cormorant Garamond + Mulish, the app's fonts) over the dealt tokens. */

:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Mulish", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.005em;
  --display-tracking-xl: -0.01em;
  --ly-scale: 1.1;
  /* Garden Psalm app tokens, used only inside the drawn screens */
  --gp-bg: #f8f3ec; --gp-surface: #ffffff; --gp-ink: #3b2b2b; --gp-muted: #7a6560; --gp-border: #eadfd3;
  --gp-rose: #a35d69; --gp-rose-deep: #7b3f4e; --gp-rose-soft: #f1dcd6;
  --gp-plum: #7b4a62; --gp-plum-soft: #ebdde3; --gp-mauve: #8e5e73; --gp-blush: #e6bdb5;
  --gp-gold: #d9a441; --gp-gold-deep: #c9963a; --gp-gold-soft: #f6e3c8;
  --gp-sage: #4f5e41; --gp-sage-soft: #e3e8da;
}

/* the nav logo: the app icon beside the name */
.nav__logo img, .bd-logo { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.footer--dark .nav__logo img { width: 48px; height: 48px; border-radius: 13px; }

/* ---------- the app's screen, drawn ---------- */
.bd { font-family: "Mulish", system-ui, sans-serif; color: var(--gp-ink); background: var(--gp-bg); text-align: left; letter-spacing: 0; }
.bd * { box-sizing: border-box; }
.bd :where(h1, h2, h3, h4, p, ul, ol, li) { margin: 0; padding: 0; list-style: none; font: inherit; }
.bd .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: 0; }
.bd em { font-style: italic; color: var(--gp-rose); }
.bd-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gp-muted); }
.bd-muted { color: var(--gp-muted); }
.bd-card { background: var(--gp-surface); border-radius: 20px; box-shadow: 0 1px 0 var(--gp-border); padding: 14px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--gp-rose-soft); color: var(--gp-rose-deep); white-space: nowrap; }
.bd-chip--plum { background: var(--gp-plum-soft); color: var(--gp-plum); }
.bd-chip--sage { background: var(--gp-sage-soft); color: var(--gp-sage); }
.bd-chip--plain { background: var(--gp-bg); color: var(--gp-muted); font-weight: 400; }
.bd-chip--on { background: var(--gp-rose); color: #fff; }
.bd-chip--off { background: var(--gp-surface); color: var(--gp-ink); box-shadow: inset 0 0 0 1px var(--gp-border); font-weight: 400; }
.bd-well { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gp-rose-soft); color: var(--gp-rose); flex: none; }
.bd-well--plum { background: var(--gp-plum-soft); color: var(--gp-plum); }
.bd-well svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bd-tip__head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.bd-tip__head .bd-eyebrow { color: var(--gp-rose-deep); }
.bd-tip--plum .bd-tip__head .bd-eyebrow { color: var(--gp-plum); }
.bd-tip__title { font-size: 14px; font-weight: 700; line-height: 1.25; }
.bd-tip p { font-size: 12px; line-height: 1.45; }
.bd-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--gp-sage); font-weight: 600; }
.bd-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gp-sage); }

/* the phone */
/* the phone: one box, its bezel a border, so the app's cards inside sit one level deep */
.device { background: var(--gp-bg); color: var(--gp-ink); font-family: "Mulish", system-ui, sans-serif; position: absolute; left: 50%; top: 48px; width: 300px; height: 640px; transform: translateX(-50%); border: 9px solid #2a1f1f; border-radius: 48px; overflow: hidden; padding: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgb(59 43 43 / 0.28); }
.device__status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; padding: 0 8px 4px; }
.device__status::after { content: ""; width: 22px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--gp-ink); }
.device__notch { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; border-radius: 14px; background: #2a1f1f; transform: translateX(-50%); }

/* Today */
.bd-hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bd-hello .serif { font-size: 26px; line-height: 1.05; margin-top: 2px; }
.bd-hello img { width: 40px; height: 40px; border-radius: 12px; }
.bd-season { align-self: flex-start; }
.bd-ringcard { display: flex; align-items: center; gap: 14px; }
.bd-ring { width: 104px; height: 104px; flex: none; }
.bd-ring text { font-family: "Mulish", sans-serif; }
.bd-phase { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 21px; color: var(--gp-plum); line-height: 1.1; }
.bd-ringcard p { font-size: 12px; line-height: 1.4; margin-top: 4px; }
.bd-ringcard b { font-weight: 700; }
.bd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bd-row .serif { font-size: 17px; }
.bd-row small { font-size: 11px; color: var(--gp-muted); }
.bd-section-title { font-size: 19px; line-height: 1.1; margin-top: 4px; }

/* the check-in sheet */
.bd-sheet { margin-top: 6px; flex: 1; background: var(--gp-bg); border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 var(--gp-border), 0 -12px 30px rgb(59 43 43 / 0.08); padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; }
.bd-sheet__grab { width: 36px; height: 4px; border-radius: 4px; background: #e3cfc4; margin: 0 auto; }
.bd-sheet .serif { font-size: 22px; }
.bd-sheet .bd-eyebrow { margin-bottom: 7px; }
.bd-btn { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 999px; background: var(--gp-rose); color: #fff; font-size: 14px; font-weight: 700; }

/* his view */
.bd-his > .serif { font-size: 26px; line-height: 1.05; }
.bd-his .bd-card .serif { font-size: 21px; line-height: 1.15; margin: 6px 0 2px; }
.bd-ideas { display: grid; gap: 7px; margin-top: 10px; }
.bd-idea { display: flex; gap: 9px; align-items: flex-start; background: var(--gp-bg); border-radius: 14px; padding: 9px 10px; font-size: 12px; line-height: 1.4; }
.bd-idea svg { width: 15px; height: 15px; flex: none; margin-top: 1px; fill: none; stroke: var(--gp-rose); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the app window (app-frame) ---------- */
.app.ui { --u-bg: var(--gp-bg); --u-ink: var(--gp-ink); --u-muted: var(--gp-muted); --u-accent: var(--gp-rose); --u-r: 24px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 28px; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.bd-month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bd-month .serif { font-size: 30px; line-height: 1; }
.bd-month span { display: flex; gap: 8px; }
.bd-month i { width: 32px; height: 32px; border-radius: 50%; background: var(--gp-surface); display: grid; place-items: center; font-style: normal; font-size: 14px; color: var(--gp-ink); }
.bd-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 8px; text-align: center; font-size: 13px; padding: 14px 10px 12px; }
.bd-cal b { font-size: 10px; font-weight: 700; color: var(--gp-muted); padding-bottom: 4px; }
.bd-cal span { position: relative; justify-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.bd-cal .p { background: var(--gp-rose); color: #fff; font-weight: 700; }
.bd-cal .f { background: var(--gp-gold-soft); }
.bd-cal .o { background: var(--gp-gold-soft); box-shadow: inset 0 0 0 1.5px var(--gp-gold-deep); font-weight: 700; }
.bd-cal .t { box-shadow: 0 0 0 1px var(--gp-bg), 0 0 0 3px var(--gp-ink); font-weight: 700; }
.bd-cal .x { border: 1.5px dashed var(--gp-rose); color: var(--gp-rose-deep); font-weight: 600; }
.bd-cal .d::after { content: ""; position: absolute; bottom: -3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gp-mauve); }
.bd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 11px; color: var(--gp-muted); padding-top: 8px; }
.bd-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.bd-note { font-size: 11px; color: var(--gp-muted); text-align: center; margin-top: 6px; }
.bd-day { display: grid; gap: 14px; }
.bd-day__head { display: flex; justify-content: space-between; align-items: baseline; }
.bd-day__head .serif { font-size: 30px; line-height: 1; }
.bd-day__head span { font-size: 13px; font-weight: 700; color: var(--gp-plum); }
.bd-tips2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-tips2 .bd-card { padding: 16px; }
.bd-tip p { font-size: 13px; }
.bd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bd-stat { background: var(--gp-surface); border-radius: 16px; box-shadow: 0 1px 0 var(--gp-border); padding: 12px 14px; }
.bd-stat strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 24px; line-height: 1.1; }
.bd-stat strong.rose { color: var(--gp-rose); }
.bd-stat small { font-size: 11px; color: var(--gp-muted); }
.bd-range { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.4; }
.bd-range b { font-weight: 700; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .bd-tips2 { grid-template-columns: 1fr; } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: none; }
  .app .bd-cal, .app .bd-legend, .app .bd-note, .app .bd-month { max-width: 420px; margin-inline: auto; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app > .app__pane { padding: 18px; }
  .bd-tips2 { grid-template-columns: 1fr; }
}

/* ---------- the moment's visuals: a phone cut by its frame ---------- */
.mo-pc__visual { position: relative; overflow: hidden; background: color-mix(in oklab, var(--gp-sage-soft) 70%, var(--gp-bg)); }
.mo-pc__visual .device { top: 40px; }
.mo-pc__visual.mo-pc__visual--lit { display: block; padding: 0; }

/* ---------- small UI on the data cards ---------- */
.bd-mini { position: absolute; left: 50%; top: 40px; width: min(320px, calc(100% - 48px)); transform: translateX(-50%); display: grid; gap: 10px; }
.bd-mini .bd-card { padding: 14px 16px; }
.bd-list { display: grid; }
.bd-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--gp-border); }
.bd-list li:last-child { border-bottom: 0; }
.bd-list li span:nth-child(2) { flex: 1; }
.bd-list small { font-size: 11px; color: var(--gp-muted); }
.bd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gp-sage); flex: none; box-shadow: 0 0 0 4px var(--gp-sage-soft); }
.bd-file { width: 30px; height: 36px; border-radius: 6px; background: var(--gp-plum-soft); color: var(--gp-plum); display: grid; place-items: center; font-size: 9px; font-weight: 800; flex: none; }
.bd-file--pdf { background: var(--gp-rose-soft); color: var(--gp-rose-deep); }
.bd-pdf { background: #fff; border-radius: 8px; box-shadow: 0 1px 0 var(--gp-border), 0 10px 30px rgb(59 43 43 / 0.1); padding: 18px; display: grid; gap: 10px; }
.bd-pdf .serif { font-size: 20px; }
.bd-pdf table { width: 100%; border-collapse: collapse; font-size: 11px; }
.bd-pdf td, .bd-pdf th { text-align: left; padding: 5px 0; border-bottom: 1px solid var(--gp-border); }
.bd-pdf th { color: var(--gp-muted); font-weight: 600; }

/* the notification over the partner photograph */
.bd-notify { position: absolute; left: 24px; bottom: 24px; width: min(340px, calc(100% - 48px)); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: rgb(255 255 255 / 0.96); color: var(--gp-ink); font-family: "Mulish", sans-serif; box-shadow: 0 12px 30px rgb(0 0 0 / 0.18); }
.bd-notify img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.bd-notify p { margin: 0; font-size: 13px; line-height: 1.4; }
.bd-notify b { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.bd-notify b small { font-weight: 400; color: var(--gp-muted); font-size: 12px; }

/* the hero: the phone on the right of the painted frame, the partner card on its lower left */
.hero__media > .device { left: auto; right: 48px; transform: none; }
.hero__media > .ly-float { width: 232px; }
@media (max-width: 1279px) { .hero__media > .ly-float { display: none; } .hero__media > .device { left: 50%; right: auto; transform: translateX(-50%); } }
