/* FMDigital Apps — a workshop-made app shop: dark ink hero with a live cutting-mat mockup, light cool paper below, app cards like tool tags. */
:root {
  --fm-ink: #0f1a17; --fm-ink-2: #18261f; --fm-paper: #f2f5f2; --fm-card: #ffffff;
  --fm-text: #14201c; --fm-muted: #586862; --fm-line: #d9e1dc; --fm-on-ink: #e9f0ec; --fm-on-ink-muted: #9fb2aa;
  --fm-mat: #24594a; --fm-orange: #e2531d; --fm-orange-dark: #c4431a; --fm-tan: #a85a1f; --fm-cream: #f3f6ef;
  --fm-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --fm-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --fm-wrap: 1180px;
}
.fm-body, body { background: var(--fm-paper); color: var(--fm-text); font-family: var(--fm-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.fm-wrap { max-width: var(--fm-wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
.fm a { color: inherit; }
.fm h1, .fm h2, .fm h3 { font-family: var(--fm-display); font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
.fm p { margin: 0; }
.fm-eyebrow { font: 500 12.5px var(--fm-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fm-muted); }

/* buttons */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--fm-body); padding: 12px 20px; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.fm-btn--primary { background: var(--fm-orange); color: #fff; }
.fm-btn--primary:hover { background: var(--fm-orange-dark); }
.fm-btn--ghost { border-color: currentColor; color: inherit; }
.fm-btn--ghost:hover { background: rgba(127,127,127,.12); }
.fm-btn:focus-visible { outline: 2px solid var(--fm-orange); outline-offset: 3px; }

/* header */
.fm-header { background: var(--fm-ink); color: var(--fm-on-ink); }
.fm-header__row { display: flex; align-items: center; gap: 24px; padding-block: 16px; flex-wrap: wrap; }
.fm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fm-on-ink); font: 800 20px var(--fm-display); font-stretch: 115%; letter-spacing: -0.01em; }
.fm-logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--fm-mat); display: grid; place-items: center; position: relative; overflow: hidden; }
.fm-logo__mark::before { content: ""; position: absolute; inset: 7px; border: 2.5px solid var(--fm-cream); border-radius: 4px; }
.fm-logo__mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--fm-orange); top: 4px; right: 4px; }
.fm-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; align-items: center; font-size: 15px; }
.fm-nav a { color: var(--fm-on-ink-muted); text-decoration: none; font-weight: 500; }
.fm-nav a:hover { color: var(--fm-on-ink); }

/* hero */
.fm-hero { background: var(--fm-ink); color: var(--fm-on-ink); padding-block: 40px 72px; overflow: hidden; }
.fm-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.fm-hero .fm-eyebrow { color: var(--fm-on-ink-muted); }
.fm-hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; font-weight: 800; margin-top: 14px; }
.fm-hero h1 em { font-style: normal; color: var(--fm-orange); }
.fm-hero__lead { font-size: 18.5px; color: var(--fm-on-ink-muted); max-width: 33em; margin-top: 20px; }
.fm-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fm-hero__facts { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 34px; font: 500 13px var(--fm-mono); color: var(--fm-on-ink-muted); padding: 0; list-style: none; }
.fm-hero__facts li::before { content: "●"; color: var(--fm-orange); font-size: 9px; vertical-align: 2px; margin-right: 8px; }

/* mockup window */
.fm-window { background: #1d2a25; border-radius: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; transform: rotate(-1.2deg); }
.fm-window__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #24332d; font: 500 12px var(--fm-mono); color: var(--fm-on-ink-muted); }
.fm-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4b44; display: inline-block; }
.fm-window__bar span { margin-left: 10px; }
.fm-mat { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background-color: var(--fm-mat);
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; background-position: -1px -1px; }
.fm-mat svg { position: absolute; inset: 10% 9%; width: 82%; height: 80%; overflow: visible; }
.fm-mat__badge { position: absolute; left: 14px; bottom: 14px; background: rgba(8,20,16,.72); color: #c9f2dd; font: 500 12.5px var(--fm-mono); padding: 6px 10px; border-radius: 7px; display: flex; gap: 8px; align-items: center; }
.fm-mat__badge b { width: 8px; height: 8px; border-radius: 50%; background: #4cc993; display: inline-block; }
.fm-mat__tag { position: absolute; right: 14px; top: 14px; background: var(--fm-orange); color: #fff; font: 600 12px var(--fm-mono); padding: 5px 9px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .fm-cut { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: fm-cut 2.6s cubic-bezier(.6,.1,.3,1) .3s forwards; }
  @keyframes fm-cut { to { stroke-dashoffset: 0; } }
}

/* sections */
.fm-section { padding-block: 76px; }
.fm-section__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; max-width: 40em; }
.fm-section__head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1.08; }
.fm-section__head p { color: var(--fm-muted); font-size: 17px; }

/* app cards */
.fm-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.fm-app { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.fm-app__top { display: flex; gap: 16px; align-items: center; }
.fm-app__icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 6px 16px rgba(15,26,23,.18); }
.fm-app__name { font: 800 22px/1.15 var(--fm-display); font-stretch: 108%; }
.fm-app__cat { font: 500 12px var(--fm-mono); color: var(--fm-muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.fm-app__pitch { font-size: 16px; }
.fm-app ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--fm-muted); }
.fm-app li { padding-left: 22px; position: relative; }
.fm-app li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--fm-mat); border-bottom: 2px solid var(--fm-mat); transform: rotate(-45deg); }
.fm-app__foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--fm-line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-price { font: 800 26px var(--fm-display); font-variant-numeric: tabular-nums; }
.fm-price small { font: 500 12.5px var(--fm-mono); color: var(--fm-muted); margin-left: 4px; }
.fm-app__foot .fm-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.fm-app__foot .fm-btn { padding: 10px 15px; font-size: 14.5px; }
.fm-app--next { background: transparent; border: 2px dashed var(--fm-line); justify-content: center; }
.fm-app--next .fm-app__name { color: var(--fm-muted); }

/* steps */
.fm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: fm; }
.fm-steps li { counter-increment: fm; background: var(--fm-card); border-radius: 16px; padding: 22px; border: 1px solid var(--fm-line); display: flex; flex-direction: column; gap: 8px; }
.fm-steps li::before { content: counter(fm); font: 800 15px var(--fm-display); width: 34px; height: 34px; border-radius: 50%; background: var(--fm-ink); color: var(--fm-on-ink); display: grid; place-items: center; margin-bottom: 6px; }
.fm-steps h3 { font-size: 20px; font-weight: 800; }
.fm-steps p { color: var(--fm-muted); font-size: 15px; }

/* promise band */
.fm-band { background: var(--fm-mat); color: var(--fm-cream); border-radius: 22px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; }
.fm-band h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.08; }
.fm-band dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 0; }
.fm-band dt { font: 700 17px var(--fm-display); font-stretch: 108%; }
.fm-band dd { margin: 4px 0 0; color: #cfe1d8; font-size: 14.5px; }

/* faq */
.fm-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.fm-faq details { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 12px; padding: 4px 20px; }
.fm-faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after { content: "+"; font: 600 22px/1 var(--fm-display); color: var(--fm-orange); }
.fm-faq details[open] summary::after { content: "–"; }
.fm-faq details p { color: var(--fm-muted); padding-bottom: 16px; }
.fm-faq summary:focus-visible { outline: 2px solid var(--fm-orange); outline-offset: 2px; border-radius: 6px; }

/* footer */
.fm-footer { background: var(--fm-ink); color: var(--fm-on-ink-muted); padding-block: 44px; font-size: 14.5px; margin-top: 40px; }
.fm-footer__row { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.fm-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.fm-footer a { color: var(--fm-on-ink-muted); text-decoration: none; }
.fm-footer a:hover { color: var(--fm-on-ink); }
.fm-footer small { display: block; margin-top: 10px; font-size: 13px; }

@media (max-width: 900px) {
  .fm-hero__grid, .fm-band { grid-template-columns: minmax(0, 1fr); }
  .fm-window { transform: none; }
  .fm-steps { grid-template-columns: minmax(0, 1fr); }
  .fm-band { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .fm-nav { gap: 16px; font-size: 14px; margin-left: 0; width: 100%; }
  .fm-band dl { grid-template-columns: minmax(0, 1fr); }
  .fm-section { padding-block: 56px; }
  .fm-app__foot .fm-btns { margin-left: 0; width: 100%; }
  .fm-app__foot .fm-btns .fm-btn { flex: 1; }
}

/* WooCommerce pages in the theme's style */
.woocommerce .price, .wc-block-components-product-price { font-family: var(--fm-display); font-weight: 800; }
.wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button, .wp-block-button__link { background: var(--fm-orange) !important; color: #fff !important; border-radius: 10px !important; font-weight: 600 !important; border: 0 !important; }
.wc-block-components-button:not(.is-link):hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wp-block-button__link:hover { background: var(--fm-orange-dark) !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--fm-ink); color: var(--fm-on-ink); }
.fm-page { padding-block: 48px 72px; }
.fm-page h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 24px; }

/* WordPress layout fixes: no gaps between full-width bands, header items on one line, cart icon visible on ink */
.wp-site-blocks > *, .wp-site-blocks > * > .fm-header, .wp-site-blocks .fm-footer { margin-block-start: 0; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-top: 0; }
.fm-header__row > * { margin-block: 0 !important; }
.fm-header .wc-block-mini-cart__button { color: var(--fm-on-ink); padding: 6px 8px; }
.fm-header .wc-block-mini-cart__badge { background: var(--fm-orange); color: #fff; border: 0; }
.fm-header .wc-block-mini-cart__amount { display: none; }

/* Blog */
.fm-blog__title{font-size:clamp(32px,5vw,48px);line-height:1.05;margin:6px 0 10px}
.fm-blog__lead{color:#5a6b64;max-width:640px;margin:0 0 28px}
.fm-blog__grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;padding:0;list-style:none}
.fm-blog__grid>li{background:#fff;border:1px solid #d2dcd6;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;padding-bottom:16px;margin:0}
.fm-blog__grid>li>*{margin-left:16px;margin-right:16px}
.fm-blog__grid .wp-block-post-featured-image{margin:0 0 12px!important}
.fm-blog__grid .wp-block-post-featured-image img{display:block;width:100%;object-fit:cover;background:#f4ead6}
.fm-blog__date{font-size:12.5px;color:#5a6b64;text-transform:uppercase;letter-spacing:.06em}
.fm-blog__h{font-size:21px!important;line-height:1.2;margin:4px 16px 6px!important}
.fm-blog__h a{color:inherit;text-decoration:none}
.fm-blog__h a:hover{text-decoration:underline}
.fm-blog__grid .wp-block-post-excerpt{font-size:15px;color:#3d4d47}
.fm-post .wp-block-post-featured-image img{border-radius:12px;object-fit:cover;background:#f4ead6}
.fm-post .wp-block-post-content{font-size:17px;line-height:1.65}
.fm-post .wp-block-post-content h2{font-size:26px;margin-top:1.6em}
.fm-post__cta{margin:36px 0 0;padding:18px 20px;border-radius:12px;background:#16241f;color:#eef2ef}
.fm-post__cta a{color:#ff9a6b}
.fm-tip{background:#eef2ef;border-left:4px solid #e2531d;padding:12px 16px;border-radius:6px}

.fm-post .wp-block-post-content>*+*{margin-top:1em}
.fm-post .wp-block-post-content>h2{margin-top:1.6em;margin-bottom:.2em}
.fm-post .wp-block-post-content li{margin:.3em 0}
.fm-post .wp-block-post-featured-image img,.fm-blog__grid .wp-block-post-featured-image img{object-position:top center}
