/* Royal Prompts public landing page (/home).
 *
 * Standalone: this file does NOT load the admin panel stylesheet. The panel is
 * a dark workspace, this is a light public page, so sharing a palette would
 * mean overriding most of it. Nothing here can reach the panel, and nothing in
 * the panel can shift this page.
 *
 * Premium blue and purple throughout: deep royal blue and vibrant purple for
 * headings, buttons, borders and accents, on a clean white page with soft
 * blue-tinted bands for contrast. One gradient, used only on the primary
 * button and the download strip.
 *
 * Mobile first. Every rule below is the phone layout; the two media queries at
 * the end only widen things.
 */

:root {
    --blue: #2F4FE0;
    --blue-deep: #1B2F8F;
    --purple: #7A3BED;
    --purple-deep: #5B21B6;

    --ink: #14172E;
    --ink-soft: #3E4461;
    --muted: #6E7496;

    --page: #FFFFFF;
    --tint: #F5F6FF;
    --tint-strong: #ECEDFF;
    --line: #E2E4F4;

    --grad: linear-gradient(100deg, #2F4FE0, #7A3BED);
    --radius: 14px;
}

* { box-sizing: border-box; }

body.landing {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.landing h1, .landing h2, .landing h3 { margin: 0; line-height: 1.25; color: var(--ink); }
.landing p { margin: 0; }
.landing a { color: var(--blue); }

.wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------------------------- header --- */

.top {
    border-bottom: 1px solid var(--line);
    background: var(--page);
}
.top .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
}

.mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--grad);
    flex: none;
}
.mark svg { width: 20px; height: 20px; fill: #fff; }

.top .name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }

.top .get {
    margin-left: auto;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    white-space: nowrap;
}
.top .get:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ intro --- */

.intro { padding: 38px 0 6px; }

.intro .mark {
    width: 72px; height: 72px;
    border-radius: 18px;
    margin-bottom: 20px;
}
.intro .mark svg { width: 40px; height: 40px; }

.intro h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.intro .sub {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    color: var(--purple);
}

.meta {
    margin-top: 14px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.8;
}
.meta code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 13.5px;
    color: var(--blue-deep);
    background: var(--tint-strong);
    padding: 2px 7px;
    border-radius: 6px;
}

.intro .lede { margin-top: 18px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- buttons --- */

.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    transition: filter .15s, background .15s;
}

/* Scoped under .landing so these beat the ".landing a" colour rule above:
   an unscoped .btn-main is one class, which loses to class-plus-element. */
.landing .btn-main {
    background: var(--grad);
    color: #fff;
}
.landing .btn-main:hover { filter: brightness(1.07); }

.landing .btn-light {
    background: #fff;
    color: var(--blue-deep);
}
.landing .btn-light:hover { background: var(--tint); }

.btn-row { margin-top: 24px; }
.btn-row .btn { display: block; }

/* --------------------------------------------------------------- sections --- */

.section { padding: 40px 0; border-top: 1px solid var(--line); margin-top: 38px; }
.section:first-of-type { border-top: 0; margin-top: 0; }

.section h2 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.015em;
}
.section > .wrap > p { margin-top: 14px; color: var(--ink-soft); }

/* Bulleted feature list, lead-in word in blue-purple. */
.offers { margin: 18px 0 0; padding-left: 22px; color: var(--ink-soft); }
.offers li { margin-bottom: 12px; }
.offers li::marker { color: var(--purple); }
.offers b { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------ cards --- */

.grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--page);
    transition: border-color .15s;
}
.card:hover { border-color: var(--purple); }

/* 3:4, the ratio the Android cards use, so artwork is cropped identically. */
.card .art {
    aspect-ratio: 3 / 4;
    background-color: var(--tint-strong);
    background-size: cover;
    background-position: center;
}

.card .label { padding: 10px 12px 12px; }
.card .label .cat {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--purple);
}
.card .label h3 {
    margin-top: 3px;
    font-size: 14.5px;
    font-weight: 600;
    /* One line, so every card in a row is the same height. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card.skeleton .art { background-color: var(--tint-strong); }
.card.skeleton .bar {
    height: 10px;
    border-radius: 5px;
    background: var(--tint-strong);
    margin: 4px 0;
}
.card.skeleton .bar.short { width: 55%; }

.note {
    margin-top: 22px;
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    font-size: 15px;
}

/* ------------------------------------------------------------- categories --- */

.chips {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chip {
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--blue-deep);
    background: var(--tint);
    border: 1px solid var(--line);
}

/* ------------------------------------------------------------------ steps --- */

.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }

.steps li {
    position: relative;
    counter-increment: step;
    padding: 0 0 20px 50px;
    color: var(--ink-soft);
}
.steps li:last-child { padding-bottom: 0; }

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 32px; height: 32px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--tint-strong);
    color: var(--blue-deep);
    font-weight: 700;
    font-size: 15px;
}

.steps b { display: block; color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------- download --- */

.download {
    margin-top: 38px;
    background: var(--grad);
    color: #fff;
    padding: 44px 0;
    text-align: center;
}
.download h2 { color: #fff; font-size: 25px; }
.download p {
    margin-top: 12px;
    color: rgba(255, 255, 255, .88);
}
.download .btn { margin-top: 22px; }
.download .fine {
    margin-top: 14px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .72);
}

/* ---------------------------------------------------------------- support --- */

.support-card {
    margin-top: 22px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--tint);
    border: 1px solid var(--line);
}

.support-card dt {
    font-weight: 700;
    font-size: 15px;
    margin-top: 16px;
}
.support-card dt:first-of-type { margin-top: 0; }
.support-card dd {
    margin: 2px 0 0;
    font-size: 15.5px;
    word-break: break-word;
}
.support-card .after {
    margin-top: 20px;
    font-size: 15px;
    color: var(--ink-soft);
}

/* ----------------------------------------------------------------- footer --- */

.foot {
    margin-top: 38px;
    border-top: 1px solid var(--line);
    padding: 26px 0 40px;
    font-size: 14px;
    color: var(--muted);
}
.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}
.foot nav a { color: var(--blue); text-decoration: none; font-weight: 600; }
.foot nav a:hover { text-decoration: underline; }
.foot p + p { margin-top: 6px; }

/* ------------------------------------------------------------- wider than --- */

@media (min-width: 600px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .btn-row { display: flex; gap: 12px; }
    .btn-row .btn { display: inline-block; }
}

@media (min-width: 860px) {
    body.landing { font-size: 17.5px; }
    .intro { padding-top: 56px; }
    .intro h1 { font-size: 48px; }
    .section { padding: 48px 0; }
    .grid { grid-template-columns: repeat(4, 1fr); }
}
