/* =========================================================
   V49 — responsive hardening across every public page
   Pages: home, tools, projects, privacy, 404
   ========================================================= */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button,
a {
  max-width: 100%;
}

/* ---------- Tools page ---------- */
@media (max-width: 1024px) {
  body.page-tools .nav-links {
    gap: 14px;
  }

  body.page-tools .nav-links a {
    font-size: .82rem;
  }

  body.page-tools #free-guides .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-tools nav {
    width: 100%;
    padding: 0 .8rem;
  }

  body.page-tools .nav-inner {
    width: 100%;
    max-width: none;
    height: 60px;
    gap: .5rem;
  }

  body.page-tools .nav-logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.page-tools .nav-logo img {
    height: 32px;
    width: auto;
    max-width: 82px;
    object-fit: contain;
  }

  body.page-tools .nav-links {
    display: none !important;
  }

  body.page-tools .hamburger {
    display: flex !important;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    border-radius: 10px;
  }

  body.page-tools .theme-toggle {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0 !important;
  }

  body.page-tools .mobile-menu {
    width: 100%;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: .8rem 1rem 1.1rem;
    gap: .25rem;
  }

  body.page-tools .mobile-menu a {
    width: 100%;
    padding: .75rem .25rem;
    text-align: right;
    line-height: 1.45;
  }

  body.page-tools .direct-answer {
    width: 100% !important;
    margin: 0 !important;
    padding: .8rem 1rem !important;
  }

  body.page-tools .direct-answer .container {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: .55rem !important;
    padding: 0 !important;
  }

  body.page-tools .direct-answer .container > * {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body.page-tools .hero {
    width: 100%;
    max-width: 100%;
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
    padding: 3.75rem 1.15rem 3.25rem !important;
  }

  body.page-tools .hero-text {
    order: 0 !important;
    width: 100%;
    text-align: center;
  }

  body.page-tools .hero-visual {
    order: 1 !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  body.page-tools .hero-visual > div {
    width: min(72vw, 300px) !important;
    max-width: 300px !important;
    margin-inline: auto !important;
  }

  body.page-tools .hero h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body.page-tools .hero-desc {
    max-width: 36rem;
    margin-inline: auto;
    font-size: .94rem !important;
    line-height: 1.78;
  }

  body.page-tools .hero-actions {
    justify-content: center;
  }

  body.page-tools section,
  body.page-tools .manifesto {
    padding-inline: 1.15rem !important;
  }

  body.page-tools .container {
    width: 100%;
    max-width: 100%;
  }

  body.page-tools .about-strip,
  body.page-tools .process-grid,
  body.page-tools .stats-grid,
  body.page-tools .products-grid,
  body.page-tools .apps-grid,
  body.page-tools .faq-layout,
  body.page-tools .footer-top {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.page-tools .about-strip,
  body.page-tools .faq-layout {
    gap: 2rem !important;
  }

  body.page-tools .about-text,
  body.page-tools .faq-copy {
    width: 100%;
    min-width: 0;
  }

  body.page-tools .about-visual,
  body.page-tools .faq-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  body.page-tools .faq-visual {
    order: -1;
  }

  body.page-tools .faq-visual-card {
    width: min(100%, 330px);
    max-width: 330px;
  }

  body.page-tools .faq-list {
    width: 100%;
    max-width: none;
  }

  body.page-tools .app-links-strip {
    width: min(100%, 620px);
  }

  body.page-tools .apps-links-note {
    width: min(100%, 680px);
    padding-inline: .25rem;
    text-align: center;
  }

  body.page-tools .footer-bottom {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  body.page-tools {
    font-size: 15px;
  }

  body.page-tools section {
    padding: 3.65rem 1rem !important;
  }

  body.page-tools .manifesto {
    padding: 3rem 1rem !important;
  }

  body.page-tools .direct-answer .container {
    flex-direction: column;
  }

  body.page-tools .direct-answer strong {
    display: block !important;
    width: 100%;
    border-radius: 12px !important;
    padding: .55rem .75rem !important;
    line-height: 1.55;
  }

  body.page-tools .hero {
    padding: 3rem 1rem 2.8rem !important;
  }

  body.page-tools .hero-visual > div {
    width: min(70vw, 255px) !important;
  }

  body.page-tools .hero-eyebrow {
    font-size: .7rem;
    line-height: 1.5;
  }

  body.page-tools .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem) !important;
  }

  body.page-tools .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  body.page-tools .hero-actions a {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
  }

  body.page-tools .section-title {
    font-size: clamp(1.7rem, 8.7vw, 2.15rem) !important;
    overflow-wrap: anywhere;
  }

  body.page-tools .section-sub,
  body.page-tools .guide-intro {
    font-size: .9rem !important;
    line-height: 1.75;
  }

  body.page-tools #free-guides .products-grid,
  body.page-tools .products-grid,
  body.page-tools .process-grid,
  body.page-tools .stats-grid,
  body.page-tools .apps-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  body.page-tools .product-card {
    width: 100%;
    min-width: 0;
    padding: 1rem !important;
    border-radius: 18px;
  }

  body.page-tools .product-cover,
  body.page-tools #free-guides .product-cover {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 1rem !important;
    border-radius: 14px;
    object-fit: contain !important;
  }

  body.page-tools .product-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  body.page-tools .product-card p {
    font-size: .82rem !important;
    line-height: 1.7;
  }

  body.page-tools .btn-product {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .75rem .85rem;
    border-radius: 13px;
  }

  body.page-tools .process-card,
  body.page-tools .stat-card {
    width: 100%;
    padding: 1.2rem !important;
  }

  body.page-tools .app-links-strip {
    flex-direction: column;
    align-items: stretch;
    padding: .85rem;
    border-radius: 15px;
  }

  body.page-tools .app-links-strip span {
    display: none;
  }

  body.page-tools .app-links-strip a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 45px;
    padding: .65rem .8rem;
    border: 1px solid rgba(0, 0, 238, .18);
    border-radius: 11px;
    background: rgba(255, 255, 255, .84);
  }

  body.page-tools .faq-question {
    min-height: 54px;
    padding: .9rem 1rem !important;
    font-size: .9rem !important;
    line-height: 1.5;
  }

  body.page-tools .faq-answer p {
    padding: 0 1rem 1rem !important;
    font-size: .84rem !important;
    line-height: 1.75;
  }

  body.page-tools footer {
    padding: 2.6rem 1rem 1.6rem !important;
  }

  body.page-tools .footer-top {
    gap: 1.7rem !important;
    text-align: center;
  }

  body.page-tools .footer-col ul,
  body.page-tools .social-links {
    align-items: center;
    justify-content: center;
  }

  body.page-tools .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 380px) {
  body.page-tools nav {
    padding-inline: .55rem;
  }

  body.page-tools .nav-logo img {
    height: 29px;
    max-width: 70px;
  }

  body.page-tools .hamburger,
  body.page-tools .theme-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.page-tools .hero h1 {
    font-size: 1.85rem !important;
  }

  body.page-tools .hero-visual > div {
    width: min(72vw, 225px) !important;
  }
}

/* ---------- Projects page ---------- */
@media (max-width: 900px) {
  body.page-projects nav.top {
    width: 100%;
    padding: .7rem .85rem;
    gap: .55rem;
    flex-wrap: nowrap;
  }

  body.page-projects nav.top .logo {
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-end: 0;
    white-space: nowrap;
  }

  body.page-projects nav.top .back {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  body.page-projects .theme-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
  }

  body.page-projects .hero {
    width: 100%;
    max-width: 100%;
    padding: 3.6rem 1.1rem 2.8rem !important;
  }

  body.page-projects .hero h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.9rem, 8.8vw, 2.65rem) !important;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  body.page-projects .hero p {
    font-size: .93rem !important;
    line-height: 1.78;
  }

  body.page-projects .hero-author {
    width: 100%;
    margin-top: 1.8rem;
  }

  body.page-projects .hero-author > div {
    width: min(70vw, 250px) !important;
    max-width: 250px !important;
  }

  body.page-projects .project {
    width: 100%;
    max-width: 100%;
    padding: 2.9rem 1.1rem !important;
  }

  body.page-projects .project-head {
    width: 100%;
    margin-bottom: 1.5rem;
    align-items: flex-start;
  }

  body.page-projects .project h2 {
    max-width: 100%;
    font-size: clamp(1.65rem, 7.6vw, 2.15rem) !important;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  body.page-projects .project .subtitle {
    font-size: .96rem !important;
    line-height: 1.6;
  }

  body.page-projects .project-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.8rem !important;
  }

  body.page-projects .project-grid > * {
    width: 100%;
    min-width: 0;
  }

  body.page-projects .project-img {
    width: min(100%, 560px);
    max-width: 100%;
    margin-inline: auto;
    border-radius: 16px;
  }

  body.page-projects .project-body {
    width: 100%;
    min-width: 0;
  }

  body.page-projects .project-body p {
    font-size: .91rem !important;
    line-height: 1.78;
  }

  body.page-projects .project-blocks {
    width: 100%;
    gap: .85rem;
  }

  body.page-projects .project-block {
    width: 100%;
    padding: 1rem 1.05rem !important;
  }

  body.page-projects .project-tags {
    justify-content: flex-start;
  }

  body.page-projects .project-cta {
    width: min(100%, 360px);
    min-height: 47px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto 0;
    padding: .75rem 1rem;
    border: 1px solid rgba(47, 142, 128, .28);
    border-radius: 13px;
    text-align: center;
  }

  body.page-projects .applications-nav-section {
    width: 100%;
    max-width: 100%;
    padding: 3rem 1.1rem !important;
  }

  body.page-projects .applications-nav-inner {
    width: 100%;
    max-width: 680px;
  }

  body.page-projects .applications-nav-links {
    width: 100%;
  }

  body.page-projects .applications-nav-note {
    width: 100%;
    max-width: 680px;
    text-align: center;
  }

  body.page-projects .closing {
    width: 100%;
    padding: 3.8rem 1.1rem 4.5rem !important;
  }

  body.page-projects .closing h2 {
    font-size: clamp(1.7rem, 7.8vw, 2.25rem) !important;
    overflow-wrap: anywhere;
  }

  body.page-projects .closing .btn-primary {
    width: min(100%, 340px);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  body.page-projects nav.top {
    padding: .6rem .6rem;
  }

  body.page-projects nav.top .logo {
    font-size: .94rem;
  }

  body.page-projects nav.top .back {
    padding: .48rem .7rem;
    font-size: .72rem;
  }

  body.page-projects .hero {
    padding: 3rem 1rem 2.5rem !important;
  }

  body.page-projects .hero .label {
    gap: .55rem;
    font-size: .72rem;
  }

  body.page-projects .hero .label::before,
  body.page-projects .hero .label::after {
    width: 1.35rem;
  }

  body.page-projects .hero-author > div {
    width: min(72vw, 230px) !important;
  }

  body.page-projects .project {
    padding: 2.55rem 1rem !important;
  }

  body.page-projects .project-head {
    flex-direction: column;
    gap: .65rem;
  }

  body.page-projects .project-tag {
    white-space: normal;
    line-height: 1.5;
    text-align: right;
  }

  body.page-projects .project-quote {
    font-size: .9rem;
    padding-right: .9rem;
    line-height: 1.7;
  }

  body.page-projects .project-tags {
    gap: .45rem;
  }

  body.page-projects .project-tags span {
    font-size: .7rem;
    padding: .38rem .72rem;
  }

  body.page-projects .applications-nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: .85rem;
    border-radius: 15px;
  }

  body.page-projects .applications-nav-links span {
    display: none;
  }

  body.page-projects .applications-nav-links a {
    width: 100%;
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .65rem .8rem;
    border: 1px solid rgba(0, 0, 238, .18);
    border-radius: 11px;
    background: #fff;
  }

  body.page-projects .applications-nav-note {
    font-size: .88rem;
    line-height: 1.82;
  }

  body.page-projects footer {
    padding: 2rem 1rem;
    line-height: 1.7;
  }
}

@media (max-width: 370px) {
  body.page-projects nav.top {
    gap: .35rem;
  }

  body.page-projects nav.top .logo {
    font-size: .84rem;
  }

  body.page-projects nav.top .back {
    font-size: .67rem;
    padding: .44rem .55rem;
  }

  body.page-projects .theme-toggle {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }
}

/* ---------- Privacy page ---------- */
@media (max-width: 700px) {
  body.page-privacy {
    font-size: 15px;
  }

  body.page-privacy header {
    width: 100%;
    padding: .85rem 1rem;
  }

  body.page-privacy .wrap {
    width: 100%;
    max-width: 100%;
    padding: 2.6rem 1rem 4rem;
  }

  body.page-privacy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body.page-privacy .updated {
    margin-bottom: 2rem;
  }

  body.page-privacy .card {
    width: 100%;
    padding: 1.15rem;
    border-radius: 18px;
  }

  body.page-privacy .card h2 {
    font-size: 1.18rem;
    line-height: 1.35;
  }

  body.page-privacy .card p,
  body.page-privacy .card li {
    font-size: .92rem;
    line-height: 1.78;
  }

  body.page-privacy a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.page-privacy footer {
    width: 100%;
    padding: 1.7rem 1rem;
  }
}

/* ---------- 404 page ---------- */
@media (max-width: 600px) {
  body.page-404 {
    min-height: 100dvh;
    padding: 1.25rem;
  }

  body.page-404 .box {
    width: 100%;
    max-width: 520px;
  }

  body.page-404 .num {
    font-size: clamp(4.5rem, 27vw, 8rem);
  }

  body.page-404 h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  body.page-404 p {
    font-size: .95rem;
    line-height: 1.75;
  }

  body.page-404 a {
    width: min(100%, 320px);
    min-height: 49px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .8rem 1rem;
    border-radius: 14px;
  }
}


/* V51 - transparent brand logo across every active page */
body.page-home .brand .site-logo-img{height:60px!important;width:60px!important;max-width:60px!important;object-fit:contain!important;background:transparent!important}
body.page-tools .nav-logo .site-logo-img{height:58px!important;width:58px!important;max-width:58px!important;object-fit:contain!important;background:transparent!important}
body.page-projects nav.top .logo.logo-image-link{display:flex!important;align-items:center!important;min-width:0!important;margin-inline-end:auto!important}
body.page-projects nav.top .logo.logo-image-link .site-logo-img{height:56px!important;width:56px!important;max-width:56px!important;object-fit:contain!important;background:transparent!important}
@media(max-width:900px){
 body.page-home .brand .site-logo-img{height:46px!important;width:46px!important;max-width:46px!important}
 body.page-tools .nav-logo .site-logo-img{height:46px!important;width:46px!important;max-width:46px!important}
 body.page-projects nav.top .logo.logo-image-link .site-logo-img{height:44px!important;width:44px!important;max-width:44px!important}
}
@media(max-width:390px){
 body.page-home .brand .site-logo-img{height:40px!important;width:40px!important;max-width:40px!important}
 body.page-tools .nav-logo .site-logo-img{height:40px!important;width:40px!important;max-width:40px!important}
 body.page-projects nav.top .logo.logo-image-link .site-logo-img{height:38px!important;width:38px!important;max-width:38px!important}
 body.page-privacy header{padding:.45rem .75rem!important}
 body.page-privacy .privacy-logo img{width:42px!important;height:42px!important}
 body.page-404 .not-found-logo{width:104px!important;height:104px!important}
}


/* V52 - transparent header/footer logo sizing across active pages */
body.page-home .brand .site-logo-img{height:54px!important;width:auto!important;max-width:128px!important}
body.page-tools .nav-logo .site-logo-img{height:50px!important;width:auto!important;max-width:120px!important}
body.page-projects nav.top .logo.logo-image-link .site-logo-img{height:44px!important;width:auto!important;max-width:106px!important}
body.page-privacy .privacy-logo img{height:42px!important;width:auto!important;max-width:102px!important}
body.page-404 .not-found-logo{width:118px!important;height:118px!important}
@media(max-width:760px){
 body.page-home .brand .site-logo-img{height:42px!important;max-width:100px!important}
 body.page-tools .nav-logo .site-logo-img{height:42px!important;max-width:100px!important}
 body.page-projects nav.top .logo.logo-image-link .site-logo-img{height:38px!important;max-width:92px!important}
 body.page-privacy .privacy-logo img{height:38px!important;max-width:92px!important}
 body.page-404 .not-found-logo{width:102px!important;height:102px!important}
}
@media(max-width:390px){
 body.page-home .brand .site-logo-img{height:38px!important;max-width:92px!important}
 body.page-tools .nav-logo .site-logo-img{height:38px!important;max-width:92px!important}
 body.page-projects nav.top .logo.logo-image-link .site-logo-img{height:34px!important;max-width:82px!important}
 body.page-privacy .privacy-logo img{height:34px!important;max-width:82px!important}
}
