/* ==========================================================================
   PRLinkUp — Home sections 08–10
   Product tour (laptop + phone) · And there's more (hover index)
   Multi-page creators (page deck)
   ========================================================================== */

/* Italic gradient words in titles (see home-journey.css for why words repeat it) */
.tour__title em,
.tour__title em .split-word,
.pages__title em,
.pages__title em .split-word {
    font-style: italic;
    background-image: linear-gradient(100deg, #5B3FF0 0%, #7A5DFF 35%, #B06AF8 70%, #E879F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.more__title em,
.more__title em .split-word {
    font-style: italic;
    background-image: linear-gradient(100deg, #C4B5FF 0%, #E9D5FF 50%, #F5B5FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.tour__title em .split-word,
.pages__title em .split-word,
.more__title em .split-word {
    padding-right: 0.06em;
}

.tour__title,
.more__title,
.pages__title {
    font-size: clamp(2.3rem, 1rem + 3.8vw, 4.6rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.05em;
}

/* ==========================================================================
   Product tour
   ========================================================================== */
.tour {
    position: relative;
    padding-block: clamp(5rem, 4rem + 5vw, 8rem);
    overflow: hidden;
    background: #F7F5FF;
}

.tour__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    grid-template-areas:
        "meta meta"
        "title lead";
    align-items: end;
    gap: clamp(1.25rem, 3vh, 2rem) clamp(2rem, 6vw, 6rem);
}

.tour__head .sec-meta { grid-area: meta; }
.tour__title { grid-area: title; color: var(--ink-950); }

.tour__lead {
    grid-area: lead;
    padding-bottom: 0.5em;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
    line-height: 1.6;
    color: var(--ink-600);
}

.tour__body {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin-top: clamp(2.5rem, 6vh, 4rem);
}

/* ---------- Tabs ---------- */
.tour__tabs {
    display: grid;
    gap: 6px;
}

.tour-tab {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 20px 22px 16px;
    border-radius: 20px;
    color: var(--ink-900);
    text-align: left;
    transition: background-color 0.4s, box-shadow 0.4s;
}

.tour-tab:hover {
    background: rgba(255, 255, 255, 0.6);
}

.tour-tab.is-active {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.tour-tab__num {
    padding-top: 3px;
    font-size: 12px;
    font-weight: var(--fw-semi);
    color: var(--ink-400);
    font-variant-numeric: tabular-nums;
}

.tour-tab.is-active .tour-tab__num {
    color: var(--violet-500);
}

.tour-tab__label {
    display: block;
    font-size: 11px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet-500);
}

.tour-tab__title {
    display: block;
    margin-top: 3px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--ink-600);
    transition: color 0.4s;
}

.tour-tab.is-active .tour-tab__title {
    color: var(--ink-950);
}

.tour-tab__text {
    display: block;
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-600);
    opacity: 0;
    transition: max-height 0.5s var(--ease-out), opacity 0.4s, margin 0.5s var(--ease-out);
}

.tour-tab.is-active .tour-tab__text {
    max-height: 90px;
    margin-top: 6px;
    opacity: 1;
}

.tour-tab__bar {
    position: absolute;
    right: 20px;
    bottom: 10px;
    left: 60px;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-100);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.tour-tab.is-active .tour-tab__bar {
    opacity: 1;
}

.tour-tab__bar span {
    display: block;
    height: 100%;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left center;
}

/* Autoplay (tour.js adds .is-auto); progress also drives the switch */
.tour.is-auto .tour-tab.is-active .tour-tab__bar span {
    animation: tour-progress var(--tour-dur, 6s) linear forwards;
}

.tour.is-paused .tour-tab.is-active .tour-tab__bar span {
    animation-play-state: paused;
}

@keyframes tour-progress {
    to { transform: scaleX(1); }
}

/* ---------- Stage ---------- */
.tour__stage {
    position: relative;
    padding: 0 3% 6% 0;
}

.tour__glow {
    position: absolute;
    inset: 10% 5% 0 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 93, 255, 0.35), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

.laptop {
    position: relative;
    width: 86%;
}

.laptop__lid {
    position: relative;
    padding: 1.8% 1.8% 2.4%;
    border-radius: 18px 18px 6px 6px;
    background: #0E0C1F;
    box-shadow: inset 0 0 0 1.5px #39336B, 0 50px 90px -40px rgba(30, 20, 90, 0.55);
}

.laptop__cam {
    position: absolute;
    top: 0.75%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2C2750;
    translate: -50% 0;
}

.laptop__screen {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
    background: var(--gray-50);
    container-type: inline-size;
}

.laptop__base {
    position: relative;
    height: clamp(10px, 1.5vw, 18px);
    margin: 0 -6%;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(#E4E1EF, #A9A5BD);
    box-shadow: 0 20px 30px -18px rgba(17, 19, 38, 0.5);
}

.laptop__base::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 16%;
    height: 45%;
    border-radius: 0 0 10px 10px;
    background: #B7B2CB;
    translate: -50% 0;
}

/* ---------- Web app (scales with the laptop screen) ---------- */
.app {
    display: grid;
    grid-template-columns: 12.5em minmax(0, 1fr);
    height: 100%;
    font-size: 1.45cqi;
    line-height: 1.35;
    color: var(--ink-900);
}

.app b {
    font-weight: var(--fw-semi);
}

.app small {
    color: var(--ink-600);
}

.app__side {
    display: flex;
    flex-direction: column;
    gap: 1.6em;
    padding: 1.4em 1em;
    border-right: 1px solid var(--color-border);
    background: var(--white);
}

.app__brand {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 1.1em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.app__mark {
    display: grid;
    place-items: center;
    width: 2.1em;
    height: 2.1em;
    border-radius: 0.6em;
    background: var(--grad-primary);
    color: var(--white);
}

.app__mark svg {
    width: 55%;
    height: 55%;
}

.app__nav {
    display: grid;
    gap: 0.25em;
}

.app__nav-item {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.65em 0.8em;
    border-radius: 0.7em;
    color: var(--ink-600);
    font-weight: var(--fw-medium);
    transition: background-color 0.4s, color 0.4s;
}

.app__nav-item i {
    font-size: 1.3em;
}

.tour__stage[data-active="market"] [data-nav-key="market"],
.tour__stage[data-active="campaign"] [data-nav-key="campaign"],
.tour__stage[data-active="chat"] [data-nav-key="chat"],
.tour__stage[data-active="wallet"] [data-nav-key="wallet"] {
    background: var(--violet-100);
    color: var(--violet-650);
}

.app__account {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: auto;
    padding-top: 1em;
    border-top: 1px solid var(--color-border);
}

.app__account-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--ink-950);
    color: var(--white);
    font-weight: var(--fw-bold);
}

.app__account b,
.app__account small {
    display: block;
}

.app__account small {
    font-size: 0.8em;
}

.app__main {
    display: flex;
    flex-direction: column;
    gap: 1em;
    min-width: 0;
    padding: 1.2em 1.4em;
}

.app__top {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.app__search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1em;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    background: var(--white);
    color: var(--ink-400);
    font-size: 0.95em;
}

.app__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.3em;
    height: 2.3em;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--white);
    font-size: 1.05em;
}

.app__icon i:last-child {
    position: absolute;
    top: 0.45em;
    right: 0.5em;
    width: 0.45em;
    height: 0.45em;
    border-radius: 50%;
    background: var(--error);
}

.app__avatar {
    display: grid;
    place-items: center;
    width: 2.3em;
    height: 2.3em;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 0.85em;
    font-weight: var(--fw-semi);
}

.app__screens {
    position: relative;
    flex: 1;
    min-height: 0;
}

/* Screen switching: the stage's data-active picks the visible screen */
.screen,
.mscreen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    visibility: hidden;
    opacity: 0;
    translate: 0 1.2em;
    transition: opacity 0.35s var(--ease-soft), translate 0.35s var(--ease-soft), visibility 0s linear 0.35s;
}

.tour__stage[data-active="market"] [data-screen="market"],
.tour__stage[data-active="campaign"] [data-screen="campaign"],
.tour__stage[data-active="chat"] [data-screen="chat"],
.tour__stage[data-active="wallet"] [data-screen="wallet"] {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.55s var(--ease-out) 0.15s, translate 0.8s var(--ease-out) 0.15s, visibility 0s;
}

.screen__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.screen__head b {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.35em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.screen__head small {
    display: block;
    font-size: 0.85em;
}

.screen__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.55em 0.95em;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: 0.85em;
    font-weight: var(--fw-semi);
    white-space: nowrap;
}

.screen__btn--on {
    border-color: transparent;
    background: var(--grad-primary);
    color: var(--white);
}

.screen__chips {
    display: flex;
    gap: 0.4em;
    overflow: hidden;
}

.screen__chips span {
    flex-shrink: 0;
    padding: 0.35em 0.85em;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: 0.8em;
    color: var(--ink-600);
}

.screen__chips .is-on {
    border-color: transparent;
    background: var(--grad-primary);
    color: var(--white);
}

.dot-live {
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s var(--ease-soft) infinite;
}

/* Marketplace */
.market-grid {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8em;
}

.mcard {
    padding: 0.45em 0.45em 0.7em;
    border-radius: 1em;
    background: var(--white);
    box-shadow: var(--shadow-xs);
    text-align: center;
}

.mcard__cover {
    position: relative;
    display: block;
    height: 3.4em;
    border-radius: 0.7em;
    background: var(--g);
    opacity: 0.9;
}

.mcard__cover i {
    position: absolute;
    top: 0.45em;
    right: 0.55em;
    color: var(--white);
}

.mcard__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.9em;
    height: 2.9em;
    margin: -1.55em auto 0.3em;
    border: 0.2em solid var(--white);
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    font-size: 0.8em;
    font-weight: var(--fw-semi);
}

.mcard b {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    font-size: 0.9em;
}

.mcard b i {
    color: var(--violet-500);
}

.mcard small {
    display: block;
    font-size: 0.75em;
}

.mcard__row {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45em;
    padding: 0.45em 0.35em 0;
    border-top: 1px solid var(--gray-100);
    font-size: 0.78em;
}

.mcard__row i {
    color: var(--warning);
}

.mcard__row em {
    font-style: normal;
    font-weight: var(--fw-semi);
    color: var(--violet-650);
}

/* Campaign board */
.kanban {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7em;
}

.kanban__col {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0.7em;
    border-radius: 1em;
    background: rgba(122, 93, 255, 0.06);
}

.kanban__title {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 0.15em;
    font-size: 0.82em;
    font-weight: var(--fw-semi);
}

.kanban__title i {
    padding: 0 0.55em;
    border-radius: var(--r-pill);
    background: var(--white);
    font-style: normal;
}

.kanban__title--base    { color: var(--ink-600); }
.kanban__title--on      { color: var(--violet-650); }
.kanban__title--pending { color: #9A6100; }
.kanban__title--paid    { color: #067A40; }

.kcard {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.55em;
    border-radius: 0.7em;
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

.kcard__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 0.72em;
    font-weight: var(--fw-semi);
}

.kcard b,
.kcard small {
    display: block;
}

.kcard b {
    font-size: 0.85em;
}

.kcard small {
    font-size: 0.72em;
}

/* Chat */
.screen--chat {
    display: grid;
    grid-template-columns: 15em minmax(0, 1fr);
    gap: 0.8em;
}

.threads {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    padding: 0.5em;
    border-radius: 1em;
    background: var(--white);
}

.thread {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.6em;
    border-radius: 0.7em;
}

.thread.is-on {
    background: var(--violet-100);
}

.thread > span:last-child {
    min-width: 0;
}

.thread__avatar {
    flex-shrink: 0;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--g);
}

.thread b,
.thread small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.thread b {
    font-size: 0.85em;
}

.thread small {
    font-size: 0.72em;
}

.convo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 1em;
    background: var(--white);
}

.convo__head {
    padding: 0.85em 1.1em;
    border-bottom: 1px solid var(--gray-100);
}

.convo__head b,
.convo__head small {
    display: block;
}

.convo__head small {
    font-size: 0.75em;
}

.convo__msgs {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6em;
    padding: 1em 1.1em;
}

.msg--file {
    display: flex;
    align-items: center;
    gap: 0.6em;
    border: 1px solid var(--color-border);
    background: var(--white);
}

.msg--file b,
.msg--file small {
    display: block;
}

.msg__thumb {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3.4em;
    height: 2.4em;
    border-radius: 0.6em;
    background: var(--grad-orchid);
    color: var(--white);
}

.convo__actions {
    display: flex;
    gap: 0.5em;
    padding: 0.8em 1.1em;
    border-top: 1px solid var(--gray-100);
}

/* Wallet */
.wstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8em;
}

.wstat {
    padding: 0.9em 1em;
    border-radius: 1em;
    background: var(--white);
}

.wstat small,
.wstat b {
    display: block;
}

.wstat small {
    font-size: 0.78em;
}

.wstat b {
    margin-top: 0.15em;
    font-size: 1.45em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.wstat--main {
    background: var(--grad-twilight);
    color: var(--white);
}

.wstat--main small {
    color: rgba(255, 255, 255, 0.8);
}

.wchart {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0.9em 1em 0.7em;
    border-radius: 1em;
    background: var(--white);
}

.wchart > small {
    font-size: 0.8em;
    font-weight: var(--fw-semi);
}

.wchart__bars {
    display: flex;
    flex: 1;
    align-items: flex-end;
    gap: 1.2em;
    margin-top: 0.6em;
}

.wchart__bars span {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3em;
    height: 100%;
}

.wchart__bars i {
    width: 100%;
    height: var(--h);
    border-radius: 0.4em 0.4em 0.2em 0.2em;
    background: linear-gradient(#B06AF8, #7A5DFF);
    transform-origin: bottom;
}

.wchart__bars span:last-child i {
    background: linear-gradient(#34E89E, #00D26A);
}

.wchart__bars small {
    font-size: 0.7em;
}

.tour__stage[data-active="wallet"] .wchart__bars i {
    animation: bar-up 0.9s var(--ease-out) both;
}

.tour__stage[data-active="wallet"] .wchart__bars span:nth-child(2) i { animation-delay: 0.05s; }
.tour__stage[data-active="wallet"] .wchart__bars span:nth-child(3) i { animation-delay: 0.1s; }
.tour__stage[data-active="wallet"] .wchart__bars span:nth-child(4) i { animation-delay: 0.15s; }
.tour__stage[data-active="wallet"] .wchart__bars span:nth-child(5) i { animation-delay: 0.2s; }
.tour__stage[data-active="wallet"] .wchart__bars span:nth-child(6) i { animation-delay: 0.25s; }

.wtx {
    display: grid;
    gap: 0.4em;
}

.wtx > span {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.55em 0.8em;
    border-radius: 0.8em;
    background: var(--white);
}

.wtx b {
    flex: 1;
    font-size: 0.85em;
}

.wtx em {
    font-size: 0.88em;
    font-style: normal;
    font-weight: var(--fw-semi);
}

.wtx em.is-in {
    color: #067A40;
}

.wtx__ico {
    display: grid;
    place-items: center;
    width: 1.9em;
    height: 1.9em;
    border-radius: 0.5em;
    font-style: normal;
}

.wtx__ico--out { background: rgba(232, 121, 249, 0.16); color: #C026D3; }
.wtx__ico--in  { background: var(--success-soft); color: #067A40; }

/* ---------- Phone: mobile app ---------- */
.tphone {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 21.5%;
    aspect-ratio: 9 / 19;
    border-radius: 16% / 7.5%;
    container-type: inline-size; /* the screen text scales with the phone */
    background: #0E0C1F;
    box-shadow: inset 0 0 0 1.5px #39336B, 0 40px 70px -24px rgba(30, 20, 90, 0.6);
}

.tphone__island {
    position: absolute;
    top: 3.4%;
    left: 50%;
    z-index: 3;
    width: 32%;
    height: 3.6%;
    border-radius: var(--r-pill);
    background: #000;
    translate: -50% 0;
}

.tphone__screen {
    position: absolute;
    inset: 2.4%;
    overflow: hidden;
    border-radius: 14% / 6.6%;
    background: var(--gray-50);
    font-size: 6.2cqi;
    line-height: 1.35;
    color: var(--ink-900);
}

.mscreen {
    gap: 0.6em;
    padding: 2.8em 7% 1.2em;
}

.mscreen b {
    font-weight: var(--fw-semi);
}

.mscreen small {
    color: var(--ink-600);
}

.mprof__cover {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6.6em;
    background: var(--grad-orchid);
}

.mprof__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 3.8em;
    height: 3.8em;
    margin: 1.3em auto 0;
    border: 0.22em solid var(--white);
    border-radius: 50%;
    background: var(--grad-orchid);
    color: var(--white);
    font-weight: var(--fw-semi);
}

.mprof__name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    margin-top: -0.3em;
    font-size: 1em;
}

.mprof__name i {
    color: var(--violet-500);
}

.mprof__handle {
    margin-top: -0.5em;
    font-size: 0.75em;
    text-align: center;
}

.mprof__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.55em 0.2em;
    border-radius: 0.8em;
    background: var(--white);
    text-align: center;
}

.mprof__stats b,
.mprof__stats small {
    display: block;
}

.mprof__stats b {
    font-size: 0.9em;
}

.mprof__stats small {
    font-size: 0.6em;
}

.mprof__rates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em;
}

.mprof__rates span {
    padding: 0.3em 0.6em;
    border-radius: var(--r-pill);
    background: var(--violet-100);
    color: var(--violet-650);
    font-size: 0.68em;
    font-weight: var(--fw-semi);
}

.mprof__work {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3em;
}

.mprof__work i {
    aspect-ratio: 1;
    border-radius: 0.5em;
    background: var(--g);
    opacity: 0.85;
}

.mnote {
    padding: 0.6em 0.7em;
    border-radius: 0.7em;
    background: var(--warning-soft);
    color: #7A4D00;
    font-size: 0.7em;
}

.mnote b {
    display: block;
}

.mtx {
    display: flex;
    justify-content: space-between;
    padding: 0.55em 0.1em;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.72em;
}

.mtx em {
    font-style: normal;
    font-weight: var(--fw-semi);
    color: #067A40;
}

.mbtn {
    margin-top: auto;
    padding: 0.75em;
    border-radius: var(--r-pill);
    background: var(--grad-primary);
    color: var(--white);
    font-size: 0.8em;
    font-weight: var(--fw-semi);
    text-align: center;
}

.mtitle-k {
    font-size: 0.68em;
    font-weight: var(--fw-semi);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mtitle {
    margin-top: -0.4em;
    font-size: 1.25em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.mbrief {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 0.7em;
    border-radius: 0.7em;
    background: var(--white);
    font-size: 0.75em;
    font-weight: var(--fw-medium);
}

.mbrief i {
    color: var(--success);
}

.mbrief--todo i {
    color: var(--ink-400);
}

.mmeta {
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.7em;
    color: var(--ink-600);
}

.mscreen--chat .msg {
    font-size: 0.75em;
}

.mnotice {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin-top: auto;
    padding: 0.6em 0.7em;
    border-radius: 0.7em;
    background: var(--success-soft);
    color: #067A40;
    font-size: 0.68em;
    font-weight: var(--fw-semi);
}

.mbig {
    margin-top: -0.3em;
    font-size: 2.1em;
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
}

.mbank {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.6em 0.7em;
    border-radius: 0.7em;
    background: var(--white);
    font-size: 0.78em;
    font-weight: var(--fw-semi);
}

@media (max-width: 1023px) {
    .tour__head {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "meta" "title" "lead";
    }

    .tour__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour__stage {
        padding: 0 2% 10% 0;
    }

    .tphone {
        width: 26%;
    }
}

@media (max-width: 600px) {
    .tour-tab {
        padding: 14px 16px 18px 12px;
    }

    .tour-tab__title {
        font-size: 16px;
    }

    .tour-tab__bar {
        left: 56px;
    }

    /* Phones: the laptop would be unreadable, so show the mobile app alone */
    .tour__stage {
        display: grid;
        place-items: center;
        padding: 0;
    }

    .laptop {
        display: none;
    }

    .tphone {
        position: relative;
        width: min(270px, 72vw);
    }
}

/* ==========================================================================
   And there's more — hover index
   ========================================================================== */
.more {
    position: relative;
    isolation: isolate;
    padding-block: clamp(5rem, 4rem + 5vw, 8.5rem);
    overflow: hidden;
    background: #0E0B26;
    color: var(--white);
}

.more__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.more__glow {
    position: absolute;
    top: -30%;
    left: 30%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: #4A2FD9;
    filter: blur(140px);
    opacity: 0.35;
}

.more .grain {
    opacity: 0.07;
}

.more__head .sec-meta {
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.more__title {
    max-width: 16ch;
    color: var(--white);
}

.more__list {
    margin: clamp(2.5rem, 6vh, 4rem) 0 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    list-style: none;
}

.more-row {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px 28px;
    padding: clamp(1.4rem, 3vh, 2rem) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transition: opacity 0.45s var(--ease-soft);
}

/* Gradient line draws along the hovered row */
.more-row::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, #7A5DFF, #E879F9, #60A5FA);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s var(--ease-out);
}

.more-row__num {
    font-size: 13px;
    font-weight: var(--fw-semi);
    color: var(--lavender);
    font-variant-numeric: tabular-nums;
}

.more-row__title {
    font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--white);
    transition: translate 0.7s var(--ease-out), color 0.4s;
}

.more-row__text {
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.more-row__arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    font-size: 18px;
    transition: background-color 0.4s, color 0.4s, rotate 0.6s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .more__list:hover .more-row:not(:hover) {
        opacity: 0.32;
    }

    .more-row:hover::after {
        transform: scaleX(1);
    }

    .more-row:hover .more-row__title {
        translate: 16px 0;
        color: var(--lavender);
    }

    .more-row:hover .more-row__arrow {
        background: var(--white);
        color: var(--ink-950);
        rotate: 45deg;
    }
}

/* Inline previews: touch devices and small screens */
.more-row__preview {
    display: none;
}

@media (hover: none), (max-width: 1023px) {
    .more-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .more-row__text {
        grid-column: 2;
    }

    .more-row__arrow {
        display: none;
    }

    .more-row__preview {
        display: block;
        grid-column: 2;
        margin-top: 6px;
    }

    .more-row__preview .mini {
        width: auto;
        max-width: 360px;
    }
}

/* Floating preview that follows the cursor (desktop) */
.more__float {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    scale: 0.85;
    transition: opacity 0.3s var(--ease-soft), scale 0.5s var(--ease-out);
}

.more__float.is-visible {
    opacity: 1;
    scale: 1;
}

.more__float .mini {
    display: none;
    rotate: -3deg;
}

.more__float .mini.is-on {
    display: grid;
}

/* ---------- Mini previews ---------- */
.mini {
    display: grid;
    gap: 8px;
    width: 300px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 #fff;
    color: var(--ink-900);
    font-size: 13px;
    line-height: 1.4;
}

.mini b {
    font-weight: var(--fw-semi);
}

.mini small {
    color: var(--ink-600);
    font-size: 11.5px;
}

.mini .msg {
    font-size: 12.5px;
}

.mini__head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--fw-semi);
}

.mini__head i {
    color: var(--violet-500);
    font-size: 16px;
}

.mini__head small {
    margin-left: auto;
}

.mini__typing {
    display: inline-flex;
    gap: 4px;
    justify-self: start;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--gray-100);
}

.mini__typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet-400);
    animation: typing 1.2s ease-in-out infinite;
}

.mini__typing i:nth-child(2) { animation-delay: 0.15s; }
.mini__typing i:nth-child(3) { animation-delay: 0.3s; }

.mini__folder,
.mini__rate,
.mini__check,
.mini__task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--gray-50);
}

.mini__folder > i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--g);
    color: var(--white);
    font-style: normal;
}

.mini__folder b {
    flex: 1;
}

.mini__rate i {
    color: var(--violet-500);
    font-size: 16px;
}

.mini__rate b {
    flex: 1;
}

.mini__rate em {
    font-style: normal;
    font-weight: var(--fw-bold);
    color: var(--violet-650);
}

.mini__score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini__score > b {
    font-size: 40px;
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.04em;
}

.mini__score small {
    display: block;
}

.mini__stars {
    display: flex;
    gap: 2px;
    color: var(--warning);
    font-size: 15px;
}

.mini__quote {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--violet-100);
    font-weight: var(--fw-medium);
}

.mini__quote small {
    display: block;
    margin-top: 6px;
}

.mini__check > i:first-child {
    color: var(--violet-500);
    font-size: 17px;
}

.mini__check b {
    flex: 1;
}

.mini__check > i:last-child {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 11px;
    font-style: normal;
}

.mini__team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.mini__team b,
.mini__team small {
    display: block;
}

.mini__team-avatars {
    display: flex;
}

.mini__team-avatars i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--grad-primary);
    color: var(--white);
    font-size: 10px;
    font-style: normal;
    font-weight: var(--fw-semi);
}

.mini__team-avatars i + i {
    margin-left: -9px;
}

.mini__team-avatars i:nth-child(2) { background: var(--grad-ocean); }
.mini__team-avatars i:nth-child(3) { background: var(--grad-orchid); }

.mini__task {
    font-size: 12.5px;
    font-weight: var(--fw-medium);
}

.mini__task i {
    color: var(--success);
    font-size: 16px;
}

.mini__task--live i {
    color: var(--violet-500);
    animation: spin 1.4s linear infinite;
}

/* ==========================================================================
   Multi-page creators — page deck
   ========================================================================== */
.pages {
    position: relative;
    padding-block: clamp(5rem, 4rem + 5vw, 8.5rem);
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F6F3FF 100%);
}

.pages__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
}

.pages__title {
    margin-top: clamp(1.25rem, 3vh, 2rem);
    color: var(--ink-950);
}

.pages__lead {
    max-width: 46ch;
    margin-top: 20px;
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
    line-height: 1.65;
    color: var(--ink-600);
}

.pages__switch {
    display: grid;
    gap: 10px;
    max-width: 460px;
    margin-top: 28px;
}

.page-pick {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 12px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--white);
    text-align: left;
    transition: border-color 0.4s, box-shadow 0.4s, translate 0.5s var(--ease-out);
}

.page-pick::before {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: -1px;
    width: 3px;
    border-radius: 3px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity 0.4s;
}

.page-pick:hover {
    translate: 4px 0;
}

.page-pick.is-active {
    border-color: var(--violet-200);
    box-shadow: var(--shadow-md), var(--glow-hover);
}

.page-pick.is-active::before {
    opacity: 1;
}

.page-pick__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    font-size: 14px;
    font-weight: var(--fw-semi);
}

.page-pick__body {
    min-width: 0;
}

.page-pick__body b {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    font-size: 15px;
    font-weight: var(--fw-semi);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-pick__body b i {
    flex-shrink: 0;
    color: var(--violet-500);
}

.page-pick__body small {
    display: block;
    font-size: 12.5px;
    color: var(--ink-600);
}

.page-pick__followers {
    font-size: 15px;
    font-weight: var(--fw-bold);
}

.pages__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--ink-600);
}

.pages__note i {
    color: var(--violet-500);
    font-size: 18px;
}

/* ---------- Deck ---------- */
.pages__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(470px, 64vh, 560px);
}

.pages__stage::before {
    content: "";
    position: absolute;
    inset: 15% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 106, 248, 0.32), transparent 65%);
    filter: blur(30px);
}

.pages__hub {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 7px;
    border-radius: var(--r-pill);
    background: var(--white);
    box-shadow: var(--shadow-md);
    translate: -50% 0;
    white-space: nowrap;
}

.pages__hub-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-orchid);
    color: var(--white);
    font-size: 12px;
    font-weight: var(--fw-semi);
}

.pages__hub b,
.pages__hub small {
    display: block;
}

.pages__hub b {
    font-size: 13.5px;
    font-weight: var(--fw-semi);
}

.pages__hub small {
    font-size: 11.5px;
    color: var(--ink-600);
}

.deck {
    position: relative;
    width: min(320px, 72vw);
    height: 372px;
    margin-top: 44px;
}

.pcard {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding-bottom: 20px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 30px 60px -24px rgba(74, 47, 217, 0.4), 0 0 0 1px rgba(122, 93, 255, 0.08);
    text-align: center;
    cursor: pointer;
    transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-soft);
}

/* Fanned positions (data-pos set by pages.js; 0 = front) */
.pcard[data-pos="0"] { z-index: 3; transform: none; }
.pcard[data-pos="1"] { z-index: 2; transform: translate(56%, 22px) rotate(9deg) scale(0.86); filter: saturate(0.85) brightness(0.97); }
.pcard[data-pos="2"] { z-index: 1; transform: translate(-56%, 22px) rotate(-9deg) scale(0.86); filter: saturate(0.85) brightness(0.97); }

/* Folded (before the deck scrolls into view) */
.deck.is-folded .pcard[data-pos="1"] { transform: translate(0, 10px) rotate(3deg) scale(0.95); }
.deck.is-folded .pcard[data-pos="2"] { transform: translate(0, 18px) rotate(-3deg) scale(0.9); }

.pcard[data-pos="0"] {
    cursor: default;
}

.pcard__cover {
    position: relative;
    display: block;
    height: 118px;
    background: var(--g);
}

.pcard__type {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.24);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 11px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pcard__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: -40px auto 10px;
    border: 4px solid var(--white);
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    font-size: 20px;
    font-weight: var(--fw-bold);
}

.pcard__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 17px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
}

.pcard__handle i {
    color: var(--violet-500);
}

.pcard__niche {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ink-600);
}

.pcard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 16px 18px 0;
    padding: 12px 4px;
    border-radius: 16px;
    background: var(--gray-50);
}

.pcard__stats > span + span {
    border-left: 1px solid var(--color-border);
}

.pcard__stats b {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 16px;
    font-weight: var(--fw-bold);
}

.pcard__stats b i {
    color: var(--warning);
    font-size: 13px;
}

.pcard__stats small {
    display: block;
    font-size: 11px;
    color: var(--ink-600);
}

.pcard__rates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 14px 18px 0;
}

.pcard__rates span {
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: var(--violet-100);
    color: var(--violet-650);
    font-size: 12px;
    font-weight: var(--fw-semi);
}

@media (max-width: 1023px) {
    .pages__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pages__switch {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .deck {
        width: min(280px, 72vw);
    }

    .pcard__rates span {
        padding: 5px 9px;
        font-size: 11px;
    }

    .pcard[data-pos="1"] { transform: translate(34%, 22px) rotate(8deg) scale(0.84); }
    .pcard[data-pos="2"] { transform: translate(-34%, 22px) rotate(-8deg) scale(0.84); }
}
