/*
Theme Name: Softminal
Description: Block theme for softminal.com. It only handles appearance; everything about licences and money is in the Softminal Platform plugin.
Version: 3.3.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: softminal
*/

/* ---- Dark mode: the same colour slugs with dark values, so every block follows ---- */
html.dark {
  color-scheme: dark;
  --wp--preset--color--base: #0E0F1F;
  --wp--preset--color--surface: #181A30;
  --wp--preset--color--contrast: #F1F2FF;
  --wp--preset--color--body: #C9CBE6;
  --wp--preset--color--muted: #A3A6C9;
  --wp--preset--color--line: #2C2E4D;
  --wp--preset--color--primary: #A5A8FB;
  --wp--preset--color--primary-strong: #C3C5FF;
  --wp--preset--color--tint: #25275A;
  --wp--preset--color--band: #070814;
}
html.dark .wp-element-button,
html.dark .wp-block-button__link,
html.dark .smpl-button { background-color: #4B4EEA; color: #FFFFFF; }
html.dark .wp-element-button:hover,
html.dark .wp-block-button__link:hover,
html.dark .smpl-button:hover { background-color: #5D60F0; color: #FFFFFF; }
html.dark .sm-logo img { filter: brightness(0) invert(1); }

body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3) { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wp--preset--color--tint); }

/* ---- Page gutters and spacing ----
   Root padding only reaches WordPress's constrained layouts, so these containers carry their own.
   WordPress also adds a block gap to every block after the first, which would misalign a grid's first
   item and leave strips of page colour between full-width bands. */
.sm-header__inner, .sm-footer__inner, .sm-page, .sm-article, .sm-center {
  box-sizing: border-box;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.sm-header__inner, .sm-footer__inner, .sm-page { max-width: 1320px !important; }
.sm-article, .sm-center { max-width: 800px; }
.wp-site-blocks > *, main > .wp-block-group,
:is(.sm-grid, .sm-footer__inner, .sm-header__inner, .sm-header__actions, .sm-header) > * { margin-block: 0 !important; }

/* ---- Black Friday bar, above the header ---- */
.sm-promo { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 1.25rem; padding: 0.7rem 1rem; font-size: 0.875rem; color: #FFFFFF; background: radial-gradient(ellipse 40% 140% at 50% 120%, rgba(232, 116, 28, 0.22), transparent 70%), #0B0B12; text-align: center; }
.sm-promo__text, .sm-promo__link { position: relative; z-index: 1; }
.sm-promo__text { margin: 0; }
/* Halloween decoration: moon, bats and pumpkins at both ends, behind the text. */
.sm-promo__art { position: absolute; width: 0; height: 0; }
.sm-promo__deco { position: absolute; top: 0; bottom: 0; width: min(30%, 360px); pointer-events: none; z-index: 0; }
.sm-promo__deco--left { left: 0; }
.sm-promo__deco--right { right: 0; }
.sm-promo__moon { position: absolute; left: 7%; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6D6, #FFDF85 60%, #F2C14E); box-shadow: 0 0 14px 4px rgba(255, 223, 133, 0.45), 0 0 40px 10px rgba(255, 223, 133, 0.15); }
.sm-promo__moon::after { content: ""; position: absolute; left: 55%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(214, 170, 70, 0.55); box-shadow: -9px -6px 0 -1px rgba(214, 170, 70, 0.45), -3px 5px 0 -1.5px rgba(214, 170, 70, 0.4); }
.sm-promo__bat { position: absolute; width: 36px; height: 17px; fill: #8F7CE0; opacity: 0.85; animation: sm-bat 3.2s ease-in-out infinite alternate; }
.sm-promo__bat--1 { left: 19%; top: 10%; }
.sm-promo__bat--2 { left: 34%; top: 48%; width: 24px; height: 12px; opacity: 0.6; animation-delay: -1.2s; }
.sm-promo__bat--3 { right: 34%; top: 14%; width: 28px; height: 14px; opacity: 0.7; animation-delay: -0.6s; }
.sm-promo__bat--4 { right: 6%; top: 12%; animation-delay: -2s; }
.sm-promo__pumpkin { position: absolute; bottom: -3px; width: 30px; height: 27px; }
.sm-promo__pumpkin--1 { left: 50%; width: 24px; height: 22px; }
.sm-promo__pumpkin--2 { right: 18%; }
.sm-promo__pumpkin--3 { right: 24%; width: 20px; height: 18px; }
@keyframes sm-bat { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-4px) scaleY(0.7); } }
@media (prefers-reduced-motion: reduce) { .sm-promo__bat { animation: none; } }
@media (max-width: 760px) { .sm-promo__bat--2, .sm-promo__bat--3, .sm-promo__pumpkin--1, .sm-promo__pumpkin--3 { display: none; } .sm-promo__deco { width: 22%; } }
.sm-promo__text strong { color: #FFD24A; }
.sm-promo__code { margin-left: 0.25rem; padding: 0.15rem 0.55rem; font: 600 0.8125rem/1.4 var(--wp--preset--font-family--mono, monospace); letter-spacing: 0.04em; color: #FFFFFF; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.55); border-radius: 6px; cursor: pointer; }
.sm-promo__code:hover, .sm-promo__code:focus-visible { border-color: #FFD24A; color: #FFD24A; }
.sm-promo__code.is-copied::after { content: " copied"; font-weight: 400; }
.sm-promo__link { font-weight: 600; color: #FFFFFF !important; text-decoration: underline; text-underline-offset: 3px; }
.sm-promo__link:hover { color: #FFD24A !important; }

/* ---- Header ---- */
.sm-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0);
  z-index: 50;
  background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.sm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1240px; min-height: 72px; margin: 0 auto; }
.sm-logo { margin: 0; flex: none; }
.sm-logo a { display: block; }
.sm-logo img { display: block; width: auto; height: 34px; }
.sm-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.sm-header .wp-block-navigation a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.sm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
/* The page you are on: indigo text with a short bar under it. */
.sm-header .wp-block-navigation__container > .current-menu-item > a,
.sm-header .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content { position: relative; color: var(--wp--preset--color--primary); }
@media (min-width: 601px) {
  .sm-header .wp-block-navigation__container > .current-menu-item > a::after,
  .sm-header .wp-block-navigation__container > .current-menu-ancestor > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.45rem; height: 2px; background: currentColor; border-radius: 2px; }
}
.sm-header .sm-mega__item.current-menu-item > a { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); }
.sm-header .wp-block-button__link { padding: 0.55rem 1rem; font-size: 0.9375rem; color: var(--wp--preset--color--base) !important; background: var(--wp--preset--color--contrast) !important; }
html.dark .sm-header .wp-block-button__link { color: #FFFFFF !important; background: #4B4EEA !important; }
html.dark .sm-header .wp-block-button__link:hover { background: #5D60F0 !important; }
.sm-header .wp-block-buttons { margin: 0; }
.sm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--wp--preset--color--contrast);
  background: transparent;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 10px;
  cursor: pointer;
}
.sm-theme-toggle:hover { background: var(--wp--preset--color--tint); }
/* Account: the same outlined square as the theme switch. */
.sm-account-icon { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; color: var(--wp--preset--color--contrast); background: transparent; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; transition: background-color 0.18s ease; }
.sm-account-icon:hover { color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--tint); }
.sm-account-icon:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
/* Signed in: the user's initial (or picture) opens a small menu. */
.sm-user { position: relative; }
.sm-user__button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; overflow: hidden; font-size: 0.9375rem; font-weight: 700; color: var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); border: 1px solid var(--wp--preset--color--line); border-radius: 50%; cursor: pointer; list-style: none; }
.sm-user__button::-webkit-details-marker { display: none; }
.sm-user__button img { width: 100%; height: 100%; object-fit: cover; }
.sm-user__button:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.sm-user[open] .sm-user__button { border-color: var(--wp--preset--color--primary); }
.sm-user__menu { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 100; display: grid; gap: 0.15rem; width: 240px; padding: 0.5rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; box-shadow: 0 20px 44px -18px rgba(21, 22, 59, 0.3); }
.sm-user__who { display: grid; gap: 0.1rem; margin: 0 0 0.35rem; padding: 0.5rem 0.65rem 0.75rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.sm-user__who strong { font-size: 0.9375rem; color: var(--wp--preset--color--contrast); }
.sm-user__who span { overflow: hidden; font-size: 0.8125rem; color: var(--wp--preset--color--muted); text-overflow: ellipsis; white-space: nowrap; }
.sm-user__menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.65rem; font-size: 0.9375rem; font-weight: 500; color: var(--wp--preset--color--contrast); text-decoration: none; border-radius: 9px; }
.sm-user__menu a:hover, .sm-user__menu a:focus-visible { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); outline: none; }
.sm-user__menu svg { flex: none; color: var(--wp--preset--color--muted); }
.sm-user__menu a:hover svg { color: currentColor; }
.sm-theme-toggle__sun, html.dark .sm-theme-toggle__moon { display: none; }
html.dark .sm-theme-toggle__sun { display: block; }
@media (max-width: 600px) {
  /* A blur makes the header the frame for anything fixed inside it, which traps the full-screen menu. */
  .sm-header { background: var(--wp--preset--color--base); backdrop-filter: none; }
  .sm-header__inner { gap: 0.5rem; }
  .sm-header .wp-block-navigation { margin-left: auto; }
  .sm-header .sm-header__account { display: none; }
}

/* ---- Footer ---- */
.sm-footer { margin-top: var(--wp--preset--spacing--60); background: var(--wp--preset--color--band); color: #DADBF6; }
.sm-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 2.5rem; max-width: 1240px; margin: 0 auto; padding-block: var(--wp--preset--spacing--50); }
.sm-footer__brand img { filter: brightness(0) invert(1); display: block; height: 32px; width: auto; }
.sm-footer h2 { margin: 0 0 0.75rem; font-family: inherit; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: #FFFFFF; }
.sm-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.sm-footer a { color: #DADBF6; text-decoration: none; }
.sm-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.sm-footer p { margin: 0.75rem 0 0; font-size: 0.9375rem; }

/* ---- Page frame ---- */
.sm-page { max-width: 1240px; margin: 0 auto; padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30); }
.sm-page > .wp-block-post-title { margin: 0 0 var(--wp--preset--spacing--50); }
.sm-page .wp-block-post-content > :where(p, ul, ol, h2, h3, h4, blockquote) { max-width: 68ch; }
.sm-article { max-width: 720px; margin: 0 auto; padding-block: var(--wp--preset--spacing--50); }
.sm-center { max-width: 720px; margin: 0 auto; padding-block: var(--wp--preset--spacing--60); text-align: center; }
.sm-center h1 { font-size: var(--wp--preset--font-size--hero); }

/* ---- Home: the hero is the catalogue, on light paper ("Daylight Ink", chosen 2026-11-08); dark mode uses the site's dark palette ---- */
.sm-desc { font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.sm-index { --sm-field: #FBFAF6; --sm-ink: #12132B; --sm-soft: #5A5C78; --sm-hot: #3F42E4; --sm-rule: #E4E2DA; --sm-row: #EFEEFF; --sm-tile: #FFFFFF; --sm-stage: #FFFFFF; --sm-dot: #DCD9CE; padding: 0; background: var(--sm-field); border-bottom: 1px solid var(--sm-rule); }
html.dark .sm-index { --sm-field: #181A30; --sm-ink: #F1F2FF; --sm-soft: #A3A6C9; --sm-hot: #A5A8FB; --sm-rule: #2C2E4D; --sm-row: #25275A; --sm-tile: #FFFFFF; --sm-stage: #0E0F1F; --sm-dot: #2C2E4D; }
.sm-index__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 4vw, 3.5rem); align-items: stretch; box-sizing: border-box; max-width: 1320px; margin: 0 auto; padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem); color: var(--sm-ink); }
.sm-index__list > * { margin-block: 0 !important; }
.sm-index__inner > * { margin-block: 0 !important; }
.sm-index__head { display: grid; gap: 0.75rem; }
.sm-index__head > * { margin-block: 0 !important; }
.sm-index h1 { font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--sm-ink); }
.sm-index h1 em { font-style: normal; color: var(--sm-hot); }
.sm-index .sm-desc { max-width: 52ch; font-size: 0.875rem; color: var(--sm-soft); }
/* The plugins as logo frames scattered in a box, joined by faint dashed lines. The one on the stage is lit. */
.sm-jobs { position: relative; height: clamp(260px, 26vw, 320px); margin: clamp(1.5rem, 3vw, 2.25rem) 0 0 !important; padding: 0; list-style: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M16 30 L58 18 L86 58 L38 76 Z M16 30 L38 76 M58 18 L38 76' fill='none' stroke='%23D4D1C6' stroke-width='1' stroke-dasharray='4 5' vector-effect='non-scaling-stroke'/></svg>") center / 100% 100% no-repeat; }
html.dark .sm-jobs { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M16 30 L58 18 L86 58 L38 76 Z M16 30 L38 76 M58 18 L38 76' fill='none' stroke='%232C2E4D' stroke-width='1' stroke-dasharray='4 5' vector-effect='non-scaling-stroke'/></svg>"); }
.sm-jobs li { position: absolute; left: var(--x); top: var(--y); margin: 0; transform: translate(-50%, -50%); animation: sm-float var(--t, 6s) ease-in-out infinite alternate; }
.sm-jobs li:nth-child(1) { --x: 16%; --y: 30%; --t: 6.5s; }
.sm-jobs li:nth-child(2) { --x: 58%; --y: 18%; --t: 7.5s; animation-delay: -2s; }
.sm-jobs li:nth-child(3) { --x: 38%; --y: 76%; --t: 6s; animation-delay: -4s; }
.sm-jobs li:nth-child(4) { --x: 86%; --y: 58%; --t: 8s; animation-delay: -1s; }
@keyframes sm-float { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, calc(-50% - 8px)); } }
.sm-jobs a { position: relative; display: block; text-decoration: none; outline: none; }
.sm-jobs img { display: block; width: 64px; height: 64px; padding: 8px; box-sizing: border-box; object-fit: contain; background: var(--sm-tile); border: 1px solid var(--sm-rule); border-radius: 18px; box-shadow: 0 10px 24px -16px rgba(21, 22, 59, 0.4); opacity: 0.72; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.sm-jobs a:hover img, .sm-jobs a:focus-visible img, .sm-jobs:not(:has(li:hover)) li.is-shown img { opacity: 1; transform: scale(1.22); border: 2px solid var(--sm-hot); box-shadow: 0 0 0 6px var(--sm-row), 0 18px 34px -16px rgba(63, 66, 228, 0.55); }
/* Name and job under the lit frame only. */
.sm-jobs__label { position: absolute; left: 50%; top: calc(100% + 20px); display: grid; gap: 0.05rem; width: max-content; max-width: 220px; padding: 0.45rem 0.75rem; text-align: center; white-space: nowrap; background: var(--sm-tile); border: 1px solid var(--sm-rule); border-radius: 10px; box-shadow: 0 10px 24px -16px rgba(21, 22, 59, 0.4); opacity: 0; transform: translate(-50%, -6px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.sm-jobs a:hover .sm-jobs__label, .sm-jobs a:focus-visible .sm-jobs__label, .sm-jobs:not(:has(li:hover)) li.is-shown .sm-jobs__label { opacity: 1; transform: translate(-50%, 0); }
.sm-jobs li:hover, .sm-jobs li.is-shown, .sm-jobs li:focus-within { z-index: 2; }
.sm-jobs__name { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sm-hot); }
.sm-jobs__job { font-family: var(--wp--preset--font-family--display); font-size: 0.9375rem; font-weight: 700; color: var(--sm-ink); }
html.dark .sm-jobs__label { background: #12142A; }
@media (prefers-reduced-motion: reduce) { .sm-jobs li { animation: none; } }

/* The hero stage: plugin feature images stacked, one shown at a time. */
.sm-index__inner { position: relative; overflow: hidden; isolation: isolate; }
.sm-stage { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; overflow: hidden; background-color: var(--sm-stage); background-image: radial-gradient(var(--sm-dot) 1px, transparent 1.2px); background-size: 22px 22px; border: 1px solid var(--sm-rule); border-radius: 16px; }
.sm-stage__still { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 88px); gap: 1.25rem; place-content: center; }
.sm-stage__still img { display: block; width: 88px; height: 88px; object-fit: contain; background: var(--sm-tile); border-radius: 20px; box-shadow: 0 0 0 1px var(--sm-rule); }
.sm-stage.has-shots .sm-stage__still { display: none; }
/* Each plugin's feature image; hero.js cross-fades between them. Without JS the logo grid shows. */
.sm-stage__shots { display: none; }
.sm-stage.has-shots .sm-stage__shots { display: block; position: absolute; inset: 0; pointer-events: none; }
.sm-stage__shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 0.9s ease, transform 1.2s ease; }
.sm-stage__shots img.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sm-stage__shots img { transform: none; transition: opacity 0.2s linear; } }

/* ---- One section per plugin, each with a small moving example ---- */
.sm-kicker { margin: 0 0 0.6rem !important; font-size: 0.8125rem; font-weight: 600; color: var(--wp--preset--color--primary); }
.sm-show { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem clamp(3rem, 7vw, 6rem); align-items: center; box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: var(--wp--preset--spacing--60) clamp(1.25rem, 4vw, 2.5rem) 0; }
.sm-show > * { margin-block: 0 !important; }
.sm-show--flip > :first-child { order: 2; }
.sm-show h2 { margin: 0 0 0.75rem; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; }
.sm-show .sm-desc { max-width: 52ch; margin: 0; }
.sm-show__link { margin: 1rem 0 0 !important; font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.sm-show__link a { font-weight: 700; }
.sm-demo { margin: 0; padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; }
.sm-demo figcaption { margin-bottom: 1rem; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }

/* B2B Suite: a price tag that changes for each shopper. */
.sm-tagdemo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; perspective: 800px; }
.sm-tag { position: relative; display: grid; gap: 0.35rem; min-height: 116px; padding: 1.25rem 1.5rem 1.25rem 3.75rem; color: #FFFFFF; background: var(--wp--preset--color--primary); clip-path: polygon(2.75rem 0, 100% 0, 100% 100%, 2.75rem 100%, 0 50%); border-radius: 6px; transform-style: preserve-3d; }
html.dark .sm-tag { background: #4B4EEA; }
.sm-tag::before { content: ""; position: absolute; left: 1.6rem; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: var(--wp--preset--color--surface); border-radius: 50%; }
.sm-tag__who { font-size: 0.8125rem; opacity: 0.85; }
.sm-tag__price { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; }
.sm-tag__groups { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.sm-tag__groups li { padding: 0.35rem 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--wp--preset--color--muted); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.sm-tag__groups li.is-on { color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); border-color: transparent; }
.sm-approve { display: flex; align-items: center; gap: 0.6rem; margin: 1.25rem 0 0; padding-top: 1rem; font-size: 0.875rem; border-top: 1px solid var(--wp--preset--color--line); }
.sm-approve strong { margin-left: auto; color: #0F6B4F; }
html.dark .sm-approve strong { color: #6EE7B7; }
.sm-approve__dot { width: 9px; height: 9px; background: #12A26E; border-radius: 50%; box-shadow: 0 0 0 4px rgba(18, 162, 110, 0.18); }
.sm-approve.is-pending strong { color: var(--wp--preset--color--muted); }
.sm-approve.is-pending .sm-approve__dot { background: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px rgba(245, 183, 0, 0.2); }

/* ImageCraft: the photo stays sharp while its file gets smaller. */
.sm-photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.sm-photo__sky { fill: #E7E8FD; }
.sm-photo__sun { fill: var(--wp--preset--color--accent); }
.sm-photo__back { fill: #7C7FF0; }
.sm-photo__front { fill: #3F42E4; }
html.dark .sm-photo__sky { fill: #25275A; }
.sm-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.sm-file__type { padding: 0.15rem 0.5rem; font-size: 0.75rem; font-weight: 700; color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); border-radius: 6px; }
.sm-file__track { height: 10px; background: var(--wp--preset--color--line); border-radius: 5px; overflow: hidden; }
.sm-file__fill { display: block; width: 13%; height: 100%; background: var(--wp--preset--color--primary); border-radius: 5px; }
.sm-file strong { min-width: 4.5em; font-family: var(--wp--preset--font-family--display); text-align: right; font-variant-numeric: tabular-nums; }
.sm-alt { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--line); font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.sm-alt code { font: inherit; font-weight: 600; color: var(--wp--preset--color--contrast); }

/* Softminal Cache: two loads of the same page. */
.sm-race { display: grid; gap: 1.25rem; }
.sm-race__lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 1rem; align-items: center; font-size: 0.875rem; }
.sm-race__track { grid-column: 1 / -1; grid-row: 2; height: 14px; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 7px; overflow: hidden; }
.sm-race__fill { display: block; width: 100%; height: 100%; background: var(--wp--preset--color--muted); border-radius: 7px; }
.sm-race__lane--fast .sm-race__fill { background: var(--wp--preset--color--primary); }
.sm-race__lane em { font-style: normal; font-weight: 700; color: #0F6B4F; }
html.dark .sm-race__lane em { color: #6EE7B7; }
.sm-race__lane--fast span:first-child { font-weight: 600; color: var(--wp--preset--color--contrast); }

/* Cart Reward: a cart driving toward free shipping. */
.sm-reward__note { margin: 0 0 1rem; font-weight: 700; color: var(--wp--preset--color--contrast); }
.sm-reward { position: relative; height: 48px; }
.sm-reward__track { position: absolute; left: 0; right: 40px; top: 50%; height: 10px; margin-top: -5px; background: var(--wp--preset--color--line); border-radius: 5px; overflow: hidden; }
.sm-reward__fill { display: block; width: 100%; height: 100%; background: var(--wp--preset--color--accent); border-radius: 5px; }
.sm-reward__cart { position: absolute; top: 50%; left: calc(100% - 40px - 34px); margin-top: -26px; color: var(--wp--preset--color--contrast); }
.sm-reward__goal { position: absolute; right: 0; top: 50%; margin-top: -15px; color: var(--wp--preset--color--primary); }
.sm-reward__scale { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }

/* ---- Three steps, joined by a line that draws itself ---- */
/* ---- Plugins page: every plugin and where to get it; ImageCraft plans below ---- */
.sm-catalog > * { margin-block: 0; }
.sm-catalog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.sm-plugin { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; }
.sm-plugin__top { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.4rem; }
.sm-plugin__top img { flex: none; width: 52px; height: 52px; object-fit: contain; background: #FFFFFF; border-radius: 13px; box-shadow: 0 0 0 1px var(--wp--preset--color--line); }
.sm-plugin h2 { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.sm-plugin__plan { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.sm-plugin__job { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.0625rem; font-weight: 700; color: var(--wp--preset--color--contrast); }
.sm-plugin__what { flex: 1; margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.sm-plugin__link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.6rem; font-size: 0.9375rem; font-weight: 600; color: var(--wp--preset--color--primary); text-decoration: none; }
.sm-plugin__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sm-catalog__plans { padding-top: var(--wp--preset--spacing--60); scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); }
/* Plans under their own heading: no second title or outer card, and one plan does not stretch. */
:is(.sm-catalog__plans, .sm-pp) .smpl-card { padding: 0; background: none; border: 0; box-shadow: none; }
:is(.sm-catalog__plans, .sm-pp) .smpl-card > h2 { display: none; }
:is(.sm-catalog__plans, .sm-pp) .smpl-tiers { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
:is(.sm-catalog__plans, .sm-pp) .smpl-tier { background: var(--wp--preset--color--surface); }
.sm-catalog__plans > * { margin-block: 0 !important; }
.sm-catalog__plans > h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.sm-catalog__plans > .sm-desc { margin: 0.5rem 0 1.5rem !important; }

/* ---- Product page (ImageCraft): hero, features, plans, free vs pro. Content is editable blocks. ---- */
.sm-product { box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem) var(--wp--preset--spacing--30); }
.sm-product .wp-block-post-content > * { margin-block: 0; }
.sm-ph { padding: var(--wp--preset--spacing--50) clamp(1.5rem, 4vw, 3.5rem); background: #FBFAF6; border-radius: 20px; box-shadow: inset 0 0 0 1px #E4E2DA; }
html.dark .sm-ph { background: var(--wp--preset--color--surface); box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); }
.sm-ph__text { display: grid; gap: 1rem; max-width: 760px; }
.sm-ph__text > * { margin-block: 0 !important; }
.sm-ph__logo img { display: block; width: 64px; height: 64px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 0 0 1px var(--wp--preset--color--line); }
.sm-ph h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.sm-ph .sm-lead { margin: 0 !important; }
.sm-ph .wp-block-buttons { gap: 0.75rem; }
.sm-ph__meta { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.sm-pf, .sm-pp, .sm-pc { padding-top: var(--wp--preset--spacing--60); scroll-margin-top: 5rem; }
.sm-pf > *, .sm-pp > *, .sm-pc > * { margin-block: 0 !important; }
.sm-pf > h2, .sm-pp > h2, .sm-pc > h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); text-wrap: balance; }
.sm-pf__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.75rem clamp(2rem, 4vw, 3.5rem); margin-top: 2rem !important; }
.sm-pf__grid > * { margin: 0 !important; }
.sm-pf__item { padding-top: 1rem; border-top: 2px solid var(--wp--preset--color--primary); }
.sm-pf__item > * { margin-block: 0 !important; }
.sm-pf__item h3 { margin-bottom: 0.4rem !important; font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.sm-pf__item p { font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.sm-pp > .sm-desc { margin: 0.5rem 0 1.5rem !important; }
.sm-pp__trust { margin-top: 1rem !important; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.sm-pc__table { margin-top: 1.5rem !important; overflow-x: auto; }
.sm-pc__table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.sm-pc__table th, .sm-pc__table td { padding: 0.8rem 1rem; text-align: left; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.sm-pc__table th { font-size: 0.8125rem; font-weight: 700; color: var(--wp--preset--color--muted); }
.sm-pc__table th:not(:first-child), .sm-pc__table td:not(:first-child) { width: 22%; }
.sm-pc__table td:last-child { font-weight: 600; color: var(--wp--preset--color--contrast); }

/* ---- Legal pages: header band, "On this page" list beside numbered sections (layout built in functions.php) ---- */
.sm-legal { --sm-gutter: clamp(1.25rem, 4vw, 2.5rem); padding-bottom: var(--wp--preset--spacing--60); }
.sm-legal__head { display: grid; gap: 0.9rem; padding: var(--wp--preset--spacing--60) max(var(--sm-gutter), calc((100% - 1240px) / 2 + var(--sm-gutter))) var(--wp--preset--spacing--50); background: #FBFAF6; border-bottom: 1px solid #E4E2DA; }
html.dark .sm-legal__head { background: var(--wp--preset--color--surface); border-bottom-color: var(--wp--preset--color--line); }
.sm-legal .sm-legal__head > * { max-width: 62ch; margin: 0 !important; }
.sm-legal__kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--primary); }
.sm-legal__title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; }
.sm-legal__head .sm-lead { font-size: 1.0625rem; }
.sm-legal__meta { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.sm-legal__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: var(--wp--preset--spacing--50) var(--sm-gutter) 0; }
.sm-legal__content { max-width: 72ch; }
.sm-legal__content > :first-child { margin-top: 0 !important; }
.sm-legal__content h2 { display: flex; gap: 0.85rem; align-items: baseline; margin: 3rem 0 1rem !important; padding-top: 2.25rem; font-size: clamp(1.35rem, 2.2vw, 1.6rem); border-top: 1px solid var(--wp--preset--color--line); scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); }
.sm-legal__content > h2:first-child { padding-top: 0; border-top: 0; }
.sm-legal__content p, .sm-legal__content li { line-height: 1.7; }
.sm-legal__no { flex: none; font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--wp--preset--color--primary); }
.sm-legal__toc { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); max-height: calc(100vh - 128px); overflow-y: auto; }
.sm-legal__toc summary { display: none; }
.sm-legal__toc ol { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--wp--preset--color--line); }
.sm-legal__toc a { display: flex; gap: 0.7rem; align-items: baseline; margin-left: -1px; padding: 0.4rem 0 0.4rem 1rem; font-size: 0.875rem; line-height: 1.35; color: var(--wp--preset--color--muted); text-decoration: none; border-left: 2px solid transparent; }
.sm-legal__toc a:hover { color: var(--wp--preset--color--contrast); }
.sm-legal__toc a[aria-current] { color: var(--wp--preset--color--contrast); font-weight: 600; border-left-color: var(--wp--preset--color--primary); }
.sm-legal__toc a .sm-legal__no { color: inherit; opacity: 0.7; }
.sm-legal__toc a[aria-current] .sm-legal__no { color: var(--wp--preset--color--primary); opacity: 1; }
@media (max-width: 960px) {
  .sm-legal__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sm-legal__toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
  .sm-legal__toc summary { display: block; padding: 0.85rem 1rem; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
  .sm-legal__toc ol { padding: 0 0.5rem 0.75rem; border-left: 0; }
  .sm-legal__toc a { margin-left: 0; padding-left: 0.5rem; border-left: 0; }
}
@media print {
  .sm-legal__toc { display: none; }
  .sm-legal__grid { display: block; }
}

/* ---- Reviews ---- */
.sm-words { box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: var(--wp--preset--spacing--60) clamp(1.25rem, 4vw, 2.5rem) 0; }
.sm-words > * { margin-block: 0 !important; }
.sm-words > h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.sm-words > .sm-desc { margin-top: 0.5rem !important; }
.sm-words__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem !important; }
.sm-word { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; }
.sm-word blockquote { position: relative; margin: 0; padding: 2.25rem 0 0; border: 0; }
.sm-word blockquote::before { content: "\201C"; position: absolute; top: -0.35rem; left: -0.15rem; font-family: var(--wp--preset--font-family--display); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--wp--preset--color--primary); }
.sm-word blockquote p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--wp--preset--color--contrast); }
.sm-word figcaption { display: flex; align-items: center; gap: 0.75rem; }
.sm-word figcaption strong { display: block; font-size: 0.9375rem; }
.sm-word figcaption small { display: block; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }
.sm-word__mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; font-size: 0.8125rem; font-weight: 700; color: var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); border-radius: 50%; }


/* ---- Latest releases list (block) ---- */
.smpl-releases { margin: 0; padding: 0; list-style: none; }
.smpl-releases li a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: baseline; padding: 0.9rem 0; color: var(--wp--preset--color--contrast); text-decoration: none; border-top: 1px solid var(--wp--preset--color--line); }
.smpl-releases li a:hover .smpl-releases__name { color: var(--wp--preset--color--primary); }
.smpl-releases__name { font-weight: 600; }
.smpl-releases__version { padding: 0.1rem 0.5rem; font-size: 0.8125rem; font-weight: 700; color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); border-radius: 6px; }
.smpl-releases time { font-size: 0.8125rem; color: var(--wp--preset--color--muted); }


@media (max-width: 900px) {
  .sm-index__inner { grid-template-columns: minmax(0, 1fr); }
  .sm-stage { display: none; }
}
@media (max-width: 782px) {
  .sm-show { grid-template-columns: minmax(0, 1fr); }
  .sm-show--flip > :first-child { order: 0; }
  .sm-words__row { grid-template-columns: minmax(0, 1fr); }
  /* No stage on small screens: the frames sit in a plain 2 x 2 grid with their names. */
  .sm-jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; height: auto; background: none !important; }
  .sm-jobs li { position: static; transform: none; animation: none; }
  .sm-jobs a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem; background: var(--sm-tile); border: 1px solid var(--sm-rule); border-radius: 14px; }
  /* Same selectors as the desktop lit frame, so the frame the hero is showing doesn't keep its scale and offset label. */
  .sm-jobs img, .sm-jobs a:hover img, .sm-jobs a:focus-visible img, .sm-jobs li.is-shown img, .sm-jobs:not(:has(li:hover)) li.is-shown img { flex: none; width: 44px; height: 44px; padding: 5px; opacity: 1; transform: none; border-width: 1px; border-color: var(--sm-rule); box-shadow: none; }
  .sm-jobs__label, .sm-jobs a:hover .sm-jobs__label, .sm-jobs a:focus-visible .sm-jobs__label, .sm-jobs:not(:has(li:hover)) li.is-shown .sm-jobs__label { position: static; padding: 0; text-align: left; white-space: normal; background: none; border: 0; box-shadow: none; opacity: 1; transform: none; }
  .sm-tagdemo { grid-template-columns: minmax(0, 1fr); }
  .sm-tag__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Page title band, for every ordinary page ---- */
.sm-page > .wp-block-post-title { margin: 0 0 var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--40); font-size: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--wp--preset--color--line); }
.sm-lead { max-width: 62ch; margin: 0 0 var(--wp--preset--spacing--50) !important; font-size: 1.0625rem; line-height: 1.6; color: var(--wp--preset--color--body); }

/* ---- FAQ: topics and search on the left, answers on the right ---- */
.sm-faqpage { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.sm-faqpage > * { margin-block: 0 !important; }
.sm-faqpage__side { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px); display: grid; gap: 1.5rem; }
.sm-faqsearch { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.75rem; color: var(--wp--preset--color--muted); background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; }
.sm-faqsearch:focus-within { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px var(--wp--preset--color--tint); }
.sm-faqsearch input { flex: 1; min-width: 0; height: 42px; padding: 0; font: inherit; font-size: 0.9375rem; color: var(--wp--preset--color--contrast); background: transparent; border: 0; outline: none; }
.sm-faqpage__side nav ul { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.sm-faqpage__side nav a { display: block; padding: 0.45rem 0.75rem; font-size: 0.9375rem; font-weight: 500; color: var(--wp--preset--color--body); text-decoration: none; border-radius: 8px; }
.sm-faqpage__side nav a:hover { color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--tint); }
.sm-faqpage__help { padding: 1.1rem 1.25rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.sm-faqpage__help strong { font-size: 0.9375rem; }
.sm-faqpage__help p { margin: 0.3rem 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.sm-faqgroup { scroll-margin-top: 110px; }
.sm-faqgroup + .sm-faqgroup { margin-top: var(--wp--preset--spacing--50) !important; }
.sm-faqgroup > * { margin-block: 0 !important; }
.sm-faqgroup h2 { margin-bottom: 0.75rem !important; font-size: 1.375rem; }
.sm-q { border-top: 1px solid var(--wp--preset--color--line); }
.sm-q:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.sm-q summary { position: relative; display: block; padding: 1.05rem 2.5rem 1.05rem 0; font-size: 1rem; font-weight: 600; color: var(--wp--preset--color--contrast); cursor: pointer; list-style: none; }
.sm-q summary::-webkit-details-marker { display: none; }
.sm-q summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--wp--preset--color--tint) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' stroke='%233236C4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform 0.2s ease; }
.sm-q[open] summary::after { transform: rotate(45deg); }
.sm-q summary:hover { color: var(--wp--preset--color--primary); }
.sm-q p { max-width: 64ch; margin: 0 0 1.1rem; font-size: 0.875rem; line-height: 1.65; color: var(--wp--preset--color--muted); }
.sm-faqpage__none { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- About ---- */
.sm-aboutblock { margin-top: var(--wp--preset--spacing--50) !important; }
.sm-aboutblock > * { margin-block: 0 !important; }
.sm-aboutblock h2 { margin-bottom: 1.25rem !important; font-size: 1.5rem; }
.sm-makes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.sm-makes a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; color: var(--wp--preset--color--body); text-decoration: none; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; transition: border-color 0.18s ease, transform 0.18s ease; }
.sm-makes a:hover { border-color: var(--wp--preset--color--primary); transform: translateY(-2px); }
.sm-makes img { flex: none; display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.sm-makes strong { display: block; font-size: 1rem; color: var(--wp--preset--color--contrast); }
.sm-makes span span { display: block; margin-top: 0.15rem; font-size: 0.8125rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.sm-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.sm-principles span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 0.75rem; color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); border-radius: 10px; }
.sm-principles strong { display: block; font-size: 1rem; color: var(--wp--preset--color--contrast); }
.sm-principles p { margin: 0.3rem 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.sm-talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: var(--wp--preset--spacing--60) !important; padding: clamp(1.5rem, 4vw, 2.5rem); color: #DADBF6; background: var(--wp--preset--color--band); border-radius: 18px; }
.sm-talk > *, .sm-talk > * > * { margin-block: 0 !important; }
.sm-talk h2 { font-size: 1.5rem; color: #FFFFFF; }
.sm-talk p { max-width: 52ch; margin-top: 0.4rem !important; font-size: 0.9375rem; }
.sm-talk a:not(.wp-block-button__link) { color: #FFFFFF; }
.sm-talk .wp-block-button__link { color: #15163B !important; background: #FFFFFF !important; }

/* Services, kept for the page that still exists. */
.sm-tile h2 { margin: 0 0 0.4rem; font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; }
.sm-tile p { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.sm-tile { padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--contrast); }

@media (max-width: 782px) {
  .sm-faqpage { grid-template-columns: minmax(0, 1fr); }
  .sm-faqpage__side { position: static; }
  .sm-faqpage__side nav { display: none; }
}

/* ---- Plugins mega menu: a wide panel, plugin cards on the left, a featured card on the right ---- */
@media (min-width: 601px) {
  .sm-header .sm-mega > .wp-block-navigation__submenu-container {
    left: 50% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 300px;
    grid-auto-rows: auto;
    gap: 0.75rem;
    width: min(1060px, calc(100vw - 3rem)) !important;
    min-width: 0 !important;
    margin-top: 0.75rem;
    padding: 1.25rem !important;
    color: var(--wp--preset--color--contrast);
    background: #FBFAF6 !important;
    border: 1px solid #E4E2DA !important;
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(21, 22, 59, 0.28);
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .sm-header .sm-mega:hover > .wp-block-navigation__submenu-container,
  .sm-header .sm-mega:focus-within > .wp-block-navigation__submenu-container { transform: translateX(-50%) translateY(0); }
  /* A gap the pointer can cross without the panel closing. */
  .sm-header .sm-mega > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }

  /* Plugin cards */
  .sm-header .sm-mega__item > a { display: grid !important; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1rem; row-gap: 0.25rem; align-items: start; height: 100%; box-sizing: border-box; padding: 1.1rem !important; background: #FFFFFF; border: 1px solid #E4E2DA; border-radius: 14px; transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease; }
  .sm-header .sm-mega__item > a:hover, .sm-header .sm-mega__item > a:focus-visible { background: var(--wp--preset--color--tint); border-color: var(--wp--preset--color--primary); transform: translateY(-2px); outline: none; }
  .sm-header .sm-mega__item > a::before { content: ""; grid-row: 1 / span 2; width: 56px; height: 56px; background: #FFFFFF center / contain no-repeat; border-radius: 14px; box-shadow: 0 0 0 1px var(--wp--preset--color--line); }
  .sm-header .sm-mega__item--b2b > a::before { background-image: url("images/plugins/softminal-b2b-logo.svg"); }
  .sm-header .sm-mega__item--imagecraft > a::before { background-image: url("images/plugins/imagecraft-logo.svg"); }
  .sm-header .sm-mega__item--cache > a::before { background-image: url("images/plugins/softminal-cache-logo.svg"); }
  .sm-header .sm-mega__item--cart > a::before { background-image: url("images/plugins/cart-reward-logo.svg"); }
  .sm-header .sm-mega__item .wp-block-navigation-item__label { font-family: var(--wp--preset--font-family--display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
  /* Plan tag after the name, and a mark for links that leave this site. */
  .sm-header .sm-mega__item .wp-block-navigation-item__label::after { content: "Free"; margin-left: 0.5rem; padding: 0.1rem 0.45rem; font-family: var(--wp--preset--font-family--body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; vertical-align: 0.15em; color: var(--wp--preset--color--muted); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; }
  .sm-header .sm-mega__item--pro .wp-block-navigation-item__label::after { content: "Free and Pro"; color: var(--wp--preset--color--primary); border-color: currentColor; }
  .sm-header .sm-mega__item--out .wp-block-navigation-item__label::before { content: "\2197"; float: right; margin-left: 0.5rem; font-family: var(--wp--preset--font-family--body); font-weight: 400; color: var(--wp--preset--color--muted); }
  .sm-header .sm-mega__item .wp-block-navigation-item__description { display: block; font-size: 0.8125rem; font-weight: 400; line-height: 1.5; color: var(--wp--preset--color--muted); }

  /* Featured card, full height on the right */
  .sm-header .sm-mega__spot { grid-column: 3; grid-row: 1 / span 3; }
  .sm-header .sm-mega__spot > a { display: flex !important; flex-direction: column; justify-content: flex-end; gap: 0.6rem; height: 100%; box-sizing: border-box; min-height: 260px; padding: 1.5rem !important; color: #FFFFFF !important; background: #15163B; border-radius: 16px; transition: background-color 0.18s ease; }
  .sm-header .sm-mega__spot > a:hover, .sm-header .sm-mega__spot > a:focus-visible { background: #22245A; outline: none; }
  .sm-header .sm-mega__spot > a::before { content: "Featured · B2B Suite"; order: -2; margin-bottom: auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: #A5A8FB; }
  .sm-header .sm-mega__spot > a::after { content: "Visit b2bsuitewp.com \2197"; font-size: 0.875rem; font-weight: 600; color: #FFD54A; }
  .sm-header .sm-mega__spot .wp-block-navigation-item__label { font-family: var(--wp--preset--font-family--display); font-size: 1.375rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
  .sm-header .sm-mega__spot .wp-block-navigation-item__label::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: 1rem; background: #FFFFFF url("images/plugins/softminal-b2b-logo.svg") center / contain no-repeat; border-radius: 13px; }
  .sm-header .sm-mega__spot .wp-block-navigation-item__description { display: block; font-size: 0.8125rem; font-weight: 400; line-height: 1.55; color: #C9CBF2; }

  /* Footer row under the cards */
  .sm-header .sm-mega__all, .sm-header .sm-mega__ask { grid-row: 3; align-self: center; }
  .sm-header .sm-mega__all { grid-column: 1; }
  .sm-header .sm-mega__ask { grid-column: 2; justify-self: end; }
  .sm-header .sm-mega__all > a, .sm-header .sm-mega__ask > a { padding: 0.6rem 0.75rem !important; font-size: 0.875rem; font-weight: 600; border-radius: 10px; }
  .sm-header .sm-mega__all > a { color: var(--wp--preset--color--primary) !important; }
  .sm-header .sm-mega__all > a::after { content: "\2192"; margin-left: 0.35rem; }
  .sm-header .sm-mega__ask > a { color: var(--wp--preset--color--muted) !important; }
  .sm-header .sm-mega__all > a:hover, .sm-header .sm-mega__ask > a:hover { background: var(--wp--preset--color--tint); }
}
/* Dark mode: the panel and cards follow the site's dark palette. */
@media (min-width: 601px) {
  html.dark .sm-header .sm-mega > .wp-block-navigation__submenu-container { background: var(--wp--preset--color--surface) !important; border-color: var(--wp--preset--color--line) !important; }
  html.dark .sm-header .sm-mega__item > a { background: var(--wp--preset--color--base); border-color: var(--wp--preset--color--line); }
  html.dark .sm-header .sm-mega__spot > a { background: #25275A; }
  html.dark .sm-header .sm-mega__spot > a:hover { background: #2F3270; }
}
/* Tablet: two columns, the featured card moves under the plugins. */
@media (min-width: 601px) and (max-width: 1000px) {
  .sm-header .sm-mega > .wp-block-navigation__submenu-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-header .sm-mega__spot { grid-column: 1 / -1; grid-row: 3; }
  .sm-header .sm-mega__spot > a { min-height: 0; }
  .sm-header .sm-mega__all, .sm-header .sm-mega__ask { grid-row: 4; }
}
.sm-header .wp-block-navigation-item__description { display: none; }

/* ---- Contact: details on the left, the form in a card on the right ---- */
.sm-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.sm-contact > *, .sm-contact__side > * { margin-block: 0 !important; }
.sm-contact .wp-block-post-title { margin-bottom: 1rem !important; font-size: clamp(2rem, 4vw, 3rem); }
.sm-contact .sm-lead { margin-bottom: 2rem !important; }
.sm-contact__ways { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.sm-contact__ways li { display: flex; align-items: center; gap: 0.9rem; }
.sm-contact__ways li > span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); border-radius: 11px; }
.sm-contact__ways strong { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--wp--preset--color--muted); }
.sm-contact__ways a { font-weight: 600; text-decoration: none; }
.sm-contact__ways a:hover, .sm-contact__ways a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sm-contact__tip, .sm-contact__side > .sm-contact__tip { margin-top: 2.5rem !important; padding: 1.1rem 1.25rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.sm-contact__tip strong { font-size: 0.9375rem; }
.sm-contact__tip p { margin: 0.3rem 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.sm-contact__form { padding: clamp(1.5rem, 3vw, 2.25rem); background: #FBFAF6; border: 1px solid #E4E2DA; border-radius: 18px; }
.sm-contact__form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: #FFFFFF !important; border-color: #E4E2DA !important; }
.sm-contact__form :is(input, select, textarea):focus { border-color: var(--wp--preset--color--primary) !important; }
html.dark .sm-contact__form { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--line); }
html.dark .sm-contact__form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: var(--wp--preset--color--base) !important; border-color: var(--wp--preset--color--line) !important; }
.sm-contact__form form[data-smpl-auth] { max-width: none; }
.sm-contact__form form[data-smpl-auth] > p:has(input[type="email"]), .sm-contact__form form[data-smpl-auth] > p:has(input[type="tel"]) { display: inline-block; width: calc(50% - 0.5rem); vertical-align: top; }
.sm-contact__form form[data-smpl-auth] > p:has(input[type="email"]) { margin-right: 1rem !important; }
.sm-contact__form form[data-smpl-auth] br { display: none; }
.sm-contact__form form[data-smpl-auth] label { display: block; margin-bottom: 0.35rem; }
.sm-contact__form form[data-smpl-auth] > .smpl-button { width: 100%; }
@media (max-width: 782px) {
  .sm-contact { grid-template-columns: minmax(0, 1fr); }
  .sm-contact__form form[data-smpl-auth] > p:has(input) { display: block; width: auto; margin-right: 0 !important; }
}

/* The phone menu. */
.sm-header .wp-block-navigation__responsive-container.is-menu-open {
  --navigation-layout-justification-setting: flex-start;
  --navigation-layout-justify: flex-start;
  --navigation-layout-align: flex-start;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--wp--preset--color--contrast);
  background-color: var(--wp--preset--color--base) !important;
}
.sm-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 2.5rem; }
.sm-header .is-menu-open :is(.wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content) { width: 100%; max-width: none; }
.sm-header .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; justify-content: flex-start !important; gap: 0.75rem; }
.sm-header .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; }
.sm-header .is-menu-open a,
.sm-header .is-menu-open .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast) !important; }
.sm-header .is-menu-open a { font-size: 1.25rem; font-weight: 600; }
.sm-nav-account { display: none !important; }
.is-menu-open .sm-nav-account { display: block !important; }

/* ---- Blog list: paper header with category chips, newest post featured, then a card grid ---- */
.sm-blog { box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: var(--wp--preset--spacing--40) clamp(1.25rem, 4vw, 2.5rem) var(--wp--preset--spacing--60); }
.sm-blog > * { margin-block: 0 !important; }
.sm-blog__head { display: grid; gap: 0.85rem; padding: var(--wp--preset--spacing--50) clamp(1.5rem, 4vw, 3.5rem); background: #FBFAF6; border-radius: 20px; box-shadow: inset 0 0 0 1px #E4E2DA; }
html.dark .sm-blog__head { background: var(--wp--preset--color--surface); box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); }
.sm-blog__head > * { margin-block: 0 !important; }
.sm-blog__head h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.sm-blog__head .sm-lead { margin: 0 !important; }
.sm-blog__head .sm-kicker a { color: inherit; text-decoration: none; }
.sm-blog__cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0 !important; padding: 0; list-style: none; }
.sm-blog__cats li { margin: 0; }
.sm-blog__cats a { display: inline-block; padding: 0.4rem 0.85rem; font-size: 0.8125rem; font-weight: 600; color: var(--wp--preset--color--contrast); text-decoration: none; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; }
html:not(.dark) .sm-blog__cats a { background: #FFFFFF; border-color: #E4E2DA; }
.sm-blog__cats a:hover { color: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.sm-blog__cats .current-cat a { color: #FFFFFF; background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }

.sm-posts { margin-top: var(--wp--preset--spacing--50) !important; }
.sm-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.sm-posts .wp-block-post { margin: 0; }
.sm-post { display: flex; flex-direction: column; height: 100%; margin: 0 !important; overflow: hidden; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.sm-post:hover { border-color: var(--wp--preset--color--primary); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(21, 22, 59, 0.35); }
.sm-post > * { margin: 0 !important; }
.sm-post__cover { overflow: hidden; }
.sm-post__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.sm-post:hover .sm-post__cover img { transform: scale(1.03); }
/* No featured image: a paper cover with a dot grid, so every card keeps the same shape. */
.sm-post:not(:has(.sm-post__cover))::before { content: ""; display: block; aspect-ratio: 16 / 10; background-color: #FBFAF6; background-image: radial-gradient(#DCD9CE 1px, transparent 1.2px), linear-gradient(135deg, transparent 62%, rgba(63, 66, 228, 0.12) 62%); background-size: 18px 18px, 100% 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
html.dark .sm-post:not(:has(.sm-post__cover))::before { background-color: #12142A; background-image: radial-gradient(#2C2E4D 1px, transparent 1.2px), linear-gradient(135deg, transparent 62%, rgba(165, 168, 251, 0.14) 62%); }
.sm-post__body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.35rem 1.35rem; }
.sm-post__body > * { margin: 0 !important; }
.sm-post__cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.sm-post__cat a { color: var(--wp--preset--color--primary); text-decoration: none; }
.sm-post .wp-block-post-title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.sm-post .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.sm-post .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.sm-post { position: relative; }
.sm-post__cat a, .sm-post__cover a { position: relative; z-index: 1; }
.sm-post__excerpt { flex: 1; }
.sm-post__excerpt p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--wp--preset--color--muted); }
.sm-post__excerpt .wp-block-post-excerpt__more-text { display: none; }
.sm-post__meta { gap: 0.35rem 0.75rem; padding-top: 0.75rem; font-size: 0.8125rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--line); }
.sm-post__meta > * { margin: 0 !important; }
.sm-post__meta .wp-block-post-time-to-read::before { content: "\00B7"; margin-right: 0.75rem; }

/* Newest post on the first page: one wide card with the cover beside the text. */
@media (min-width: 783px) {
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child { grid-column: 1 / -1; }
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child .sm-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child .sm-post::before { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--wp--preset--color--line); }
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child .sm-post__cover { height: 100%; min-height: 320px; }
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child .sm-post__body { justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child .wp-block-post-title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
  body:not(.paged) .sm-blog:not(.sm-blog--archive) .sm-posts .wp-block-post:first-child .sm-post__excerpt { flex: 0; }
}

.sm-pager { margin-top: var(--wp--preset--spacing--50) !important; gap: 0.4rem; font-size: 0.875rem; font-weight: 600; }
.sm-pager a, .sm-pager .page-numbers { display: inline-flex; align-items: center; min-width: 2.5rem; height: 2.5rem; justify-content: center; padding: 0 0.85rem; box-sizing: border-box; color: var(--wp--preset--color--contrast); text-decoration: none; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; }
.sm-pager a:hover { color: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.sm-pager .page-numbers.current { color: #FFFFFF; background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); }
.sm-pager .page-numbers.dots { background: none; border: 0; }
.sm-posts__empty { padding: 2rem; text-align: center; color: var(--wp--preset--color--muted); background: var(--wp--preset--color--surface); border: 1px dashed var(--wp--preset--color--line); border-radius: 16px; }

/* ---- The plugin's blocks ---- */
.smpl-card, .smpl-checkout__panel {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 14px;
}
.smpl-card > h2, .smpl-card > h3 { margin-top: 0; }
.smpl-card h2 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.smpl-card h2 a:hover { color: var(--wp--preset--color--primary); }

.smpl-button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  background: #3F42E4;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.smpl-button:hover { color: #FFFFFF; background: #3236C4; }
.smpl-button:disabled { opacity: 0.6; cursor: wait; }
.smpl-auth .smpl-button, .smpl-checkout .smpl-button { width: 100%; }
form[data-smpl-auth] > .smpl-button { width: auto; min-width: 180px; }
.smpl-auth form[data-smpl-auth] > .smpl-button { width: 100%; }

.smpl-card button:not(.smpl-button), .smpl-checkout button:not(.smpl-button), .smpl-dashboard button:not(.smpl-button), .smpl-action-message + button {
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
  background: transparent;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 8px;
  cursor: pointer;
}
.smpl-card button:not(.smpl-button):hover, .smpl-checkout button:not(.smpl-button):hover, .smpl-dashboard button:not(.smpl-button):hover { background: var(--wp--preset--color--tint); border-color: var(--wp--preset--color--primary); }

:is(.smpl-auth, .smpl-card, .smpl-checkout, form[data-smpl-auth]) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--wp--preset--color--contrast);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 8px;
}
form[data-smpl-auth] { max-width: 560px; }
.smpl-auth form[data-smpl-auth] { max-width: none; }
:is(.smpl-auth, .smpl-card, .smpl-checkout, form[data-smpl-auth]) :is(input, select, textarea):focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px var(--wp--preset--color--tint); }
:is(.smpl-auth, .smpl-card, .smpl-checkout, form[data-smpl-auth]) label { font-size: 0.875rem; font-weight: 600; }
.smpl-check { font-weight: 500 !important; }
form[data-smpl-auth] p { margin: 0 0 1rem; }

.smpl-badge { color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); border: 0; border-radius: 4px; font-weight: 600; text-transform: capitalize; }

.smpl-card h2 .smpl-badge { font-family: var(--wp--preset--font-family--body); font-size: 0.8125rem; letter-spacing: 0; vertical-align: middle; }
.smpl-auth { max-width: 26rem; margin: 0 auto; padding: 2rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; }
.smpl-auth h1 { margin: 0 0 1.25rem; font-size: 1.75rem; }
.sm-auth-page { padding-block: var(--wp--preset--spacing--50); }
/* Sign-in, password and verify forms: Daylight paper box, white fields (same as the contact form). */
.sm-auth-page .smpl-auth { background: #FBFAF6; border-color: #E4E2DA; }
.sm-auth-page .smpl-auth :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: #FFFFFF !important; border-color: #E4E2DA !important; }
.sm-auth-page .smpl-auth :is(input, select, textarea):focus { border-color: var(--wp--preset--color--primary) !important; }
html.dark .sm-auth-page .smpl-auth { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--line); }
html.dark .sm-auth-page .smpl-auth :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { background: var(--wp--preset--color--base) !important; border-color: var(--wp--preset--color--line) !important; }

.smpl-products { display: grid; gap: 1.5rem; }
.smpl-tiers { gap: 1rem; }
.smpl-tier { display: flex; flex-direction: column; padding: 1.25rem; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; }
.smpl-tier h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.smpl-tier > p:first-of-type { margin: 0 0 0.75rem; color: var(--wp--preset--color--muted); }
.smpl-tier > p:first-of-type strong { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; color: var(--wp--preset--color--contrast); }
.smpl-tier ul { flex: 1; margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.9375rem; color: var(--wp--preset--color--body); }
.smpl-tier > p:last-child { margin: auto 0 0; }

.smpl-dashboard__nav { gap: 0.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.smpl-dashboard__nav a { padding: 0.45rem 0.8rem; font-weight: 500; color: var(--wp--preset--color--muted); text-decoration: none; border-radius: 8px; }
.smpl-dashboard__nav a:hover { color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--tint); }
.smpl-dashboard__nav [aria-current] { font-weight: 600; color: var(--wp--preset--color--primary-strong); background: var(--wp--preset--color--tint); }
.smpl-facts dt { color: var(--wp--preset--color--muted); opacity: 1; }
.smpl-facts dd { font-weight: 600; }
.smpl-table th { font-size: 0.8125rem; font-weight: 600; color: var(--wp--preset--color--muted); }
.smpl-table td, .smpl-table th { border-bottom: 1px solid var(--wp--preset--color--line); }
.smpl-table tr:last-child td { border-bottom: 0; }
.smpl-table small { color: var(--wp--preset--color--muted); }
@media (max-width: 600px) { .smpl-table--stack tr { border-bottom-color: var(--wp--preset--color--line); } .smpl-table--stack td { border-bottom: 0; } }

.smpl-checkout__price strong { font-family: var(--wp--preset--font-family--display); font-size: 2.25rem; }
.smpl-checkout__price s { color: var(--wp--preset--color--muted); }
.smpl-checkout__features { color: var(--wp--preset--color--body); }
.smpl-checkout__coupon { margin: 0.35rem 0 0; }
.smpl-checkout__coupon button { flex: none; }
.smpl-checkout--error, .smpl-checkout--success { padding: 2rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; }
.smpl-checkout--error h2, .smpl-checkout--success h2 { margin-top: 0; }

html.dark .smpl-checkout__message.is-error { color: #FDA4A0; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
