/* ==========================================================================
   ELLEVUX — page styles
   Service pages, Book a call, Pricing, legal pages and 404.
   Loads after ellevux.css. Core components first; tokens only; no new radii.
   ========================================================================== */

/* ---------- Page hero (pill → h1 → lead → buttons) ---------- */
.page-hero { padding-top: clamp(56px, 2rem + 4vw, 88px); text-align: center; }
.page-hero .pill { margin-bottom: 28px; }
.page-hero .display { max-width: 1000px; margin-inline: auto; }
.page-hero .lead { max-width: 700px; margin: 22px auto 0; text-wrap: balance; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero:last-child { padding-bottom: var(--section-y); } /* a page that is only its hero (Pricing) */
.section-head .lead, .cta .lead { text-wrap: balance; }

/* breadcrumb inside the hero pill: Services / <Name> */
.pill__sep { color: var(--text-4); }
.pill__here { color: var(--text); }

/* ---------- Demo stage: halftone glow behind the product window ---------- */
.stage { position: relative; margin-top: 64px; overflow-x: clip; }
/* the glow box ends at the demo's bottom edge, so its radial mask fades the dots out
   beside the window instead of leaving a dotted band under it (matches the home hero) */
.stage__glow { left: 50%; top: -96px; bottom: 32px; width: 1480px; transform: translateX(-50%); } /* 32px: clears windows shorter than the 480px frame */
.stage__frame { position: relative; z-index: 1; max-width: 960px; min-height: 480px; margin-inline: auto; }

/* ---------- What it does: three ruled columns ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.point { position: relative; padding: 28px 32px 8px; border-left: 1px solid var(--line); }
.point:first-child { padding-left: 0; border-left: 0; }
.point:last-child { padding-right: 0; }
.point::before { content: ""; position: absolute; top: -1px; left: -1px; width: 32px; height: 1px; background: var(--text-2); }
.point:first-child::before { left: 0; }
.point__ix { display: block; margin-bottom: 40px; font-family: var(--font-mono); font-size: 12px; line-height: 1; letter-spacing: 0; color: var(--text-3); }
.point__title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.022em; color: var(--text); }
.point__text { margin-top: 10px; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* ---------- One of six: service index rows ---------- */
.svc-list { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.svc-list > li { border-bottom: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 32px minmax(0, 190px) minmax(0, 1fr) 16px; grid-template-areas: "icon name desc go";
  align-items: center; column-gap: 20px; padding: 18px 8px;
}
.svc-row .menu__icon { grid-area: icon; color: var(--text-2); transition: color var(--d-md) var(--ease), border-color var(--d-md) var(--ease); }
.svc-row__name { grid-area: name; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.svc-row__desc { grid-area: desc; font-size: 15px; line-height: 1.5; color: var(--text-3); transition: color var(--d-md) var(--ease); }
.svc-row__go { grid-area: go; color: var(--text-4); transition: color var(--d-md) var(--ease), transform var(--d-lg) var(--ease); }
.svc-row__go svg { width: 16px; height: 16px; }
.svc-row:hover .menu__icon { color: var(--text); border-color: var(--line-3); }
.svc-row:hover .svc-row__desc { color: var(--text-2); }
.svc-row:hover .svc-row__go { color: var(--text); transform: translateX(2px); }
.svc-row:focus-visible { outline-offset: -2px; border-radius: var(--r-ui); }

/* ---------- The details: grid of slots ---------- */
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.details-grid .slot { justify-content: flex-start; min-height: 196px; padding: 26px 28px; }
.details-grid .slot:first-child { grid-column: 1 / -1; min-height: 248px; }
.details-grid .slot__title { margin-top: auto; padding-top: 28px; font-size: 17px; }

/* ---------- Book a call ---------- */
.book-section { padding: 64px 0 var(--section-y); }
.book { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 1rem + 3vw, 64px); align-items: start; }
.book__calendar { min-height: 620px; }
.aside-block { padding-top: 24px; border-top: 1px solid var(--line-2); }
.aside-block + .aside-block { margin-top: 40px; }
.aside-block__head { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.02em; color: var(--text); }
.aside-block__text { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.aside-block .slot--inline { margin-top: 16px; }
.aside-block__link { margin-top: 14px; font-size: 15px; }
.mini-list { margin-top: 16px; border-top: 1px solid var(--line); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text-2); transition: color var(--d-md) var(--ease); }
.mini-row svg { width: 16px; height: 16px; color: var(--text-3); }
.mini-row__go { margin-left: auto; transition: transform var(--d-lg) var(--ease); }
.mini-row__go svg { width: 14px; height: 14px; color: var(--text-4); }
.mini-row:hover { color: var(--text); }
.mini-row:hover .mini-row__go { transform: translateX(2px); }
.mini-row:hover .mini-row__go svg { color: var(--text); }

/* ---------- Legal ---------- */
.legal { padding: clamp(56px, 2rem + 4vw, 88px) 0 var(--section-y); }
.legal .eyebrow { margin-bottom: 16px; }
.legal__date { margin-top: 20px; font-size: 14px; color: var(--text-3); }
.legal__intro { margin-top: 28px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.legal__prose { margin-top: 8px; }
.legal__prose h2 { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--text); }
.legal__prose h3 { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--text); }
.legal__prose p, .legal__prose li { font-size: 16px; line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.legal__prose p { margin-top: 12px; }
.legal__prose h3 + ul { margin-top: 8px; }
.legal__prose ul { margin-top: 12px; padding-left: 1.25em; list-style: disc; }
.legal__prose li + li { margin-top: 8px; }
.legal__prose li::marker { color: var(--text-4); }
.legal__prose .slot { margin-top: 16px; }
.legal__prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color var(--d-md) var(--ease); }
.legal__prose a:hover { text-decoration-color: currentColor; }

/* ---------- 404 ---------- */
.nf { padding: clamp(72px, 3rem + 6vw, 152px) 0 var(--section-y); text-align: center; }
.nf .eyebrow { margin-bottom: 20px; }
.nf .lead { max-width: 560px; margin: 22px auto 0; }
.nf .btn-row { margin-top: 36px; }
.nf__more { max-width: 960px; margin: clamp(80px, 4rem + 3vw, 128px) auto 0; padding-top: 28px; border-top: 1px solid var(--line); text-align: left; }
.nf__label { margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; color: var(--text-3); }
.nf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; margin-inline: -12px; }
.tile { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: var(--r-ui); transition: background-color var(--d-md) var(--ease); }
.tile:hover { background: var(--surface-3); }
.tile__name { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.tile__desc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .book { grid-template-columns: 1fr; }
  .nf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .points { grid-template-columns: 1fr; border-top: 0; }
  .point, .point:first-child, .point:last-child { padding: 24px 0 36px; border-left: 0; border-top: 1px solid var(--line-2); }
  .point::before { left: 0; }
  .point__ix { margin-bottom: 24px; }
}
@media (max-width: 639px) {
  .stage { margin-top: 48px; }
  .stage__glow { top: -64px; width: 960px; }
  .stage__frame { min-height: 400px; }
  .svc-row { grid-template-columns: 32px minmax(0, 1fr) 16px; grid-template-areas: "icon name go" "icon desc go"; align-items: start; row-gap: 2px; padding: 16px 0; }
  .svc-row__name { line-height: 1.4; }
  .svc-row__desc { font-size: 14px; }
  .svc-row__go { align-self: center; }
  .details-grid { grid-template-columns: 1fr; }
  .details-grid .slot, .details-grid .slot:first-child { min-height: 168px; padding: 22px; }
  .book-section { padding-top: 48px; }
  .book__calendar { min-height: 520px; }
  .nf__grid { grid-template-columns: 1fr; }
}
