/*
Theme Name: Myro
Description: The workbench: warm paper, a pegboard and a hex nut. Storefront for Myro.ai on Easy Digital Downloads.
Version: 2.0.0
Text Domain: myro
*/

@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
	--paper: #f6f1e7;
	--paper-deep: #ece4d3;
	--card: #fffdf8;
	--ink: #17201b;
	--ink-soft: #55605a;
	--line: #d8cfbc;
	--orange: #d9481c;
	--orange-dark: #b53a14;
	--green: #0f4a3c;
	--green-soft: #cfe1d4;
	--yellow: #f5c84b;
	--peg: #d9cfba;
	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--hard: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.03; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
code { font-size: .92em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.section { padding: 84px 0; }
.lead { font-size: clamp(1.15rem, 2.1vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 14px; z-index: 20; }

/* Pegboard */
.pegboard { background-color: var(--paper); background-image: radial-gradient(circle, var(--peg) 2.5px, transparent 3px); background-size: 28px 28px; background-position: 14px 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: baseline; color: var(--ink); font: 800 2rem/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: .68em; height: .68em; margin-left: .05em; align-self: center; transform: translateY(.1em); color: var(--orange); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover svg { transform: translateY(.1em) rotate(60deg); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--orange-dark); }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; font-size: .85rem; }
.lang a, .lang span { padding: 3px 8px; font-weight: 700; line-height: 1.3; }
.lang span { background: var(--ink); color: var(--paper); }

/* Buttons */
.button, a.edd-submit, input.edd-submit, button.edd-submit, .edd-submit.button, .edd-submit {
	display: inline-block; background: var(--orange) !important; color: #fff !important; border: 2px solid var(--ink) !important; border-radius: 10px !important;
	padding: 13px 24px !important; font: 700 1.05rem/1.2 var(--text) !important; text-decoration: none; cursor: pointer; box-shadow: var(--hard);
	transition: transform .12s, box-shadow .12s;
}
.button:hover, .edd-submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: #fff !important; }
.button:active, .edd-submit:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button--plain { background: var(--card) !important; color: var(--ink) !important; }
.button--plain:hover { color: var(--ink) !important; }
.button--light { background: var(--yellow) !important; color: var(--ink) !important; }
.button--light:hover { color: var(--ink) !important; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Hero */
.hero { padding: 72px 0 84px; border-bottom: 2px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { background: var(--paper); box-shadow: 0 0 0 10px var(--paper); margin-bottom: .4em; }
.hero .lead { background: var(--paper); box-shadow: 0 0 0 8px var(--paper); color: var(--ink); }
mark { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 .06em; }

.fixes { display: grid; gap: 22px; }
.fix { position: relative; display: block; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--hard); padding: 20px 22px; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.fix:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }
.fix:nth-child(1) { transform: rotate(-1.2deg); }
.fix:nth-child(2) { transform: rotate(.9deg); }
.fix--open { background: transparent; border-style: dashed; box-shadow: none; background: var(--paper); }
.fix__label { display: inline-block; font: 700 .72rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: var(--paper-deep); margin-bottom: 8px; }
.fix__label--done { background: var(--green-soft); color: var(--green); margin-top: 12px; }
.fix strong { display: block; font: 700 1.2rem/1.2 var(--display); letter-spacing: -.01em; }
.fix span.small { display: block; color: var(--ink-soft); font-size: .98rem; }

/* Tools */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-bottom: 26px; }
.head-row h2 { margin: 0; }
.head-row a { font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.tool-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--hard); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tool-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.tool-card__media { display: block; aspect-ratio: 16 / 9; background: var(--paper-deep); border-bottom: 2px solid var(--ink); }
.tool-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tool-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-card h3 { margin: 0; font-size: 1.45rem; }
.tool-card h3 a { color: inherit; text-decoration: none; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tool-card p { margin: 0; color: var(--ink-soft); flex: 1; }
.tool-card__price { align-self: flex-start; margin-top: 8px; font: 800 1.1rem/1 var(--display); background: var(--yellow); border: 2px solid var(--ink); border-radius: 7px; padding: 6px 10px; }

.tool-card--open { justify-content: center; gap: 8px; min-height: 240px; padding: 26px; background: transparent; border-style: dashed; box-shadow: none; color: var(--ink); text-decoration: none; }
.tool-card--open:hover { background: var(--card); color: var(--ink); }
.tool-card--open strong { font: 800 1.7rem/1.1 var(--display); letter-spacing: -.02em; }
.tool-card--open span { color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: 7px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.chips a:hover { background: var(--ink); color: var(--paper); }
.empty { background: var(--card); border: 2px dashed var(--ink); border-radius: 14px; padding: 34px; }

/* How it works */
.how { background: var(--paper-deep); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; list-style: none; padding: 0; margin: 30px 0 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 800 4.2rem/1 var(--display); color: var(--orange); letter-spacing: -.04em; margin-bottom: 10px; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Problem band */
.band { background: var(--green); color: #f4efe4; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 30px 56px; align-items: center; }
.band h2 { color: #fff; margin-bottom: .35em; }
.band p { margin: 0; font-size: 1.2rem; color: var(--green-soft); max-width: 34em; }

/* Tool page */
.product-head { border-bottom: 2px solid var(--ink); padding: 56px 0 64px; }
.product-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 56px; align-items: start; }
.product-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); background: var(--paper); box-shadow: 0 0 0 8px var(--paper); }
.product-head .lead { background: var(--paper); box-shadow: 0 0 0 8px var(--paper); color: var(--ink); }
.crumb { display: inline-block; font-size: .95rem; font-weight: 600; margin-bottom: 14px; background: var(--paper); box-shadow: 0 0 0 6px var(--paper); }
.crumb a { color: var(--ink-soft); }
.buy-box { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); padding: 26px; }
.buy-box__price { font: 800 3.1rem/1 var(--display); letter-spacing: -.03em; }
.buy-box__note { color: var(--ink-soft); font-size: .95rem; margin: 6px 0 18px; }
.buy-box .edd_purchase_submit_wrapper, .buy-box .edd-submit { width: 100%; text-align: center; }
.buy-box ul { list-style: none; padding: 0; margin: 20px 0 0; }
.buy-box li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid var(--line); font-size: 1rem; }
.buy-box li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.buy-box__key { margin: 14px 0 0; font-size: .95rem; color: var(--ink-soft); }

.entry { max-width: 100%; }
.entry h2 { margin-top: 0; }
.entry section { padding: 64px 0; border-bottom: 2px solid var(--ink); }
.entry section:last-child { border-bottom: 0; }
.entry .tinted { background: var(--paper-deep); }
.entry .shot { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--hard); overflow: hidden; margin: 0; }
.entry .shot figcaption { padding: 11px 14px; border-top: 2px solid var(--ink); font-size: .95rem; color: var(--ink-soft); }
.entry .hero-shot { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 34px; margin-top: 30px; }
.feature-grid h3 { margin-bottom: .3em; }
.feature-grid p { margin: 0; color: var(--ink-soft); }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.faq details { border-top: 2px solid var(--ink); padding: 15px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { font: 700 1.2rem/1.25 var(--display); cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); max-width: 46em; }

/* Forms */
.page-head { padding: 56px 0 8px; }
.form label { display: block; font-weight: 700; margin: 18px 0 6px; }
.form input[type=text], .form input[type=email], .form textarea, .form select,
.edd-blocks-form input.edd-input, .edd-blocks-form select.edd-select, .edd-blocks-form input[type=email], .edd-blocks-form input[type=text], #edd_checkout_form_wrap input.edd-input, #edd_checkout_form_wrap select.edd-select {
	width: 100%; padding: 11px 13px; min-height: 46px; height: auto; border: 2px solid var(--ink); border-radius: 9px; background: var(--card); color: var(--ink); font: inherit; line-height: 1.4;
}
.form textarea { min-height: 170px; }
.form .hp { position: absolute; left: -9999px; }
.form .form-check { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; }
.form .form-check input { margin-top: .3em; flex: none; width: 18px; height: 18px; accent-color: var(--orange); }
.form .form-check span { font-weight: 500; }
.form .hint { font-size: .95rem; color: var(--ink-soft); margin: 7px 0 0; }
.notice { padding: 13px 16px; border-radius: 10px; background: var(--green-soft); border: 2px solid var(--green); margin-bottom: 18px; }
.notice--error { background: #fbe0d6; border-color: var(--orange-dark); }

/* EDD on our paper */
.edd-blocks-form, .edd-blocks__row, #edd_checkout_cart, .edd-blocks-cart { color: var(--ink); }
.edd-blocks-form, .edd-blocks-form__cart, #edd_checkout_cart_form { background: transparent; }
.edd-blocks-form fieldset, .edd-blocks__cart, .edd-blocks-form .edd-blocks-cart__row { border-color: var(--line) !important; }
.edd-table, .myro-license-keys { width: 100%; border-collapse: collapse; }
.myro-license-keys { background: var(--card); border: 2px solid var(--ink); }
.myro-license-keys td { padding: 10px 12px; border-top: 1px solid var(--line); }
.myro-license-keys code { word-break: break-all; font-weight: 600; }

/* Legal pages and consents */
.page-content h2 { font-size: 1.5rem; margin: 1.6em 0 .4em; letter-spacing: -.015em; }
.page-content ul { padding-left: 1.2em; }
.page-content li { margin-bottom: .5em; }
.myro-consents { margin: 18px 0; display: grid; gap: 12px; }
.edd-blocks-form .myro-consents label, .myro-consents label { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500; }
.myro-consents input { margin-top: .35em; flex: none; width: 18px; height: 18px; accent-color: var(--orange); }

/* Footer */
.site-footer { background: var(--ink); color: #d9d3c6; padding: 44px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 22px; }
.site-footer__legal { margin: 12px 0 0; font-size: .92rem; }
.site-footer a { color: inherit; }
.site-footer .brand { color: #fff; font-size: 1.6rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 900px) {
	.hero { padding: 44px 0 56px; }
	.hero .wrap, .product-head .wrap, .band .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.steps, .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.shot-grid { grid-template-columns: minmax(0, 1fr); }
	.section { padding: 58px 0; }
	.entry section { padding: 46px 0; }
	.product-head { padding: 36px 0 44px; }
	.fix:nth-child(n) { transform: none; }
}
@media (max-width: 560px) {
	.wrap { padding: 0 16px; }
	.nav { gap: 12px; font-size: .95rem; }
	.nav .nav-optional { display: none; }
	.brand { font-size: 1.7rem; }
	.tool-grid { grid-template-columns: minmax(0, 1fr); }
	.actions .button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
