/*
Theme Name: Opsestro
Theme URI: https://opsestro.com
Author: Opsestro
Description: Landing page theme for Opsestro, the AI back office for goods businesses. Includes a built-in waitlist form ([opsestro_waitlist]).
Version: 1.1.2
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: opsestro
*/

:root {
	--ink: #0B1B33;
	--ink-soft: #3A4A63;
	--gold: #D9A03F;
	--paper: #FAF8F4;
	--mist: #EEF1F6;
	--line: rgba(11, 27, 51, 0.12);
}

body { margin: 0; -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

/* Header */
.header-wrap { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 244, 0.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header { max-width: 1140px; margin: 0 auto; padding: 14px 24px; align-items: center; }
.site-header .brand, .site-header .brand a { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 24px; text-decoration: none; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.header-cta .wp-block-button__link { padding: 10px 20px; font-size: 15px; }

/* Sections */
.section { padding: 96px 24px; }
.section h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 18px; letter-spacing: -0.015em; }
.section h3 { font-size: 21px; margin: 0 0 8px; font-family: 'Inter', system-ui, sans-serif; font-weight: 650; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 0 14px; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 128px 24px 112px; text-align: left; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(217,160,63,0.22), rgba(217,160,63,0) 70%); pointer-events: none; }
.hero h1 { color: #fff; font-size: clamp(42px, 7vw, 72px); margin: 0 0 22px; letter-spacing: -0.02em; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); color: rgba(255,255,255,0.82); max-width: 680px; margin: 0 0 32px; }
.hero .fine { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 16px; }
.wp-block-button__link { padding: 15px 30px; transition: transform .15s ease, box-shadow .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(217,160,63,0.35); }

/* Problem */
.problem p:not(.eyebrow) { font-size: 20px; color: var(--ink-soft); }

/* How */
.how { background: var(--mist); }
.steps { gap: 20px !important; margin-top: 36px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 700; margin: 0 0 18px; }
.step p:not(.step-num) { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* Why */
.cards { gap: 20px !important; margin-top: 20px; }
.why .cards:first-of-type { margin-top: 36px; }
.card { border-top: 3px solid var(--gold); background: #fff; border-radius: 0 0 14px 14px; padding: 26px 24px; box-shadow: 0 1px 0 var(--line); }
.card p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* Who / operators */
.who p:not(.eyebrow) { font-size: 20px; color: var(--ink-soft); }
.operators { background: var(--mist); }
.operators .pull { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; border-left: 3px solid var(--gold); padding-left: 24px; margin: 0; }

/* Waitlist */
.waitlist { background: var(--ink); color: #fff; }
.waitlist h2 { color: #fff; }
.waitlist > p { color: rgba(255,255,255,0.8); }
.ops-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.ops-form .full { grid-column: 1 / -1; }
.ops-form > p:empty, .ops-form > br { display: none; }
.ops-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: rgba(255,255,255,0.9); }
.ops-form input, .ops-form select, .ops-form textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font: inherit; font-size: 16px; }
.ops-form select option { color: var(--ink); }
.ops-form input:focus, .ops-form select:focus, .ops-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.ops-form button { grid-column: 1 / -1; justify-self: start; background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 15px 32px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.ops-form .hp { position: absolute; left: -9999px; }
.ops-note { margin-top: 24px; padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.ops-note.ok { background: rgba(217,160,63,0.16); border: 1px solid var(--gold); color: #fff; }
.ops-note.err { background: rgba(255,90,90,0.14); border: 1px solid #ff7a7a; color: #fff; }

/* Footer */
.site-footer { padding: 40px 24px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 6px; }
.footer-small { font-size: 14px; color: var(--ink-soft); }

/* Plain pages */
.page { min-height: 60vh; }

/* ---------- Header nav ---------- */
.top-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; }
.top-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: var(--ink); }

/* ---------- Shared helpers ---------- */
.wrap { max-width: 1140px; margin: 0 auto; }
.wrap.two { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.narrow-wrap { max-width: 760px; }
.big { font-size: 20px; color: var(--ink-soft); line-height: 1.6; }
.big.narrow { max-width: 640px; }

/* ---------- Hero ---------- */
.hero2 { position: relative; overflow: hidden; color: #fff; padding: 112px 24px 120px;
	background: radial-gradient(1000px 520px at 82% 18%, rgba(217,160,63,0.16), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(80,120,200,0.18), transparent 60%), var(--ink); }
.hero2-in { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero2 h1 { color: #fff; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 24px; }
.hero2 .conducted { color: var(--gold); font-style: italic; position: relative; white-space: nowrap; }
.hero2 .conducted::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: -0.06em; height: 0.09em; border-radius: 99px; background: var(--gold); transform-origin: left; animation: baton 1.4s .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes baton { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero2 .lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(255,255,255,0.8); margin: 0 0 32px; max-width: 560px; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.btn-gold, .btn-ghost { display: inline-block; padding: 15px 28px; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(217,160,63,0.35); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.hero2-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,255,255,0.65); }
.hero2-facts li::before { content: "♪"; color: var(--gold); margin-right: 8px; }

/* Musical staff background */
.staff { position: absolute; left: 0; right: 0; top: 50%; height: 160px; transform: translateY(-50%) rotate(-4deg); pointer-events: none; opacity: .55; }
.staff span { display: block; height: 1px; margin-bottom: 39px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10) 15%, rgba(255,255,255,0.10) 85%, transparent); }
.staff i { position: absolute; left: var(--x); top: calc(var(--y) * 40px - 7px); width: 14px; height: 11px; border-radius: 50%; background: var(--gold); transform: rotate(-20deg); opacity: 0; animation: note 9s var(--d) linear infinite; }
.staff i::after { content: ""; position: absolute; right: 0; bottom: 5px; width: 1.5px; height: 30px; background: var(--gold); }
@keyframes note { 0% { opacity: 0; translate: -40px 0; } 15%, 70% { opacity: .35; } 100% { opacity: 0; translate: 80px 0; } }

/* Maestro console */
.mc { background: rgba(255,255,255,0.97); color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08); font-size: 14px; min-height: 452px; display: flex; flex-direction: column; gap: 14px; transform: rotate(1deg); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-family: 'Fraunces', Georgia, serif; font-size: 17px; }
.mc-live i { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43,182,115,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }
.mc-step { font-size: 12px; color: var(--ink-soft); background: var(--mist); padding: 4px 10px; border-radius: 99px; }
.mc-doc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed rgba(11,27,51,0.2); border-radius: 12px; }
.mc-ico { width: 32px; height: 40px; border-radius: 4px; background: linear-gradient(135deg, transparent 72%, rgba(11,27,51,.15) 72%), var(--mist); border: 1px solid rgba(11,27,51,.15); flex: none; position: relative; }
.mc-ico::after { content: ""; position: absolute; left: 6px; right: 8px; top: 12px; height: 14px; background: repeating-linear-gradient(transparent 0 3px, rgba(11,27,51,.25) 3px 4px); }
.mc-doc-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mc-doc-txt b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-doc-meta { font-size: 12px; color: var(--ink-soft); }
.mc-doc-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mc-label { font-size: 12px; color: var(--ink-soft); }
.mc-entity { font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; }
.mc-agents { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.mc-agent { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(11,27,51,.14); color: var(--ink-soft); transition: all .3s ease; }
.mc-agent.on { background: rgba(217,160,63,.16); border-color: var(--gold); color: var(--ink); }
.mc-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mc-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.mc-line b { display: block; font-weight: 650; }
.mc-line em { display: block; font-style: normal; font-size: 12px; color: var(--ink-soft); }
.mc-num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mc-why { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: var(--paper); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 8px 8px 0; }
.mc-why::before { content: "Why: "; font-weight: 700; color: var(--ink); }
.mc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.mc-src { font-size: 12px; color: var(--ink-soft); }
.mc-src::before { content: "📎 "; }
.mc-approve { position: relative; display: inline-grid; padding: 9px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; transition: background .3s ease; }
.mc-approve span { grid-area: 1 / 1; transition: opacity .25s ease; }
.mc-approve .a2 { opacity: 0; }

/* Animation states (JS adds s-* classes; without JS everything shows) */
.js-on .mc .mc-doc, .js-on .mc .mc-route, .js-on .mc .mc-line, .js-on .mc .mc-why { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.js-on .mc .mc-agent { opacity: .45; }
.js-on .mc.s-doc .mc-doc, .js-on .mc.s-route .mc-route, .js-on .mc .mc-line.on, .js-on .mc.s-why .mc-why { opacity: 1; transform: none; }
.js-on .mc .mc-agent.on { opacity: 1; }
.js-on .mc.s-why .mc-approve { animation: pulse-gold 1.4s infinite; }
@keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(217,160,63,.6); } 70% { box-shadow: 0 0 0 10px rgba(217,160,63,0); } 100% { box-shadow: 0 0 0 0 rgba(217,160,63,0); } }
.mc.s-ok .mc-approve { background: #2BB673; animation: none; }
.mc.s-ok .mc-approve .a1 { opacity: 0; }
.mc.s-ok .mc-approve .a2 { opacity: 1; }

/* ---------- Problem ---------- */
.problem2 h2 { font-family: 'Fraunces', Georgia, serif; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-col { border-radius: 16px; padding: 22px; }
.compare-col ul { margin: 0; padding: 0; list-style: none; }
.compare-col li { padding: 8px 0; font-size: 15px; border-top: 1px solid var(--line); }
.compare-h { margin: 0 0 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.compare .old { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.compare .old li { text-decoration: line-through; text-decoration-color: rgba(11,27,51,.3); }
.compare .new { background: var(--ink); color: #fff; }
.compare .new .compare-h { color: var(--gold); }
.compare .new li { border-top-color: rgba(255,255,255,.12); font-weight: 600; }
.compare .new li::before { content: "✓ "; color: var(--gold); }

/* ---------- Movements (roadmap) ---------- */
.movements { background: var(--ink); color: #fff; }
.movements h2 { color: #fff; }
.movements .big { color: rgba(255,255,255,.75); }
.mv { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.mv li { position: relative; padding: 26px 22px 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.mv-n { font-family: 'Fraunces', Georgia, serif; font-size: 40px; line-height: 1; color: rgba(255,255,255,.25); display: block; margin-bottom: 18px; }
.mv h3 { color: #fff; margin: 0 0 8px; }
.mv p { color: rgba(255,255,255,.7); font-size: 15px; margin: 0 0 18px; }
.mv-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.mv .mv-now { border-color: var(--gold); background: rgba(217,160,63,.08); }
.mv .mv-now .mv-n { color: var(--gold); }
.mv .mv-now .mv-tag { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Who ---------- */
.who-stats { margin: 0; display: grid; gap: 14px; }
.who-stats div { display: flex; align-items: baseline; gap: 16px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.who-stats dt { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; color: var(--ink); min-width: 150px; }
.who-stats dd { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--gold); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---------- Waitlist ---------- */
.wl-cols { gap: 64px !important; }
.waitlist .wl-cols p:not(.eyebrow) { color: rgba(255,255,255,0.8); }
.wl-perks { list-style: none; padding: 0; margin: 24px 0 0; }
.wl-perks li { padding: 8px 0; color: rgba(255,255,255,.85); }
.wl-perks li::before { content: "♪"; color: var(--gold); margin-right: 10px; }
.waitlist .ops-form { margin-top: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 28px; }
.ops-fine { grid-column: 1 / -1; margin: 0; font-size: 13px; color: rgba(255,255,255,.55) !important; }

@media (max-width: 1000px) {
	.top-nav { display: none; }
	.hero2-in, .wrap.two { grid-template-columns: 1fr; gap: 48px; }
	.mc { transform: none; max-width: 560px; }
	.mv { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.staff i, .hero2 .conducted::after, .mc-live i { animation: none !important; }
	.staff i { opacity: .3; }
}

@media (max-width: 781px) {
	.section { padding: 64px 20px; }
	.hero { padding: 88px 20px 76px; }
	.ops-form { grid-template-columns: 1fr; }
	.header-cta .wp-block-button__link { padding: 8px 14px; font-size: 14px; }
	.hero2 { padding: 72px 20px 80px; }
	.compare, .mv { grid-template-columns: 1fr; }
	.who-stats dt { min-width: 110px; font-size: 24px; }
	.waitlist .ops-form { padding: 20px; }
	.mc { min-height: 0; }
}
.site-footer a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
