@import url('theme.css');

:root {
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #68c4b8; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { height: 78px; padding: 0 clamp(22px, 6vw, 92px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(228,234,232,.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--font-display); letter-spacing: -.7px; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--teal); color: white; font: 800 17px/1 var(--font-display); }
.brand-dot { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 36px; }
.nav-link { color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--teal-dark); }
.preview-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d9e7e2; border-radius: 99px; padding: 8px 12px; color: #607466; background: #f8fcf8; font-size: 11px; font-weight: 700; }
.preview-pill span, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #83b84d; }

.hero { position: relative; min-height: 428px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: 40px; padding: 62px clamp(22px, 10vw, 150px) 72px; background: #eff5f1; }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; top: -260px; right: -85px; border: 1px solid rgba(14,129,120,.08); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { margin: 0 0 17px; color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 24px; height: 2px; margin-right: 8px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font: 800 clamp(36px, 5vw, 58px)/1.12 var(--font-display); letter-spacing: -2.7px; }
h1 span { color: var(--teal); }
.hero-description { max-width: 560px; margin-bottom: 25px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.primary-button { min-height: 46px; display: inline-flex; align-items: center; gap: 18px; padding: 0 18px; border-radius: 8px; background: var(--teal); color: white; text-decoration: none; font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(14,129,120,.18); transition: transform .18s, background .18s; }
.primary-button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.primary-button span { font-size: 17px; }
.hero-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }

.hero-art { position: relative; min-height: 270px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(14,129,120,.14); border-radius: 50%; }
.orbit-one { width: 290px; height: 290px; }
.orbit-two { width: 220px; height: 220px; }
.hero-card { position: relative; z-index: 1; width: min(100%, 286px); padding: 23px 24px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: var(--white); box-shadow: 0 23px 50px rgba(27,65,66,.14); transform: rotate(2deg); }
.hero-card-top, .hero-card-foot { display: flex; align-items: center; justify-content: space-between; }
.hero-card-top { color: #899a9c; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.hero-card-title { margin: 22px 0 14px; font: 800 23px/1.26 var(--font-display); letter-spacing: -.7px; }
.mini-chart { height: 52px; display: flex; align-items: end; gap: 7px; border-bottom: 1px solid var(--line); }
.mini-chart i { flex: 1; display: block; border-radius: 4px 4px 0 0; background: #d3ebe4; }
.mini-chart i:nth-child(3n+1) { height: 35%; }
.mini-chart i:nth-child(3n+2) { height: 52%; }
.mini-chart i:nth-child(3n) { height: 75%; }
.mini-chart i:nth-child(7), .mini-chart i:nth-child(9), .mini-chart i:nth-child(11) { background: var(--teal); }
.hero-card-foot { margin-top: 13px; color: #75868a; font-size: 10px; }
.arrow-circle { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 14px; }
.floating-note { position: absolute; z-index: 2; right: 2%; bottom: 20px; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: var(--shadow); color: #455867; font-size: 11px; font-weight: 600; }
.note-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #38533b; font-size: 11px; }

.tools-section { padding: 72px clamp(22px, 8vw, 118px) 78px; background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1170px; margin: 0 auto 30px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { margin-bottom: 10px; font: 800 clamp(27px, 3.2vw, 38px)/1.2 var(--font-display); letter-spacing: -1.5px; }
.section-description { max-width: 630px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tool-count { min-width: 125px; display: flex; flex-direction: column; align-items: end; padding-bottom: 4px; color: var(--muted); font-size: 10px; }
.tool-count strong { color: var(--teal); font: 800 30px/1 var(--font-display); letter-spacing: -1px; }
.tool-controls { max-width: 1170px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; }
.search-box { flex: 1 1 255px; max-width: 365px; height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.search-icon { width: 15px; height: 15px; display: inline-block; border: 1.8px solid #85999a; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.8px; right: -4px; bottom: -2px; background: #85999a; transform: rotate(48deg); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #9aa8ad; }
.search-box kbd { padding: 3px 5px; border: 1px solid #e5e9e9; border-radius: 4px; color: #99a5a7; font: 10px var(--font-body); }
.category-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink-soft); cursor: pointer; font-size: 10px; font-weight: 600; transition: all .16s ease; }
.filter-chip:hover { border-color: #9bcfc3; color: var(--teal-dark); }
.filter-chip.selected { border-color: var(--teal); background: var(--teal); color: white; }
.results-label { max-width: 1170px; display: flex; justify-content: space-between; margin: 0 auto 12px; color: #9aa7ad; font-size: 10px; }
.results-label span:first-child { color: #687b86; font-weight: 700; }
.tool-grid { max-width: 1170px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.tool-card { min-height: 166px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 17px 14px; border: 1px solid #e4ece8; border-radius: 13px; background: #fff; box-shadow: 0 2px 8px rgba(26,57,59,.035); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
a.tool-card:hover { transform: translateY(-4px); border-color: #a6d2c7; background: #fcfefd; box-shadow: 0 15px 30px rgba(29,66,74,.1); }
a.tool-card:focus-visible { outline: 3px solid #68c4b8; outline-offset: 3px; }
.tool-card.active-card { border-color: #e0ebe6; }
.card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.tool-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#e4f3ef,#f2f8f5); color: #0c776f; }
.tool-icon svg { width: 22px; height: 22px; }
.icon-chart, .icon-trend, .icon-coins, .icon-bank, .icon-clock { background: linear-gradient(145deg,#eaf1fc,#f2f6fd); color: #416caa; }
.icon-home, .icon-building, .icon-ruler { background: linear-gradient(145deg,#fff1df,#fff8ef); color: #a85d20; }
.icon-receipt, .icon-percent, .icon-scale { background: linear-gradient(145deg,#f1ebfa,#f8f5fc); color: #74519b; }
.icon-shield, .icon-checklist, .icon-people, .icon-briefcase { background: linear-gradient(145deg,#eaf4e9,#f4f8f1); color: #4d7b4d; }
.icon-car { background: linear-gradient(145deg,#e9eff2,#f4f7f8); color: #536d79; }
.icon-compare, .icon-wallet, .icon-flame { background: linear-gradient(145deg,#e6f3f4,#f3f9f8); color: #337c7b; }
.card-label { max-width: calc(100% - 50px); overflow: hidden; padding: 5px 9px; border: 1px solid #edf1ef; border-radius: 99px; background: #f7f9f8; color: #768681; font-size: 9px; font-weight: 700; letter-spacing: .1px; text-overflow: ellipsis; white-space: nowrap; }
.tool-card strong { display: block; max-width: 100%; min-height: 40px; color: #1c3034; font: 700 14px/1.38 var(--font-display); letter-spacing: -.12px; }
.card-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid #f0f3f1; color: #91a0a5; font-size: 11px; }
.card-action { color: var(--teal-dark); font-weight: 700; }
.planned-label { color: #8a9692; font-weight: 650; }
.card-arrow { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: #eff7f4; color: var(--teal-dark); font-size: 15px; transition: transform .18s ease, background .18s ease; }
a.tool-card:hover .card-arrow { transform: translate(2px,-2px); background: #def0e9; }
.empty-state { padding: 40px; color: var(--muted); text-align: center; }
.preview-note { max-width: 1170px; margin: 22px auto 0; padding: 12px 14px; border-left: 3px solid var(--lime); border-radius: 0 6px 6px 0; background: #f8fbf2; color: #6d7d71; font-size: 10px; line-height: 1.6; }
.preview-note strong { color: #50664f; }

.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 31px clamp(22px, 10vw, 150px); background: #f5f8f6; border-top: 1px solid #ebefed; border-bottom: 1px solid #ebefed; }
.trust-strip > div { display: flex; align-items: center; gap: 12px; }
.trust-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--teal); font: 700 10px var(--font-display); }
.trust-strip p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.trust-strip strong { color: var(--ink); font-size: 11px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 23px clamp(22px, 6vw, 92px); background: #fff; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px 8px 8px 3px; font-size: 14px; }
.site-footer p { max-width: 430px; margin: 0; color: #8a989c; font-size: 9px; line-height: 1.6; }
.local-only { color: #7d8f80; font-size: 9px; }

@media (max-width: 920px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero { padding-left: 7vw; padding-right: 7vw; }
  .site-nav { gap: 20px; margin-right: 22px; }
}
@media (max-width: 680px) {
  .site-header { height: auto; min-height: 66px; flex-wrap: wrap; row-gap: 12px; padding: 12px 18px; }
  .site-nav { order: 3; display: flex; width: 100%; justify-content: space-between; gap: 12px; margin: 0; padding-top: 10px; border-top: 1px solid rgba(228,234,232,.8); }
  .nav-link { font-size: 12px; }
  .preview-pill { font-size: 9px; padding: 7px 9px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 10px; padding: 54px 23px 47px; }
  h1 { font-size: clamp(36px, 10vw, 48px); letter-spacing: -2px; }
  .hero-description { font-size: 13px; }
  .hero-art { min-height: 245px; margin-top: 2px; }
  .orbit-one { width: 245px; height: 245px; }
  .orbit-two { width: 185px; height: 185px; }
  .floating-note { right: 0; bottom: 5px; }
  .tools-section { padding: 49px 18px 54px; }
  .section-heading { align-items: start; }
  .tool-count { min-width: 58px; }
  .tool-controls { align-items: stretch; }
  .search-box { max-width: none; }
  .category-filters { overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 5px; }
  .filter-chip { flex: 0 0 auto; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .tool-card { min-height: 157px; padding: 12px; }
  .tool-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .tool-icon svg { width: 20px; height: 20px; }
  .card-label { padding: 4px 7px; font-size: 8px; }
  .tool-card strong { font-size: 12px; }
  .card-footer { font-size: 10px; }
  .trust-strip { grid-template-columns: 1fr; gap: 15px; padding: 23px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
