/*
|--------------------------------------------------------------------------
| TrovaFornitore UI - CSS unico
|--------------------------------------------------------------------------
| File ripulito da duplicati e conflitti.
| Pensato per essere usato come CSS condiviso Laravel/Vite.
| Struttura:
| 1. Variabili e base
| 2. Componenti globali
| 3. Pagine specifiche
| 4. Responsive
*/

/* =====================================================
   1. VARIABLES / BASE
===================================================== */
:root {
  --tf-blue: #0b2b5c;
  --tf-green: #079447;
  --tf-green-dark: #047735;
  --tf-orange-light: #c58a2a;
  --tf-soft: #f5f8fb;
  --tf-border: #e4eaf1;
  --tf-text: #10233f;
  --tf-muted: #637083;
  --tf-link: #0867d8;
  --tf-danger: #dc3545;
  --tf-footer: #06152d;
  --tf-shadow-sm: 0 8px 24px rgba(11, 43, 92, .08);
  --tf-shadow-md: 0 16px 38px rgba(11, 43, 92, .06);
  --tf-shadow-lg: 0 22px 60px rgba(11, 43, 92, .12);
  --tf-shadow-xl: 0 28px 70px rgba(11, 43, 92, .14);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tf-text);
  background: #fff;
  font-size: 16px;
  padding-top: 0;
}

body.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.app-shell main {
  flex: 1;
}

a {
  color: var(--tf-link);
}

/* =====================================================
   2. GLOBAL COMPONENTS
===================================================== */

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tf-border);
  z-index: 1050;
}

.brand-text {
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: -.04em;
}

.brand-blue { color: var(--tf-link); }
.brand-green { color: var(--tf-green); }

.navbar .nav-link {
  color: #41536c;
  font-weight: 700;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--tf-green);
}

/* ---------- Buttons ---------- */
.btn-tf {
  background: var(--tf-green);
  color: #fff;
  border: 0;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(7, 148, 71, .2);
}

.btn-tf:hover,
.btn-tf:focus {
  background: var(--tf-green-dark);
  color: #fff;
}

.btn-outline-tf {
  border-color: var(--tf-green);
  color: var(--tf-green);
  font-weight: 750;
}

.btn-outline-tf:hover,
.btn-outline-tf:focus {
  background: var(--tf-green);
  color: #fff;
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  font-weight: 700;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background: #fff;
  color: var(--tf-blue);
}

/* ---------- Hero ---------- */
.hero {
  padding: 7.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 75% 12%, rgba(7, 148, 71, .12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  overflow: visible;
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.06em;
  font-weight: 900;
  color: var(--tf-blue);
}

.hero h1 span {
  color: var(--tf-green);
}

.hero h1 .hero-characteristics,
.text-orange-light {
  color: var(--tf-orange-light) !important;
}

.hero .hero-counts-title {
  margin-top: 0.0rem;
  margin-bottom: 2rem;
  color: var(--tf-blue);
  font-size: clamp(1.8048rem, 3.84vw, 3.6864rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.06em;
}

.hero .hero-counts-title span {
  color: var(--tf-green);
}

.hero .hero-counts-title .hero-characteristics {
  color: var(--tf-orange-light);
}

.hero p.lead,
.hero .lead {
  color: #2b3d55;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 760px;
}

/* ---------- Section Titles ---------- */
.section-title {
  color: var(--tf-blue);
  font-weight: 900;
  letter-spacing: -.04em;
}

.muted,
.muted-note {
  color: var(--tf-muted);
}

.muted-note {
  font-size: .92rem;
}

.soft-section,
.faq-section {
  background: var(--tf-soft);
}

/* ---------- Cards ---------- */
.persona-card,
.quote-card,
.pricing-card,
.value-card,
.problem-card,
.solution-card,
.step-card,
.faq-card {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  box-shadow: var(--tf-shadow-md);
  height: 100%;
}

.persona-card,
.problem-card,
.solution-card,
.step-card,
.faq-card {
  padding: 1.5rem;
}

.persona-card {
  padding: 1.8rem 1.3rem;
  text-align: center;
}

.persona-card i {
  font-size: 2.7rem;
  color: var(--tf-green);
  margin-bottom: 1rem;
}

.persona-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tf-blue);
}

.persona-card p,
.quote-card p,
.pricing-card p {
  color: var(--tf-muted);
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-green);
  background: rgba(7, 148, 71, .08);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ---------- Lists ---------- */
.check-list li,
.feature-list li {
  display: flex;
  align-items: start;
  gap: .65rem;
  margin-bottom: .9rem;
  color: #33445c;
}

.check-list i,
.feature-list i {
  color: var(--tf-green);
  margin-top: .15rem;
}

.x-list i {
  color: var(--tf-danger);
}

/* ---------- Search / Autocomplete ---------- */
.search-card {
    margin-top: 2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible !important;
    padding: 0;
    position: relative;
    /* Keep the search and its suggestions below the fixed navbar (z-index: 1050). */
    z-index: 1040;
}

.search-autocomplete-form {
    display: flex !important;
    flex-direction: column !important;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}

.search-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
    width: 100%;
}

.search-main-fields {
    max-width: 620px;
    width: 100%;
    min-width: 0;
}

.search-dual-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: .65rem;
    width: 100%;
    background: transparent !important;
}

.search-verified-filter {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: .85rem;
    color: var(--tf-blue);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.search-verified-filter input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--tf-green);
    cursor: pointer;
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .search-main-fields {
        display: flex;
        align-items: flex-end;
        gap: .65rem;
        max-width: none;
    }

    .search-dual-fields {
        flex: 1 1 auto;
        flex-direction: row !important;
        min-width: 0;
    }

    .search-dual-fields .search-autocomplete-field {
        flex: 1 1 0;
        min-width: 0;
    }

    .search-dual-button {
        flex: 0 0 150px;
        width: 150px;
        margin-top: 0 !important;
    }
}

.search-autocomplete-field {
    width: 100%;
    background: transparent !important;
    position: relative;
}

.search-label {
    display: block;
    margin: 0 0 .35rem;
    padding-left: .25rem;
    color: var(--tf-blue);
    font-size: .92rem;
    font-weight: 800;
}

.search-input {
    display: block;
    width: 100%;
    height: 42px;
    border: 1.5px solid #9fb0c4 !important;
    border-radius: 13px !important;
    padding: 0 1.15rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--tf-text);
    background: #fff;
    box-shadow: 0 1px 0 rgba(11, 43, 92, .05), 0 8px 20px rgba(11, 43, 92, .06) !important;
}

.search-input:focus {
    border-color: var(--tf-green) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(7, 148, 71, .16), 0 10px 24px rgba(11, 43, 92, .08) !important;
}

.search-input::placeholder,
.search-tokenbox-input::placeholder {
    color: #52657a;
    opacity: 1;
}

.search-tokenbox {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    width: 100%;
    min-height: 42px;
    border: 1.5px solid #9fb0c4 !important;
    border-radius: 13px !important;
    padding: .25rem .55rem;
    background: #fff;
    box-shadow: 0 1px 0 rgba(11, 43, 92, .05), 0 8px 20px rgba(11, 43, 92, .06) !important;
    cursor: text;
}

.search-tokenbox:focus-within {
    border-color: var(--tf-green) !important;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(7, 148, 71, .16), 0 10px 24px rgba(11, 43, 92, .08) !important;
}

.search-tokenbox-tokens {
    display: contents;
}

.search-token {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: .35rem;
    border: 1px solid rgba(8, 146, 75, .18);
    border-radius: 999px;
    background: #f0f8f4;
    color: var(--tf-blue);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    padding: .28rem .32rem .28rem .62rem;
}

.search-token-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-token-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(11, 43, 92, .12);
    color: var(--tf-blue);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    padding: 0;
}

.search-token-remove:hover {
    background: var(--tf-green);
    color: #fff;
}

.search-tokenbox-input {
    flex: 1 1 170px;
    min-width: 140px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--tf-text);
    font-size: .95rem;
    font-weight: 700;
    outline: 0;
    padding: 0 .35rem;
}

.search-tokenbox-input::-webkit-search-cancel-button {
    display: none;
}

.search-popular-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
    min-height: 0;
}

.search-popular-panel {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    padding-top: 1.55rem;
}

.search-popular-section {
    width: 100%;
    border-left: 3px solid rgba(8, 146, 75, .18);
    padding-left: .8rem;
}

.search-popular-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.search-popular-title {
    color: var(--tf-blue);
    font-size: .82rem;
    font-weight: 850;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.search-popular-more {
    display: inline-flex;
    margin-top: .45rem;
    color: var(--tf-green);
    font-size: 1.14rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.search-popular-more:hover {
    color: var(--tf-green-dark);
    text-decoration: underline;
}

.search-popular-chip {
    max-width: 100%;
    border: 1px solid rgba(11, 43, 92, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--tf-text);
    font-size: .74rem;
    font-weight: 700;
    line-height: 1;
    padding: .32rem .6rem;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    box-shadow: 0 4px 12px rgba(11, 43, 92, .05);
}

.search-popular-chip:hover {
    border-color: var(--tf-green);
    color: var(--tf-green);
    background: #fff;
}

.search-button {
    width: 100%;
    height: 42px;
    border: 0 !important;
    border-radius: 13px !important;
    background: var(--tf-green) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: none !important;
}

.search-button:disabled {
    opacity: .92;
    cursor: wait;
}

.search-page-loading {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(3px);
}

.search-page-loading-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-width: 220px;
    border: 1px solid rgba(11, 43, 92, .12);
    border-radius: 8px;
    background: #fff;
    color: var(--tf-blue);
    font-size: 1.05rem;
    font-weight: 850;
    padding: 1rem 1.25rem;
    box-shadow: 0 18px 50px rgba(11, 43, 92, .2);
}

.search-page-loading-spinner {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    border: 3px solid rgba(8, 146, 75, .18);
    border-top-color: var(--tf-green);
    border-radius: 50%;
    animation: search-loading-spin .75s linear infinite;
}

.search-loading-dots span {
    animation: search-loading-dot 1.2s infinite;
    opacity: 0;
}

.search-loading-dots span:nth-child(2) {
    animation-delay: .2s;
}

.search-loading-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes search-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes search-loading-dot {
    0%,
    20% {
        opacity: 0;
    }

    35%,
    100% {
        opacity: 1;
    }
}

.search-button:hover {
    background: var(--tf-green-dark) !important;
    border-color: var(--tf-green-dark) !important;
}

.taxonomy-list {
    display: grid;
    gap: .55rem;
}

.taxonomy-level2-heading {
    margin-top: 1.35rem;
    padding-left: 0;
    color: var(--tf-blue);
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: none;
}

.taxonomy-level2-heading:first-child {
    margin-top: 0;
}

.taxonomy-level1-heading {
    margin: .45rem 0 -.12rem;
    padding-left: 1.25rem;
    color: #637083;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.taxonomy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--tf-border);
    border-radius: 8px;
    color: var(--tf-text);
    background: #fff;
    margin-left: 2.5rem;
    padding: .72rem .9rem;
    text-decoration: none;
}

.taxonomy-tree-node {
    display: block;
}

.taxonomy-tree-type > .taxonomy-row {
    margin-left: 0;
}

.taxonomy-tree-children {
    display: grid;
    gap: .45rem;
    margin-top: .45rem;
}

.taxonomy-region-row {
    margin-left: 1.4rem;
    background: #f8fbff;
}

.taxonomy-province-children {
    margin-top: .45rem;
}

.taxonomy-province-row {
    margin-left: 2.8rem;
    background: #fff;
}

.taxonomy-row:hover {
    border-color: var(--tf-green);
    color: var(--tf-green);
}

.taxonomy-row-name {
    background: transparent;
    border: 0;
    min-width: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}

.taxonomy-row-name:hover {
    color: var(--tf-green);
}

.taxonomy-row-actions {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
}

.taxonomy-expand-hint {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #d4e5ff;
    border-radius: 999px;
    background: #f4f8ff;
    color: var(--tf-blue);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    padding: .38rem .58rem;
    white-space: nowrap;
}

.taxonomy-expand-hint {
    border-style: solid;
    font-family: inherit;
    cursor: pointer;
}

.taxonomy-tree-type.is-open > .taxonomy-tree-summary .taxonomy-expand-hint {
    border-color: rgba(7, 148, 71, .28);
    background: rgba(7, 148, 71, .08);
    color: var(--tf-green);
}

.taxonomy-tree-characteristic.is-open > .taxonomy-row .taxonomy-toggle-button {
    border-color: rgba(7, 148, 71, .28);
    background: rgba(7, 148, 71, .08);
    color: var(--tf-green);
}

.taxonomy-tree-type.is-open > .taxonomy-tree-summary .taxonomy-expand-hint::after {
    content: " aperte";
}

.taxonomy-tree-characteristic.is-open > .taxonomy-row .taxonomy-toggle-button::after {
    content: " aperte";
}

.taxonomy-provinces-toggle-button.is-open {
    border-color: rgba(7, 148, 71, .28);
    background: rgba(7, 148, 71, .08);
    color: var(--tf-green);
}

.taxonomy-row-actions::after {
    content: "";
    width: 1px;
    height: 22px;
    background: var(--tf-border);
    order: 1;
}

.taxonomy-row strong {
    color: var(--tf-blue);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.taxonomy-download-button {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    order: 2;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .taxonomy-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
        margin-left: 0;
    }

    .taxonomy-region-row {
        margin-left: 0;
    }

    .taxonomy-province-row {
        margin-left: 0;
    }

    .taxonomy-row-actions {
        flex-wrap: wrap;
    }
}

.search-usage-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    align-items: center;
    justify-content: center;
    margin-top: .6rem;
    margin-bottom: .6rem;
    text-align: center;
    color: #637083;
    font-size: 1rem;
    line-height: 1.35;
}

.search-usage-stats-static {
    justify-content: flex-start;
    text-align: left;
}

.search-usage-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem .55rem;
    align-items: center;
    justify-content: center;
}

.search-usage-title {
    color: #0b2b5c;
    font-weight: 800;
}

.search-usage-title i {
    color: #079447;
    font-weight: 800;
}

.search-usage-group strong {
    color: #0b2b5c;
    font-weight: 800;
}

.search-box {
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 22px;
  z-index: 999999;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(11, 43, 92, .18),
    0 4px 12px rgba(11, 43, 92, .08);
}

.search-suggestion-item {
  padding: 16px 22px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--tf-text);
  background: #fff;
  transition: .15s ease;
}

.search-suggestion-item + .search-suggestion-item {
  border-top: 1px solid #edf1f5;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: #f0f8f4;
  color: var(--tf-green);
}

/* ---------- Tables / Comparisons ---------- */
.comparison-wrap {
  background: var(--tf-soft);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.comparison-table,
.comparison-table-wrap {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(11, 43, 92, .06);
}

.comparison-table th {
  color: var(--tf-blue);
  font-weight: 850;
  background: #f8fbff;
  text-align: center;
  vertical-align: middle;
}

.comparison-table td {
  vertical-align: middle;
  text-align: center;
  padding: 1rem;
}

.comparison-table td:first-child {
  text-align: left;
  color: #25344a;
  font-weight: 700;
}

.yes,
.good {
  color: var(--tf-green);
  font-weight: 900;
}

.no {
  color: #c8d0da;
  font-weight: 900;
}

.bad {
  color: var(--tf-danger);
  font-weight: 900;
}

/* ---------- CTA / Footer ---------- */
.cta-section {
  background: linear-gradient(135deg, #08244d, var(--tf-footer));
  color: #fff;
  padding: 3.5rem 0;
}

footer {
  background: var(--tf-footer);
  color: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.tf-footer {
  background:
    radial-gradient(circle at 82% 0, rgba(7, 148, 71, .15), transparent 34%),
    var(--tf-footer);
  color: rgba(255, 255, 255, .72);
}

.tf-privacy {
  padding: 3.75rem 0 3.25rem;
}

.tf-privacy__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: #78d69f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tf-privacy__eyebrow i {
  font-size: 1rem;
}

.tf-privacy h2 {
  max-width: 25rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.tf-privacy p {
  max-width: 28rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.tf-privacy__link,
.tf-footer__legal a {
  color: #fff;
  text-decoration: none;
}

.tf-privacy__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
}

.tf-privacy__link i {
  transition: transform .2s ease;
}

.tf-privacy__link:hover,
.tf-footer__legal a:hover {
  color: #78d69f;
}

.tf-privacy__link:hover i {
  transform: translateX(3px);
}

.tf-privacy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.tf-privacy__item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  min-height: 6.25rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .045);
}

.tf-privacy__item > i {
  display: grid;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: .75rem;
  background: rgba(7, 148, 71, .18);
  color: #78d69f;
  font-size: 1.1rem;
}

.tf-privacy__item span {
  font-size: .86rem;
  line-height: 1.45;
}

.tf-privacy__item strong {
  display: block;
  margin-bottom: .2rem;
  color: #fff;
  font-size: .96rem;
}

.tf-footer__legal {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
}

.tf-footer__legal a {
  color: rgba(255, 255, 255, .68);
  transition: color .2s ease;
}

@media (max-width: 575.98px) {
  .tf-privacy {
    padding: 3rem 0 2.5rem;
  }

  .tf-privacy__grid {
    grid-template-columns: 1fr;
  }

  .tf-privacy__item {
    min-height: auto;
  }
}

/* =====================================================
   3. PAGE / COMPONENT SPECIFIC
===================================================== */

/* ---------- Homepage ---------- */
.popular .badge {
  border: 1px solid var(--tf-border);
  color: var(--tf-blue);
  background: #fff;
  font-weight: 600;
  padding: .7rem 1rem;
  border-radius: 999px;
  margin: .25rem;
  cursor: pointer;
  font: inherit;
}

.mockup {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  box-shadow: var(--tf-shadow-xl);
  padding: 1.25rem;
}

.mock-search {
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: var(--tf-muted);
  font-size: .95rem;
}

.filter-panel {
  background: #f8fafc;
  border-radius: 14px;
  padding: 1rem;
  font-size: .82rem;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid #e8edf3;
}

.result-table {
  font-size: .8rem;
}

.result-table th {
  color: var(--tf-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.company-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e8f4ff;
  color: var(--tf-link);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .45rem;
}

.stats-band,
.value-box {
  background: linear-gradient(90deg, rgba(7, 148, 71, .08), rgba(8, 103, 216, .06));
  border: 1px solid var(--tf-border);
  border-radius: 20px;
  padding: 2rem;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-green);
  background: #fff;
  font-size: 1.8rem;
  box-shadow: var(--tf-shadow-sm);
}

.stat-icon-orange {
  color: var(--tf-orange-light);
  background: #fff6e8;
}

.quote-card {
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.quote-mark {
  color: var(--tf-green);
  font-size: 2.2rem;
  line-height: 1;
}

/* ---------- Pricing Page ---------- */
.trust-strip {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(11, 43, 92, .08);
  padding: 1.2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--tf-muted);
  font-weight: 600;
}

.trust-item i {
  color: var(--tf-green);
  font-size: 1.35rem;
}

.pricing-card {
  border-radius: 24px;
  padding: 2rem;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--tf-green);
  box-shadow: 0 26px 70px rgba(7, 148, 71, .18);
  transform: translateY(-10px);
}

.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tf-green);
  color: #fff;
  font-weight: 850;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .85rem;
  box-shadow: 0 10px 24px rgba(7, 148, 71, .25);
  white-space: nowrap;
}

.price {
  color: var(--tf-blue);
  letter-spacing: -.04em;
}

.price .amount {
  color: var(--tf-blue);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.05em;
}

.price .period {
  color: var(--tf-muted);
  font-weight: 600;
}

.value-card {
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(11, 43, 92, .05);
}

.value-card i {
  color: var(--tf-green);
  font-size: 2rem;
  margin-bottom: .7rem;
}

.accordion-item {
  border: 1px solid var(--tf-border);
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(11, 43, 92, .04);
}

.accordion-button {
  font-weight: 800;
  color: var(--tf-blue);
  background: #fff;
  padding: 1.2rem 1.4rem;
}

.accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--tf-green);
  box-shadow: none;
}

.accordion-body {
  color: var(--tf-muted);
  line-height: 1.65;
}

/* ---------- Website Landing Page ---------- */
.audit-card {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(11, 43, 92, .13);
  padding: 1.5rem;
}

.audit-screen {
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.audit-header {
  background: #f8fbff;
  border-bottom: 1px solid var(--tf-border);
  padding: .9rem 1rem;
  font-weight: 800;
  color: var(--tf-blue);
}

.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #edf2f7;
  font-size: .95rem;
}

.audit-row:last-child {
  border-bottom: 0;
}

.before-after {
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(11, 43, 92, .07);
  background: #fff;
}

.before-after .col-box {
  padding: 2rem;
}

.before-box { background: #fff7f7; }
.after-box { background: #f3fff8; }

/* ---------- Search Results Page ---------- */
.search-row {
  padding: 88px 0 1.5rem;
  border-bottom: 1px solid var(--tf-border);
  background:
    radial-gradient(circle at 75% 10%, rgba(7, 148, 71, .08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.page-wrap {
  padding: 1.75rem 0 4rem;
}

.page-wrap.search-taxonomy-page {
  padding-top: 6.5rem;
}

.content-panel {
  max-width: 980px;
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(11, 43, 92, .08);
  background: #fff;
  padding: 1.15rem 1.25rem;
}

.region-title {
  font-size: 1.15rem;
  color: var(--tf-text);
  font-weight: 850;
  text-transform: uppercase;
  border-bottom: 1px solid var(--tf-border);
  padding-bottom: .55rem;
  margin-bottom: 1.15rem;
}

.city-summary {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: start;
}

.city-name {
  color: var(--tf-green);
  font-weight: 850;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: .35rem;
}

.company-count {
  color: #111827;
  font-weight: 600;
}

.summary-keywords {
  color: #24344a;
  line-height: 1.55;
}

.summary-keywords strong {
  color: var(--tf-text);
  font-weight: 850;
}

.company-card {
  border: 1px solid #d5dce5;
  border-radius: 8px;
  background: #fafafa;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.company-card + .company-card {
  margin-top: 1.15rem;
}

.company-title {
  font-size: 1.2rem;
  line-height: 1.35;
  color: #141b25;
  font-weight: 850;
  margin-bottom: .25rem;
}

.verified {
  color: var(--tf-green);
  font-size: .9rem;
  margin-left: .35rem;
}

.company-link {
  color: var(--tf-link);
  text-decoration: none;
  font-weight: 600;
}

.company-link:hover {
  text-decoration: underline;
}

.company-address {
  color: #253044;
  margin-bottom: .85rem;
}

.data-section {
  margin-left: 1.25rem;
  margin-bottom: .9rem;
}

.data-section-title {
  font-weight: 850;
  margin-bottom: .25rem;
  color: #151d2a;
}

.data-list {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.data-list li {
  margin-bottom: .15rem;
}

.note-block {
  margin-left: 1.25rem;
  margin-top: .75rem;
  color: #253044;
  line-height: 1.45;
}

.note-title {
  font-weight: 850;
  margin-bottom: .15rem;
  color: #151d2a;
}

.company-divider {
  border-top: 1px solid #d9dfe8;
  margin: 1rem 0;
}

.soft-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(7, 148, 71, .08);
  color: var(--tf-green);
  border: 1px solid rgba(7, 148, 71, .18);
  font-size: .78rem;
  font-weight: 800;
  padding: .22rem .55rem;
  margin-left: .35rem;
  vertical-align: middle;
}

.topbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--tf-border);
  height: 56px;
}

.login-link {
  color: #4c5868;
  font-weight: 700;
  text-decoration: none;
  margin-left: 1.5rem;
}

/* ---------- Auth / Login ---------- */
.auth-page {
  min-height: 100vh;
  padding: 8rem 0 4rem;
  background:
    radial-gradient(circle at 75% 12%, rgba(7, 148, 71, .12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.auth-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.06em;
  font-weight: 900;
  color: var(--tf-blue);
}

.auth-title span {
  color: var(--tf-green);
}

.auth-lead {
  color: #2b3d55;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.auth-benefits {
  margin-top: 2rem;
  display: grid;
  gap: .9rem;
}

.auth-benefits div {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--tf-text);
  font-weight: 700;
}

.auth-benefits i {
  color: var(--tf-green);
  font-size: 1.3rem;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(11, 43, 92, .13);
  padding: 2rem;
}

.auth-card-title {
  color: var(--tf-blue);
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 2.4rem;
}

.auth-card-subtitle {
  color: var(--tf-muted);
  margin-bottom: 0;
}

.auth-input {
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid #d7e0ea;
  font-weight: 600;
}

.auth-input:focus {
  border-color: var(--tf-green);
  box-shadow: 0 0 0 .2rem rgba(7, 148, 71, .12);
}

.auth-password-toggle {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.auth-link {
  color: var(--tf-link);
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--tf-muted);
  margin: 1.8rem 0;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--tf-border);
}

.premium-lock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;

    background:
        linear-gradient(135deg,
            rgba(7,148,71,.06),
            rgba(8,103,216,.04)
        );

    border: 1px solid #dfe8f1;

    border-radius: 24px;

    padding: 1.5rem 1.6rem;

    margin-top: 2rem;

    box-shadow:
        0 18px 48px rgba(11,43,92,.08);
}

.premium-lock-icon {
    width: 64px;
    height: 64px;

    min-width: 64px;

    border-radius: 18px;

    background: rgba(7,148,71,.1);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--tf-green);

    font-size: 1.7rem;
}

.premium-lock-content {
    flex: 1;
}

.premium-lock-title {
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--tf-blue);

    margin-bottom: .35rem;
}

.premium-lock-text {
    color: #44556b;
    line-height: 1.55;
}

.premium-lock-action .btn {
    white-space: nowrap;
}

/* MOBILE */

@media (max-width: 768px) {

    .premium-lock-card {
        flex-direction: column;
        align-items: flex-start;

        padding: 1.2rem;
        border-radius: 20px;
    }

    .premium-lock-action {
        width: 100%;
    }

    .premium-lock-action .btn {
        width: 100%;
    }
}

/* =====================================================
   4. RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .hero {
    padding-top: 6rem;
  }

  .mockup {
    margin-top: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .navbar .btn-tf {
    width: 100%;
    margin-top: .75rem;
  }

  .search-row {
    padding: 78px 0 1.25rem;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .search-main-fields {
    max-width: none;
  }

  .search-popular-panel {
    padding-top: .25rem;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: auto;
  }

  .city-summary {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .content-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    padding: 1rem;
  }

  .page-wrap {
    padding-top: 1rem;
  }

  .company-title {
    font-size: 1.05rem;
  }

  .data-section,
  .note-block {
    margin-left: .4rem;
  }
}

@media (max-width: 575px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .search-card {
      margin-top: 1.5rem;
  }

  .search-autocomplete-form {
      border-radius: 0;
  }

  .search-input {
      width: 100%;
      height: 40px;
      border-radius: 12px !important;
      padding: 0 1rem;
      font-size: .95rem;
  }

  .search-tokenbox {
      min-height: 40px;
      border-radius: 12px !important;
      padding: .24rem .5rem;
  }

  .search-button {
      width: 100%;
      height: 40px;
      border-radius: 12px !important;
      font-size: 1rem;
  }

  .search-popular-panel {
    margin-top: .75rem;
  }

  .search-suggestions {
    width: 100%;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    z-index: 99999;
  }

  .stats-band,
  .value-box {
    padding: 1.3rem;
  }

  .pricing-card,
  .auth-card {
    padding: 1.35rem;
  }

  .comparison-table {
    font-size: .82rem;
  }

  .comparison-table td,
  .comparison-table th {
    padding: .7rem .5rem;
  }

  .auth-page {
    padding: 6rem 0 2.5rem;
  }

  .auth-card {
    border-radius: 18px;
  }

  .auth-card-title {
    font-size: 2rem;
  }
}
