/* ==========================================================================
 fewertools, shared v7 design DNA
 Palette, typography, components used across the site.
 Page-specific styles (hero, stack showcase, etc.) live with the page.
 ========================================================================== */

/* ─── TOKENS ──────────────────────────────────── */
:root, [data-theme="light"] {
 --green: #1E3A2A;
 --green-hover: #264A36;
 --green-accent: #2D6A47;
 --green-soft: rgba(30,58,42,0.08);
 --green-mid: rgba(30,58,42,0.14);
 --green-glow: rgba(30,58,42,0.22);
 --amber: #B35C2A;
 --amber-soft: rgba(179,92,42,0.12);
 --red: #B03A3A;
 --red-soft: rgba(176,58,58,0.10);
 --cream: #F5F2EB;
 --cream-alt: #EBE6DC;
 --cream-deep: #DDD6C8;
 --ink: #1A1A17;
 --ink-soft: #4A4A46;
 --mute: #8C8A83;
 --mute-readable: #6F6D67;
 --line: rgba(26,26,23,0.11);
 --line-strong: rgba(26,26,23,0.18);
 --card: #FEFDFB;
 --card-alt: #F9F6F0;
 --shadow-sm: 0 1px 2px rgba(26,26,23,0.06);
 --shadow-md: 0 4px 12px rgba(26,26,23,0.06), 0 2px 4px rgba(26,26,23,0.04);
 --shadow-lg: 0 14px 40px rgba(26,26,23,0.10), 0 4px 12px rgba(26,26,23,0.06);
 --shadow-xl: 0 40px 80px rgba(26,26,23,0.12), 0 12px 30px rgba(26,26,23,0.06);
 --display: 'Fraunces', 'Times New Roman', serif;
 --body: 'Inter', system-ui, sans-serif;
 --ease: cubic-bezier(0.22,1,0.36,1);
 /* Semantic aliases (used by newer pages) */
 --text: var(--ink);
 --text-2: var(--ink-soft);
 --text-3: var(--mute);
 --bg: var(--cream);
 --bg-2: var(--card);
 --bg-3: var(--card-alt);
 --accent: var(--green);
}
[data-theme="dark"] {
 --green: #6EB890;
 --green-hover: #8BCEA9;
 --green-accent: #8BCEA9;
 --green-soft: rgba(110,184,144,0.12);
 --green-mid: rgba(110,184,144,0.2);
 --green-glow: rgba(110,184,144,0.3);
 --amber: #E08A4E;
 --amber-soft: rgba(224,138,78,0.14);
 --red: #E67070;
 --red-soft: rgba(230,112,112,0.12);
 --cream: #0F1411;
 --cream-alt: #151A17;
 --cream-deep: #1A1F1C;
 --ink: #EDEBE5;
 --ink-soft: #B8B6B0;
 --mute: #7A7874;
 --mute-readable: #A8A69F;
 --line: rgba(237,235,229,0.08);
 --line-strong: rgba(237,235,229,0.16);
 --card: #1A1F1C;
 --card-alt: #15191648;
 --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
 --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
 --shadow-lg: 0 14px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
 --shadow-xl: 0 40px 80px rgba(0,0,0,0.5), 0 12px 30px rgba(0,0,0,0.3);
}

/* ─── RESET ──────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
 font-family: var(--body);
 color: var(--ink); background: var(--cream);
 background-image:
 radial-gradient(rgba(26,26,23,0.025) 1px, transparent 1px),
 radial-gradient(rgba(26,26,23,0.015) 1px, transparent 1px);
 background-size: 24px 24px, 48px 48px;
 background-position: 0 0, 12px 12px;
 -webkit-font-smoothing: antialiased;
 line-height: 1.5; overflow-x: hidden;
 transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
[data-theme="dark"] body {
 background-image:
 radial-gradient(rgba(237,235,229,0.02) 1px, transparent 1px),
 radial-gradient(rgba(237,235,229,0.015) 1px, transparent 1px);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .container { padding: 0 20px; } }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
 font-family: var(--display); font-weight: 400;
 letter-spacing: -0.02em; line-height: 1.05;
 color: var(--ink);
 font-variation-settings: "opsz" 144;
}

/* ─── TOOL LOGO SYSTEM ──────────────────────── */
.tl {
 position: relative;
 display: flex; align-items: center; justify-content: center;
 background: #fff; color: var(--ink);
 flex-shrink: 0; font-family: var(--body); font-weight: 700;
 overflow: hidden;
 border: 1px solid var(--line);
}
.tl::after {
 content: attr(data-letter);
 position: absolute; inset: 0;
 display: flex; align-items: center; justify-content: center;
 font-weight: 700; z-index: 0;
 color: var(--ink);
}
.tl:has(img)::after { display: none; }
.tl img {
 position: relative; z-index: 1;
 width: 72%; height: 72%; object-fit: contain;
 opacity: 0; transition: opacity 0.35s var(--ease);
}
.tl img.loaded { opacity: 1; }
.tl-46 { width: 46px; height: 46px; border-radius: 12px; }
.tl-46::after { font-size: 20px; }
.tl-44 { width: 44px; height: 44px; border-radius: 10px; }
.tl-44::after { font-size: 18px; }
.tl-36 { width: 36px; height: 36px; border-radius: 8px; }
.tl-36::after { font-size: 15px; }
.tl-32 { width: 32px; height: 32px; border-radius: 8px; }
.tl-32::after { font-size: 13px; }
.tl-28 { width: 28px; height: 28px; border-radius: 7px; }
.tl-28::after { font-size: 12px; }
.tl-26 { width: 26px; height: 26px; border-radius: 6px; }
.tl-26::after { font-size: 11px; }
.tl-22 { width: 22px; height: 22px; border-radius: 5px; }
.tl-22::after { font-size: 9px; }

/* ─── VERDICT CHIPS ─────────────────────────── */
.verdict {
 display: inline-flex; align-items: center; gap: 6px;
 padding: 4px 10px; border-radius: 6px;
 font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
 text-transform: uppercase;
 white-space: nowrap;
}
.verdict::before {
 content: ''; width: 5px; height: 5px; border-radius: 50%;
 background: currentColor;
}
.verdict.pick { background: var(--green); color: var(--cream); }
.verdict.pick::before { background: var(--cream); }
.verdict.recommended { background: var(--green-soft); color: var(--green); }
.verdict.skip { background: var(--red-soft); color: var(--red); }
.verdict.replace { background: var(--amber-soft); color: var(--amber); }
.verdict.new { background: var(--amber); color: var(--cream); }
.verdict.new::before { background: var(--cream); }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
 display: inline-flex; align-items: center; justify-content: center; gap: 8px;
 padding: 11px 22px; border-radius: 10px;
 font-size: 14px; font-weight: 600;
 transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn.btn-primary { background: var(--green); color: var(--cream); }
.btn.btn-primary:hover { background: var(--green-hover); color: var(--cream); transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }
.btn.btn-ghost { color: var(--ink); }
.btn.btn-ghost:hover { background: var(--green-soft); color: var(--ink); }
a.btn, a.btn:hover, .btn.btn-primary, .btn.btn-ghost { text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ─── NAV ────────────────────────────────────── */
.nav {
 position: sticky; top: 0; z-index: 100;
 background: rgba(245,242,235,0.85);
 backdrop-filter: blur(20px) saturate(180%);
 -webkit-backdrop-filter: blur(20px) saturate(180%);
 border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .nav { background: rgba(15,20,17,0.85); }
.nav-inner {
 display: flex; align-items: center; justify-content: space-between;
 padding: 18px 0; gap: 32px; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; }
.brand-word {
 font-family: var(--body); font-weight: 600; font-size: 20px;
 letter-spacing: -0.02em; color: var(--ink);
}
.nav-links { display: flex; gap: 2px; align-items: center; flex: 1; justify-content: center; }
.nav-links > a, .nav-links > .has-menu > a {
 padding: 9px 14px; border-radius: 8px;
 font-size: 14px; font-weight: 500; color: var(--ink);
 transition: background 0.2s var(--ease);
 display: inline-flex; align-items: center; gap: 6px;
 cursor: pointer;
}
.nav-links > a:hover, .nav-links > .has-menu:hover > a { background: var(--green-soft); }
.caret { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.2s var(--ease); }
.has-menu:hover .caret { transform: rotate(180deg); }

.has-menu { position: relative; }
.has-menu::after {
 content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 22px;
}
.mega {
 position: absolute; top: calc(100% + 10px); left: 50%;
 transform: translateX(-50%) translateY(8px);
 background: var(--card); border: 1px solid var(--line-strong);
 border-radius: 16px; padding: 24px;
 box-shadow: var(--shadow-xl);
 width: 640px;
 opacity: 0; pointer-events: none;
 transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
 z-index: 120;
}
.has-menu:hover .mega, .has-menu:focus-within .mega {
 opacity: 1; pointer-events: auto;
 transform: translateX(-50%) translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item {
 display: flex; align-items: center; gap: 12px;
 padding: 10px 12px; border-radius: 8px;
 transition: background 0.15s var(--ease);
}
.mega-item:hover { background: var(--green-soft); }
.mega-emoji { font-size: 22px; width: 28px; text-align: center; }
.mega-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.mega-count { font-size: 11px; color: var(--mute); }
.mega-cta {
 grid-column: 1 / -1; margin-top: 16px; padding-top: 16px;
 border-top: 1px solid var(--line);
 display: flex; justify-content: space-between; align-items: center;
 font-size: 13px; color: var(--ink-soft);
}
.mega-cta a { color: var(--green); font-weight: 600; }
.mega.mega-sm { width: 480px; padding: 18px; }
.mega-grid.mega-grid-2 { grid-template-columns: repeat(2, 1fr); }

.nav-utility { font-size: 13px; color: var(--ink-soft); padding: 8px 10px; border-radius: 8px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav-utility:hover { background: var(--green-soft); color: var(--green); }

.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-search {
 display: flex; align-items: center; justify-content: center;
 width: 40px; height: 40px; border-radius: 10px;
 color: var(--ink); transition: background 0.2s var(--ease);
}
.nav-search:hover { background: var(--green-soft); }
.theme-btn {
 width: 40px; height: 40px; border-radius: 10px;
 display: flex; align-items: center; justify-content: center;
 color: var(--ink); transition: all 0.25s var(--ease);
}
.theme-btn:hover { background: var(--green-soft); transform: rotate(20deg); }
.theme-btn .sun { display: block; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }

.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-burger svg { color: var(--ink); }
.mobile-drawer {
 position: fixed; inset: 0;
 background: rgba(0,0,0,0.4);
 backdrop-filter: blur(4px);
 z-index: 200;
 opacity: 0; pointer-events: none;
 transition: opacity 0.3s var(--ease);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-panel {
 position: absolute; top: 0; right: 0; bottom: 0;
 width: min(340px, 90vw);
 background: var(--cream); padding: 18px 18px 0;
 transform: translateX(100%);
 transition: transform 0.35s var(--ease);
 display: flex; flex-direction: column;
}
.mobile-drawer.open .mobile-panel { transform: translateX(0); }
.mobile-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; }
.mobile-panel .mobile-flat { padding: 12px 16px; border-radius: 10px; font-weight: 500; color: var(--ink); font-size: 15px; display: flex; align-items: center; }
.mobile-panel .mobile-flat:hover, .mobile-panel .mobile-flat:active { background: var(--green-soft); color: var(--green); }
.mobile-panel .mobile-flat.mobile-cta { background: var(--green); color: var(--cream); font-weight: 600; }
.mobile-panel .mobile-flat.mobile-cta:hover, .mobile-panel .mobile-flat.mobile-cta:active { background: var(--ink); color: var(--cream); }
.mobile-group { border-radius: 10px; }
.mobile-group > summary { list-style: none; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.mobile-group > summary::-webkit-details-marker, .mobile-group > summary::marker { display: none; }
.mobile-group > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s var(--ease); margin-right: 6px; opacity: 0.6; }
.mobile-group[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.mobile-group > summary:hover, .mobile-group > summary:active { background: var(--green-soft); color: var(--green); }
.mobile-group > a { display: block; padding: 10px 16px 10px 32px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
.mobile-group > a:hover, .mobile-group > a:active { background: var(--green-soft); color: var(--green); }
.mobile-auth { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.mobile-auth .btn { justify-content: center; }
.mobile-close { align-self: flex-end; padding: 8px; border-radius: 50%; background: var(--green-soft); color: var(--ink); margin-bottom: 4px; }
.mobile-theme-row {
 display: flex; align-items: center; justify-content: space-between;
 padding: 14px 16px; margin-top: auto;
 border-top: 1px solid var(--line);
 font-size: 14px; color: var(--ink-soft);
}
.mobile-theme-btn {
 padding: 8px 14px; border-radius: 8px;
 background: var(--green-soft); color: var(--green);
 font-size: 13px; font-weight: 600;
 display: inline-flex; align-items: center; gap: 6px;
}
.mobile-theme-btn .sun { display: block; }
.mobile-theme-btn .moon { display: none; }
[data-theme="dark"] .mobile-theme-btn .sun { display: none; }
[data-theme="dark"] .mobile-theme-btn .moon { display: block; }

@media (max-width: 1280px) { .nav .nav-actions .nav-utility.desktop { display: none !important; } }
@media (max-width: 1100px) { .nav-links, .btn-ghost.desktop, .nav-utility.desktop { display: none !important; } .nav-burger { display: flex !important; } }
/* Below 700px we also drop the inline theme button + Join Free to make room. Both available in the drawer. */
@media (max-width: 700px) { .nav-actions > .theme-btn, .nav-actions > [data-ft-signup] { display: none !important; } }

/* ─── MOBILE OVERFLOW SAFETY (applies site-wide) ─── */
html, body { overflow-x: hidden; max-width: 100%; }
/* Grid/flex children need min-width:0 or they push their parent wider than the column */
.sec-inner > *, .sec-content, .hero-grid > *, .foot-main > *, .pillars-grid > * { min-width: 0 !important; }
.slider-track-wrap { overflow: hidden !important; width: 100% !important; max-width: 100% !important; }
.slider { overflow: hidden !important; max-width: 100% !important; }
/* Defensive: images should never overflow */
img, svg, video { max-width: 100%; height: auto; }

/* Mobile nav sizing */
@media (max-width: 700px) {
 .nav-inner { padding-left: 16px; padding-right: 16px; }
 .brand-word { font-size: 16px; }
 .nav-actions { gap: 6px; }
 .nav-actions .btn.nav-actions .btn-primary.nav-actions .btn-ghost { padding: 8px 14px; font-size: 13px; }
 .container { padding-left: 16px; padding-right: 16px; }
}
/* Very small screens */
@media (max-width: 420px) {
 .nav-actions .btn.btn-primary { padding: 8px 12px; font-size: 12px; }
 .theme-btn.nav-search { width: 36px; height: 36px; }
}

/* ─── SKIP LINK + FOCUS ──────────────────────── */
.skip-link {
 position: absolute; top: -100%; left: 16px;
 padding: 12px 24px; background: var(--green); color: var(--cream);
 border-radius: 8px; font-weight: 600; font-size: 14px;
 z-index: 10000; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }
:focus-visible {
 outline: 2px solid var(--green);
 outline-offset: 3px;
 border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ─── SCROLL REVEAL ─────────────────────────── */
.reveal {
 opacity: 0; transform: translateY(24px);
 transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ─── EYEBROWS + SECTION TITLES ─────────────── */
.sec-eyebrow {
 display: inline-flex; align-items: center; gap: 8px;
 font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
 color: var(--mute); text-transform: uppercase;
 margin-bottom: 14px;
}
.sec-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sec-eyebrow.amber::before { background: var(--amber); }
.sec-title {
 font-size: clamp(28px, 3vw, 36px);
 font-weight: 400; letter-spacing: -0.025em;
 margin-bottom: 12px; font-variation-settings: "opsz" 144;
}
.sec-sub { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.sec-link {
 color: var(--green); font-weight: 600; font-size: 13px;
 display: inline-flex; align-items: center; gap: 6px;
 transition: gap 0.2s var(--ease);
}
.sec-link:hover { gap: 10px; }
.sec-link::after { content: '→'; }
.sec-content { position: relative; }
.sec-center { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-center .sec-eyebrow { justify-content: center; }
.sec-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .sec-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ─── EYEBROW PILL (for hero-style) ─────────── */
.eyebrow {
 display: inline-flex; align-items: center; gap: 10px;
 padding: 7px 16px; border-radius: 999px;
 background: var(--card); color: var(--ink-soft);
 border: 1px solid var(--line-strong);
 font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
 text-transform: uppercase;
 margin-bottom: 32px;
}
.eyebrow::before {
 content: ''; width: 7px; height: 7px; border-radius: 50%;
 background: var(--green); animation: pulse 2s infinite;
}

/* ─── SEARCH WRAP ────────────────────────────── */
.search-wrap {
 background: var(--card); border: 1px solid var(--line-strong);
 border-radius: 14px; padding: 6px 6px 6px 20px;
 display: flex; align-items: center; gap: 10px;
 max-width: 560px;
 box-shadow: var(--shadow-sm);
 transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-wrap:focus-within { border-color: var(--green); box-shadow: 0 4px 24px var(--green-glow); }
.search-wrap svg { color: var(--mute); flex-shrink: 0; }
.search-wrap input {
 flex: 1; border: none; outline: none; background: transparent;
 font-size: 15px; color: var(--ink); padding: 13px 0;
}
.search-wrap input::placeholder { color: var(--mute); }
.search-wrap .btn-primary { padding: 12px 22px; }

/* ─── TRUST MARQUEE ──────────────────────────── */
.trust-bar {
 padding: 28px 0;
 border-top: 1px solid var(--line);
 display: flex; align-items: center; gap: 48px;
}
.trust-label {
 font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
 color: var(--mute); text-transform: uppercase;
 flex-shrink: 0; max-width: 160px;
}
.marquee {
 flex: 1; overflow: hidden;
 mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
 -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; gap: 56px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.trust-logo {
 display: inline-flex; align-items: center; gap: 8px;
 opacity: 0.55;
 font-family: var(--body); font-weight: 600; font-size: 15px;
 color: var(--ink);
 transition: opacity 0.2s var(--ease);
 white-space: nowrap;
}
.trust-logo:hover { opacity: 0.9; }
.trust-logo img { width: 20px; height: 20px; filter: grayscale(100%); }
[data-theme="dark"] .trust-logo img { filter: grayscale(100%) invert(0.9); }
.trust-logo.stripe.trust-logo.canva {
 font-family: var(--display); font-style: italic; font-size: 19px; letter-spacing: -0.02em;
}

/* ─── STATS BAR ─────────────────────────────── */
.stats { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; } }
.stat { text-align: center; border-right: 1px solid var(--line); padding: 0 24px; position: relative; }
.stat:last-child { border-right: none; }
@media (max-width: 700px) { .stat:nth-child(2) { border-right: none; } .stat { border-right: none; } }
.stat-num {
 font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 400;
 letter-spacing: -0.03em; color: var(--green);
 line-height: 1;
 font-variation-settings: "opsz" 144;
 margin-bottom: 6px;
}
.stat-num .unit { font-size: 0.55em; color: var(--mute); letter-spacing: 0; font-style: italic; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.stat-label .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); margin-right: 6px; vertical-align: 2px; }

/* ─── FEAT CARD (tool card, used on directory, features, what's new) ──── */
.feat-card {
 background: var(--card); border: 1px solid var(--line);
 border-radius: 14px; padding: 22px;
 transition: all 0.25s var(--ease);
 cursor: pointer; position: relative; height: 100%;
 display: flex; flex-direction: column;
 box-shadow: var(--shadow-sm);
 isolation: isolate;
}
.feat-card > *:not(.stretched-link) { position: relative; z-index: 2; pointer-events: none; }
.feat-card .feat-btn { position: relative; z-index: 3; pointer-events: auto; }
.feat-card:hover {
 border-color: var(--green);
 transform: translateY(-3px);
 box-shadow: var(--shadow-lg);
}
.stretched-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.feat-badge {
 position: absolute; top: 14px; right: 14px;
 padding: 4px 9px; border-radius: 5px;
 background: var(--green); color: var(--cream);
 font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
 text-transform: uppercase;
}
.feat-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.feat-logowrap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.feat-name { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.feat-cat {
 font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
 text-transform: uppercase; color: var(--mute);
 padding: 4px 8px; border-radius: 6px; background: var(--cream-alt);
 white-space: nowrap;
}
.feat-desc {
 font-size: 14px; color: var(--ink-soft); line-height: 1.5;
 margin-bottom: 18px; flex: 1;
 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
 overflow: hidden; min-height: 42px;
}
.feat-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.feat-price {
 font-size: 11px; font-weight: 600; color: var(--mute);
 padding: 3px 8px; border-radius: 5px; background: var(--cream-alt);
 letter-spacing: 0.04em;
}
.feat-foot {
 display: flex; align-items: center; justify-content: space-between;
 padding-top: 14px; border-top: 1px solid var(--line);
}
.feat-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 600; }
.feat-rating .star { color: var(--amber); }
.feat-rating .count { color: var(--mute); font-weight: 500; }
.feat-actions { display: flex; gap: 4px; }
.feat-btn {
 width: 32px; height: 32px; border-radius: 8px;
 display: flex; align-items: center; justify-content: center;
 color: var(--mute); transition: all 0.2s var(--ease);
}
.feat-btn:hover { color: var(--green); background: var(--green-soft); }

/* ─── TRUST PILLARS ─────────────────────────── */
.pillars { padding: 48px 0; border-top: 1px solid var(--line); background: var(--card); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 500px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar { display: flex; align-items: flex-start; gap: 14px; }
.pillar-icon {
 width: 36px; height: 36px; border-radius: 50%;
 background: var(--green-soft); color: var(--green);
 display: flex; align-items: center; justify-content: center;
 flex-shrink: 0; transition: transform 0.3s var(--ease);
}
.pillar:hover .pillar-icon { transform: rotate(10deg) scale(1.1); }
.pillar-title {
 font-family: var(--display); font-weight: 500; font-size: 15px;
 letter-spacing: -0.015em; margin-bottom: 4px;
}
.pillar-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* ─── FOOTER ─────────────────────────────────── */
footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--card-alt); }
.foot-subscribe {
 display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
 padding: 28px 32px; margin-bottom: 48px;
 background: var(--green); color: var(--cream); border-radius: 18px;
 align-items: center;
}
[data-theme="dark"] .foot-subscribe { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); }
.foot-sub-eyebrow {
 display: inline-flex; align-items: center; gap: 8px;
 font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
 color: rgba(247, 245, 240, 0.85); margin-bottom: 8px;
}
[data-theme="dark"] .foot-sub-eyebrow { color: var(--mute); }
.foot-sub-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6EE89B; box-shadow: 0 0 0 0 rgba(110,232,155,0.6); animation: nav-pulse 1.6s ease-in-out infinite; }
.foot-sub-text h3 {
 font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px);
 letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 8px;
 color: var(--cream); font-variation-settings: "opsz" 144;
}
[data-theme="dark"] .foot-sub-text h3 { color: var(--ink); }
.foot-sub-text p {
 font-size: 14px; line-height: 1.55; margin: 0; max-width: 380px;
 color: rgba(247, 245, 240, 0.78);
}
[data-theme="dark"] .foot-sub-text p { color: var(--ink-soft); }
.foot-sub-side { display: flex; flex-direction: column; gap: 10px; }
.foot-sub-form {
 display: flex; gap: 6px;
 padding: 6px; background: rgba(255, 255, 255, 0.10);
 border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .foot-sub-form { background: var(--card-alt); border-color: var(--line); }
.foot-sub-form input {
 flex: 1; padding: 11px 14px; border: none; background: transparent;
 color: var(--cream); font-size: 14px; outline: none; font-family: inherit;
 min-width: 0;
}
[data-theme="dark"] .foot-sub-form input { color: var(--ink); }
.foot-sub-form input::placeholder { color: rgba(247, 245, 240, 0.5); }
[data-theme="dark"] .foot-sub-form input::placeholder { color: var(--mute); }
.foot-sub-form button {
 padding: 11px 18px; border-radius: 8px;
 background: var(--cream); color: var(--green); font-weight: 600; font-size: 14px;
 cursor: pointer; border: none;
 transition: transform 0.15s var(--ease);
}
[data-theme="dark"] .foot-sub-form button { background: var(--green); color: var(--cream); }
.foot-sub-form button:hover { transform: translateY(-1px); }
.foot-sub-form button[disabled] { opacity: 0.6; cursor: wait; }
.foot-sub-msg { font-size: 12px; color: rgba(247, 245, 240, 0.72); margin: 0; }
[data-theme="dark"] .foot-sub-msg { color: var(--mute); }
.foot-sub-msg.success { color: #6EE89B; font-weight: 500; }
.foot-sub-msg.error { color: #F5A5A5; font-weight: 500; }
[data-theme="dark"] .foot-sub-msg.success { color: var(--green); }
[data-theme="dark"] .foot-sub-msg.error { color: #C25555; }
.ft-subscribe-consent { font-size: 12px; line-height: 1.5; color: var(--mute); margin: 10px 0 0; }
.foot-sub-side .ft-subscribe-consent { color: #DCE5DF; }
@media (max-width: 700px) {
 .foot-subscribe { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}

.foot-main {
 display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
 gap: 48px; padding-bottom: 40px;
 border-bottom: 1px solid var(--line);
 margin-bottom: 24px;
}
@media (max-width: 800px) { .foot-main { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .foot-main { grid-template-columns: 1fr; } }
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-tagline { font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 18px; }
.foot-social { display: flex; gap: 8px; }
.foot-social a {
 width: 36px; height: 36px; border-radius: 10px;
 display: flex; align-items: center; justify-content: center;
 background: var(--card); border: 1px solid var(--line);
 color: var(--ink-soft);
 transition: all 0.2s var(--ease);
}
.foot-social a:hover { color: var(--green); border-color: var(--green); transform: translateY(-2px); }
.foot-col-title {
 font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
 color: var(--mute-readable); text-transform: uppercase;
 margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13px; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-legal { display: flex; gap: 20px; font-size: 12px; color: var(--mute-readable); }
.foot-legal a { color: var(--mute-readable); }
.foot-legal a:hover { color: var(--ink); }
.foot-copy { font-size: 12px; color: var(--mute-readable); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
 .marquee-track { animation: none !important; }
 .eyebrow::before { animation: none !important; }
 .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── Pulse live-dot (used in nav, news callout, homepage section) ─── */
.nav-cta { display: inline-flex !important; align-items: center; padding: 7px 14px !important; background: var(--green); color: var(--cream) !important; border-radius: 999px; font-weight: 600 !important; transition: all 0.15s var(--ease); }
.nav-cta:hover { background: var(--ink) !important; color: var(--cream) !important; transform: translateY(-1px); }
.nav-pulse { display: inline-flex; align-items: center; gap: 6px; }
.nav-pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); animation: nav-pulse 1.6s ease-in-out infinite; flex-shrink: 0; }
@keyframes nav-pulse {
 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
 50% { transform: scale(0.85); box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
 .nav-pulse-dot { animation: none; }
}

/* ─── LOGO CONTAINER FIX (Phase 11) ─────────────────────────────
   Tool logos sourced from cdn.simpleicons.org are rendered in their brand
   color, which is dark for many tools (Notion #000, Vercel #000, Anthropic
   #181818). Without a stable light background, dark logos disappear in
   dark mode. This rule pins logo containers to a cream background in BOTH
   themes so every logo stays visible. (Apple does this in dark mode too.) */
.rk-logo, .ss10-logo, .bf-logo, .rk-tr-logo, .rk-seg-logo,
.rk-mover-logo, .rk-leader-logo, .mv-logo, .sc-logo,
.td-tool-logo, .tool-logo, .pl-tool-logo {
  background: #F7F5F0 !important;
}
.rk-leader-logo { background: #F7F5F0 !important; border: 1px solid rgba(0,0,0,0.04); }

/* ─────────────────────────────────────────────────────────────────
   FORM SYSTEM v2 · beautiful, consistent across the site
   Use .fx-form on a <form>, .fx-field per field group, .fx-input
   on inputs/textareas, .fx-button on submit buttons.
   ───────────────────────────────────────────────────────────────── */

.fx-form { max-width: 520px; display: flex; flex-direction: column; gap: 18px; font-family: var(--body); }
.fx-form-wide { max-width: 100%; }

.fx-field { display: flex; flex-direction: column; gap: 6px; }
.fx-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.fx-label-required::after { content: ' *'; color: var(--rk-down, #C25555); font-weight: 700; }
.fx-help { font-size: 12.5px; color: var(--mute); line-height: 1.45; margin-top: 2px; }
.fx-error { font-size: 13px; color: var(--rk-down, #C25555); font-weight: 500; margin-top: 4px; line-height: 1.45; display: none; }
.fx-error.show { display: block; }
.fx-success { padding: 14px 18px; border-radius: 10px; background: rgba(13,148,136,0.08); color: var(--rk-up, #0D9488); font-size: 14px; line-height: 1.55; border: 1px solid rgba(13,148,136,0.25); display: none; }
.fx-success.show { display: block; }

.fx-input,
.fx-textarea,
.fx-select {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-family: var(--body);
}
.fx-input:hover, .fx-textarea:hover, .fx-select:hover { border-color: rgba(13,148,136,0.4); }
.fx-input:focus, .fx-textarea:focus, .fx-select:focus {
  outline: none;
  border-color: var(--green);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}
.fx-input::placeholder, .fx-textarea::placeholder { color: var(--mute); opacity: 1; }
.fx-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.fx-select { padding-right: 40px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C8A83' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }

[data-theme="dark"] .fx-input,
[data-theme="dark"] .fx-textarea,
[data-theme="dark"] .fx-select {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .fx-input:focus,
[data-theme="dark"] .fx-textarea:focus,
[data-theme="dark"] .fx-select:focus {
  background: rgba(255,255,255,0.06);
  border-color: var(--green);
}

/* Inline form: input + button on one row (newsletter style) */
.fx-inline { display: flex; gap: 8px; align-items: stretch; max-width: 460px; }
.fx-inline .fx-input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .fx-inline { flex-direction: column; max-width: 100%; } }

/* Buttons */
.fx-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.fx-button:hover { background: var(--green-hover, #0a7c70); border-color: var(--green-hover, #0a7c70); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,148,136,0.18); }
.fx-button:active { transform: translateY(0); }
.fx-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(13,148,136,0.3); }
.fx-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.fx-button-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.fx-button-ghost:hover { background: var(--card-alt); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.fx-button-large { padding: 16px 28px; font-size: 16px; border-radius: 12px; }
.fx-button-block { width: 100%; }

/* Loading state */
.fx-button.is-loading { color: transparent; pointer-events: none; position: relative; }
.fx-button.is-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: fx-spin 0.7s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

/* Form card wrapper (for pages that have a form as the centerpiece) */
.fx-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 8px 32px rgba(20,30,25,0.04);
}
@media (max-width: 600px) { .fx-card { padding: 26px 22px; border-radius: 12px; } }
.fx-card-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.fx-card-title { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--ink); }
.fx-card-title em { font-style: italic; color: var(--green); }
.fx-card-sub { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 28px; }
[data-theme="dark"] .fx-card { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.08); }

/* Two-column field layout (e.g. first name / last name on a row) */
.fx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .fx-row { grid-template-columns: 1fr; } }

/* Trust line under a form (microcopy, e.g. "No spam. Unsubscribe anytime.") */
.fx-trust { font-size: 12.5px; color: var(--mute); margin: 12px 0 0; text-align: center; }
.fx-trust strong { color: var(--ink); font-weight: 600; }

/* Honeypot field (invisible to humans, traps bots) */
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ─── Ownership badge (auto-rendered on /tools/{slug}/ pages) ─── */
.ft-own-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 10px;
  border: 1.5px solid;
  white-space: nowrap;
}
.ft-own-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ft-own-badge--founder  { color: var(--green);  background: var(--green-soft);  border-color: var(--green-mid); }
.ft-own-badge--public   { color: #2C5485;       background: rgba(44,84,133,0.10); border-color: rgba(44,84,133,0.22); }
.ft-own-badge--acquired { color: var(--amber);  background: var(--amber-soft);  border-color: rgba(179,92,42,0.22); }
.ft-own-badge--pe       { color: var(--red);    background: var(--red-soft);    border-color: rgba(176,58,58,0.22); }
[data-theme="dark"] .ft-own-badge--public { color: #92B4DE; background: rgba(146,180,222,0.10); border-color: rgba(146,180,222,0.22); }
