/* SpecialFinance.ai — Light Theme, Green Money Palette */
/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
/* === Tokens === */
:root {
  --green: #16A34A;
  --green-hover: #15803D;
  --green-active: #166534;
  --green-50: #F0FDF4;
  --green-100: #DCFCE7;
  --green-200: #BBF7D0;
  --green-glow: rgba(22, 163, 74, 0.18);
  --bg: #FFFFFF;
  --bg-page: #F9FBF9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F6FCF7;
  --bg-input: #F7FAF7;
  --text: #1B2E1B;
  --text-heading: #14291A;
  --text-secondary: #5A6B5E;
  --text-muted: #94A398;
  --border: #DEE5DF;
  --border-hover: #C1CEC4;
  --border-focus: rgba(22, 163, 74, 0.45);
  --shadow-xs: 0 1px 2px rgba(20, 41, 26, 0.04);
  --shadow-sm: 0 1px 4px rgba(20, 41, 26, 0.06);
  --shadow-md: 0 4px 14px rgba(20, 41, 26, 0.07);
  --shadow-card: 0 1px 4px rgba(20, 41, 26, 0.05), 0 0 0 1px rgba(20, 41, 26, 0.03);
  --shadow-card-hover: 0 4px 16px rgba(20, 41, 26, 0.08), 0 0 0 1px rgba(22, 163, 74, 0.12);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}
/* === Base === */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
/* === Layout === */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.logo {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}
.logo span {
  color: var(--green);
}
.logo .tld {
  color: var(--text-muted);
  font-weight: 500;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* === Hero Section === */
.hero {
  width: 100%;
  max-width: 640px;
  padding: 40px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero.hidden {
  display: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-50);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid var(--green-100);
}
.hero-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-m);
  transition: background 0.15s var(--ease), transform 0.1s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}
.hero-cta:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}
.hero-cta:active {
  background: var(--green-active);
  transform: scale(0.98);
}
.hero-cta svg {
  width: 18px;
  height: 18px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}
.hero-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-m);
  max-width: 460px;
}
.hero-note p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.hero-note p strong {
  color: var(--text-heading);
  font-weight: 600;
}
/* === Wizard Wrapper === */
.wizard-wrapper {
  width: 100%;
  max-width: 540px;
  padding: 0 24px 40px;
  display: none;
}
.wizard-wrapper.active {
  display: block;
}
/* === Progress === */
.progress-track {
  height: 3px;
  background: var(--green-100);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s var(--ease);
}
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.step-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.back-link {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s var(--ease);
  user-select: none;
}
.back-link:hover {
  color: var(--green);
}
.back-link svg {
  width: 14px;
  height: 14px;
}
/* === Wizard === */
.wizard {
  position: relative;
  min-height: 400px;
}
.step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
}
.step.active {
  position: relative;
  visibility: visible;
  pointer-events: auto;
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-heading);
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.55;
}
/* === Option Cards === */
.option-grid {
  display: grid;
  gap: 10px;
}
.option-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.option-grid.cols-1 {
  grid-template-columns: 1fr;
}
.option-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: var(--shadow-xs);
}
.option-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}
.option-card.selected {
  border-color: var(--green);
  background: var(--green-50);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.option-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-50);
  border-radius: 10px;
}
.option-text {
  display: flex;
  flex-direction: column;
}
.option-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
}
.option-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}
.option-card.compact {
  padding: 13px 16px;
}
.option-card.compact .option-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}
/* === Form Elements === */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  background: var(--bg);
}
.form-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%235A6B5E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select.form-input option {
  background: var(--bg);
  color: var(--text);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-error {
  font-size: 12px;
  color: #DC2626;
  margin-top: 5px;
  display: none;
}
.field-error.show {
  display: block;
}
.inline-options {
  display: flex;
  gap: 8px;
}
.inline-option {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.inline-option:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.inline-option.selected {
  border-color: var(--green);
  background: var(--green-50);
  color: var(--green);
  font-weight: 600;
}
/* === Buttons === */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-m);
  transition: background 0.15s var(--ease), transform 0.1s var(--ease), box-shadow 0.15s var(--ease);
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}
.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}
.btn-primary:active {
  background: var(--green-active);
  transform: scale(0.985);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary svg {
  width: 16px;
  height: 16px;
}
.btn-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-s);
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
  width: 100%;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.2);
}
.btn-result:hover {
  background: var(--green-hover);
}
.btn-result:active {
  transform: scale(0.985);
}
/* === Detail Panels === */
.details-panel {
  display: none;
}
.details-panel.active {
  display: block;
}
/* === TOS === */
.tos-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 16px;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.tos-box::-webkit-scrollbar { width: 4px; }
.tos-box::-webkit-scrollbar-track { background: transparent; }
.tos-box::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }
.tos-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}
.tos-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-hover);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  position: relative;
}
.tos-check input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.tos-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tos-check span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tos-check a {
  color: var(--green);
  font-weight: 500;
}
.tos-check a:hover {
  text-decoration: underline;
}
/* === Matching Screen === */
.matching-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  width: 100%;
  max-width: 540px;
}
.matching-screen.active {
  display: flex;
}
.match-ring-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
}
.match-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.match-ring-bg {
  fill: none;
  stroke: var(--green-100);
  stroke-width: 4;
}
.match-ring-fill {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 276.5;
  transition: stroke-dashoffset 3.5s var(--ease-out);
}
.match-ring-fill.animate {
  stroke-dashoffset: 0;
}
.match-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
}
.match-status {
  font-size: 16px;
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: 6px;
  min-height: 24px;
}
.match-substatus {
  font-size: 13px;
  color: var(--text-muted);
}
/* === Results Screen === */
.results-screen {
  display: none;
  width: 100%;
  max-width: 540px;
  padding: 0 24px 40px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.results-screen.active {
  display: block;
}
.results-screen.visible {
  opacity: 1;
  transform: translateY(0);
}
.results-header {
  margin-bottom: 24px;
  text-align: center;
}
.results-header h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-heading);
}
.results-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.result-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: var(--shadow-card);
}
.result-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}
.result-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.result-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.result-info {
  flex: 1;
  min-width: 0;
}
.result-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
}
.result-type {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}
.result-match {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--green-100);
}
.result-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}
.result-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.result-stat {
  display: flex;
  flex-direction: column;
}
.result-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 2px;
}
.result-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}
.results-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.results-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: left;
}
.results-restart {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s var(--ease);
  font-weight: 500;
}
.results-restart:hover {
  color: var(--green);
}
/* === Footer === */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer a {
  color: var(--text-secondary);
  transition: color 0.15s var(--ease);
}
.site-footer a:hover {
  color: var(--green);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}
/* === Static Pages === */
.page-content {
  max-width: 680px;
  width: 100%;
  padding: 20px 24px 60px;
}
.page-content h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.page-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.page-content h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 36px;
  margin-bottom: 10px;
}
.page-content p,
.page-content li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.page-content p {
  margin-bottom: 14px;
}
.page-content ul,
.page-content ol {
  margin-bottom: 14px;
  padding-left: 22px;
}
.page-content li {
  margin-bottom: 6px;
}
.page-content a {
  color: var(--green);
  font-weight: 500;
}
.page-content a:hover {
  text-decoration: underline;
}
.page-content strong {
  color: var(--text-heading);
  font-weight: 600;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.contact-card {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-m);
  padding: 20px;
}
.contact-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 13px;
  margin-bottom: 0;
}
.contact-card a {
  color: var(--green);
  font-weight: 600;
}
.how-it-works {
  display: grid;
  gap: 16px;
  margin: 24px 0 32px;
}
.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-num {
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.how-text h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.how-text p {
  font-size: 13px;
  margin-bottom: 0;
}
.disclosure-box {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  margin: 24px 0;
}
.disclosure-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .contact-cards { grid-template-columns: 1fr; }
}
/* === Utilities === */
.hidden { display: none !important; }
.sr-only {
  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: 480px) {
  .site-header { padding: 16px 20px; }
  .hero { padding: 24px 20px 48px; }
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-trust { gap: 16px; }
  .wizard-wrapper { padding: 0 20px 40px; }
  .step h1 { font-size: 20px; }
  .option-grid.cols-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .result-stats { gap: 12px; }
  .wizard { min-height: 360px; }
}
