/* TapHome Verified - Preview Site Stylesheet */

:root {
  --navy: #0b1f3a;
  --navy-2: #0f2a4d;
  --navy-dark: #071527;
  --green: #16a34a;
  --green-dark: #0f7a37;
  --green-light: #e7f7ec;
  --white: #ffffff;
  --off-white: #f6f9fc;
  --gray-100: #eef2f7;
  --gray-200: #dfe6ef;
  --gray-300: #c9d3e0;
  --gray-500: #7c8aa0;
  --gray-600: #5b6b82;
  --gray-800: #1f2937;
  --text: #16233b;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1180px;
  --focus-ring: 3px solid #ffb020;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
  font-weight: 600;
}

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

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 31, 58, 0.98);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg {
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.main-nav a[aria-current="page"] {
  background: rgba(22, 163, 74, 0.25);
  color: #d6ffe6;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-2);
}

.nav-cta {
  flex-shrink: 0;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger svg {
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.subhead {
  font-size: 1.15rem;
  color: #d7e2f2;
  margin: 0 0 28px;
  max-width: 54ch;
}

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

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 48px 0;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p.subhead {
  font-size: 1.08rem;
  color: #d7e2f2;
  max-width: 65ch;
  margin: 0 0 20px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.page-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.page-hero-image img {
  width: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-alt {
  background: var(--off-white);
}

.section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 70ch;
  margin: 0 0 32px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--gray-600);
}

.badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  margin-bottom: 14px;
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--gray-600);
}

.step-with-image {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

.step-with-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Industry tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  display: block;
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tile-body {
  padding: 16px;
}

.tile-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--navy);
}

.tile-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-600);
}

/* Closing band */
.band {
  background-image: linear-gradient(120deg, rgba(11, 31, 58, 0.92) 0%, rgba(15, 122, 55, 0.88) 160%), url("/images/neighborhood-street.webp");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.band h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 20px;
}

/* Callout / tip box */
.callout {
  background: var(--green-light);
  border: 1px solid #bfe8cd;
  border-radius: var(--radius-md);
  padding: 26px 28px;
}

.callout h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
}

.callout p {
  margin: 0;
  color: var(--gray-800);
}

.tip-box {
  background: #fff8e6;
  border: 1px solid #f3ddaa;
  border-radius: var(--radius-md);
  padding: 26px 28px;
}

.tip-box h3 {
  margin: 0 0 10px;
  color: #8a6100;
}

.tip-box p {
  margin: 0;
  color: var(--gray-800);
}

/* Lists with checks */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.check-list .check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-list strong {
  color: var(--navy);
}

/* Table */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}

table.price-table th,
table.price-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.98rem;
}

table.price-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

table.price-table tr:last-child td {
  border-bottom: none;
}

table.price-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--gray-600);
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.94rem;
}

.form-field .hint {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
}

.form-msg {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  display: none;
}

.form-msg.show {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #c7d3e6;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: #c7d3e6;
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8fa0bd;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 163, 74, 0.18);
  color: #9ff0bd;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

/* Enrolling banner */
.enrolling-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* Verified badge chip used inline */
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Placeholder pages */
.placeholder-box {
  background: var(--off-white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: var(--gray-600);
}

/* 404 */
.notfound {
  text-align: center;
  padding: 90px 20px;
}

.notfound h1 {
  font-size: 3rem;
  color: var(--navy);
  margin-bottom: 12px;
}

/* Directory */
.directory-empty {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}

.directory-empty h2 {
  color: var(--navy);
  margin-bottom: 14px;
}

.directory-empty p {
  color: var(--gray-600);
  max-width: 56ch;
  margin: 0 auto 24px;
}

.directory-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.directory-filters input,
.directory-filters select {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  font-size: 0.95rem;
}

/* Onboarding numbered list */
.onboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: onboard;
  display: grid;
  gap: 16px;
}

.onboard-list li {
  counter-increment: onboard;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.onboard-list li::before {
  content: counter(onboard);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Wallet feature list w/ image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* Chat widget */
.chat-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  background: var(--green-dark);
}

.chat-panel {
  position: fixed;
  bottom: 94px;
  right: 22px;
  z-index: 900;
  width: min(370px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 140px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h2 {
  margin: 0;
  font-size: 1rem;
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--off-white);
  min-height: 160px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.chat-msg.from-user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-msg.from-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-files {
  padding: 0 18px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.chat-input-row input[type="text"] {
  flex: 1;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  min-width: 0;
}

.chat-icon-btn {
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  flex-shrink: 0;
}

.chat-icon-btn:hover,
.chat-icon-btn:focus-visible {
  background: var(--gray-200);
}

.chat-icon-btn.send {
  background: var(--green);
  color: var(--white);
}

.chat-icon-btn.send:hover,
.chat-icon-btn.send:focus-visible {
  background: var(--green-dark);
}

.chat-icon-btn.mic.listening {
  background: #dc2626;
  color: var(--white);
}

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

/* Responsive */
@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid,
  .page-hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  .nav-wrap {
    flex-wrap: wrap;
  }
  body.nav-open .main-nav {
    display: block;
    width: 100%;
    order: 3;
  }
  body.nav-open .main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 4px;
  }
  body.nav-open .main-nav a {
    display: block;
    padding: 12px 10px;
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .step-with-image {
    grid-template-columns: 1fr;
  }
  .step-with-image img {
    aspect-ratio: 16 / 10;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  table.price-table {
    min-width: 480px;
  }
}

@media (max-width: 480px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 48px;
  }
  .section {
    padding: 40px 0;
  }
  .chat-panel {
    right: 16px;
    bottom: 84px;
  }
  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }
}
