/*
Theme Name: OptForce
Theme URI: https://optforce.com
Author: OptForce
Author URI: https://optforce.com
Description: OptForce — practical optimization for small businesses. Custom theme replicating the OptForce brand site, with newsletter capture, contact-to-inbox, and an SEO/AEO-ready blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: optforce
*/

/* ============================================================
   OptForce — Landing site styles
   Palette (from brand overview):
   Ink #0F1115 · Electric Lime #C6F135 · Warm Off-White #F7F5F0 · Slate #6B7280
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-0.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-2.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-3.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-4.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-0.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-2.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-3.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-4.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-0.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-2.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-3.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-4.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-0.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-2.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-3.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-4.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-6.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --ink: #0F1115;
  --ink-2: #15181F;       /* raised surfaces on dark */
  --ink-3: #1E222B;       /* card on dark */
  --lime: #C6F135;
  --lime-deep: oklch(0.55 0.15 128);   /* legible lime for text/links on light */
  --lime-soft: oklch(0.95 0.06 124);   /* faint lime wash */
  --paper: #F7F5F0;
  --paper-2: #FFFFFF;
  --slate: #6B7280;
  --slate-light: #9AA1AC;
  --line: oklch(0.88 0.005 250);       /* hairline on light */
  --line-dark: oklch(0.30 0.01 260 / 0.5);

  /* mockup chrome — scoped to the hero UI demos only (kept tokenized so no raw hex lives in rules) */
  --mock-bezel: #0A0C10;       /* device bezel, deeper than ink */
  --mock-dot-light: #D9D6CF;   /* window control dots on light mock chrome */
  --mock-dot-dark: #43464E;    /* window control dot on dark mock chrome */

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  /* radii — consolidated scale (the six legacy values 11/12/14/16/18/20 collapse to these) */
  --radius-sm: 12px;            /* inputs, chips, small frames, examples, image slots */
  --radius-md: 16px;           /* cards: services, closers, industries, mock browser */
  --radius-lg: 20px;           /* large panels, hero visual frame */
  --radius-full: 999px;        /* pills, dots */
  --radius: var(--radius-md);  /* legacy alias — kept so older usages stay valid */

  /* elevation — neutral float scale (replaces the bespoke per-component shadows) */
  --shadow-sm: 0 18px 40px -24px rgba(15,17,21,0.20);  /* subtle card-hover lift */
  --shadow-md: 0 26px 54px -24px rgba(15,17,21,0.22);  /* standard card-hover lift */
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,0.55);     /* deep float: hero frame, device mocks */

  /* type scale — fluid display/quote sizes used in more than one place */
  --fs-quote: clamp(1.9rem, 4.2vw, 3.1rem);    /* thesis / proof pull-quotes */
  --fs-quote-sm: clamp(1.6rem, 3.4vw, 2.4rem); /* compact pull-quote (principles) */

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* entrances: fast start, soft landing */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* transforms */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);    /* tactile overshoot */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
}
.eyebrow.on-dark { color: var(--lime); }

/* lime forward-chevron momentum motif */
.chev { color: var(--lime); font-family: var(--font-display); font-weight: 700; }
.chev-deep { color: var(--lime-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.4em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--spring), background .18s var(--ease-out), box-shadow .24s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.97); transition-duration: .08s; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 34px -8px color-mix(in oklch, var(--lime) 78%, transparent); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.btn-ghost-light:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px color-mix(in oklch, var(--lime) 40%, transparent), 0 0 24px -6px color-mix(in oklch, var(--lime) 45%, transparent); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--ink); transform: translateY(-2px) scale(1.02); }
.btn .arr { transition: transform .2s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Card (base component) ----------
   Single source of truth for the surface + hover treatment shared by
   .svc, .closer, .ind, .panel, .tst. Variants add only their differences.
   Recolor on dark by overriding --card-bg / --card-border (see .tst).
   Change the hover here once and every interactive card follows. */
.card {
  background: var(--card-bg, var(--paper-2));
  border: 1px solid var(--card-border, var(--line));
  border-radius: var(--radius-md);
}
.card-interactive {
  transition: transform .26s var(--spring), box-shadow .26s var(--ease-out), border-color .26s var(--ease-out);
}
.card-interactive:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--lime-deep) 40%, var(--line));
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--paper); }
.logo .force { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: color-mix(in oklch, var(--paper) 78%, transparent); font-size: 0.95rem; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--lime); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in oklch, var(--lime) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 130px);
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 0.5em 1em; font-size: 0.82rem; font-weight: 500;
  color: color-mix(in oklch, var(--paper) 85%, transparent);
  margin-bottom: 1.6rem;
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 600; }
.hero h1 .accent { color: var(--lime); }
.hero .sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: color-mix(in oklch, var(--paper) 80%, transparent); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-micro { margin-top: 1.8rem; font-size: 0.9rem; color: var(--slate-light); display: flex; align-items: center; gap: 0.6em; }

/* hero visual panel */
.hero-visual { position: relative; }
.visual-frame {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 14px;
  box-shadow: var(--shadow-lg);
}
.visual-bar { display: flex; align-items: center; gap: 6px; padding: 6px 6px 12px; }
.visual-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); display: block; }
.visual-bar i:nth-child(1) { background: var(--mock-dot-dark); }
.slot-hero { width: 100%; height: 340px; }
.visual-tag {
  position: absolute; left: -14px; bottom: 24px;
  background: var(--lime); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  padding: 0.6em 1em; border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px -12px color-mix(in oklch, var(--lime) 60%, transparent);
}

/* ---------- Section scaffolding ---------- */
section { padding-block: clamp(72px, 10vw, 130px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 0.7rem; }
.section-head p { margin-top: 1.2rem; font-size: 1.15rem; color: var(--slate); max-width: 56ch; }

/* ---------- Thesis band ---------- */
.thesis { background: var(--paper); }
.thesis-quote { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-quote); line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; }
.thesis-quote.compact { font-size: var(--fs-quote-sm); max-width: 22ch; margin-top: 1rem; }
.thesis-quote .hi { color: var(--lime-deep); }
.thesis-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.thesis-note { color: var(--slate); font-size: 1.1rem; }
.thesis-note strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 120%, color-mix(in oklch, var(--lime) 22%, transparent), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.cta h2 .force { color: var(--lime); }
.cta p { color: var(--slate-light); font-size: 1.2rem; margin-top: 1.2rem; }
.cta .hero-actions { justify-content: center; margin-top: 2.4rem; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 40px; }
.foot .logo { font-size: 1.2rem; }
.foot .tag { color: var(--slate-light); font-family: var(--font-display); font-style: italic; }
.foot-links { display: flex; gap: 1.6rem; }
.foot-links a { color: color-mix(in oklch, var(--paper) 72%, transparent); font-size: 0.9rem; }
.foot-links a:hover { color: var(--lime); }
.foot-legal { width: 100%; border-top: 1px solid var(--line-dark); padding-block: 22px; color: var(--slate); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- image-slot empty state ---------- */
image-slot { --is-bg: var(--ink-3); border-radius: var(--radius-sm); overflow: hidden; }

/* ---------- Motion: scroll & load reveals ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* forward single reveal — enters from the left (momentum) */
[data-reveal="forward"] { transform: translateX(-24px); }
[data-reveal="forward"].in { transform: none; }

/* staggered groups — children animate in sequence (delay set by JS) */
[data-reveal-group] > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal-group].in > * { opacity: 1; transform: none; }

/* forward/rightward entrance — reinforces "Force = momentum" */
[data-reveal-group="forward"] > * { transform: translateX(-22px); }
[data-reveal-group="forward"].in > * { transform: none; }

/* ---------- Reduced motion: show final state instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Shared page intro (Blog / Products / Tools / About / Contact heads) ---------- */
.nav-links a.active { color: var(--lime); }
.page-intro { background: var(--paper); padding-block: clamp(88px, 12vw, 148px) clamp(40px, 6vw, 72px); }
.page-intro .eyebrow { margin-bottom: 1.1rem; display: inline-block; }
.page-intro h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 15ch; }
.page-intro h1 .accent { color: var(--lime-deep); }
.page-intro .lead { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--slate); max-width: 56ch; }
.page-intro .lead strong { color: var(--ink); font-weight: 600; }
.page-intro .lead .chev { font-weight: 700; }

/* ============================================================
   CONTENT COMPONENTS (added for the blog/products/tools model)
   All extend the locked .card base + use existing tokens only.
   See CLAUDE.md “Components” — these are defined additions, not one-offs.
   ============================================================ */

/* ---------- Section head with a trailing action link ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 56px); }
.head-row .section-head { margin-bottom: 0; }
.head-link { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); white-space: nowrap; transition: color .18s var(--ease-out); }
.head-link .arr { transition: transform .2s var(--ease-out); }
.head-link:hover { color: var(--lime-deep); }
.head-link:hover .arr { transform: translateX(4px); }

/* ---------- Category / tag pill (reused on cards + post meta) ---------- */
.tag { display: inline-flex; align-items: center; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-deep); background: var(--lime-soft); border-radius: var(--radius-full); padding: 0.4em 0.85em; }
.tag.muted { color: var(--slate); background: transparent; border: 1px solid var(--line); }

/* ---------- Cover image frame (blog + product cards) ---------- */
.cover { display: block; width: 100%; aspect-ratio: 16 / 10; }
.cover.square { aspect-ratio: 1 / 1; }

/* ---------- Blog post card (extends .card .card-interactive) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .cover { border-bottom: 1px solid var(--card-border, var(--line)); border-radius: 0; }
.post-card h3 a { transition: color .18s var(--ease-out); }
.post-card:hover h3 a { color: var(--lime-deep); }
.post-card .pc-body { display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(20px, 2.4vw, 26px); flex: 1; }
.post-card .pc-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.post-card .pc-date { font-size: 0.84rem; color: var(--slate); }
.post-card h3 { font-size: 1.32rem; line-height: 1.12; }
.post-card .pc-excerpt { color: var(--slate); font-size: 0.98rem; line-height: 1.5; }
.post-card .pc-foot { margin-top: auto; padding-top: 0.4rem; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--lime-deep); display: inline-flex; align-items: center; gap: 0.4em; }
.post-card:hover .pc-foot .arr { transform: translateX(4px); }
.post-card .pc-foot .arr { transition: transform .2s var(--ease-out); }

/* horizontal variant for a single featured/lead post */
.post-card.lead { grid-column: span 3; flex-direction: row; }
.post-card.lead .cover { width: 46%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--card-border, var(--line)); }
.post-card.lead .pc-body { padding: clamp(26px, 3vw, 40px); justify-content: center; }
.post-card.lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.post-card.lead .pc-excerpt { font-size: 1.06rem; max-width: 52ch; }

/* ---------- Service card (extends .card .card-interactive) — equal-height column in a 4-up row ---------- */
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.6vw, 24px); align-items: stretch; }
.service-card { display: flex; flex-direction: column; padding: clamp(24px, 2vw, 30px); height: 100%; }
.service-card .sv-num { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--lime-deep); margin-bottom: 0.9rem; }
.service-card h3 { font-size: clamp(1.3rem, 1.5vw, 1.55rem); line-height: 1.08; letter-spacing: -0.02em; }
.service-card .sv-desc { color: var(--slate); font-size: 1rem; line-height: 1.5; margin-top: 0.8rem; }
.service-card .sv-incl { display: flex; flex-direction: column; gap: 0.9rem; margin-top: clamp(1.3rem, 1.8vw, 1.8rem); }
.service-card .sv-incl-label { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.service-card .sv-incl ul { display: flex; flex-direction: column; gap: 0.8rem; list-style: none; }
.service-card .sv-incl li { position: relative; padding-left: 2rem; color: var(--ink); font-size: 0.96rem; line-height: 1.45; text-wrap: pretty; }
.service-card .sv-incl li::before {
  content: "\2713"; position: absolute; left: 0; top: 0.05em;
  width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  background: var(--lime); border-radius: var(--radius-full);
}
.service-card .sv-cta { margin-top: clamp(1.6rem, 2.2vw, 2rem); margin-top: auto; padding-top: clamp(1.6rem, 2.2vw, 2rem); width: 100%; justify-content: center; }

/* ---------- Tool card (extends .card .card-interactive) — app + price + buy ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tool-card { display: flex; flex-direction: column; padding: clamp(24px, 2.8vw, 34px); height: 100%; }
.tool-card .tl-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 1.3rem; }
.tool-card .tl-glyph { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--lime-soft); display: grid; place-items: center; color: var(--lime-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.tool-card .tl-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.tool-card .tl-price .tl-period { font-size: 0.86rem; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.tool-card h3 { font-size: 1.4rem; line-height: 1.1; }
.tool-card .tl-desc { color: var(--slate); font-size: 0.98rem; line-height: 1.5; margin-top: 0.7rem; }
.tool-card .tl-incl { display: flex; flex-direction: column; gap: 0.8rem; list-style: none; margin-top: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: clamp(1.6rem, 2.2vw, 2rem); }
.tool-card .tl-incl li { position: relative; padding-left: 2rem; color: var(--ink); font-size: 0.96rem; line-height: 1.45; text-wrap: pretty; }
.tool-card .tl-incl li::before {
  content: "\2713"; position: absolute; left: 0; top: 0.05em;
  width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  background: var(--lime); border-radius: var(--radius-full);
}
.tool-card .tl-cta { margin-top: auto; align-self: center; padding: 0.62em 1.15em; font-size: 0.9rem; justify-content: center; }

/* ---------- Newsletter signup block (reused: home / blog / contact) ---------- */
.signup { position: relative; overflow: hidden; }
.signup.on-dark { background: var(--ink); color: var(--paper); }
.signup.on-dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 80% at 50% 130%, color-mix(in oklch, var(--lime) 20%, transparent), transparent 70%); pointer-events: none; }
.signup-inner { position: relative; max-width: 680px; margin-inline: auto; text-align: center; }
.signup h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.signup.on-dark h2 .force { color: var(--lime); }
.signup p { margin-top: 1rem; font-size: 1.12rem; }
.signup.on-dark p { color: var(--slate-light); }
.signup:not(.on-dark) p { color: var(--slate); }
.signup-form { display: flex; gap: 0.7rem; margin-top: 2rem; max-width: 480px; margin-inline: auto; }
.signup-form input { flex: 1; font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: 0.82em 1.05em; border: 1.5px solid var(--line); border-radius: var(--radius-full); background: var(--paper-2); transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.signup-form input:focus { outline: none; border-color: var(--lime-deep); box-shadow: 0 0 0 3px var(--lime-soft); }
.signup .fineprint { margin-top: 1rem; font-size: 0.86rem; }
.signup.on-dark .fineprint { color: var(--slate-light); }
.signup .signup-ok { display: none; margin-top: 1.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--lime-deep); }
.signup.on-dark .signup-ok { color: var(--lime); }
.signup.is-done .signup-form, .signup.is-done .fineprint { display: none; }
.signup.is-done .signup-ok { display: block; }

/* ---------- Contact page (form + reach-out aside) ---------- */
.contact { background: var(--paper); padding-block: clamp(8px, 2vw, 24px) clamp(72px, 10vw, 120px); }
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card { padding: clamp(26px, 3.4vw, 44px); }
.contact-form { display: grid; gap: 1.15rem; }
.contact-form .field { display: grid; gap: 0.5rem; }
.contact-form .field.row2 { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.contact-form label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.78em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--slate-light); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--lime-deep); box-shadow: 0 0 0 3px var(--lime-soft); }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: oklch(0.62 0.2 25); box-shadow: 0 0 0 3px oklch(0.62 0.2 25 / 0.14); }
.contact-form .btn { justify-self: start; margin-top: 0.3rem; }
.contact-ok { display: none; }
.contact-card.is-done .contact-form { display: none; }
.contact-card.is-done .contact-ok { display: block; text-align: center; padding: clamp(20px, 4vw, 48px) 0; }
.contact-ok .ok-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--lime); color: var(--ink); font-size: 1.6rem; font-weight: 700; margin-bottom: 1.2rem; }
.contact-ok h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-ok p { color: var(--slate); max-width: 36ch; margin-inline: auto; }

.contact-aside { display: grid; gap: 1.1rem; }
.contact-aside .reach { padding: clamp(24px, 3vw, 36px); }
.contact-aside .reach .eyebrow { display: block; margin-bottom: 0.9rem; }
.contact-aside .reach h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.contact-aside .reach p { color: var(--slate); font-size: 1rem; }
.contact-email { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; font-weight: 600; font-size: 1.06rem; color: var(--lime-deep); text-decoration: none; word-break: break-all; }
.contact-email:hover { text-decoration: underline; }
.contact-email .arr { color: var(--lime-deep); }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-form .field.row2 { grid-template-columns: 1fr; }
}

/* ---------- Filter bar (blog category/tag) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(34px, 4vw, 48px); }
.chip { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; padding: 0.5em 1.05em; border: 1.5px solid var(--line); border-radius: var(--radius-full); background: var(--paper-2); color: var(--ink); cursor: pointer; transition: border-color .18s var(--ease-out), background .18s var(--ease-out), color .18s var(--ease-out); }
.chip:hover { border-color: var(--lime-deep); }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.filter-empty { display: none; color: var(--slate); font-size: 1.05rem; padding: 1rem 0; }
.filter-empty.show { display: block; }

/* ---------- Blog post template (the readable article) ---------- */
.post-hero { background: var(--paper); padding-block: clamp(80px, 11vw, 132px) clamp(28px, 4vw, 48px); }
.post-hero .wrap { max-width: 820px; }
.post-hero .ph-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.post-hero .ph-date { font-size: 0.9rem; color: var(--slate); }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
.post-hero .ph-excerpt { margin-top: 1.4rem; font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: var(--slate); line-height: 1.45; }
.post-hero .ph-byline { margin-top: 1.8rem; display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--slate); }
.post-hero .ph-byline b { color: var(--ink); font-weight: 600; }
.post-cover-wrap { background: var(--paper); }
.post-cover-wrap .wrap { max-width: 980px; }
.post-cover-wrap .cover { aspect-ratio: 21 / 9; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-body-wrap { background: var(--paper); padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px); }
.post-body { max-width: 720px; margin-inline: auto; }
.post-body > * + * { margin-top: 1.5rem; }
.post-body p { font-size: 1.15rem; line-height: 1.72; color: color-mix(in oklch, var(--ink) 88%, var(--slate)); }
.post-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; margin-top: 3rem; }
.post-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); letter-spacing: -0.01em; margin-top: 2.4rem; }
.post-body a { color: var(--lime-deep); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--lime-deep) 40%, transparent); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--lime-deep); }
.post-body ul, .post-body ol { padding-left: 1.3rem; display: grid; gap: 0.7rem; }
.post-body li { font-size: 1.12rem; line-height: 1.6; color: color-mix(in oklch, var(--ink) 88%, var(--slate)); }
.post-body li::marker { color: var(--lime-deep); }
.post-body strong { font-weight: 600; color: var(--ink); }
/* pull quote */
.post-quote { border-left: 3px solid var(--lime); padding: 0.3rem 0 0.3rem 1.6rem; margin-block: 2.6rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); }
.post-quote cite { display: block; margin-top: 1rem; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: 0.95rem; color: var(--slate); letter-spacing: 0; }
/* callout */
.post-callout { background: color-mix(in oklch, var(--lime) 9%, var(--paper-2)); border: 1px solid color-mix(in oklch, var(--lime-deep) 20%, var(--line)); border-left: 3px solid var(--lime); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin-block: 2.4rem; }
.post-callout .co-label { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime-deep); }
.post-callout p { margin-top: 0.6rem; font-size: 1.05rem; line-height: 1.6; }
.post-callout p:first-of-type { margin-top: 0.6rem; }
/* code block */
.post-code { background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin-block: 2.4rem; overflow-x: auto; }
.post-code pre { margin: 0; font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace; font-size: 0.92rem; line-height: 1.6; white-space: pre; }
.post-code .co-label { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 0.8rem; }
/* post footer nav */
.post-end { max-width: 720px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- About: value grid (reuses .card, dark variant) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* two-up pillar grid (home "what we do") — auto-stacks on narrow screens */
.duo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.value { padding: clamp(24px, 2.8vw, 32px); }
.value .v-num { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--lime-deep); letter-spacing: 0.08em; }
.value h3 { font-size: 1.3rem; margin-top: 0.9rem; letter-spacing: -0.01em; }
.value p { color: var(--slate); margin-top: 0.7rem; font-size: 1rem; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .post-card.lead { flex-direction: column; }
  .post-card.lead .cover { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--card-border, var(--line)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .thesis-row { grid-template-columns: 1fr; align-items: start; }
  .post-grid, .tool-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.lead { grid-column: span 2; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 1rem; background: var(--ink-2); padding: 1.5rem var(--pad); border-bottom: 1px solid var(--line-dark); }
  .nav-toggle { display: block; }
  .post-grid, .tool-grid, .value-grid { grid-template-columns: 1fr; }
  .post-card.lead { grid-column: span 1; }
  .service-list { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { justify-content: center; }
  .nav .nav-cta .btn { padding: 0.7em 1.1em; font-size: 0.9rem; }
}

/* ============================================================
   MEMBER / AUTH COMPONENTS  (header login control · locked states · members area)
   ------------------------------------------------------------
   Auth is ONE switch: <html class="is-authed">. Every members-only surface
   renders BOTH states in markup; CSS reveals the right one, so flipping auth
   never needs a re-render. site.js owns the switch (OptForce.login/logout) —
   wire a real backend there. Tokens only; extends the locked base components.
   Porting to WordPress: the lock/gate blocks map to `if (!is_user_logged_in())`.
   ============================================================ */

/* ---------- Header auth control: logged-out pill  ⇄  logged-in account ---------- */
.auth { position: relative; display: flex; align-items: center; }
.auth .account { display: none; }                 /* logged-out is the default */
html.is-authed .auth .auth-login { display: none; }
html.is-authed .auth .account { display: block; }
.auth-login { padding-block: 0.7em; }

.account-btn { display: inline-flex; align-items: center; gap: 0.45rem; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-full); }
.avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--lime); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: grid; place-items: center;
  transition: transform .2s var(--spring), box-shadow .2s var(--ease-out);
}
.account-btn:hover .avatar { transform: translateY(-1px); box-shadow: 0 0 0 3px color-mix(in oklch, var(--lime) 35%, transparent); }
.account-caret { display: inline-block; color: color-mix(in oklch, var(--paper) 65%, transparent); font-family: var(--font-display); font-weight: 700; transform: rotate(90deg); transition: transform .2s var(--ease-out); }
.account.is-open .account-caret { transform: rotate(-90deg); }

.account-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 244px;
  background: var(--paper-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
  z-index: 60;
}
.account.is-open .account-menu { opacity: 1; visibility: visible; transform: none; }
.account-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.65rem 0.8rem; }
.account-head .avatar { width: 44px; height: 44px; }
.account-id { display: grid; gap: 1px; min-width: 0; }
.account-name { font-family: var(--font-display); font-weight: 600; font-size: 0.96rem; }
.account-email { font-size: 0.8rem; color: var(--slate); overflow: hidden; text-overflow: ellipsis; }
.account-menu hr { border: 0; border-top: 1px solid var(--line); margin: 0.3rem 0; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; width: 100%;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; text-align: left;
  color: var(--ink); background: transparent; border: 0; cursor: pointer;
  padding: 0.62rem 0.65rem; border-radius: var(--radius-sm);
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.account-menu a:hover, .account-menu button:hover { background: var(--lime-soft); color: var(--lime-deep); }
.account-menu .mi-logout { color: var(--slate); }
.account-menu .mi-logout:hover { background: color-mix(in oklch, var(--slate) 12%, transparent); color: var(--ink); }

/* ---------- Members-only tag (lime-filled variant of .tag) ---------- */
.tag.members { color: var(--ink); background: var(--lime); }

/* ---------- Tool card: Locked ⇄ Unlocked ----------
   A members tool keeps its full card; logged-out blurs the preview and lays a
   lime "Log in to use" lock over it. html.is-authed removes the lock. */
.tool-card.is-members { position: relative; overflow: hidden; }
.tool-card .tl-inner { display: flex; flex-direction: column; gap: 1rem; flex: 1; transition: filter .25s var(--ease-out), opacity .25s var(--ease-out); }
html:not(.is-authed) .tool-card.is-members .tl-inner { filter: blur(3px); opacity: 0.5; pointer-events: none; user-select: none; }
.tool-card .lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.7rem; text-align: center;
  padding: 1.5rem; background: color-mix(in oklch, var(--paper) 50%, transparent);
  backdrop-filter: blur(2px);
}
.tool-card .lock-msg { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.tool-card .lock-cta { margin-top: 0.2rem; }
html.is-authed .tool-card.is-members .lock { display: none; }

/* ---------- Blog single post: members gate (excerpt → blurred body → CTA) ---------- */
.post-gate { position: relative; }
.gate-body { position: relative; }
html:not(.is-authed) .gate-body {
  max-height: 260px; overflow: hidden; filter: blur(4px); opacity: 0.5;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(#000 25%, transparent 92%);
  mask-image: linear-gradient(#000 25%, transparent 92%);
}
.gate-cta { display: none; }
html:not(.is-authed) .gate-cta {
  display: block; position: relative; z-index: 2; margin: -110px auto 0;
  max-width: 540px; text-align: center;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 40px);
}
.gate-cta .tag.members { margin-bottom: 1.1rem; }
.gate-cta h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; }
.gate-cta > p { color: var(--slate); font-size: 1.05rem; line-height: 1.55; margin-top: 0.8rem; }
.gate-cta .btn { margin-top: 1.6rem; }
.gate-cta .gate-note { margin-top: 1.2rem; font-size: 0.86rem; color: var(--slate); }
.gate-cta .gate-note a { color: var(--lime-deep); font-weight: 600; text-decoration: underline; }

/* ---------- Members area: status banner (swaps copy by auth) ---------- */
.member-banner {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--lime-soft); border: 1px solid color-mix(in oklch, var(--lime-deep) 25%, var(--line));
  border-radius: var(--radius-full); padding: 0.7rem 1.2rem;
  font-size: 0.96rem; color: var(--ink); margin-top: 1.8rem;
}
.member-banner a { color: var(--lime-deep); font-weight: 600; text-decoration: underline; }
.member-banner .mb-in { display: none; }
.member-banner .mb-in b { font-weight: 600; }
html.is-authed .member-banner .mb-out { display: none; }
html.is-authed .member-banner .mb-in { display: inline; }

/* ---------- Members area: deal cards (extends .card .card-interactive) ---------- */
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deal-card { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(24px, 2.8vw, 32px); }
.deal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.deal-logo { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.deal-off { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.deal-card h3 { font-size: 1.22rem; line-height: 1.12; }
.deal-desc { color: var(--slate); font-size: 0.98rem; line-height: 1.5; flex: 1; }
.deal-code { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.55rem 0.4rem 0.55rem 0.9rem; border: 1px dashed color-mix(in oklch, var(--lime-deep) 45%, var(--line)); border-radius: var(--radius-sm); background: var(--lime-soft); }
.deal-code code { font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--lime-deep); }
.deal-code .copy { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--lime-deep); background: transparent; border: 0; cursor: pointer; padding: 0.4em 0.7em; border-radius: var(--radius-sm); transition: background .15s var(--ease-out); }
.deal-code .copy:hover { background: color-mix(in oklch, var(--lime) 28%, transparent); }
.deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.2rem; }
.deal-expiry { font-size: 0.8rem; color: var(--slate); }
.deal-card .tl-open { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--lime-deep); display: inline-flex; align-items: center; gap: 0.4em; }
.deal-card:hover .tl-open .arr { transform: translateX(4px); }
.deal-card .tl-open .arr { transition: transform .2s var(--ease-out); }

/* ---------- Members area: updates / announcements list ---------- */
.update-list { border-top: 1px solid var(--line); }
.update { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; padding: clamp(22px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); }
.update-date { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--slate); }
.update-main h3 { font-size: 1.28rem; line-height: 1.12; }
.update-main p { color: var(--slate); font-size: 1.02rem; line-height: 1.6; margin-top: 0.6rem; max-width: 64ch; }

/* ---------- Member-component responsive ---------- */
@media (max-width: 900px) {
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  /* prioritize the new auth control on small screens — newsletter CTA stays available in-page (#signup) */
  .nav-newsletter { display: none; }
}
@media (max-width: 640px) {
  .deals-grid { grid-template-columns: 1fr; }
  .update { grid-template-columns: 1fr; gap: 0.5rem; }
  .update-date { flex-direction: row; align-items: center; gap: 0.8rem; }
  .account-menu { right: 0; }
}

/* ============================================================
   WordPress theme supplement — real images + WP-generated markup
   (additive only; does not alter the original OptForce design)
   ============================================================ */
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card .cover { background: var(--ink-3, #1b1e24); }
.post-cover-wrap .cover img { border-radius: var(--radius-lg); }

/* WP pagination in the OptForce style */
.pagination, .nav-links.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: clamp(24px, 4vw, 48px); }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none;
  background: var(--paper, #fff); transition: border-color .15s, background .15s;
}
.pagination .page-numbers:hover { border-color: var(--slate); }
.pagination .page-numbers.current { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Members gate (server-rendered single post) */
.post-gate { margin-top: 24px; }
.post-gate .gate-cta {
  border: 1px solid var(--line); border-radius: var(--radius-lg, 16px);
  padding: clamp(24px, 4vw, 40px); text-align: center; background: var(--paper, #fff);
}
.post-gate .gate-cta h3 { margin: 12px 0 6px; }
.post-gate .gate-cta .gate-note { margin-top: 14px; font-size: 13px; color: var(--slate); }

/* WP admin bar offset for the sticky nav */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Comments-free blog: hide default reply links if any slip in */
.post-body .reply { display: none; }
