/*
Theme Name: Adrenalytic Private
Theme URI: https://adrenalytic.com
Author: Adrenalytic
Description: Private members-only site for Adrenalytic. Visitors see a branded login page; signed-in members see the overview, platform, AI video, roadmap, investor and demo pages. Search engines are asked not to index the site.
Version: 1.2.3
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adrenalytic
*/

/* Layout: dark brand band on top, readable content column below; the logged-out home is a split screen (brand left, login right). */
:root {
	--ink: #0e1a24;
	--ink-2: #1b2731;
	--paper: #f4f6f7;
	--surface: #ffffff;
	--muted: #56636e;
	--line: #d8dee3;
	--wash: #eaeef1;
	--accent: #d9412b;
	--accent-dark: #b3321f;
	--sea: #0f5e73;
	--band-muted: #9fb0bd;
	--f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
	--gutter: max(20px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--surface); color: var(--ink); padding: 10px 14px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 1.6em; }
h3 { font-size: 22px; margin-top: 1.2em; }
.eyebrow, .wp-block-paragraph.is-style-eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { max-width: 1240px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: .04em; }
.brand:hover { color: #fff; }
.brand__mark { width: 8px; height: 26px; background: var(--accent); display: block; }
.brand__tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--band-muted); border: 1px solid var(--band-muted); padding: 2px 6px; font-weight: 500; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.primary-nav a { display: block; color: var(--band-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 4px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: #fff; background: rgba(255,255,255,.08); }
.header-user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--band-muted); }
.header-user a { color: #fff; text-decoration: none; border: 1px solid var(--band-muted); padding: 6px 12px; border-radius: 4px; font-weight: 600; }
.header-user a:hover { border-color: #fff; color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--band-muted); color: #fff; border-radius: 4px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
	.menu-toggle { display: inline-block; }
	.primary-nav { display: none; width: 100%; order: 3; margin: 0; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.header-user { order: 4; width: 100%; justify-content: space-between; padding-bottom: 6px; }
}

/* ---------- page hero ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero__inner { max-width: 1240px; margin: 0 auto; padding: 44px var(--gutter) 52px; position: relative; z-index: 1; }
.page-hero h1 { margin: 0; color: #fff; }
.page-hero p { margin: 12px 0 0; max-width: 62ch; color: #c9d4db; font-size: 19px; }
.page-hero__wave { position: absolute; right: -40px; bottom: -6px; width: min(560px, 60%); opacity: .22; pointer-events: none; }

/* ---------- content ---------- */
.site-main { min-height: 50vh; }
.content { max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.entry-content { max-width: 880px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p, .entry-content li { max-width: 68ch; }
.entry-content .alignwide, .entry-content .wp-block-columns, .entry-content .wp-block-table, .entry-content .wp-block-image.size-full { max-width: 1240px; }
.entry-content .wp-block-columns { display: flex; gap: 18px; flex-wrap: wrap; margin: 24px 0; }
.entry-content .wp-block-column { flex: 1 1 240px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.entry-content .wp-block-column h3 { margin-top: 0; }
.entry-content .wp-block-column p:last-child { margin-bottom: 0; }
.entry-content .wp-block-table { overflow-x: auto; margin: 24px 0; }
.entry-content table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 16px; font-variant-numeric: tabular-nums; }
.entry-content th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--wash); }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: 6px; }
.entry-content .wp-block-image img { border-radius: 8px; display: block; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content .is-style-note, .entry-content .note { background: #fff6e0; border: 1px solid #e8cf86; border-radius: 6px; padding: 12px 16px; font-size: 15px; }
.entry-content .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.wp-block-button__link, .button { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 5px; border: 0; font-size: 16px; cursor: pointer; }
.wp-block-button__link:hover, .button:hover { background: var(--accent-dark); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.entry-content .stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.entry-content .stat-row .wp-block-column { text-align: left; flex: 1 1 160px; }
.entry-content .stat { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; margin: 0 0 6px; }

/* ---------- member home (dashboard) ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.dash-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; text-decoration: none; color: var(--ink); min-height: 150px; }
.dash-card:hover { border-color: var(--ink); color: var(--ink); }
.dash-card__num { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.dash-card__title { font-family: var(--f-display); font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.dash-card__text { color: var(--muted); font-size: 15px; margin: 0; }
.dash-card__go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--accent-dark); }

/* ---------- login home ---------- */
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--paper); }
.gate__brand { --pad: clamp(24px, 5vw, 64px); background: var(--ink); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--pad) 0; gap: 32px; }
.gate__brand .brand { font-size: 30px; }
.gate__pitch { position: relative; z-index: 1; max-width: 560px; }
.gate__pitch h1 { color: #fff; font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 18px; }
.gate__pitch h1 span { color: var(--accent); display: block; }
.gate__pitch p { color: #c9d4db; font-size: 19px; margin: 0; max-width: 46ch; }
.gate__art { display: block; width: calc(100% + 2 * var(--pad)); max-width: none; margin: -8px calc(-1 * var(--pad)) 0; }
.gate__foot { position: relative; z-index: 1; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--band-muted); }
.gate__form { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.login-card h2 { margin: 0; font-size: 36px; }
.login-card p.intro { margin: 0; color: var(--muted); }
.login-card form { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.login-card input[type=text], .login-card input[type=password], .login-card input[type=email] { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); width: 100%; }
.login-card input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(217,65,43,.2); }
.login-card .remember { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.login-card .remember input { accent-color: var(--accent); width: 18px; height: 18px; }
.login-card .button { width: 100%; padding: 14px; font-size: 17px; }
.login-card .links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.login-msg { border-radius: 6px; padding: 10px 14px; font-size: 15px; }
.login-msg--error { background: #fdecea; border: 1px solid #f0b4ab; color: #8a2116; }
.login-msg--ok { background: #e7f5ee; border: 1px solid #a9d8bf; color: #17583a; }
.login-card .private { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 860px) {
	.gate { grid-template-columns: minmax(0, 1fr); }
	.gate__brand { gap: 22px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--band-muted); font-size: 14px; }
.site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 24px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* "Powered by" credit on the login page and in the footer */
.powered { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin: 0; }
.site-footer .powered { color: var(--band-muted); }
.powered a, .powered a:hover, .powered a:focus { color: inherit; font-weight: 700; text-decoration: none; }
.powered a:hover { color: var(--accent); }

.hero-actions { margin-top: 20px; }
.page-hero .hero-actions .button { font-size: 17px; padding: 13px 22px; }
