/* Public website + reseller portal. Depends on core.css. */
.nfrf-page .entry-title, .nfrf-page .page-title, .nfrf-page .wp-block-post-title { display: none; }
.nfrf-page .is-layout-constrained > .nfrf, .nfrf-page .entry-content > .nfrf { max-width: 1200px; width: 100%; }
.nfrf.nfrf-view-home, .nfrf[class*="nfrf-view-"] { max-width: 1200px; margin: 0 auto; padding: 0 16px 3rem; }
.nfrf { background: transparent; }

/* Sub navigation */
.nfrf-subnav { position: relative; margin: 0 -16px 2rem; padding: 0 16px; border-bottom: 1px solid var(--nf-line); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(6px); }
.nfrf-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.nfrf-subnav__brand { font-weight: 800; color: var(--nf-ink) !important; font-size: 1.05rem; letter-spacing: -0.02em; }
.nfrf-subnav__brand span { color: var(--nf-brand); font-weight: 600; }
.nfrf-subnav__toggle { display: none; }
.nfrf-subnav__links { display: flex; align-items: center; gap: .25rem 1.1rem; flex-wrap: wrap; }
.nfrf-subnav__links > a:not(.nfrf-btn) { color: var(--nf-ink-2); font-weight: 600; font-size: .92rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nfrf-subnav__links > a[aria-current="page"] { color: var(--nf-brand); border-bottom-color: var(--nf-brand); text-decoration: none; }
@media (max-width: 860px) {
	.nfrf-subnav__toggle { display: inline-flex; padding: .45rem .8rem; border: 1px solid var(--nf-line-2); border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; min-height: 40px; }
	.nfrf-subnav__links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; }
	.nfrf-subnav__links.is-open { display: flex; }
	.nfrf-subnav__links > a { padding: .6rem 0 !important; border-bottom: 1px solid var(--nf-line) !important; }
	.nfrf-subnav__links .nfrf-btn { margin-top: .5rem; }
}

/* Hero */
.nfrf-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding: 1rem 0 3rem; }
@media (min-width: 900px) { .nfrf-hero { grid-template-columns: 1.25fr 1fr; padding: 2.5rem 0 4rem; } }
.nfrf-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nf-brand); background: var(--nf-brand-tint); padding: .3rem .7rem; border-radius: 999px; }
.nfrf-hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; margin: 1rem 0 1rem; line-height: 1.08; }
.nfrf-lead { font-size: 1.15rem; color: var(--nf-ink-2); max-width: 46ch; }
.nfrf-hero__panel { background: linear-gradient(160deg, var(--nf-brand) 0%, #083b40 100%); border-radius: 20px; padding: 1.75rem; color: #fff; box-shadow: 0 20px 40px -18px rgba(13, 92, 99, .55); }
.nfrf-flow { display: grid; gap: .75rem; }
.nfrf-flow__step { display: flex; gap: .9rem; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: .85rem 1rem; font-weight: 600; }
.nfrf-flow__step b { flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--nf-accent); color: #111; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }

/* Sections */
.nfrf-section { margin: 0 0 3rem; }
.nfrf-pagehead { padding: .5rem 0 1.5rem; }
.nfrf-pagehead h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.nfrf-fineprint { color: var(--nf-muted); font-size: .85rem; margin-top: .75rem; }

.nfrf-markets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.nfrf-markets__item { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--nf-line); border-radius: var(--nf-radius); background: #fff; }
.nfrf-markets__name { font-weight: 700; font-size: 1.05rem; }
.nfrf-markets__status { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--nf-muted); }
.nfrf-markets__item--available { border-color: #abefc6; background: linear-gradient(180deg, #f6fef9, #fff); }
.nfrf-markets__item--available .nfrf-markets__status { color: var(--nf-green); }

.nfrf-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.nfrf-feature { padding: 1.4rem; border: 1px solid var(--nf-line); border-radius: var(--nf-radius); background: #fff; }
.nfrf-feature h3 { font-size: 1.05rem; font-weight: 700; }
.nfrf-feature h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--nf-accent); margin-bottom: .8rem; }
.nfrf-feature p { color: var(--nf-ink-2); margin: 0; }

.nfrf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.nfrf-product { display: flex; flex-direction: column; overflow: hidden; margin: 0; }
.nfrf-product__img { aspect-ratio: 4 / 3; background: var(--nf-grey-bg); display: flex; align-items: center; justify-content: center; }
.nfrf-product__img img, .nfrf-product__thumb { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.nfrf-product__thumb.nfrf-thumb--empty { display: flex; align-items: center; justify-content: center; color: #98a2b3; }
.nfrf-product__thumb.nfrf-thumb--empty svg { width: 48px; height: 48px; }
.nfrf-product__body { padding: 1rem 1.1rem 1.2rem; }
.nfrf-product__body h3 { font-size: 1rem; margin-bottom: .4rem; }
.nfrf-product__meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.nfrf-price { font-weight: 800; font-size: 1.15rem; color: var(--nf-ink); }
.nfrf-price span { font-size: .75rem; color: var(--nf-muted); font-weight: 600; }

.nfrf-steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .nfrf-steps { grid-template-columns: repeat(2, 1fr); } }
.nfrf-step { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid var(--nf-line); border-radius: var(--nf-radius); background: #fff; }
.nfrf-step__n { flex: 0 0 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--nf-brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.nfrf-step p { margin: 0; color: var(--nf-ink-2); }

.nfrf-pricing { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.nfrf-card--accent { border: 2px solid var(--nf-brand); }
.nfrf-bigprice { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

.nfrf-faqs { max-width: 820px; margin-bottom: 2.5rem; }
.nfrf-faq { border: 1px solid var(--nf-line); border-radius: var(--nf-radius-sm); background: #fff; margin-bottom: .6rem; }
.nfrf-faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.nfrf-faq summary::-webkit-details-marker { display: none; }
.nfrf-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--nf-brand); }
.nfrf-faq[open] summary::after { content: "–"; }
.nfrf-faq p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--nf-ink-2); }

.nfrf-cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: 2rem; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, #12707a 0%, var(--nf-brand) 45%, #072f33 100%); color: #fff; margin: 1rem 0 2rem; }
.nfrf-cta h2 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.nfrf-cta p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 52ch; }
.nfrf-cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.nfrf .nfrf-btn--light { background: #fff; color: var(--nf-brand); border-color: #fff; }
.nfrf .nfrf-btn--light:hover { background: var(--nf-brand-tint); color: var(--nf-brand-2); border-color: var(--nf-brand-tint); }
.nfrf .nfrf-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.nfrf .nfrf-btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.nfrf-auth { max-width: 520px; margin: 1rem auto 3rem; }
.nfrf-auth #loginform p { margin-bottom: 1rem; }
.nfrf-auth #loginform label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.nfrf-auth #loginform .login-remember label { display: inline-flex; gap: .4rem; align-items: center; }
.nfrf-auth #wp-submit { display: inline-flex; padding: .7em 1.4em; border-radius: var(--nf-radius-sm); background: var(--nf-brand); color: #fff; border: 0; font-weight: 600; cursor: pointer; min-height: 44px; }
.nfrf-demo-creds { margin-top: 1.5rem; }
.nfrf-form--wide { max-width: 980px; }

/* Reseller portal */
.nfrf.nfrf-view-dashboard { max-width: 1320px; }
.nfrf-portal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1rem; }
@media (min-width: 1000px) { .nfrf-portal { grid-template-columns: 230px minmax(0, 1fr); } }
.nfrf-portal__nav { background: #fff; border: 1px solid var(--nf-line); border-radius: var(--nf-radius); padding: .75rem; align-self: start; }
@media (min-width: 1000px) { .nfrf-portal__nav { position: sticky; top: 1rem; } }
.nfrf-portal__who { padding: .6rem .7rem 1rem; border-bottom: 1px solid var(--nf-line); margin-bottom: .5rem; }
.nfrf-portal__who strong { display: block; font-size: 1rem; }
.nfrf-portal__who span { color: var(--nf-muted); font-size: .85rem; }
.nfrf-portal__nav nav { display: flex; flex-direction: column; gap: 2px; }
.nfrf-portal__nav nav a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .75rem; border-radius: 8px; color: var(--nf-ink-2); font-weight: 600; font-size: .92rem; }
.nfrf-portal__nav nav a:hover { background: var(--nf-grey-bg); text-decoration: none; }
.nfrf-portal__nav nav a[aria-current="page"] { background: var(--nf-brand-tint); color: var(--nf-brand); }
.nfrf-portal__logout { margin-top: .5rem; border-top: 1px solid var(--nf-line); border-radius: 0 !important; color: var(--nf-muted) !important; }
@media (max-width: 999px) {
	.nfrf-portal__nav nav { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .25rem; }
	.nfrf-portal__nav nav a { white-space: nowrap; scroll-snap-align: start; }
	.nfrf-portal__logout { border-top: 0; margin-top: 0; }
}
.nfrf-portal__main { min-width: 0; }
@media (max-width: 640px) {
	.nfrf { font-size: 14.5px; }
	.nfrf-pad { padding: 1rem; }
	.nfrf-order-line { grid-template-columns: minmax(0, 1fr) 70px auto; }
	.nfrf-cta { padding: 1.5rem; }
	.nfrf-table--products thead { display: none; }
	.nfrf-table--products tr { display: grid; grid-template-columns: 52px 1fr; gap: .2rem .6rem; padding: .75rem 0; border-bottom: 1px solid var(--nf-line); }
	.nfrf-table--products td { border: 0; padding: .15rem 0; }
	.nfrf-table--products td.nfrf-td-thumb { grid-row: span 6; }
	.nfrf-table--products td.num { text-align: left; }
}
.nfrf-portal > * { min-width: 0; }
