/* TexVastra website — the two featured sections (factory decision stage, owner's Today board). Loads after layout.css; palette and glass per guidelines §4, §6. */

/* ── Factory decision: one weft thread carries the path; the outcomes sit under the steps, beside the phone ── */
.stage { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.stage .path { margin-top: 0; }
.stage .outcomes { margin-top: 40px; }
.path-k { position: relative; z-index: 1; justify-self: start; }
.path .phone-screen { min-height: 0; padding: 24px 18px 22px; }
.path .phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 28px 48px -32px rgba(9, 17, 38, .7); }
.ph-title { margin-top: 16px; }
.ph-rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .875rem; color: var(--slate); }
.ph-headline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--thread); font-size: .875rem; color: var(--slate); line-height: 1.3; }
.ph-headline b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--indigo); }
.ph-headline .mono { color: var(--midnight); }
.path .ph-sec { margin-top: 16px; }
.path .ph-text { margin-top: 4px; font-size: .8125rem; line-height: 1.5; color: var(--midnight); }
.path .ph-actions { margin-top: 8px; }
.path .ph-done { margin-top: 12px; }
.path .replay { justify-self: center; min-height: 44px; font-size: .9375rem; }
.path .replay[hidden] { display: inline-flex !important; visibility: hidden; }

@media (min-width: 1081px) {
  .stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 284px; column-gap: 64px; row-gap: 24px; }
  .stage .path { display: grid; grid-column: 1 / -1; grid-row: 1 / span 2; grid-template-columns: subgrid; grid-template-rows: subgrid; column-gap: 64px; row-gap: 24px; }
  .stage .path-step:nth-child(1) { grid-column: 1; grid-row: 1; }
  .stage .path-step:nth-child(2) { grid-column: 2; grid-row: 1; }
  .stage .path-step:last-child { grid-column: 3; grid-row: 1 / span 2; }
  .stage .outcomes { grid-column: 1 / span 2; grid-row: 2; margin-top: 0; align-self: end; position: relative; }
  .stage::before { content: ""; position: absolute; top: 8px; left: 0; right: 258px; height: 10px;
    background: linear-gradient(var(--indigo), var(--indigo)) 0 0 / 100% 2px no-repeat, linear-gradient(var(--indigo), var(--indigo)) 0 4px / 100% 2px no-repeat,
      linear-gradient(var(--indigo), var(--indigo)) 0 8px / 100% 2px no-repeat;
    transform-origin: left; }
  .js .stage::before { transform: scaleX(0); transition: transform 640ms var(--ease); }
  .js .stage.is-in::before { transform: scaleX(1); }
  .stage .path-step::after { display: none !important; }
  .path-k { background: var(--cotton); padding-right: 14px; }
  .path-k .mono { background: var(--cotton); }
}
@media (prefers-reduced-motion: reduce) { .js .stage::before { transform: none; transition: none; } }

/* ── Owner's day: the questions on the left, Today on its cloth on the right ── */
.today-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.today-head { max-width: 30rem; }
.today-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .24); font-size: .9375rem; color: var(--cotton); }
.today-board { position: relative; isolation: isolate; display: grid; gap: 14px; }
.warp-night { background-image: repeating-linear-gradient(90deg,
  var(--midnight) 0 4px, transparent 4px 6px, var(--midnight) 6px 10px, transparent 10px 12px, var(--midnight) 12px 16px, transparent 16px 19px); }
.board { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.board li { display: block; }
.tile { display: block; padding: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .7); }
.board .need .tile { box-shadow: inset 0 0 0 1.5px var(--amber), 0 24px 40px -28px rgba(0, 0, 0, .7); }
.board .q { min-height: 0; padding: 9px 16px; background: var(--cotton); border-bottom: 1px solid var(--thread); font-size: .875rem; font-weight: 600; color: var(--indigo); line-height: 1.4; }
.t-body { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px 16px; }
.tile b { font-size: 2.5rem; line-height: 1; }
.t-body p { display: grid; gap: 1px; }
.t-label { font-size: .9375rem; font-weight: 600; color: var(--midnight); }
.t-ctx { font-size: .8125rem; line-height: 1.4; color: var(--slate); }
.attn-card { padding: 12px 16px 6px; border-radius: 12px; background: var(--white); color: var(--midnight); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .7); }
.attn-h { font-size: .8125rem; font-weight: 600; color: var(--indigo); }
.attn-card .attn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-radius: 0; background: none; font-size: .8125rem;
  border-top: 1px solid var(--thread); }
.attn-card .attn-row:first-of-type { margin-top: 8px; }
.attn-days b { color: var(--midnight); }
@media (max-width: 900px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .today-head { max-width: 40rem; }
}
@media (max-width: 640px) {
  .board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .t-body { padding: 10px 16px 12px; }
  .tile b { font-size: 2.125rem; }
  .board .q { padding: 7px 16px; }
}

.ph-text .nw { display: flex; justify-content: space-between; gap: 8px; color: var(--slate); }
.ph-text .nw .mono { color: var(--midnight); }
@media (min-width: 1081px) {
  .stage .path-step { grid-template-rows: auto auto; align-content: start; }
  .stage .path-step:last-child { grid-template-rows: auto auto; align-content: start; }
  .path .replay { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .path .replay:hover { transform: translateX(-50%) translateY(-1px); }
}
