/* PairIt.cards shared styles (home, help, privacy, terms).
   Brand: red + green from the logotype, parrot mascot.
   tag=20261016_1530 — palette mirrors PairItWeb/wwwroot/css/site.css (app.pairit.cards); change both together. */
:root {
    --red: #E62317;
    --red-dark: #BE140B;
    --green: #27A044;
    --orange: #F59300;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --text: #1f2328;
    --muted: #5f6672;
    --link: #1b6ec2;
    --border: #e3e6ec;
    --cta: linear-gradient(135deg, var(--orange) 0%, var(--red) 72%);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14161a;
        --bg-soft: #1d2027;
        --text: #e9eaec;
        --muted: #a0a6b0;
        --link: #6ab0f3;
        --border: #30343c;
    }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: var(--link); }
img { max-width: 100%; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* header */
.site-header {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--red) 0%, var(--orange) 33%, #BFD400 66%, var(--green) 100%) 1;
    background: var(--bg);
    position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--red); }
.site-nav a.btn-nav {
    background: var(--cta); color: #fff; padding: 7px 16px; border-radius: 999px;
}
.site-nav a.btn-nav:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 560px) {
    .site-nav { gap: 14px; font-size: 14px; }
    .site-nav .hide-sm { display: none; }
}

/* hero */
.hero { background: linear-gradient(135deg, #e3eeff 0%, #f6f1ff 100%); padding: 56px 0 48px; }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(135deg, #1b2538 0%, #271f38 100%); } }
.hero .wrap { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: center; }
@media (max-width: 760px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero .mascot { order: -1; margin: 0 auto; width: 150px; }
}
.beta {
    display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--red); border: 1px solid var(--red);
    border-radius: 999px; padding: 2px 12px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -1px; }
.hero .tagline { font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); margin: 0 0 24px; }
.hero .mascot { width: 100%; height: auto; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-row { justify-content: center; } }
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 600;
    font-size: 16px; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 4px 14px rgba(230, 35, 23, .28); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--bg); }
.btn-ghost:hover { border-color: var(--red); }

/* sections */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.5px; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; counter-increment: s; }
.step::before {
    content: counter(s); display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff;
    font-weight: 700; margin-bottom: 10px;
}
.step:nth-child(even)::before { background: var(--green); }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 8px; }
.feature p { margin: 0; color: var(--muted); }
.cta-band { text-align: center; }
.cta-band .lede { margin-left: auto; margin-right: auto; }

/* help / docs pages */
.page-title { padding: 40px 0 8px; }
.page-title h1 { font-size: 36px; margin: 0 0 6px; letter-spacing: -.5px; }
.page-title p { margin: 0; color: var(--muted); font-size: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
.doc h2 { font-size: 22px; margin-top: 40px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.doc h3 { font-size: 17px; margin: 24px 0 4px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--green); border-radius: 6px; padding: 12px 16px; margin: 16px 0; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.meta div { margin-bottom: 2px; }
.short { background: var(--bg-soft); border-left: 4px solid var(--red); padding: 12px 16px; margin: 16px 0; border-radius: 6px; }
code, .email { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }

.signin-line { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
