/* FreNiMi Tools landing page. Scoped to the home page; tool workspaces keep their own styles. */
.tools-home { --tools-purple: #493ab2; --tools-muted: #566176; background: #fff; }
.tools-home *, .tools-home *::before, .tools-home *::after { box-sizing: border-box; }
.tools-home [hidden] { display: none !important; }
.tools-home .tools-container { width: min(1160px, calc(100% - 48px)); }
.tools-home .tools-header { background: #fff; border-bottom: 1px solid #e9e8f1; }
.tools-home .tools-header-inner { min-height: 76px; gap: 28px; }
.tools-home .tools-brand { color: #19182b; flex-shrink: 0; }
.tools-home .tools-nav { gap: 24px; background: #fff; }
.tools-home .tools-nav a { color: #566176; font-size: .86rem; }
.tools-home .tools-nav a:hover, .tools-home .tools-nav a.active { color: #493ab2; background: transparent; }
.tools-home .tools-company-link { border-color: #e2dff0 !important; }
.tools-home .tools-nav-toggle { background: #fff; color: #242139; border-color: #dedbe9; }
.tools-home a:focus-visible, .tools-home button:focus-visible, .tools-home summary:focus-visible { outline: 3px solid #7e6cdb; outline-offset: 4px; }
.tools-home #all-tools, .tools-home .tool-category, .tools-home #my-workspace { scroll-margin-top: 96px; }

/* A quiet hero with one leading action and an explicitly labelled example. */
.tools-home .home-hero { padding: 68px 0 64px; background: linear-gradient(115deg,#faf9ff,#f2f3fc 70%,#f8fafc); overflow: hidden; }
.tools-home .home-hero::before { display: none; }
.tools-home .home-hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 56px; padding-bottom: 0; }
.tools-home .home-eyebrow { color: #62538e; font-size: .73rem; letter-spacing: .12em; margin-bottom: 22px; }
.tools-home .home-eyebrow span { background: #338369; box-shadow: 0 0 0 5px #e0eee8; }
.tools-home .home-hero h1 { font-size: clamp(2.5rem,4.5vw,3.65rem); line-height: 1.08; letter-spacing: -.05em; color: #19182b; text-wrap: balance; }
.tools-home .home-hero h1 span { color: #493ab2; }
.tools-home .home-hero .tools-lede { max-width: 530px; margin: 22px 0 26px; color: #566176; font-size: 1.05rem; line-height: 1.75; }
.tools-home .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.tools-home .hero-cta-primary, .tools-home .hero-cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 20px; border-radius: 10px; font-size: .92rem; font-weight: 750; text-decoration: none; }
.tools-home .hero-cta-primary { background: #493ab2; color: #fff; box-shadow: 0 8px 20px #493ab21a; }
.tools-home .hero-cta-primary:hover { background: #38298e; }
.tools-home .hero-cta-secondary { border: 1px solid #dcd8ed; background: #fff; color: #30284e; }
.tools-home .hero-popular { gap: 8px; color: #62687a; margin-top: 0; }
.tools-home .hero-popular>a { background: transparent; border: 0; border-bottom: 1px solid #c9c3df; border-radius: 0; padding: 2px 0; margin-right: 8px; color: #51466f; }
.tools-home .hero-popular>a:hover { color: #493ab2; border-color: #493ab2; }
.tools-home .hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; list-style: none; color: #52655c; font-size: .77rem; }
.tools-home .hero-trust li { display: inline-flex; align-items: center; gap: 5px; }
.tools-home .hero-trust i { color: #287759; }
.tools-home .home-hero-proof { min-height: 0; overflow: visible; }
.tools-home .proof-orbit { display: none; }
.tools-home .proof-window { margin: 0; padding: 22px; border: 1px solid #dfdced; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px #30235810; }
.tools-home .proof-window-top { gap: 10px; font-size: .75rem; }
.tools-home .proof-task-switcher { margin-top: 18px; }
.tools-home .proof-file { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px 12px; padding: 15px; margin: 18px 0; background: #f8f7fc; border: 1px solid #ece9f5; }
.tools-home .proof-file .tool-icon { width: 44px; height: 44px; border-radius: 11px; }
.tools-home .proof-file strong { overflow-wrap: anywhere; font-size: .86rem; }
.tools-home .proof-file small { font-size: .75rem; line-height: 1.5; }
.tools-home .proof-file-action { grid-column: 2; font-size: .72rem; white-space: normal; }
.tools-home .proof-flow { gap: 4px; font-size: .65rem; justify-content: space-between; }
.tools-home .proof-flow span { padding-inline: 0; }
.tools-home .proof-window>p { color: #38694f; font-size: .69rem; line-height: 1.6; }
.tools-home .proof-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 16px; padding: 0; }
.tools-home .proof-stats div { padding: 13px 8px; border: 1px solid #e6e2f1; border-top: 0; box-shadow: none; }
.tools-home .proof-stats div+div { border-left: 0; }
.tools-home .proof-stats span { color: #566176; font-size: .7rem; }

/* A complete featured grid, followed immediately by the searchable directory. */
.tools-home .featured-tools { padding-top: 56px; padding-bottom: 56px; }
.tools-home .tools-section-head { gap: 24px; margin-bottom: 26px; }
.tools-home .tools-section-head h2 { font-size: clamp(1.7rem,3vw,2.2rem); line-height: 1.2; letter-spacing: -.04em; }
.tools-home .tools-kicker { margin-bottom: 9px; font-size: .7rem; }
.tools-home .featured-grid { grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: minmax(156px,auto); gap: 16px; }
.tools-home .featured-card { padding: 22px; border: 1px solid #e4e2ed; border-radius: 14px; background: #fff; }
.tools-home .featured-card h3 { font-size: 1rem; line-height: 1.35; }
.tools-home .featured-card p { font-size: .85rem; line-height: 1.6; }
.tools-home .featured-card-primary { grid-column: span 2; grid-row: span 2; padding: 26px; background: #f5f3ff; box-shadow: none; border-color: #ded8f4; }
.tools-home .featured-card-primary h3 { margin-top: auto; color: #19182b; font-size: 1.5rem; }
.tools-home .featured-card-primary p { color: #566176; max-width: 400px; }
.tools-home .featured-tag { align-self: flex-start; background: #e8e2ff; color: #493ab2; padding: 5px 9px; border-radius: 6px; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.tools-home .featured-action { color: #493ab2; margin-top: 14px; }
.tools-home .tools-band { background: #f8f9fc; border-block: 1px solid #eeedf4; }
.tools-home .tools-main { padding-top: 56px; padding-bottom: 56px; }
.tools-home .directory-intro { max-width: 640px; color: #566176; font-size: .92rem; line-height: 1.65; margin: 12px 0 0; }
.tools-home .tool-result-count { flex-shrink: 0; font-size: .8rem; color: #566176; }
.tools-home .directory-controls { display: grid; gap: 16px; margin-bottom: 32px; }
.tools-home .directory-search { max-width: none; border: 1px solid #d9d5e8; border-radius: 12px; box-shadow: none; padding: 8px 14px; }
.tools-home .directory-search:focus-within { border-color: #7161c8; outline: 3px solid #493ab21a; }
.tools-home .directory-search input { font-size: .95rem; padding-block: 10px; }
.tools-home .directory-filter-wrap { width: 100%; }
.tools-home .tool-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.tools-home .tool-filters button { flex: 0 1 auto; min-height: 42px; padding: 10px 13px; border: 1px solid #e0ddeb; border-radius: 9px; background: #fff; color: #566176; font-size: .78rem; }
.tools-home .tool-filters button.active { border-color: #493ab2; background: #493ab2; color: #fff; box-shadow: none; }
.tools-home .tool-category { margin-top: 34px; }
.tools-home .tool-category:first-child { margin-top: 0; }
.tools-home .category-title { gap: 12px; margin-bottom: 18px; }
.tools-home .category-title h2 { font-size: 1.25rem; }
.tools-home .category-title p { font-size: .85rem; }
.tools-home .tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.tools-home .tool-card { display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto 1fr; column-gap: 13px; align-items: start; min-height: 116px; padding: 18px 32px 18px 16px; text-align: left; border-radius: 12px; }
.tools-home .tool-card .tool-icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; border-radius: 10px; font-size: 1.15rem; }
.tools-home .tool-card h3 { margin: 1px 0 5px; font-size: .94rem; line-height: 1.4; }
.tools-home .tool-card p { min-height: 0; margin: 0; font-size: .8rem; line-height: 1.55; }
.tools-home .tool-card .card-arrow { top: 16px; right: 12px; font-size: .72rem; }
.tools-home .tool-card .privacy-chip { grid-column: 2; margin-top: 9px; font-size: .65rem; }
.tools-home .tool-card[href="pdf-editor.html"] { border-color: #d7cef3; background: #fdfcff; }
.tools-home .tool-card:hover { border-color: #c7bee6; box-shadow: 0 8px 20px #33265b0a; transform: translateY(-2px); }

/* Supporting content has a lighter visual weight than the tools. */
.tools-home .workflow-story { padding-top: 48px; padding-bottom: 48px; }
.tools-home .workflow-story>header { max-width: 650px; margin-bottom: 24px; }
.tools-home .workflow-story h2 { font-size: clamp(1.65rem,3vw,2.1rem); letter-spacing: -.04em; }
.tools-home .workflow-story>header>p:last-child { color: #566176; font-size: .92rem; }
.tools-home .workflow-track { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.tools-home .workflow-step { min-height: 0; padding: 22px; border: 1px solid #e6e2ee; border-radius: 12px; background: #fff; }
.tools-home .workflow-step h3 { font-size: 1rem; margin: 12px 0 8px; }
.tools-home .workflow-step p { font-size: .86rem; }
.tools-home .workflow-number { font: 700 .85rem/1.2 'Space Grotesk',sans-serif; color: #7668b1; }
.tools-home .workflow-action { margin-top: auto; padding-top: 14px; font-size: .78rem; }
.tools-home .privacy-band { padding: 44px 0; background: #f1eef9; color: #19182b; }
.tools-home .privacy-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
.tools-home .privacy-grid h2 { color: #29203f; font-size: 2rem; }
.tools-home .privacy-grid .tools-kicker { color: #62538e; }
.tools-home .privacy-grid p:not(.tools-kicker) { color: #566176; font-size: .9rem; line-height: 1.75; }
.tools-home .privacy-grid ul { gap: 10px; }
.tools-home .privacy-grid li { border: 1px solid #e1dbea; background: #ffffff80; padding: 12px 14px; }
.tools-home .privacy-grid li>i { flex-shrink: 0; background: #e8e1f7; color: #62538e; }
.tools-home .privacy-grid small { color: #566176; }
.tools-home .privacy-evidence-link { color: #493ab2; font-size: .86rem; }
.tools-home .home-guides, .tools-home .home-faq { padding-top: 48px; padding-bottom: 20px; }
.tools-home .home-guide-grid>a { padding: 20px; border-radius: 12px; }
.tools-home .engagement-home { margin-top: 32px; margin-bottom: 32px; padding: 28px; border-radius: 14px; }
.tools-home .engagement-home h2 { font-size: 1.5rem; }
.tools-home .service-cta { margin-top: 24px; margin-bottom: 48px; }
.tools-home .service-cta-card { box-shadow: none; }
.tools-home .tools-footer { background: #f8f9fc; }
.tools-home .tools-footer-bottom { gap: 16px; flex-wrap: wrap; }
.tools-home .footer-location { margin-left: 16px; color: #68677a; }
.tools-home .local-workspace.is-empty { margin-top: 28px; margin-bottom: 28px; padding: 18px 24px; box-shadow: none; border-radius: 12px; }
.tools-home .local-workspace.is-empty .local-workspace-grid, .tools-home .local-workspace.is-empty .local-storage-note, .tools-home .local-workspace.is-empty .tools-kicker { display: none; }
.tools-home .local-workspace.is-empty .local-workspace-header { margin: 0; }
.tools-home .local-workspace.is-empty h2 { font-size: 1.1rem; }
.tools-home .local-workspace.is-empty p { font-size: .85rem; }

/* Small PDF editor illustration, drawn with HTML rather than a large image. */
.fe-mock { width: 100%; margin: 18px 0 22px; }
.fe-mock-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fe-mock-tools span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dcd8f3; border-radius: 6px; background: #fff; color: #4a4867; font-size: .65rem; font-weight: 700; }
.fe-mock-tools span.is-on { border-color: #493ab2; background: #493ab2; color: #fff; }
.fe-mock-page { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid #e3e1f0; border-radius: 8px; background: #fff; }
.fe-line { display: block; height: 7px; border-radius: 4px; background: #e6e5ef; }
.fe-w55 { width: 55%; } .fe-w70 { width: 70%; } .fe-w90 { width: 90%; }
.fe-hl { background: #ffe48a; box-shadow: 0 0 0 3px #ffe48a; }
.fe-edit { justify-self: start; padding: 2px 6px; outline: 1px solid #8d7bd3; border-radius: 2px; color: #242139; font-size: .8rem; }
.fe-edit i { display: inline-block; width: 1px; height: 1em; background: #493ab2; vertical-align: -2px; }
.fe-sign { width: 110px; height: 30px; color: #493ab2; }

@media (min-width: 1024px) {
  .tools-home .tools-nav { position: static; display: flex; flex-direction: row; align-items: center; margin-left: auto; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
  .tools-home .tools-nav a { padding: 8px 0; }
  .tools-home .tools-nav .tools-company-link { padding: 9px 12px; }
  .tools-home .tools-nav-toggle { display: none; }
}
@media (max-width: 1023px) {
  .tools-home .tools-nav { display: none; position: absolute; top: 75px; left: 24px; right: 24px; padding: 12px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid #e4e0ec; border-radius: 12px; box-shadow: 0 15px 35px #33265b16; }
  .tools-home .tools-nav.open { display: flex; }
  .tools-home .tools-nav a { padding: 12px; }
  .tools-home .tools-nav-toggle { display: block; }
  .tools-home .home-hero-grid { gap: 28px; }
  .tools-home .home-hero h1 { font-size: 2.8rem; }
  .tools-home .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tools-home .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tools-home .featured-card-primary { grid-column: span 2; grid-row: auto; min-height: 0; }
  .tools-home .featured-card-primary .fe-mock { max-width: 430px; }
}
@media (max-width: 760px) {
  .tools-home .home-hero { padding: 40px 0; }
  .tools-home .home-hero-grid { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .tools-home .home-hero-copy { max-width: 580px; }
  .tools-home .home-hero h1 { font-size: clamp(2.4rem,7.5vw,3.2rem); }
  .tools-home .home-hero-proof { width: 100%; max-width: 480px; justify-self: center; }
  .tools-home .privacy-grid, .tools-home .workflow-track { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tools-home .tools-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tools-home .tool-result-count { margin: 0; }
  .tools-home .featured-tools, .tools-home .tools-main { padding-top: 40px; padding-bottom: 40px; }
  .tools-home .workflow-story { padding-block: 40px; }
  .tools-home .directory-search kbd { display: none; }
}
@media (max-width: 540px) {
  .tools-home .tools-container { width: calc(100% - 32px); }
  .tools-home .tools-header-inner { min-height: 66px; }
  .tools-home .tools-nav { top: 65px; left: 16px; right: 16px; }
  .tools-home .home-hero h1 { font-size: clamp(2rem,8vw,2.7rem); }
  .tools-home .home-hero .tools-lede { font-size: .95rem; }
  .tools-home .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .tools-home .hero-trust { font-size: .72rem; gap: 8px 12px; }
  .tools-home .proof-window { padding: 16px; }
  .tools-home .proof-file-action span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .tools-home .tool-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .tools-home .tool-card { min-height: 0; padding: 16px 30px 16px 14px; }
  .tools-home .tool-card p { font-size: .83rem; }
  .tools-home .featured-grid { gap: 10px; }
  .tools-home .featured-card { padding: 16px; }
  .tools-home .featured-card h3 { font-size: .92rem; }
  .tools-home .featured-card-primary { padding: 20px; }
  .tools-home .featured-card-primary h3 { font-size: 1.35rem; }
  .tools-home .directory-search input { font-size: .84rem; }
  .tools-home .tool-filters { gap: 6px; }
  .tools-home .tool-filters button { font-size: .72rem; padding: 9px 10px; gap: 5px; }
  .tools-home .tool-filters button i { display: none; }
  .tools-home .engagement-home { padding: 22px 18px; }
  .tools-home .footer-location { display: block; margin: 5px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tools-home *, .tools-home *::before, .tools-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Fast keyboard search, suggestions, and shareable directory views. */
.tools-home .directory-search-wrap { position: relative; z-index: 10; }
.tools-home .tool-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 380px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid #dcd6ef; border-radius: 12px; background: #fff; box-shadow: 0 16px 38px #33265b1c; }
.tools-home .tool-suggestion { display: grid; gap: 3px; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: #242139; }
.tools-home .tool-suggestion strong { font-size: .9rem; }
.tools-home .tool-suggestion>span { font-size: .78rem; color: #566176; line-height: 1.5; }
.tools-home .tool-suggestion:hover, .tools-home .tool-suggestion[aria-selected="true"] { background: #f0ecfb; }
.tools-home .directory-utilities { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.tools-home .directory-utilities p { margin: 0; font-size: .72rem; color: #626b7d; line-height: 1.7; }
.tools-home .directory-utilities kbd { padding: 2px 4px; font: inherit; background: #efedf6; border-radius: 4px; }
.tools-home .directory-utilities>div { display: flex; gap: 8px; flex-shrink: 0; }
.tools-home .directory-utilities button { min-height: 40px; padding: 7px 11px; border: 1px solid #ddd7ec; border-radius: 8px; background: #fff; color: #493ab2; font-family: inherit; font-weight: 650; font-size: .75rem; line-height: 1.4; cursor: pointer; }
.tools-home .directory-utilities button:hover { background: #efebf8; }
.tools-home .directory-feedback { min-height: 0; margin: 0; color: #287759; font-size: .8rem; }
.tools-home .directory-feedback:empty { display: none; }
@media (max-width: 540px) { .tools-home .directory-utilities { align-items: flex-start; } .tools-home .directory-utilities p { max-width: 100%; } .tools-home .tool-suggestion { padding: 12px 10px; } }
