:root {
    
    --navy: #14532D;
    --navy-dark: #052E16;
    /* --primary: #84CC16; */
    --primary: #65A30D;
    --primary-dark: #65A30D;
    --primary-light: #ECFCCB;
    --primary-pale: #F7FEE7;
    --highlight: #22C55E;
    --highlight-dark: #16A34A;

    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F0F2F4;
    --gray-200: #E1E5E9;
    --gray-300: #CED5DB;
    --gray-500: #8A96A3;
    --gray-700: #5B6776;
    --border: #E1E5E9;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --mono: 'Manrope', system-ui, sans-serif;

    --container: 1280px;
    --container-wide: 1440px;
    --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--navy);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

.promo-banner {
    background: var(--primary-light);
    padding: 14px 0;
    border-bottom: 1px solid var(--primary-light);
}
.promo-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}
.promo-icon {
    width: 44px; height: 44px;
    background: white;
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--primary-dark);
    flex-shrink: 0;
}
.promo-icon svg { width: 24px; height: 24px; }
.promo-text {
    font-size: 15px;
    color: var(--navy);
    font-weight: 500;
}
.promo-text strong { font-weight: 700; }
.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1.5px solid var(--primary-dark);
    color: var(--primary-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    transition: all .15s;
}
.promo-btn:hover { background: var(--primary-dark); color: white; }
.promo-btn svg { width: 16px; height: 16px; }


.promo-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    position: relative;
    padding-right: 40px;   /* space for close button */
}
.promo-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--navy);
    background: transparent;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.promo-close:hover {
    background: rgba(20,83,45,.08);
    color: var(--navy-dark);
}
.promo-close svg {
    width: 14px;
    height: 14px;
}
@media (max-width: 760px) {
    .promo-inner { padding-right: 32px; }
    .promo-close { width: 28px; height: 28px; }
}


.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 12px;
    margin-right: 8px;
    border-right: 1px solid var(--border);
    transition: opacity .15s;
}
.logo:hover { opacity: .85; }

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.badge-new {
    background: #f97316; /* Orange */
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    display: inline-block;
    transform: translateY(-1px);
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    border-radius: 5px;
    transition: background .15s;
}
.nav a:hover { background: var(--gray-100); }
.nav a.active { color: var(--primary-dark); }
.nav-icon-btn {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--navy);
    transition: background .15s;
    margin: 0 4px;
}
.nav-icon-btn:hover { background: var(--gray-100); }
.nav-icon-btn svg { width: 17px; height: 17px; }
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.sign-in {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}
.sign-in svg { width: 15px; height: 15px; }
.sign-in:hover { color: var(--primary-dark); }

.hero {
    padding: 90px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-flyer {
    position: absolute;
    color: var(--primary-dark);
    opacity: .14;
    pointer-events: none;
    animation: floatIcon var(--dur, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
.hero-flyer svg { width: 100%; height: 100%; stroke-width: 1.5; }
@keyframes floatIcon {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
    25%      { transform: translate(6px, -12px) rotate(calc(var(--rot, 0deg) + 6deg)); }
    50%      { transform: translate(-4px, -20px) rotate(calc(var(--rot, 0deg) - 4deg)); }
    75%      { transform: translate(-8px, -10px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}
.flyer-1  { top: 8%;   left: 4%;   width: 44px; height: 44px; opacity: .20; --rot: -8deg;  --dur: 9s;   --delay: 0s; }
.flyer-2  { top: 22%;  left: 10%;  width: 32px; height: 32px; opacity: .14; --rot: 12deg;  --dur: 7s;   --delay: 1.2s; }
.flyer-3  { top: 48%;  left: 6%;   width: 52px; height: 52px; opacity: .12; --rot: -15deg; --dur: 11s;  --delay: .6s; }
.flyer-4  { top: 72%;  left: 14%;  width: 38px; height: 38px; opacity: .16; --rot: 8deg;   --dur: 8.5s; --delay: 2s; }
.flyer-5  { top: 85%;  left: 3%;   width: 46px; height: 46px; opacity: .14; --rot: -22deg; --dur: 10s;  --delay: 1.5s; }
.flyer-6  { top: 10%;  right: 5%;  width: 48px; height: 48px; opacity: .18; --rot: 15deg;  --dur: 9.5s; --delay: .3s; }
.flyer-7  { top: 30%;  right: 12%; width: 30px; height: 30px; opacity: .14; --rot: -10deg; --dur: 7.5s; --delay: 2.4s; }
.flyer-8  { top: 52%;  right: 8%;  width: 54px; height: 54px; opacity: .13; --rot: 20deg;  --dur: 12s;  --delay: 1.8s; }
.flyer-9  { top: 70%;  right: 15%; width: 36px; height: 36px; opacity: .16; --rot: -6deg;  --dur: 8s;   --delay: .9s; }
.flyer-10 { top: 88%;  right: 4%;  width: 42px; height: 42px; opacity: .14; --rot: 18deg;  --dur: 10.5s;--delay: 2.2s; }
.flyer-11 { top: 4%;   left: 25%;  width: 28px; height: 28px; opacity: .12; --rot: -25deg; --dur: 6.5s; --delay: 1.7s; }
.flyer-12 { top: 6%;   right: 22%; width: 34px; height: 34px; opacity: .13; --rot: 30deg;  --dur: 8.8s; --delay: .5s; }
.flyer-13 { top: 92%;  left: 32%;  width: 30px; height: 30px; opacity: .13; --rot: -14deg; --dur: 7.8s; --delay: 2.6s; }
.flyer-14 { top: 90%;  right: 28%; width: 26px; height: 26px; opacity: .12; --rot: 22deg;  --dur: 6.8s; --delay: 1.1s; }
.flyer-15 { top: 55%;  left: 22%;  width: 24px; height: 24px; opacity: .10; --rot: -30deg; --dur: 9.2s; --delay: 3s; }
.flyer-16 { top: 40%;  right: 24%; width: 22px; height: 22px; opacity: .10; --rot: 40deg;  --dur: 8.2s; --delay: 2.8s; }

.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--highlight);
    color: white;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    border-radius: 999px;
    margin-bottom: 26px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 6.5vw, 78px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--navy);
    margin-bottom: 24px;
    display: block;
    min-height: 2.10em;
    transition: none !important;
}
.hero h1 > *,
.hero h1 em {
    display: block !important;
    font-style: italic !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    line-height: 1.02 !important;

    min-height: 1.02em;
    white-space: nowrap !important;
}
/* Text "Every pixel," — no italic */
.hero h1::first-line,
.hero h1 > span:not(em) {
    font-style: normal;
    color: var(--navy);
}
.hero-sub {
    font-size: 17px;
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 32px;
}
.hero-search { position: relative; max-width: 720px; margin: 0 auto 26px; }
.hero-search input {
    width: 100%;
    padding: 16px 170px 16px 58px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--navy);
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 999px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.hero-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-pale); }
.hero-search input::placeholder { color: var(--gray-500); }
.hero-search .search-icon {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    width: 19px; height: 19px; color: var(--gray-500); pointer-events: none;
}
.hero-search .kbd {
    position: absolute; right: 130px; top: 50%; transform: translateY(-50%);
    display: flex; gap: 4px; pointer-events: none;
}
.hero-search .kbd kbd {
    font-family: var(--mono); font-size: 11px; padding: 3px 7px;
    background: var(--gray-100); border: 1px solid var(--gray-200);
    border-radius: 5px; color: var(--gray-700);
}
.hero-search .search-btn {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    padding: 0 26px;
    background: var(--navy); color: white;
    font-family: var(--font-body); font-size: 14px; font-weight: 700;
    border-radius: 999px;
    transition: background .15s;
}
.hero-search .search-btn:hover { background: var(--primary-dark); }

.hero-actions {
    display: flex; justify-content: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 44px;
}
.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px; font-weight: 700; line-height: 1;
    border-radius: 6px;
    transition: all .15s;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-yellow {
    background: var(--highlight); color: white;
    border-color: var(--highlight);
}
.btn-yellow:hover {
    background: var(--highlight-dark); border-color: var(--highlight-dark);
}
.btn-outline-navy {
    background: white; color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: white; }
.btn svg { width: 15px; height: 15px; }

.quick-links {
    display: flex; justify-content: center;
    gap: 36px; flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    max-width: 900px; margin: 0 auto;
}
.quick-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600; color: var(--navy);
}
.quick-link svg { width: 16px; height: 16px; color: var(--primary-dark); }
.quick-link:hover { color: var(--primary-dark); }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 40px 0 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box {
    padding: 28px 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: all .2s var(--ease);
    position: relative; overflow: hidden;
}
.stat-box::before {
    content: "";
    position: absolute; top: 12px; right: 12px;
    width: 22px; height: 22px;
    background-image: var(--stat-icon);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .1;
    pointer-events: none;
}
.stat-box:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(132,204,22,.12);
    transform: translateY(-2px);
}
.stat-num {
    font-family: var(--font-display);
    font-size: 34px; font-weight: 700;
    letter-spacing: -0.03em; line-height: 1;
    color: var(--navy); margin-bottom: 8px;
}
.stat-num span { color: var(--primary-dark); }
.stat-lbl { font-size: 13px; color: var(--gray-700); font-weight: 500; }

.section { padding: 60px 0; }
.section-gray { background: var(--gray-50); }

.promo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.promo-card {
    display: flex; flex-direction: column;
    padding: 30px 26px 26px;
    border-radius: 12px;
    position: relative; overflow: hidden;
    min-height: 300px;
    border: 1px solid transparent;
    transition: transform .2s;
}
.promo-card:hover { transform: translateY(-3px); }
.promo-card.yellow { background: var(--primary-pale); border-color: var(--primary-light); }
.promo-card.navy { background: var(--navy); color: white; border-color: var(--navy); }
.promo-card.blue { background: var(--primary-pale); border-color: var(--primary-light); }
.promo-tag {
    display: inline-block; align-self: flex-start;
    padding: 4px 10px;
    font-family: var(--mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: 4px;
    background: var(--primary-dark); color: white;
    margin-bottom: 18px;
}
.promo-card.navy .promo-tag { background: var(--highlight); color: white; }
.promo-illustration {
    flex: 1; display: grid; place-items: center;
    padding: 12px 0 20px;
}
.promo-illustration svg { max-width: 150px; max-height: 110px; }
.promo-card h3 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.2;
    margin-bottom: 8px;
}
.promo-card p {
    font-size: 13.5px; line-height: 1.55;
    color: var(--gray-700); margin-bottom: 16px;
}
.promo-card.navy p { color: #B8C7DC; }
.promo-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    color: var(--primary-dark);
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.06);
    transition: gap .15s;
}
.promo-card.navy .promo-cta { color: var(--highlight); border-top-color: rgba(255,255,255,.1); }
.promo-cta:hover { gap: 12px; }
.promo-cta svg { width: 12px; height: 12px; }

.toolkit-section { padding: 90px 0; position: relative; overflow: hidden; }
.toolkit-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.toolkit-bg-icon {
    position: absolute;
    color: var(--primary-dark);
    opacity: .08;
    animation: floatIcon var(--dur, 10s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.toolkit-bg-icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.tb-1 { top: 6%; right: 3%; width: 40px; height: 40px; --rot: 12deg; --dur: 9s; }
.tb-2 { top: 42%; left: 2%; width: 34px; height: 34px; --rot: -18deg; --dur: 11s; --delay: 2s; opacity: .06; }
.tb-3 { bottom: 8%; right: 8%; width: 38px; height: 38px; --rot: 24deg; --dur: 8.5s; --delay: 1s; opacity: .07; }

.toolkit-inner { position: relative; z-index: 1; }
.toolkit-head { max-width: 620px; margin-bottom: 44px; }
.toolkit-eyebrow {
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    margin-bottom: 14px;
}
.toolkit-eyebrow::before { content: "// "; }
.toolkit-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.05; color: var(--navy);
    margin-bottom: 16px;
}
.toolkit-title em { font-style: italic; color: var(--primary-dark); font-weight: 700; }
.toolkit-desc {
    font-size: 16px; line-height: 1.6;
    color: var(--gray-700); max-width: 520px;
}
.toolkit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tk-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    display: flex; flex-direction: column;
    transition: all .2s var(--ease);
}
.tk-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(20,83,45,.06);
}
.tk-card.large { grid-column: span 7; min-height: 380px; }
.tk-card.small { grid-column: span 5; min-height: 380px; }
.tk-card.tint-yellow { background: var(--primary-pale); border-color: var(--primary-light); }
.tk-card.tint-dark { background: var(--navy); border-color: var(--navy); color: white; }
.tk-tag {
    display: inline-block; align-self: flex-start;
    padding: 4px 10px;
    font-family: var(--mono);
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.06em;
    border-radius: 4px;
    background: var(--gray-100); color: var(--gray-700);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}
.tk-tag.hot { background: var(--highlight); color: white; border-color: var(--highlight); }
.tk-tag.dark { background: var(--highlight); color: white; border-color: var(--highlight); }
.tk-art { flex: 1; display: grid; place-items: center; padding: 20px 0 28px; }
.tk-art svg { max-width: 180px; max-height: 140px; }
.tk-card h3 {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.15;
    margin-bottom: 8px; color: var(--navy);
}
.tk-card.tint-dark h3 { color: white; }
.tk-card p {
    font-size: 14px; line-height: 1.6;
    color: var(--gray-700); margin-bottom: 20px;
    max-width: 440px;
}
.tk-card.tint-dark p { color: #B8C7DC; }
.tk-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    color: var(--navy);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    transition: gap .15s, color .15s;
}
.tk-link:hover { gap: 14px; color: var(--primary-dark); }
.tk-link svg { width: 12px; height: 12px; }
.tk-card.tint-dark .tk-link { color: white; border-top-color: rgba(255,255,255,.12); }
.tk-card.tint-dark .tk-link:hover { color: var(--highlight); }

.library-section { padding: 80px 0; background: var(--gray-50); }
.library-header { text-align: center; margin-bottom: 44px; }
.library-header .eyebrow {
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary-dark); margin-bottom: 14px;
}
.library-header h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700; letter-spacing: -0.025em;
    line-height: 1.1; color: var(--navy);
    margin-bottom: 14px;
}
.library-header p {
    font-size: 16px; color: var(--gray-700);
    max-width: 520px; margin: 0 auto;
}
.library-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
}
.library-side {
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    background: white;
}

/* Tabs */
.library-side-tabs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.side-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gray-100);
    border: 1.5px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s var(--ease);
    text-align: left;
    width: 100%;
}
.side-tab:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}
.side-tab.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.side-tab-count {
    font-family: var(--mono);
    font-size: 10.5px;
    opacity: .7;
}
.side-tab.active .side-tab-count { opacity: .9; }

.library-main { padding: 24px; }
.library-toolbar {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.library-toolbar-search { flex: 1; position: relative; min-width: 220px; }
.library-toolbar-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--gray-50);
    font: inherit; font-size: 13.5px;
    color: var(--navy); outline: none;
    transition: border-color .15s, background .15s;
}
.library-toolbar-search input:focus { border-color: var(--primary); background: white; }
.library-toolbar-search input[readonly] { cursor: pointer; }
.library-toolbar-search svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px;
    color: var(--gray-500); pointer-events: none;
}
.library-toolbar-meta {
    font-family: var(--mono);
    font-size: 11.5px; color: var(--gray-700);
    white-space: nowrap;
}

.icon-grid-preview {
    width: 100%;
    min-height: 240px;
    /* NO display:grid here! */
}

.preview-panel {
    display: none;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 4px;
}
.preview-panel.active {
    display: grid;
}

.icon-cell {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: var(--gray-50);
    border-radius: 6px;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s;
}
.icon-cell:hover {
    background: var(--primary-pale);
    color: var(--primary-dark);
    transform: scale(1.05);
}
.icon-cell svg { width: 26px; height: 26px; }

.library-cta { text-align: center; margin-top: 36px; }



.code-section { padding: 100px 0; background: var(--gray-50); }
.code-section-inner {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 60px; align-items: center;
}
.code-left .eyebrow {
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    color: var(--primary-dark); margin-bottom: 18px;
}
.code-left .eyebrow::before { content: "// "; }
.code-left h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.05; color: var(--navy);
    margin-bottom: 20px;
}
.code-left p {
    font-size: 16px; line-height: 1.65;
    color: var(--gray-700);
    max-width: 460px; margin-bottom: 28px;
}
.code-left .btn { padding: 13px 24px; }
.code-block {
    background: #0F172A;
    border-radius: 14px;
    padding: 28px 26px;
    font-family: var(--mono);
    font-size: 13px; line-height: 1.7;
    color: #E2E8F0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(15,23,42,.15), 0 4px 12px rgba(15,23,42,.08);
}
.code-block::before {
    content: "";
    position: absolute; top: 14px; left: 18px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 18px 0 0 #F59E0B, 36px 0 0 #10B981;
}
.code-block-inner { margin-top: 22px; white-space: pre; }
.c-comment { color: #64748B; }
.c-tag { color: #F87171; }
.c-attr { color: #FBBF24; }
.c-str { color: #86EFAC; }

.how-section { padding: 90px 0; }
.how-head { text-align: center; margin-bottom: 56px; }
.how-head .eyebrow {
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary-dark); margin-bottom: 14px;
}
.how-head h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700; letter-spacing: -0.025em;
    line-height: 1.1; color: var(--navy);
    margin-bottom: 14px;
}
.how-head p { font-size: 16px; color: var(--gray-700); max-width: 560px; margin: 0 auto; }
.how-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 1080px; margin: 0 auto;
}
.how-card {
    padding: 32px 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
    transition: all .2s var(--ease);
}
.how-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(20,83,45,.06);
}
.how-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--primary-pale); color: var(--primary-dark);
    font-family: var(--mono); font-size: 15px; font-weight: 600;
    margin-bottom: 20px;
}
.how-card h3 {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700;
    letter-spacing: -0.015em; color: var(--navy);
    margin-bottom: 10px; line-height: 1.25;
}
.how-card p { font-size: 14px; line-height: 1.65; color: var(--gray-700); }
.how-arrow {
    position: absolute; top: 50%; right: -14px;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--gray-500); z-index: 2;
}
.how-arrow svg { width: 13px; height: 13px; }
.how-card:last-child .how-arrow { display: none; }

.page-head {
    padding: 40px 0 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono);
    font-size: 12px; color: var(--gray-500);
    margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb-sep { opacity: .4; }
.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.05; color: var(--navy);
    margin-bottom: 10px;
}
.page-head p {
    font-size: 15.5px; color: var(--gray-700);
    max-width: 620px; padding-bottom: 24px;
}

.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    border-radius: 10px;
    margin: 0 0 24px;
    min-height: 100px;
    position: relative;
}
.ad-slot.ad-top { min-height: 90px; margin-top: 8px; margin-bottom: 24px; }
.ad-slot.ad-sidebar { min-height: 250px; margin: 0; padding: 40px 16px; }
.ad-slot.ad-bottom { min-height: 90px; margin-bottom: 40px; margin-top: 32px; }
.ad-label {
    font-family: var(--mono);
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gray-500);
}
.ad-placeholder {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gray-500);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.search-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.search-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: white;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.search-cat:hover {
    background: var(--navy);
    color: white;
}
.search-cat svg {
    width: 16px;
    height: 16px;
}

/* Active (toggled open) state */
.search-cat.active {
    background: var(--navy);
    color: white;
}
.search-cat.active .cat-chevron {
    transform: rotate(180deg);
}
.search-cat .cat-chevron {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    transition: transform .2s ease;
}

.cat-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    max-height: 200px;
    opacity: 1;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
}
.cat-tabs.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}
.search-main { position: relative; }
.search-main input {
    width: 100%;
    padding: 13px 130px 13px 48px;
    font: inherit; font-size: 14.5px;
    color: var(--navy);
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s;
}
.search-main input:focus { border-color: var(--primary); }
.search-main .icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--gray-500); pointer-events: none;
}
.search-main .kbd {
    position: absolute; right: 100px; top: 50%; transform: translateY(-50%);
    display: flex; gap: 3px; pointer-events: none;
}
.search-main .kbd kbd {
    font-family: var(--mono); font-size: 10.5px; padding: 2px 6px;
    background: var(--gray-100); border: 1px solid var(--border);
    border-radius: 4px; color: var(--gray-700);
}
.search-main .go {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    padding: 9px 16px;
    background: var(--navy); color: white;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 600;
    border-radius: 7px;
    transition: background .15s;
}
.search-main .go:hover { background: var(--primary-dark); }
.search-version {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 12px; font-weight: 500;
    color: var(--navy);
    cursor: pointer;
}
.search-version:hover { border-color: var(--navy); }

.cat-tabs {
    display: flex; gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex: none;
    padding: 10px 18px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13.5px; font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s;
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.cat-tab:hover { border-color: var(--navy); }
.cat-tab.active { background: var(--navy); border-color: var(--navy); color: white; }
.cat-tab-count { font-family: var(--mono); font-size: 10.5px; opacity: .65; }
.cat-tab.active .cat-tab-count { opacity: .9; }

.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 24px 0 80px;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
    padding-right: 32px;
    border-right: 1px solid var(--border);
}


.side-group { padding: 18px 0; border-bottom: 1px solid var(--border); }
.side-group:first-child { padding-top: 0; }
.side-group:last-child { border-bottom: 0; }
.side-title {
    font-family: var(--mono);
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-500); margin-bottom: 12px;
}
.color-field { margin-bottom: 16px; }
.color-field:last-child { margin-bottom: 0; }
.color-label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.color-row { display: grid; grid-template-columns: 40px 1fr; gap: 6px; margin-bottom: 8px; }
.color-native {
    width: 100%; height: 36px; padding: 3px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.color-hex {
        width: 100%;
    padding: 0 10px;
    font-family: var(--mono); font-size: 12px;
    color: var(--navy); background: white;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    text-transform: uppercase;
}
.color-hex:focus { border-color: var(--primary); }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.swatch {
    aspect-ratio: 1;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,.1);
    cursor: pointer;
    transition: transform .12s var(--ease);
    padding: 0;
}
.swatch:hover { transform: scale(1.15); z-index: 2; }
.sel {
    width: 100%;
    padding: 10px 12px;
    font: inherit; font-size: 13.5px;
    color: var(--navy); background: white;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    outline: none;
    cursor: pointer;
}
.sel:focus { border-color: var(--primary); }
.range-head {
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 600; color: var(--navy);
    margin-bottom: 8px;
}
.range-head span:last-child {
    color: var(--gray-500); font-weight: 500;
    font-family: var(--mono); font-size: 11.5px;
}
input[type="range"] { width: 100%; accent-color: var(--primary-dark); }

/* TOOLBAR */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.toolbar-info {
    font-family: var(--mono);
    font-size: 12px; color: var(--gray-500);
}
.toolbar-info strong { color: var(--navy); font-weight: 500; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.toolbar-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); }
.toolbar-sort select {
    padding: 7px 10px;
    font: inherit; font-size: 13px;
    color: var(--navy); background: white;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    outline: none; cursor: pointer;
}
.view-toggle {
    display: inline-flex; gap: 2px;
    padding: 3px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 9px;
}
.view-toggle button { padding: 6px 10px; border-radius: 6px; color: var(--gray-500); transition: all .15s; }
.view-toggle button:hover { color: var(--navy); }
.view-toggle button.active { background: var(--navy); color: white; }
.view-toggle svg { width: 14px; height: 14px; }

/* ICON GRID */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    border-top: 1.5px solid var(--border);
    border-left: 1.5px solid var(--border);
    background: white;
    border-radius: 12px;
    overflow: hidden;
}
.icon-tile {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: white;
    border-right: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    cursor: pointer;
    transition: all .12s var(--ease);
    color: var(--navy);
}
.icon-tile:hover { background: var(--primary-pale); color: var(--primary-dark); }
.icon-tile:hover .tile-tip { opacity: 1; transform: translateY(0); }
.tile-svg { width: 44px; height: 44px; transition: transform .15s var(--ease); }
.icon-tile:hover .tile-svg { transform: scale(1.15); }
.tile-tip {
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translate(-50%, 6px);
    background: var(--navy);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: all .15s var(--ease);
    pointer-events: none;
    z-index: 3;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

/* PAGINATION */
.pagination {
    display: flex; justify-content: center;
    gap: 6px; margin-top: 40px; flex-wrap: wrap;
}
.pg-btn {
    min-width: 40px; height: 40px;
    padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono);
    font-size: 13px; font-weight: 500;
    color: var(--navy); background: white;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    transition: all .15s;
}
.pg-btn:hover { border-color: var(--navy); }
.pg-btn.active { background: var(--navy); border-color: var(--navy); color: white; }
.pg-btn.dots { border: 0; background: transparent; cursor: default; opacity: .5; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20,83,45,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
}
.modal.open { display: flex; }

.modal-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(20,83,45,.35);
    position: relative;
    overflow: hidden;
    animation: modalFade .3s ease;
}
@keyframes modalFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Horizontal split card */
.modal-card-h {
    width: min(820px, 100%);
    max-height: 92vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--gray-500);
    display: grid;
    place-items: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 20;
    transition: all .15s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--navy);
    background: var(--gray-50);
    transform: rotate(90deg);
}

/* LEFT — preview */
.modal-left {
    padding: 28px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--white);
}
.modal-preview {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background-color: var(--gray-50);
    background-image:
        linear-gradient(45deg, var(--gray-100) 25%, transparent 25%),
        linear-gradient(-45deg, var(--gray-100) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--gray-100) 75%),
        linear-gradient(-45deg, transparent 75%, var(--gray-100) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.modal-preview svg {
    max-width: 70%;
    max-height: 70%;
    display: block;
}
.modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    letter-spacing: -0.015em;
    margin: 0;
}

.modal-right {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 92vh;
}
.modal-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.modal-controls .color-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 7px;
}
.modal-controls .color-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
}
.modal-controls .color-native {
    width: 100%;
    height: 40px;
    padding: 3px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}
.modal-controls .color-hex {
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    outline: none;
    text-transform: uppercase;
    min-width: 0;
}
.modal-controls .color-hex:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-pale);
}
.modal-controls .sel {
    width: 100%;
    padding: 10px 14px;
    font: inherit;
    font-size: 13.5px;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    outline: none;
    cursor: pointer;
}
.modal-controls .range-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.modal-controls .range-head span:last-child {
    color: var(--gray-500);
    font-family: var(--font-mono);
    font-size: 11.5px;
}
.modal-controls input[type="range"] {
    width: 100%;
    accent-color: var(--primary-dark);
}

.modal-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.modal-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    width: 100%;
}
.dl-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary-dark);
}
.dl-btn strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    line-height: 1.2;
}
.dl-btn:hover {
    border-color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20,83,45,.08);
}

.dl-btn.primary {
    background: var(--navy);
    border-color: var(--navy);
    padding: 15px 20px;
}
.dl-btn.primary svg { color: var(--primary); }
.dl-btn.primary strong { color: white; font-size: 14.5px; }
.dl-btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.dl-btn.ghost svg { color: var(--gray-700); }
.dl-btn.ghost:hover svg { color: var(--navy); }

/* PNG Dropdown */
.png-dropdown {
    position: relative;
    width: 100%;
}
.png-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--primary-pale);
    border: 1.5px solid var(--primary-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    width: 100%;
}
.png-trigger:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-1px);
}
.png-trigger.open {
    border-color: var(--primary-dark);
    background: var(--primary-light);
}
.png-trigger .icon {
    width: 18px;
    height: 18px;
    color: var(--primary-dark);
    flex-shrink: 0;
}
.png-trigger .label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-align: left;
    flex: 1;
    min-width: 0;
}
.png-trigger .label strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    white-space: nowrap;
}
.png-trigger .label span {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.2;
}
.png-trigger .chev {
    width: 14px;
    height: 14px;
    color: var(--primary-dark);
    transition: transform .2s;
    flex-shrink: 0;
}
.png-trigger.open .chev {
    transform: rotate(180deg);
}

.png-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20,83,45,.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 30;
    animation: menuUp .15s ease;
}
@keyframes menuUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.png-menu.open { display: flex; }

.png-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all .12s;
    font-family: inherit;
    text-align: left;
    width: 100%;
}
.png-option:hover { background: var(--primary-pale); }
.png-option strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.png-option span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 720px) {
    .modal-card-h { grid-template-columns: 1fr; max-height: 94vh; }
    .modal-left { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px; }
    .modal-preview { max-width: 240px; margin: 0 auto; }
    .modal-right { padding: 20px; }
    .modal-actions-row { grid-template-columns: 1fr; }
}

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 72px 0 40px;
    text-align: center;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: opacity .15s;
}
.footer-logo:hover { opacity: .85; }

.footer-logo-img {
    height: 74px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 760px) {
    .logo-img { height: 28px; }
    .footer-logo-img { height: 36px; }
}

/* Tagline */
.footer-tagline {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 40px;
}

/* Nav — pill links */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}
.footer-nav a {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    border-radius: 99px;
    transition: all .15s;
}
.footer-nav a:hover {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

/* Divider */
.footer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 28px;
}

/* Bottom row */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-copy {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gray-500);
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gray-500);
    transition: color .15s;
}
.footer-links a:hover {
    color: var(--navy);
}

/* Responsive */
@media (max-width: 640px) {
    .site-footer {
        padding: 56px 0 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .promo-cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .how-grid { grid-template-columns: 1fr; max-width: 500px; }
    .how-arrow { display: none; }
    .library-preview { grid-template-columns: 1fr; }
    .library-side { border-right: 0; border-bottom: 1px solid var(--border); }
    .library-side-tabs { flex-direction: row; flex-wrap: wrap; }
    .side-tab { flex: 1; min-width: 100px; }
    .tk-card.large, .tk-card.small { grid-column: span 12; min-height: auto; }
    .code-section-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-flyer { display: none; }
    .hero-flyer.flyer-1, .hero-flyer.flyer-6, .hero-flyer.flyer-8 { display: block; opacity: .10; }

    /* Icons page */
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        padding: 20px;
        background: var(--gray-50);
        border-radius: 14px;
        border: 1.5px solid var(--border);
    }
    .side-group { padding: 0; border-bottom: 0; }
    .search-bar { grid-template-columns: 1fr; }
    .search-cat, .search-version { display: none; }
    .search-main input { padding-right: 90px; }
    .search-main .kbd { display: none; }
}

@media (max-width: 760px) {
    .header-inner { height: 60px; }
    .nav { display: none; }
    .promo-inner { flex-direction: column; text-align: center; gap: 14px; }
    .promo-text { font-size: 14px; }
    .hero { padding: 60px 0 40px; }
    .hero-search input { padding: 15px 130px 15px 52px; font-size: 14px; }
    .hero-search .kbd { display: none; }
    .hero-search .search-btn { padding: 0 20px; font-size: 13px; }
    .quick-links { gap: 20px; }
    .library-side-tabs { flex-direction: column; }
    .side-tab { flex: none; }
}

@media (max-width: 640px) {
    .container, .container-wide { padding: 0 20px; }
    .page-head h1 { font-size: 28px; }
    .icon-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
    .tile-svg { width: 24px; height: 24px; }
}



.typed-wrap {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    white-space: nowrap;
    contain: layout style;
}

/* Invisible ghost — this is the ONLY thing that affects layout */
.typed-ghost {
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    display: inline-block;
}

/* Live content — completely out of flow */
.typed-live {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

/* Override: LEFT-aligned inside .code-left section */
.code-left .typed-live {
    left: 0;
    transform: translateY(-50%);
    justify-content: flex-start;
}

.typed-word {
    display: inline-block;
    white-space: nowrap;
    font: inherit;
    letter-spacing: inherit;
    /* Hard-lock height so it never triggers a parent reflow */
    height: 1em;
    line-height: 1em;
}

.typed-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    margin-left: 4px;
    background: currentColor;
    /* Slower discrete blink = fewer repaints */
    animation: typedBlink 1.2s step-end infinite;
    flex-shrink: 0;
}

@keyframes typedBlink {
    0%, 60%   { opacity: 1; }
    61%, 100% { opacity: 0; }
}

/* ─── Colors per context ─────────────────────────────────── */
.hero h1 em {
    display: block;
    font-style: italic;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.02;
}
.hero h1 em .typed-live     { color: var(--primary-dark); }
.hero h1 em .typed-cursor   { background: var(--primary-dark); width: 4px; }

.library-header h2 .typed-live     { color: var(--primary-dark); }
.library-header h2 .typed-cursor   { background: var(--primary-dark); }

.code-left h2 .typed-live          { color: var(--primary-dark); }
.code-left h2 .typed-cursor        { background: var(--primary-dark); }

.how-head h2 .typed-live           { color: var(--primary-dark); }
.how-head h2 .typed-cursor         { background: var(--primary-dark); }



.how-head h2 .non-live          { color: var(--primary-dark); }


.g-section {
    background: #FFFFFF;
    color: var(--navy);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.g-pin-wrap {
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    position: relative;
}
.g-intro {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.g-track {
    display: flex;
    gap: 24px;
    padding: 0 32px;
    will-change: transform;
}
.g-panel {
    flex: none;
    width: 400px;
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 4px 24px rgba(20, 83, 45, .04);
}
.g-panel-num {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
}
.g-panel-title {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--navy);
}
.g-panel-title em {
    font-style: italic;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    color: var(--primary-dark);
}
.g-panel-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--gray-700);
}
.g-panel-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: auto;
}
.g-panel-icon {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-pale);
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
}
.g-panel-icon svg { width: 32px; height: 32px; }
.g-panel-footer {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.g-panel.hero-panel {
    width: 540px;
    background: linear-gradient(135deg, var(--primary-pale), #FFFFFF);
    border-color: var(--primary-light);
    justify-content: center;
}
.g-panel.hero-panel .g-panel-title {
    font-size: 60px;
}
.g-panel.hero-panel .g-panel-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.g-panel.hero-panel .btn.primary {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}
.g-panel.hero-panel .btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.g-panel.hero-panel .btn.ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--border);
}
.g-panel.hero-panel .btn.ghost:hover {
    background: var(--gray-100);
    border-color: var(--navy);
}

/* Progress bar */
.g-progress {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: var(--gray-200);
    border-radius: 99px;
    overflow: hidden;
    z-index: 3;
}
.g-progress-bar {
    height: 100%;
    background: var(--primary-dark);
    width: 0%;
    border-radius: 99px;
    transform-origin: left;
}

/* Responsive */
@media (max-width: 1024px) {
    .g-pin-wrap {
        height: auto;
        min-height: 0;
        padding: 60px 0;
    }
    .g-track {
        flex-wrap: wrap;
        padding: 0 24px;
    }
    .g-panel,
    .g-panel.hero-panel {
        width: 100%;
    }
    .g-progress {
        display: none;
    }
}
@media (max-width: 640px) {
    .g-panel {
        padding: 28px;
    }
    .g-panel-title {
        font-size: 34px;
    }
    .g-panel.hero-panel .g-panel-title {
        font-size: 44px;
    }
    .g-panel-icon svg {
        width: 24px;
        height: 24px;
    }
}


.builder-head-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--primary-pale) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.builder-head {
    max-width: 720px;
    margin: 0 auto;
}
.builder-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 18px;
}
.builder-head h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--navy);
    margin-bottom: 16px;
}
.builder-head h1 em {
    font-style: italic;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    color: var(--primary-dark);
}
.builder-head p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   CUSTOM ICON BUILDER — Body Section
   ============================================================ */
.builder-body-section {
    padding: 60px 0 100px;
    background: var(--white);
}
.builder-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.builder-preview-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(20,83,45,.06);
}
.preview-stage {
    aspect-ratio: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    place-items: center;
    background-color: var(--gray-50);
    background-image:
        linear-gradient(45deg, var(--gray-100) 25%, transparent 25%),
        linear-gradient(-45deg, var(--gray-100) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--gray-100) 75%),
        linear-gradient(-45deg, transparent 75%, var(--gray-100) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.preview-stage svg,
.preview-stage img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(20,83,45,.08));
}
.preview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}
.preview-info-row {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.preview-info-row:not(:last-child) { border-right: 1px solid var(--border); }
.preview-label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.preview-value {
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
}

/* Download bar */
.download-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20,83,45,.05);
}
.dl-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--navy);
    color: white;
    border: 0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.dl-main:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.dl-main svg { width: 18px; height: 18px; }

.dl-select {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 14px 6px 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    min-width: 130px;
    position: relative;
}
.dl-select:hover { border-color: var(--navy); }
.dl-select-label {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1px;
}
.dl-select select {
    background: transparent;
    border: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 20px;
    width: 100%;
}
.dl-select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray-500);
    border-bottom: 2px solid var(--gray-500);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* Copy SVG button */
.copy-svg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s;
    width: 100%;
}
.copy-svg-btn:hover {
    border-color: var(--navy);
    background: var(--gray-50);
    transform: translateY(-1px);
}
.copy-svg-btn svg { width: 16px; height: 16px; color: var(--primary-dark); }

/* Controls */
.builder-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(20,83,45,.06);
}
.builder-controls::-webkit-scrollbar { width: 6px; }
.builder-controls::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

.mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 8px;
}
.mode-tab {
    padding: 10px 12px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.mode-tab svg { width: 15px; height: 15px; }
.mode-tab:hover { color: var(--navy); }
.mode-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 6px rgba(20,83,45,.08);
}

.ctrl-group {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.ctrl-group:first-of-type { padding-top: 0; }
.ctrl-group:last-of-type { border-bottom: 0; }
.ctrl-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.ctrl-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.ctrl-hint {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gray-500);
}
.ctrl-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, background .15s;
}
.ctrl-input:focus {
    border-color: var(--primary);
    background: var(--white);
}
.emoji-quick {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-top: 8px;
}
.emoji-pick {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all .12s;
}
.emoji-pick:hover {
    background: var(--primary-pale);
    border-color: var(--primary);
    transform: scale(1.08);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background: var(--gray-50);
    cursor: pointer;
    transition: all .15s;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-pale);
}
.upload-zone-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
}
.upload-zone-icon svg { width: 22px; height: 22px; }
.upload-zone-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.upload-zone-hint {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}
#fileInput { display: none; }

.upload-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary-pale);
    border: 1px solid var(--primary-light);
    border-radius: 10px;
    margin-top: 12px;
}
.upload-file-thumb {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.upload-file-thumb img { width: 100%; height: 100%; object-fit: contain; }
.upload-file-meta { flex: 1; min-width: 0; }
.upload-file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upload-file-size {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--gray-500);
    letter-spacing: 0.02em;
    margin-top: 2px;
}
.upload-file-remove {
    width: 28px;
    height: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--gray-700);
    transition: all .12s;
    flex-shrink: 0;
}
.upload-file-remove:hover {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #B91C1C;
}
.upload-file-remove svg { width: 13px; height: 13px; }

.mode-panel { display: none; }
.mode-panel.active { display: block; }

.ctrl-select {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}
.ctrl-select:focus { border-color: var(--primary); }

.shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px 10px;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.shape-btn:hover { border-color: var(--primary); }
.shape-btn.active {
    background: var(--primary-pale);
    border-color: var(--primary-dark);
}
.shape-btn > span:last-child {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: var(--gray-700);
    text-transform: uppercase;
}
.shape-btn.active > span:last-child { color: var(--primary-dark); font-weight: 600; }

.shape-preview {
    width: 24px;
    height: 24px;
    background: var(--navy);
    display: block;
}
.shape-preview-rounded { border-radius: 6px; }
.shape-preview-square { border-radius: 2px; }
.shape-preview-circle { border-radius: 50%; }
.shape-preview-none {
    background: transparent;
    border: 2px dashed var(--gray-300);
    border-radius: 4px;
}

.color-field { margin-bottom: 16px; }
.color-field:last-child { margin-bottom: 0; }
.color-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.color-input-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.color-native {
    width: 100%;
    height: 40px;
    padding: 3px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}
.color-hex {
    padding: 0 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    outline: none;
    text-transform: uppercase;
    transition: border-color .15s;
}
.color-hex:focus { border-color: var(--primary); }

.swatch-row {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 4px;
}
.swatch {
    aspect-ratio: 1;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,.12);
    cursor: pointer;
    padding: 0;
    transition: transform .12s;
}
.swatch:hover { transform: scale(1.18); z-index: 2; position: relative; }

.ctrl-range {
    width: 100%;
    accent-color: var(--primary-dark);
    height: 24px;
}

.ctrl-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all .15s;
}
.ctrl-reset:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
}
.ctrl-reset svg { width: 14px; height: 14px; }

.builder-toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--navy);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    z-index: 300;
    box-shadow: 0 12px 32px rgba(20,83,45,.35);
}
.builder-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
    .builder-layout { grid-template-columns: 1fr; }
    .builder-controls {
        position: static;
        max-height: none;
    }
}
@media (max-width: 640px) {
    .builder { padding: 40px 0 60px; }
    .builder-head h1 { font-size: 30px; }
    .preview-stage { padding: 24px; }
    .download-bar { grid-template-columns: 1fr; }
    .shape-grid { grid-template-columns: repeat(2, 1fr); }
    .swatch-row { grid-template-columns: repeat(9, 1fr); }
    .preview-info { grid-template-columns: 1fr; }
    .preview-info-row:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}



.legal {
    padding: 60px 0 100px;
    background: var(--white);
}
.legal-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}
.legal-head {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.legal-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    margin-bottom: 14px;
}
.legal-head h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 10px;
}
.legal-meta {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gray-500);
    margin-bottom: 18px;
}
.legal-intro {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--gray-700);
}
.legal-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}
.legal-body p {
    margin-bottom: 18px;
}
.legal-body p strong {
    color: var(--navy);
    font-weight: 600;
}
.legal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.legal-body ul li {
    padding: 8px 0 8px 26px;
    position: relative;
    line-height: 1.75;
}
.legal-body ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 17px;
    width: 6px;
    height: 6px;
    background: var(--primary-dark);
    border-radius: 50%;
}
.legal-body a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity .15s;
}
.legal-body a:hover {
    opacity: .7;
}

@media (max-width: 640px) {
    .legal { padding: 40px 0 60px; }
    .legal-head h1 { font-size: 28px; }
    .legal-body { font-size: 14.5px; }
}



.story-hero {
    padding: 90px 0 60px;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-pale) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.story-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}
.story-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.story-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: var(--navy);
    margin-bottom: 24px;
}
.story-hero h1 em {
    font-style: italic;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    color: var(--primary-dark);
}
.story-lede {
    font-size: 17px;
    line-height: 1.65;
    color: var(--gray-700);
    max-width: 620px;
    margin: 0 auto;
}

.story-body {
    padding: 80px 0 100px;
    background: var(--white);
}
.story-body-inner {
    max-width: 780px;
    margin: 0 auto;
}

/* Chapter */
.story-chapter {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 40px 0;
    /* border-bottom: 1px solid var(--border); */
}
.story-chapter:last-of-type { border-bottom: 0; }

.story-chapter-num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--primary-light);
    padding-top: 4px;
}
.story-chapter-content h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}
.story-chapter-content p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 14px;
}
.story-chapter-content p:last-child { margin-bottom: 0; }
.story-chapter-content strong {
    color: var(--navy);
    font-weight: 600;
}
.story-chapter-content a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.story-chapter-content a:hover { opacity: .75; }

/* Stats strip */
.story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 40px 0;
    margin: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.story-stat {
    text-align: center;
}
.story-stat-num {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}
.story-stat-lbl {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* Closing */
.story-closing {
    margin-top: 40px;
    padding: 48px 40px;
    background: var(--navy);
    color: white;
    border-radius: 20px;
    text-align: center;
}
.story-closing h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 12px;
}
.story-closing p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.72);
    max-width: 480px;
    margin: 0 auto 26px;
}
.story-closing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--primary);
    color: var(--navy);
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 10px;
    transition: all .15s;
}
.story-closing-btn:hover {
    background: white;
    transform: translateY(-2px);
}
.story-closing-btn svg { width: 14px; height: 14px; }


.flyout-sidebar { width: 0; background: #ffffff; border-right: 1px solid transparent; transition: 0.3s; flex-shrink: 0; overflow: hidden; z-index: 5; }
.flyout-sidebar.open { width: 320px; border-right: 1px solid #e5e7eb; }
.flyout-inner { width: 320px; height: 100%; display: flex; flex-direction: column; }
.flyout-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.flyout-header h3 { margin: 0; font-size: 14px; font-weight: 700; }
.btn-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #6b7280; transition: 0.2s; }
.btn-close:hover { color: #ef4444; }

.flyout-content { display: none; flex: 1; flex-direction: column; overflow: hidden; min-height: 0; }
.flyout-content.active { display: flex; }

.icon-search-box { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.icon-search-box input { width: 100%; padding: 10px; border: 1px solid #e5e7eb; border-radius: 6px; outline: none; }
.cat-tabs { padding: 12px 20px; display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid #e5e7eb; flex-shrink: 0; }
.cat-tab { padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 600; border: none; cursor: pointer; background: #f3f4f6; color: #6b7280; white-space: nowrap; transition: 0.15s; }
.cat-tab.active { background: #14532D; color: #fff; }
.cat-tab:hover:not(.active) { background: #e5e7eb; color: #111827; }


.ip-grid { padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; overflow-y: auto; align-content: start; }
.ip-item { aspect-ratio: 1; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 8px; cursor: pointer; transition: 0.2s; }
.ip-item:hover { border-color: #14532D; background: #f0fdf4; }
.ip-item svg { width: 100%; height: 100%; fill: #14532D; }

.shapes-grid { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; overflow-y: auto; align-content: start; }
.shape-item { aspect-ratio: 1; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #f9fafb; transition: 0.2s; }
.shape-item:hover { border-color: #14532D; background: #f0fdf4; }
.shape-item svg { width: 100%; height: 100%; max-width: 60px; max-height: 60px; fill: #14532D; }

.bg-grid { padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; flex: 1; overflow-y: auto; align-content: start; }
.bg-item { height: 70px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; transition: 0.2s; }
.bg-item:hover { border-color: #14532D; }



/* Responsive */
@media (max-width: 640px) {
    .story-hero { padding: 60px 0 40px; }
    .story-body { padding: 48px 0 72px; }
    .story-chapter {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 32px 0;
    }
    .story-chapter-num { font-size: 32px; }
    .story-chapter-content h2 { font-size: 22px; }
    .story-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .story-closing { padding: 36px 24px; }
    .story-closing h3 { font-size: 22px; }
}



.contact-head-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--primary-pale) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.contact-head-section .container {
    max-width: 720px;
}
.contact-head {
    margin: 0 auto;
}
.contact-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    margin-bottom: 18px;
}
.contact-head h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--navy);
    margin-bottom: 16px;
}
.contact-head h1 em {
    font-style: italic;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--primary-dark);
}
.contact-head p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
    max-width: 480px;
    margin: 0 auto;
}

.contact-form-section {
    padding: 60px 0 100px;
    background: var(--white);
}
.contact-inner {
    max-width: 620px;
    margin: 0 auto;
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(20,83,45,.08);
}

/* Alerts */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
}
.contact-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-alert-success {
    background: var(--primary-pale);
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
}
.contact-alert-error {
    background: #FEE2E2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
}
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.cf-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--navy);
    margin-bottom: 8px;
}
.cf-label span { color: #DC2626; }
.cf-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.cf-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-pale);
}
.cf-input::placeholder { color: var(--gray-500); }
.cf-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}
.cf-help {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 6px;
}
.cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    background: var(--navy);
    color: white;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    margin-top: 4px;
}
.cf-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.cf-submit svg { width: 16px; height: 16px; }

/* Direct email line */
.contact-direct {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--gray-700);
}
.contact-direct a {
    color: var(--primary-dark);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.contact-direct a:hover { opacity: .75; }

/* Responsive */
@media (max-width: 640px) {
    .contact-head-section { padding: 56px 0 40px; }
    .contact-form-section { padding: 40px 0 72px; }
    .contact-card { padding: 26px; }
    .cf-row { grid-template-columns: 1fr; gap: 0; }
    .cf-textarea { min-height: 130px; }
}