/* 
  SmartMatch Marketing Site
  Clean, light, modern design matching reference screenshots + ref JSX.
  SEO-friendly semantic structure, fast, accessible.
*/
:root {
  --bg: #faf9f7;
  --bg-white: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;

  --text: #1c1917;
  --text-muted: #57534e;
  --text-light: #78716c;
  --text-faint: #a8a29e;

  --accent: #0D9488;
  --accent-light: #14b8a0;
  --accent-dark: #0f766e;
  --accent-10: rgba(13, 148, 136, 0.1);
  --accent-20: rgba(13, 148, 136, 0.2);

  --border: #e7e5e4;
  --border-strong: #d6d3d1;

  --red: #ef4444;
  --red-light: #fee2e2;
  --amber: #d97706;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

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

/* Header / Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signin-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.signin-btn:hover {
  color: var(--text);
  background: var(--surface);
}

/* Persona Toggle (pills in hero) */
.persona-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
}

.persona-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
.persona-pill svg {
  flex-shrink: 0;
}

.persona-pill.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.persona-pill:not(.active):hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 14px;
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-20);
}
.btn-primary:hover {
  background: #0c5e58;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero-title {
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-lead {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-light);
}

/* Quote card (hero right) */
.quote-card {
  background: linear-gradient(160deg, #f0fdf9, #ccfbf1);
  border-radius: var(--radius-xl);
  padding: 28px 26px 24px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.quote-card .quote {
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  font-style: italic;
  margin-bottom: auto;
}

.quote-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.quote-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-card .author-meta {
  font-size: 12px;
  line-height: 1.3;
}
.quote-card .author-meta strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

/* Section headers */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

/* Cards & Grids */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* 3-col contract types */
.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .contract-grid { grid-template-columns: 1fr; }
}

.contract-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.contract-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ccfbf1;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1;
}
.contract-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.contract-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 500;
}

/* Comparison (profile never expires) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
  border: 2px solid;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: #fff;
}
.compare-card.smart {
  border-color: var(--accent);
  background: #f0fdf9;
}
.compare-card.trad {
  border-color: var(--red);
  background: #fef2f2;
}
.compare-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.compare-card.smart h3 { color: var(--accent-dark); }
.compare-card.trad h3 { color: #b91c1c; }

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.35;
}
.compare-list li .mark {
  flex-shrink: 0;
  width: 18px;
  font-size: 15px;
  line-height: 1;
  margin-top: 1px;
}
.compare-list .bullet-content {
  flex: 1;
}
.compare-list .bullet-title {
  font-weight: 700;
  color: var(--text);
}
.compare-list .bullet-body {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 1px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 15px;
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 500;
}

/* Disciplines */
.disciplines {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 900px) { .disciplines { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .disciplines { grid-template-columns: repeat(3, 1fr); } }

.discipline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Housing section */
.housing-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .housing-grid { grid-template-columns: 1fr; }
}

.housing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.housing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.housing-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.housing-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.housing-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.housing-stat .stat {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}
.housing-stat .label {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 2px;
}
.housing-stat .desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.35;
  font-weight: 500;
}

/* Facility comparison table */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.table-header > div {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.table-header .smart-col {
  color: var(--accent);
}
.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  font-size: 14px;
}
.table-row > div {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}
.table-row:nth-child(even) {
  background: #fcfcfb;
}
.table-row .smart {
  color: var(--accent-dark);
  font-weight: 700;
}

/* Savings */
.savings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .savings-grid { grid-template-columns: 1fr; }
}
.savings-big {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.savings-big .num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.savings-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.savings-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.savings-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Waitlist / Early Access */
.waitlist {
  background: var(--accent);
  color: #fff;
  padding: 56px 0;
}
.waitlist-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.waitlist .eyebrow {
  color: rgba(255,255,255,0.6);
}
.waitlist h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}
.waitlist p.lead {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  max-width: 460px;
  margin: 0 auto 22px;
  font-weight: 600;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.waitlist-pills {
  display: inline-flex;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 3px;
}
.waitlist-pills button {
  background: transparent;
  border: 0;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .15s;
}
.waitlist-pills button.active {
  background: #fff;
  color: #1c1917;
}

.waitlist-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}
.waitlist-row input[type="email"] {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  color: var(--text);
}
.waitlist-row button {
  height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  background: #1c1917;
  color: #fff;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.waitlist-note {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* Success state inside waitlist */
.waitlist-success {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.waitlist-success h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fff;
}
.waitlist-success p {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

/* Founder + FAQ (bottom) */
.founder-faq {
  background: var(--bg);
}
.founder-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) {
  .founder-faq-grid { grid-template-columns: 1fr; gap: 36px; }
}

.founder-bio .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
}
.founder-bio .tags span {
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
}

.founder-quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 14px 0 16px;
  font-weight: 600;
}

.founder-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.founder-mini {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
}
.founder-mini .avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* FAQ */
.faq {
  max-width: 100%;
}
.faq h2 {
  font-size: 22px;
  margin-bottom: 4px;
}
.faq > p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: none;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-q .chev {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  transition: transform .2s;
}
.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
}
.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 500;
}
.faq-item.open .faq-a {
  display: block;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 0 32px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-light);
}
.footer-inner a {
  color: var(--accent);
  font-weight: 600;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Founder page specific */
.founder-hero {
  background: linear-gradient(to bottom, var(--accent-10), transparent);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.founder-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.founder-hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.edu-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.story {
  max-width: 720px;
  margin: 0 auto;
}
.story p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #3f3a36;
  margin-bottom: 16px;
}
.vision-box {
  background: #fff;
  border: 1px solid var(--accent-20);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 20px 0;
}
.vision-box strong {
  color: var(--accent-dark);
  display: block;
  margin-bottom: 6px;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .qual-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .qual-grid { grid-template-columns: 1fr; } }

.qual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.qual-card .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.qual-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.qual-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cta-band {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 20px;
}
.cta-band .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn-white {
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
}
.cta-band .btn-ghost {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

/* Misc */
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.strong { font-weight: 700; }

a[href^="mailto"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }
  .waitlist { padding: 44px 0; }
}