/* NQ School - inner pages. Builds on the tokens and components in styles.css. */

/* Navigation: multi-page active state (the indicator pill is positioned by app.js) */
.nav a[aria-current="page"] { color: var(--sky-800); }
.mobile-menu > a[aria-current="page"] { background: var(--sky-50); color: var(--sky-800); }

/* Footer: four link columns */
.foot-top { grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, .75fr)); gap: 36px 36px; }
@media (max-width: 1060px) { .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .foot-top { grid-template-columns: 1fr; } }
.foot-col ul { gap: 10px; }
.foot-col a { overflow-wrap: anywhere; }

/* Breadcrumbs */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 22px; font-size: .84rem; color: var(--text-soft); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--gray-300); }
.crumbs a { color: var(--text-mid); text-decoration: none; }
.crumbs a:hover { color: var(--sky-700); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--gray-800); font-weight: 600; }
.page-hero .crumbs { justify-content: flex-start; }
.ph-grid.center + .crumbs, .page-hero:has(.ph-grid.center) .crumbs { justify-content: center; }

/* Page hero */
.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding-top: calc(clamp(32px, 5vw, 60px) + 84px);
    padding-bottom: clamp(44px, 6vw, 80px);
    background: #fff;
}
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ph-grid.solo { grid-template-columns: minmax(0, 1fr); }
.ph-grid.solo.center { text-align: center; justify-items: center; }
.ph-copy > * { animation: rise .7s cubic-bezier(.22, .8, .3, 1) both; }
.ph-copy > :nth-child(2) { animation-delay: .05s; }
.ph-copy > :nth-child(3) { animation-delay: .1s; }
.ph-copy > :nth-child(4) { animation-delay: .15s; }
.ph-copy > :nth-child(5) { animation-delay: .2s; }
.ph-copy .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
    font-size: clamp(2.05rem, 4.8vw, 3.5rem);
    font-weight: 800; letter-spacing: -.042em; line-height: 1.07;
    max-width: 19em; margin-bottom: 18px;
}
.ph-grid.solo.center h1 { margin-inline: auto; }
.page-hero .lede { max-width: 42rem; font-size: clamp(1.03rem, 1.4vw, 1.2rem); }
.ph-grid.solo.center .lede { margin-inline: auto; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ph-grid.solo.center .ph-actions, .ph-grid.solo.center .ph-meta { justify-content: center; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: .88rem; color: var(--text-soft); }
.ph-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ph-meta svg { width: 15px; height: 15px; color: var(--emerald-600); flex: none; }
.ph-visual { min-width: 0; animation: rise .8s .1s cubic-bezier(.22, .8, .3, 1) both; }
.ph-visual .mstage { min-height: 0; padding: clamp(18px, 3vw, 34px); }
@media (max-width: 920px) {
    .ph-grid { grid-template-columns: minmax(0, 1fr); }
    .page-hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .ph-copy > *, .ph-visual { animation: none; } }

/* Section helpers */
.h3-sec { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-bottom: 18px; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(24px, 3vw, 36px); }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--sky-700); text-decoration: none; }
.textlink:hover { color: var(--sky-900); }
.textlink svg { transition: transform .2s ease; }
.textlink:hover svg { transform: translateX(3px); }
.on-deep-link .textlink { color: var(--sky-200); }
.on-deep-link .textlink:hover { color: #fff; }
.inline { color: var(--sky-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sky-300); }
.inline:hover { text-decoration-color: var(--sky-700); }
.chiprow { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chiprow a {
    display: inline-block; padding: 7px 14px; border-radius: 999px;
    font-size: .86rem; font-weight: 500; color: var(--gray-700); text-decoration: none;
    background: #fff; border: 1px solid var(--gray-200);
    transition: border-color .15s, color .15s, background-color .15s;
}
.chiprow a:hover { border-color: var(--sky-400); color: var(--sky-800); background: var(--sky-50); }
.pc-more { display: block; text-align: center; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--sky-200); text-decoration: none; }
.pc-more:hover { color: #fff; }

/* Cards */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.fcard {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 24px; border-radius: 20px; min-width: 0;
    background: #fff; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
    color: inherit; text-decoration: none;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
a.fcard:hover { border-color: var(--sky-400); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.fi { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); margin-bottom: 4px; }
.fi svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 1.08rem; letter-spacing: -.02em; }
.fcard p { font-size: .95rem; color: var(--text-mid); line-height: 1.62; }
.fcard .meta-line { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.fcard .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--sky-700); }
.fcard .more svg { transition: transform .2s ease; }
a.fcard:hover .more svg { transform: translateX(3px); }
.fgrid.in-art { margin: 1.4em 0; }
.fgrid.in-art .fcard h3 { margin: 0; font-size: 1.02rem; }
.fgrid.in-art .fcard p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text-mid); }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .lede.prose { max-width: 56ch; }

/* Callout */
.callout {
    display: flex; gap: 18px; align-items: flex-start;
    padding: clamp(22px, 3vw, 34px); border-radius: 24px;
    background: linear-gradient(145deg, var(--sky-50), #fff 70%);
    border: 1px solid var(--sky-100); box-shadow: var(--shadow-md);
}
.ci { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--sky-700); color: #fff; }
.ci svg { width: 24px; height: 24px; }
.callout h3 { font-size: 1.22rem; margin-bottom: 8px; }
.callout p { color: var(--text-mid); line-height: 1.7; }
@media (max-width: 520px) { .callout { flex-direction: column; } }

/* Steps */
.how { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 920px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how li { position: relative; padding: 22px 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--gray-200); }
.how li::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 16px;
    background: var(--sky-700); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .92rem;
}
.how b { display: block; font-family: var(--font-display); font-size: 1.04rem; letter-spacing: -.02em; margin-bottom: 6px; }
.how p { font-size: .93rem; color: var(--text-mid); line-height: 1.62; }

/* Check lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--emerald-600); }
.checks.tight { gap: 10px; }
.checks.big { gap: 14px; }
.checks.big li { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--gray-200); font-size: 1.02rem; }
.checks.big b { font-family: var(--font-display); color: var(--gray-900); }
.perm-h { display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 14px; }
.win-foot svg { flex: none; }

/* Related links */
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rel a {
    display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 16px;
    background: #fff; border: 1px solid var(--gray-200);
    font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--gray-800); text-decoration: none;
    transition: border-color .15s, color .15s, box-shadow .2s;
}
.rel a > svg:first-child { width: 20px; height: 20px; flex: none; color: var(--sky-600); }
.rel a .arr { margin-left: auto; width: 15px; height: 15px; flex: none; color: var(--gray-400); transition: transform .2s, color .15s; }
.rel a:hover { border-color: var(--sky-400); color: var(--sky-800); box-shadow: var(--shadow-md); }
.rel a:hover .arr { color: var(--sky-600); transform: translateX(3px); }

/* Closing call to action */
.cta-wrap { padding-block: clamp(40px, 6vw, 72px); }
.cta-card {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px);
    border-radius: 32px;
}
.cta-card .h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18em; margin-inline: auto; margin-bottom: 14px; }
.cta-card .lede { max-width: 38rem; margin-inline: auto; }
.cta-card .eyebrow { margin-bottom: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Articles (guides and the pillar page) */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 980px) { .art-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; order: -1; } }
.art { min-width: 0; max-width: 72ch; }
.art > :first-child { margin-top: 0; }
.art h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.1em 0 .6em; scroll-margin-top: 96px; }
.art h3 { font-size: 1.15rem; margin: 1.7em 0 .45em; }
.art p { margin: 0 0 1.1em; color: var(--gray-700); font-size: 1.04rem; line-height: 1.78; }
.art ul, .art ol { margin: 0 0 1.3em; padding-left: 1.3em; color: var(--gray-700); font-size: 1.04rem; line-height: 1.75; }
.art li { margin-bottom: .45em; padding-left: .2em; }
.art a:not(.fcard) { color: var(--sky-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sky-300); }
.art a:not(.fcard):hover { text-decoration-color: var(--sky-700); }
.art strong { color: var(--gray-900); }
.art .fcard h3 { margin: 0; }
.tbl-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--gray-200); border-radius: 16px; }
.art table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .94rem; }
.art th, .art td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; line-height: 1.55; color: var(--gray-700); }
.art tr:last-child td { border-bottom: 0; }
.art th { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); background: var(--gray-50); }
.toc { position: sticky; top: 96px; padding: 20px 22px; border-radius: 20px; background: var(--canvas); border: 1px solid var(--gray-200); font-size: .9rem; }
.toc b { display: block; margin-bottom: 12px; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 6px 10px; margin-inline: -10px; border-radius: 8px; color: var(--gray-700); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.on { background: var(--sky-50); color: var(--sky-800); }

/* About and contact */
.about-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .about-points { grid-template-columns: minmax(0, 1fr); } }
.about-points li { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--gray-200); }
.contact { padding-top: clamp(8px, 2vw, 24px); }
.cf-points a { color: inherit; }
.cf-points a:hover { text-decoration: underline; }

/* Home page tweaks */
#solutions .fgrid, #guides .fgrid { margin-top: 0; }
.section.alt .fcard { box-shadow: var(--shadow-md); }
.mstage .win-body .checks { gap: 10px; }

@media (max-width: 640px) {
    .fcard { padding: 20px; }
    .cta-card { border-radius: 24px; }
    .page-hero { padding-top: 104px; }
    .page-hero h1 { font-size: 2.05rem; }
    .ph-actions { width: 100%; flex-direction: column; }
    .ph-actions .btn { width: 100%; }
    .toc { padding: 16px 18px; }
}

/* Price card: honest offer framing */
.pc-was { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.05rem; color: var(--on-deep-soft); }
.pc-was s { text-decoration-thickness: 2px; }
.pc-was em { font-style: normal; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amber-500); color: #3b2300; }
.pc-ps { margin: 14px 0 0; font-size: .9rem; line-height: 1.55; color: var(--on-deep-soft); }
.pc-ps b { color: #fff; }

.pc-was s { font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; }
.hero-meta s.was { opacity: .6; margin-left: 4px; }

/* Offer highlight */
.pcard:has(.pc-was) { box-shadow: 0 0 0 2px rgba(245, 158, 11, .85), 0 30px 60px -24px rgba(8, 47, 73, .6), 0 0 60px -10px rgba(245, 158, 11, .35); }
.pc-was s { font-size: 1.7rem; color: #fca5a5; text-decoration-color: #f87171; }
.pc-was em { font-size: .8rem; padding: 6px 12px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2300; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .8); }
.pcard:has(.pc-was) .pc-amt { background: linear-gradient(180deg, #fff, #bae6fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pc-save { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .5); color: #6ee7b7; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.pc-save b { padding: 5px 12px; border-radius: 999px; background: #34d399; color: #022c22; font-size: .9rem; }
.offer-end { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .9rem; font-weight: 600; color: #fcd34d; }
.offer-end svg { width: 16px; height: 16px; flex: none; }
.hero-badge[href="/pricing/"] { border-color: #fcd34d; background: #fffbeb; }
.hero-badge[href="/pricing/"] .hb-new { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Pricing card (redesign) */
.pcard.pk { padding: 0; box-shadow: 0 44px 90px -36px rgba(8, 47, 73, .75), 0 0 0 1px rgba(125, 211, 252, .22); }
.pk-ribbon {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px clamp(22px, 4vw, 36px);
    background: linear-gradient(95deg, #fbbf24, #f59e0b);
    color: #3b2300; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.pk-live { width: 9px; height: 9px; border-radius: 50%; background: #3b2300; box-shadow: 0 0 0 0 rgba(59, 35, 0, .5); animation: pk-pulse 1.8s ease-out infinite; }
@keyframes pk-pulse { to { box-shadow: 0 0 0 9px rgba(59, 35, 0, 0); } }
.pk-end { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; }
.pk-end svg { width: 15px; height: 15px; }
.pk-body { padding: clamp(24px, 4vw, 38px); }
.pk-plan { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-300); }
.pk-was { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pk-was s { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fca5a5; text-decoration-thickness: 2px; text-decoration-color: #f87171; }
.pk-off { padding: 5px 12px; border-radius: 999px; background: rgba(52, 211, 153, .16); border: 1px solid rgba(52, 211, 153, .55); color: #6ee7b7; font-family: var(--font-display); font-weight: 700; font-size: .88rem; }
.pk .pc-price { margin-top: 4px; }
.pk .pc-amt { background: linear-gradient(180deg, #fff 30%, #bae6fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pk-sub { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--on-deep); }
.pk-list { list-style: none; margin: 24px 0; padding: 22px 0 0; border-top: 1px solid var(--deep-line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.pk-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; line-height: 1.4; color: #fff; }
.pk-list svg { width: 18px; height: 18px; padding: 3px; box-sizing: content-box; flex: none; border-radius: 50%; color: #34d399; background: rgba(52, 211, 153, .16); }
.pk-cta { background: linear-gradient(95deg, #fbbf24, #f59e0b); color: #3b2300; box-shadow: 0 14px 30px -12px rgba(245, 158, 11, .8); }
.pk-cta:hover { background: linear-gradient(95deg, #fcd34d, #fbbf24); }
.pk-fine { margin-top: 12px; text-align: center; font-size: .82rem; color: var(--on-deep-soft); }
.pcard.pk .pc-more { margin-top: 10px; display: block; }
@media (max-width: 520px) { .pk-list { grid-template-columns: 1fr; } .pk-end { margin-left: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .pk-live { animation: none; } }
