/* Clean pages: Uwee U, What Jinn can do, Pricing (and the clean parts of other pages).
   One host Uwee on a white stage with a tip beside it, router cards, and the product cards
   (the only flat accent blocks on the site). */

/* 1. clean hero with a host */
.chero { padding-block: clamp(44px, 7vw, 92px) clamp(36px, 5vw, 64px); }
.chero .grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 4vw, 64px); }
.chero h1 { max-width: 13ch; }
.chero .lede { max-width: 50ch; }
.chero .doors { margin-top: 22px; }
.host-wrap { display: grid; gap: 14px; }
/* P3 (P04/P05/P06/D01): the host block stacks in flow, so nothing overlaps and nothing jumps.
   The catchphrase sits above the Uwee as a bubble; the figure lives in a fixed square (every pose still
   is normalized to the same 900x900 frame, so a reaction never resizes it); the Sheet title is a bold
   pill below. */
.host { position: relative; display: grid; justify-items: center; gap: 10px; background: none; border-radius: var(--radius); padding: 0; }
.host .says { order: 0; justify-self: start; position: relative; max-width: 22ch; margin: 0 0 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 12px 18px; font-family: var(--serif-accent); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 1.1rem + 1vw, 1.85rem); line-height: 1.22; color: var(--ink); z-index: 4; }
.host .says::after { content: ""; position: absolute; left: 44%; bottom: -9px; width: 16px; height: 16px; background: inherit; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform: rotate(45deg); }
.host .uwee { order: 1; width: min(340px, 100%); aspect-ratio: 1 / 1; }
.host .uwee .pose { width: 100%; height: 100%; object-fit: contain; }
.host .role { order: 2; position: relative; font-family: var(--ui); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 800; line-height: 1.2; text-align: center; color: var(--paper); background: var(--navy); border: 0; border-radius: 999px; padding: 9px 20px; max-width: 100%; z-index: 4; }
.tipcard { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.tipcard .label { font-family: var(--ui); font-size: .8rem; color: var(--muted); padding-top: 4px; }
.tipcard p { margin: 0; font-size: .98rem; }
@media (max-width: 860px) {
  .chero .grid { grid-template-columns: 1fr; }
  .host .uwee { width: min(260px, 72%); }
  .host .says { max-width: 100%; font-size: 1.35rem; }
}

/* props: CSS objects on their own layer, never on the still */

/* 2. router cards (Uwee U) */
.routes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.route { display: grid; gap: 10px; align-content: start; min-height: 190px; }
.route h3 { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.route p { margin: 0; }
.route .dest { margin-top: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.route .dest .soon { font-family: var(--ui); font-size: .8rem; color: var(--muted); }
.route .dest a { font-weight: 700; }
.route.is-hit { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (max-width: 860px) { .routes { grid-template-columns: 1fr; } .route { min-height: 0; } }

/* 3. product cards */
.pgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.product-card .body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.product-card h3 { margin: 0; font-size: 1.35rem; }
.product-card p { margin: 0; }
.product-card .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.product-card .btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.product-card .btn--light:hover { background: var(--paper); }
.product-card .uwee { justify-self: end; }
.product-card.is-hot { box-shadow: var(--shadow); }
.product-card:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
a.product-card { color: #fff; }
a.product-card:hover .go { text-decoration-thickness: 2px; }
@media (max-width: 600px) { .product-card { grid-template-columns: 1fr 96px; } .product-card .uwee { width: 96px; } }

/* 4. a short clean band with a side note */
.aside-band .grid { grid-template-columns: 1.2fr .8fr; align-items: start; }
@media (max-width: 860px) { .aside-band .grid { grid-template-columns: 1fr; } }

.close h2 { color: var(--paper); }
.close .lede { color: var(--on-dark); }
.pgrid .product-card--plain { grid-template-columns: 1fr; min-height: 200px; }
.pgrid .product-card--plain .actions a, .pgrid .product-card--plain .actions .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* polish v3-v3: the amber lane is a light ground, so its card reads in ink, not white */
.product-card[data-accent="amber"], a.product-card[data-accent="amber"], .pcard[data-accent="amber"] { color: var(--navy); }
.product-card[data-accent="amber"] .lead, .product-card[data-accent="amber"] .plans, .product-card[data-accent="amber"] p, .product-card[data-accent="amber"] .go, .pcard[data-accent="amber"] .sub { color: var(--navy); }
.product-card[data-accent="amber"] .chip--status, .pcard[data-accent="amber"] .chip { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.product-card[data-accent="amber"] h3, .product-card[data-accent="amber"] .body h3 { color: var(--navy); }
/* polish v3-v3: status chips on product cards sit on paper, so their text is ink whatever the card rescopes */
.product-card .chip--status, .pcard .chip--status, .product-card h3 .chip--status { color: #15171c; }
.product-card[data-accent="amber"] .chip--status, .product-card[data-accent="amber"] h3 .chip--status { color: var(--paper); }

/* P3 (P07): pricing feature cards, one size, lead Uwee large */
.pgrid[data-product-cards="pricing"] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.product-card--price { grid-template-columns: 1fr; grid-template-rows: 1fr auto; min-height: 0; height: 100%; padding: 22px 22px 0; gap: 6px; }
.product-card--price .body { gap: 8px; }
.product-card--price .kicker { font-family: var(--ui); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } /* SWEEP: full opacity, so the kicker reads on viridian and rust (was a .85 tint, 4.3 and 3.8:1) */
.product-card--price h3 { font-size: 1.5rem; }
.product-card--price .price { font-family: var(--ui); font-weight: 800; font-size: 1.05rem; margin-top: 4px; }
.product-card--price .actions { margin-top: 2px; padding-top: 4px; }
.product-card--price .who { display: grid; grid-template-columns: 132px 1fr; align-items: end; gap: 10px; margin-inline: -4px; }
.product-card--price .who .uwee { width: 132px; aspect-ratio: 1 / 1; justify-self: start; }
.product-card--price .who .cap { font-family: var(--ui); font-size: .82rem; line-height: 1.3; padding-bottom: 18px; }
.product-card--price:hover, .product-card--price:focus-within { box-shadow: var(--shadow); }
@media (max-width: 1200px) { .pgrid[data-product-cards="pricing"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pgrid[data-product-cards="pricing"] { grid-template-columns: 1fr; grid-auto-rows: auto; } .product-card--price .who { grid-template-columns: 112px 1fr; } .product-card--price .who .uwee { width: 112px; } }

/* P3 (R05): the Content plans on Pricing, read from data/products.js */
.plan-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.plan { display: grid; align-content: start; gap: 6px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 18px; }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan .amt { margin: 0; font-family: var(--display); font-size: 2rem; line-height: 1.05; color: var(--navy); }
.plan .founding { margin: 0; font-family: var(--ui); font-size: .85rem; font-weight: 700; color: var(--muted); }
.plan .what { margin: 6px 0 0; font-size: .92rem; }
.plan--free { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.plan--free h3, .plan--free .amt, .plan--free .what { color: var(--paper); }
.plan--free .founding { color: var(--on-dark); }
.plan--free .go { color: var(--paper); font-weight: 700; margin-top: 6px; }
.plan--free .uwee-slot { line-height: 0; }
.plans-wrap .trial { margin: 16px 0 0; font-size: .95rem; }
@media (max-width: 1200px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .plan-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }

/* P3 (P08-P11, D04): new vignette strips at 16:7, so every Uwee keeps its head; phones show the whole frame */
.strip--vig .scene { aspect-ratio: 16 / 7; }
.strip--vig .scene img { object-position: var(--vig-pos, 50% 45%); }
@media (max-width: 860px) { .strip--vig .scene { aspect-ratio: 16 / 9; } .strip--vig .scene img { object-fit: contain; } }
/* X11: a framed picture is never cropped; it shows whole */
.strip--whole .scene { aspect-ratio: auto; max-width: none; }
.strip--whole .scene img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }

/* P3 (X20): Uwee U closes with the final-doors band lifted from the Astra build */
.final-doors { padding-block: 65px 75px; }
.final-doors h2 { max-width: 20ch; margin-bottom: 18px; }
.chero h1 { text-wrap: balance; }
.chero h1.h1--long { max-width: 22ch; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem); }

/* FIX-P3 (rule 11): a Uwee the copy names stands beside its line (#learn: Fold and Stet; #sign: Pockets) */
.said-by { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; margin: 14px 0 0; }
.said-by .uwee { width: 84px; height: 100px; display: flex; align-items: flex-end; justify-content: center; }
.said-by .uwee img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.said-by .uwee .shadow { display: none; }
.said-by p { margin: 0; font-size: 1.05rem; }
.said-by p > span { display: block; font-family: var(--ui); font-size: .85rem; font-weight: 700; color: var(--muted); }
.said-by p > span.quote { font-family: var(--serif-accent); font-size: 1.1rem; font-weight: 500; color: var(--amber-ink); margin: 4px 0 0; }
.said-by + .small { margin-top: 12px; }
