/* Landing page CSS. Only what the kit leaves to the page: the inside of each visual
   (the hero window, the app frame, the step-card mocks, the diagram frame) and the logo image. */

/* the client's own logo beside the name */
.nav__logo .nav__img { width: 28px; height: 28px; flex: none; border-radius: 8px; }

/* ---------- hero: the inbox window on the lit ground, the small card over its lower-left ---------- */
.hero__art {
  background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg);
}
.hero__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 0 96px; }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
@media (max-width: 639px) { .ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 96px; } .ly-piece--main .d-row .num { display: none; } }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* the mock's own small parts (inside visuals only) */
.d-thumb--anon, .d-thumb--voice { display: grid; place-items: center; font: 600 15px/1 var(--font-text); color: #1d4ed8; background: #e6eefc !important; }
.d-thumb--voice { font-size: 12px; color: #0f172a; background: #e9edf2 !important; }
.d-chip--new { background: #e6eefc; color: #1d4ed8; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line > span:first-of-type { min-width: 0; flex: 1 1 auto; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e6eefc; color: #1d4ed8; font-style: normal; font-size: 13px; font-weight: 700; }
.d-note__line i.warn { background: #fbe6e3; color: #a3271b; }
.d-note__line b { font-weight: 500; color: #16181a; }
.d-link { margin: 10px 0 4px; padding: 9px 12px; border-radius: 8px; background: #f1f5f9; font-size: 13px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-count { font: 500 13px/1 var(--font-mono); color: #5d6268; }
.d-compose__text { margin: 10px 0 12px !important; padding: 10px 12px; min-height: 64px; border-radius: 8px; border: 1px solid rgb(15 23 42 / .12); color: #16181a !important; font-size: 14px !important; line-height: 1.45; }
.d-compose__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-attach { font-size: 13px; color: #475569; }
.d-send { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 500; }
.d-act { flex: none; font-size: 13px; font-weight: 500; color: #1d4ed8; }
.d-act--warn { color: #a3271b; }

/* nav-cards: the three menu cards' panels hold one small card at their corner */
.menu-card .panel { --p-h: 200px; background: radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%), var(--ground-bg); }
.menu-mini { width: 300px; }

/* ---------- app frame (sections-library.md, app-frame: the recipe's page CSS) ---------- */
.app.ui { 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; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@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: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .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; }
}
/* the opened message: the anonymous sender's bubble takes the pane, the input says replies are off */
.app .ui-chat .ui-avatar { width: 28px; height: 28px; font-size: 13px; }
.app .ui-chat__input { justify-content: center; }

/* ---------- steps: three cards, each with an inset panel on the lit ground ---------- */
.step-cards .panel { --p-h: 248px; background: radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%), var(--ground-bg); }
.step-cards .d-card { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.step-cards .d-note__line:first-of-type { border-top: 1px solid rgb(0 0 0 / .06); }
.step-cards .stage > .at-rise { --ax: 20px; --ay: 28px; --fit-max: 300px; }
.step-cards > .card { grid-column: 1 / -1; }
@media (min-width: 1024px) { .step-cards > .card { grid-column: auto / span 4; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .step-cards > .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-rows: min-content; column-gap: var(--s-6); align-content: start; }
  .step-cards > .card > :not(.panel) { grid-column: 1; }
  .step-cards > .card > .panel { grid-column: 2; grid-row: 1 / span 4; --p-h: 208px; margin: calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) 0; border-radius: calc(var(--c-r) - var(--c-gap)); }
}
@media (max-width: 639px) { .step-cards .panel { --p-h: 208px; } .step-cards .stage > .at-rise { --ay-sm: 20px; } .step-cards > .card > .panel { margin-top: var(--s-5); } }

/* ---------- filters: the facts as plain lines, the diagram on the lit ground ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.facts li { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.frame--diagram { background: radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%), var(--ground-bg); }
.frame--diagram > .dg { position: absolute; inset: var(--s-6); }

/* neutral state for read messages in the mocks */
.d-chip--read { background: #eef1f5; color: #475569; }
/* the opened message's photo attachment */
.app .ui-msg__media { display: block; margin-top: 12px; max-width: 420px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--u-line); }
.app .ui-msg__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* the input line states a limit, so it reads at full ink */
.app .ui-chat__ph { color: var(--u-ink, #16181a); }

/* FAQ: the photograph under the heading */
.faq__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); margin-top: var(--s-6); }
@media (max-width: 1023px) { .faq__photo { aspect-ratio: 16 / 10; } }

/* the diagram's frame: taller on a phone so its labels fit */
@media (max-width: 639px) { .frame--diagram { --ratio: 120%; } .frame--diagram > .dg { inset: var(--s-4); } }

/* the window's selected view reads as a place in the app, not a button: a bar, no fill */
.app .ui-win__nav.is-on { background: transparent; box-shadow: inset 2px 0 0 var(--action); border-radius: 0; }

/* a phone shows the window's head and two whole rows: the frame's foot never cuts a line of text */
@media (max-width: 639px) {
  .ly-piece--main .d-tabs { display: none; }
  .ly-piece--main .d-row:nth-child(n+3) { display: none; }
}
