/* =========================================================
   KNOWLEDGETECH WEBSITE STYLESHEET
   Navy Blue + Premium Gold Branding
   Responsive UI + Advanced Meta Tag Checker
   ========================================================= */


/* =========================================================
   01. BRAND COLOURS AND GLOBAL VARIABLES
   ========================================================= */

:root {
    --brand-primary: #08243D;
    --brand-secondary: #124D73;
    --brand-accent: #C4923F;
    --brand-accent-dark: #A67627;
    --brand-accent-light: #E4BB77;

    --ink: var(--brand-primary);
    --muted: #536477;
    --blue: var(--brand-secondary);

    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --line: #DCE3E9;
    --out: #F5EEE2;

    --radius: 16px;

    --success: #15803D;
    --warning: #95651C;
    --danger: #DC2626;

    --shadow-sm: 0 3px 12px rgba(8, 36, 61, 0.04);
    --shadow-md: 0 8px 24px rgba(8, 36, 61, 0.08);
}


/* =========================================================
   02. DARK MODE
   ========================================================= */

html[data-theme="dark"] {
    color-scheme: dark;

    --ink: #E8F1F8;
    --muted: #B9C8D5;
    --blue: #E4BB77;

    --bg: #0B1D2D;
    --surface: #122B40;
    --line: #415568;
    --out: #26384A;

    --success: #86EFAC;
    --warning: #E4BB77;
    --danger: #FCA5A5;

    --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   03. GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    overflow-wrap: anywhere;
}

body {
    margin: 0;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;

    font-size: clamp(14px, 13px + .23vw, 16px);

    color: var(--ink);
    background: var(--bg);

    line-height: 1.65;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 3px;
}

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

pre {
    overflow: auto;
}

form {
    max-width: 100%;
}

section {
    padding: 34px 0;
}

.wrap {
    max-width: 1240px;
    margin: auto;

    padding-inline: clamp(16px, 3.1vw, 42px);
}


/* =========================================================
   04. RESPONSIVE TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    letter-spacing: -.035em;
}

h1,
.inner h1 {
    font-size: clamp(
        1.85rem,
        1.35rem + 1.6vw,
        3rem
    );

    line-height: 1.13;
    margin: 14px 0;
}

h1 em {
    font-style: normal;
    color: var(--brand-accent-light);
}

h2,
article h2 {
    font-size: clamp(
        1.25rem,
        1.05rem + .8vw,
        1.95rem
    );

    line-height: 1.25;
    margin: 8px 0 15px;
}

h3 {
    font-size: clamp(
        1rem,
        .93rem + .35vw,
        1.25rem
    );

    line-height: 1.3;
    margin: 10px 0;
}

h4 {
    font-size: clamp(
        .95rem,
        .9rem + .25vw,
        1.1rem
    );

    line-height: 1.4;
}

.intro,
.hero p {
    font-size: clamp(
        .95rem,
        .88rem + .3vw,
        1.12rem
    );
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 1.8px;
    font-weight: 800;
    color: var(--blue);
}


/* =========================================================
   05. HEADER AND NAVIGATION
   ========================================================= */

header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;

    font-size: clamp(
        19px,
        1rem + .5vw,
        24px
    );

    font-weight: 800;
    letter-spacing: -1px;

    color: var(--ink);
    white-space: nowrap;
}

.brand span {
    color: var(--blue);
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: block;

    width: clamp(170px, 19vw, 238px);
    height: auto;

    aspect-ratio: 420 / 96;

    flex: none;
    max-width: 100%;
}

.brand-logo-dark {
    display: none;
}

html[data-theme="dark"] .brand-logo-light,
footer .brand-logo-light {
    display: none;
}

html[data-theme="dark"] .brand-logo-dark,
footer .brand-logo-dark {
    display: block;
}

.mark {
    display: inline-grid;
    place-items: center;

    width: 39px;
    height: 39px;

    margin-right: 9px;

    background: var(--blue);
    color: #FFFFFF;

    border-radius: 11px;

    position: relative;
}

.mark span {
    color: #FFFFFF;
    font-size: 13px;

    position: absolute;
    right: 3px;
    top: 0;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav a {
    padding: 7px 0;

    color: var(--ink);

    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: var(--brand-accent-dark);
}

html[data-theme="dark"] nav a:hover {
    color: var(--brand-accent-light);
}

.theme-toggle {
    flex: none;

    min-width: 44px;
    min-height: 44px;
}

.menu-toggle {
    display: none;
}


/* =========================================================
   06. BUTTONS AND FORMS
   ========================================================= */

input,
textarea,
select,
button {
    font: inherit;

    border-radius: 8px;
    padding: 12px;

    border: 1px solid #B2C0CC;
}

input,
textarea,
select {
    background: var(--surface);
    color: var(--ink);

    width: 100%;
    min-width: 0;

    border-color: var(--line);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: .8;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-accent);
}

button,
.cta {
    background: var(--brand-primary);
    color: #FFFFFF;

    border: 0;

    font-weight: 700;
    cursor: pointer;

    transition:
        background .16s,
        border-color .16s,
        filter .16s;
}

button {
    min-height: 44px;
}

button:hover,
.cta:hover,
.theme-toggle:hover {
    filter: brightness(1.08);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.cta {
    display: inline-block;

    padding: 12px 18px;
    border-radius: 8px;
}

.cta:hover {
    text-decoration: none;
}

label {
    display: block;

    font-weight: 650;

    margin: 12px 0 5px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

output {
    display: block;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    background: var(--out);

    padding: 18px;
    margin-top: 18px;

    border-radius: 8px;
}

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

.check input {
    width: auto;
}

html[data-theme="dark"] button,
html[data-theme="dark"] .cta {
    background: var(--brand-accent-light);
    color: var(--brand-primary);
}


/* =========================================================
   07. HOMEPAGE HERO
   ========================================================= */

.hero {
    background: var(--brand-primary);
    color: #FFFFFF;

    padding: 76px 0;

    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    align-items: center;
    gap: 35px;
}

.hero .eyebrow {
    color: var(--brand-accent-light);
}

.hero p {
    color: #CCDBE7;
    max-width: 590px;
}

.hero.premium-hero {
    padding: clamp(32px, 5vw, 72px) 0;

    background:
        radial-gradient(
            ellipse at 83% 15%,
            #1B4B69 0%,
            transparent 54%
        ),
        var(--brand-primary);
}

.premium-hero h1 {
    font-size: clamp(
        2rem,
        1.42rem + 2.1vw,
        3.65rem
    );

    line-height: 1.1;
}

.premium-hero h1 em {
    color: var(--brand-accent-light);
}

.premium-hero .hero-grid {
    grid-template-columns:
        minmax(0, 1.22fr)
        minmax(0, 1fr);

    gap: clamp(20px, 4vw, 62px);
}

.search {
    display: flex;
    gap: 8px;

    max-width: 590px;
    margin: 24px 0;
}

.search input {
    flex: 1;
    min-width: 0;
}

.premium-hero .search {
    margin-bottom: 0;
}

.links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.links a {
    color: #CCE5F9;
    font-weight: 650;
}

.hero .links {
    align-items: center;
}

.hero .links .cta {
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    color: #FFFFFF;
    background: var(--brand-secondary);
}

.premium-hero .links {
    gap: 12px;
    align-items: center;

    margin: 24px 0;
}

.premium-hero .links .cta:first-child {
    background: var(--brand-accent);
    color: var(--brand-primary);
}

.hero .links .cta:nth-child(2),
.premium-hero .links .cta:nth-child(2) {
    background: #FFFFFF;
    color: var(--brand-primary);
}


/* =========================================================
   08. HERO VISUAL ELEMENTS
   ========================================================= */

.hero-art {
    position: relative;

    min-height: 320px;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle,
            #3D6D95 0,
            transparent 66%
        );
}

.orbit {
    border: 1px solid #86BEEC;
    border-radius: 50%;

    width: 225px;
    height: 225px;

    display: grid;
    place-content: center;

    font-size: 85px;
    font-weight: 900;
    letter-spacing: -12px;

    position: relative;

    box-shadow:
        0 0 0 25px #FFFFFF09,
        0 0 0 50px #FFFFFF08;
}

.orbit span {
    position: absolute;
    top: 17px;
    right: 38px;

    font-size: 42px;

    color: var(--brand-accent-light);
}

.float {
    position: absolute;

    background: #274156;
    border: 1px solid #61839E;

    padding: 12px 18px;

    border-radius: 12px;

    font-size: 12px;
    letter-spacing: 1px;
}

.f1 {
    left: 0;
    top: 35px;
}

.f2 {
    right: 0;
    top: 135px;
}

.f3 {
    left: 15px;
    bottom: 25px;
}

.visual-board {
    min-width: 0;

    border: 1px solid #5B7991;
    background: #1D3244;

    border-radius: 22px;
    padding: clamp(14px, 2vw, 23px);

    box-shadow: 0 18px 40px #08122655;
}

.board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    font-size: 10px;
    letter-spacing: 1px;
    color: #BCCFDF;

    margin-bottom: 16px;
}

.board-top i {
    display: inline-block;

    width: 7px;
    height: 7px;

    background: #81A3BE;

    border-radius: 50%;
    margin-right: 4px;
}

.board-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    background: #29445B;

    border-radius: 13px;
    padding: 18px;
}

.board-feature small {
    font-size: 9px;
    color: #BFD7EA;
    letter-spacing: .8px;
}

.board-feature strong {
    display: block;

    font-size: clamp(20px, 2.2vw, 29px);

    line-height: 1.25;
    margin-top: 8px;
}

.board-feature svg {
    max-width: 42%;
    height: auto;
}

.board-rows > div {
    display: grid;

    grid-template-columns: 35px 1fr 18px;

    align-items: center;
    gap: 10px;

    border-bottom: 1px solid #40576A;

    padding: 14px 0;

    font-size: 13px;
    color: #E5F2FC;
}

.board-rows > div:last-child {
    border: 0;
    padding-bottom: 3px;
}

.board-rows b {
    display: grid;
    place-items: center;

    background: #325068;
    color: #C1DFF7;

    width: 32px;
    height: 32px;

    border-radius: 8px;
}

.board-rows small {
    display: block;

    color: #AFC3D4;
    font-size: 11px;
}


/* =========================================================
   09. GRID AND CONTENT CARDS
   ========================================================= */

.grid {
    display: grid;
    gap: clamp(12px, 1.6vw, 20px);
}

.three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.tile {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    min-width: 0;

    background: var(--surface);
    border: 1px solid var(--line);

    border-radius: var(--radius);
    padding: clamp(16px, 2vw, 24px);

    color: var(--ink);

    overflow-wrap: anywhere;

    box-shadow: var(--shadow-sm);

    transition:
        border-color .16s,
        transform .16s,
        box-shadow .16s;
}

.tile:hover {
    border-color: var(--brand-accent);

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}

.tile h3 {
    margin: 12px 0 5px;

    overflow-wrap: anywhere;
}

.tile small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: var(--blue);

    font-weight: 800;
}

.tile p {
    color: var(--muted);

    margin: 5px 0 14px;

    font-size: clamp(
        13px,
        12px + .2vw,
        15px
    );
}

.tile span {
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.tile > span:last-child {
    margin-top: auto;
}

.tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    gap: 8px;
}

.tool-icon,
.tile .tool-icon {
    display: inline-grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 11px;

    background: #F5EEE2;
    color: var(--brand-primary);

    font-size: 19px;
    font-weight: 750;

    flex: none;
}

.audience b {
    font-size: 28px;
    color: var(--blue);
}

.sectionhead {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
    margin-bottom: 16px;
}

.sectionhead h2 {
    margin: 4px 0;
}

.sectionhead > a {
    font-size: 14px;
    font-weight: 650;
}

.home-content section {
    padding: clamp(25px, 4vw, 46px) 0;
}

.learning-tile {
    border-top: 3px solid var(--brand-accent);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;

    gap: 12px 22px;

    font-size: 14px;
}


/* =========================================================
   10. DIGITAL MARKETING AGENCY
   ========================================================= */

.service-banner {
    background: #F4EDE1;
    color: var(--brand-primary);

    padding: 28px;
    border-radius: 16px;
}

.service-banner .tile {
    padding: 20px;
}

.service-banner > p a {
    color: var(--brand-secondary);
}

.service-banner .sectionhead {
    align-items: flex-start;
}

.service-banner h2 {
    max-width: 620px;
}

.service-banner .cta {
    flex-shrink: 0;
}

.service-banner .tile small {
    color: var(--blue);
}

.home-content .service-banner {
    background: #10324C;
    color: #E9F3FC;

    padding: clamp(18px, 3vw, 34px);

    border-radius: 22px;
}

.home-content .service-banner .cta {
    background: var(--brand-accent);
    color: var(--brand-primary);
}

.agency-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, .45fr);

    align-items: center;

    gap: 24px;
    margin-bottom: 26px;
}

.agency-intro .eyebrow {
    color: var(--brand-accent-light);
}

.agency-intro h2 {
    color: #FFFFFF;

    font-size: clamp(
        1.45rem,
        1.05rem + 1.4vw,
        2.4rem
    );
}

.agency-intro p {
    color: #CBDAE7;
    max-width: 620px;
}

.agency-all,
.service-banner .agency-phone a {
    color: #D6EAFA;
}

.agency-art {
    display: grid;
    gap: 7px;

    padding: 18px;

    background: #274259;
    border: 1px solid #446178;

    border-radius: 14px;
}

.agency-art span {
    font-size: 10px;
    letter-spacing: 1.2px;

    color: #D5E9FA;
}

.agency-art svg {
    justify-self: end;

    max-width: 100%;
}

.agency-phone {
    font-size: 13px;
    color: #CBDAE7;

    margin-bottom: 0;
}

html[data-theme="dark"]
.home-content .service-banner .tile {
    background: #122B40;
    color: #E8F0F6;
}


/* =========================================================
   11. INNER PAGES AND ARTICLES
   ========================================================= */

.inner {
    padding-top: clamp(24px, 3vw, 44px);
    padding-bottom: clamp(35px, 5vw, 70px);

    min-height: 65vh;
}

.inner .grid {
    margin-top: 12px;
}

.crumb,
.byline {
    font-size: 14px;
    color: var(--muted);
}

.crumb {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.intro {
    color: var(--muted);
    max-width: 780px;
}

article,
.toolbox {
    background: var(--surface);
    border: 1px solid var(--line);

    padding: clamp(20px, 4vw, 42px);

    border-radius: 15px;

    max-width: 850px;
    min-width: 0;

    margin: 30px 0;
}

article h2 {
    margin-top: 30px;
}

article p {
    overflow-wrap: anywhere;
}

article ul,
article ol {
    padding-left: 24px;
}

article li {
    margin-bottom: 7px;
}


/* =========================================================
   12. TOOLS DIRECTORY
   ========================================================= */

.tool-category-links {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
    margin-top: 20px;
}

.tool-category-links a {
    padding: 8px 12px;

    border: 1px solid var(--line);
    border-radius: 7px;

    background: var(--surface);

    font-size: 14px;
}

.directory-layout,
.legal-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 245px)
        minmax(0, 1fr);

    gap: clamp(16px, 3vw, 32px);

    align-items: start;

    margin-top: 26px;
}

.directory-nav,
.legal-nav {
    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    padding: 18px;

    position: sticky;
    top: 20px;
}

.directory-nav > a,
.legal-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;
    padding: 10px 8px;

    color: var(--ink);

    font-size: 14px;
    border-radius: 7px;
}

.directory-nav > a.active {
    background: var(--out);
    color: var(--blue);

    font-weight: 700;
}

.directory-nav > a span {
    color: var(--muted);
    font-size: 12px;
}

.directory-help {
    margin-top: 16px;
    padding-top: 12px;

    border-top: 1px solid var(--line);

    font-size: 13px;
}

.directory-help h3 {
    margin: 0;
    font-size: 16px;
}

.directory-main {
    min-width: 0;
}

.directory-toolbar {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
}

.directory-toolbar label {
    grid-column: 1 / -1;

    margin: 0;
    font-size: 14px;
}

.directory-toolbar p {
    margin: 0;

    font-size: 13px;
    color: var(--muted);
}

.tool-directory-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.directory-card[hidden],
#tool-empty[hidden],
.result-hint[hidden] {
    display: none !important;
}

.directory-card .tool-icon {
    width: 36px;
    height: 36px;

    font-size: 17px;
}

.tool-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px 22px;

    font-size: 13px;
    color: var(--muted);
}

.tool-topline span:first-child {
    color: var(--blue);

    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
}

.tool-topline a {
    margin-left: auto;
}


/* =========================================================
   13. INDIVIDUAL TOOLS WORKSPACE
   ========================================================= */

.product-tool {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, .85fr);

    align-items: start;

    gap: clamp(18px, 3vw, 34px);

    padding: clamp(18px, 3vw, 30px);

    max-width: none;

    border-radius: 20px;

    box-shadow: 0 10px 32px #15294A09;

    margin-top: 20px;
}

.product-tool form {
    min-width: 0;
}

.product-tool h2 {
    font-size: clamp(
        17px,
        1rem + .3vw,
        22px
    );

    margin-top: 0;
}

.product-tool form button {
    margin-top: 18px;
}

.tool-result {
    min-width: 0;
    min-height: 220px;

    background: var(--out);

    border: 1px solid var(--line);
    border-radius: 13px;

    padding: clamp(15px, 2vw, 24px);
}

.tool-result output {
    background: var(--surface);

    min-height: 80px;

    margin: 12px 0 0;
    padding: 14px;

    font-size: clamp(
        14px,
        1rem + .1vw,
        18px
    );

    line-height: 1.5;

    border: 1px solid var(--line);
}

.tool-result output:empty {
    display: none;
}

.result-hint {
    color: var(--muted);
    font-size: 14px;
}

.tool-result button {
    font-size: 14px;
}

.tool-details {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(0, .7fr);

    align-items: start;
    gap: 22px;
}

.tool-details article {
    margin: 0;
    max-width: none;
}

.tool-help {
    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    padding: 22px;
}

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


/* =========================================================
   14. RELATED CONTENT AND INTERNAL LINKS
   ========================================================= */

.related-links {
    background: var(--surface);

    margin: 2rem 0;
    padding: 20px 24px;

    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.related-links h2 {
    font-size: clamp(
        18px,
        1rem + .6vw,
        25px
    );
}

.related-links ul {
    padding-left: 1.25rem;
    line-height: 1.8;
}

.related-links small {
    opacity: .75;
    margin-left: .5rem;
}


/* =========================================================
   15. ADVANCED META TAG CHECKER
   ========================================================= */

.meta-checker-workspace {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.12fr);

    align-items: start;

    gap: clamp(18px, 3vw, 32px);

    max-width: none;
}

.meta-checker-workspace form {
    min-width: 0;
}

.meta-checker-workspace .tool-result {
    min-width: 0;

    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: 14px;

    padding: clamp(16px, 2.3vw, 26px);

    box-shadow: var(--shadow-sm);
}

.meta-checker-workspace h2 {
    font-size: clamp(
        17px,
        1.05rem + .3vw,
        21px
    );

    line-height: 1.35;

    margin: 0 0 16px;
}

.meta-checker-workspace h3 {
    font-size: clamp(
        15px,
        .9rem + .3vw,
        18px
    );

    line-height: 1.4;

    margin: 22px 0 12px;
}

.meta-checker-workspace label {
    display: block;

    font-size: 13px;
    font-weight: 650;

    margin: 16px 0 7px;
}

.meta-checker-workspace input,
.meta-checker-workspace textarea {
    width: 100%;

    min-width: 0;

    padding: 12px 14px;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;

    background: var(--surface);
    color: var(--ink);

    border: 1px solid var(--line);
    border-radius: 8px;

    transition:
        border-color .16s,
        box-shadow .16s;
}

.meta-checker-workspace input:focus,
.meta-checker-workspace textarea:focus {
    border-color: var(--brand-accent);

    box-shadow:
        0 0 0 3px rgba(196, 146, 63, .12);
}

.meta-checker-workspace textarea {
    min-height: 135px;
    resize: vertical;
}

.meta-checker-workspace
input[aria-invalid="true"] {
    border-color: var(--danger);
}


/* =========================================================
   16. META TAG CHARACTER COUNTERS
   ========================================================= */

.meta-checker-workspace .meta-count {
    padding: 10px 12px;

    margin: 8px 0 16px;

    font-size: 12px;
    line-height: 1.65;

    font-weight: 500;

    border: 1px solid transparent;
    border-radius: 7px;

    overflow-wrap: anywhere;
}

.meta-checker-workspace
.meta-count[data-state="good"] {
    color: var(--success);

    background: rgba(22, 163, 74, .08);

    border-color: rgba(22, 163, 74, .15);
}

.meta-checker-workspace
.meta-count[data-state="warn"] {
    color: var(--warning);

    background: rgba(196, 146, 63, .10);

    border-color: rgba(196, 146, 63, .22);
}

.meta-checker-workspace
.meta-count[data-state="empty"] {
    color: var(--muted);

    background: var(--bg);

    border-color: var(--line);
}


/* =========================================================
   17. META TAG CHECKER BUTTONS
   ========================================================= */

.meta-checker-workspace .meta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin: 16px 0;
}

.meta-checker-workspace .meta-actions button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 650;

    padding: 10px 14px;

    margin: 0;

    min-height: 44px;

    cursor: pointer;

    border-radius: 7px;
    border: 1px solid transparent;

    line-height: 1.4;
}

.meta-checker-workspace button[type="submit"] {
    background: var(--brand-primary);
    color: #FFFFFF;

    flex: 1;
}

.meta-checker-workspace
button[aria-pressed="true"] {
    background: var(--brand-accent);
    border-color: var(--brand-accent);

    color: var(--brand-primary);
}

.meta-checker-workspace
button[aria-pressed="false"] {
    background: transparent;

    border-color: var(--line);

    color: var(--ink);
}

.meta-checker-workspace
button[aria-pressed="false"]:hover {
    border-color: var(--brand-accent);

    background: rgba(196, 146, 63, .08);
}

.meta-checker-workspace #meta-reset {
    background: transparent;

    border: 1px solid var(--line);

    color: var(--ink);

    min-width: 90px;
}

.meta-checker-workspace #meta-reset:hover {
    background: var(--out);
    border-color: var(--brand-accent);
}

.meta-checker-workspace #copy-meta-title,
.meta-checker-workspace #copy-meta-description,
.meta-checker-workspace #copy-meta-html {
    background: var(--bg);

    color: var(--ink);

    border: 1px solid var(--line);
}

.meta-checker-workspace #copy-meta-title:hover,
.meta-checker-workspace #copy-meta-description:hover,
.meta-checker-workspace #copy-meta-html:hover {
    border-color: var(--brand-accent);

    background: var(--out);
}


/* =========================================================
   18. GOOGLE SERP PREVIEW
   ========================================================= */

.meta-checker-workspace .meta-serp {
    width: 100%;

    min-width: 0;

    background: #FFFFFF;

    border: 1px solid #DCE1E7;
    border-radius: 12px;

    padding: 20px;
    margin: 18px 0;

    font-family: Arial, sans-serif;

    overflow-wrap: anywhere;

    box-shadow:
        0 4px 15px rgba(8, 36, 61, .04);
}

.meta-serp[data-device="desktop"] {
    max-width: 620px;
}

.meta-serp[data-device="mobile"] {
    max-width: 340px;

    margin-inline: auto;

    border-radius: 18px;

    padding: 16px;
}

.meta-serp .meta-serp-url {
    color: #4D5156;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.5;

    margin: 0 0 8px;

    overflow-wrap: anywhere;
}

.meta-serp .meta-serp-title {
    color: #1A0DAB;

    font-family: Arial, sans-serif;

    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;

    line-height: 1.35;

    margin: 0 0 6px;

    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;

    overflow: hidden;
}

.meta-serp[data-device="mobile"]
.meta-serp-title {
    -webkit-line-clamp: 2;
}

.meta-serp .meta-serp-desc {
    color: #4D5156;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.6;

    margin: 0;

    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.meta-serp[data-device="mobile"]
.meta-serp-desc {
    -webkit-line-clamp: 3;
}


/* =========================================================
   19. SEO RECOMMENDATIONS AND STATUS
   ========================================================= */

.meta-checker-workspace .meta-summary {
    font-size: 13px;
    line-height: 1.75;

    color: var(--muted);
}

.meta-checker-workspace
#meta-recommendations {
    padding: 14px 16px;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: var(--bg);

    color: var(--ink);

    margin: 12px 0 18px;
}

.meta-checker-workspace
.meta-summary ul {
    margin: 0;

    padding-left: 18px;
}

.meta-checker-workspace
.meta-summary li {
    margin-bottom: 10px;

    font-size: 13px;
    line-height: 1.65;
}

.meta-checker-workspace
.meta-summary li:last-child {
    margin-bottom: 0;
}

.meta-checker-workspace
.meta-summary li::marker {
    color: var(--brand-accent-dark);
}

.meta-checker-workspace .meta-status {
    color: var(--ink);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.6;

    padding: 10px 12px;

    border-left: 3px solid var(--brand-accent);

    background: var(--out);

    border-radius: 0 6px 6px 0;

    overflow-wrap: anywhere;
}

.meta-checker-workspace
.meta-status:empty {
    display: none;
}


/* =========================================================
   20. META TAG CHECKER DARK MODE
   ========================================================= */

html[data-theme="dark"]
.meta-checker-workspace button[type="submit"] {
    background: var(--brand-accent-light);
    color: var(--brand-primary);
}

html[data-theme="dark"]
.meta-checker-workspace #meta-reset {
    background: transparent;

    border-color: var(--line);
    color: var(--ink);
}

html[data-theme="dark"]
.meta-checker-workspace
button[aria-pressed="true"] {
    background: var(--brand-accent-light);
    border-color: var(--brand-accent-light);

    color: var(--brand-primary);
}

html[data-theme="dark"]
.meta-checker-workspace
button[aria-pressed="false"] {
    background: transparent;

    color: var(--ink);
    border-color: var(--line);
}

html[data-theme="dark"]
.meta-checker-workspace
.meta-summary li::marker {
    color: var(--brand-accent-light);
}

html[data-theme="dark"]
.meta-checker-workspace
.meta-count[data-state="good"] {
    background: rgba(134, 239, 172, .08);
}

html[data-theme="dark"]
.meta-checker-workspace
.meta-count[data-state="warn"] {
    background: rgba(228, 187, 119, .08);
}


/* =========================================================
   21. CONTACT PAGE
   ========================================================= */

.contact-hero,
.about-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, .65fr);

    gap: 24px;
    align-items: center;

    background:
        radial-gradient(
            ellipse at 95% 10%,
            #235570,
            transparent 60%
        ),
        #10324C;

    color: #FFFFFF;

    border-radius: 22px;

    padding: clamp(22px, 4vw, 48px);

    margin: 20px 0 28px;
}

.contact-hero h1,
.about-hero h2 {
    font-size: clamp(
        1.65rem,
        1.1rem + 1.8vw,
        3rem
    );

    color: #FFFFFF;
}

.contact-hero p,
.about-hero p {
    color: #D3E0EB;

    max-width: 650px;
}

.contact-hero .eyebrow,
.about-hero .eyebrow {
    color: var(--brand-accent-light);
}

.contact-art {
    display: grid;
    place-items: center;
}

.contact-art svg {
    max-width: 100%;
    height: auto;
}

.contact-layout {
    display: grid;

    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);

    align-items: start;

    gap: clamp(18px, 3vw, 32px);
}

.contact-info,
.contact-form {
    margin: 0;

    max-width: none;

    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    padding: clamp(18px, 3vw, 30px);
}

.contact-card {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 16px 0;

    border-bottom: 1px solid var(--line);
}

.contact-card h3 {
    margin: 0 0 4px;
}

.contact-card address {
    font-style: normal;
    color: var(--muted);
}

.contact-info > p,
.contact-form > p,
.form-note {
    font-size: 14px;
    color: var(--muted);
}

.form-pair {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.contact-form button {
    margin-top: 16px;
}

.contact-form label {
    font-size: 14px;
}

.contact-form textarea {
    min-height: 140px;
}

.business-contact,
.contact-summary address {
    font-style: normal;

    line-height: 1.8;

    overflow-wrap: anywhere;
}

.contact-summary {
    margin: 1.5rem 0;
}


/* =========================================================
   22. ABOUT US PAGE
   ========================================================= */

.about-art {
    display: grid;
    gap: 10px;
}

.about-art > div {
    background: #2F4D65;

    border: 1px solid #55748E;
    border-radius: 12px;

    padding: 13px;

    color: #E8F3FC;

    font-weight: 700;
}

.about-art b {
    color: var(--brand-accent-light);

    margin-right: 16px;
}

.approach,
.contact-strip {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(0, .7fr);

    align-items: center;
    gap: 22px;

    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    padding: clamp(18px, 3vw, 30px);

    margin: 18px 0;
}

.contact-strip .cta {
    justify-self: end;
}


/* =========================================================
   23. TERMS AND POLICY PAGES
   ========================================================= */

.legal-doc {
    margin: 0;
    max-width: none;
}

.legal-doc section {
    padding: 20px 0;

    border-bottom: 1px solid var(--line);

    scroll-margin-top: 20px;
}

.legal-doc section:last-child {
    border: 0;
}

.legal-doc section h2 {
    font-size: clamp(
        17px,
        1rem + .45vw,
        23px
    );

    margin: 0 0 8px;
}

.legal-doc section p {
    margin: 0;
    max-width: 75ch;
}

.policy-note {
    background: var(--out);

    color: var(--muted);

    border-radius: 8px;

    padding: 12px;

    font-size: 14px;
}


/* =========================================================
   24. FOOTER
   ========================================================= */

footer {
    background: var(--brand-primary);

    color: #CCDBE7;

    padding: 34px 0;
}

.foot {
    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 20px;
}

.foot .brand,
.foot a {
    color: #FFFFFF;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: clamp(16px, 3vw, 35px);
}

.footer-grid > div {
    min-width: 0;
}

.footer-grid .brand {
    color: #FFFFFF;

    white-space: normal;

    width: 100%;
    min-width: 0;
}

.footer-grid .brand span {
    color: var(--brand-accent-light);
}

.footer-grid .brand-logo {
    width: 238px;

    max-width: 100%;
    min-width: 0;
}

.footer-grid h3 {
    color: #FFFFFF;

    font-size: 14px;
    letter-spacing: 0;

    margin: 4px 0 12px;
}

.footer-grid > div:not(:first-child) a {
    display: block;

    color: #D5E2ED;

    font-size: 14px;

    margin: 6px 0;
}

.footer-grid p,
.footer-grid address {
    font-size: 14px;

    max-width: 320px;
}

.footer-grid address a,
.footer-bottom a {
    color: #CAE4F9;
}

.footer-grid a:hover,
.footer-bottom a:hover {
    color: var(--brand-accent-light);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 10px;
    flex-wrap: wrap;

    margin-top: 28px;
    padding-top: 17px;

    border-top: 1px solid #455766;

    font-size: 13px;
}


/* =========================================================
   25. ADMIN COMPONENTS
   ========================================================= */

.admin-brand {
    display: inline-flex;

    align-items: center;
    gap: 12px;

    margin-bottom: 8px;
}

.admin-brand .brand-logo {
    width: 210px;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;
}

.admin-table td,
.admin-table th {
    text-align: left;

    padding: 10px;

    border-bottom: 1px solid var(--line);
}

.admin-form {
    max-width: 850px;
}

.admin-form textarea {
    min-height: 240px;
}

.notice {
    padding: 12px;

    background: #FFF1D2;
    color: #482D00;
}


/* =========================================================
   26. LEARNING AND QUIZ COMPONENTS
   ========================================================= */

.quiz label {
    font-weight: 500;
}

.quiz input {
    flex-shrink: 0;
}

.quiz output:empty {
    display: none;
}


/* =========================================================
   27. ACCESSIBILITY
   ========================================================= */

.sr,
.skip:not(:focus) {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip-path: inset(50%);
}

:focus-visible {
    outline-offset: 3px;
}


/* =========================================================
   28. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1600px) {

    .wrap {
        max-width: 1320px;
    }

}


/* =========================================================
   29. SMALL DESKTOP AND TABLET
   ========================================================= */

@media (max-width: 1000px) {

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

    .directory-layout,
    .legal-layout {
        grid-template-columns:
            minmax(0, 205px)
            minmax(0, 1fr);
    }

}


/* =========================================================
   30. TABLET RESPONSIVENESS
   ========================================================= */

@media (max-width: 850px) {

    .nav {
        flex-direction: row;

        align-items: center;
        flex-wrap: wrap;

        position: relative;

        padding:
            12px
            clamp(16px, 3.1vw, 42px);

        gap: 9px;
    }

    .nav .theme-toggle {
        position: static;
        margin-left: 0;
    }

    .nav .brand {
        margin-right: auto;
    }

    .nav nav {
        order: 4;

        width: 100%;

        gap: 6px 16px;
    }

    .kt-menu-ready .menu-toggle {
        display: block;

        background: var(--surface);

        border: 1px solid var(--line);

        color: var(--ink);

        padding: 8px 12px;

        font-size: 13px;
    }

    .kt-menu-ready .nav nav:not(.is-open) {
        display: none;
    }

    .nav nav a {
        font-size: 14px;
    }

    .hero {
        padding: 45px 0;
    }

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

    .hero-art {
        display: none;
    }

    .premium-hero .hero-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .visual-board {
        max-width: 520px;
        margin-top: 4px;
    }

    .premium-hero h1 {
        font-size: clamp(
            1.9rem,
            1.45rem + 2vw,
            3rem
        );
    }

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

    .agency-intro {
        grid-template-columns: 1fr;
    }

    .agency-art {
        display: none;
    }

    .directory-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .directory-nav,
    .legal-nav {
        position: static;

        display: flex;
        flex-wrap: wrap;

        gap: 6px;

        padding: 12px;
    }

    .directory-nav .eyebrow,
    .legal-nav .eyebrow {
        width: 100%;

        margin-bottom: 4px;
    }

    .directory-nav > a,
    .legal-nav > a {
        border: 1px solid var(--line);

        padding: 7px 9px;

        font-size: 12px;
    }

    .directory-help {
        display: none;
    }

    .contact-layout {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .contact-info {
        order: 2;
    }

    .contact-hero,
    .about-hero {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .contact-art {
        display: none;
    }

    .about-art {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .about-art b {
        display: block;
        margin: 0;
    }

    .contact-strip,
    .approach {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .contact-strip .cta {
        justify-self: start;
    }

}


/* =========================================================
   31. META CHECKER TABLET LAYOUT
   ========================================================= */

@media (max-width: 768px) {

    .meta-checker-workspace {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 22px;
    }

    .meta-checker-workspace
    .tool-result {
        padding: 18px;
    }

    .meta-checker-workspace
    .meta-serp {
        padding: 15px;
    }

}


/* =========================================================
   32. MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 700px) {

    .hero:not(.premium-hero) h1 {
        font-size: clamp(
            30px,
            7vw,
            44px
        );
    }

    .nav nav {
        width: 100%;

        gap: 8px 14px;
    }

    .nav nav a {
        display: flex;
        align-items: center;

        min-height: 36px;

        font-size: 13px;
    }

    .search button {
        flex-shrink: 0;
    }

}


/* =========================================================
   33. MOBILE LAYOUT
   ========================================================= */

@media (max-width: 600px) {

    .product-tool,
    .tool-details,
    .meta-checker-workspace {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .tool-result {
        min-height: 140px;
    }

    .tool-directory-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .directory-toolbar {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .tool-topline a {
        margin-left: 0;
    }

    .premium-hero .links .cta {
        width: auto;

        flex: 1 1 100%;

        justify-content: center;
    }

    .board-feature {
        padding: 12px;
    }

    .visual-board {
        padding: 14px;
    }

    .board-rows > div {
        padding: 10px 0;
    }

    .sectionhead {
        align-items: flex-start;

        gap: 5px;
        flex-direction: column;
    }

    .form-pair {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid > div:not(:first-child) a {
        font-size: 13px;
    }

    .footer-grid .brand {
        max-width: 100%;
    }

    .nav .brand {
        min-width: 0;

        max-width: calc(100% - 115px);
    }

    .nav .brand-logo {
        max-width: 100%;
        flex-shrink: 1;
    }

    .admin-brand {
        flex-wrap: wrap;

        max-width: 100%;
    }

    .contact-strip .cta {
        width: 100%;
        text-align: center;
    }

    .about-art > div {
        padding: 10px;

        font-size: 13px;
    }


    /* Meta Tag Checker Mobile */

    .meta-checker-workspace {
        gap: 18px;
    }

    .meta-checker-workspace h2 {
        font-size: 18px;

        margin-bottom: 14px;
    }

    .meta-checker-workspace h3 {
        font-size: 16px;
    }

    .meta-checker-workspace input,
    .meta-checker-workspace textarea {
        font-size: 16px;
    }

    .meta-checker-workspace
    .meta-actions button {
        flex: 1 1 45%;

        font-size: 12px;

        min-height: 44px;
    }

    .meta-checker-workspace
    #copy-meta-html {
        flex-basis: 100%;
    }

    .meta-checker-workspace .meta-count {
        font-size: 12px;

        padding: 9px 10px;
    }

    .meta-checker-workspace .tool-result {
        padding: 15px;
    }

    .meta-serp .meta-serp-title {
        font-size: 18px;
    }

    .meta-serp .meta-serp-desc {
        font-size: 13px;
    }

    .meta-checker-workspace
    #meta-recommendations {
        padding: 12px;
    }

}


/* =========================================================
   34. SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .sectionhead {
        align-items: flex-start;
        flex-direction: column;
    }

    .tile {
        padding: 18px;
    }

    .search button {
        padding: 10px;
    }

    .admin-table {
        font-size: 12px;
    }

    .hero .links {
        gap: 10px;
    }

    .hero .links .cta {
        width: 100%;

        justify-content: center;
    }

    .service-banner {
        padding: 18px;
    }

    .service-banner .cta {
        white-space: normal;
    }

    .service-banner .sectionhead {
        margin-bottom: 18px;
    }

}


/* =========================================================
   35. EXTRA SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav {
        padding-inline: 12px;
    }

    .nav .brand {
        font-size: 18px;

        letter-spacing: -.8px;

        max-width: calc(100% - 100px);
    }

    .nav .brand-logo {
        width: 158px;
        max-width: 100%;
    }

    .nav .mark {
        width: 32px;
        height: 32px;

        margin-right: 6px;
    }

    .nav .menu-toggle {
        padding: 6px 8px;
    }

    .nav .theme-toggle {
        min-width: 38px;

        padding: 8px;
    }

    .search {
        flex-wrap: wrap;
    }

    .search input {
        flex-basis: 100%;
    }

    .hero.premium-hero h1 {
        font-size: clamp(
            1.85rem,
            8.7vw,
            2.05rem
        );
    }

    .footer-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .meta-checker-workspace .tool-result {
        padding: 12px;
    }

    .meta-checker-workspace .meta-serp {
        padding: 12px;
    }

    .meta-checker-workspace
    .meta-actions button {
        flex-basis: 100%;
    }

}


/* =========================================================
   36. DARK MODE MOBILE MENU
   ========================================================= */

html[data-theme="dark"] .menu-toggle {
    background: var(--surface);
    color: var(--ink);
}


/* =========================================================
   37. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;

        animation: none !important;
        transition: none !important;
    }

    .tile:hover {
        transform: none;
    }

}


/* =========================================================
   END OF KNOWLEDGETECH STYLESHEET
   ========================================================= */
