/* AI Service Request Intake ------------------------------------------------
   Page-specific components. Shared case study vocabulary is in case-study.css.
-------------------------------------------------------------------------- */

/* Demo frame. Taller than the inline demos: this one is the hero. */
.sri-demo {
  height:min(1140px, 96vh);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 0 0 1px #E9E9E6, 0 18px 44px rgba(27, 48, 42, 0.10);
  background:#F9F8F5;
}

/* Intake today: the ResBot / Mezo handoff ---------------------------------- */

.sri-handoff {
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(10px, 1.1vw, 14px);
}
.sri-handoff__inner {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding:14px 12px;
}
.sri-handoff__step {
  padding:15px 16px;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:15.5px;
  background:#FBFBFA;
  box-shadow:inset 0 0 0 1px #EDEDEA;
  color:#1B302A;
}
/* Mint is the path that works; rose is the third-party handoff. */
.sri-handoff__step--mint {
  background:#EEF8F3;
  box-shadow:inset 0 0 0 1px #C9E9D9;
  color:#0E7A55;
}
.sri-handoff__step--rose {
  background:#FEFBFB;
  box-shadow:inset 0 0 0 1px #F3D5DF;
  color:#A83355;
}
/* Each step's icon takes its own colour. On the neutral step the icon sits at
   body ink while the label sits at heading ink, so they are set separately. */
.sri-handoff__step svg { flex:none; color:#4E625B; }
.sri-handoff__step--mint svg { color:#0E7A55; }
.sri-handoff__step--rose svg { color:#A83355; }

.sri-handoff__arrow {
  display:flex;
  justify-content:center;
  color:#647670;
}

/* Downstream: what each gap cost ------------------------------------------- */

.sri-down {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:28px 88px;
  padding-top:18px;
}
.sri-down__item { display:flex; flex-direction:column; gap:14px; }
.sri-down__item--ruled { padding-top:28px; border-top:1px solid #E9E9E6; }
.sri-down__head { display:flex; align-items:center; gap:11px; }
.sri-down__head svg { flex:none; color:#4E625B; }

/* Constraints: the two-month contract timeline ----------------------------- */

.sri-timeline {
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(30px, 3.2vw, 40px);
  display:flex;
  flex-direction:column;
  gap:0;
}
.sri-timeline__capwrap { position:relative; height:14px; margin-bottom:22px; }
.sri-timeline__cap {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:10px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#647670;
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  white-space:nowrap;
}
.sri-timeline__bar {
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  height:34px;
}
.sri-timeline__half {
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:13px;
}
.sri-timeline__half--mezo {
  border-radius:99px 0 0 99px;
  background:#F3E9EC;
  color:#A83355;
}
.sri-timeline__half--inhouse {
  border-radius:0 99px 99px 0;
  background:#D7F0E3;
  color:#0E7A55;
}
.sri-timeline__cut {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:3px;
  height:52px;
  border-radius:2px;
  background:#A83355;
  box-shadow:0 0 0 5px #FFFFFF;
}
.sri-timeline__span { position:relative; height:28px; margin-top:18px; }
.sri-timeline__rule {
  position:absolute;
  left:0;
  right:50%;
  top:11px;
  height:1px;
  background:#DADAD5;
}
.sri-timeline__tick {
  position:absolute;
  top:0;
  width:1px;
  height:12px;
  background:#DADAD5;
}
.sri-timeline__tick--start { left:0; }
.sri-timeline__tick--end { left:50%; }
.sri-timeline__dur {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:10px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#647670;
  position:absolute;
  left:25%;
  top:6px;
  transform:translateX(-50%);
  white-space:nowrap;
  background:#FFFFFF;
  padding:0 12px;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1300px) {
  [data-steps] { display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)) !important; gap:12px !important; }
  [data-step-arrow] { display:none !important; }
}

@media (max-width: 1040px) {
  [data-pair] > div[aria-hidden="true"] { padding:4px 0 !important; }
  [data-steps] { display:grid !important; grid-template-columns:repeat(2, minmax(0, 1fr)) !important; gap:12px !important; }
}

@media (min-width: 1290px) {
  [data-phones] { justify-content:space-between !important; }
}

@media (max-width: 860px) {
  [data-cols3][data-tight] { gap:16px !important; }
  [data-cols3][data-eqrows] { grid-auto-rows:auto !important; }
  /* Match the hot/warm/cold resume card at this width: stacked rows divided
     by a hairline, not a flex row with its gradient bar. data-tension-sol is a
     sibling of the row group, not a child, so it needs its own matching rule
     rather than being caught by the one above. */
  [data-tension] { display:grid !important; grid-template-columns:minmax(0, 1fr) !important; gap:0 !important; }
  [data-tension] > * { text-align:left !important; padding:22px 0 0 0 !important; border-top:1px solid #E9E9E6 !important; margin-top:22px; }
  [data-tension] > *:first-child { padding-top:0 !important; border-top:none !important; margin-top:0; }
  [data-tension] > * > span:first-child { font-size:14.5px !important; }
  [data-tension-bar] { display:none !important; }
  [data-tension-sol] { align-items:flex-start !important; text-align:left !important; margin-top:22px !important; padding-top:22px !important; border-top:1px solid #E9E9E6 !important; }
  [data-tension-sol] > span:first-child { font-size:14.5px !important; }
  [data-tension-sol] > p { max-width:none !important; }
  [data-resume-bar] { display:none !important; }
  [data-resume-grid] { grid-template-columns:minmax(0, 1fr) !important; gap:0 !important; }
  [data-resume-grid] > * { padding:22px 0 0 0 !important; border-left:none !important; border-top:1px solid #E9E9E6 !important; margin-top:22px; }
  [data-resume-grid] > *:first-child { padding-top:0 !important; border-top:none !important; margin-top:0; }
  [data-tier] { display:block !important; order:-1; }
  [data-cols3][data-rowrule] { gap:28px !important; }
  [data-cols3][data-rowrule] > *:not(:first-child) { padding-top:28px !important; border-top:1px solid #E9E9E6 !important; }
  [data-cols3][data-rowrule] > *:first-child { padding-top:0 !important; border-top:none !important; }
  [data-phones] { justify-content:center !important; gap:44px !important; }
  [data-steps] { grid-template-columns:minmax(0, 1fr) !important; }
}

@media (max-width: 480px) {
  [data-phones] { grid-template-columns:minmax(0, 350px) !important; justify-items:center !important; }
}

/* The 32 questions: eight grouped cards ------------------------------------ */

.sri-catalog {
  margin-top:48px;
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E4E1EE, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(20px, 2vw, 28px);
}
.sri-catalog__grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.sri-catalog__group {
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px;
  border-radius:12px;
  background:#FBFBFA;
  box-shadow:inset 0 0 0 1px #EFEDF7;
}
/* The hairline here is the lilac tint, not the neutral one .cs-collabel--ruled
   uses, so the rule is stated rather than reusing that modifier. */
.sri-catalog__label {
  padding-bottom:14px;
  border-bottom:1px solid #EFEDF7;
}
.sri-catalog__items {
  display:flex;
  flex-direction:column;
  gap:11px;
  font-size:16px;
  line-height:1.5;
  color:#4E625B;
  font-weight:300;
}

/* Speed vs depth: the tension card ----------------------------------------- */

.sri-tension {
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E4E1EE, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(36px, 3.8vw, 52px);
  display:flex;
  flex-direction:column;
}
.sri-tension__poles {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:16px 32px;
}
.sri-tension__pole { display:flex; flex-direction:column; gap:3px; }
.sri-tension__pole--right { text-align:right; }
.sri-tension__name {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:17px;
  color:#1B302A;
}
.sri-tension__name--lilac { color:#6B5BA8; }
.sri-tension__name--mint { color:#0E7A55; }
.sri-tension__sub {
  font-size:15.5px;
  line-height:1.5;
  color:#4E625B;
  font-weight:300;
}
.sri-tension__bar {
  position:relative;
  height:16px;
  display:flex;
  align-items:center;
  margin-top:22px;
}
.sri-tension__track {
  width:100%;
  height:6px;
  border-radius:99px;
  background:linear-gradient(90deg, #BFB2EF, #7BD8B0);
}
.sri-tension__knob {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:15px;
  height:15px;
  border-radius:99px;
  background:#1B302A;
  box-shadow:0 0 0 3px #FFFFFF;
}
.sri-tension__sol {
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:8px;
  margin-top:24px;
}
.sri-tension__solp {
  margin:0;
  max-width:640px;
  font-size:16px;
  line-height:1.6;
  color:#4E625B;
  font-weight:300;
}

/* Diagram cards ------------------------------------------------------------
   The inline SVGs inside these are reproduced verbatim from the reference,
   including their viewBox origins.
-------------------------------------------------------------------------- */

.sri-diagram {
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(26px, 2.8vw, 34px);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.sri-diagram__inner { display:flex; align-items:center; flex:1; }
.sri-diagram__inner > svg { display:block; width:100%; overflow:visible; }

/* The component library ---------------------------------------------------- */

.sri-lib {
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(20px, 2vw, 28px);
}
.sri-lib__inner { display:flex; flex-direction:column; gap:34px; }
.sri-lib__group { display:flex; flex-direction:column; gap:22px; }
.sri-lib__group--ruled { padding-top:34px; border-top:1px solid #EDEDEA; }
.sri-lib__grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap:14px;
}
.sri-lib__item {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px;
  border-radius:12px;
  background:#FBFBFA;
  box-shadow:inset 0 0 0 1px #EDEDEA;
}
.sri-lib__name {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:15px;
  line-height:1.35;
  color:#1B302A;
}
.sri-lib__desc {
  font-size:14.5px;
  line-height:1.55;
  color:#4E625B;
  font-weight:300;
}

/* Running the workflows: four ordered steps -------------------------------- */

.sri-steps {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:stretch;
  gap:16px;
}
.sri-step {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:12px;
  padding:24px 20px;
  border-radius:12px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
}
.sri-step__num {
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:99px;
  box-shadow:inset 0 0 0 1.4px #D5E4DB;
  font-family:ui-monospace, monospace;
  font-size:13px;
  color:#1B302A;
}
.sri-step__name {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:16px;
  color:#1B302A;
}
.sri-step__why {
  font-size:14px;
  line-height:1.5;
  color:#647670;
  font-weight:300;
}
.sri-step__tick { width:1px; height:14px; background:#DADAD5; }
.sri-step__out {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:10.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#8B9A94;
  white-space:nowrap;
}
.sri-steps__arrow {
  flex:none;
  display:flex;
  align-items:center;
  color:#647670;
}

/* Required vs optional ----------------------------------------------------- */

.sri-req {
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:30px 32px;
  border-radius:14px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
}
.sri-req__label {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:10.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:#647670;
}
.sri-req__item {
  display:flex;
  align-items:flex-start;
  gap:11px;
  font-size:15.5px;
  line-height:1.5;
  color:#1B302A;
  font-weight:400;
}
.sri-req__item--optional { color:#647670; }
.sri-req__item svg { flex:none; margin-top:3px; }
/* The "work order can be created" divider: one rule either side of a label. */
.sri-req__rule {
  display:flex;
  align-items:center;
  gap:14px;
  margin:8px 0;
}
.sri-req__line { flex:1 1 auto; height:1px; background:#E9E9E6; }
.sri-req__rulelabel { flex:none; }

/* Leaving and returning: the tiered resume system -------------------------- */

.sri-resume {
  border-radius:16px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
  padding:clamp(30px, 3.2vw, 40px);
  display:flex;
  flex-direction:column;
  gap:0;
}
.sri-resume__bar {
  position:relative;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  height:34px;
}
.sri-resume__seg {
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:13px;
}
.sri-resume__seg--hot  { border-radius:99px 0 0 99px; background:#D7F0E3; color:#0E7A55; }
.sri-resume__seg--warm { border-radius:0; background:#EDEDEA; color:#647670; }
.sri-resume__seg--cold { border-radius:0 99px 99px 0; background:#F3E9EC; color:#A83355; }
.sri-resume__cut {
  position:absolute;
  top:50%;
  transform:translate(-50%, -50%);
  width:3px;
  height:44px;
  border-radius:2px;
  background:#1B302A;
  box-shadow:0 0 0 5px #FFFFFF;
}
.sri-resume__cut--1 { left:33.333%; }
.sri-resume__cut--2 { left:66.666%; }

.sri-resume__grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  margin-top:22px;
}
.sri-resume__col { display:flex; flex-direction:column; gap:8px; }
.sri-resume__col--1 { padding:0 26px 0 0; border-left:none; }
.sri-resume__col--2 { padding:0 26px; border-left:1px solid #E9E9E6; }
.sri-resume__col--3 { padding:0 0 0 26px; border-left:1px solid #E9E9E6; }
.sri-resume__when {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:14.5px;
  color:#647670;
}
/* The tier name is hidden until the bar collapses below 860px. */
.sri-resume__tier {
  display:none;
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:13px;
  color:#647670;
}
.sri-resume__tier--hot { color:#0E7A55; }
.sri-resume__tier--cold { color:#A83355; }
.sri-resume__desc {
  margin:0;
  font-size:15.5px;
  line-height:1.7;
  color:#4E625B;
  font-weight:300;
  text-wrap:pretty;
}

/* Scenario testing --------------------------------------------------------- */

.sri-scen-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  grid-auto-rows:1fr;
  gap:22px;
}
.sri-scen {
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:26px 28px 32px;
  border-radius:14px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E9E9E6, 0 8px 22px rgba(27, 48, 42, 0.10);
}
.sri-scen__head { display:flex; flex-direction:column; gap:8px; }
.sri-scen__name {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:17px;
  line-height:1.3;
  color:#1B302A;
}
.sri-scen__quote {
  font-size:14px;
  line-height:1.5;
  font-weight:300;
  color:#647670;
}
.sri-scen__rule { height:1px; background:#E9E9E6; }
.sri-scen__steps { display:flex; flex-direction:column; gap:16px; }
.sri-scen__step { display:flex; align-items:flex-start; gap:12px; }
.sri-scen__badge {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:99px;
  background:#D7F0E3;
  color:#0E7A55;
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:10.5px;
  margin-top:1px;
}
.sri-scen__text { display:flex; flex-direction:column; gap:3px; }
.sri-scen__what {
  font-size:14px;
  line-height:1.4;
  color:#1B302A;
  font-weight:400;
}
.sri-scen__how {
  font-size:12.5px;
  line-height:1.45;
  color:#647670;
  font-weight:300;
}

/* In the interface: nine component screens --------------------------------
   The phone chrome and the 437 x 903.56px slot. The screens themselves are
   built in Phase 5; the slot is sized and positioned here so the surrounding
   layout is already correct.
-------------------------------------------------------------------------- */

.sri-phones {
  display:grid;
  grid-template-columns:repeat(auto-fit, 349.6px);
  justify-content:center;
  gap:56px 40px;
}
.sri-phone { display:flex; flex-direction:column; gap:6px; }
.sri-phone__shot { width:349.6px; height:722.85px; flex:none; }
/* Authored at full size, then scaled to fit the grid cell. */
.sri-phone__scale {
  position:relative;
  width:437px;
  height:903.56px;
  transform:scale(0.8);
  transform-origin:top left;
}
.sri-phone__back { position:absolute; inset:0; z-index:0; }
.sri-phone__body {
  position:absolute;
  left:17.23px;
  top:15.04px;
  width:402px;
  height:874px;
  border-radius:56px;
  background:#FFFFFF;
  box-shadow:0 0 0 1px #E4E1EE, 0 10px 26px rgba(27, 48, 42, 0.10);
}
.sri-phone__screen { position:relative; z-index:1; }
.sri-phone__cap {
  font-family:'Figtree', sans-serif;
  font-weight:500;
  font-size:14px;
  line-height:1.4;
  text-align:center;
  color:#1B302A;
}

/* What modular intake made possible ---------------------------------------- */

.sri-out__grid {
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:40px;
}
.sri-out__item { display:flex; flex-direction:column; gap:18px; }
/* Same column label, over the lilac hairline this section uses. */
.sri-out__label { padding-bottom:14px; border-bottom:1px solid #E4E1EE; }

.sri-demo iframe { display:block; width:100%; height:100%; border:none; }
/* The nine component screens ----------------------------------------------
   These are the intake component library rendered as fixed states, lifted
   from the design reference. They are the product surface the case study is
   about, not site chrome: they carry their own type and palette, exactly as
   they do inside the interactive demo on the same page.

   The rules below are the component's own, scoped under [data-screen-mount]
   so nothing here can reach the page around it.
-------------------------------------------------------------------------- */

[data-screen-mount],
[data-screen-mount] * {
  box-sizing:border-box;
  -webkit-font-smoothing:antialiased;
}
[data-screen-mount] a { color:#17805A; text-decoration:none; }
[data-screen-mount] a:hover { color:#0F5C41; }

/* The screens are frozen states, so their scrollers must not show a bar. */
[data-screen-mount] ::-webkit-scrollbar,
[data-screen-mount]::-webkit-scrollbar { width:0; height:0; }
[data-screen-mount],
[data-screen-mount] * { scrollbar-width:none; -ms-overflow-style:none; }

/* A frozen screen sits at the newest message, so a half-cut date row reads as
   a rendering fault. Hidden only when it cannot be shown whole. */
[data-screen-mount][data-clipped] [data-demo="thread"] > div:first-child { display:none !important; }

.clamp2 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

@keyframes dotb {
  0%, 60%, 100% { opacity:.22; transform:translateY(0); }
  30% { opacity:.85; transform:translateY(-3px); }
}
@keyframes rise { from { transform:translateY(103%); } to { transform:translateY(0); } }
@keyframes fadein { from { opacity:0; } to { opacity:1; } }
@keyframes slidein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  [data-screen-mount] * { animation:none !important; }
}

/* Each screen is frozen at its newest message. In the demo that is a scroll
   position set at runtime; as a fixed state the equivalent is to pin the
   thread to its end, which clips the oldest message at the top exactly as the
   frozen screen does. */
[data-screen-mount] [data-demo="thread"] { justify-content:flex-end !important; }

/* The day chips on the availability screen carry a count badge pinned outside
   their own top-right corner (top:-5px; right:-5px), but the chip's inline
   style also says overflow:hidden, which clips the badge to the chip. On the
   live page the same markup resolves to overflow:visible and the badge sits
   proud of the chip, which is the design. Only !important can beat an inline
   style, so that is what this is. */
[data-screen-mount] button[data-demo="day"] { overflow:visible !important; }
