/* ==========================================================================
   Prairie Insights — Shared Styles
   ========================================================================== */

:root {
  /* Dominant */
  --ink: #1a2b30;
  --white: #fffcfa;
  --green: #5f9c7b;
  /* Accents */
  --blue: #9ecfd9;
  --purple: #a2a4d8;
  --pink: #e8b9c4;
  --orange: #d97340;
  --yellow: #e2c84d;
  /* Tints / opacity variants */
  --ink-muted: rgba(26, 43, 48, .65);
  --ink-border: rgba(26, 43, 48, .1);
  --green-tint: rgba(95, 156, 123, .06);
  --green-10: rgba(95, 156, 123, .1);
  --green-12: rgba(95, 156, 123, .12);
  --green-23: rgba(95, 156, 123, .23);
  --green-30: rgba(95, 156, 123, .3);
  --orange-10: rgba(217, 115, 64, .1);
  --orange-23: rgba(217, 115, 64, .23);
  --yellow-10: rgba(226, 200, 77, .1);
  --yellow-23: rgba(226, 200, 77, .23);
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background-color: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-size: 16px;
  font-family: inherit;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-6xl { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.max-w-5xl { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.max-w-3xl { max-width: 768px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 54px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.site-nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.site-nav-link span.underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.site-nav-link:hover span.underline {
  width: 100%;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.btn-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
}

.btn-link:hover {
  color: var(--green);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

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

.btn-pill-green:hover {
  filter: brightness(0.94);
}

.btn-pill-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-pill-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--ink-border);
  background: var(--white);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a,
.mobile-menu button {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  padding: 4px 0;
  text-align: left;
}

.mobile-menu .btn-pill-green {
  text-align: center;
  padding: 12px;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Buttons (generic)
   ========================================================================== */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  box-shadow: 0 15px 30px -8px rgba(0,0,0,0.3);
  transform: scale(1.02);
}

.btn-cta:active {
  transform: scale(1);
}

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

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

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
}

/* ==========================================================================
   Badge / eyebrow
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-23);
  background: var(--green-10);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px;
  width: 100%;
}

.hero-copy-inner {
  max-width: 512px;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero-title .accent {
  color: var(--green);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-actions .btn-cta { width: 100%; }

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-list svg {
  color: var(--green);
  flex-shrink: 0;
}

.trust-list span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.hero-photo {
  width: 100%;
  position: relative;
  min-height: 45vh;
  overflow: hidden;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .hero { flex-direction: row; }
  .hero-copy { width: 50%; padding: 0 48px; }
  .hero-badge { margin-top: 48px; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-actions .btn-cta { width: auto; }
  .hero-photo { width: 50%; min-height: 0; }
}

@media (min-width: 1024px) {
  .hero-copy { padding: 0 80px; }
  .hero-title { font-size: 41.6px; }
}

@media (min-width: 640px) {
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 18px; }
}

@media (min-width: 1280px) {
  .hero-copy { width: 48%; }
  .hero-photo { width: 52%; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 64px 24px;
}

.section-white { background: var(--white); }
.section-tint { background: var(--green-tint); }
.section-ink { background: var(--ink); }
.section-green { background: var(--green); }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head .lead-green {
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
}

.section-head p.desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .section { padding: 64px 48px; }
  .section-head h2 { font-size: 36px; }
}

@media (min-width: 1024px) {
  .section { padding: 80px 80px; }
  .section-head h2 { font-size: 48px; }
  .section-head { margin-bottom: 80px; }
}

@media (min-width: 640px) {
  .section-head { margin-bottom: 56px; }
}

/* Card grid */
.card-grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .card-grid { gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  border: 1px solid var(--ink-border);
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.card-tint {
  background: var(--green-tint);
}

.card-white {
  background: var(--white);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: var(--green-10);
  color: var(--green);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* How it works step cards */
.step-card {
  position: relative;
  background: var(--white);
}

.step-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: var(--green);
  color: var(--white);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.2;
  color: var(--green);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Stats */
.stat {
  text-align: center;
}

.stat .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 12px;
}

.stat .label {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,252,250,0.7);
}

@media (min-width: 640px) {
  .stat .num { font-size: 48px; }
  .stat .label { font-size: 16px; }
}

@media (min-width: 1024px) {
  .stat .num { font-size: 60px; }
}

.section-ink h2.stats-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .section-ink h2.stats-title { font-size: 36px; margin-bottom: 80px; }
}
@media (min-width: 1024px) {
  .section-ink h2.stats-title { font-size: 48px; }
}

/* Why join cards (smaller) */
.card-sm {
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  border: 1px solid var(--ink-border);
  background: var(--white);
}

.card-sm:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.card-sm .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.card-sm h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.card-sm p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .card-sm { padding: 32px; }
}

/* Testimonials */
.testimonial {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  background: var(--white);
  border: 1px solid var(--ink-border);
}

.testimonial .quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.15;
  color: var(--green);
}

.testimonial p.quote-text {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--ink);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
}

.testimonial-author span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .testimonial { padding: 40px; }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-tint);
  border: 1px solid var(--ink-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
}

.faq-question span {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--green);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Final CTA */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,252,250,0.9);
  margin-bottom: 40px;
}

.final-cta .btn-cta {
  width: 100%;
}

@media (min-width: 640px) {
  .final-cta h2 { font-size: 36px; }
  .final-cta .btn-cta { width: auto; display: inline-flex; }
}
@media (min-width: 1024px) {
  .final-cta h2 { font-size: 48px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-top {
  padding: 58px 24px 44px;
}

.footer-inner {
  max-width: 1450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 38px;
  margin-bottom: 44px;
}

.footer-nav a {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
  transition: opacity .2s ease, color .2s ease;
}

.footer-nav a:hover {
  color: var(--green);
  background: transparent;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 48px;
}

.footer-social a {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,252,250,0.32);
  transition: all .2s ease;
}

.footer-social a:hover {
  background: rgba(255,252,250,0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social .social-fill {
  fill: currentColor;
  stroke: none;
}

.footer-social .social-play {
  fill: var(--ink);
  stroke: none;
}

.footer-contact-block {
  width: 100%;
  max-width: 1450px;
  padding-top: 0;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.footer-contact-block h3 {
  flex-shrink: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--white);
}

.footer-contact-block h3::after {
  content: ":";
}

.footer-contact-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255,252,250,0.92);
  white-space: nowrap;
}

.footer-contact-item + .footer-contact-item::before {
  content: "";
  width: 1px;
  height: 22px;
  margin: 0 22px;
  background: rgba(255,252,250,0.55);
}

.footer-icon-circle {
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.footer-icon-circle svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.footer-contact-item a,
.footer-contact-item > span:last-child {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,252,250,0.92);
}

.footer-contact-item a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 0;
  background: transparent;
}

.footer-bottom-inner {
  max-width: 1660px;
  margin: 0 auto;
  padding: 42px 60px 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.footer-insightrix-logo {
  flex: 0 0 auto;
  padding-right: 28px;
  border-right: 1px solid rgba(255,252,250,0.42);
}

.footer-insightrix-logo img {
  width: 190px;
  height: auto;
}

.footer-legal-copy {
  max-width: 1280px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-legal-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,252,250,0.9);
}

.footer-legal-copy .copyright {
  color: rgba(255,252,250,0.95);
  margin: 0;
  padding-right: 20px;
}

.footer-legal-copy .copyright::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin-left: 20px;
  vertical-align: -4px;
  background: rgba(255,252,250,0.55);
}

.footer-legal-copy .legal {
  flex: 1 1 620px;
}

@media (max-width: 900px) {
  .footer-contact-block {
    flex-direction: column;
    gap: 14px;
  }

  .footer-contact-list {
    flex-direction: column;
    gap: 14px;
  }

  .footer-contact-item {
    white-space: normal;
  }

  .footer-contact-item + .footer-contact-item::before {
    display: none;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px 44px;
  }

  .footer-insightrix-logo {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,252,250,0.32);
  }

  .footer-legal-copy {
    display: block;
  }

  .footer-legal-copy .copyright {
    padding-right: 0;
    margin-bottom: 8px;
  }

  .footer-legal-copy .copyright::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-top {
    padding: 46px 20px 34px;
  }

  .footer-nav {
    gap: 22px 28px;
    margin-bottom: 34px;
  }

  .footer-nav a {
    font-size: 16px;
  }

  .footer-social {
    gap: 12px;
    margin-bottom: 38px;
  }

  .footer-social a {
    width: 48px;
    height: 48px;
  }

  .footer-contact-item a,
  .footer-contact-item > span:last-child {
    font-size: 14px;
  }

  .footer-insightrix-logo img {
    width: 170px;
  }

  .footer-legal-copy p {
    font-size: 12px;
  }
}

/* ==========================================================================
   Auth pages (Sign in / Sign up)
   ========================================================================== */

.auth-page {
  padding-top: 64px;
  min-height: 100vh;
  background: var(--white);
}

.signin-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 48px;
}

.signin-box {
  width: 100%;
  max-width: 448px;
}

.signin-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.signin-logo img { height: 54px; width: auto; }

.auth-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid var(--ink-border);
  padding: 32px;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-card > p.subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field label .optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.text-input, .select-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ink-border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  transition: all 0.2s ease;
}

.text-input::placeholder { color: var(--ink-muted); }

.text-input:focus, .select-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-10);
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.password-wrap {
  position: relative;
}

.password-wrap .text-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-muted);
  display: flex;
}

.password-toggle:hover { color: var(--ink); }

.select-wrap { position: relative; }

.select-input {
  appearance: none;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .grid-2col { grid-template-columns: 1fr 1fr; }
}

.btn-submit {
  margin-top: 4px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.btn-submit:hover { opacity: 0.92; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 2px solid var(--ink-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  flex-shrink: 0;
}

.form-footer-note {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

.form-footer-note .link-green {
  font-weight: 600;
  color: var(--green);
  background: none;
  border: none;
}

.legal-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.legal-note a { font-weight: 500; color: var(--green); }

.error-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--orange-10);
  border: 1px solid var(--orange-23);
  border-radius: 12px;
  font-size: 14px;
  color: var(--orange);
}

/* Signup layout with progress */
.signup-page-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100dvh - 64px);
  padding: 16px 0;
}

@media (min-width: 640px) {
  .signup-page-wrap {
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 0;
  }
}

.signup-panel {
  width: 100%;
  max-width: 576px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--white);
}

@media (min-width: 640px) {
  .signup-panel { padding: 40px 32px; }
}

.progress-wrap { margin-bottom: 28px; }

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-top .step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.progress-top .time-label {
  font-size: 12px;
  color: var(--ink-muted);
}

.progress-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
  height: 16px;
}

.progress-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ink-border);
  border-radius: 999px;
}

.progress-track-fill {
  position: absolute;
  left: 0;
  height: 4px;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--ink-border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.progress-dot.active,
.progress-dot.done {
  background: var(--green);
  border-color: var(--green);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.progress-labels span {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  flex: 1;
  color: var(--ink-muted);
}

.progress-labels span.done { color: var(--ink); }

/* Status card */
.status-card {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--green-23);
  background: var(--green-10);
  font-size: 14px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status-line:last-child { margin-bottom: 0; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
}

.status-line span { color: var(--ink); font-weight: 500; }

/* Radio / checkbox option rows */
.option-row {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--ink-border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.option-row.checked {
  border-color: var(--green);
  background: var(--green-10);
}

.option-row.align-start {
  align-items: flex-start;
  flex-wrap: wrap;
}

.radio-dot, .checkbox-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.radio-dot {
  border-radius: 999px;
  border: 2px solid var(--ink-border);
}

.option-row.checked .radio-dot { border-color: var(--green); }

.radio-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  display: none;
}

.option-row.checked .radio-dot-inner { display: block; }

.checkbox-box {
  border-radius: 6px;
  border: 2px solid var(--ink-border);
  margin-top: 2px;
}

.option-row.checked .checkbox-box {
  border-color: var(--green);
  background: var(--green);
}

.checkbox-box svg { display: none; color: var(--white); }
.option-row.checked .checkbox-box svg { display: block; }

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.option-row span.option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}

.inline-year-input {
  width: 100%;
  max-width: 112px;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid var(--green-23);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
}

.inline-year-input.field-error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.inline-year-input.field-error:focus {
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.16);
}

@media (min-width: 640px) {
  .inline-year-input { width: 112px; }
}

/* Phone verification block */
.phone-input-row {
  display: flex;
  border-radius: 12px;
  border: 1px solid var(--ink-border);
  overflow: hidden;
  transition: all 0.2s ease;
}

.phone-input-row:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-10);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--green-tint);
  border-right: 1px solid var(--ink-border);
  flex-shrink: 0;
}

.phone-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}

.phone-input-row input:focus { outline: none; }

.otp-notice {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  background: var(--green-10);
  border: 1px solid var(--green-23);
  color: var(--green);
}

.otp-notice .status-dot { margin-top: 4px; }

.otp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 12px 0 10px;
}

.otp-boxes {
  display: flex;
  gap: 8px;
  max-width: 280px;
}

@media (min-width: 640px) {
  .otp-boxes { max-width: none; }
}

.otp-box {
  flex: 1;
  min-width: 0;
  height: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid var(--ink-border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

.otp-box.filled {
  border-color: var(--green);
  background: var(--green-10);
}

.otp-box:focus { outline: none; }

.resend-link {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  background: none;
  border: none;
}

.verified-block {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verified-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.verified-title .check-circle-sm {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.verified-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--green-10);
  border: 1px solid var(--green-23);
  color: var(--green);
}

/* form nav buttons */
.form-buttons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.form-buttons .btn-submit { flex: 1; margin-top: 0; }

/* sms confirm note */
.sms-confirm-note {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-10);
  border: 1px solid var(--green-23);
}

.sms-confirm-note svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.sms-confirm-note p { font-size: 14px; line-height: 1.6; color: var(--ink); }

/* Terms row */
.terms-row {
  align-items: flex-start;
}

.terms-row span.option-label { line-height: 1.4; }
.terms-row a { font-weight: 600; color: var(--green); }

/* Step 5 confirmation */
.confirm-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin-bottom: 20px;
  background: var(--green-10);
  border: 2px solid var(--green-23);
  color: var(--green);
}

.status-box {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--green-23);
  background: var(--green-10);
}

.status-box .status-box-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.status-box .status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

.status-box .status-item:last-child { margin-bottom: 0; }

.status-check {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.status-pending {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-pending span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--yellow);
}

.status-item span.label-text { color: var(--ink); font-weight: 500; }

.verify-notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--yellow-23);
  background: var(--yellow-10);
}

.verify-notice p { font-size: 14px; line-height: 1.6; color: var(--ink); }
.verify-notice p.small { margin-top: 8px; font-size: 12px; color: var(--ink-muted); }

.provider-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--ink-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  color: var(--ink);
  margin-bottom: 10px;
  transition: box-shadow 0.2s ease;
}

.provider-btn:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.provider-btn span { font-size: 14px; font-weight: 500; }
.provider-btn svg.arrow { margin-left: 4px; opacity: 0.6; }

.resend-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--ink-border);
  color: var(--ink);
  background: var(--green-tint);
  margin-bottom: 20px;
}

.sms-set-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  text-align: center;
}

.dashboard-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  border: none;
  transition: opacity 0.2s ease;
}

.dashboard-btn:hover { opacity: 0.9; }

/* Utility */
.hidden { display: none !important; }
.icon-inline { display: inline-flex; vertical-align: middle; }
