/* Shubh Saathi page layer — ported from the PM's 2026-11 UI kit by scripts/saathi/port_design.py (re-run it, never hand-edit). docs/PANDIT.md §5e */
/* =====================================================================================================================
   Shubh Saathi — page layer (2026-11 UI kit). Loads AFTER pandit.css, which still styles the call, summary, sheets and dialogs.
   Brand tokens (brand.css) stay the source of truth: Ivory page, Blush bands, Paper cards, Petal Line, Sindoor Wine for buttons and
   headings, muted gold for ornament only. The kit adds four illustrated AI companions, line icons and four ornaments, used sparingly:
   one mandala in the hero corner, one arch behind the hero portrait, one cloud under "how it works", two lotus dividers, one mandala in
   the closing band. Breakpoints follow brand.css: ≤1024 tablet, ≤767 phone.
   ===================================================================================================================== */
body.pd-page { margin: 0; }
.pd-page { --sx-gold: var(--sm-champagne); --sx-gold-ink: #9C3F3C; --sx-art-bg: var(--sm-surface); --sx-tint: var(--sm-icon-well); --sx-lit: var(--sm-wine-soft);
  --sx-lift: 0 18px 40px -30px rgba(90, 30, 40, .55); }

/* ── type + rhythm ── */
.sm .sx-h1 { margin: 0; font: 600 clamp(42px, 4.6vw, 66px)/1.03 var(--sm-serif); color: var(--sm-wine); letter-spacing: -.01em; text-wrap: balance; }
.sm .sx-h2 { margin: 0; font: 600 clamp(30px, 2.9vw, 42px)/1.08 var(--sm-serif); color: var(--sm-wine); text-wrap: balance; }
.sx-sub { margin: 10px 0 0; max-width: 40em; font-size: 16.5px; line-height: 1.55; color: var(--sm-text); }
.sx-sec { padding: clamp(44px, 5vw, 72px) 0; }
.sx-head { margin-bottom: clamp(22px, 2.6vw, 34px); }
.sx-head-c { text-align: center; }
.sx-head-c .sx-sub { margin-inline: auto; }

/* icons: the kit's line icons, inlined so they take the brand colour */
.sx-ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--sx-tint); color: var(--sm-wine); }
.sx-ic svg { width: 27px; height: 27px; }
.sx-ic-round { width: 60px; height: 60px; border-radius: 50%; background: var(--sm-surface); border: 1px solid var(--sm-line); }

/* ornaments */
.sx-mandala { position: absolute; width: clamp(180px, 22vw, 300px); opacity: .22; pointer-events: none; }
.sx-lotus { display: block; width: min(420px, 70%); height: auto; margin: 0 auto; opacity: .9; }

/* ── 1 · hero: the banner photograph fills the band; copy on the plain wall at its left, helped by a soft ivory wash ── */
.sx-hero { position: relative; overflow: hidden; background: var(--sm-bg-alt); border-bottom: 1px solid var(--sm-line); }
.sx-hero-media { position: absolute; inset: 0; }
.sx-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 6%; }
.sx-hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251, 247, 242, .96) 0%, rgba(251, 247, 242, .88) 32%, rgba(251, 247, 242, .3) 52%, rgba(251, 247, 242, 0) 62%); }
.sx-hero-in { position: relative; display: flex; align-items: center; min-height: clamp(540px, 42vw, 660px); padding-top: 40px; padding-bottom: 48px; }
.sx-hero-copy { width: min(600px, 100%); }
.sx-lockup { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 18px; font: 600 22px/1.1 var(--sm-serif); color: var(--sm-wine); }
.sx-lockup-hi { font: 500 18px/1.1 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Kohinoor Devanagari', 'Mangal', var(--sm-serif); color: var(--sx-gold-ink); }
.sx-lead { margin: 18px 0 0; max-width: 33em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--sm-ink); }
.sx-askbox { box-sizing: border-box; width: 100%; max-width: 560px; display: flex; align-items: center; gap: 6px; margin-top: 26px; padding: 6px;
  background: var(--sm-surface); border: 1.5px solid rgba(125, 46, 62, .28); border-radius: 999px; box-shadow: var(--sx-lift); }
.sx-askbox:focus-within { border-color: var(--sm-wine); box-shadow: 0 0 0 4px rgba(125, 46, 62, .1), var(--sx-lift); }
.sx-askbox-in { flex: 1 1 0; width: 0; min-width: 0; height: 48px; padding: 0 16px; border: 0; background: none; color: var(--sm-ink); font: 400 17px/1 var(--sm-sans); outline: none; }
.sx-askbox-in::placeholder { color: var(--sm-muted); }
.sx-askbox .sm-btn { flex: none; min-height: 48px; padding: 10px 26px; }
.sx-feats { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.sx-feats li { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1.3 var(--sm-sans); color: var(--sm-ink); }
.sx-feats svg { width: 22px; height: 22px; color: var(--sm-wine); }

/* ── 2 · what you can ask ── */
.sx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sx-tile { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 3px; align-items: center;
  padding: 18px; text-align: left; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 20px; cursor: pointer; color: inherit; font: inherit;
  transition: border-color .2s var(--sm-ease), box-shadow .2s var(--sm-ease), transform .2s var(--sm-ease); }
.sx-tile .sx-ic { grid-row: 1 / span 2; }
.sx-tile b { align-self: end; font: 600 22px/1.15 var(--sm-serif); color: var(--sm-wine); }
.sx-tile > span:last-child { align-self: start; font-size: 14.5px; line-height: 1.4; color: var(--sm-text); }
.sx-tile:hover { border-color: rgba(125, 46, 62, .45); box-shadow: var(--sx-lift); transform: translateY(-2px); }
.sx-tile:hover .sx-ic { background: var(--sm-wine); color: #fff; }

/* ── 3 · how it works ── */
.sx-how { background: var(--sm-bg-alt); }
.sx-cloud { display: block; width: min(260px, 60%); height: auto; margin: 10px auto 0; opacity: .75; }
.sx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.sx-steps::before { content: ""; position: absolute; top: 30px; left: 16.6%; right: 16.6%; height: 1px; background: repeating-linear-gradient(90deg, var(--sx-gold) 0 6px, transparent 6px 12px); opacity: .6; }
.sx-steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; counter-increment: sxstep; }
.sx-steps .sx-ic { margin-bottom: 8px; }
.sx-steps b { font: 600 22px/1.2 var(--sm-serif); color: var(--sm-wine); }
.sx-steps b::before { content: counter(sxstep) ". "; color: var(--sx-gold-ink); }
.sx-steps li > span:last-child { max-width: 22em; font-size: 15px; line-height: 1.5; color: var(--sm-text); }
.sx-steps { counter-reset: sxstep; }

/* ── 4 · companions: pandit.js draws .ss-card > .ss-pick(.ss-portrait + .ss-pbody) + .ss-acts ── */
#pdPick .pd-personas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; padding: 0; overflow: visible; }
#pdPick .ss-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--sm-surface); border: 1px solid var(--sm-line);
  border-radius: 24px; overflow: hidden; box-shadow: none; transition: border-color .2s var(--sm-ease), box-shadow .2s var(--sm-ease), transform .2s var(--sm-ease); }
#pdPick .ss-card::before { display: none; }
#pdPick .ss-card:hover { border-color: rgba(125, 46, 62, .4); box-shadow: var(--sx-lift); transform: translateY(-2px); }
#pdPick .ss-card.is-on { border-color: var(--sm-wine); box-shadow: 0 0 0 1px var(--sm-wine), var(--sx-lift); }
#pdPick .ss-pick { position: relative; flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; text-align: left;
  background: none; border: 0; border-radius: 24px 24px 0 0; color: inherit; font: inherit; cursor: pointer; }
#pdPick .ss-portrait { display: block; margin: 12px 12px 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sm-bg-alt);
  border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px; box-shadow: inset 0 0 0 1px rgba(191, 162, 122, .45); }
#pdPick .ss-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
#pdPick .ss-portrait .ss-mono { display: grid; place-items: center; height: 100%; font-size: 64px; }
#pdPick .ss-pbody { display: grid; gap: 4px; padding: 14px 18px 12px; background: var(--sm-surface); flex: 1; align-content: start; }
#pdPick .ss-pname { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
#pdPick .ss-pname b { font: 600 26px/1.1 var(--sm-serif); color: var(--sm-wine); }
#pdPick .ss-ai { padding: 3px 9px; border: 0; border-radius: 999px; background: var(--sx-tint); color: var(--sm-wine); font: 600 11.5px/1.3 var(--sm-sans); letter-spacing: .02em; }
#pdPick .ss-role { font: italic 500 17.5px/1.25 var(--sm-serif); color: var(--sm-rose-text); }
#pdPick .ss-pdesc { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--sm-text); }
#pdPick .ss-pmeta { margin-top: 2px; font-size: 13px; color: var(--sm-muted); }
/* selected mark, top right of the portrait */
#pdPick .ss-pick::after { content: ""; position: absolute; top: 22px; right: 22px; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid rgba(125, 46, 62, .35); background: rgba(255, 253, 251, .9); }
#pdPick .ss-pick[aria-pressed="true"]::after { border: 0; background: var(--sm-wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
#pdPick .ss-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 18px; background: var(--sm-surface); }
#pdPick .ss-acts:has(> :only-child) { grid-template-columns: 1fr; }
#pdPick .ss-act { min-height: 44px; font-size: 15px; }
#pdPick .ss-card.is-on .ss-act[data-act="voice"] { background: var(--sm-wine); border-color: var(--sm-wine); color: #fff; box-shadow: var(--sm-shadow-btn); }

/* ── 5 · personalisation + start ── */
.sx-start-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.sx-start-main > .sx-sub { margin-bottom: 18px; }
#pdPick .pd-card { padding: 18px 20px; border-radius: 20px; }
#pdPick .pd-card-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#pdPick .pd-card-s { margin: 0; font-size: 15.5px; line-height: 1.5; }
#pdPick .pd-card-h .sm-btn { flex: none; }
#pdPick .pd-birth { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sm-line); }
#pdPick .ss-lang { margin-top: 20px; }
#pdPick .ss-h4 { margin: 0 0 10px; font-size: 15.5px; }
.sx-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 14px; color: var(--sm-muted); }
.sx-note svg { width: 20px; height: 20px; color: var(--sm-wine); flex: none; }
.sx-panel { position: sticky; top: 88px; }
#pdPick .ss-panel-card { padding: 20px; border-radius: 22px; box-shadow: var(--sx-lift); }
.sm .sx-panel-h { margin: 0 0 12px; font: 500 13.5px/1.2 var(--sm-sans); color: var(--sm-muted); }
#pdPick .ss-panel-who small { display: none; }
#pdPick .ss-panel-who .pd-av { width: 56px; height: 56px; }
#pdPick .pd-cta { margin-top: 16px; }

/* ── 6 · conversation preview ── */
.sx-talk { background: var(--sm-bg-alt); }
.sx-talk-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sx-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.sx-points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; font-size: 15.5px; line-height: 1.55; color: var(--sm-text); }
.sx-points .sx-ic { background: var(--sm-surface); }
.sx-points b { display: block; font: 600 21px/1.2 var(--sm-serif); color: var(--sm-wine); }
.sx-chat { margin: 0; }
.sx-chat-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-bottom: 0; border-radius: 22px 22px 0 0; }
.sx-chat-bar img { width: 44px; height: 44px; border-radius: 50%; }
.sx-chat-bar b { display: block; font: 600 21px/1.1 var(--sm-serif); color: var(--sm-wine); }
.sx-chat-bar small { font-size: 13px; color: var(--sm-muted); }
.sx-chat-feed { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 0 0 22px 22px; }
.sx-b { max-width: 88%; padding: 11px 15px 12px; border-radius: 18px; font-size: 15.5px; line-height: 1.55; color: var(--sm-ink); }
.sx-b-me { align-self: flex-end; background: var(--sm-bg-alt); border-bottom-right-radius: 6px; }
.sx-b-ai { align-self: flex-start; background: var(--sm-bg); border-bottom-left-radius: 6px; }
.sx-checks { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--sm-line); }
.sx-checks > span { display: flex; align-items: flex-start; gap: 6px; font: 400 13px/1.35 var(--sm-sans); color: var(--sm-muted); }
.sx-checks > span::before { content: ""; flex: none; width: 12px; height: 7px; margin: 3px 1px 0 0; border: solid var(--sm-rose-text); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(.8); }
.sx-cap { margin: 10px 0 0; font-size: 13px; color: var(--sm-text); }

/* ── 7 · trust ── */
.sx-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sx-trust-grid > div { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--sm-surface); border: 1px solid var(--sm-line); border-radius: 20px; }
.sx-trust-grid b { font: 600 20px/1.2 var(--sm-serif); color: var(--sm-wine); }
.sx-trust-grid p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--sm-text); }
.sx-trust-grid p span[hidden] { display: none; }
.sx-trust-grid a { color: var(--sm-wine); text-underline-offset: 3px; }

/* ── 8 · final step ── */
.sx-end { position: relative; overflow: hidden; padding: clamp(44px, 5vw, 72px) 0; background: var(--sm-bg-alt); }
.sx-mandala-bl { left: -80px; bottom: -80px; }
.sx-end-in { position: relative; display: grid; justify-items: center; text-align: center; }
.sx-end .sx-askbox { margin-top: 22px; }
#ssPageEnd { display: block; height: 1px; }

/* keyboard focus on the new controls */
.sx-tile:focus-visible, .sx-askbox .sm-btn:focus-visible, #pdPick .ss-pick:focus-visible { outline: 2px solid var(--sm-wine); outline-offset: 3px; }

/* ── tablet ── */
@media (max-width: 1024px) {
  .sx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pdPick .pd-personas { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .sx-start-in { grid-template-columns: minmax(0, 1fr); }
  .sx-panel { position: static; max-width: 560px; }
  .sx-talk-in { grid-template-columns: minmax(0, 1fr); }
  .sx-chat { max-width: 560px; }
  .sx-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* narrower screens: the photograph on top, zoomed to the person; the copy beneath it */
  .sx-hero-media { position: relative; inset: auto; aspect-ratio: 16 / 9; overflow: hidden; }
  .sx-hero-media img { width: 135%; max-width: none; margin-left: -35%; object-position: 70% 6%; }
  .sx-hero-media::after { background: linear-gradient(180deg, transparent 70%, var(--sm-bg-alt) 100%); }
  .sx-hero-in { min-height: 0; padding-top: 8px; padding-bottom: 36px; }
  .sx-hero-copy { width: 100%; }
}

/* ── phones ── */
@media (max-width: 767px) {
  .sm .sx-h1 { font-size: clamp(34px, 9.4vw, 42px); }
  .sm .sx-h2 { font-size: clamp(27px, 7.4vw, 32px); }
  .sx-sub { font-size: 15.5px; }
  .sx-sec { padding: 36px 0; }
  .sx-mandala { opacity: .14; width: 170px; }
  .sx-hero-media img { width: 150%; margin-left: -50%; object-position: 72% 6%; }
  .sx-hero-in { padding-top: 4px; padding-bottom: 32px; }
  .sx-lockup { margin-bottom: 12px; font-size: 20px; }
  .sx-lead { margin-top: 12px; font-size: 16.5px; }
  .sx-askbox { margin-top: 20px; }
  .sx-askbox-in { font-size: 16px; padding: 0 12px; }
  .sx-askbox .sm-btn { padding: 10px 18px; }
  .sx-feats { gap: 8px 16px; margin-top: 16px; }
  .sx-feats li { font-size: 14px; }
  .sx-tiles { gap: 10px; }
  .sx-tile { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 6px; padding: 14px; }
  .sx-tile .sx-ic { grid-row: auto; width: 44px; height: 44px; border-radius: 14px; }
  .sx-tile .sx-ic svg { width: 23px; height: 23px; }
  .sx-tile b { font-size: 19px; }
  .sx-tile > span:last-child { font-size: 13.5px; }
  .sx-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sx-steps::before { top: 30px; bottom: 30px; left: 29px; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--sx-gold) 0 6px, transparent 6px 12px); }
  .sx-steps li { grid-template-columns: 60px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; }
  .sx-steps .sx-ic { grid-row: 1 / span 2; margin: 0; }
  .sx-steps b { font-size: 20px; align-self: end; }
  /* companions: one per row, portrait beside the words */
  #pdPick .pd-personas { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; margin: 0; padding: 0; scroll-snap-type: none; }
  #pdPick .ss-pick { flex-direction: row; border-radius: 24px 24px 0 0; }
  #pdPick .ss-portrait { flex: none; width: 104px; margin: 12px 0 12px 12px; aspect-ratio: auto; border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px; }
  #pdPick .ss-pbody { border-top: 0; padding: 12px 14px; }
  #pdPick .ss-pname b { font-size: 23px; }
  #pdPick .ss-role { font-size: 16px; }
  #pdPick .ss-pdesc { font-size: 14px; }
  #pdPick .ss-pick::after { top: 12px; right: 12px; width: 22px; height: 22px; background-size: 14px; }
  #pdPick .ss-acts { padding: 12px 14px 14px; border-top: 1px solid var(--sm-line); }
  #pdPick .ss-act { min-height: 46px; font-size: 16px; }
  #pdPick .pd-card-h { flex-direction: column; align-items: stretch; gap: 10px; }
  #pdPick .pd-card-h .sm-btn { align-self: flex-start; }
  #pdPick .ss-panel-card { box-shadow: none; padding: 16px; }
  .sx-points li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .sx-points .sx-ic { width: 44px; height: 44px; border-radius: 14px; }
  .sx-points .sx-ic svg { width: 23px; height: 23px; }
  .sx-chat-feed { padding: 14px; }
  .sx-b { font-size: 15px; max-width: 92%; }
  .sx-trust-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sx-trust-grid > div { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .sx-trust-grid .sx-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 14px; }
  .sx-trust-grid .sx-ic svg { width: 23px; height: 23px; }
  .sx-end .sx-askbox .sm-btn { padding: 10px 16px; }
  #pdPick .sm-btn, #pdPick .ss-act, #pdPick .sm-chip, #pdPick .pd-link { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-tile, #pdPick .ss-card { transition: none; }
  .sx-tile:hover, #pdPick .ss-card:hover { transform: none; }
}

/* ── put back by the port (scripts/saathi/port_design.py): what the kit dropped but the product still says ── */
/* "4 Saathi abhi baat ke liye uplabdh" + their faces, under the hero's three facts (pandit.js renderAvail) */
.sx-hero-copy .ss-avail { margin: 20px 0 0; background: var(--sm-surface); }
/* the minutes / payments note: one full-width tile closing "Saaf baatein" (every sentence comes from Admin, pandit.js bindFacts) */
.sx-trust-grid > .sx-minutes { grid-column: 1 / -1; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.sx-minutes .sx-ic { grid-row: 1 / span 2; }
.sx-minutes p { max-width: 62em; }
.sx-minutes p span[hidden] { display: none; }
/* the kit's rotating example questions are longer than a phone's ask box: end them with … instead of a cut word */
.sx-askbox-in { text-overflow: ellipsis; }
@media (max-width: 767px) {
  .sx-trust-grid > .sx-minutes { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  .sx-hero-copy .ss-avail { margin-top: 16px; }
  /* the name row keeps clear of the "chosen" circle in the card's top corner (a long name + "AI Saathi" ran under it at 360–390 px) */
  #pdPick .ss-pname { padding-right: 28px; }
}
