/* ============================================================
   FreeToolZones theme — main stylesheet
   Palette: emerald #0A6E4E, orange #E85A1F, navy #0E1F18,
   light bg #F5F7F5, tint #D7F0E2, muted #4B6357.
   ============================================================ */

:root {
    --ftz-emerald: #0A6E4E;
    --ftz-emerald-dark: #08573E;
    --ftz-orange: #E85A1F;
    --ftz-orange-dark: #C94E1A;
    --ftz-navy: #0E1F18;
    --ftz-bg: #F5F7F5;
    --ftz-tint: #D7F0E2;
    --ftz-muted: #4B6357;
    --ftz-surface: #FFFFFF;
    --ftz-surface-2: #EFF5F1;
    --ftz-text: #0E1F18;
    --ftz-border: #DCE8E0;
    --ftz-hero-bg: #D7F0E2;
    --ftz-hero-blob: #BDE6CE;
    --ftz-shadow: 0 10px 30px rgba(14, 31, 24, 0.10);
    --ftz-shadow-sm: 0 4px 14px rgba(14, 31, 24, 0.08);
    --ftz-radius: 16px;
    --ftz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ftz-hand: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
}

[data-theme="dark"] {
    --ftz-bg: #0E1F18;
    --ftz-tint: #16382A;
    --ftz-muted: #A9C2B4;
    --ftz-surface: #16301F;
    --ftz-surface-2: #1B3A28;
    --ftz-text: #F5F7F5;
    --ftz-border: #2A4A3D;
    --ftz-hero-bg: #143627;
    --ftz-hero-blob: #1B4A35;
    --ftz-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --ftz-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.30);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--ftz-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ftz-text);
    background: var(--ftz-bg);
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    color: var(--ftz-text);
}

a {
    color: var(--ftz-emerald);
}

[data-theme="dark"] a {
    color: #7FD8B4;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-green {
    color: var(--ftz-emerald);
}

[data-theme="dark"] .text-green {
    color: #7FD8B4;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--ftz-emerald);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--ftz-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-white {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--ftz-emerald);
    color: #fff;
    border-color: var(--ftz-emerald);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ftz-emerald-dark);
    color: #fff;
}

.btn-secondary {
    background: var(--ftz-surface);
    color: var(--ftz-emerald);
    border-color: var(--ftz-emerald);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--ftz-tint);
    color: var(--ftz-emerald-dark);
}

.btn-white {
    background: #fff;
    color: var(--ftz-navy);
}

.btn-white:hover,
.btn-white:focus {
    background: var(--ftz-tint);
    color: var(--ftz-navy);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ftz-surface);
    border-bottom: 1px solid var(--ftz-border);
    box-shadow: var(--ftz-shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ftz-tint);
    color: var(--ftz-emerald);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-dark {
    color: var(--ftz-navy);
}

[data-theme="dark"] .logo-dark {
    color: #F5F7F5;
}

.logo-light {
    color: #FFFFFF;
}

.logo-green {
    color: var(--ftz-emerald);
}

.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ftz-text);
    font-weight: 600;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus {
    background: var(--ftz-tint);
    color: var(--ftz-emerald-dark);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list a.is-active {
    background: var(--ftz-emerald);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ftz-border);
    background: var(--ftz-surface-2);
    color: var(--ftz-text);
    cursor: pointer;
}

.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline-flex;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

.more-tools-btn {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--ftz-emerald);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.more-tools-btn:hover,
.more-tools-btn:focus {
    background: var(--ftz-emerald-dark);
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    background: none;
    border: 1px solid var(--ftz-border);
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ftz-text);
    border-radius: 2px;
}

.mobile-nav {
    border-top: 1px solid var(--ftz-border);
    background: var(--ftz-surface);
}

.mobile-nav-list,
.mobile-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 20px 16px;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list a,
.mobile-nav .nav-list a {
    display: block;
    padding: 10px 8px;
    color: var(--ftz-text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--ftz-border);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(560px 320px at 8% 20%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%),
        radial-gradient(640px 380px at 92% 30%, var(--ftz-hero-blob), rgba(255, 255, 255, 0) 70%),
        var(--ftz-hero-bg);
    padding: 56px 0 96px;
    text-align: center;
}

.hero-inner {
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 7px 16px;
    border: 1.5px solid var(--ftz-emerald);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--ftz-emerald-dark);
    font-weight: 700;
    font-size: 14px;
}

[data-theme="dark"] .hero-pill {
    background: rgba(14, 31, 24, 0.35);
    color: #A9E8C8;
}

.hero-title {
    margin: 0;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
}

.hero-title .title-dark {
    color: var(--ftz-navy);
}

[data-theme="dark"] .hero-title .title-dark {
    color: #F5F7F5;
}

.hero-title .title-green {
    color: var(--ftz-emerald);
}

[data-theme="dark"] .hero-title .title-green {
    color: #3ECF8E;
}

.hero-tagline {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--ftz-text);
}

.hero-sub {
    max-width: 560px;
    margin: 12px auto 0;
    color: var(--ftz-muted);
    font-size: 17px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 620px;
    margin: 26px auto 0;
    padding: 7px 7px 7px 18px;
    background: var(--ftz-surface);
    border-radius: 999px;
    box-shadow: var(--ftz-shadow);
}

.hero-search .search-icon {
    flex: 0 0 auto;
    color: var(--ftz-muted);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ftz-text);
    font-size: 16px;
    padding: 10px 0;
}

.hero-search button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 12px 28px;
    background: var(--ftz-emerald);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hero-search button:hover,
.hero-search button:focus {
    background: var(--ftz-emerald-dark);
}

/* Hero illustration: CSS laptop + floating chips + plant + note. */
.hero-visual {
    position: absolute;
    left: 8px;
    bottom: -14px;
    width: 250px;
    height: 190px;
}

.laptop {
    position: absolute;
    left: 30px;
    bottom: 8px;
    width: 200px;
}

.laptop-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 126px;
    background: var(--ftz-navy);
    border: 7px solid #22362C;
    border-radius: 12px 12px 0 0;
}

.laptop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--ftz-emerald);
    color: #fff;
}

.laptop-base {
    height: 11px;
    margin: 0 -14px;
    background: #D8E2DC;
    border-radius: 0 0 12px 12px;
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--ftz-surface);
    color: var(--ftz-emerald);
    font-weight: 800;
    box-shadow: var(--ftz-shadow-sm);
    animation: ftz-float 5s ease-in-out infinite;
}

.chip-1 { top: 6px; left: 4px; color: #2D7FF9; }
.chip-2 { top: -6px; left: 128px; color: #8B5CF6; animation-delay: 0.8s; }
.chip-3 { top: 52px; left: 196px; color: #8B5CF6; font-size: 20px; animation-delay: 1.6s; }
.chip-4 { top: 96px; left: 222px; color: #2D7FF9; font-size: 13px; animation-delay: 2.4s; }

@keyframes ftz-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.plant {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 44px;
    height: 74px;
}

.plant-leaf {
    position: absolute;
    bottom: 26px;
    left: 50%;
    width: 14px;
    height: 40px;
    background: #2E9E6B;
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    transform-origin: bottom center;
}

.leaf-1 { transform: translateX(-50%) rotate(-24deg); }
.leaf-2 { transform: translateX(-50%) rotate(0deg); height: 48px; background: #35B57A; }
.leaf-3 { transform: translateX(-50%) rotate(24deg); }

.plant-pot {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 28px;
    background: #F0F0ED;
    clip-path: polygon(8% 0, 92% 0, 80% 100%, 20% 100%);
    border-radius: 3px;
}

.hand-note {
    position: absolute;
    right: 6px;
    top: 34px;
    margin: 0;
    font-family: var(--ftz-hand);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--ftz-navy);
    transform: rotate(-4deg);
    text-align: left;
}

[data-theme="dark"] .hand-note {
    color: #EAF6EF;
}

.hand-note svg {
    display: block;
    margin-top: 2px;
}

/* ---------- Category bar ---------- */
.cat-bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: stretch;
    margin-top: -52px;
    background: var(--ftz-surface);
    border-radius: 20px;
    box-shadow: var(--ftz-shadow);
    overflow-x: auto;
    scrollbar-width: thin;
}

.cat-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 118px;
    padding: 20px 10px 18px;
    background: none;
    border: 0;
    border-right: 1px solid var(--ftz-border);
    color: var(--ftz-text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.cat-item:last-child {
    border-right: 0;
}

.cat-item:hover,
.cat-item:focus {
    background: var(--ftz-surface-2);
    color: var(--ftz-emerald-dark);
}

.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cat-icon-blue { color: #2D7FF9; }
.cat-icon-red { color: #E5484D; }
.cat-icon-purple { color: #8B5CF6; }
.cat-icon-navy { color: var(--ftz-navy); }
.cat-icon-slate { color: #52616B; }

[data-theme="dark"] .cat-icon-navy { color: #D7F0E2; }

.glyph-t {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.glyph-code {
    font-size: 17px;
    font-weight: 800;
    font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

/* ---------- Section headings ---------- */
.section-head {
    text-align: center;
    margin-bottom: 30px;
}

.section-head h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-head h2::before,
.section-head h2::after {
    content: "";
    height: 2px;
    width: 90px;
    background: var(--ftz-emerald);
    border-radius: 2px;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--ftz-muted);
}

/* ---------- Popular tools ---------- */
.popular {
    padding: 56px 0 10px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--ftz-surface);
    border: 1px solid var(--ftz-border);
    border-radius: var(--ftz-radius);
    box-shadow: var(--ftz-shadow-sm);
    color: var(--ftz-text);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.popular-card:hover,
.popular-card:focus {
    transform: translateY(-3px);
    box-shadow: var(--ftz-shadow);
}

.popular-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    color: #fff;
}

.popular-icon .glyph-t {
    font-size: 28px;
}

.icon-blue { background: #2D7FF9; }
.icon-red { background: #E5484D; }
.icon-purple { background: #8B5CF6; }
.icon-green { background: #22A35B; }
.icon-orange { background: #F59E0B; }
.icon-teal { background: #06A6C4; }

.popular-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-text strong {
    font-size: 16px;
    line-height: 1.3;
}

.popular-text small {
    color: var(--ftz-muted);
    font-size: 13px;
}

.popular-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ftz-emerald);
    color: #fff;
    font-size: 18px;
}

/* ---------- Explorer ---------- */
.explorer {
    padding: 56px 0 10px;
    scroll-margin-top: 84px;
}

.explorer-controls {
    max-width: 860px;
    margin: 0 auto;
}

.explorer-controls input[type="search"] {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid var(--ftz-border);
    border-radius: 999px;
    background: var(--ftz-surface);
    color: var(--ftz-text);
    font-size: 16px;
    box-shadow: var(--ftz-shadow-sm);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    padding: 7px 15px;
    border-radius: 999px;
    border: 1.5px solid var(--ftz-border);
    background: var(--ftz-surface);
    color: var(--ftz-text);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.chip:hover,
.chip:focus {
    border-color: var(--ftz-emerald);
    color: var(--ftz-emerald-dark);
}

.chip.is-active {
    background: var(--ftz-emerald);
    border-color: var(--ftz-emerald);
    color: #fff;
}

.explorer-count {
    text-align: center;
    color: var(--ftz-muted);
    margin: 22px 0 16px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.explorer-card {
    background: var(--ftz-surface);
    border: 1px solid var(--ftz-border);
    border-radius: 13px;
    box-shadow: var(--ftz-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.explorer-card:hover,
.explorer-card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--ftz-shadow);
}

.explorer-card a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    color: var(--ftz-text);
    text-decoration: none;
}

.explorer-card-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.explorer-card-cat {
    color: var(--ftz-muted);
    font-size: 13px;
}

.explorer-empty {
    text-align: center;
    color: var(--ftz-muted);
    padding: 30px 0;
}

/* ---------- Demos ---------- */
.demos {
    padding: 56px 0 10px;
}

.demos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.demo-panel {
    background: var(--ftz-surface);
    border: 1px solid var(--ftz-border);
    border-radius: var(--ftz-radius);
    box-shadow: var(--ftz-shadow-sm);
    padding: 26px;
    scroll-margin-top: 84px;
}

.demo-panel h3 {
    margin: 0;
    font-size: 22px;
}

.demo-desc {
    margin: 6px 0 16px;
    color: var(--ftz-muted);
}

.demo-panel textarea,
.demo-panel input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--ftz-border);
    border-radius: 10px;
    background: var(--ftz-bg);
    color: var(--ftz-text);
    resize: vertical;
}

.wc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.wc-stats li {
    text-align: center;
    padding: 12px 6px;
    background: var(--ftz-tint);
    border-radius: 10px;
}

.wc-stats strong {
    display: block;
    font-size: 22px;
    color: var(--ftz-emerald-dark);
}

[data-theme="dark"] .wc-stats strong {
    color: #A9E8C8;
}

.wc-stats span {
    font-size: 12.5px;
    color: var(--ftz-muted);
}

.pg-output-row {
    display: flex;
    gap: 10px;
}

.pg-output-row input {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

.pg-strength {
    margin: 10px 0 0;
    min-height: 24px;
    font-weight: 600;
    color: var(--ftz-muted);
}

.pg-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0;
}

.pg-row label {
    white-space: nowrap;
}

.pg-row input[type="range"] {
    flex: 1;
    accent-color: var(--ftz-emerald);
}

.pg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.pg-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.pg-options input[type="checkbox"] {
    accent-color: var(--ftz-emerald);
    width: 17px;
    height: 17px;
}

/* ---------- CTA banner ---------- */
.cta {
    padding: 56px 0 10px;
}

.cta-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 36px 44px;
    border-radius: 22px;
    background: linear-gradient(100deg, #0A6E4E 0%, #0E1F18 78%);
    color: #fff;
    box-shadow: var(--ftz-shadow);
}

.cta-text {
    flex: 1;
    min-width: 0;
}

.cta-text h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
}

.cta-text p {
    margin: 8px 0 18px;
    color: #D7F0E2;
}

.cta-chips {
    position: relative;
    flex: 0 0 150px;
    height: 120px;
}

.cta-chip {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ftz-emerald);
    font-weight: 800;
    font-size: 13px;
    box-shadow: var(--ftz-shadow-sm);
}

.cta-chip:nth-child(1) { top: 0; left: 60px; color: #E5484D; }
.cta-chip:nth-child(2) { top: 34px; left: 0; color: #8B5CF6; font-size: 19px; }
.cta-chip:nth-child(3) { top: 62px; left: 84px; color: #2D7FF9; font-size: 12px; }
.cta-chip:nth-child(4) { top: 84px; left: 30px; color: var(--ftz-navy); font-size: 19px; }

/* ---------- FAQ ---------- */
.faq {
    padding: 56px 0 64px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.faq-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.faq-qmark {
    font-size: 220px;
    font-weight: 900;
    line-height: 1;
    color: var(--ftz-emerald);
    opacity: 0.9;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item h3 {
    margin: 0;
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--ftz-tint);
    color: var(--ftz-text);
    font-size: 16.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.faq-q:hover {
    background: #C4E8D3;
}

[data-theme="dark"] .faq-q:hover {
    background: #1E4634;
}

.faq-plus {
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-q[aria-expanded="true"] .faq-plus {
    transform: rotate(45deg);
}

.faq-a {
    padding: 4px 22px 8px;
}

.faq-a p {
    margin: 10px 0;
    color: var(--ftz-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0B2318;
    color: #D7F0E2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 36px;
    padding: 52px 20px 40px;
}

.footer-logo .logo-mark {
    background: rgba(255, 255, 255, 0.12);
    color: #7FD8B4;
}

.footer-tagline {
    margin: 12px 0 4px;
    font-weight: 700;
    color: #fff;
}

.footer-about {
    margin: 0;
    color: #A9C2B4;
    font-size: 14.5px;
}

.footer-heading {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #D7F0E2;
    text-decoration: none;
    font-size: 14.5px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1E4634;
    color: #D7F0E2;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--ftz-emerald);
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 320px;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--ftz-navy);
}

.newsletter-form button {
    padding: 10px 16px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--ftz-emerald);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-form button:hover,
.newsletter-form button:focus {
    background: var(--ftz-emerald-dark);
}

.newsletter-note {
    margin: 10px 0 0;
    color: #F5C89B;
    font-size: 13.5px;
}

.footer-bottom {
    border-top: 1px solid rgba(215, 240, 226, 0.2);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
    color: #A9C2B4;
}

.footer-legal {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal li + li::before {
    content: "|";
    margin-right: 8px;
    color: #4B6357;
}

.footer-legal a {
    color: #D7F0E2;
    font-size: 14px;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: #fff;
    text-decoration: underline;
}

/* ---------- Inner content templates ---------- */
.narrow-content {
    max-width: 860px;
    padding-top: 44px;
    padding-bottom: 64px;
}

.page-title {
    font-size: 34px;
    margin: 0 0 20px;
}

.entry-content {
    overflow-wrap: break-word;
}

.entry-content img {
    border-radius: 12px;
}

.post-card {
    padding: 26px 0;
    border-bottom: 1px solid var(--ftz-border);
}

.post-card:last-child {
    border-bottom: 0;
}

.post-card .post-title {
    margin: 0 0 6px;
    font-size: 24px;
}

.post-title a {
    color: var(--ftz-text);
    text-decoration: none;
}

.post-title a:hover,
.post-title a:focus {
    color: var(--ftz-emerald);
    text-decoration: underline;
}

.post-meta {
    color: var(--ftz-muted);
    font-size: 14px;
    margin: 0 0 10px;
}

.post-thumb {
    display: block;
    margin-bottom: 16px;
}

.post-thumb img,
.page-thumb img {
    border-radius: 14px;
}

.read-more {
    font-weight: 700;
}

.page-links,
.nav-links {
    margin: 24px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-links a,
.page-links > span,
.nav-links a,
.nav-links span {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--ftz-border);
    background: var(--ftz-surface);
    color: var(--ftz-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-links .current,
.page-links > span {
    background: var(--ftz-emerald);
    border-color: var(--ftz-emerald);
    color: #fff;
}

.tool-archive-grid {
    margin-top: 10px;
}

.tool-breadcrumb {
    color: var(--ftz-muted);
    font-size: 14px;
}

.tool-excerpt {
    font-size: 18px;
    color: var(--ftz-muted);
}

.tool-more {
    margin-top: 28px;
}

.not-found {
    text-align: center;
}

.not-found-code {
    margin: 0;
    font-size: 96px;
    font-weight: 900;
    color: var(--ftz-emerald);
    line-height: 1;
}

.search-form {
    display: flex;
    gap: 10px;
    margin: 18px 0;
    max-width: 520px;
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--ftz-border);
    border-radius: 999px;
    background: var(--ftz-surface);
    color: var(--ftz-text);
}

.search-form input[type="submit"] {
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--ftz-emerald);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hand-note {
        position: static;
        transform: rotate(-3deg);
        display: inline-block;
        margin-top: 22px;
        font-size: 26px;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-graphic {
        min-height: 0;
    }

    .faq-qmark {
        font-size: 120px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .more-tools-btn {
        display: none;
    }

    .hero {
        padding: 40px 0 84px;
    }

    .hero-title {
        font-size: 50px;
        letter-spacing: -1px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .section-head h2 {
        font-size: 27px;
    }

    .section-head h2::before,
    .section-head h2::after {
        width: 40px;
    }

    .demos-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px;
    }

    .cta-chips {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-search {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px;
    }

    .hero-search button {
        width: 100%;
    }

    .cat-item {
        min-width: 104px;
        font-size: 13px;
    }

    .wc-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ---------- Tool widgets (v1.1.0) ---------- */
.ftz-tool-widget {
    background: var(--ftz-surface);
    border: 1px solid var(--ftz-border);
    border-radius: var(--ftz-radius);
    box-shadow: var(--ftz-shadow-sm);
    padding: 26px;
    margin: 8px 0 26px;
}

.ftz-widget-loading {
    color: var(--ftz-muted);
    margin: 0;
}

.ftz-field {
    margin: 0 0 16px;
}

.ftz-field:last-child {
    margin-bottom: 0;
}

.ftz-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.ftz-hint {
    color: var(--ftz-muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.ftz-input,
.ftz-textarea,
.ftz-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--ftz-border);
    border-radius: 10px;
    background: var(--ftz-surface);
    color: var(--ftz-text);
}

.ftz-input:focus,
.ftz-textarea:focus,
.ftz-select:focus {
    outline: none;
    border-color: var(--ftz-emerald);
    box-shadow: 0 0 0 3px var(--ftz-tint);
}

.ftz-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.ftz-select {
    appearance: auto;
}

.ftz-file {
    padding: 8px 10px;
}

.ftz-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ftz-row > * {
    flex: 1 1 160px;
    min-width: 0;
}

.ftz-row .ftz-field {
    margin-bottom: 0;
}

.ftz-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 0;
}

.ftz-btn {
    padding: 9px 20px;
    font-size: 15px;
}

.ftz-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 14px 8px 0;
    font-size: 14px;
    cursor: pointer;
}

.ftz-check input {
    accent-color: var(--ftz-emerald);
    width: 16px;
    height: 16px;
}

.ftz-output {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: var(--ftz-surface-2);
    border: 1px solid var(--ftz-border);
    overflow-wrap: break-word;
}

.ftz-output[hidden] {
    display: none;
}

.ftz-output pre,
.ftz-code {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    margin: 0;
}

.ftz-result-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.ftz-error {
    color: #B3261E;
    margin: 0;
    font-weight: 600;
}

[data-theme="dark"] .ftz-error {
    color: #FF9E99;
}

.ftz-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 4px 0;
}

.ftz-stat {
    background: var(--ftz-surface);
    border: 1px solid var(--ftz-border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.ftz-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--ftz-emerald);
    overflow-wrap: break-word;
}

[data-theme="dark"] .ftz-stat-value {
    color: #7FD8B4;
}

.ftz-stat-label {
    font-size: 13px;
    color: var(--ftz-muted);
}

.ftz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ftz-table th,
.ftz-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ftz-border);
}

.ftz-table th {
    font-weight: 700;
    background: var(--ftz-surface);
}

.ftz-notice {
    border-left: 4px solid var(--ftz-orange);
    background: var(--ftz-surface-2);
    border-radius: 0 12px 12px 0;
    padding: 16px 18px;
}

.ftz-notice-title {
    margin: 0 0 6px;
    font-size: 18px;
}

.ftz-notice p {
    margin: 0;
    color: var(--ftz-muted);
}

.ftz-preview {
    margin-top: 16px;
    text-align: center;
}

.ftz-preview img,
.ftz-preview canvas,
.ftz-preview video {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ftz-border);
    background: var(--ftz-surface-2);
}

.ftz-preview canvas {
    cursor: crosshair;
    touch-action: none;
}

.ftz-drop {
    border: 2px dashed var(--ftz-border);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    color: var(--ftz-muted);
}

.ftz-drop.is-over {
    border-color: var(--ftz-emerald);
    background: var(--ftz-tint);
    color: var(--ftz-text);
}

.ftz-color-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.ftz-swatch {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--ftz-border);
}

.ftz-list {
    margin: 0;
    padding-left: 20px;
}

.ftz-list li {
    margin-bottom: 6px;
}

.ftz-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ftz-range-row input[type="range"] {
    flex: 1;
    accent-color: var(--ftz-emerald);
}

.ftz-range-value {
    min-width: 44px;
    text-align: right;
    font-weight: 700;
}

.ftz-frame {
    width: 100%;
    min-height: 320px;
    border: 1px solid var(--ftz-border);
    border-radius: 12px;
    background: #fff;
}

.ftz-big-display {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin: 10px 0;
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .ftz-tool-widget {
        padding: 18px;
    }

    .ftz-row {
        flex-direction: column;
        gap: 0;
    }

    .ftz-row > * {
        flex: none;
    }

    .ftz-row .ftz-field {
        margin-bottom: 16px;
    }
}

/* ---------- Tool icons (v1.1.0) ---------- */
.explorer-card-icon {
    font-size: 26px;
    line-height: 1.25;
}

.popular-icon {
    font-size: 26px;
    line-height: 1;
}

.ftz-tool-icon {
    margin-right: 10px;
}

.ftz-tool-icon:empty {
    display: none;
    margin-right: 0;
}
