:root {
  color-scheme: light;
  --ink: #173b36;
  --muted: #667b76;
  --line: #dbe8e4;
  --paper: #fffdf9;
  --page: #f5f3ec;
  --primary: #356b61;
  --primary-dark: #27534b;
  --sage: #dfeee3;
  --forest: #d8ead9;
  --amber: #f8e6b8;
  --sky: #d9edf8;
  --lavender: #e7e0f4;
  --teal: #d8efea;
  --coral: #f7dfda;
  --shadow: 0 16px 40px rgba(37, 73, 66, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(249, 226, 176, 0.38), transparent 34rem),
    radial-gradient(circle at top right, rgba(215, 237, 231, 0.72), transparent 36rem),
    var(--page);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(53, 107, 97, 0.35);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 232, 228, 0.86);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e5f0e5, #cfe7da);
  box-shadow: inset 0 0 0 1px rgba(53, 107, 97, 0.12);
  font-size: 25px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.install-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 750;
}

.install-button:hover {
  background: #f4faf7;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.app-shell:focus,
.app-shell:focus-visible {
  outline: none;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 36px;
  min-height: 320px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(53, 107, 97, 0.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,248,243,0.96)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-panel::before {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -80px;
  background: rgba(246, 220, 168, 0.36);
}

.hero-panel::after {
  width: 180px;
  height: 180px;
  right: 90px;
  bottom: -110px;
  background: rgba(208, 232, 220, 0.62);
}

.hero-copy,
.hero-badge {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(2.1rem, 4.7vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.hero-copy p {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.hero-badge {
  display: grid;
  place-items: center;
  width: 190px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(53, 107, 97, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.77);
  text-align: center;
  box-shadow: 0 18px 50px rgba(53, 107, 97, 0.12);
}

.hero-badge-number {
  display: block;
  color: var(--primary);
  font-size: 4.3rem;
  font-weight: 900;
  line-height: 0.9;
}

.hero-badge span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}

.quick-start,
.tool-browser,
.privacy-panel {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.compact-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.privacy-panel h2 {
  margin: 6px 0 4px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.028em;
}

.section-heading p,
.privacy-panel p,
.category-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.quick-start-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 9px 25px rgba(51, 84, 77, 0.06);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.quick-start-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 107, 97, 0.35);
  box-shadow: 0 14px 30px rgba(51, 84, 77, 0.10);
}

.quick-start-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef6f1;
  font-size: 23px;
}

.quick-start-card strong,
.quick-start-card small {
  display: block;
}

.quick-start-card strong {
  line-height: 1.35;
}

.quick-start-card small {
  margin-top: 5px;
  color: var(--muted);
}

.quick-arrow {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 100%);
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.search-wrap input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.category-tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.category-list {
  display: grid;
  gap: 28px;
}

.category-section {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(53, 107, 97, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 10px 32px rgba(40, 71, 65, 0.06);
}

.category-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #eef6f1;
  font-size: 25px;
}

.category-heading h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.category-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f5f2;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  min-height: 300px;
  padding: 20px;
  border: 1px solid rgba(53, 107, 97, 0.12);
  border-radius: var(--radius-md);
  background: white;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--card-accent, var(--sage));
}

.color-sage { --card-accent: #8db89a; --card-soft: var(--sage); }
.color-forest { --card-accent: #6e9c74; --card-soft: var(--forest); }
.color-amber { --card-accent: #d7a94d; --card-soft: var(--amber); }
.color-sky { --card-accent: #6ea8c6; --card-soft: var(--sky); }
.color-lavender { --card-accent: #8c79b7; --card-soft: var(--lavender); }
.color-teal { --card-accent: #4e9a8d; --card-soft: var(--teal); }
.color-coral { --card-accent: #d98273; --card-soft: var(--coral); }

.tool-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: 4px;
  border-radius: 20px;
  background: var(--card-soft, var(--sage));
  font-size: 31px;
}

.tool-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-title-row h3 {
  margin: 0;
  font-size: 1.28rem;
}

.tool-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f5ec;
  color: #2f7154;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tool-content > p {
  margin: 12px 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.best-for {
  display: flex;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  background: #f7faf8;
  color: #536963;
  font-size: 0.88rem;
  line-height: 1.45;
}

.tool-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f4f2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.open-tool-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 850;
}

.open-tool-button:hover {
  background: var(--primary-dark);
}

.privacy-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(53, 107, 97, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e9f4ed, #f8f1df);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 23px;
  background: rgba(255,255,255,0.8);
  font-size: 34px;
}

.empty-state,
.load-error {
  padding: 52px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.78);
  text-align: center;
}

.empty-state > span,
.load-error > span {
  font-size: 2.2rem;
}

.empty-state h3,
.load-error h2 {
  margin: 12px 0 6px;
}

.empty-state p,
.load-error p {
  margin: 0;
  color: var(--muted);
}

.load-error button {
  margin-top: 18px;
  padding: 10px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  max-width: 570px;
  margin: 4px 0 0;
}

.footer-note {
  text-align: right;
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(53, 107, 97, 0.22);
  border-radius: 13px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .quick-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-badge {
    width: 160px;
    min-height: 160px;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .app-shell,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .install-button {
    padding: 9px 11px;
  }

  .install-button span + * {
    display: none;
  }

  .app-shell {
    padding-top: 20px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px 22px;
  }

  .hero-badge {
    width: 100%;
    min-height: auto;
    grid-template-columns: auto 1fr;
    justify-content: start;
    border-radius: 18px;
    text-align: left;
  }

  .hero-badge-number {
    font-size: 2.8rem;
  }

  .quick-start-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

  .category-section {
    padding: 18px;
  }

  .category-heading {
    grid-template-columns: auto 1fr;
  }

  .category-count {
    display: none;
  }

  .tool-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tool-icon {
    width: 58px;
    height: 58px;
  }

  .tool-title-row {
    align-items: start;
  }

  .tool-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .open-tool-button {
    justify-content: center;
  }

  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
