/*
Theme Name: MooBots
Theme URI: https://moobots.com
Author: MooBots
Description: Technical storefront for MooBot Studio automation software.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: moobots
*/

:root {
  --moo-ink: #171a19;
  --moo-panel: #202522;
  --moo-panel-2: #29302c;
  --moo-cream: #f4f1e8;
  --moo-paper: #fbfaf5;
  --moo-green: #4f7568;
  --moo-green-bright: #7fb6a2;
  --moo-amber: #e0a244;
  --moo-coral: #d86255;
  --moo-line: rgba(255,255,255,.11);
  --moo-muted: #9da7a1;
  --moo-radius: 18px;
  --moo-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --moo-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #252a27; background: var(--moo-cream); font-family: var(--moo-sans); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 10000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: #fff; background: var(--moo-ink); }

.site-header { position: sticky; z-index: 100; top: 0; color: #fff; background: rgba(23,26,25,.9); border-bottom: 1px solid var(--moo-line); backdrop-filter: blur(18px); }
.header-inner, .section-inner, .footer-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: #8e9993; font: 9px var(--moo-mono); letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { color: #cbd2ce; font-size: 13px; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.nav-account { padding: 9px 12px; color: #d9e4df; font-size: 12px; text-decoration: none; border: 1px solid #3a4540; border-radius: 9px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; color: #fff; background: transparent; border: 1px solid #3a4540; border-radius: 9px; }

.button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; color: #18211d; background: var(--moo-amber); border: 1px solid transparent; border-radius: 10px; font: 750 13px var(--moo-sans); text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover, .button:focus-visible { color: #121714; background: #edb55f; transform: translateY(-1px); }
.button-secondary { color: #e8eeeb; background: #29302d; border-color: #46514c; }
.button-secondary:hover, .button-secondary:focus-visible { color: #fff; background: #343d39; }
.button-quiet { color: #335c4f; background: transparent; border-color: #9eb7ad; }

.hero { position: relative; overflow: hidden; padding: 105px 0 90px; color: #fff; background: var(--moo-ink); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(127,182,162,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127,182,162,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.hero::after { content: ""; position: absolute; width: 680px; height: 680px; top: -420px; left: 42%; background: radial-gradient(circle, rgba(79,117,104,.34), transparent 68%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 65px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--moo-green-bright); font: 700 11px var(--moo-mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero h1 { max-width: 660px; margin: 0; font-size: clamp(48px, 6.5vw, 83px); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: var(--moo-amber); font-style: normal; }
.hero-lede { max-width: 610px; margin: 27px 0 31px; color: #b8c0bb; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 0; padding: 0; color: #87918b; font: 10px var(--moo-mono); list-style: none; text-transform: uppercase; letter-spacing: .07em; }
.hero-note li::before { content: "●"; margin-right: 8px; color: var(--moo-green-bright); font-size: 8px; }

.studio-window { position: relative; min-width: 0; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); border: 1px solid #424a46; border-radius: 16px; box-shadow: 0 38px 100px #0009; }
.studio-topbar { height: 51px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #dfe5e2; background: #222624; border-radius: 15px 15px 0 0; border-bottom: 1px solid #3b413e; font-size: 10px; }
.studio-dots { display: flex; gap: 5px; }
.studio-dots i { width: 7px; height: 7px; background: var(--moo-coral); border-radius: 50%; }
.studio-dots i:nth-child(2) { background: var(--moo-amber); }
.studio-dots i:nth-child(3) { background: #64a677; }
.studio-title { flex: 1; font-family: var(--moo-mono); }
.run-pill { padding: 5px 9px; color: #fff; background: var(--moo-green); border-radius: 5px; font-weight: 800; }
.studio-body { min-height: 430px; display: grid; grid-template-columns: 104px 1fr 125px; overflow: hidden; color: #5f6762; background: #eeede7; border-radius: 0 0 15px 15px; }
.studio-palette, .studio-settings { padding: 14px 10px; background: #f4f3ed; }
.studio-palette { border-right: 1px solid #d2d4ce; }
.studio-settings { border-left: 1px solid #d2d4ce; }
.studio-label { display: block; margin-bottom: 11px; color: #727a75; font: 700 7px var(--moo-mono); letter-spacing: .08em; text-transform: uppercase; }
.palette-item, .setting-line { display: block; height: 24px; margin-bottom: 7px; background: #fff; border: 1px solid #d8dad4; border-radius: 5px; }
.palette-item { position: relative; padding-left: 27px; }
.palette-item::before { content: ""; position: absolute; width: 12px; height: 12px; top: 5px; left: 7px; background: #dceae4; border-radius: 3px; }
.studio-canvas { position: relative; overflow: hidden; background-color: #e6e6df; background-image: radial-gradient(#aeb3ae 1px, transparent 1px); background-size: 16px 16px; }
.flow-line { position: absolute; height: 2px; transform-origin: left center; background: #6e9688; }
.flow-line::after { content: ""; position: absolute; width: 7px; height: 7px; top: -3px; right: -2px; background: #6e9688; border-radius: 50%; }
.line-a { width: 95px; top: 93px; left: 99px; transform: rotate(13deg); }
.line-b { width: 102px; top: 158px; left: 206px; transform: rotate(-18deg); }
.line-c { width: 85px; top: 222px; left: 96px; transform: rotate(-10deg); }
.line-d { width: 83px; top: 259px; left: 185px; transform: rotate(16deg); }
.flow-node { position: absolute; width: 100px; overflow: hidden; color: #303632; background: #fff; border: 1px solid #b9bdb8; border-radius: 7px; box-shadow: 0 6px 14px #2c3c3421; font-size: 7px; }
.flow-node strong { display: block; padding: 7px 8px; color: #fff; background: #496f63; font-size: 8px; }
.flow-node span { display: block; padding: 9px 8px; color: #747b76; font-family: var(--moo-mono); }
.node-1 { top: 55px; left: 20px; }
.node-2 { top: 106px; left: 187px; }
.node-3 { top: 194px; left: 43px; }
.node-4 { top: 245px; left: 249px; }
.node-3 strong { background: #a97326; }
.node-4 strong { background: #5e527d; }
.activity-bar { position: absolute; right: 18px; bottom: 17px; left: 18px; display: flex; gap: 7px; padding: 9px; color: #d8dfdb; background: #232725; border-radius: 7px; font: 7px var(--moo-mono); }
.activity-bar b { color: #79b18f; }

.trust-strip { color: #c9d0cc; background: #202522; border-top: 1px solid var(--moo-line); border-bottom: 1px solid var(--moo-line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 25px; text-align: center; border-right: 1px solid var(--moo-line); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { display: block; color: #fff; font-size: 23px; letter-spacing: -.04em; }
.trust-grid span { color: #8f9a94; font: 9px var(--moo-mono); letter-spacing: .07em; text-transform: uppercase; }

.section { padding: 100px 0; }
.section-dark { color: #edf1ef; background: var(--moo-ink); }
.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header h2 { margin: 0; font-size: clamp(35px, 4vw, 55px); line-height: 1.05; letter-spacing: -.05em; }
.section-header p { margin: 18px 0 0; color: #65706a; font-size: 17px; }
.section-dark .section-header p { color: #9ba59f; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card { min-height: 235px; padding: 27px; background: var(--moo-paper); border: 1px solid #dddcd4; border-radius: var(--moo-radius); }
.feature-card-number { color: #769187; font: 700 10px var(--moo-mono); }
.feature-card h3 { margin: 44px 0 10px; font-size: 20px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: #68716c; font-size: 14px; }
.feature-card-wide { grid-column: span 2; color: #fff; background: var(--moo-panel); border-color: #343b37; }
.feature-card-wide p { color: #a1aaa5; }

.usecase-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; align-items: start; }
.usecase-list { display: grid; gap: 1px; background: #333a36; border: 1px solid #333a36; border-radius: var(--moo-radius); overflow: hidden; }
.usecase { padding: 26px; background: var(--moo-panel); }
.usecase header { display: flex; align-items: center; gap: 12px; }
.usecase code { width: 30px; height: 30px; display: grid; place-items: center; color: var(--moo-green-bright); background: #29332f; border-radius: 7px; font: 800 10px var(--moo-mono); }
.usecase h3 { margin: 0; font-size: 17px; }
.usecase p { margin: 10px 0 0 42px; color: #929c96; font-size: 13px; }
.automation-recipe { position: sticky; top: 115px; padding: 28px; color: #dce2df; background: #101312; border: 1px solid #333a36; border-radius: var(--moo-radius); font-family: var(--moo-mono); box-shadow: inset 0 1px #ffffff0c; }
.recipe-head { display: flex; justify-content: space-between; padding-bottom: 16px; color: #79847e; border-bottom: 1px solid #29302c; font-size: 10px; }
.recipe-head b { color: #6fab89; }
.recipe-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #242a27; font-size: 12px; }
.recipe-row:last-child { border-bottom: 0; }
.recipe-row i { width: 28px; height: 28px; display: grid; place-items: center; color: #d6ddd9; background: #29302c; border-radius: 6px; font-style: normal; }
.recipe-row small { color: #64716a; }
.recipe-row b { color: var(--moo-amber); font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; counter-reset: steps; }
.step { position: relative; padding: 28px; background: #ebe8de; border: 1px solid #d8d5ca; border-radius: var(--moo-radius); counter-increment: steps; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 48px; color: #6f8c81; font: 800 11px var(--moo-mono); }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: #67706b; font-size: 14px; }

.pricing-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 35px; color: #fff; background: var(--moo-panel); border: 1px solid #3b443f; border-radius: var(--moo-radius); }
.pricing-card + .pricing-card { margin-top: 14px; }
.pricing-card h3 { margin: 0 0 7px; font-size: 25px; }
.pricing-card p { margin: 0; color: #9ba69f; }
.pricing-meta { display: flex; gap: 18px; margin-top: 18px; color: #c7d0cb; font: 10px var(--moo-mono); text-transform: uppercase; }
.price { display: block; margin-bottom: 10px; color: var(--moo-amber); font-size: 24px; font-weight: 800; text-align: right; }
.tier-note { display: block; max-width: 220px; margin: -2px 0 12px auto; color: #aeb8b2; font: 10px/1.5 var(--moo-mono); text-align: right; text-transform: uppercase; }
.moobots-product-terms { padding: 14px 16px; border: 1px solid #dfe5e1; border-radius: 8px; background: #f6f8f7; }
.moobots-product-terms p { margin: 0; }
.moobots-product-terms .moobots-price-roadmap { margin-top: 6px; color: #5f6b64; font-size: 13px; }
.pricing-empty { padding: 38px; color: #c6ceca; background: var(--moo-panel); border: 1px dashed #4b5650; border-radius: var(--moo-radius); }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-grid details { padding: 20px 22px; background: var(--moo-paper); border: 1px solid #dad8ce; border-radius: 12px; }
.faq-grid summary { font-weight: 750; cursor: pointer; }
.faq-grid p { margin: 13px 0 0; color: #68716c; font-size: 14px; }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 55px; color: #fff; background: var(--moo-green); border-radius: 25px; }
.cta-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -160px; border: 1px solid #ffffff33; border-radius: 50%; box-shadow: 0 0 0 35px #ffffff08, 0 0 0 70px #ffffff06; }
.cta-panel h2 { margin: 0; font-size: clamp(33px, 4vw, 51px); line-height: 1.04; letter-spacing: -.05em; }
.cta-panel p { margin: 14px 0 0; color: #dce9e4; }
.cta-panel .button { position: relative; z-index: 1; }

.site-main:not(.home-main) { min-height: 70vh; padding: 80px 0; }
.content-shell { width: min(900px, calc(100% - 40px)); margin-inline: auto; }
.content-shell h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; }
.entry-content { color: #4f5953; }
.entry-content h2 { margin-top: 2em; color: #232825; }

.site-footer { padding: 60px 0 28px; color: #bac3be; background: #101312; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 50px; padding-bottom: 50px; border-bottom: 1px solid #29302c; }
.footer-brand p { max-width: 330px; color: #78847d; font-size: 13px; }
.footer-column h3 { margin: 0 0 15px; color: #e8eeeb; font: 700 10px var(--moo-mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-column a { display: block; margin: 8px 0; color: #8e9993; font-size: 13px; text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: #626d67; font: 9px var(--moo-mono); text-transform: uppercase; letter-spacing: .06em; }

.woocommerce .woocommerce-MyAccount-navigation ul { padding: 0; list-style: none; }
.woocommerce .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; text-decoration: none; border-bottom: 1px solid #dad8cf; }
.moobots-license-card { margin: 0 0 18px; padding: 24px; background: #fff; border: 1px solid #dad8ce; border-radius: 14px; }
.moobots-license-key { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; padding: 12px; background: #202522; border-radius: 8px; color: #fff; font: 13px var(--moo-mono); }
.moobots-devices { margin: 14px 0; padding: 0; list-style: none; }
.moobots-devices li { padding: 9px 0; border-bottom: 1px solid #eceae2; font-size: 13px; }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 72px; right: 20px; left: 20px; padding: 18px; background: #202522; border: 1px solid #3c4541; border-radius: 12px; }
  .site-nav.is-open { display: grid; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-actions .nav-account { display: none; }
  .hero { padding-top: 75px; }
  .hero-grid, .usecase-layout { grid-template-columns: 1fr; }
  .studio-window { max-width: 650px; transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .automation-recipe { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner, .section-inner, .footer-inner { width: min(100% - 28px, 1180px); }
  .brand-copy small { display: none; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 47px; }
  .studio-body { min-height: 330px; grid-template-columns: 74px 1fr; }
  .studio-settings { display: none; }
  .flow-node { width: 84px; }
  .node-2 { left: 138px; }
  .node-4 { left: 155px; }
  .line-b, .line-d { width: 62px; }
  .feature-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid div { padding: 18px 8px; }
  .pricing-card, .cta-panel { grid-template-columns: 1fr; padding: 30px; }
  .price { text-align: left; }
  .tier-note { margin-left: 0; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
