/*
Theme Name: Juronaut
Theme URI: https://www.juronaut.com/
Description: Buyer's-navigator skin for Juronaut.com — independent legal-AI buying guidance. GeneratePress child theme.
Author: Atdt AB
Template: generatepress
Version: 0.1.0
Text Domain: juronaut
*/

/* ==========================================================================
   Design tokens — Navigator (cool navy + electric blue)
   ========================================================================== */
:root {
	--navy-900: #0a1326;
	--navy-800: #0e1b33;
	--navy-700: #16294d;
	--ink:      #0c1730;
	--ink-soft: #33415c;

	--slate-600: #46566f;
	--slate-500: #5b6b82;
	--slate-400: #8595ad;
	--slate-300: #b9c4d4;

	--line:        #e3e9f1;
	--line-strong: #d2dae6;
	--paper:       #f6f8fc;
	--surface:     #ffffff;

	--blue-600: #1f57e0;
	--blue-500: #2e6bff;
	--blue-400: #5b8bff;
	--blue-50:  #eef3ff;
	--accent:   var(--blue-500);

	--font-display: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--maxw: 1160px;
	--r-sm: 8px;
	--r:    12px;
	--r-lg: 18px;
	--r-xl: 26px;

	--shadow-sm: 0 1px 2px rgba(12, 23, 48, .06), 0 1px 3px rgba(12, 23, 48, .05);
	--shadow:    0 14px 34px -16px rgba(12, 23, 48, .26);
	--shadow-lg: 0 34px 64px -24px rgba(12, 23, 48, .38);
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
	font-family: var(--font-body);
	color: var(--ink-soft);
	background: var(--surface);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .jn-h1, .jn-h2 {
	font-family: var(--font-display);
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.08;
	font-weight: 700;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

.jn-wrap {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}

/* Full-bleed bands inside GeneratePress' constrained content wrapper */
.jn-home .jn-sect {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}
body.home #content,
body.home .site-content,
body.home .site-main { padding: 0; margin: 0; }
body.home .site-main > * { margin: 0; }

/* ==========================================================================
   Header / nav (GeneratePress)
   ========================================================================== */
.site-header {
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--line);
}
.inside-header { align-items: center; }
.site-logo img, .header-image { height: 34px !important; width: auto; }
.site-branding { padding: 0; }
.main-title {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: -0.03em;
}
.main-title a { color: var(--ink); }
.site-description { display: none; }

.main-navigation,
.main-navigation ul { background: transparent; }
.main-navigation .main-nav ul li a {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: .98rem;
	color: var(--slate-600);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
	color: var(--blue-600);
}

/* ==========================================================================
   Buttons / links / tags
   ========================================================================== */
.jn-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: .92em 1.4em;
	border-radius: var(--r);
	border: 1px solid transparent;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	cursor: pointer;
}
.jn-btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(46, 107, 255, .6); }
.jn-btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(46, 107, 255, .7); }
.jn-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.jn-btn--ghost:hover { border-color: var(--slate-400); transform: translateY(-1px); color: var(--ink); }

.jn-link {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--blue-600);
	font-size: .98rem;
}
.jn-link:hover { color: var(--blue-500); }

.jn-tag {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--blue-600);
	background: var(--blue-50);
	padding: .35em .7em;
	border-radius: 999px;
}

.jn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--slate-500);
	margin: 0 0 1.1rem;
}
.jn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }

.jn-microtrust { font-size: .9rem; color: var(--slate-400); margin-top: 1rem; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.jn-sect { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.jn-sect__head { max-width: 44ch; margin-bottom: 2.6rem; }
.jn-sect__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.jn-h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; }
.jn-h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.jn-lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--slate-600); margin: 0 0 1.9rem; max-width: 38ch; }
.jn-sub { color: var(--slate-500); font-size: 1.1rem; margin: .6rem 0 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.jn-hero {
	background:
		radial-gradient(120% 120% at 85% -10%, rgba(46, 107, 255, .14), transparent 55%),
		linear-gradient(180deg, var(--paper), #fff);
	border-bottom: 1px solid var(--line);
}
.jn-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.jn-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero panel: navigator motif + scorecard */
.jn-hero__panel {
	position: relative;
	background: var(--navy-800);
	border-radius: var(--r-xl);
	padding: clamp(1.6rem, 3vw, 2.4rem);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.jn-hero__panel::before {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(80% 60% at 80% 0%, rgba(46, 107, 255, .35), transparent 60%);
}
.jn-compass {
	position: absolute; top: -34px; right: -34px;
	width: 150px; height: 150px;
}
.jn-compass__ring {
	position: absolute; inset: 0;
	border-radius: 50%;
	border: 1.5px dashed rgba(139, 165, 255, .4);
	animation: jn-spin 26s linear infinite;
}
.jn-compass__star {
	position: absolute; inset: 38px;
	background: var(--blue-500);
	clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
	filter: drop-shadow(0 6px 14px rgba(46, 107, 255, .6));
}
@keyframes jn-spin { to { transform: rotate(360deg); } }

.jn-scorecard { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.05rem; }
.jn-scorecard li { display: grid; gap: .45rem; }
.jn-scorecard span { font-family: var(--font-display); font-size: .82rem; color: var(--slate-300); letter-spacing: .02em; }
.jn-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; }
.jn-bar::after {
	content: ""; position: absolute; inset: 0; width: var(--v);
	border-radius: 999px;
	background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
	animation: jn-grow 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes jn-grow { from { width: 0; } }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.jn-trust { background: var(--navy-900); padding-block: 1.15rem; }
.jn-trust__row {
	display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center;
}
.jn-trust__row span {
	font-family: var(--font-display); font-weight: 500; font-size: .92rem;
	color: var(--slate-300); position: relative; padding-left: 1.3rem;
}
.jn-trust__row span::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400);
}

/* ==========================================================================
   Grids / cards
   ========================================================================== */
.jn-grid { display: grid; gap: 1.4rem; }
.jn-grid--4 { grid-template-columns: repeat(4, 1fr); }
.jn-grid--3 { grid-template-columns: repeat(3, 1fr); }

.jn-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 1.7rem 1.6rem;
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.jn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.jn-card__no { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--blue-500); letter-spacing: .06em; }
.jn-card h3 { font-size: 1.18rem; margin: .7rem 0 .55rem; }
.jn-card p { font-size: .98rem; margin: 0 0 1.1rem; color: var(--slate-600); }

.jn-pillars { background: var(--paper); border-block: 1px solid var(--line); }

/* Featured posts */
.jn-post {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 1.6rem;
	display: flex; flex-direction: column; gap: .7rem;
	transition: transform .18s ease, box-shadow .25s ease;
}
.jn-post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.jn-post h3 { font-size: 1.16rem; line-height: 1.2; }
.jn-post p { font-size: .98rem; color: var(--slate-600); margin: 0; flex: 1; }
.jn-meta { font-family: var(--font-display); font-size: .82rem; color: var(--slate-400); }

/* ==========================================================================
   Personas band
   ========================================================================== */
.jn-personas { background: var(--navy-800); color: #fff; }
.jn-personas__inner { text-align: center; }
.jn-personas .jn-h2 { color: #fff; }
.jn-personas__list {
	list-style: none; margin: 1.8rem 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
}
.jn-personas__list li {
	font-family: var(--font-display); font-weight: 500;
	padding: .6em 1.2em; border-radius: 999px;
	border: 1px solid rgba(139, 165, 255, .3);
	color: var(--slate-300);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.jn-finalcta { background: linear-gradient(180deg, #fff, var(--paper)); }
.jn-finalcta__inner { text-align: center; max-width: 40rem; margin-inline: auto; }
.jn-signup { display: flex; gap: .6rem; justify-content: center; margin: 1.6rem auto 0; max-width: 28rem; }
.jn-signup input {
	flex: 1; padding: .9em 1.1em; font-size: 1rem; font-family: var(--font-body);
	border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
}
.jn-signup input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-50); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer, .site-info {
	background: var(--navy-900);
	color: var(--slate-300);
}
.site-info { font-family: var(--font-display); font-size: .9rem; }
.site-info a { color: var(--slate-300); }

/* ==========================================================================
   Articles (single post) + Guide prose
   ========================================================================== */
.single .entry-header,
.jn-guide-hero { }
.jn-guide-hero {
	background: linear-gradient(180deg, var(--paper), #fff);
	border-bottom: 1px solid var(--line);
	padding-block: clamp(3rem, 7vw, 5rem);
}
.jn-lead--wide { max-width: 62ch; }

.single .entry-header { max-width: 44rem; margin: 0 auto clamp(1.4rem, 3vw, 2.2rem); padding-top: clamp(2rem, 5vw, 3.5rem); }
.single .entry-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.single .entry-meta { font-family: var(--font-display); font-size: .88rem; color: var(--slate-400); margin-top: .7rem; }

/* Readable prose column for both single posts and guide pages */
.single .entry-content,
.jn-prose {
	max-width: 44rem;
	margin-inline: auto;
	font-size: 1.12rem;
	line-height: 1.75;
	color: var(--ink-soft);
}
.single .entry-content > *,
.jn-prose > * { margin-block: 0 1.35em; }
.single .entry-content h2,
.jn-prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.single .entry-content h3,
.jn-prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.single .entry-content a,
.jn-prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.single .entry-content blockquote,
.jn-prose blockquote {
	border-left: 3px solid var(--blue-500);
	margin-inline: 0; padding: .4em 0 .4em 1.3em;
	font-size: 1.18rem; color: var(--ink);
}
.single .entry-content ul,
.single .entry-content ol,
.jn-prose ul, .jn-prose ol { padding-left: 1.3em; }
.single .entry-content li,
.jn-prose li { margin-bottom: .5em; }
.single .entry-content img,
.jn-prose img { border-radius: var(--r); }
.single .entry-content code,
.jn-prose code { background: var(--paper); padding: .15em .4em; border-radius: 6px; font-size: .92em; }

/* Comparison tables (built with the block editor inside guides) */
.jn-prose table,
.single .entry-content table { width: 100%; border-collapse: collapse; font-size: .98rem; margin-block: 1.6em; }
.jn-prose th, .jn-prose td,
.single .entry-content th, .single .entry-content td {
	border: 1px solid var(--line); padding: .7em .9em; text-align: left;
}
.jn-prose thead th,
.single .entry-content thead th {
	background: var(--paper); font-family: var(--font-display); color: var(--ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
	.jn-hero__grid { grid-template-columns: 1fr; }
	.jn-hero__panel { order: 2; }
	.jn-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.jn-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
	.jn-grid--4 { grid-template-columns: 1fr; }
	.jn-signup { flex-direction: column; }
	.jn-sect__head--row { flex-direction: column; align-items: start; }
}
