/* Homepage: centered search with clean, section-led discovery. */
.home-page {
  background: #fff;
}

.home-page .site-header {
  border-bottom: 1px solid #edf1f6;
  background: rgba(255, 255, 255, .97);
}

.home-page .page-main {
  padding: 0 0 80px;
}

.home-page .brand,
.home-page .footer-brand {
  font-weight: 900;
  letter-spacing: -.05em;
}

.home-hero {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0 clamp(54px, 6vw, 76px);
  text-align: center;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.brand-eyebrow span {
  color: #2563eb;
}

.home-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.055em;
  word-break: keep-all;
}

.home-hero h1 > span {
  color: #2563eb;
}

.home-lead {
  margin: 14px 0 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.home-hero .hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  width: min(100%, 760px);
  margin: 30px auto 0;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(100deg, #2563eb 0%, #38bdf8 52%, #8b5cf6 100%) border-box;
  box-shadow: 0 14px 38px rgba(37, 99, 235, .12);
}

.home-hero .search-box {
  display: block;
  min-width: 0;
  width: 100%;
}

.home-hero .search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 10px 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 15px;
  box-shadow: none;
}

.home-hero .search-box input::placeholder {
  color: #98a2b3;
}

.home-hero .hero-search:focus-within {
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .1), 0 18px 42px rgba(37, 99, 235, .15);
}

.hero-search-button {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}

.hero-search-button:hover,
.hero-search-button:focus-visible {
  background: #1d4ed8;
  transform: scale(1.03);
}

.hero-search-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px 12px;
  margin-top: 20px;
}

.home-quick-links > span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.home-quick-links > span::before {
  margin-right: 6px;
  color: #2563eb;
  content: '•';
}

.home-quick-links a {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.home-quick-links a:hover,
.home-quick-links a:focus-visible {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-privacy-note {
  margin: 17px 0 0;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.6;
}

.home-section {
  margin-top: clamp(52px, 6vw, 78px);
}

.home-section-heading {
  align-items: end;
  margin: 0 0 18px;
}

.home-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #101828;
  font-size: clamp(25px, 2.7vw, 32px);
  line-height: 1.3;
  letter-spacing: -.04em;
}

.home-section-heading h2 > span {
  font-size: .82em;
  line-height: 1;
}

.home-section-heading p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.home-section-heading > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

.home-section-heading > a:hover,
.home-section-heading > a:focus-visible {
  color: #2563eb;
}

.home-highlight-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
}

.home-highlight-banner:hover,
.home-highlight-banner:focus-visible {
  border-color: #93c5fd;
  background: #eaf3ff;
}

.home-highlight-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.home-highlight-banner strong {
  font-size: 14px;
  line-height: 1.5;
}

.home-task-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-task-list > a {
  display: flex;
  min-width: 0;
  min-height: 196px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-task-list > a:hover,
.home-task-list > a:focus-visible {
  border-color: #b9cdf7;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .08);
  transform: translateY(-2px);
}

.home-task-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f2f4f7;
  font-size: 20px;
}

.home-task-list > a:nth-child(1) .home-task-icon { background: #ecfdf3; }
.home-task-list > a:nth-child(2) .home-task-icon { background: #fff4e8; }
.home-task-list > a:nth-child(3) .home-task-icon { background: #eef4ff; }
.home-task-list > a:nth-child(4) .home-task-icon { background: #fff1f3; }

.home-task-list strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.4;
  word-break: keep-all;
}

.home-task-list > a > span:not(.home-task-icon) {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}

.home-task-list small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.home-page .recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-page .recent-link {
  min-height: 88px;
  padding: 18px 20px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.home-category-section {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: #f8fafc;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-category-grid > a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-width: 0;
  min-height: 100px;
  padding: 17px;
  border: 1px solid #e4e7ec;
  border-radius: 15px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-category-grid > a:hover,
.home-category-grid > a:focus-visible {
  border-color: #b9cdf7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  transform: translateY(-2px);
}

.home-category-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #f2f4f7;
  font-size: 20px;
}

.home-category-copy {
  min-width: 0;
}

.home-category-copy strong {
  display: block;
  color: #101828;
  font-size: 15px;
  line-height: 1.4;
}

.home-category-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card-arrow {
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
}

.home-help-section {
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid #eaecf0;
}

.home-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  list-style: none;
}

.home-help-list li:nth-child(even) {
  border-left: 1px solid #eaecf0;
}

.home-help-list li:nth-child(n + 3) {
  border-top: 1px solid #eaecf0;
}

.home-help-list a {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 86px;
  padding: 18px 20px;
  transition: background-color .16s ease;
}

.home-help-list a:hover,
.home-help-list a:focus-visible {
  background: #f8fafc;
}

.home-help-list span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.home-help-list strong {
  color: #1d2939;
  font-size: 14px;
  line-height: 1.5;
  word-break: keep-all;
}

.home-help-list small {
  color: #98a2b3;
  font-size: 21px;
}

@media (max-width: 1080px) {
  .home-task-list,
  .home-page .recent-grid,
  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page .page-main {
    padding-bottom: 54px;
  }

  .home-hero {
    padding: 48px 0 46px;
  }

  .brand-eyebrow {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .home-hero h1 {
    font-size: clamp(31px, 9.2vw, 40px);
    line-height: 1.22;
  }

  .home-lead {
    margin-top: 12px;
    font-size: 14px;
  }

  .home-hero .hero-search {
    grid-template-columns: minmax(0, 1fr) 48px;
    margin-top: 24px;
    padding: 4px;
  }

  .home-hero .search-box input {
    min-height: 48px;
    padding-left: 16px;
    font-size: 14px;
  }

  .hero-search-button {
    width: 48px;
    height: 48px;
  }

  .home-quick-links {
    gap: 8px 11px;
    margin-top: 17px;
  }

  .home-quick-links > span {
    width: 100%;
  }

  .home-section {
    margin-top: 48px;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .home-section-heading h2 {
    font-size: 25px;
  }

  .home-highlight-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-highlight-banner > span:last-child {
    display: none;
  }

  .home-task-list,
  .home-page .recent-grid,
  .home-category-grid,
  .home-help-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-task-list > a {
    min-height: 0;
  }

  .home-task-list small {
    margin-top: 14px;
    padding-top: 0;
  }

  .home-category-section {
    margin-inline: -4px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .home-category-grid > a {
    min-height: 88px;
  }

  .home-help-list li,
  .home-help-list li:nth-child(even),
  .home-help-list li:nth-child(n + 3) {
    border-top: 1px solid #eaecf0;
    border-left: 0;
  }

  .home-help-list li:first-child {
    border-top: 0;
  }

  .home-help-list a {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search-button,
  .home-task-list > a,
  .home-category-grid > a {
    transition: none;
  }
}
