/*
Theme Name: AI Prompt Studio Theme
Theme URI: https://prompts.aifrontierinstitute.com
Author: AI Frontier Institute
Description: Fast, SEO-ready theme for AI Prompt Studio. Builds the homepage, AI News, legal pages and menus automatically. Pair with the AI Prompt Studio plugin.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: aipst
*/

:root {
	--navy: #0f1f3d;
	--navy-2: #182c52;
	--gold: #c9a227;
	--gold-2: #dbb441;
	--ink: #142033;
	--muted: #5a6577;
	--line: #e3e6ec;
	--cream: #f6f4ee;
	--white: #fff;
	--radius: 16px;
	--wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0; background: var(--white); color: var(--ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
.aipst-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.aipst-narrow { max-width: 820px; }
.aipst-center { text-align: center; }
.aipst-skip { position: absolute; left: -9999px; }
.aipst-skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.aipst-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: 11px; font-weight: 700; font-size: .95rem; text-decoration: none;
	border: 2px solid transparent; transition: background .15s, border-color .15s, transform .1s; cursor: pointer; white-space: nowrap;
}
.aipst-btn:active { transform: translateY(1px); }
.aipst-btn--lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 13px; }
.aipst-btn--block { display: flex; width: 100%; }
.aipst-btn--gold { background: var(--gold); color: var(--navy); }
.aipst-btn--gold:hover { background: var(--gold-2); }
.aipst-btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.aipst-btn--ghost:hover { border-color: #fff; }
.aipst-btn--line { color: #fff; border-color: rgba(255,255,255,.45); }
.aipst-btn--line:hover { background: rgba(255,255,255,.08); }
.aipst-btn--line-dark { color: var(--navy); border-color: var(--navy); }
.aipst-btn--line-dark:hover { background: var(--navy); color: #fff; }

/* Header */
.aipst-header { position: sticky; top: 0; z-index: 100; background: var(--navy); transition: box-shadow .2s; }
.admin-bar .aipst-header { top: 32px; }
.aipst-header.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.aipst-header-in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.aipst-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.aipst-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.aipst-brand-text strong { font-size: 1.08rem; color: #fff; }
.aipst-brand-text small { font-size: .72rem; color: #9fb0c8; }
.aipst-logo-img { max-height: 44px; width: auto; }
.aipst-nav { display: flex; align-items: center; gap: 22px; }
.aipst-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.aipst-menu a { color: #dfe6f2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.aipst-menu a:hover { color: #fff; }
.aipst-nav-cta { display: flex; gap: 10px; }
.aipst-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.aipst-burger span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.aipst-hero {
	background: radial-gradient(1000px 420px at 85% -10%, rgba(201,162,39,.22), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
	color: #e8edf6; padding: 72px 0 120px; text-align: center;
}
.aipst-hero--small { padding: 56px 0 64px; }
.aipst-hero-in { max-width: 900px; }
.aipst-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(201,162,39,.16); color: var(--gold-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.aipst-hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.aipst-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c8d2e3; margin: 0 auto 28px; max-width: 720px; }
.aipst-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.aipst-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; font-size: .92rem; color: #b9c5d9; }
.aipst-trust li::before { content: "\2713"; color: var(--gold); font-weight: 800; margin-right: 6px; }
.aipst-ai-row { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.aipst-ai-row span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font-weight: 600; font-size: .9rem; }
.d { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.d--claude { background: #d0764f; } .d--chatgpt { background: #10a37f; } .d--gemini { background: #4a7fe6; }

/* Studio (overlaps hero) */
.aipst-studio { margin-top: -84px; padding-bottom: 40px; position: relative; z-index: 2; }
.aipst-studio .aips { max-width: 900px; }

/* Sections */
.aipst-section { padding: 72px 0; }
.aipst-section--soft { background: var(--cream); }
.aipst-section--navy { background: var(--navy); color: #c8d2e3; }
.aipst-section--navy .aipst-h2 { color: #fff; }
.aipst-h2 { text-align: center; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
.aipst-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }
.aipst-news-intro { color: var(--muted); margin: 18px auto 14px; max-width: 640px; }

.aipst-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.aipst-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aipst-steps .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.aipst-steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.aipst-steps p { margin: 0; color: var(--muted); }

.aipst-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aipst-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.aipst-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(201,162,39,.15); color: #8a6d12; font-weight: 800; margin-bottom: 14px; font-size: 1.05rem; }
.aipst-card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.aipst-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.aipst-why { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.aipst-why .aipst-h2 { text-align: left; }
.aipst-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aipst-why-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.aipst-why-list strong { color: #fff; margin-right: 4px; }
.aipst-why-list .d { transform: translateY(-1px); }

.aipst-price { max-width: 520px; margin: 0 auto; background: #fff; border: 2px solid var(--gold); border-radius: 20px; padding: 30px; box-shadow: 0 16px 40px rgba(15,31,61,.1); }
.aipst-price-top { text-align: center; margin-bottom: 18px; }
.aipst-price-name { margin: 0; font-weight: 700; color: var(--muted); }
.aipst-price-amt { margin: 4px 0 0; color: var(--muted); }
.aipst-price-amt span { font-size: 3.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.aipst-price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.aipst-price li { padding-left: 28px; position: relative; }
.aipst-price li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: .72rem; display: grid; place-items: center; font-weight: 800; margin-top: 3px; }

.aipst-faq { display: grid; gap: 10px; margin-top: 30px; }
.aipst-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.aipst-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; }
.aipst-faq summary::-webkit-details-marker { display: none; }
.aipst-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.aipst-faq details[open] summary::after { content: "\2212"; }
.aipst-faq summary h3 { display: inline; font-size: 1.04rem; margin: 0; }
.aipst-faq details p { margin: 0 0 16px; color: var(--muted); }

.aipst-cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #c8d2e3; text-align: center; padding: 72px 0; }
.aipst-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 10px; }
.aipst-cta p { margin: 0 0 24px; }

/* Pages */
.aipst-page { padding: 56px 0 72px; }
.aipst-page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 20px; }
.aipst-content h2 { margin-top: 1.6em; font-size: 1.4rem; }
.aipst-content h3 { margin-top: 1.3em; }
.aipst-content p, .aipst-content li { color: #2b3547; }
.aipst-notice { background: #fff6e8; border: 1px solid #f0d39a; border-radius: 12px; padding: 16px; text-align: center; color: #5c4210; }

/* Footer */
.aipst-footer { background: #0b1730; color: #9fb0c8; padding: 56px 0 28px; font-size: .94rem; }
.aipst-footer a { color: #dfe6f2; text-decoration: none; }
.aipst-footer a:hover { color: #fff; text-decoration: underline; }
.aipst-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.aipst-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.aipst-footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; }
.aipst-footer-h { color: #fff; font-weight: 700; margin: 0 0 10px; }
.aipst-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .8rem; }
.aipst-legal p { margin: 0 0 6px; }

/* Responsive */
@media (max-width: 980px) {
	.aipst-cards { grid-template-columns: repeat(2, 1fr); }
	.aipst-why { grid-template-columns: 1fr; }
	.aipst-why .aipst-h2 { text-align: center; }
	.aipst-burger { display: block; }
	.aipst-nav {
		position: fixed; inset: 70px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch;
		padding: 18px 20px 24px; gap: 16px; transform: translateY(-120%); transition: transform .25s; box-shadow: 0 12px 24px rgba(0,0,0,.25);
	}
	.admin-bar .aipst-nav { inset: 116px 0 auto 0; }
	.aipst-nav-open .aipst-nav { transform: none; }
	.aipst-menu { flex-direction: column; gap: 4px; }
	.aipst-menu a { display: block; padding: 10px 4px; font-size: 1.05rem; }
	.aipst-nav-cta .aipst-btn { flex: 1; }
	.aipst-nav-open .aipst-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.aipst-nav-open .aipst-burger span:nth-child(2) { opacity: 0; }
	.aipst-nav-open .aipst-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.aipst-steps, .aipst-cards { grid-template-columns: 1fr; }
	.aipst-footer-grid { grid-template-columns: 1fr; }
	.aipst-hero { padding: 48px 0 104px; }
	.aipst-section { padding: 56px 0; }
	.aipst-hero-ctas .aipst-btn { width: 100%; }
	.aipst-brand-text small { display: none; }
}
@media (max-width: 782px) { .admin-bar .aipst-header { top: 46px; } }
