/*
  Jazari AI page CSS. Loaded after the taste kit (assets/*.css).
  1. Palette: the co-founders' brief. Night ink #0F1B2A, sand #F4EDE1, brass #C9A45C (accent on dark only),
     dark brass #8A6A2A (accent text on light), tile teal #1F7A75 (secondary, sparingly). Never brass text on sand.
  2. Page CSS the recipes ask for: the app-frame, one --p-h per card group, frames inside visuals.
*/

/* ---------- 1. Palette ---------- */
html[data-palette] {
  /* the sand bands (#workflow, #about; ground-inverse): night ink on sand. Dark brass is the brief's #8A6A2A taken
     a shade darker (#7d6024) so it reaches 4.5:1 on sand and on the sand surface (AA for body text) */
  --p-inv-bg: #f4ede1; --p-inv-surface: #ebe2d2; --p-inv-ink: #0f1b2a; --p-inv-muted: #4b5666;
  --p-inv-accent: #7d6024; --p-inv-accent-ink: #ffffff; --p-inv-action: #7d6024; --p-inv-action-ink: #ffffff;
  /* brass: the one accent on the dark ground; buttons carry night ink on brass */
  --p-accent: #c9a45c; --p-accent-ink: #0f1b2a; --p-action: #c9a45c; --p-action-ink: #0f1b2a;
  --p-ink: #f4ede1;
  --p-teal: #1f7a75;
}
html[data-palette="night-brass"] { --p-bg: #0f1b2a; --p-surface: #162539; --p-muted: #a3b0bf; }

/* ---------- 2. The app-frame (sections-library.md, app-frame: the whole recipe) ---------- */
.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; }
}

/* ---------- one --p-h per card group ---------- */
#services .panel { --p-h: 352px; }
#process .panel { --p-h: 300px; }
@media (max-width: 639px) {
  #services .panel { --p-h: 148px; }
  .hero__media .ly-float { display: none; }
  #process .panel { --p-h: 240px; }
}

/* ---------- frames inside visuals ---------- */
#use-cases .frame, #examples .frame { aspect-ratio: auto; height: 100%; min-height: 420px; }
@media (max-width: 639px) { #use-cases .frame, #examples .frame { min-height: 360px; } }
/* a diagram on a lit panel reads in the lit ground's ink */
#services .panel > .dg { --ink: var(--ground-ink); --muted: var(--ground-ink); --bg: var(--ground-bg); --surface: var(--ground-surface); --card: #ffffff; --frag: #ffffff; color: var(--ground-ink); }
/* close-word: the name hand-set per breakpoint so it never runs past the wrap */
/* #examples: the audience after each workflow name */
.example__who { color: var(--muted); font-weight: 400; margin-left: var(--s-2); }
#use-cases .use-cases__intro { margin-top: var(--s-5); }
#use-cases .rows { margin-top: var(--s-6); }
#examples .rows { margin-top: var(--s-4); }
#about .frame--photo { background: var(--p-inv-surface); }
#audit .audit__text > p { margin-top: var(--s-5); }
#audit .audit__call { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
#audit .audit__call h3 { font: 500 var(--t-card)/1.3 var(--font-text); }
#audit .grid, #about .grid, #reviews .grid { align-items: stretch; }
#audit .audit__text { display: flex; flex-direction: column; }
#about .frame--photo { height: 100%; }
#reviews .quote.card { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-6); margin: 0; }
#reviews .quote--lead blockquote { font-size: var(--t-h3); }
#reviews .quote--small blockquote { font-size: var(--t-lead); }
#reviews .reviews__side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 639px) { #audit > .wrap > .fill { flex: 1 0 auto; } }

/* ---------- tablet and phone screens ---------- */
/* the steps stack (1024-1279: two cards, then the third across the row): two screens there */
@media (max-width: 639px) { #process { --hm: 2; } }
@media (min-width: 1024px) and (max-width: 1279px) { #services .panel { --p-h: 160px; } #services h2 .muted, #use-cases .use-cases__intro { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { #services { --h: 2; } }
/* the dealt grounds (bg-dusk, bg-dots) set their own minimum height: --g-screen gives them their screens */
#services { --g-screen: calc(2 * 100svh); }
#faq { --g-screen: 100svh; }
@media (max-width: 639px) {
  #services { --g-screen: calc(2 * 100lvh); }
  #faq { --g-screen: 100lvh; }
}
/* the FAQ's search box: a fragment on the lit ground under the heading */
#faq .faq__visual { margin-top: var(--s-6); height: 300px; }
@media (max-width: 639px) { #faq .faq__visual { height: 430px; } }
@media (max-width: 639px) { #faq { --hm: 2; --g-screen: calc(2 * 100lvh); } }

/* ---------- the brief's sections ---------- */
/* a line icon in a small tile: brass on the surface, teal is kept for the hero's live dot */
.glyph { display: contents; }
.glyph-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md, 10px);
  background: var(--surface); border: 1px solid var(--line); color: var(--accent); margin-bottom: var(--s-3); }
.hero__kicker .dot { background: var(--p-teal); }
.hero__trust { margin-top: var(--s-5); font-size: var(--t-small); color: var(--muted); }
/* the hero h1 is the brief's long line: set a step smaller so it holds 4 lines in its column */
.hero { --ly-h1: clamp(38px, 3.9vw, 56px); }
/* #problem: the three problems beside the notifications */
#problem .problem__list { display: grid; gap: var(--s-6); margin-top: var(--s-7); }
#problem .problem__item { display: grid; gap: var(--s-3); justify-items: start; }
#problem .problem__item .glyph-tile { margin: 0; }
#problem .problem__item p { color: var(--muted); font-size: var(--t-lead); }
#problem .problem__item strong { color: var(--ink); font-weight: 500; }
#problem .problem__visual { aspect-ratio: auto; height: 100%; min-height: 360px; }
/* #why: the icon tiles take the screen under the heading, two by two */
#why .why__tiles .cx-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }
#why .why__tiles .cx-tiles__chip .ic { --ic-s: 22px; }
@media (max-width: 639px) { #why .why__tiles .cx-tiles__grid { grid-template-columns: minmax(0, 1fr); } }
/* the footer's legal row: copyright and links on one line, wrapping on the margin */
.footer__legal-main { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
@media (max-width: 639px) { .footer__legal-main { flex-direction: column; gap: 0; } .footer__legal-main > * { min-height: 44px; display: flex; align-items: center; } }
/* #audit: the call takes what the column leaves */
#audit .audit__voice { margin-top: var(--s-6); flex: 1 1 auto; min-height: 280px; }
@media (max-width: 639px) { #audit .audit__voice { min-height: 150px; max-height: 150px; flex: none; } #audit .audit__call { margin-top: var(--s-5); } #audit textarea { min-height: 88px; } }
/* #pricing: the two plans */
#pricing .price { margin: var(--s-2) 0; }
#pricing .grid { align-items: stretch; }
#pricing .price .muted { font-size: var(--t-small); }
@media (max-width: 1023px) { #pricing .card--plan { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  #pricing, #problem, #why { --hm: 2; }
  .hero { --ly-h1: 32px; }
  .hero__trust { display: none; }
  #problem .problem__visual { min-height: 300px; }
  #examples > .wrap > .fill { flex: 1 0 auto; }
  #audit .ui-voice__orb { display: none; }
  #process .panel { --p-h: 150px; }
  #use-cases > .wrap > .fill, #problem > .wrap > .fill { flex: 1 0 auto; }
}
