/* Tiraz Labs: program page (programs.html#p-<slug>, rendered by product.js into #product-root). Owner: programs agent (R).
   v3 "Editorial precision": white hero with an honest, labelled interface sketch; mist/white sections; one primary per view.
   Mobile first (390), tokens only, logical properties only. Scope: #product-root. */

/* ======================================================================
   Hero
   ====================================================================== */
#product-root .pd-hero { --ph-pad: clamp(16px, .4rem + 3vw, 48px); padding-block-end: clamp(56px, 2rem + 5vw, 120px); background: var(--bg); }
#product-root .pd-crumb { margin-block-end: clamp(20px, 3vw, 40px); }
#product-root .pd-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--t-small); font-weight: 500; color: var(--text-soft); text-decoration: none; transition: color var(--dur-1) var(--ease-out); }
#product-root .pd-back:hover { color: var(--accent); }
#product-root .pd-back-ico { flex: none; transition: transform var(--dur-2) var(--ease-out); }
html[dir="rtl"] #product-root .pd-back-ico { transform: scaleX(-1); }
#product-root .pd-back:hover .pd-back-ico { transform: translateX(-3px); }
html[dir="rtl"] #product-root .pd-back:hover .pd-back-ico { transform: scaleX(-1) translateX(-3px); }
#product-root .pd-hidden { margin: 0 0 24px; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--warn-soft); color: var(--text); font-size: var(--t-small); }

#product-root .pd-hero-grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
#product-root .pd-hero-text { display: grid; gap: 20px; justify-items: start; min-width: 0; }
#product-root .pd-title { margin: 0; max-width: 14ch; }
#product-root .pd-value { margin: 0; max-width: var(--measure-lead); color: var(--text-soft); }
#product-root .pd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
#product-root .pd-price-line { font-size: var(--t-small); color: var(--text-faint); }
#product-root .pd-ctas { margin-block-start: 8px; }
#product-root .pd-hero-media { min-width: 0; }
@media (min-width: 1080px) {
  #product-root .pd-hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  #product-root .pd-hero-text { grid-column: 1 / span 5; }
  #product-root .pd-hero-media { grid-column: 7 / -1; }
}

/* ======================================================================
   The illustrative interface panel (an SVG skeleton: no figures, no data). Colours from tokens, so it follows the theme.
   ====================================================================== */
#product-root .pg-scr { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-media); background: var(--surface); box-shadow: var(--shadow-2); }
#product-root .pg-scr-bar { display: flex; align-items: center; height: 36px; padding-inline: 16px; border-block-end: 1px solid var(--line); background: var(--surface-2); }
#product-root .pg-scr-dots { display: inline-flex; gap: 6px; direction: ltr; }
#product-root .pg-scr-dots > i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
#product-root .pg-scr-svg { display: block; width: 100%; height: auto; }
#product-root .pg-scr .media-tag { inset-block-start: 5px; inset-inline-start: auto; inset-inline-end: 10px; box-shadow: none; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); }
#product-root .pg-scr.is-shot { border: 0; box-shadow: var(--shadow-media); }
#product-root .pg-scr.is-shot > img { display: block; width: 100%; height: auto; }

#product-root .pg-scr-svg * { stroke-width: 1; }
#product-root .pg-scr-svg .s-side { fill: var(--surface-2); }
#product-root .pg-scr-svg .s-ln { stroke: var(--line); }
#product-root .pg-scr-svg .s-nav, #product-root .pg-scr-svg .s-pn2, #product-root .pg-scr-svg .s-thumb, #product-root .pg-scr-svg .s-track { fill: var(--surface-3); }
#product-root .pg-scr-svg .s-acf, #product-root .pg-scr-svg .s-ac, #product-root .pg-scr-svg .s-bell { fill: var(--accent-line); }
#product-root .pg-scr-svg .s-sk { fill: var(--surface-3); }
#product-root .pg-scr-svg .s-sk2 { fill: var(--line-2); }
#product-root .pg-scr-svg .s-pn { fill: var(--surface); stroke: var(--line); }
#product-root .pg-scr-svg .s-tbl { fill: var(--surface-2); stroke: var(--line-2); }
#product-root .pg-scr-svg .s-tbl.is-busy { fill: var(--accent-soft); stroke: rgba(var(--accent-rgb), .45); }
#product-root .pg-scr-svg .s-chair, #product-root .pg-scr-svg .s-car { fill: var(--line-2); }
#product-root .pg-scr-svg .s-btn { fill: var(--accent-fill); }
#product-root .pg-scr-svg .s-btnsk { fill: var(--accent-ink); opacity: .72; } /* skeleton text on the action fill */
#product-root .pg-scr-svg .s-bar, #product-root .pg-scr-svg .s-funnel { fill: var(--accent-soft-2); }
#product-root .pg-scr-svg .s-ink { fill: var(--text); opacity: .78; }
#product-root .pg-scr-svg .s-qr { fill: none; stroke: var(--text); stroke-width: 4; opacity: .78; }
#product-root .pg-scr-svg .s-phone { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
#product-root .pg-scr-svg .s-hero, #product-root .pg-scr-svg .s-soft, #product-root .pg-scr-svg .s-bubble { fill: var(--accent-soft); }
#product-root .pg-scr-svg .s-plus { stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; }
#product-root .pg-scr-svg .s-street { stroke: var(--line); }
#product-root .pg-scr-svg .s-zone { fill: var(--surface-2); }
#product-root .pg-scr-svg .s-route { fill: none; stroke: var(--accent-line); stroke-width: 2.5; stroke-linejoin: round; }
#product-root .pg-scr-svg .s-pin { fill: var(--surface); stroke: var(--accent-line); stroke-width: 2; }
#product-root .pg-scr-svg .s-sign { fill: none; stroke: var(--text-faint); stroke-width: 1.5; stroke-linecap: round; }
#product-root .pg-scr-svg .s-trackc { fill: none; stroke: var(--surface-3); stroke-width: 10; }
#product-root .pg-scr-svg .s-arc { fill: none; stroke: var(--accent-line); stroke-width: 10; stroke-dasharray: 68 100; stroke-linecap: round; }
#product-root .pg-scr-svg .s-cell { fill: var(--surface); stroke: var(--line); }
#product-root .pg-scr-svg .s-cell.is-sel { stroke: var(--accent-line); stroke-width: 1.5; }
#product-root .pg-scr-svg .s-lineac { fill: none; stroke: var(--accent-line); stroke-width: 2.5; stroke-linecap: round; }

/* ======================================================================
   What it does · who it's for · facts
   ====================================================================== */
#product-root .pd-what h2, #product-root .pd-feats h2, #product-root .pd-faq h2, #product-root .pd-next h2 { margin: 0; max-width: 16ch; }
#product-root .pd-desc { margin: 24px 0 0; max-width: var(--measure-lead); font-size: var(--t-lead); line-height: 1.7; color: var(--text-soft); }
html[lang="en"] #product-root .pd-desc { line-height: 1.55; }
#product-root .pd-what-side { display: grid; gap: 32px; min-width: 0; }
#product-root .pd-for { display: grid; gap: 8px; }
#product-root .pd-for h3 { margin: 0; }
#product-root .pd-for-t { margin: 0; color: var(--text-soft); max-width: 44ch; }
#product-root .pd-facts { margin: 0; }
#product-root .pd-facts dd { margin: 0; }

/* ======================================================================
   Features: a calm two-column list with line icons
   ====================================================================== */
#product-root .pd-feats-grid, #product-root .pd-faq-grid { display: grid; gap: var(--head-gap) var(--col-gap); }
@media (min-width: 900px) {
  #product-root .pd-feats-grid, #product-root .pd-faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  #product-root .pd-feats-grid > h2, #product-root .pd-faq-grid > h2 { grid-column: 1 / span 4; }
  #product-root .pd-feat-list, #product-root .pd-faq-list { grid-column: 6 / -1; }
}
#product-root .pd-feat-list { display: grid; column-gap: var(--col-gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { #product-root .pd-feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#product-root .pd-feat { display: flex; align-items: center; gap: 16px; min-width: 0; padding-block: 20px; border-block-start: 1px solid var(--line); }
#product-root .pd-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent-line); }
#product-root .pd-ico svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#product-root .pd-feat-t { font-size: var(--t-body); font-weight: 500; line-height: 1.5; color: var(--text); }

/* ======================================================================
   FAQ
   ====================================================================== */
#product-root .pd-faq-list { border-block-end: 1px solid var(--line); }
#product-root .pd-q { border-block-start: 1px solid var(--line); }
#product-root .pd-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 14px; cursor: pointer; list-style: none;
  font-size: var(--t-body); font-weight: 500; color: var(--text); }
#product-root .pd-q > summary::-webkit-details-marker { display: none; }
#product-root .pd-q > summary:hover { color: var(--accent); }
#product-root .pd-q-ico { position: relative; flex: none; width: 14px; height: 14px; }
#product-root .pd-q-ico::before, #product-root .pd-q-ico::after { content: ""; position: absolute; inset-inline-start: 0; top: 6.25px; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--dur-2) var(--ease-out); }
#product-root .pd-q-ico::after { transform: rotate(90deg); }
#product-root .pd-q[open] .pd-q-ico::after { transform: rotate(0deg); }
#product-root .pd-q-a { padding-block-end: 20px; }
#product-root .pd-q-a p { margin: 0; max-width: var(--measure); color: var(--text-soft); }

/* ======================================================================
   Next step: the interest form
   ====================================================================== */
#product-root .pd-next-text { display: grid; gap: 16px; justify-items: start; }
#product-root .pd-next-lead { margin: 0; max-width: 44ch; color: var(--text-soft); }
#product-root .pd-next-alt { margin: 0; }
#product-root .pd-form-box { min-width: 0; }
#product-root .pd-form { display: grid; gap: 18px; }
#product-root .pd-form-h { margin: 0; }
#product-root .pd-form .field { margin: 0; }
#product-root .pd-form textarea.input { min-height: 112px; resize: vertical; }
#product-root .pd-opt { font-weight: 400; color: var(--text-faint); }
#product-root .pd-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#product-root .pd-form-err { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--bad-soft); color: var(--text); font-size: var(--t-small); }
#product-root .pd-form-err p { margin: 0; }
#product-root .pd-form-err:focus { outline: none; }
#product-root .pd-done { display: grid; gap: 16px; justify-items: start; padding-block: 8px; }
#product-root .pd-done-ico { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ok-soft); }
#product-root .pd-done-ico::after { content: ""; position: absolute; left: 15px; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); /* physical: a check mark */ }
#product-root .pd-done-t { margin: 0; font-size: var(--t-h4); font-weight: 600; color: var(--text); }
#product-root .pd-done-t:focus { outline: none; }
#product-root .pd-visit { display: grid; gap: 16px; }
#product-root .pd-visit p { margin: 0; color: var(--text-soft); }

/* ======================================================================
   Other programs
   ====================================================================== */
#product-root .pd-others-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-block-end: 24px; }
#product-root .pd-others-head h2 { margin: 0; }
#product-root .pd-others-list { margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { #product-root .pd-others-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { #product-root .pd-others-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#product-root .pd-others-list > li { display: flex; min-width: 0; }
#product-root .pd-o { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 88px; padding: 18px 22px; }
#product-root .pd-o-txt { display: grid; gap: 2px; min-width: 0; }
#product-root .pd-o-name { font-weight: 600; color: var(--text); }
#product-root .pd-o-sector { font-size: var(--t-small); color: var(--text-faint); }
#product-root .pd-o:hover .pd-o-name { color: var(--accent); }

/* ======================================================================
   404
   ====================================================================== */
#product-root .pd-nf-head .page-extra { display: grid; gap: clamp(40px, 5vw, 56px); width: 100%; max-width: 640px; }
#product-root .pd-nf-h { margin: 0 0 8px; font-weight: 500; color: var(--text-faint); }
#product-root .pd-nf-list ul { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); }
#product-root .pd-nf-a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 56px; padding-block: 12px; border-block-end: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
#product-root .pd-nf-s { font-size: var(--t-small); font-weight: 400; color: var(--text-faint); }
#product-root .pd-nf-a > .ia-arrow { margin-inline-start: auto; color: var(--text-faint); }
#product-root .pd-nf-a:hover { color: var(--accent); }
#product-root .pd-nf-a:hover > .ia-arrow { color: var(--accent); }

/* the h1 takes focus on route changes (tabindex=-1): no ring on a non-interactive heading */
#product-root #prod-title:focus { outline: none; }
#product-root .text-link { min-height: 44px; }
