/* Homepage refinement, isolated from tool/account layouts. */
.home-page { --home-ink: #152747; --home-muted: #66758b; color: var(--home-ink); padding-top: 24px; }
.home-page a { text-underline-offset: 4px; }
.home-page .home-hero {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 30px 42px; align-items: center;
  padding: 38px 40px 0; border: 1px solid #e0e8f6; border-radius: 28px;
  background: linear-gradient(115deg, #edf3ff 0%, #f3f6fd 55%, #e9f0fd 100%);
}
.home-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #3d5b8d; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
.home-page h1 { font-size: clamp(36px, 4.3vw, 56px); line-height: 1.3; letter-spacing: -.045em; font-weight: 800; margin: 0 0 18px; }
.home-page h1 > span { color: var(--primary); }
.home-intro { font-size: 15px; color: #5c6c84; line-height: 1.9; margin-bottom: 20px; }
.home-benefits { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #51647f; font-size: 12px; }
.home-benefits span::before { content: '✓'; margin-right: 5px; color: #2563eb; font-weight: 700; }
.home-quicklinks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.home-quicklinks a { text-decoration: none; font-size: 13px; color: #334c72; font-weight: 600; padding: 7px 0; }
.home-quicklinks a:hover { color: var(--primary); }
.home-quicklinks a span { margin-left: 6px; }
.home-page .home-upload { background: #fff; padding: 22px 26px 18px; border-radius: 20px; border: 1px solid #d8e2f2; box-shadow: 0 12px 32px rgba(25, 55, 109, .06); }
.upload-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--home-muted); }
.match-badge { background: #edf4ff; color: #305ea7; padding: 4px 8px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.upload-file-types { display: flex; justify-content: center; align-items: end; gap: 10px; margin: 26px 0 20px; }
.file-type { position: relative; display: flex; align-items: center; justify-content: center; width: 54px; height: 66px; padding-top: 9px; border: 1px solid; border-radius: 8px; font-size: 12px; font-weight: 700; }
.file-type::before { content: ''; position: absolute; top: -1px; right: -1px; width: 15px; height: 15px; background: #fff; border-bottom: 1px solid; border-left: 1px solid; border-bottom-left-radius: 4px; }
.ft-pdf { color: #c85050; border-color: #f1cdcd; background: #fff3f3; }
.ft-word { color: #396ac4; border-color: #cedcf4; background: #edf3ff; }
.ft-excel { color: #238166; border-color: #c6e6db; background: #edf8f3; }
.ft-ppt { color: #bd7542; border-color: #efd8c8; background: #fff5ed; }
.home-page .home-upload h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.home-page .home-upload-caption { color: var(--home-muted); font-size: 13px; margin: 8px 0 18px; }
.home-page .home-upload .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-width: 0; min-height: 48px; background: #2563eb; box-shadow: 0 4px 12px #2563eb25; border-radius: 10px; }
.home-page .home-upload .btn:hover { background: #1d4ed8; }
.home-page .home-upload .btn:disabled { background: #9baecb; cursor: wait; }
.home-page .home-upload-hint { font-size: 11px; margin: 12px 0 0; color: #65748a; }
.home-page .home-upload-status { color: #65748a; margin-top: 15px; padding-top: 12px; font-size: 11px; }
.home-page .home-upload-status.is-error { color: #b42318; }
.home-page .home-upload-status.is-success { color: #12704a; }
.home-page .home-upload.dragover { background: #f0f6ff; border-color: #2563eb; outline: 2px dashed #2563eb; outline-offset: -7px; }
.home-process { grid-column: 1 / -1; display: flex; gap: 30px; align-items: center; border-top: 1px solid #dce5f4; padding: 18px 0; font-size: 12px; color: #627390; }
.home-process > span { display: inline-flex; align-items: center; gap: 7px; }
.home-process b { font-size: 11px; color: #3f6399; font-weight: 700; }
.home-process a { margin-left: auto; font-size: 11px; color: #64748b; text-decoration: none; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-kicker { color: #607087; font-size: 12px; margin-bottom: 4px; }
.home-page h2 { font-size: 25px; letter-spacing: -.03em; line-height: 1.45; }
.section-more { color: #587092; font-size: 13px; text-decoration: none; white-space: nowrap; padding: 6px 0; }
.section-more:hover { color: var(--primary); }
.home-popular { margin-top: 36px; }
.home-page .popular-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-page .tool-card { box-shadow: none; color: var(--home-ink); border-color: #e2e7f0; }
.home-page .tool-card:hover { box-shadow: 0 4px 16px #15274708; border-color: #b7cbea; }
.home-page .popular-grid .tool-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 3px 12px; border-radius: 14px; padding: 18px 16px; }
.home-page .popular-grid .t-icon { grid-column: 1; grid-row: 1 / 4; margin: 1px 0 0; align-self: start; }
.home-page .popular-grid .t-icon svg { width: 40px; height: 45px; filter: none; }
.home-page .popular-grid .t-name, .home-page .popular-grid .t-desc, .home-page .popular-grid .t-badge { grid-column: 2; }
.home-page .popular-grid .t-name { font-size: 15px; padding-right: 13px; margin: 0; }
.home-page .popular-grid .t-desc { font-size: 12px; line-height: 1.65; margin: 2px 0 6px; }
.home-page .popular-grid .t-badge { justify-self: start; margin: 0; font-size: 10px; letter-spacing: 0; padding: 2px 6px; border-radius: 4px; }
.card-arrow { position: absolute; top: 18px; right: 13px; color: #95a2b6; font-size: 14px; }
.home-free { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px; background: #f0f7f5; border: 1px solid #dcece6; padding: 28px 32px; border-radius: 18px; margin: 28px 0 44px; scroll-margin-top: 84px; }
.free-label { display: inline-block; color: #2e8065; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.home-free h2 { color: #245b4b; font-size: 23px; }
.home-free p { color: #4d705f; font-size: 12px; margin-top: 7px; }
.free-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.free-shortcuts a { display: flex; justify-content: space-between; gap: 8px; text-decoration: none; color: #365d50; background: #fff; border: 1px solid #dbe9e3; padding: 11px 14px; border-radius: 8px; font-size: 13px; }
.free-shortcuts a:hover { border-color: #8bbba5; }
.free-shortcuts a span { color: #90ac9e; }
.home-directory { scroll-margin-top: 84px; }
.tool-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dde4ee; border-radius: 10px; padding: 0 12px; min-width: 290px; color: #8391a6; }
.tool-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.tool-search input { flex: 1; width: 0; color: var(--home-ink); min-width: 0; height: 44px; font-size: 13px; border: 0; background: none; outline: 0; }
.tool-search input:focus-visible { outline: 0; }
.tool-search input::-webkit-search-cancel-button { display: none; }
.tool-search button { border: 0; background: #f0f3f8; color: #64748b; width: 30px; height: 30px; border-radius: 7px; cursor: pointer; font-size: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.category-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 1px solid #dde4ee; border-radius: 8px; text-decoration: none; background: #fff; color: #62728b; font-size: 13px; }
.category-links a:hover { background: #edf3ff; color: var(--primary); border-color: #b7cbea; }
.home-directory .tool-category { border: 1px solid #e1e7ef; border-radius: 14px; background: #fff; margin: 0 0 12px; overflow: hidden; scroll-margin-top: 84px; }
.home-directory summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; }
.home-directory summary::-webkit-details-marker { display: none; }
.home-directory summary h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.home-directory .cat-icon { width: 30px; height: 30px; border-radius: 8px; flex-basis: 30px; box-shadow: none; }
.home-directory .cat-icon svg { width: 18px; height: 18px; }
.category-count { margin-left: auto; font-size: 12px; color: #6b778b; white-space: nowrap; }
.category-chevron { width: 7px; height: 7px; border-right: 1.5px solid #8899b2; border-bottom: 1.5px solid #8899b2; transform: rotate(45deg); margin: -3px 2px 0 7px; }
.tool-category[open] .category-chevron { transform: rotate(225deg); margin-top: 4px; }
.home-directory .tool-grid { padding: 0 16px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.home-directory .tool-card { background: #f8fafc; padding: 16px; border-radius: 10px; }
.home-directory .t-icon { margin-bottom: 8px; }
.home-directory .t-icon svg { width: 36px; height: 42px; filter: none; }
.home-directory .t-name { font-size: 14px; }
.home-directory .t-desc { font-size: 12px; }
.home-directory .t-badge { font-size: 10px; letter-spacing: 0; }
.search-status { font-size: 13px; color: var(--home-muted); margin: 0 0 14px; }
.search-empty { background: #fff; border: 1px dashed #cdd8e8; padding: 30px 20px; border-radius: 12px; text-align: center; color: #66758b; font-size: 14px; }
.home-plans { margin-top: 44px; scroll-margin-top: 84px; }
.home-page .plan-grid { gap: 14px; }
.home-page .plan-card { box-shadow: none; border-color: #e0e6ef; padding: 26px; border-radius: 14px; }
.home-page .plan-featured { border-color: #b8cef3; background: #f7faff; }
.home-page .plan-card .p-tag { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.home-page .plan-card h3 { font-size: 18px; }
.home-page .plan-card p { min-height: 76px; font-size: 13px; line-height: 1.8; }
.home-page .plan-card a { display: inline-block; margin-top: 16px; color: #3e67a1; text-decoration: none; font-size: 13px; font-weight: 600; }
.home-assurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid #e1e6ee; border-bottom: 1px solid #e1e6ee; margin-top: 40px; padding: 28px 0; }
.home-assurance > div { position: relative; padding-left: 36px; }
.assurance-symbol { position: absolute; top: 0; left: 0; width: 25px; height: 25px; display: flex; justify-content: center; align-items: center; background: #e9effa; color: #5075ae; border-radius: 6px; font-size: 16px; }
.home-assurance h3 { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.home-assurance p, .home-assurance a { font-size: 12px; color: #63738a; text-decoration: none; }
.home-assurance a { display: inline-block; margin-top: 5px; color: #466da5; }
.home-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-top: 40px; }
.home-faq > div > a { display: inline-block; color: #61748e; margin-top: 16px; font-size: 13px; text-decoration: none; }
.faq-list details { border-bottom: 1px solid #e1e6ee; padding: 15px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #3b4e69; }
.faq-list summary::marker { color: #8b9ab0; }
.faq-list p { font-size: 13px; color: #6c7b90; line-height: 1.9; margin-top: 12px; }
.home-page .home-recommendations { margin-top: 14px; padding-top: 16px; border-top: 1px solid #e2e8f0; text-align: left; }
.home-page .home-recommendations h2 { font-size: 17px; margin-bottom: 12px; }
.home-page #recommendTitle:focus { outline: none; box-shadow: none; }
.home-page .home-recommendations .tool-grid { grid-template-columns: 1fr; gap: 9px; }
.home-page .home-recommendations .tool-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 14px; border-radius: 10px; text-align: left; }
.home-page .home-recommendations .t-name { grid-column: 1; font-size: 15px; margin: 0; }
.home-page .home-recommendations .t-desc { grid-column: 1 / -1; grid-row: 2; font-size: 12px; line-height: 1.6; margin: 0; }
.home-page .home-recommendations .t-badge { grid-column: 1; grid-row: 3; justify-self: start; margin: 1px 0 0; }
.home-page .home-recommendations .recommend-action { grid-column: 2; grid-row: 1; color: #2563eb; font-size: 12px; white-space: nowrap; margin: 0; }
.home-page .recommend-note { margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: #65748a; }
.home-page .more-tools { margin-top: 12px; border-top: 1px solid #e2e8f0; }
.home-page .more-tools > summary { display: flex; align-items: center; gap: 8px; min-height: 46px; cursor: pointer; color: #315d9d; font-size: 13px; font-weight: 600; list-style: none; }
.home-page .more-tools > summary::-webkit-details-marker { display: none; }
.home-page #smartMoreCount { font-size: 12px; font-weight: 400; color: #65748a; }
.home-page #moreToolGrid { max-height: 350px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 3px 6px; scrollbar-width: thin; }
.home-page #moreToolGrid .tool-card { padding: 12px; }
.more-tools-chevron { margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.more-tools[open] .more-tools-chevron { transform: rotate(225deg); }
.home-page .has-file .upload-before { display: none; }
.home-page .selected-file { display: flex; gap: 12px; text-align: left; margin: 20px 0 14px; align-items: center; }
.selected-file > div { min-width: 0; }
.selected-file strong { display: block; font-size: 15px; overflow-wrap: anywhere; line-height: 1.6; }
.selected-file span:not(.selected-file-check) { display: block; font-size: 12px; color: #65748a; margin-top: 3px; }
.selected-file-check { display: grid; place-items: center; background: #e9f7ef; color: #168057; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; font-size: 20px; }
.home-page .has-file #smartPickBtn { background: #f4f7fc; color: #36537f; box-shadow: none; border: 1px solid #dce5f2; min-height: 40px; font-size: 13px; }
.home-page .has-file .home-upload-status { font-size: 13px; line-height: 1.7; margin-top: 12px; padding-top: 0; }
@media (max-width: 1100px) {
  .home-page .home-hero { gap: 24px; padding: 28px 28px 0; }
  .home-page h1 { font-size: 42px; }
  .home-page .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-process { gap: 18px; }
  .home-directory .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .home-page { padding-top: 16px; }
  .home-page .home-hero { grid-template-columns: 1fr; padding: 24px 22px 0; gap: 22px; border-radius: 22px; }
  .home-page h1 { font-size: 40px; margin-bottom: 12px; }
  .home-eyebrow { margin-bottom: 12px; }
  .home-intro { margin-bottom: 12px; font-size: 14px; }
  .desktop-break { display: none; }
  .home-quicklinks { margin-top: 12px; }
  .home-page .home-upload { padding: 18px 20px 14px; }
  .upload-file-types { margin: 16px 0 12px; }
  .file-type { width: 44px; height: 50px; font-size: 10px; }
  .home-page .home-upload h2 { font-size: 18px; }
  .home-page .home-upload-caption { margin: 6px 0 14px; font-size: 12px; }
  .home-page .home-upload-status { margin-top: 12px; padding-top: 10px; }
  .home-process { gap: 12px; justify-content: space-between; padding: 14px 0; font-size: 11px; flex-wrap: wrap; }
  .home-process a { display: none; }
  .home-process > span { gap: 5px; }
  .home-popular { margin-top: 26px; }
  .home-section-head { align-items: center; margin-bottom: 16px; }
  .home-page h2 { font-size: 22px; }
  .section-more { font-size: 12px; }
  .home-page .popular-grid { gap: 10px; }
  .home-free { grid-template-columns: 1fr; gap: 20px; padding: 24px; margin-bottom: 32px; }
  .home-directory .home-section-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .tool-search { min-width: 0; width: 100%; }
  .tool-search button { width: 44px; height: 44px; background: none; }
  .home-directory .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-plans { margin-top: 32px; }
  .home-page .plan-grid { grid-template-columns: 1fr; }
  .home-page .plan-card p { min-height: 0; }
  .home-assurance { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; padding: 24px 0; }
  .home-faq { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
}
@media (max-width: 430px) {
  .home-page .home-hero { padding: 20px 16px 0; gap: 18px; }
  .home-page h1 { font-size: 34px; }
  .home-eyebrow { font-size: 11px; margin-bottom: 10px; }
  .home-intro { font-size: 12px; line-height: 1.8; }
  .home-benefits { font-size: 10px; gap: 5px 10px; }
  .home-quicklinks { gap: 15px; margin-top: 8px; }
  .home-quicklinks a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }
  .home-quicklinks a span { margin-left: 2px; }
  .home-page .home-upload { padding: 15px 16px 12px; border-radius: 14px; }
  .upload-card-head { font-size: 10px; }
  .match-badge { font-size: 9px; padding: 3px 6px; }
  .file-type { width: 38px; height: 42px; }
  .upload-file-types { display: none; }
  .upload-card-head { margin-bottom: 14px; }
  .file-type::before { width: 12px; height: 12px; }
  .home-page .home-upload h2 { font-size: 16px; }
  .home-page .home-upload-caption { font-size: 11px; }
  .home-page .home-upload .btn { min-height: 46px; font-size: 14px; }
  .home-page .home-upload-hint { font-size: 10px; }
  .home-page .home-upload-status { font-size: 10px; margin-top: 10px; padding-top: 8px; }
  .home-process { gap: 6px; font-size: 10px; }
  .home-process b { font-size: 9px; }
  .home-page .popular-grid .tool-card { display: flex; padding: 14px 12px; }
  .home-page .popular-grid .t-icon { margin-bottom: 7px; }
  .home-page .popular-grid .t-icon svg { width: 33px; height: 37px; }
  .home-page .popular-grid .t-name { font-size: 13px; }
  .home-page .popular-grid .t-desc { font-size: 11px; margin-bottom: 9px; }
  .home-page .popular-grid .t-badge { margin-top: auto; align-self: flex-start; }
  .card-arrow { top: 14px; right: 12px; }
  .home-free { padding: 22px 18px; }
  .home-free h2 { font-size: 20px; }
  .free-shortcuts a { font-size: 12px; padding: 10px; }
  .category-links { gap: 6px; }
  .category-links a { font-size: 11px; padding: 8px 10px; }
  .home-directory summary { padding: 14px; }
  .home-directory summary h3 { font-size: 14px; }
  .category-count { font-size: 10px; }
  .home-directory .tool-grid { padding: 0 10px 10px; grid-template-columns: 1fr; }
  .home-directory .tool-card { padding: 14px; gap: 0 12px; }
  .home-directory .t-icon svg { width: 34px; height: 40px; }
  .home-directory .t-name { font-size: 13px; }
  .home-directory .t-desc { font-size: 11px; }
  .home-plans .home-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 350px) {
  .home-page h1 { font-size: 29px; }
  .home-quicklinks { gap: 10px; }
  .home-quicklinks a { font-size: 10px; }
  .home-process b { display: none; }
  .home-directory summary { gap: 8px; }
}
