/* tutim — Trustworthy SA fintech */
:root {
  --navy-900: #07172E;
  --navy-800: #0B1F3A;
  --navy-700: #122E55;
  --navy-600: #1B4079;
  --navy-500: #2A5DAA;
  --blue-400: #4F8AE6;
  --blue-300: #8DB6F0;
  --blue-100: #E6EFFB;
  --blue-50:  #F2F6FD;
  --mint-500: #1FB18B;
  --mint-100: #DCF3EB;
  --amber-500: #E89A2B;
  --amber-100: #FBEAD0;
  --rose-500: #D14A5C;
  --rose-100: #F8DDDD;

  --paper: #FBFAF7;
  --paper-2: #F4F2EC;
  --ink-900: #0A1320;
  --ink-700: #2A3550;
  --ink-500: #5C6577;
  --ink-400: #8189A0;
  --ink-300: #B7BDCC;
  --line: #E7E4DC;
  --line-2: #D6D2C7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 0 rgba(10,19,32,0.04), 0 2px 6px rgba(10,19,32,0.04);
  --shadow-md: 0 1px 0 rgba(10,19,32,0.04), 0 8px 24px rgba(10,19,32,0.06);
  --shadow-lg: 0 12px 40px rgba(10,19,32,0.10);

  --display: "General Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================ Top nav ================ */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
}
.topnav-left { display: flex; align-items: center; gap: 36px; }
.brand {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  cursor: pointer;
}
.brand-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint-500);
  display: inline-block;
  margin-left: 4px;
  margin-bottom: 3px;
  align-self: end;
}
.topnav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-700); }
.topnav-links a { cursor: pointer; }
.topnav-links a:hover { color: var(--navy-800); }
.topnav-right { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--navy-800); color: white; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { color: var(--ink-700); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-outline { border: 1px solid var(--line-2); background: white; }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-mint { background: var(--mint-500); color: white; }
.btn-mint:hover { filter: brightness(0.95); }

/* ================ Landing ================ */
.landing { padding: 0 40px 80px; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  padding: 80px 0 100px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  background: var(--blue-100);
  color: var(--navy-700);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.eyebrow-pill {
  background: var(--navy-800);
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--navy-900);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--navy-600);
  font-family: "Lora", "Source Serif 4", Georgia, serif;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-500);
  margin: 0 0 36px;
  max-width: 520px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; align-items: center; }
.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-500);
}
.hero-meta strong { display: block; color: var(--navy-900); font-size: 22px; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 2px; }

/* Hero card mock */
.hero-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -28px -28px auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--blue-100) 0%, transparent 70%);
  z-index: -1;
  filter: blur(20px);
}
.card-tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; margin-bottom: 24px; font-size: 13px; }
.card-tab { flex: 1; text-align: center; padding: 10px; border-radius: 999px; color: var(--ink-500); font-weight: 500; cursor: pointer; }
.card-tab.active { background: white; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.amount-display {
  text-align: center;
  padding: 32px 0 12px;
}
.amount-label { font-size: 12px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.amount-value {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--navy-900);
  line-height: 1;
}
.amount-value .currency { font-size: 32px; color: var(--ink-400); margin-right: 4px; vertical-align: top; position: relative; top: 12px; }
.amount-slider {
  position: relative;
  height: 52px;
  margin: 24px 0 8px;
}
.amount-slider-track {
  position: absolute; top: 50%; left: 0; right: 0; height: 6px;
  background: var(--paper-2); border-radius: 3px; transform: translateY(-50%);
}
.amount-slider-fill {
  position: absolute; top: 50%; left: 0; height: 6px;
  background: var(--navy-800); border-radius: 3px; transform: translateY(-50%);
}
.amount-slider-handle {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: white; border: 3px solid var(--navy-800);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.amount-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-500); margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-700); }
.summary-row strong { color: var(--navy-900); font-weight: 500; }

/* ================ How it works ================ */
.section { padding: 80px 0; max-width: 1280px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; gap: 40px; }
.section-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  color: var(--navy-900);
  max-width: 640px;
  text-wrap: balance;
}
.section-sub { font-size: 16px; color: var(--ink-500); max-width: 380px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.04em;
}
.step-title { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 60px 0 8px; color: var(--navy-900); }
.step-desc { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }
.step-glyph {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
}

/* Costs section */
.costs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.costs-list { display: flex; flex-direction: column; }
.cost-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.cost-item:last-child { border-bottom: 1px solid var(--line); }
.cost-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
}
.cost-name { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; color: var(--navy-900); font-size: 18px; }
.cost-typical { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.cost-amount { font-family: var(--mono); font-size: 13px; color: var(--ink-700); }

.costs-summary {
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  position: sticky;
  top: 100px;
}
.costs-summary h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.costs-summary p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.costs-summary-figure {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.costs-summary-figure .currency { font-size: 28px; color: rgba(255,255,255,0.5); margin-right: 4px; }
.costs-summary-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 28px; }

/* ================ Trust strip ================ */
.trust-strip {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 40px;
  align-items: center;
  padding: 28px 40px;
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  font-size: 13px;
  margin: 60px auto;
  max-width: 1280px;
}
.trust-label { color: rgba(255,255,255,0.4); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ================ Conveyancer preview ================ */
.match-preview {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.match-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  transition: all 0.18s;
}
.match-card:hover { border-color: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.match-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500; font-size: 20px;
  letter-spacing: -0.02em;
}
.match-name { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--navy-900); letter-spacing: -0.01em; }
.match-meta { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.match-quote { text-align: right; }
.match-quote strong { font-family: var(--display); font-size: 18px; color: var(--navy-900); display: block; letter-spacing: -0.01em; }
.match-quote span { font-size: 11.5px; color: var(--ink-500); }

/* ================ Footer ================ */
.footer {
  margin-top: auto;
  padding: 60px 40px 40px;
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: var(--display); font-size: 28px; color: white; margin-bottom: 16px; letter-spacing: -0.02em; font-weight: 500; }
.footer-tag { font-size: 14px; line-height: 1.6; max-width: 320px; margin-bottom: 24px; }
.footer-col h5 { color: white; font-size: 13px; font-weight: 500; margin: 0 0 16px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { cursor: pointer; }
.footer-legal {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  gap: 32px;
  flex-wrap: wrap;
}
.footer-legal-text { max-width: 720px; line-height: 1.6; }

/* ================ Apply flow ================ */
.apply-page {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1;
  min-height: calc(100vh - 79px);
}
.apply-sidebar {
  background: var(--navy-900);
  color: white;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
}
.apply-sidebar-brand {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 60px;
}
.apply-sidebar h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.apply-sidebar p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 48px;
}
.apply-steps { display: flex; flex-direction: column; gap: 4px; }
.apply-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.apply-step:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.08); }
.apply-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.apply-step.active { color: white; }
.apply-step.active .apply-step-num { background: var(--mint-500); border-color: var(--mint-500); color: white; }
.apply-step.done { color: rgba(255,255,255,0.8); }
.apply-step.done .apply-step-num { background: white; border-color: white; color: var(--navy-900); }

.apply-content {
  padding: 56px 80px;
  max-width: 800px;
  width: 100%;
  background: var(--paper);
}
.apply-step-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.apply-step-title {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--navy-900);
  text-wrap: balance;
}
.apply-step-sub {
  font-size: 16px;
  color: var(--ink-500);
  margin: 0 0 40px;
  line-height: 1.55;
  max-width: 520px;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; color: var(--ink-700); font-weight: 500; }
.field-hint { font-size: 12px; color: var(--ink-500); }
.field-error { font-size: 12px; color: var(--rose-500); margin-top: -2px; }
.input-error { border-color: var(--rose-500) !important; }
.input, .select, .textarea {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  background: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.08);
}
.textarea { height: auto; padding: 14px 16px; resize: vertical; font-family: inherit; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.choice {
  border: 1px solid var(--line-2);
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.choice:hover { border-color: var(--navy-600); }
.choice.selected { border-color: var(--navy-800); background: var(--blue-50); box-shadow: 0 0 0 1px var(--navy-800); }
.choice-title { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--navy-900); margin-bottom: 4px; }
.choice-desc { font-size: 13px; color: var(--ink-500); line-height: 1.45; }

.apply-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--navy-800);
  transition: width 0.3s ease;
}

/* Slider amount picker */
.amount-picker {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.amount-picker .amount-display { padding: 0 0 20px; text-align: left; }
.amount-picker .amount-label { margin-bottom: 4px; }
.amount-picker .amount-value { font-size: 56px; }
.amount-picker .amount-value .currency { font-size: 28px; }

.cost-breakdown { display: grid; gap: 8px; margin-bottom: 24px; }
.cost-bd-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--ink-700); border-bottom: 1px dashed var(--line); }
.cost-bd-row:last-child { border-bottom: none; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 500; color: var(--navy-900); }

/* ================ Offer screen ================ */
.offer-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--blue-50) 100%);
}
.offer-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 56px;
  max-width: 760px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.offer-stamp {
  position: absolute;
  top: 32px; right: 32px;
  background: var(--mint-100);
  color: var(--mint-500);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.offer-stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-500); }
.offer-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 16px; }
.offer-title {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--navy-900);
}
.offer-amount {
  font-family: var(--display);
  font-size: 88px;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--navy-900);
  line-height: 1;
  margin: 32px 0 8px;
}
.offer-amount .currency { font-size: 44px; color: var(--ink-400); margin-right: 6px; vertical-align: top; position: relative; top: 16px; }
.offer-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.offer-term-label { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.offer-term-value { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--navy-900); }

/* ================ Match screen ================ */
.match-page { padding: 56px 40px; max-width: 1280px; margin: 0 auto; width: 100%; flex: 1; }
.match-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; gap: 40px; }
.match-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px; font-weight: 500; }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-700);
}
.filter-option:hover { background: var(--paper-2); }
.filter-option.active { background: var(--navy-900); color: white; }
.filter-option .count { font-size: 12px; color: var(--ink-400); font-family: var(--mono); }
.filter-option.active .count { color: rgba(255,255,255,0.5); }

.results-list { display: flex; flex-direction: column; gap: 16px; }
.result-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 72px 1fr 240px;
  gap: 24px;
  align-items: start;
  transition: all 0.18s;
}
.result-card:hover { border-color: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.result-card.featured { border-color: var(--navy-800); background: linear-gradient(180deg, white 0%, var(--blue-50) 100%); }
.result-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500; font-size: 26px;
  letter-spacing: -0.02em;
}
.result-name { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--navy-900); letter-spacing: -0.02em; margin-bottom: 4px; }
.result-firm { font-size: 13px; color: var(--ink-500); margin-bottom: 16px; }
.result-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-700);
  font-weight: 500;
}
.tag.specialty { background: var(--blue-100); color: var(--navy-700); }
.tag.featured { background: var(--navy-900); color: white; }
.result-stats { display: flex; gap: 24px; font-size: 13px; color: var(--ink-500); }
.result-stats strong { color: var(--navy-900); }
.result-quote { text-align: right; padding-left: 24px; border-left: 1px solid var(--line); }
.quote-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.quote-amount { font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -0.025em; color: var(--navy-900); line-height: 1; margin-bottom: 4px; }
.quote-amount .currency { font-size: 16px; color: var(--ink-400); margin-right: 2px; vertical-align: top; position: relative; top: 4px; }
.quote-vat { font-size: 11px; color: var(--ink-500); margin-bottom: 16px; }

/* ================ Dashboard ================ */
.dashboard-page { padding: 40px; max-width: 1280px; margin: 0 auto; width: 100%; flex: 1; }
.dashboard-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px; gap: 40px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-sub { font-size: 13px; color: var(--ink-500); margin: 0 0 24px; }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  border: 2px solid var(--ink-300);
  background: white;
}
.timeline-item.done .timeline-dot { background: var(--mint-500); border-color: var(--mint-500); }
.timeline-item.active .timeline-dot { background: var(--navy-800); border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.12); }
.timeline-title { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; color: var(--navy-900); }
.timeline-desc { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.timeline-date { font-family: var(--mono); font-size: 11px; color: var(--ink-500); white-space: nowrap; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.stat {
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 18px;
}
.stat-label { font-size: 11.5px; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.stat-value { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: var(--navy-900); line-height: 1; }
.stat-value .currency { font-size: 14px; color: var(--ink-400); margin-right: 2px; vertical-align: top; position: relative; top: 2px; }
.stat-sub { font-size: 11.5px; color: var(--ink-500); margin-top: 4px; }

.assigned-conveyancer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--paper-2);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.repay-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  margin: 12px 0 8px;
  overflow: hidden;
}
.repay-fill { height: 100%; background: var(--navy-800); border-radius: 4px; }

.docs-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--paper-2);
  border-radius: var(--radius-md);
  font-size: 13.5px;
}
.doc-icon { width: 32px; height: 32px; border-radius: 8px; background: white; display: flex; align-items: center; justify-content: center; color: var(--navy-700); }
.doc-name { font-weight: 500; color: var(--navy-900); }
.doc-meta { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.doc-status {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.doc-status.signed { background: var(--mint-100); color: var(--mint-500); }
.doc-status.pending { background: var(--amber-100); color: var(--amber-500); }

.message-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  font-size: 13.5px;
}
.message-item:last-child { border-bottom: none; }
.message-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-100); color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 13px; font-weight: 500;
}
.message-name { font-weight: 500; color: var(--navy-900); }
.message-text { color: var(--ink-700); margin-top: 2px; line-height: 1.45; }
.message-time { font-family: var(--mono); font-size: 11px; color: var(--ink-500); }

/* Misc badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--paper-2);
  color: var(--ink-700);
}
.badge-mint { background: var(--mint-100); color: var(--mint-500); }
.badge-amber { background: var(--amber-100); color: var(--amber-500); }
.badge-navy { background: var(--navy-900); color: white; }

.star { color: var(--amber-500); }

/* Demo helper */
.demo-jump {
  position: fixed;
  bottom: 20px; left: 20px;
  background: var(--navy-900);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex; gap: 4px;
  font-size: 12px;
  z-index: 40;
  box-shadow: var(--shadow-lg);
}
.demo-jump button {
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,0.6);
}
.demo-jump button.active { background: white; color: var(--navy-900); }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .costs-grid { grid-template-columns: 1fr; }
  .match-preview { grid-template-columns: 1fr; }
  .apply-page { grid-template-columns: 1fr; }
  .apply-sidebar { padding: 32px 28px; }
  .apply-content { padding: 40px 28px; }
  .match-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .result-card { grid-template-columns: 56px 1fr; }
  .result-quote { grid-column: 1 / -1; text-align: left; padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 16px; }
  .quotation-parties { grid-template-columns: 1fr; }
  .quotation-terms-grid { grid-template-columns: 1fr 1fr; }
  .quotation-doc { padding: 40px 28px; }
}

/* ================ Quotation page (NCA s92) ================ */
.quotation-page {
  flex: 1;
  padding: 48px 40px 80px;
  background: var(--paper-2);
  min-height: 100vh;
}
.quotation-doc {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  padding: 64px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.quotation-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--navy-900);
}
.quotation-title {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  margin: 0 0 12px;
  line-height: 1;
}
.quotation-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.quotation-section { margin-bottom: 36px; }
.quotation-section-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.quotation-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink-700);
  border-bottom: 1px dashed var(--line);
  gap: 16px;
}
.quotation-field span:first-child { color: var(--ink-500); flex-shrink: 0; }
.quotation-field span:last-child { color: var(--navy-900); font-weight: 500; text-align: right; }
.quotation-terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quotation-term {
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 18px;
}
.quotation-term-label {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-bottom: 6px;
  line-height: 1.4;
}
.quotation-term-value {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}
.quotation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--ink-700);
}
.quotation-table tr { border-bottom: 1px dashed var(--line); }
.quotation-table td { padding: 13px 4px; vertical-align: middle; }
.quotation-table td:last-child { text-align: right; font-family: var(--mono); color: var(--navy-900); font-size: 13px; }
.quotation-table tr.total-row td {
  font-weight: 600;
  color: var(--navy-900);
  border-top: 2px solid var(--navy-900);
  border-bottom: none;
  font-size: 15px;
  padding-top: 16px;
}
.quotation-list {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.65;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quotation-rights {
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--blue-100);
}
