/*
Theme Name: MLW Commerce
Theme URI: https://mlwcommerce.com
Author: MLW Commerce
Description: Core-blocks-only block theme for mlwcommerce.com. Tokens live in theme.json.
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: mlwcommerce
*/

/* Port of the Worker CSS (src/landing-page.ts); colours and fonts come from theme.json presets. */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{margin:0;background:var(--wp--preset--color--cream);font-family:var(--wp--preset--font-family--geist);color:var(--wp--preset--color--navy);overflow-x:hidden}
a{color:var(--wp--preset--color--blue)}a:hover{color:var(--wp--preset--color--navy)}
a:focus-visible,button:focus-visible{outline:3px solid var(--wp--preset--color--coral);outline-offset:3px}
.wrap{width:100%;max-width:1280px;margin:0 auto;padding:0 32px}
.mono{font-family:var(--wp--preset--font-family--geist-mono);letter-spacing:.08em;text-transform:uppercase}
.doto{font-family:var(--wp--preset--font-family--doto);font-weight:800;letter-spacing:-.01em;text-transform:uppercase}
.doto-case{font-family:var(--wp--preset--font-family--doto);font-weight:800;letter-spacing:-.01em}
.skip{position:absolute;left:-9999px;top:8px;z-index:50;padding:10px 18px;border-radius:999px;background:var(--wp--preset--color--navy);color:var(--wp--preset--color--white);font-family:var(--wp--preset--font-family--geist-mono);font-size:13px;text-decoration:none}
.skip:focus{left:16px;color:var(--wp--preset--color--white)}
.grid-light{background-image:radial-gradient(var(--wp--custom--dot-light) 1px,transparent 1.2px);background-size:18px 18px}
.grid-dark{background-color:var(--wp--preset--color--navy);background-image:radial-gradient(var(--wp--custom--dot-dark) 1px,transparent 1.2px);background-size:18px 18px;color:var(--wp--preset--color--white)}
.eyebrow{font-size:13px;font-weight:500;color:var(--wp--preset--color--slate)}
.grid-dark .eyebrow{color:var(--wp--custom--on-dark-75)}
.logo{display:block;flex-shrink:0}
.btn,.btn-o{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:999px;font-family:var(--wp--preset--font-family--geist-mono);font-weight:600;font-size:14px;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:transform .2s ease,background-color .2s ease,color .2s ease,border-color .2s ease}
.btn{background:var(--wp--preset--color--blue);color:var(--wp--preset--color--white);border:none}
.btn-o{background:transparent;color:var(--wp--preset--color--navy);border:1.5px solid var(--wp--preset--color--navy)}
.btn svg{transition:transform .2s ease}
.btn:hover,.btn-o:hover{transform:translateY(-2px);color:var(--wp--preset--color--white);background-color:var(--wp--preset--color--navy);border-color:var(--wp--preset--color--navy)}.btn:hover svg{transform:translateX(3px)}
.btn-d{background:var(--wp--preset--color--white);color:var(--wp--preset--color--navy)}
.btn-d:hover{color:var(--wp--preset--color--navy);background-color:var(--wp--preset--color--coral);border-color:var(--wp--preset--color--coral)}
.btn-sm{min-height:44px;padding:0 20px;font-size:13px}
@keyframes vanish{0%,15%{opacity:1}50%,65%{opacity:0}100%{opacity:1}}
.dot,.blinkdot{animation:vanish 2s ease-in-out infinite}.dot2{animation-delay:-1s}
.blinkdot{color:var(--wp--preset--color--coral);font-size:1.8em;line-height:0}
@keyframes seq{0%{opacity:0}10%,24%{opacity:1}34%,100%{opacity:0}}
.seq{animation:seq 3s ease-in-out infinite}.seq2{animation-delay:-2s}.seq3{animation-delay:-1s}
@keyframes reveal{from{opacity:.28}to{opacity:1}}
@supports (animation-timeline: view()){.w{animation:reveal linear both;animation-timeline:view()}}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}.dot,.seq,.blinkdot,.w{animation:none!important}.btn,.btn-o,.btn svg{transition:none}}

.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,0.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--wp--preset--color--line)}
.site-header a:focus-visible,.site-header button:focus-visible{outline-color:var(--wp--preset--color--blue)}
.site-header nav{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 0}
.site-header nav>a{display:inline-flex}
.nav-links{display:flex;align-items:center;gap:28px;flex-wrap:wrap;font-size:13px;font-weight:500}
.nav-links a:not(.btn){color:var(--wp--preset--color--navy);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.nav-links a:not(.btn) span{color:var(--wp--preset--color--slate)}
.nav-toggle{display:none}
.nav-toggle:hover{background:var(--wp--preset--color--cream)}
.nav-toggle .x{display:none}
.site-header[data-menu-open="true"] .nav-toggle .bars{display:none}
.site-header[data-menu-open="true"] .nav-toggle .x{display:block}
@media (max-width: 768px){
html{scroll-padding-top:76px}
.site-header .wrap{padding:0 20px}
.site-header nav{min-height:68px;flex-wrap:nowrap;gap:12px;padding:10px 0}
.site-header .logo{width:clamp(140px,44vw,210px);height:auto}
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border-radius:10px;border:1.5px solid var(--wp--preset--color--navy);background:var(--wp--preset--color--white);color:var(--wp--preset--color--navy);cursor:pointer;padding:0}
.nav-links{display:none}
.site-header[data-menu-open="true"] .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:8px;position:absolute;top:100%;left:0;right:0;background:var(--wp--preset--color--white);border-top:1px solid var(--wp--preset--color--line);border-bottom:1.5px solid var(--wp--preset--color--navy);padding:16px 20px 24px;box-shadow:0 12px 24px rgba(18,26,61,0.08)}
.site-header[data-menu-open="true"] .nav-links .btn{width:100%}
}

.hero{border-bottom:1px solid var(--wp--preset--color--line)}
.hero-inner{padding:clamp(40px,6vw,80px) 0 clamp(40px,5vw,64px);display:flex;flex-direction:column;gap:clamp(28px,4vw,48px)}
.hero-eyebrow{font-size:clamp(19px,1.7vw,23px);font-weight:500;color:var(--wp--preset--color--slate)}
.hero h1{margin:0;font-size:clamp(44px,8.4vw,124px);line-height:.98;color:var(--wp--preset--color--navy)}
.hero-row{display:flex;gap:24px;flex-wrap:wrap;align-items:stretch}
.hero-copy{flex:2 1 440px;border-top:1.5px solid var(--wp--preset--color--navy);padding-top:20px;display:flex;flex-direction:column;justify-content:space-between;gap:28px}
.hero-copy p{margin:0;max-width:600px;font-size:clamp(19px,1.7vw,23px);line-height:1.5}
.ctas{display:flex;gap:14px;flex-wrap:wrap}
.status-card{flex:1 1 300px;min-height:300px;border-radius:14px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.status-card .lbl{position:absolute;font-size:12px;color:var(--wp--custom--on-dark-75)}
.status-card .tl{top:16px;left:18px}.status-card .tr{top:16px;right:18px;display:inline-flex;align-items:center;gap:8px}.status-card .bl{bottom:16px;left:18px}
.status-card .dots{display:flex;flex-direction:column;gap:34px}
.pip{display:inline-block;border-radius:50%;background:var(--wp--preset--color--coral);width:9px;height:9px}
.status-card .tr .pip{width:7px;height:7px}
.status-card .dots .pip{width:84px;height:84px}

.manifest-inner{padding:clamp(64px,9vw,128px) 0;display:flex;gap:40px;flex-wrap:wrap}
.manifest-inner>.manifest-label{flex:0 0 200px}
.manifest-text{flex:1 1 560px}
.manifest-text p{margin:0;font-size:clamp(28px,3.8vw,52px);line-height:1.2;font-weight:500;letter-spacing:-.02em}
.manifest-inner .accent{color:var(--wp--preset--color--coral)}

.block{border-top:1px solid var(--wp--preset--color--line)}
.block-inner{padding:clamp(64px,9vw,120px) 0;display:flex;flex-direction:column;gap:44px}
.block-head{display:flex;flex-direction:column;gap:16px;max-width:760px}
.block-head h2{margin:0;font-size:clamp(34px,4.4vw,60px);line-height:1.06;font-weight:600;letter-spacing:-.03em}
.principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media (max-width: 860px){.principles{grid-template-columns:1fr}}
.card{background:var(--wp--preset--color--white);border:1.5px solid var(--wp--preset--color--navy);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.card-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 24px;border-bottom:1.5px solid var(--wp--preset--color--navy);background:var(--wp--preset--color--cream);font-size:13px;font-weight:500}
.card-bar .status{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.card-body{display:flex;flex-direction:column;gap:16px;padding:clamp(20px,2.4vw,32px);flex-grow:1}
.card-body h3{margin:0;font-size:clamp(22px,2.2vw,30px);line-height:1.08;overflow-wrap:break-word}
.card-body p{margin:0;font-size:17px;line-height:1.55;color:var(--wp--preset--color--slate)}

.assistant-body{display:flex;gap:40px;flex-wrap:wrap;padding:clamp(28px,3.5vw,48px)}
.assistant-body>div{flex:1 1 420px}
.assistant-main{display:flex;flex-direction:column;gap:20px}
.assistant-main h3{margin:0;font-size:clamp(34px,4vw,54px);line-height:1.02}
.assistant-main p{margin:0;max-width:520px;font-size:19px;line-height:1.55;color:var(--wp--preset--color--slate)}
.spec{margin:0}
.spec div{display:flex;gap:16px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--wp--preset--color--line)}
.spec dt{flex:0 0 150px;font-size:13px;font-weight:500;color:var(--wp--preset--color--slate)}
.spec dd{flex:1 1 260px;margin:0;font-size:17px;line-height:1.5}

.contact-inner{padding:clamp(64px,9vw,128px) 0;display:flex;flex-direction:column;gap:36px}
.contact-inner h2{margin:0;font-size:clamp(30px,8vw,116px);line-height:.98}
.contact-row{display:flex;gap:32px;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;border-top:1px solid rgba(255,255,255,0.25);padding-top:28px}
.contact-row>p{flex:1 1 420px;margin:0;max-width:560px;font-size:20px;line-height:1.5;color:var(--wp--custom--on-dark-85)}
.contact-cta{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.contact-cta p{margin:0;font-family:var(--wp--preset--font-family--geist-mono);font-size:13px;letter-spacing:.06em;text-align:center;color:var(--wp--custom--on-dark-75)}

.site-footer{display:flex;flex-direction:column;gap:20px;padding:28px 0 40px}
.site-footer-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.site-footer address{margin:0;display:flex;flex-direction:column;gap:4px;max-width:42rem;font-style:normal;font-size:13px;font-weight:400;line-height:1.45;color:var(--wp--preset--color--legal)}
.site-footer address span{color:var(--wp--preset--color--legal);font-weight:400}
.site-footer span{font-size:13px;font-weight:500;color:var(--wp--preset--color--slate)}
.cookie-settings{font-family:var(--wp--preset--font-family--geist-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--slate);background:none;border:0;border-bottom:1px solid var(--wp--preset--color--line);padding:2px 0;cursor:pointer;align-self:flex-start}
.cookie-settings:hover{color:var(--wp--preset--color--navy);border-bottom-color:var(--wp--preset--color--navy)}
.cookie-settings:focus-visible{outline:3px solid var(--wp--preset--color--coral);outline-offset:3px}

/* ---- Block markup adjustments (core block wrappers vs the Worker HTML) ---- */
:where(.wp-site-blocks) :where(p,h1,h2,h3,dl,dd,ul){margin:0}
.wp-block-button{display:contents}
.contact-cta .wp-block-buttons{display:contents}
.manifest-label>p{display:inline}
.btn,.btn-o{line-height:normal;box-shadow:none}

/* ---- Sub-pages and 404 (Worker simplePage card) ---- */
.mlw-page{display:flex;justify-content:center;padding:clamp(40px,8vw,96px) 0}
.mlw-card{box-sizing:border-box;width:calc(100% - 64px);max-width:640px;padding:clamp(28px,5vw,48px);background:var(--wp--preset--color--white);border:1.5px solid var(--wp--preset--color--navy);border-radius:14px;display:flex;flex-direction:column;gap:20px}
.mlw-card h1{font-family:var(--wp--preset--font-family--doto);font-weight:800;font-size:clamp(28px,4vw,44px);line-height:1.05;text-transform:uppercase}
.mlw-card .entry-content{display:flex;flex-direction:column;gap:20px}
.mlw-card p{font-size:18px;line-height:1.55;color:var(--wp--preset--color--slate)}
.mlw-notice ul{padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;font-family:var(--wp--preset--font-family--geist-mono);font-size:14px}
.mlw-card img{max-width:100%;height:auto}
.mlw-solo{min-height:100vh;display:flex;align-items:center;justify-content:center}
/* The Worker's simplePage has no .logo rule: the inline SVG sits on a text line (36px + strut descent = 41px). */
.mlw-notice .logo{display:inline}
.mlw-solo>.mlw-card{margin:32px}
