/* LAN Waifu's website. One dark look, the editor the characters live in;
   each character's own colours mark her parts. */
:root {
    color-scheme: dark;
    --ground: #14121f;
    --panel: #1d1a2c;
    --panel-raised: #262238;
    --ink: #f1eefb;
    --ink-soft: #b9b3cf;
    --ink-faint: #8a84a3;
    --line: #35304b;
    --pro: #ffcf5a;
    --pro-ink: #2b2006;
    --link: #9fb4ff;
    --display:
        "M PLUS Rounded 1c", "Arial Rounded MT Bold", system-ui, sans-serif;
    --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: 1.6rem;
    --step-3: clamp(2.2rem, 6vw, 3.6rem);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: var(--step-0)/1.6 var(--body);
}
img {
    max-width: 100%;
}
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    text-wrap: balance;
    margin: 0;
    line-height: 1.15;
}
p {
    margin: 0;
}
a {
    color: var(--link);
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--pro);
    outline-offset: 3px;
}
kbd,
code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--panel-raised);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.05em 0.4em;
}
kbd {
    white-space: nowrap;
}

/* Top bar. */
.top {
    border-bottom: 1px solid var(--line);
    background: rgb(20 18 31 / 0.9);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(8px);
}
.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font: 800 var(--step-1) var(--display);
}
.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}
.top nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: var(--step--1);
}
.top nav a {
    color: var(--ink-soft);
    text-decoration: none;
}
.top nav a:hover {
    color: var(--ink);
}

/* Buttons. */
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.button {
    display: inline-block;
    font: 800 var(--step-0) var(--display);
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 20px;
}
.button.main {
    background: var(--pro);
    color: var(--pro-ink);
    box-shadow: 0 4px 0 #b88a1a;
}
.button.second {
    background: var(--panel-raised);
    color: var(--ink);
    border: 1px solid var(--line);
}
.button:hover {
    transform: translateY(-1px);
}

/* Hero. */
.hero {
    padding-block: 52px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 36px;
    align-items: center;
}
.hero h1 {
    font-size: var(--step-3);
    margin-bottom: 14px;
}
.hero h1 span {
    color: var(--pro);
}
.lede {
    color: var(--ink-soft);
    font-size: var(--step-1);
    max-width: 36ch;
    margin-bottom: 24px;
}
.small-print {
    margin-top: 12px;
    color: var(--ink-faint);
    font-size: var(--step--1);
}
.screen {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
    background: #1e1e1e;
}
.screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sections. */
section {
    padding-block: 36px;
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 20px;
}
.section-head h2 {
    font-size: var(--step-2);
}
.section-head p {
    color: var(--ink-faint);
    max-width: 60ch;
}

/* What she does (free). */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 14px;
}
.feature {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 6px;
    align-content: start;
}
.feature h3 {
    font-size: var(--step-0);
}
.feature p {
    color: var(--ink-soft);
    font-size: var(--step--1);
}

/* The cast. */
.cast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
    gap: 14px;
}
.who {
    --edge: #7c5cff;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--edge) 22%, var(--panel)),
        var(--panel) 70%
    );
    border: 2px solid var(--edge);
    border-radius: 16px;
    padding: 12px 12px 14px;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}
.who img {
    height: 150px;
    width: auto;
    object-fit: contain;
}
.who h3 {
    font-size: var(--step-1);
}
.who .mark {
    color: var(--edge);
}
.who p {
    color: var(--ink-soft);
    font-size: var(--step--1);
}

/* The move list (Pro). */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 18px;
}
.move {
    --edge: #7c5cff;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--edge) 16%, var(--panel)),
        var(--panel) 62%
    );
    border: 2px solid var(--edge);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.move .clip {
    aspect-ratio: 960 / 400;
    max-width: 100%;
    background: #1e1e1e;
    border-bottom: 2px solid var(--edge);
}
.move .clip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.move .text {
    padding: 14px 16px 16px;
    display: grid;
    gap: 6px;
}
.move .by {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: 800 var(--step--1) var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--edge);
}
.tag {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 2px 9px;
    background: var(--pro);
    color: var(--pro-ink);
}
.tag.free {
    background: var(--panel-raised);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.move h3 {
    font-size: var(--step-1);
}
.move p {
    color: var(--ink-soft);
}
.move .stat {
    margin-top: 4px;
    font: 500 0.8rem var(--mono);
    color: var(--ink-faint);
}

.midnight {
    --edge: #3ea0ff;
}
.frost {
    --edge: #38bdf8;
}
.sakura {
    --edge: #ff4f9a;
}
.violet {
    --edge: #a855f7;
}
.ember {
    --edge: #ff8a1f;
}
.honey {
    --edge: #e0a91b;
}
.mint {
    --edge: #22c77e;
}

/* Free vs Pro. */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 18px;
}
.plan {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    display: grid;
    gap: 14px;
    align-content: start;
}
.plan.pro {
    border: 2px solid var(--pro);
    background: linear-gradient(180deg, #2a2412, var(--panel) 55%);
}
.plan h3 {
    font-size: var(--step-1);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.plan h3 b {
    font-size: var(--step-2);
}
.plan ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.plan li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 6px;
    color: var(--ink-soft);
}
.plan li::before {
    content: "✓";
    color: var(--pro);
    font-weight: 700;
}
.plan.free li::before {
    color: var(--ink-faint);
}

/* Install. */
.install {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}
.install .feature code {
    font-size: 0.8rem;
    word-break: break-all;
}

/* FAQ. */
.faq {
    display: grid;
    gap: 10px;
    max-width: 760px;
}
.faq details {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
}
.faq details p {
    color: var(--ink-soft);
    margin-top: 8px;
}

/* Legal pages. */
.doc {
    max-width: 720px;
    padding-block: 40px 56px;
    display: grid;
    gap: 14px;
}
.doc h1 {
    font-size: var(--step-2);
}
.doc h2 {
    font-size: var(--step-1);
    margin-top: 14px;
}
.doc p,
.doc li {
    color: var(--ink-soft);
}
.doc ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

footer {
    border-top: 1px solid var(--line);
    padding-block: 22px 34px;
    color: var(--ink-faint);
    font-size: var(--step--1);
}
footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}
footer a {
    color: var(--ink-soft);
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 28px 20px;
    }
    .top nav .optional {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .button:hover {
        transform: none;
    }
}
