/*
 * Shared page chrome (nav + footer) used by the public pages:
 *   templates/index_modern.html
 *   templates/policies_and_legal_docs.html
 *   templates/index_faq.html  (base for all FAQ child pages)
 *
 * Markup lives in templates/_pc_nav.html and templates/_pc_footer.html.
 * Edit any nav/footer style here so all three pages stay in sync.
 */

/* Brand colours are NOT declared here any more — they live in
   static/css/psycounts-tokens.css, linked ahead of this file by
   templates/_pc_head.html. This file used to re-declare --green,
   --ink, --paper and friends, which meant the marketing site could
   drift away from the product without anyone noticing. */

/* ---------- Nav ---------- */
.pc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 6vw;
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 50;
    font-family: var(--pc-font-body);
}
.pc-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
}
.pc-nav .brand img { height: 40px; width: auto; display: block; }
.pc-nav .actions a,
.pc-nav .actions button {
    margin-left: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 999px;
    border: 0;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}
.pc-nav .login { color: var(--ink); background: transparent; }
.pc-nav .signup { color: var(--pc-action-text); background: var(--pc-action-fill); }
.pc-nav .signup:hover { background: var(--pc-action-hover); }
.pc-nav .actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pc-nav form { display: inline; margin: 0; }

/* Narrow viewports: the nav's padding + unshrinkable action buttons pushed
   content past the screen edge, forcing horizontal scroll. Tighten spacing,
   let actions wrap onto their own row, and shrink the buttons to fit. */
@media (max-width: 640px) {
    .pc-nav {
        flex-wrap: wrap;
        row-gap: 12px;
        padding: 16px 5vw;
    }
    .pc-nav .actions { width: 100%; justify-content: center; }
    .pc-nav .actions a,
    .pc-nav .actions button {
        margin: 4px 6px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ---------- Footer ---------- */
.pc-foot {
    background: var(--paper-warm);
    color: var(--ink);
    padding: 50px 6vw 30px;
    font-size: 0.95rem;
    font-family: var(--pc-font-body);
}
.pc-foot .row-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
}
.pc-foot a { color: var(--ink); text-decoration: none; opacity: 0.75; }
/* text-decoration:none on :hover too — beats Bootstrap's `a:hover{underline}` */
.pc-foot a:hover { opacity: 1; color: var(--green-deep); text-decoration: none; }
.pc-foot .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* App Store / Google Play download badges in the footer (black pill, logo + label) */
.pc-foot .foot-app { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.pc-foot .foot-appstore,
.pc-foot .foot-playstore {
    display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
    background: #000; color: #fff; opacity: 1;
    text-decoration: none; padding: 8px 15px; border-radius: 11px;
    transition: transform 0.15s ease;
}
.pc-foot .foot-appstore:hover,
.pc-foot .foot-playstore:hover {
    transform: translateY(-1px); opacity: 1; color: #fff; text-decoration: none;
}
.pc-foot .foot-appstore svg,
.pc-foot .foot-playstore svg { width: 20px; height: 20px; fill: #fff; }
.pc-foot .foot-appstore .ab-text,
.pc-foot .foot-playstore .ab-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.pc-foot .foot-appstore .ab-text small,
.pc-foot .foot-playstore .ab-text small { font-size: 0.58rem; letter-spacing: 0.02em; }
.pc-foot .foot-appstore .ab-text strong,
.pc-foot .foot-playstore .ab-text strong { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.pc-foot .copyright {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 58, 46, 0.15);
    opacity: 0.65;
    font-size: 0.85rem;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Policies & FAQ content typography ---------- */
/* Tighten dense legal/help content: smaller body type, clear heading
   hierarchy, breathing room between sections and lists.               */
#policies, #faq, #blog {
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.65;
}
#policies .card-modern,
#faq .card-modern,
#blog .card-modern {
    background: #FFFFFF;
    border: 1px solid rgba(31, 58, 46, 0.12);
    border-radius: 12px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 18px rgba(31, 58, 46, 0.04);
}
#policies h3,
#faq h3,
#blog h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 1rem;
    font-family: var(--pc-font-display);
}
#policies h4,
#faq h4,
#blog h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.5rem 0 0.5rem;
    font-family: var(--pc-font-body);
    letter-spacing: 0;
}
#policies p,
#faq p,
#blog p {
    margin: 0 0 0.75rem;
    color: var(--quiet);
}
#policies ul,
#faq ul,
#blog ul {
    margin: 0 0 1rem 1.25rem;
    padding-left: 0.25rem;
}
#policies li,
#faq li,
#blog li {
    margin-bottom: 0.35rem;
    color: var(--quiet);
}
#policies a,
#faq a,
#blog a {
    color: var(--green-deep);
    text-decoration: underline;
}
#policies a:hover,
#faq a:hover,
#blog a:hover {
    color: var(--pc-action-hover);
}
/* The page title above the cards */
#policies > .container > .row > .col-lg-10 > h3 {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.3;
}

/* ---------- Blog headings ---------- */
#blog h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 0.5rem;
    font-family: var(--pc-font-display);
}
#blog h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 1rem;
    font-family: var(--pc-font-display);
}
#blog h2 a { text-decoration: none; }
#blog .post-meta { color: var(--quiet); font-size: 0.85rem; }
#blog .post-meta i { margin-right: 4px; color: var(--green-deep); }
#blog figure { margin: 1.5rem 0; }
#blog figure img {
    width: 100%;
    border: 1px solid rgba(31, 58, 46, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(31, 58, 46, 0.06);
}
#blog figcaption {
    color: var(--quiet);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* ---------- Blog cards (modern index) ---------- */
#blog .blog-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#blog .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 58, 46, 0.10);
}
#blog .blog-card-body { padding: 1.5rem 1.75rem; }
#blog .blog-card-img-link { display: block; }
#blog .blog-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}
#blog .blog-card-img-featured { height: 100%; min-height: 320px; }
#blog .blog-card-title { font-size: 1.15rem; line-height: 1.35; }
#blog .blog-card-bullets { font-size: 0.92rem; }
#blog .blog-chip {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-deep);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 11px;
    border-radius: 999px;
}
#blog .blog-readmore { font-weight: 600; text-decoration: none; }
#blog .blog-readmore:hover { text-decoration: underline; }

/* ---------- Post hero image ---------- */
#blog .post-hero { margin: 1rem 0 1.75rem; }
#blog .post-hero img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(31, 58, 46, 0.10);
}

/* ---------- Kicker + continue link (editorial accents on cards) ---------- */
#blog .pl-kicker {
    font-family: var(--pc-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-deep);
    margin: 0 0 0.6rem;
}
#blog .pl-kicker .pl-kicker-sep { color: rgba(31, 58, 46, 0.35); margin: 0 0.2rem; }
#blog .pl-continue {
    font-family: var(--pc-font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--green-deep);
    padding-bottom: 2px;
}
#blog .pl-continue:hover { color: var(--pc-action-hover); border-color: var(--pc-action-hover); text-decoration: none; }
/* pin the continue link to a shared baseline inside equal-height cards */
#blog .blog-card { display: flex; flex-direction: column; }
#blog .blog-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
#blog .blog-card-body .pl-continue { margin-top: auto; align-self: flex-start; }
/* slightly quieter hover for a more professional feel */
#blog .blog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 58, 46, 0.08); }

/* Card titles: ink, green on hover (Bootstrap's .text-primary blue
   carries !important, so these must too) */
#blog .blog-card h2 a {
    color: var(--ink) !important;
    text-decoration: none;
}
#blog .blog-card h2 a:hover {
    color: var(--green-deep) !important;
    text-decoration: none;
}
