/* Product pages, one per part of Wroke (resources/views/website/product/module.blade.php).
   Each page carries its part's colours: --c (ink) and --bg (soft), from App\Support\WrokeModules. */

.wk-pp {
    --pp-ink: #14231b;
    --pp-muted: #5f6d66;
    --pp-line: #e6ece8;
}

/* ---- hero ---- */
.wk-pp-hero {
    position: relative;
    padding: 132px 0 40px;
    background:
        radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%),
        linear-gradient(#fbfcfb, #fff);
    overflow: hidden;
}

.wk-pp-hero__txt {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.wk-pp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 20px -12px color-mix(in srgb, var(--c) 50%, transparent);
    color: var(--c);
    font-size: 14px;
    font-weight: 600;
}

[dir="rtl"] .wk-pp-badge {
    padding: 6px 6px 6px 14px;
}

.wk-pp-badge i,
.wk-pp-linkcard__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--bg);
    color: var(--c);
}

.wk-pp svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wk-pp-badge svg {
    width: 17px;
    height: 17px;
}

.wk-pp-hero h1 {
    margin: 20px 0 14px;
    color: #000;
    font-size: 46px;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.wk-pp-hero__txt > p {
    margin: 0 auto 28px;
    max-width: 700px;
    color: var(--pp-muted);
    font-size: 18px;
    line-height: 1.75;
    text-wrap: pretty;
}

.wk-pp-hero__btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 26px;
}

.wk-pp-hero__btns .btn-site {
    margin: 0;
    height: auto;
    padding: 13px 34px;
}

.wk-pp-link {
    color: var(--main-color);
    font-weight: 600;
    font-size: 15px;
}

.wk-pp-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.wk-pp-hero__stage {
    position: relative;
    max-width: 1000px;
    margin: 48px auto 0;
}

.wk-pp-hero__stage::before {
    content: "";
    position: absolute;
    inset: 8% -6% -8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 20%, transparent), transparent 75%);
}

/* ---- what you do with it ---- */
.wk-pp-how {
    padding: 72px 0 40px;
}

.wk-pp .sec_head h2,
.wk-pp .sec_head > span {
    text-transform: none;
}

.wk-pp .sec_head p {
    width: auto;
    max-width: 640px;
}

.wk-pp-row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 64px;
    margin-top: 72px;
}

.wk-pp-row.is-flip .wk-pp-row__txt {
    order: 2;
}

.wk-pp-row__num {
    display: block;
    margin-bottom: 10px;
    color: color-mix(in srgb, var(--c) 55%, transparent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
}

.wk-pp-row__txt h3 {
    margin: 0 0 12px;
    color: var(--pp-ink);
    font-size: 28px;
    line-height: 1.3;
    text-wrap: balance;
}

.wk-pp-row__txt > p {
    margin: 0 0 20px;
    color: var(--pp-muted);
    font-size: 16.5px;
    line-height: 1.8;
    text-wrap: pretty;
}

.wk-pp-points {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-pp-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--pp-ink);
    font-size: 15px;
    line-height: 1.6;
}

.wk-pp-points i,
.wk-pp-list li i {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--c);
}

.wk-pp-points svg,
.wk-pp-list li svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

/* a real piece of the app's screen */
.wk-pp-row__visual {
    position: relative;
    min-width: 0;
}

.wk-pp-row__visual::before {
    content: "";
    position: absolute;
    inset: 6% 4% -4%;
    z-index: -1;
    border-radius: 40px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), transparent 80%);
}

.wk-pp-shot {
    margin: 0;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgb(29 36 51 / 8%);
    box-shadow: 0 34px 60px -32px rgb(12 50 30 / 38%), 0 10px 22px -14px rgb(29 36 51 / 14%);
    overflow: hidden;
}

.wk-pp-shot__img {
    width: 100%;
    background-repeat: no-repeat;
    transition: transform 1.2s cubic-bezier(.2, .8, .3, 1);
}

.wk-pp-shot:hover .wk-pp-shot__img {
    transform: scale(1.03);
}

.wk-pp-card {
    position: relative;
    padding: 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--pp-line);
    box-shadow: 0 30px 60px -36px rgb(12 50 30 / 35%);
}

/* imports: the tools you come from, into Wroke */
.wk-pp-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}

.wk-pp-tools small {
    color: var(--pp-muted);
    font-size: 13.5px;
}

.wk-pp-tools ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-pp-tools li {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--pp-line);
    background: #fafbfa;
    color: var(--pp-ink);
    font-size: 16px;
    font-weight: 700;
    direction: ltr;
}

.wk-pp-tools__arrow svg {
    display: block;
    width: 26px;
    height: 26px;
    color: var(--c);
    animation: wkPpDown 1.8s ease-in-out infinite;
}

@keyframes wkPpDown {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(4px); }
}

.wk-pp-tools__to {
    padding: 12px 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, transparent), 0 14px 30px -14px color-mix(in srgb, var(--c) 60%, transparent);
}

.wk-pp-tools__to img {
    display: block;
    width: 96px;
    height: auto;
}

/* lists drawn like the app's menus */
.wk-pp-list {
    max-width: 440px;
    margin-inline: auto;
}

.wk-pp-list > strong {
    display: block;
    margin-bottom: 14px;
    color: var(--pp-ink);
    font-size: 17px;
}

.wk-pp-list ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-pp-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fafbfa;
    border: 1px solid var(--pp-line);
    color: var(--pp-ink);
    font-size: 15px;
}

.wk-pp-list__prompt {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px 14px 14px 4px;
    background: var(--main-color);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

[dir="rtl"] .wk-pp-list__prompt {
    border-radius: 14px 14px 4px 14px;
}

/* the agents and their steps */
.wk-pp-agents__crew {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.wk-pp-agents__crew li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--c);
    font-size: 14px;
    font-weight: 700;
}

.wk-pp-agents__crew i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff;
}

.wk-pp-agents__crew svg {
    width: 16px;
    height: 16px;
}

.wk-pp-agents__q {
    width: fit-content;
    max-width: 90%;
    margin: 0 0 12px auto;
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    background: var(--main-color);
    color: #fff;
    font-size: 14px;
}

[dir="rtl"] .wk-pp-agents__q {
    margin: 0 auto 12px 0;
    border-radius: 14px 14px 14px 4px;
}

.wk-pp-agents__steps {
    margin: 0 0 12px;
    padding: 0 0 12px;
    list-style: none;
    border-bottom: 1px solid var(--pp-line);
}

.wk-pp-agents__steps li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    color: var(--pp-muted);
    font-size: 13.5px;
}

.wk-pp-agents__steps b {
    flex: none;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--c);
    font-size: 12px;
}

.wk-pp-agents p {
    margin: 0 0 6px;
    color: var(--pp-ink);
    font-size: 15px;
    line-height: 1.7;
}

.wk-pp-agents p b {
    unicode-bidi: isolate;
}

.wk-pp-agents small {
    color: #7b8781;
    font-size: 12.5px;
}

/* what happens right away and what waits */
.wk-pp-approve {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wk-pp-approve strong {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 16px;
}

.wk-pp-approve strong i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.wk-pp-approve strong svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.wk-pp-approve .is-now strong { color: #0f6939; }
.wk-pp-approve .is-now strong i { background: #e3f1e8; }
.wk-pp-approve .is-ask strong { color: #b5560f; }
.wk-pp-approve .is-ask strong i { background: #fbeadb; }

.wk-pp-approve ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-pp-approve li {
    padding: 9px 12px;
    border-radius: 10px;
    background: #fafbfa;
    border: 1px solid var(--pp-line);
    color: var(--pp-ink);
    font-size: 14.5px;
}

.wk-pp-approve .is-ask li {
    border-style: dashed;
    border-color: #f1d3b9;
    background: #fffaf5;
}

/* ---- connected to the rest ---- */
.wk-pp-links {
    padding: 72px 0;
    background: #f7f9f8;
}

.wk-pp-links__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.wk-pp-linkcard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--pp-line);
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

a.wk-pp-linkcard:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--c) 40%, transparent);
    box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--c) 60%, transparent);
}

.wk-pp-linkcard__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.wk-pp-linkcard__icon svg {
    width: 21px;
    height: 21px;
}

.wk-pp-linkcard strong {
    color: var(--pp-ink);
    font-size: 16.5px;
}

.wk-pp-linkcard p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.wk-pp-linkcard__go {
    position: absolute;
    top: 22px;
    inset-inline-end: 20px;
    color: var(--c);
}

.wk-pp-linkcard__go svg {
    width: 20px;
    height: 20px;
}

[dir="rtl"] .wk-pp-linkcard__go svg {
    transform: scaleX(-1);
}

/* ---- questions ---- */
.wk-pp-faq {
    padding: 80px 0 40px;
}

.wk-pp-faq__list {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.wk-pp-faq details {
    border: 1px solid var(--pp-line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.wk-pp-faq details[open] {
    border-color: color-mix(in srgb, var(--c) 35%, transparent);
    box-shadow: 0 16px 34px -26px color-mix(in srgb, var(--c) 60%, transparent);
}

.wk-pp-faq summary {
    position: relative;
    padding: 20px 24px;
    padding-inline-end: 56px;
    color: var(--pp-ink);
    font-size: 16.5px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.wk-pp-faq summary::-webkit-details-marker {
    display: none;
}

.wk-pp-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    inset-inline-end: 20px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--c);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.wk-pp-faq details[open] summary::after {
    content: "−";
}

.wk-pp-faq details p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--pp-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

/* ---- the other parts ---- */
.wk-pp-more {
    padding: 48px 0 24px;
}

.wk-pp-more__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.wk-pp-more__head h2 {
    margin: 0;
    color: var(--pp-ink);
    font-size: 26px;
}

.wk-pp-more__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.wk-pp-more__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--pp-line);
    background: #fff;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.wk-pp-more__card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--c) 40%, transparent);
    box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--c) 60%, transparent);
}

.wk-pp-more__card .wk-pp-linkcard__icon {
    flex: none;
}

.wk-pp-more__card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pp-ink);
    font-size: 16px;
}

.wk-pp-more__card p {
    margin: 0;
    color: var(--pp-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---- smaller screens ---- */
@media (max-width: 1199px) {
    .wk-pp-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .wk-pp-hero { padding-top: 110px; }
    .wk-pp-hero h1 { font-size: 34px; }
    .wk-pp-row { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
    .wk-pp-row.is-flip .wk-pp-row__txt { order: 0; }
    .wk-pp-row__txt h3 { font-size: 24px; }
}

@media (max-width: 680px) {
    .wk-pp-hero { padding: 96px 0 24px; }
    .wk-pp-hero h1 { font-size: 28px; }
    .wk-pp-hero__txt > p { font-size: 16px; }
    .wk-pp-hero__stage { margin-top: 32px; }
    .wk-pp-how { padding-top: 48px; }
    .wk-pp-row { margin-top: 44px; }
    .wk-pp-card { padding: 20px; }
    .wk-pp-approve { grid-template-columns: 1fr; }
    .wk-pp-links { padding: 52px 0; }
    .wk-pp-links__grid { grid-template-columns: 1fr; }
    .wk-pp-faq { padding-top: 56px; }
    .wk-pp-faq summary { padding: 16px 18px; padding-inline-end: 50px; font-size: 15.5px; }
    .wk-pp-faq details p { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .wk-pp *, .wk-pp *::before, .wk-pp *::after { animation: none !important; transition: none !important; }
}

/* a tall piece of screen (a side panel) stays a sensible size */
.wk-pp-shot.is-tall {
    max-width: 430px;
    margin-inline: auto;
}

/* menus with many items sit in two columns */
.wk-pp-list--entries,
.wk-pp-list--reports {
    max-width: 560px;
}

.wk-pp-list--entries ol,
.wk-pp-list--reports ol {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 340px) {
    .wk-pp-list--entries ol,
    .wk-pp-list--reports ol { grid-template-columns: 1fr; }
}

/* where a crop cuts through the screen, it fades instead of chopping a card */
.wk-pp-shot__img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* ---- a still screen in the hero (parts without an animated scene) ---- */
.wk-pp-hero__still {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- "states": a short list of states with their marks (reviews, read ticks, a domain) ---- */
.wk-pp-states {
    max-width: 420px;
    margin-inline: auto;
}

.wk-pp-states > strong {
    display: block;
    margin-bottom: 16px;
    color: var(--pp-ink);
    font-size: 16px;
    unicode-bidi: plaintext;
}

.wk-pp-states ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-pp-states li {
    --tone: #5f6d66;
    --tone-bg: #f1f4f2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--pp-line);
    background: #fff;
    color: var(--pp-ink);
    font-size: 15px;
    font-weight: 600;
}

.wk-pp-states li.is-ok { --tone: #0f6939; --tone-bg: #e3f1e8; }
.wk-pp-states li.is-wait { --tone: #b5560f; --tone-bg: #fbeadb; }
.wk-pp-states li.is-no { --tone: #c0392b; --tone-bg: #fbe5e2; }
.wk-pp-states li.is-muted { --tone: #8a948f; --tone-bg: #f1f4f2; color: #5f6d66; }

.wk-pp-states li i {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--tone-bg);
    color: var(--tone);
}

.wk-pp-states li svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.3;
}

/* the "never shown" side of a comparison */
.wk-pp-approve .is-never strong { color: #5f6d66; }
.wk-pp-approve .is-never strong i { background: #eef1ef; }
.wk-pp-approve .is-never li {
    border-style: dashed;
    border-color: #d9dfdb;
    background: #fafbfa;
    color: #6b7671;
    text-decoration: line-through;
    text-decoration-color: rgb(107 118 113 / 45%);
}

/* emails and codes inside Arabic lists keep their own direction */
.wk-pp-list li bdi {
    unicode-bidi: isolate;
}

.wk-pp-list--team_setup,
.wk-pp-list--salary,
.wk-pp-list--sections,
.wk-pp-list--dynamic {
    max-width: 560px;
}

.wk-pp-list--team_setup ol,
.wk-pp-list--salary ol,
.wk-pp-list--sections ol,
.wk-pp-list--dynamic ol {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 340px) {
    .wk-pp-list--team_setup ol,
    .wk-pp-list--salary ol,
    .wk-pp-list--sections ol,
    .wk-pp-list--dynamic ol { grid-template-columns: 1fr; }
}
