:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --white: #ffffff;
  --ink: #12233f;
  --ink-strong: #0b1730;
  --muted: #5a6c82;
  --muted-2: #6b7a86;
  --line: #e6ecf3;
  --surface: #f8fafc;
  --surface-soft: #fbfaf8;
  --orange: #e8661c;
  --orange-soft: #ff9d57;
  --orange-tint: #fff4ec;
  --success: #2ba16f;
  --blue: #2f6df0;
  --shadow-sm: 0 1px 2px rgba(18, 35, 63, 0.04), 0 4px 12px rgba(18, 35, 63, 0.04);
  --shadow: 0 20px 50px -18px rgba(18, 35, 63, 0.18);
  --shadow-lift: 0 26px 60px -20px rgba(18, 35, 63, 0.24);
  --ring: 0 0 0 4px rgba(232, 102, 28, 0.14);
  --content-max: 1160px;
  --content-gutter: clamp(20px, 3.5vw, 46px);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --transition: 0.24s cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
main {
  margin: 0;
  background: var(--bg);
  color: var(--ink-strong);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden-view {
  display: none !important;
}

/* TYPOGRAPHY */
main .view,
.modal-card,
.site-chat-panel {
  font-family: "Manrope", sans-serif;
}

main h1,
main h2,
main h3,
main h4,
.modal-card h2,
.site-chat-panel strong {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.035em;
  margin: 0;
}

main p,
main label,
main input,
main select,
main textarea,
main button,
.modal-card label,
.modal-card input,
.modal-card select,
.modal-card button {
  font-family: "Manrope", sans-serif;
}

.eyebrow {
  margin: 0 0 12px;
  color: #465060;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.section-heading em,
.home-view .reference-hero h1 em,
.home-view .reference-cta h2 em,
main .view:not(.home-view) h2 em {
  color: var(--orange);
  font-style: normal;
}

.section-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: right;
}

/* BUTTONS */
.button,
.reference-outline-button,
.reference-cta-link,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
}

.button:hover,
.reference-outline-button:hover,
.reference-cta-link:hover,
.card-link:hover {
  transform: translateY(-1px);
}

.button {
  padding: 12px 18px;
  border: 0;
  font-size: 0.72rem;
}

.button-small {
  padding: 9px 13px;
  font-size: 0.68rem;
}

.button-primary,
.button-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(7, 26, 59, 0.14);
}

.button-primary {
  background: var(--ink);
}

.button-dark {
  background: #071a3b;
}

.reference-login {
  background: var(--white) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-strong) !important;
}

.reference-register {
  box-shadow: 0 6px 16px rgba(242, 107, 34, 0.22);
}

.reference-outline-button {
  background: var(--white);
  border-color: #cfd8d4;
  color: var(--ink-strong);
  padding: 12px 17px;
  font-size: 0.68rem;
}

.reference-cta-link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 12px 16px;
}

.card-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: flex-start;
}

/* HEADER + BRAND */
.site-header {
  position: relative;
  z-index: 20;
  padding: 0 var(--content-gutter);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(7, 26, 59, 0.06);
}

.site-header-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  box-sizing: border-box;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  min-width: 0;
}

.main-nav a {
  color: #152034;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: 1.4rem;
  line-height: 1;
}

.text-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
  text-decoration: none;
}

.text-brand-name {
  display: flex;
  align-items: baseline;
  color: var(--ink);
  font: 800 1.55rem/0.82 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.text-brand-name b {
  color: var(--orange);
  font-weight: 800;
}

.text-brand-name .text-brand-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.36em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  padding-top: 0.05em;
  box-sizing: border-box;
  vertical-align: middle;
}

.text-brand small {
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid currentColor;
  color: var(--ink);
  font: 800 0.38rem/1 "Manrope", sans-serif;
  letter-spacing: 0.16em;
  text-align: center;
}

.site-footer .text-brand-name,
.site-footer .text-brand small {
  color: var(--white);
}

.site-footer .text-brand-name b {
  color: var(--orange);
}

/* HOME */
.home-view {
  background: var(--white);
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-view .reference-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 44px;
  max-width: var(--content-max);
  margin: 0 auto;
  width: calc(100% - (var(--content-gutter) * 2));
  padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 4vw, 60px);
}

.home-view .reference-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  justify-self: start;
}

.home-view .reference-hero h1 {
  color: var(--ink-strong);
  font: 800 clamp(2.25rem, 3.8vw, 4.2rem)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.045em;
  margin: 0;
}

.home-view .reference-hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 18px 0 24px;
  color: #2f3b50;
  font: 500 clamp(0.8rem, 1vw, 1rem)/1.7 "Manrope", sans-serif;
}

.reference-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reference-hero-actions .button,
.reference-hero-actions .reference-outline-button {
  font-size: 0.68rem;
  padding: 12px 17px;
  border-radius: 6px;
}

.home-view .reference-hero-visual {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  align-self: center;
}

.home-view .reference-hero-visual > img {
  width: 100%;
  height: auto;
  display: block;
}

.home-view .reference-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  margin: 0 auto;
  padding: 18px clamp(18px, 3vw, 34px);
  border-radius: 10px;
  background: #071a3b;
}

.home-view .reference-metrics > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
}

.home-view .reference-metrics svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  flex-shrink: 0;
}

.home-view .reference-metrics p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}

.home-view .reference-metrics b {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}

.home-view .reference-metrics span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.52rem;
  line-height: 1.3;
}

.home-matchmaker,
.reference-featured,
.reference-reviews,
.home-view .reference-process,
.reference-why,
.reference-categories {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  margin: 0 auto;
  padding: 38px 0;
}

.home-matchmaker {
  background: var(--surface);
}

.home-side-intro h2 {
  margin: 6px 0 12px;
  color: var(--ink-strong);
  font: 800 1.2rem/1.28 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.home-side-intro p {
  margin: 0 0 16px;
  color: #4b596c;
  font: 500 0.76rem/1.6 "Manrope", sans-serif;
}

.home-side-intro .button {
  font-size: 0.62rem;
  padding: 10px 12px;
}

.matchmaker-board {
  display: grid;
  grid-template-columns: 31% 69%;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.matchmaker-answers {
  display: grid;
  align-content: start;
  gap: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.matchmaker-answers article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.matchmaker-answers article:last-child {
  border-bottom: 0;
}

.matchmaker-answers i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f6ff;
  color: #3f7ced;
  font-style: normal;
  font-weight: 700;
}

.matchmaker-answers span {
  color: #6a7688;
  font: 500 0.58rem/1.4 "Manrope", sans-serif;
}

.matchmaker-answers b {
  display: block;
  margin-top: 3px;
  color: var(--ink-strong);
  font: 800 0.8rem "Manrope", sans-serif;
}

.matchmaker-results {
  padding-left: 18px;
}

.matchmaker-results h3 {
  margin: 0 0 12px;
  color: #142039;
  font: 800 0.82rem "Manrope", sans-serif;
}

.matchmaker-results > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.matchmaker-results article {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
}

.matchmaker-results b {
  color: #15213a;
  font: 800 0.72rem "Manrope", sans-serif;
}

.matchmaker-results span {
  color: #647185;
  font: 500 0.5rem "Manrope", sans-serif;
}

.matchmaker-results strong {
  color: var(--ink-strong);
  font: 800 0.7rem "Manrope", sans-serif;
}

.matchmaker-results small {
  position: absolute;
  top: 10px;
  right: 8px;
  color: var(--success);
  font: 800 0.46rem "Manrope", sans-serif;
}

.matchmaker-results button {
  margin-top: auto;
  border: 0;
  background: transparent;
  color: #3475dd;
  font: 700 0.5rem "Manrope", sans-serif;
  text-align: left;
  padding: 0;
}

.reference-featured {
  background: var(--white);
}

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

.featured-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.featured-card-img {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.featured-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.featured-card h3 {
  color: var(--ink-strong);
  font: 800 0.8rem "Manrope", sans-serif;
}

.featured-card-meta,
.detail-copy {
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.45;
  margin: 0;
}

.featured-card .card-link {
  margin-top: auto;
  font-size: 0.52rem;
  padding: 4px 0 0;
}

.reference-reviews {
  background: var(--surface);
}

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

.review-grid article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
}

.review-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-person img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.review-person b,
.review-person span {
  display: block;
}

.review-person b {
  font-size: 0.75rem;
}

.review-person span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.56rem;
}

.review-grid p {
  margin: 0;
  color: var(--ink-strong);
  font-size: 0.58rem;
  line-height: 1.5;
}

.review-grid small {
  margin-top: auto;
  color: #f27920;
  font-size: 0.6rem;
}

.reference-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  min-height: 136px;
  margin: 0 auto 30px;
  padding: 24px 46px;
  border-radius: 12px;
  background: #071a3b;
  color: var(--white);
}

.reference-cta p {
  margin: 0;
  color: #b9c7d9;
}

.reference-cta h2 {
  margin-top: 8px;
  color: var(--white);
  font: 800 clamp(1.6rem, 3vw, 2.6rem)/1.14 "Manrope", sans-serif;
  letter-spacing: -0.04em;
}

.reference-cta > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* CATALOG */
.catalog-view,
.detail-view,
.compare-view,
.roi-view,
.profile-view,
.admin-view,
.blog-view,
.franchisor-view,
.legal-view {
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  margin: 0 auto;
  padding-top: 42px;
  padding-bottom: 88px;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 18px;
  margin: 28px 0 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 330px);
  border-bottom: 1px solid var(--ink);
  padding: 6px 0;
}

.search-box span {
  color: var(--ink);
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  outline: 0;
  color: var(--ink-strong);
}

.catalog-select-wrap {
  position: relative;
  min-width: 180px;
}

.catalog-select-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink-strong);
  padding: 12px 38px 12px 12px;
  font: 600 0.78rem "Manrope", sans-serif;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--white) 0%, #fff 74%, #fbfcff 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 107, 34, 0.55);
  box-shadow: 0 18px 32px rgba(242, 107, 34, 0.12), 0 5px 0 rgba(242, 107, 34, 0.16);
}

.brand-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 1.3rem;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card-title {
  flex: 1;
  min-width: 0;
}

.brand-card h3 {
  margin: 0;
  font: 800 1.12rem/1.2 "Manrope", sans-serif;
  color: var(--ink-strong);
}

.sector-tag {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-left: 3px solid var(--orange);
  background: #fffaf5;
}

.brand-summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  color: var(--orange);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.brand-card-summary p {
  margin: 0 0 6px;
  color: var(--ink-strong);
  font-size: 0.8rem;
  line-height: 1.45;
}

.brand-card-summary small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-card-summary strong {
  display: block;
  font: 600 1.2rem "Manrope", sans-serif;
}

.brand-key-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.brand-key-points > div {
  min-width: 0;
}

.brand-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff4e9;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 6px;
}

.brand-key-points small {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-key-points strong {
  display: block;
  margin-top: 4px;
  color: var(--ink-strong);
  font-size: 0.72rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.card-actions .card-link {
  flex: 1;
  font-size: 0.56rem;
  padding: 12px 14px;
  border-radius: 24px;
  background: #f5f7fb;
}

.card-actions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.compare-check {
  accent-color: var(--orange);
}

.empty-state,
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}

.back-button,
.quiz-back,
.text-button,
.reference-text-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.back-button,
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  font-size: 0.72rem;
}

.reference-text-link,
.text-button {
  padding: 0;
  font-size: 0.72rem;
}

.full {
  width: 100%;
}

main input,
main select,
main textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink-strong);
  padding: 11px 12px;
  outline: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

main input:focus,
main select:focus,
main textarea:focus,
.modal-card input:focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 107, 34, 0.14);
}

main label,
.modal-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

main textarea,
.modal-card textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--orange);
  font-size: 0.7rem;
  line-height: 1.45;
}

.detail-content,
#detail-content,
#profile-content,
#roi-content,
#franchisor-content,
#admin-content {
  min-width: 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-bottom: 24px;
}

.detail-hero-image,
.detail-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.detail-hero-image {
  overflow: hidden;
  background: var(--surface);
}

.detail-hero-image img {
  object-fit: cover;
}

.detail-hero-copy h2,
.detail-section h3,
.brand-interest h3,
.profile-card h3,
.admin-control h3,
.admin-panel h3,
.franchisor-panel h3,
.modal-card h2 {
  color: var(--ink-strong);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.detail-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}

.detail-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
}

.detail-rating,
.score-badge,
.match-result > div > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: #fff4e9;
  color: var(--orange);
  padding: 6px 10px;
  font-size: 0.62rem;
  font-weight: 800;
}

.score-badge.is-verified {
  background: #e8f7f1;
  color: #168263;
}

.detail-tagline {
  max-width: 570px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.detail-tags,
.detail-actions,
.offer-media > div,
.franchisor-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.detail-actions {
  margin-top: 24px;
}

.detail-overview,
.detail-section,
.brand-interest,
.profile-card,
.admin-control,
.admin-panel,
.franchisor-panel,
.roi-box,
.p30-deck {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 72px;
  background: var(--line);
}

.detail-stat {
  min-width: 0;
  padding: 20px;
  background: var(--white);
}

.detail-stat small,
.compare-field small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-stat strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.85rem;
  line-height: 1.4;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 46px);
}

.detail-section > div,
.brand-interest > div,
.admin-panel > *,
.franchisor-panel > * {
  min-width: 0;
}

.detail-section h3,
.brand-interest h3 {
  margin-top: 8px;
}

.detail-prose,
.detail-section > div > p:not(.eyebrow),
.brand-interest > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.detail-prose h4,
.responsibility-grid h4 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 0.82rem;
}

.detail-prose p {
  margin: 0 0 18px;
}

.pillar-grid,
.responsibility-grid,
.role-selector,
.profile-form,
.roi-cost-breakdown,
.roi-area-data,
.admin-brand-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pillar-grid div,
.responsibility-grid > div,
.roi-cost-breakdown,
.roi-area-data > label {
  border-radius: 10px;
  background: var(--surface);
  padding: 14px;
  color: var(--ink-strong);
  font-size: 0.7rem;
  line-height: 1.45;
}

.detail-offer {
  align-items: center;
  background: #fffaf5;
  border-color: #f8dfcc;
}

.offer-media img {
  width: 100%;
  max-height: 210px;
  border-radius: 12px;
  object-fit: cover;
}

.offer-media > div {
  margin-top: 10px;
}

.offer-media span {
  border: 1px solid #f1c7a8;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--orange);
  font-size: 0.6rem;
  font-weight: 800;
}

.technical-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.technical-table > div,
.compare-field {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.technical-table > div:last-child,
.compare-field:last-child {
  border-bottom: 0;
}

.technical-table span {
  color: var(--muted);
}

.technical-table strong {
  max-width: 58%;
  color: var(--ink-strong);
  text-align: right;
}

.responsibility-grid ul {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
}

.network-map,
.roi-map {
  min-height: 330px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.brand-interest {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 70px);
  margin-top: 24px;
  padding: clamp(24px, 4vw, 46px);
  background: #071a3b;
  border-color: #071a3b;
}

.brand-interest h3,
.brand-interest .eyebrow {
  color: var(--white);
}

.brand-interest > div > p:not(.eyebrow) {
  color: #b9c7d9;
}

.brand-interest-form,
.profile-form,
.role-form,
.roi-box,
.franchisor-data-form,
.admin-access-form,
.match-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-interest-form label,
.profile-form label,
.role-form label,
.roi-box > label,
.franchisor-data-form label,
.admin-access-form label,
.match-contact-form label {
  align-content: start;
}

.brand-interest-form input,
.brand-interest-form select,
.brand-interest-form textarea {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.brand-interest-form label,
.brand-interest-form .consent-label {
  color: #d6e0ec;
}

.brand-interest-notes,
.consent-label,
.profile-form button,
.profile-form .form-message,
.franchisor-data-form .form-intro,
.franchisor-data-form button,
.franchisor-data-form .form-message,
.admin-access-form fieldset,
.admin-access-form button,
.admin-access-form .form-message,
.match-contact-form .consent-label,
.match-contact-form button,
.match-contact-form .form-message {
  grid-column: 1 / -1;
}

.consent-label {
  display: block !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.consent-label input,
.admin-active input,
.admin-brand-checks input {
  width: auto;
  accent-color: var(--orange);
}

.profile-card,
.admin-control,
.p30-deck {
  padding: clamp(22px, 4vw, 42px);
}

.profile-heading,
.admin-control-head,
.admin-panel-heading,
.match-assistant-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-heading {
  align-items: center;
  margin-bottom: 26px;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff4e9;
  color: var(--orange);
  font-size: 2rem;
  text-align: center;
}

.profile-email,
.admin-control-head p,
.profile-meta,
.profile-privacy-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-privacy-note {
  margin: 26px 0 14px;
  line-height: 1.5;
}

.role-selector {
  margin-bottom: 18px;
}

.role-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 15px;
  color: var(--ink-strong);
  text-align: left;
}

.role-card span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.role-card.is-selected {
  border-color: var(--orange);
  background: #fffaf5;
  box-shadow: 0 0 0 2px rgba(242, 107, 34, 0.12);
}

.role-form {
  margin: 18px 0;
  padding: 18px;
  border-radius: 10px;
  background: var(--surface);
}

.profile-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tracker-list,
.franchisor-leads-list,
.admin-access-row,
.franchisor-submission {
  display: grid;
  gap: 10px;
}

.tracker-item,
.franchisor-leads-list > div,
.admin-access-row,
.franchisor-submission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.tracker-status {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.tracker-status.is-done { color: var(--success); }
.tracker-status.is-pending { color: var(--orange); }

.roi-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 42px);
}

.roi-source,
.roi-hint,
.form-intro,
.franchisor-panel .section-note,
.admin-panel .section-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.roi-cost-breakdown {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
}

.roi-cost-breakdown legend {
  padding: 0 6px;
  color: var(--ink-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.roi-total {
  grid-column: 1 / -1;
  margin: 4px 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
}

.roi-total span { color: var(--orange); }

.roi-location,
.roi-area-data,
.roi-map {
  grid-column: 1 / -1;
}

.roi-location {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compare-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
}

.compare-grid,
.blog-grid,
.franchisor-kpis,
.admin-control-kpis,
.admin-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compare-item,
.blog-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 20px;
}

.compare-item h3,
.blog-card h3 {
  margin: 0 0 18px;
  color: var(--ink-strong);
  font-size: 1.05rem;
}

.compare-field { display: block; padding: 12px 0; }
.compare-field strong { color: var(--ink-strong); font-size: 0.75rem; line-height: 1.4; }
.consultation-cta { margin-top: 24px; }

.blog-card { min-height: 190px; }
.blog-card small { color: var(--orange); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.blog-card p { margin: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }

.franchisor-brand-picker {
  max-width: 340px;
  margin-bottom: 18px;
}

.franchisor-tabs { margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.franchisor-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 4px; color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.franchisor-tab.is-active { border-color: var(--orange); color: var(--ink-strong); }

.franchisor-kpis,
.admin-control-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.franchisor-kpis > div,
.admin-control-kpis > div { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px; }
.franchisor-kpis span,
.admin-control-kpis span { display: block; color: var(--muted); font-size: 0.62rem; }
.franchisor-kpis strong,
.admin-control-kpis strong { display: block; margin-top: 7px; color: var(--ink-strong); font-size: 1.45rem; }
.franchisor-panel,
.admin-panel { padding: 22px; }
.franchisor-panel h3,
.admin-panel h3 { margin-bottom: 18px; font-size: 1.35rem; }
.franchisor-leads-list span,
.admin-access-row span,
.admin-access-row small,
.franchisor-submission span,
.franchisor-submission small { display: block; color: var(--muted); font-size: 0.65rem; line-height: 1.5; }
.franchisor-submission { align-items: flex-start; }

.admin-control-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.admin-control-links button { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px; color: var(--ink-strong); text-align: left; }
.admin-control-links span { color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.profile-franchisor-link { display: block; width: max-content; margin-top: 20px; }

.admin-summary { margin-bottom: 18px; }
.admin-directory-warning { display: flex; flex-direction: column; gap: 3px; margin: 0 0 18px; padding: 12px 14px; border: 1px dashed var(--orange); border-radius: 10px; background: #fff4e9; color: #9a5b2c; font-size: 0.68rem; line-height: 1.5; }
.admin-directory-warning strong { color: #7a3f12; font-size: 0.74rem; }
.admin-user-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-user-search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 0 12px; color: var(--muted); }
.admin-user-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; color: var(--ink-strong); font-size: 0.74rem; outline: none; }
.admin-role-filter { border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-strong); padding: 10px 12px; font-size: 0.72rem; }
.admin-user-count { margin: 0 0 8px; color: var(--muted); font-size: 0.66rem; }
.admin-user-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-main { min-width: 0; }
.admin-user-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-user-head strong { color: var(--ink-strong); font-size: 0.8rem; word-break: break-all; }
.admin-user-badge { border-radius: var(--radius-pill); padding: 3px 9px; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-user-badge.is-super { background: #071a3b; color: #fff; }
.admin-user-badge.is-admin { background: #eaf1fb; color: #1d4f91; }
.admin-user-badge.is-franchisor { background: #e9f7ef; color: #0e7a4d; }
.admin-user-badge.is-user { background: #fff2e0; color: #a05a12; }
.admin-user-badge.is-disabled { background: #f1f2f5; color: #8a93a0; }
.admin-user-meta { margin-top: 4px; color: var(--muted); font-size: 0.62rem; line-height: 1.5; }
.admin-user-brands { margin-top: 3px; color: var(--muted); font-size: 0.64rem; }
.admin-user-actions { flex: none; }
.admin-role-lock { display: inline-block; color: #9a5b2c; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-directory .admin-user-list + .section-note { margin-top: 12px; }
.admin-layout { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 460px); align-items: start; gap: 18px; }
.admin-panel { min-width: 0; }
.admin-access-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.admin-access-form legend { padding: 0 5px; color: var(--ink-strong); font-size: 0.7rem; font-weight: 800; }
.admin-brand-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-brand-checks label { display: flex; align-items: center; gap: 6px; font-size: 0.65rem; font-weight: 500; }

.preview-switch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.preview-switch > span { color: var(--muted); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.preview-switch-options { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-switch-options button { border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: var(--radius-pill); padding: 6px 13px; font-size: 0.68rem; font-weight: 800; }
.preview-switch-options button:hover { border-color: var(--orange); }
.preview-switch-options button.is-active { border-color: var(--orange); background: var(--orange); color: #fff; }

.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding: 14px 16px; border: 1px dashed #e8a26a; border-radius: 12px; background: #fff4e9; }
.preview-bar-copy { display: flex; flex-direction: column; gap: 2px; }
.preview-bar-copy strong { color: var(--ink-strong); font-size: 0.8rem; }
.preview-bar-copy span { color: #9a5b2c; font-size: 0.68rem; line-height: 1.45; }
.preview-bar .preview-switch { margin: 0; padding: 0; border: 0; background: transparent; }
.preview-bar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.preview-brand-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.preview-brand-select select { max-width: 220px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink-strong); padding: 6px 10px; font-size: 0.72rem; text-transform: none; letter-spacing: 0; }

.p30-deck { min-height: 360px; }
.p30-slide { display: none; max-width: 720px; padding: 24px 0 58px; }
.p30-slide.is-active { display: block; }
.p30-slide h1,
.p30-slide h2 { margin: 12px 0; color: var(--ink-strong); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }
.p30-slide > p:not(.p30-badge) { color: var(--muted); line-height: 1.7; }
.p30-badge { color: var(--orange); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.p30-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.p30-feature { display: grid; gap: 5px; padding: 14px; border-radius: 10px; background: var(--surface); }
.p30-feature span { color: var(--muted); font-size: 0.7rem; line-height: 1.4; }
.p30-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.p30-nav button { border: 0; background: transparent; color: var(--ink); font-size: 0.72rem; font-weight: 800; }
.p30-nav button:disabled { color: #b8c2ce; cursor: not-allowed; }
.p30-dots { display: flex; gap: 6px; }
.p30-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.p30-dots i.is-active { background: var(--orange); }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: rgba(7, 26, 59, 0.64);
}

.modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: min(840px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 16px;
  background: var(--white);
  padding: clamp(24px, 5vw, 46px);
  box-shadow: 0 24px 70px rgba(7, 26, 59, 0.24);
}

.modal-card.match-card { width: min(100%, 760px); }
.modal-card.compare-card { width: min(100%, 980px); }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; }
.modal-card h2 { margin: 8px 0 24px; }
.modal-card form { margin-top: 18px; }
.modal-card .auth-social-note { color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.modal-card .auth-login-button { display: block; margin: 18px auto 0; }

.modal-card.auth-card { width: min(100%, 540px); }
.auth-card h2 { margin: 8px 0 24px; }
.auth-providers { display: grid; gap: 12px; margin-top: 4px; }
.auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.auth-provider:hover { transform: translateY(-1px); }
.auth-provider:active { transform: translateY(0); }
.auth-provider:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.auth-provider svg { flex: none; width: 20px; height: 20px; }
.auth-provider.auth-google { background: var(--white); border-color: #d7dfe9; color: var(--ink-strong); }
.auth-provider.auth-google:hover { border-color: #b9c6d6; box-shadow: 0 8px 18px rgba(7, 26, 59, 0.08); }
.auth-provider.auth-facebook { background: #1877f2; border-color: #1877f2; color: #fff; box-shadow: 0 8px 18px rgba(24, 119, 242, 0.24); }
.auth-provider.auth-facebook:hover { background: #0f6ae0; box-shadow: 0 10px 22px rgba(24, 119, 242, 0.3); }
.auth-card .auth-social-note { margin: 14px auto 0; max-width: 90%; text-align: center; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card form { margin-top: 16px; }
.auth-card form label { margin-bottom: 14px; }
.auth-card .auth-consent { margin: 2px 0 20px; }
.auth-card form .button { min-height: 52px; margin-top: 2px; border-radius: 12px; font-size: 0.85rem; }
.auth-card .form-message { text-align: center; margin-top: 12px; }

.match-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.match-progress i { display: block; width: 32%; height: 4px; border-radius: 4px; background: var(--line); }
.match-progress i.is-active,
.match-progress i.is-complete { background: var(--orange); }
.match-intro,
.match-interview-count { color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.match-options { display: grid; gap: 10px; margin-top: 24px; }
.match-option { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px; color: var(--ink-strong); text-align: left; }
.match-option:hover { border-color: var(--orange); background: #fffaf5; }
.match-option span { color: var(--muted); font-size: 0.68rem; }
.match-option b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--orange); }
.match-assistant-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 0.65rem; font-weight: 800; }
.match-assistant-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.match-messages { display: grid; gap: 8px; max-height: 230px; overflow: auto; margin: 18px 0; padding: 4px; }
.match-message { max-width: 86%; border-radius: 10px; padding: 10px 12px; color: var(--ink-strong); font-size: 0.72rem; line-height: 1.5; }
.match-message-bot { background: var(--surface); }
.match-message-user { justify-self: end; background: #fff4e9; }
.match-quick-replies { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.match-quick-replies button { border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 8px 11px; color: var(--ink); font-size: 0.65rem; }
.match-answer-form { display: flex; gap: 8px; }
.match-answer-form input { min-width: 0; }
.match-results { display: grid; gap: 10px; margin-top: 20px; }
.match-result { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.match-result img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--surface); }
.match-result h3 { margin: 6px 0 3px; color: var(--ink-strong); font-size: 0.85rem; }
.match-result p,
.match-reasons { margin: 0; color: var(--muted); font-size: 0.65rem; line-height: 1.45; }
.result-detail { border: 0; background: transparent; color: var(--orange); font-size: 1.25rem; }
.match-ai-insight { margin-top: 18px; border-left: 3px solid var(--orange); background: #fffaf5; padding: 13px 15px; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.match-ai-insight strong { display: block; margin-bottom: 5px; color: var(--ink-strong); }
.match-catalog-link { display: block; margin: 18px auto 0; }

.chat-float { position: fixed; z-index: 60; right: 22px; bottom: 22px; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 1.2rem; box-shadow: 0 12px 24px rgba(242, 107, 34, 0.28); }
.site-chat-panel { position: fixed; z-index: 70; right: 22px; bottom: 86px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 22px 54px rgba(7, 26, 59, 0.2); }
.site-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--ink); color: var(--white); }
.site-chat-header strong,
.site-chat-header span { display: block; }
.site-chat-header span { margin-top: 4px; color: #b9c7d9; font-size: 0.62rem; }
.site-chat-close { border: 0; background: transparent; color: var(--white); font-size: 1.4rem; }
.site-chat-messages { display: grid; align-content: start; gap: 9px; overflow: auto; padding: 16px; background: var(--surface); }
.site-chat-message { max-width: 84%; border-radius: 10px; padding: 10px 12px; font-size: 0.7rem; line-height: 1.5; }
.site-chat-message.bot { background: var(--white); }
.site-chat-message.user { justify-self: end; background: #fff4e9; }
.site-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.site-chat-form input { min-width: 0; }

/* FOOTER */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: 30px var(--content-gutter) 14px;
  background: #001c3d;
  border-top: 1px solid #001c3d;
  color: var(--white);
}

.site-footer > .footer-grid,
.site-footer > .footer-bottom {
  width: min(var(--content-max), 100%);
  max-width: var(--content-max);
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand p {
  max-width: 200px;
  margin: 14px 0 12px;
  color: rgba(255, 255, 255, 0.85);
  font: 500 0.68rem/1.65 "Manrope", sans-serif;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid nav strong {
  margin-bottom: 3px;
  color: var(--white);
  font: 800 0.76rem "Manrope", sans-serif;
}

.footer-grid nav a {
  color: rgba(255, 255, 255, 0.8);
  font: 500 0.66rem "Manrope", sans-serif;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-socials svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font: 500 0.58rem "Manrope", sans-serif;
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
  .main-nav {
    gap: 18px;
  }

  .home-view .reference-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-view .reference-hero-copy {
    justify-self: stretch;
    max-width: 100%;
  }

  .home-view .reference-hero-visual {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .home-view .reference-hero-visual > img {
    height: auto;
  }

  .home-view .reference-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-matchmaker,
  .reference-featured,
  .reference-reviews,
  .home-view .reference-process,
  .reference-why,
  .reference-categories {
    grid-template-columns: 1fr;
  }

  .matchmaker-board {
    grid-template-columns: 1fr;
  }

  .matchmaker-answers {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .matchmaker-results {
    padding: 14px 0 0;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-header-inner {
    min-height: 60px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px var(--content-gutter);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    margin: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .home-view .reference-hero {
    padding: 40px 0 28px;
  }

  .home-view .reference-hero-copy {
    max-width: 100%;
  }

  .home-view .reference-hero-visual {
    display: none;
  }

  .home-view .reference-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
  }

  .reference-cta > div:last-child {
    justify-content: flex-start;
  }

  .matchmaker-results > div {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 18px;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .main-nav {
    gap: 12px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero-copy {
    max-width: 720px;
  }

  .detail-section,
  .brand-interest {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-actions .reference-register {
    display: none;
  }

  .main-nav {
    z-index: 30;
    box-shadow: 0 16px 24px rgba(7, 26, 59, 0.1);
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-metrics,
  .franchisor-kpis,
  .admin-control-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-interest-form,
  .profile-form,
  .role-form,
  .roi-box,
  .franchisor-data-form,
  .admin-access-form,
  .match-contact-form {
    grid-template-columns: 1fr;
  }

  .brand-interest-notes,
  .consent-label,
  .profile-form button,
  .profile-form .form-message,
  .franchisor-data-form .form-intro,
  .franchisor-data-form button,
  .franchisor-data-form .form-message,
  .admin-access-form fieldset,
  .admin-access-form button,
  .admin-access-form .form-message,
  .match-contact-form .consent-label,
  .match-contact-form button,
  .match-contact-form .form-message,
  .roi-source,
  .roi-hint,
  .roi-cost-breakdown,
  .roi-total,
  .roi-location,
  .roi-area-data,
  .roi-map {
    grid-column: auto;
  }

  .pillar-grid,
  .responsibility-grid,
  .role-selector,
  .roi-area-data,
  .admin-brand-checks,
  .admin-control-links,
  .p30-feature-grid {
    grid-template-columns: 1fr;
  }

  .roi-cost-breakdown {
    display: grid;
    grid-template-columns: 1fr;
  }

  .roi-cost-breakdown legend {
    grid-column: 1;
  }

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

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

  .modal {
    align-items: start;
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
    padding: 28px 20px 22px;
  }

  .match-assistant-heading,
  .profile-heading,
  .admin-control-head,
  .admin-panel-heading {
    flex-direction: column;
  }

  .match-result {
    grid-template-columns: 52px 1fr auto;
  }

  .match-result img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .detail-metrics,
  .compare-grid,
  .blog-grid,
  .franchisor-kpis,
  .admin-control-kpis {
    grid-template-columns: 1fr;
  }

  .detail-stat {
    padding: 15px;
  }

  .technical-table > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .technical-table strong {
    max-width: 100%;
    text-align: left;
  }

  .match-answer-form,
  .site-chat-form {
    flex-direction: column;
  }

  .tracker-item,
  .franchisor-leads-list > div,
  .admin-access-row,
  .franchisor-submission {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-float {
    right: 16px;
    bottom: 16px;
  }

  .site-chat-panel {
    right: 16px;
    bottom: 78px;
    width: calc(100vw - 32px);
  }
}

/* =========================================================================
   affilia — HOME v2 (full redesign, coherent surfaces)
   Applies to the brand-new home markup; light restyle of the shared chrome.
   ========================================================================= */

body {
  background: var(--bg);
}

/* lightly gradient tint top of the page, subtle and consistent */
.home-view {
  background:
    radial-gradient(1100px 480px at 88% -6%, rgba(232, 102, 28, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  background-attachment: scroll;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* shared content rail */
.rail {
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  margin: 0 auto;
}

/* ------------------------------------------------------------- HERO (navy)
   Solid, high-contrast identity block: white type + a single warm accent. */
.nh {
  position: relative;
  color: #f4f7fb;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -20%, rgba(255, 154, 90, 0.28), transparent 60%),
    radial-gradient(760px 420px at -10% 110%, rgba(74, 121, 199, 0.35), transparent 58%),
    linear-gradient(135deg, #0b1730 0%, #122b52 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nh .rail {
  position: relative;
  z-index: 1;
  padding: clamp(54px, 8vw, 108px) 0 clamp(28px, 5vw, 60px);
}

.nh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.nh-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7e3d;
  box-shadow: 0 0 0 0 rgba(255, 126, 61, 0.5);
  animation: nhPulse 2.4s var(--ease) infinite;
}

@keyframes nhPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 126, 61, 0.35); }
  70% { box-shadow: 0 0 0 7px rgba(255, 126, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 126, 61, 0); }
}

.nh-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.01;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nh-title em {
  color: #ffb27a;
  font-style: italic;
  font-weight: 800;
}

.nh-sub {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.75;
  font-weight: 400;
}

.nh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.nh-cta {
  background: #ff7e3d;
  color: #0b1730;
  box-shadow: 0 16px 36px -18px rgba(255, 126, 61, 0.75);
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 800;
}

.nh-cta span,
.nh-ghost span {
  display: inline-block;
  transition: transform var(--transition);
}

.nh-cta:hover span,
.nh-ghost:hover span {
  transform: translateX(3px);
}

.nh-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #ffffff;
  padding: 15px 22px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.nh-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.nh-ghost.ink {
  border-color: var(--line);
  color: var(--ink-strong);
}

.nh-ghost.ink:hover {
  background: var(--surface);
}

.nh-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.nh-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 600;
}

.nh-checks li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb27a;
  box-shadow: 0 0 0 3px rgba(255, 178, 122, 0.18);
}

.nh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(34px, 6vw, 64px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.nh-stats > div {
  display: grid;
  gap: 3px;
}

.nh-stats dt {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nh-stats dt span {
  color: #ffb27a;
  font-size: 0.9rem;
  margin-left: 3px;
}

.nh-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 600;
}

/* shared section scaffolding: quiet editorial rhythm, generous whitespace */
.wk,
.gl,
.proof {
  position: relative;
  padding: clamp(72px, 10vw, 136px) 0;
  scroll-margin-top: 90px;
}

/* "In evidenza" sits on a clearly framed band so the middle act of the
   home reads as a distinct step while scrolling between white sections */
.gl {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(232, 102, 28, 0.06), transparent 55%),
    radial-gradient(720px 400px at -8% 110%, rgba(18, 35, 63, 0.045), transparent 55%),
    #eaf0f7;
  box-shadow: inset 0 1px 0 rgba(18, 35, 63, 0.07), inset 0 -1px 0 rgba(18, 35, 63, 0.07);
}

.rk-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 44px;
  margin-bottom: clamp(36px, 5vw, 60px);
  max-width: 980px;
}

.rk-eyebrow,
.gl .rk-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.rk-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.rk-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2.15rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.rk-title em {
  color: var(--muted-2);
  font-style: italic;
  font-weight: 800;
}

.rk-sub {
  max-width: 300px;
  margin: 0;
  align-self: flex-end;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ------------------------------------------- HOW IT WORKS (3 steps) */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4.6vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  transition: transform var(--transition), border-color var(--transition);
}

.wk-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--orange);
  transform-origin: left;
  transition: width var(--transition);
}

.wk-card:hover {
  transform: translateY(-4px);
}

.wk-card:hover::before {
  width: 100%;
}

.wk-n {
  position: static;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.wk-card h3 {
  margin: 4px 0 0;
  padding: 0;
  color: var(--ink-strong);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.wk-card p {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* -------------------------------------------------  FEATURED / CATALOG */
.gl .rk-head {
  max-width: none;
}

.featured-slider {
  position: relative;
}

.featured-grid {
  display: flex;
  align-items: stretch;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 6px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 35, 63, 0.28) transparent;
}

.featured-grid::-webkit-scrollbar {
  height: 8px;
}

.featured-grid::-webkit-scrollbar-track {
  background: transparent;
}

.featured-grid::-webkit-scrollbar-thumb {
  background: rgba(18, 35, 63, 0.22);
  border-radius: 999px;
}

.featured-grid > .loading-ok,
.featured-grid > .empty-state {
  flex: 1 0 100%;
}

.featured-arrow {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(18, 35, 63, 0.12);
  background: var(--white);
  color: var(--ink-strong);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(18, 35, 63, 0.45);
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.featured-arrow:hover:not(:disabled) {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.featured-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.featured-arrow-prev {
  left: -18px;
}

.featured-arrow-next {
  right: -18px;
}

.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(18, 35, 63, 0.08);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 35, 63, 0.04), 0 14px 34px -24px rgba(18, 35, 63, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.featured-grid .featured-card {
  flex: 0 0 clamp(270px, 31vw, 330px);
  scroll-snap-align: start;
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 35, 63, 0.14);
  box-shadow: 0 2px 4px rgba(18, 35, 63, 0.05), 0 26px 48px -26px rgba(18, 35, 63, 0.45);
}

.featured-card-img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease);
}

.featured-card:hover .featured-card-img {
  transform: scale(1.05);
}

.featured-card-idx {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px -10px rgba(18, 35, 63, 0.4);
}

.featured-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px 20px;
}

.featured-card h3 {
  color: var(--ink-strong);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.featured-card-meta,
.detail-copy {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
}

.featured-card-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.featured-card-meta strong {
  color: var(--orange);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
}

.featured-card .card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 800;
  gap: 6px;
}

.featured-card .card-link:hover {
  color: var(--ink-strong);
}

.empty-state,
.loading-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.86rem;
}

.loading-ok::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  animation: nhSpin 0.9s linear infinite;
}

@keyframes nhSpin { to { transform: rotate(360deg); } }

.gl-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid rgba(18, 35, 63, 0.1);
}

.gl-more span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ----------------------------------------------------  PROOF / REVIEWS */
.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.proof-list figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 30px 28px 26px;
  border: 1px solid rgba(18, 35, 63, 0.08);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(18, 35, 63, 0.04), 0 12px 30px -24px rgba(18, 35, 63, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.proof-list figure:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 35, 63, 0.14);
  box-shadow: 0 2px 4px rgba(18, 35, 63, 0.05), 0 22px 44px -26px rgba(18, 35, 63, 0.45);
}

.proof-stars {
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.proof-list blockquote {
  margin: 0;
  color: #34415c;
  font-size: 1.02rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.proof-list blockquote::first-line { color: var(--ink-strong); font-weight: 700; }

.proof-list figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid var(--line);
}

.proof-list figcaption > img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 16px -8px rgba(18, 35, 63, 0.4);
}

.proof-list figcaption > span {
  display: grid;
  gap: 2px;
}

.proof-list figcaption b {
  color: var(--ink-strong);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.proof-list figcaption small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* =========================================================================
   CLOSING CTA: back to a navy rounded card floating on white,
   clearly separated from the navy footer.
   ========================================================================= */
.nhb {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(88px, 10vw, 136px);
}

.nhb-card {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(48px, 6vw, 84px) clamp(24px, 5vw, 56px);
  border-radius: 28px;
  overflow: hidden;
  color: #f4f7fb;
  box-shadow: 0 34px 80px -46px rgba(7, 26, 59, 0.65);
  background:
    radial-gradient(900px 480px at 18% -20%, rgba(255, 154, 90, 0.22), transparent 60%),
    radial-gradient(760px 460px at 112% 140%, rgba(74, 121, 199, 0.55), transparent 55%),
    linear-gradient(160deg, #0d1c3c 0%, #001c3d 100%);
}

.nhb-eyebrow {
  margin: 0 0 24px;
  justify-content: center;
  color: #ffb27a;
}

.nhb-eyebrow::before {
  background: #ffb27a;
}

.nhb-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.nhb-title em {
  color: #ffb27a;
  font-style: italic;
}

.nhb-card > p {
  max-width: 540px;
  margin: 20px auto 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.7;
}

.nhb-card small {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

/* shared chrome polish */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 35, 63, 0.06);
}

.button,
.reference-ghost {
  border-radius: var(--radius-pill);
}

/* ---- reveal on scroll (delicate, JS-gated via html.reveal-js) ---- */
html.reveal-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

html.reveal-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

html.reveal-js [data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}

/* a soft stagger for card rows */
.wk-grid > li:nth-child(2),
.proof-list > figure:nth-child(2) { transition-delay: 0.08s; }
.wk-grid > li:nth-child(3),
.proof-list > figure:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .nh-eyebrow i { animation: none; }
  .loading-ok::before { animation: none; }
  html.reveal-js [data-reveal],
  html.reveal-js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------------------  responsive home */
@media (max-width: 900px) {
  .nh-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .wk-grid { grid-template-columns: 1fr 1fr; gap: 46px 26px; }
  .proof-list { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .featured-card-img { height: 180px; }
  .rk-head { max-width: none; }
}

@media (max-width: 640px) {
  .wk-grid, .proof-list, .featured-grid { grid-template-columns: 1fr; }
  .rk-head { margin-bottom: 26px; gap: 18px; }
  .rk-sub { max-width: none; }
  .nh-actions .nh-ghost { width: auto; }
  .proof-list blockquote { font-size: 0.97rem; }
  .featured-card-img { height: 200px; }
}

/* =========================================================================
   SITE-WIDE EDITORIAL REFINEMENT
   Same grammar as the home: larger airy type, dash overlines, softer cards.
   Lives at the end so it can harmonise the shared primitives without
   disturbing the layout logic of the functional pages.
   ========================================================================= */

/* content pages get the same breathing room as the home bands */
.catalog-view,
.detail-view,
.compare-view,
.roi-view,
.profile-view,
.admin-view,
.blog-view,
.franchisor-view,
.legal-view {
  padding-top: clamp(52px, 7vw, 96px);
  padding-bottom: clamp(88px, 9vw, 132px);
}

/* editorial page headers, same grammar used by the home sections */
.section-heading {
  gap: 18px 48px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.section-heading > div {
  max-width: 780px;
}

.section-heading .eyebrow,
.legal-view > .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading .eyebrow::before,
.legal-view > .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.section-heading h2,
.legal-view > h2 {
  color: var(--ink-strong);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.section-note {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: right;
}

main .view .section-heading h2 em,
main .view.legal-view > h2 em {
  color: var(--muted-2);
  font-style: italic;
  font-weight: 800;
}

/* softer, roomier cards everywhere */
.brand-card,
.compare-item,
.blog-card {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18, 35, 63, 0.05), 0 18px 40px -32px rgba(18, 35, 63, 0.45);
}

.detail-section,
.detail-overview,
.brand-interest,
.profile-card,
.admin-control,
.admin-panel,
.franchisor-panel,
.roi-box,
.p30-deck {
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(18, 35, 63, 0.05), 0 20px 44px -34px rgba(18, 35, 63, 0.5);
}

/* a bigger, more readable catalogue card */
.brand-card {
  gap: 16px;
  padding: 20px;
}

.brand-card h3 { font-size: 1.2rem; }

.sector-tag { font-size: 0.72rem; letter-spacing: 0.06em; }

.brand-card-summary {
  padding: 14px 14px 14px 16px;
}

.brand-card-summary p { font-size: 0.92rem; line-height: 1.6; }

.brand-card-summary small,
.brand-key-points small {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.brand-card-summary strong { font-size: 1.3rem; }

.brand-key-points { gap: 12px; }

.brand-key-points strong { font-size: 0.86rem; }

.card-actions { margin-top: 14px; }

.card-actions .card-link {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 13px 16px;
}

.card-actions label { font-size: 0.78rem; }

/* shared buttons and controls get a touch more presence */
/* (home hero / closing CTAs keep their own bigger .nh-cta sizing) */
.button:not(.nh-cta):not(.button-small) {
  padding: 13px 20px;
  font-size: 0.8rem;
}

.button-small:not(.nh-cta) { padding: 9px 14px; font-size: 0.72rem; }

main input,
main select,
main textarea,
.modal-card input,
.modal-card select,
.modal-card textarea {
  border-radius: 10px;
  padding: 12px 13px;
}

main label,
.modal-card label {
  font-size: 0.72rem;
}

.catalog-select { padding: 12px 40px 12px 13px; }

/* detail page */
.detail-hero-copy .eyebrow,
.detail-section .eyebrow,
.brand-interest .eyebrow {
  letter-spacing: 0.18em;
}

.detail-tagline { font-size: 1.02rem; line-height: 1.7; }

.detail-prose,
.detail-section > div > p:not(.eyebrow),
.brand-interest > div > p:not(.eyebrow) {
  font-size: 0.92rem;
  line-height: 1.78;
}

.detail-prose h4,
.responsibility-grid h4 { font-size: 0.92rem; }

.detail-stat { padding: 22px; }

.detail-stat small,
.compare-field small { font-size: 0.66rem; }

.detail-stat strong { font-size: 1rem; }

.technical-table { border-radius: 14px; }

.technical-table > div {
  padding: 15px 17px;
  font-size: 0.86rem;
}

.technical-table strong { font-size: 0.9rem; }

.detail-metrics { margin-bottom: 80px; }

/* compare */
.compare-status { font-size: 0.84rem; }

.compare-item,
.blog-card { padding: 24px; }

.compare-item h3,
.blog-card h3 { font-size: 1.18rem; margin-bottom: 20px; }

.compare-field strong { font-size: 0.92rem; }

.blog-card small { font-size: 0.7rem; }

.blog-card p { font-size: 0.9rem; line-height: 1.7; }

.blog-grid { gap: 20px; }

.catalog-tools { margin-top: clamp(22px, 3vw, 38px); }

/* KPI + admin/franchisor micro-copy */
.franchisor-kpis span,
.admin-control-kpis span { font-size: 0.7rem; }

.franchisor-kpis strong,
.admin-control-kpis strong { font-size: 1.6rem; }

.franchisor-panel h3,
.admin-panel h3 { font-size: 1.5rem; }

.franchisor-tab { font-size: 0.8rem; }

.franchisor-panel,
.admin-panel { padding: 26px; }

.franchisor-leads-list span,
.admin-access-row span,
.admin-access-row small,
.franchisor-submission span,
.franchisor-submission small {
  font-size: 0.76rem;
}

.roi-source,
.roi-hint,
.form-intro,
.franchisor-panel .section-note,
.admin-panel .section-note {
  font-size: 0.84rem;
}

.roi-total { font-size: 1.2rem; }

.roi-box { padding: clamp(24px, 4vw, 44px); }

/* profile / auth surfacing */
.profile-card,
.admin-control {
  padding: clamp(26px, 4vw, 44px);
}

.profile-email,
.admin-control-head p,
.profile-meta,
.profile-privacy-note,
.profile-meta {
  font-size: 0.8rem;
}

.tracker-item strong { font-size: 0.92rem; }

.tracker-status { font-size: 0.72rem; }

/* modals get the same editorial heading and larger fields */
.modal-card > .eyebrow {
  color: var(--orange);
  letter-spacing: 0.2em;
}

.modal-card > .eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--orange);
  vertical-align: middle;
}

.modal-card h2 em {
  font-style: italic;
}

.modal-card { border-radius: 20px; }

.modal-card .auth-social-note,
.modal-card .auth-login-button { font-size: 0.78rem; }

/* legal pages: readable, narrow column */
.legal-copy {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.85;
}

.legal-copy p { margin: 14px 0; color: var(--muted); }

.legal-copy h3 { margin: 30px 0 6px; font-size: 1.15rem; }

/* back links a little more button-like */
.back-button,
.quiz-back {
  margin-bottom: 26px;
  font-size: 0.84rem;
  color: var(--muted-2);
}

.back-button:hover,
.quiz-back:hover { color: var(--orange); }

@media (max-width: 720px) {
  .section-note { text-align: left; }
}

@media (max-width: 640px) {
  .section-heading { gap: 14px 0; }
  .section-note { max-width: none; }
  .brand-card { padding: 18px; }
}

/* compare count in the main nav: orange pill that pops when it changes */
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px -3px rgba(232, 102, 28, 0.65);
  transform-origin: center;
}

.nav-new.bump {
  animation: navBump 0.5s var(--ease);
}

@keyframes navBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-new.bump { animation: none; }
}

/* =========================================================================
   CATALOG + BRAND SHEET POLISH
   Editorial catalogue card: cover on top, cleaner facts, softer accents.
   ========================================================================= */

/* brand sheet headings: keep the hero name big, shrink the section labels */
.detail-section h3,
.brand-interest h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

/* the orange "Cosa offriamo" block: same proportions as the other sections */
.detail-offer {
  align-items: flex-start;
  background: #fffaf4;
  border-color: #f6e2cd;
}

/* catalogue grid + card */
.brands-grid {
  gap: 22px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.brand-card:hover {
  border-color: rgba(18, 35, 63, 0.16);
  box-shadow: 0 2px 4px rgba(18, 35, 63, 0.05), 0 24px 48px -28px rgba(18, 35, 63, 0.5);
}

.brand-card-image {
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.brand-card-head {
  padding: 18px 20px 0;
}

.brand-card-summary {
  display: block;
  margin: 0;
  padding: 16px 20px 0;
  border-left: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.brand-card-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.brand-card-summary small {
  display: block;
  margin: 14px 0 2px;
  font-size: 0.62rem;
}

.brand-card-summary strong {
  display: block;
  color: var(--orange);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-key-points {
  margin: auto 0 0;
  padding: 16px 20px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.brand-point-icon,
.brand-summary-icon {
  display: none;
}

.brand-key-points strong {
  margin-top: 3px;
  font-size: 0.88rem;
  white-space: normal;
}

.card-actions {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}

.card-actions .card-link {
  background: #f4f6fa;
}

.card-actions .card-link:hover {
  background: var(--ink-strong);
  color: #ffffff;
}

.brand-subcat {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
