/*
 * pn-app-mock.css: the homepage product pictures (common/v3/visuals/pn_home_visuals.pug), 2026-11-18 late.
 * Not page-scoped, so the login and signup side panels can reuse +pnhApp: link this file and pn-visuals.css.
 * Tokens from pn-system.css. Each picture lays itself out by its own width (container queries): +pnhApp reads from
 * about 320px (three days) through 520px (four days) and 600px (five days) to 900px and wider (the full week).
 * Motion only under html.pns-motion (pn-motion.js adds .is-in once in view); the default is the finished frame.
 */

/* ---------- AI agent logos and tiles (logos: img/ai-agents/, names and slugs: config/ai-agents.js) ---------- */
.pnh-logo {
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
}

.pnh-asst {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 11px 0 9px;
    border: 1px solid var(--pns-line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--pns-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.pnh-asst--sm {
    height: 22px;
    padding: 0 7px 0 6px;
    gap: 5px;
    border-radius: 7px;
    font-size: 11px;
}

.pnh-asst--sm .pnh-logo {
    width: 12px;
    height: 12px;
}

.pnh-asst--icon {
    justify-content: center;
    padding: 0;
}

/* ---------- Chips ---------- */
.pnh-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--pns-mist);
    color: var(--pns-text-2);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.pnh-chip--pub {
    background: var(--pns-lime-tint);
    color: var(--pns-lime-deep);
}

.pnh-chip--pub .pnv-tick {
    width: 13px;
    height: 13px;
}

.pnh-chip--draft {
    background: var(--pns-tint-sand, #f5eed9);
    color: #7a5a12;
}

.pnh-chip--ai {
    background: var(--pns-ink);
    color: #ffffff;
}

/* "Drafted by Claude": the Claude mark on a warm tint, so the draft reads as a suggestion waiting for you. */
.pnh-chip--ai-draft {
    gap: 5px;
    padding: 0 8px 0 6px;
    background: #fbeee7;
    color: #8a3f22;
}

.pnh-chip__short {
    display: none;
}

.pnh-chip--ai-draft .pnh-logo {
    width: 12px;
    height: 12px;
}

.pnh-chip--best {
    background: var(--pns-lime);
    color: var(--pns-on-lime);
}

.pnh-chip--flip {
    display: inline-grid;
    height: auto;
    padding: 0;
    background: none;
}

.pnh-chip--flip > .pnh-chip {
    grid-area: 1 / 1;
}

.pnh-flip-a {
    visibility: hidden;
}

/* ---------- 1. The app window: one week, one post a day ---------- */
.pnh-app {
    container-type: inline-size;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: #ffffff;
    color: var(--pns-text);
    font-family: inherit;
    text-align: left;
}

.pnh-app *,
.pnh-pic * {
    box-sizing: border-box;
}

.pnh-app__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--pns-line);
}

.pnh-app__logo {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pns-ink);
    color: var(--pns-lime);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.pnh-app__tabs {
    display: flex;
    gap: 4px;
    min-width: 0;
}

.pnh-app__tabs > span {
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--pns-text-3);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.pnh-app__tabs > span.is-on {
    background: var(--pns-mist);
    color: var(--pns-text);
}

.pnh-app__week-label {
    margin-left: auto;
    color: var(--pns-text-2);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pnh-app__new {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--pns-line);
    background: #ffffff;
    color: var(--pns-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.pnh-app__week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 16px;
    background: var(--pns-mist);
}

.pnh-app__day {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pnh-app__dname {
    padding: 0 2px;
    color: var(--pns-text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Every card the same height: photo, two clamped lines, the status on one shared baseline. */
.pnh-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 6px 6px 10px;
    border: 1px solid var(--pns-line);
    border-radius: 14px;
    background: #ffffff;
}

.pnh-card__pic {
    position: relative;
    display: block;
}

.pnh-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 9px;
    background: var(--pns-line);
}

.pnh-card__tag {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px 0 3px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--pns-text);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pnh-card__tag .pnv-chan {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
}

.pnh-card__day {
    display: none;
}

.pnh-card__text {
    display: -webkit-box;
    min-height: 2.6em;
    padding: 0 4px;
    overflow: hidden;
    color: var(--pns-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pnh-card__foot {
    display: flex;
    margin-top: auto;
    padding: 0 4px;
}

/* Claude's drafts: a soft peach card, calm and finished, waiting for approval. */
.pnh-card--ai {
    border-color: #f3d2c2;
    background: #fdf1ea;
}

.pnh-card--ai .pnh-chip--ai-draft {
    background: #ffffff;
}

.pnh-app__agent {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 12px 16px;
    border-top: 1px solid var(--pns-line);
    background: #ffffff;
}

.pnh-app__note {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--pns-text);
    font-size: 13.5px;
    line-height: 1.35;
}

.pnh-app__btn {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--pns-ink);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

/* Seven narrow days: Claude's tag shortens to its name, so it never runs out of its card. */
@container (max-width: 1060px) {
    .pnh-chip__long { display: none; }
    .pnh-chip__short { display: inline; }
}

/* Narrower windows drop days; Monday (the first post) and Claude's two drafts always stay. */
@container (max-width: 900px) {
    .pnh-app__week { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pnh-app__day:is(.pnh-app__day--2, .pnh-app__day--6) { display: none; }
}

@container (max-width: 600px) {
    .pnh-app__week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pnh-app__day--3 { display: none; }
    .pnh-app__tab3,
    .pnh-app__week-label { display: none; }
    .pnh-app__new { margin-left: auto; }
}

/* Phones: a four-row agenda (thumbnail, logo and time, caption, status), then the assistant bar. */
@container (max-width: 480px) {
    .pnh-app__bar { gap: 10px; height: 50px; padding: 0 12px; }
    .pnh-app__tabs > span:not(.is-on) { display: none; }
    .pnh-app__week { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
    .pnh-app__day { display: flex; }
    .pnh-app__day:is(.pnh-app__day--2, .pnh-app__day--3, .pnh-app__day--6) { display: none; }
    .pnh-app__dname { display: none; }
    .pnh-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 6px 10px 6px 6px; }
    .pnh-card__pic { display: contents; }
    .pnh-card__img { grid-row: 1 / span 2; width: 56px; height: 56px; aspect-ratio: auto; border-radius: 8px; }
    .pnh-card__tag { position: static; grid-column: 2; grid-row: 1; justify-self: start; height: 22px; padding: 0; background: none; color: var(--pns-text-2); font-weight: 500; }
    .pnh-card__day { display: inline; }
    .pnh-card__text { grid-column: 2; grid-row: 2; min-height: 0; padding: 0; -webkit-line-clamp: 1; font-size: 13.5px; }
    .pnh-card__foot { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; }
    .pnh-app__agent { gap: 10px; padding: 10px 12px; }
    .pnh-app__note { font-size: 12.5px; }
    .pnh-app__btn { display: none; }
}

/* ---------- 2. Feature card pictures: one white object each, the same weight in every card ---------- */
.pnh-pic {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--pns-line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--pns-text);
    text-align: left;
}

.pnh-pic img {
    max-width: none;
    margin: 0;
    padding: 0;
    border-width: 0;
    box-shadow: none;
}

.pnh-pic .pnv-chan img {
    display: block;
    width: 56%;
    height: 56%;
    object-fit: contain;
}

/* Scheduling: three queue rows */
.pnh-queue {
    display: flex;
    flex-direction: column;
    padding: 4px 14px;
}

.pnh-queue__row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--pns-line-soft);
}

.pnh-queue__row:first-child {
    border-top: 0;
}

.pnh-queue__when {
    color: var(--pns-text-2);
    font-size: 12.5px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pnh-queue__row .pnv-chan {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.pnh-queue__text {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* AI writer: a caption card with a small square photo */
.pnh-writer {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
}

.pnh-writer > img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.pnh-writer__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.pnh-writer__text {
    font-size: 14px;
    line-height: 1.45;
}

.pnh-writer__text.is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--pns-text);
}

/* Analytics: the bars only */
.pnh-stats {
    padding: 16px 16px 12px;
}

.pnh-stats__bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    height: 112px;
}

.pnh-stats__col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
}

.pnh-stats__col i {
    display: block;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background: #d4d4d8;
    transform-origin: bottom;
}

.pnh-stats__col i.is-top {
    background: var(--pns-lime);
}

.pnh-stats__col em {
    color: var(--pns-text-3);
    font-size: 11.5px;
    font-style: normal;
    text-align: center;
}

/* Inbox: one comment, one reply */
.pnh-inbox {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.pnh-inbox__msg {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 92%;
    padding: 8px 12px 8px 8px;
    border-radius: 14px;
    background: var(--pns-mist);
    font-size: 13.5px;
    line-height: 1.35;
}

.pnh-inbox__msg img {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.pnh-inbox__msg--me {
    align-self: flex-end;
    padding: 9px 12px;
    background: var(--pns-ink);
    color: #ffffff;
}

/* Team: one post row with the Approve button */
.pnh-team {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

.pnh-team > img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 9px;
}

.pnh-team__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pnh-team__top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pns-text-2);
    font-size: 12px;
    font-weight: 500;
}

.pnh-team__top .pnv-chan {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.pnh-team__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pnh-team__btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--pns-lime);
    color: var(--pns-on-lime);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

/* ---------- 3. The AI band picture: a dark prompt box on a faint grid ---------- */
.pnh-ask {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 420px;
    padding: 40px;
    overflow: hidden;
    border-radius: 24px;
    color: var(--pns-on-ink);
    text-align: left;
}

.pnh-ask * {
    box-sizing: border-box;
}

.pnh-ask__grid {
    position: absolute;
    inset: 0;
    color: var(--pns-ink-line);
    opacity: 0.7;
}

.pnh-ask__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(100%, 480px);
    padding: 20px;
    border: 1px solid var(--pns-ink-line);
    border-radius: 24px;
    background: var(--pns-ink-2);
}

.pnh-ask__who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.pnh-ask__who .pnh-logo {
    width: 20px;
    height: 20px;
}

.pnh-ask__box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--pns-ink-line);
    border-radius: 16px;
    background: var(--pns-ink-3);
}

.pnh-ask__text {
    min-height: 2.9em;
    color: var(--pns-on-ink);
    font-size: 16px;
    line-height: 1.45;
}

.pnh-ask__text.is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--pns-lime);
}

.pnh-ask__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pnh-ask__plus {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--pns-ink-line);
    border-radius: 9px;
    color: var(--pns-on-ink-2);
}

.pnh-ask__mode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 11px 0 5px;
    border: 1px solid var(--pns-ink-line);
    border-radius: 9px;
    color: var(--pns-on-ink-2);
    font-size: 13px;
    font-weight: 500;
}

.pnh-ask__mode .pnh-app__logo {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--pns-ink);
    font-size: 11px;
}

.pnh-ask__send {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 10px;
    background: var(--pns-lime);
    color: var(--pns-on-lime);
}

.pnh-ask__result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--pns-ink-line);
    border-radius: 14px;
    background: var(--pns-ink);
}

.pnh-ask__thumbs {
    display: flex;
    flex: 0 0 auto;
}

.pnh-ask img {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.pnh-ask__thumbs img {
    width: 34px;
    height: 34px;
    margin-left: -10px;
    border: 2px solid var(--pns-ink);
    border-radius: 9px;
    object-fit: cover;
}

.pnh-ask__thumbs img:first-child {
    margin-left: 0;
}

.pnh-ask__done {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--pns-on-ink);
    font-size: 14px;
    line-height: 1.35;
}

.pnh-ask__result .pnv-tick {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .pnh-ask { min-height: 0; padding: 28px 14px; }
    .pnh-ask__card { padding: 16px; }
    .pnh-ask__text { font-size: 15px; }
}

/* ---------- Motion (only under html.pns-motion) ---------- */
@keyframes pnh-flip-out {
    0%, 70% { visibility: visible; opacity: 1; }
    100% { visibility: hidden; opacity: 0; }
}

@keyframes pnh-flip-in {
    0%, 70% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: none; }
}

@keyframes pnh-settle {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}

@keyframes pnh-tint {
    from { border-color: var(--pns-line); background-color: #ffffff; }
    to { border-color: #f3d2c2; background-color: #fdf1ea; }
}

.pns-motion [data-pnv='app'] .pnh-card,
.pns-motion [data-pnv='app'] .pnh-app__agent {
    opacity: 0;
}

.pns-motion [data-pnv='app'].is-in .pnh-card {
    animation: pnh-settle 0.55s var(--pns-ease) both;
    animation-delay: calc(0.1s + var(--i, 0) * 0.09s);
}

.pns-motion [data-pnv='app'].is-in .pnh-app__agent {
    animation: pnh-settle 0.55s var(--pns-ease) 1.5s both;
}

.pns-motion [data-pnv='app'].is-in .pnh-card--ai {
    animation: pnh-settle 0.55s var(--pns-ease) both, pnh-tint 0.6s ease-out 1.8s both;
    animation-delay: calc(0.1s + var(--i, 0) * 0.09s), 1.8s;
}

.pns-motion [data-pnv='app'] .pnh-flip-a {
    visibility: visible;
}

.pns-motion [data-pnv='app'] .pnh-flip-b {
    opacity: 0;
}

.pns-motion [data-pnv='app'].is-in .pnh-flip-a {
    animation: pnh-flip-out 1.6s linear 0.4s both;
}

.pns-motion [data-pnv='app'].is-in .pnh-flip-b {
    animation: pnh-flip-in 1.6s var(--pns-ease) 0.4s both;
}

.pns-motion [data-pnv='stats'] .pnh-stats__col i.pnv-step {
    opacity: 1;
    transform: scaleY(0.05);
}

.pns-motion [data-pnv='stats'].is-in .pnh-stats__col i.pnv-step {
    animation: pnv-grow 0.7s var(--pns-ease) both;
    animation-delay: calc(0.1s + var(--i, 0) * 0.07s);
}

@media (prefers-reduced-motion: reduce) {
    .pnh-card, .pnh-app__agent, .pnh-flip-b, .pnh-stats__col i { animation: none !important; opacity: 1 !important; transform: none !important; }
    .pnh-flip-a { animation: none !important; visibility: hidden !important; }
}

/* ---------- Image guards: legacy page rules (.services img, main img) must not size the pictures' images ---------- */
.pnh-app img {
    max-width: none;
    margin: 0;
    padding: 0;
    border-width: 0;
    box-shadow: none;
}

.pnh-app .pnv-chan img {
    display: block;
    width: 56%;
    height: 56%;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
}

/* No lime inside the hero product window: the page's lime button is the only green on the first screen
 * (owner, 2026-11-19: "dont use green it distracts from main cta in hero"). */
.pnh-app .pnh-chip--pub,
.pnh-app .pnh-chip--best {
    background: var(--pns-mist);
    color: var(--pns-text);
}

.pnh-app .pnh-chip--pub .pnv-tick circle {
    fill: var(--pns-text);
}

.pnh-app .pnh-app__logo {
    color: #ffffff;
}

.pnh-app .pnh-chip--pub .pnv-tick path {
    stroke: #ffffff;
}
