:root {
  --vt-page: #ffffff;
  --vt-paper: #ffffff;
  --vt-ink: #071731;
  --vt-muted: #465974;
  --vt-line: #dbe6f0;
  --vt-soft: #f4f8fb;
  --vt-green: #0b5d46;
  --vt-green-2: #0f766e;
  --vt-blue: #1263f1;
  --vt-amber: #e18b16;
  --vt-red: #b91c1c;
  --vt-shadow: 0 10px 28px rgba(7, 23, 49, .08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--vt-page);
  color: var(--vt-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

.valuation-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, .13), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(18, 99, 241, .10), transparent 30%),
    linear-gradient(180deg, #f4fbf8 0, #ffffff 560px),
    #ffffff;
}

.valuation-page #main-content {
  display: flex;
  flex-direction: column;
}

button,
input,
select {
  font: inherit;
}

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

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-72px);
  border-radius: 8px;
  background: var(--vt-green);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--vt-amber);
  outline-offset: 3px;
}

.tool-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(213, 224, 236, .95);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.tool-header,
.brand,
.tool-nav,
.coverage-strip,
.panel-heading,
.result-topline,
.metric-row,
.comparable-row,
.related-links {
  display: flex;
  align-items: center;
}

.tool-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 10px;
  min-height: 44px;
  color: #10211b;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: .98rem;
  line-height: 1.15;
}

.brand small {
  color: #52665e;
  font-size: .72rem;
}

.tool-nav {
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.tool-nav a,
.account-pill,
.related-links a {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}

.tool-nav a {
  padding: 0 13px;
  color: #31443d;
  font-size: .93rem;
}

.tool-nav a:hover {
  color: var(--vt-green);
  background: #eaf6f1;
}

.account-pill {
  padding: 0 18px;
  background: var(--vt-green);
  color: #fff;
}

.account-pill:hover,
.submit-btn:hover {
  background: #074735;
}

.tool-shell {
  width: min(1140px, calc(100% - 88px));
  margin: 0 auto;
}

.hero-band {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(3, 105, 161, .05) 46%, transparent),
    transparent;
  order: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
  padding: 18px 0 34px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--vt-green);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 10px 0 14px;
  font-size: 2.65rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 790px;
  margin: 0;
  color: var(--vt-muted);
  font-size: 1.06rem;
}

.coverage-strip {
  width: fit-content;
  margin-top: 22px;
  border: 1px solid var(--vt-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--vt-shadow);
  overflow: hidden;
}

.coverage-strip span {
  min-height: 42px;
  padding: 0 16px;
  border-right: 1px solid var(--vt-line);
  display: inline-flex;
  align-items: center;
  color: #20352d;
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
}

.coverage-strip span:last-child {
  border-right: 0;
}

.method-rail {
  border: 1px solid var(--vt-line);
  border-radius: 14px;
  background: var(--vt-paper);
  box-shadow: var(--vt-shadow);
  overflow: hidden;
}

.method-rail div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--vt-line);
}

.method-rail div:last-child {
  border-bottom: 0;
}

.method-rail span {
  color: var(--vt-amber);
  font-size: .76rem;
  font-weight: 900;
}

.method-rail strong {
  display: block;
  margin: 4px 0 5px;
  color: #10211b;
}

.method-rail p {
  margin: 0;
  color: var(--vt-muted);
  font-size: .86rem;
}

.workspace {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0 48px;
}

.valuation-workspace {
  order: -1;
  padding: 34px 0 18px;
}

.tool-panel {
  border: 1px solid var(--vt-line);
  border-radius: 14px;
  background: var(--vt-paper);
  box-shadow: var(--vt-shadow);
}

.form-panel,
.result-empty,
.result-content {
  padding: 22px;
}

.form-panel {
  position: relative;
  overflow: hidden;
  border-color: #99d8ca;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .94)),
    radial-gradient(circle at 94% 0%, rgba(18, 99, 241, .14), transparent 34%);
  box-shadow: 0 26px 68px rgba(7, 23, 49, .14), 0 14px 44px rgba(11, 93, 70, .13);
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #0b5d46, #0f766e 52%, #1263f1);
}

.form-panel:focus-within {
  border-color: #0f766e;
  box-shadow: 0 24px 64px rgba(11, 93, 70, .22), 0 0 0 4px rgba(15, 118, 110, .10);
}

.panel-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-heading h2,
.result-empty h2,
.seo-copy h2,
.faq-heading h2,
.comparables h3 {
  margin: 0;
  line-height: 1.18;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: 1.28rem;
}

.tier-chip {
  border: 1px solid var(--vt-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--vt-muted);
  background: var(--vt-soft);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.tier-chip[data-tier="free"],
.tier-chip[data-tier="vip"],
.tier-chip[data-tier="admin"] {
  color: var(--vt-green);
  border-color: #bee3d6;
  background: #eaf6f1;
}

.form-assurance-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: -4px 0 16px;
}

.form-assurance-row span {
  min-height: 38px;
  border: 1px solid #cfe7dc;
  border-radius: 10px;
  background: #f2fbf7;
  color: #0b5d46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  font-size: .78rem;
  font-weight: 900;
}

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

.field-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.field-grid span,
.check-row span {
  color: #52665e;
  font-size: .78rem;
  font-weight: 850;
}

.field-grid input,
.field-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--vt-line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--vt-ink);
  padding: 0 11px;
  outline: none;
}

.field-grid input:focus,
.field-grid select:focus {
  border-color: var(--vt-green-2);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.check-row {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--vt-green);
}

.submit-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--vt-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(11, 93, 70, .24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.submit-btn:disabled {
  opacity: .58;
  cursor: wait;
}

.submit-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(11, 93, 70, .28);
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--vt-red);
  font-size: .86rem;
  font-weight: 800;
}

.result-panel {
  min-height: 520px;
  overflow: hidden;
  border-color: rgba(18, 99, 241, .18);
  box-shadow: 0 22px 60px rgba(7, 23, 49, .10);
}

.result-empty {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .07), transparent 36%),
    radial-gradient(circle at 96% 0%, rgba(18, 99, 241, .12), transparent 34%),
    #fff;
}

.result-empty h2 {
  max-width: 470px;
  font-size: 2rem;
}

.empty-guide {
  border-top: 1px solid var(--vt-line);
  border-bottom: 1px solid var(--vt-line);
}

.empty-guide div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--vt-line);
}

.empty-guide div:last-child {
  border-bottom: 0;
}

.empty-guide strong {
  color: var(--vt-ink);
}

.empty-guide span,
.guest-note {
  color: var(--vt-muted);
}

.guest-note {
  margin: 0;
  max-width: 560px;
}

.result-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-topline span {
  min-width: 0;
  color: var(--vt-muted);
  font-weight: 850;
}

.result-topline strong {
  border: 1px solid #bee3d6;
  border-radius: 999px;
  background: #eaf6f1;
  color: var(--vt-green);
  padding: 6px 10px;
  font-size: .82rem;
  white-space: nowrap;
}

.hero-number {
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b5d46, #1263f1);
  color: #fff;
  margin-bottom: 14px;
}

.hero-number span {
  display: block;
  color: rgba(255, 255, 255, .76);
  font-size: .84rem;
  font-weight: 850;
  margin-bottom: 6px;
}

.hero-number strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.metric-row {
  gap: 10px;
  margin-bottom: 14px;
}

.metric-row div {
  flex: 1;
  min-height: 84px;
  border: 1px solid var(--vt-line);
  border-radius: 12px;
  padding: 12px;
  background: var(--vt-soft);
}

.metric-row span {
  display: block;
  color: var(--vt-muted);
  font-size: .78rem;
  font-weight: 850;
  margin-bottom: 7px;
}

.metric-row strong {
  font-size: 1.08rem;
}

.model-note {
  color: var(--vt-muted);
  font-size: .86rem;
  margin: 0 0 20px;
}

.comparables h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.comparable-row {
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--vt-line);
  padding: 11px 0;
}

.comparable-title {
  min-width: 0;
  color: var(--vt-ink);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comparable-meta {
  color: var(--vt-muted);
  font-size: .8rem;
  white-space: nowrap;
}

.seo-section,
.faq-section {
  padding: 46px 0;
  border-top: 1px solid var(--vt-line);
}

.seo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 42px;
}

.seo-copy h2,
.faq-heading h2 {
  margin-top: 8px;
  font-size: 2rem;
}

.seo-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--vt-muted);
  font-size: 1rem;
}

.seo-points {
  border: 1px solid var(--vt-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--vt-shadow);
}

.seo-points article {
  padding: 16px 18px;
  border-bottom: 1px solid var(--vt-line);
}

.seo-points article:last-child {
  border-bottom: 0;
}

.seo-points h3,
.faq-list summary {
  margin: 0;
  color: #10211b;
  font-size: 1rem;
  font-weight: 900;
}

.seo-points p,
.faq-list p {
  margin: 6px 0 0;
  color: var(--vt-muted);
}

.faq-section {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
}

.faq-list {
  border-top: 1px solid var(--vt-line);
}

.faq-list details {
  border-bottom: 1px solid var(--vt-line);
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
}

.related-links {
  grid-column: 2;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links a {
  border: 1px solid var(--vt-line);
  background: #fff;
  color: #31443d;
  padding: 0 13px;
  font-size: .9rem;
}

.related-links a:hover {
  color: var(--vt-green);
  background: #eaf6f1;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .48);
  z-index: 1000;
}

.modal-content {
  width: min(420px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--vt-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .form-panel {
    animation: valuationFormGlow 4.8s ease-in-out infinite;
  }

  .submit-btn svg {
    transition: transform 180ms ease;
  }

  .submit-btn:hover svg {
    transform: translateX(2px);
  }
}

@keyframes valuationFormGlow {
  0%,
  100% {
    box-shadow: 0 26px 68px rgba(7, 23, 49, .14), 0 14px 44px rgba(11, 93, 70, .13);
  }
  50% {
    box-shadow: 0 30px 78px rgba(7, 23, 49, .18), 0 18px 54px rgba(11, 93, 70, .20), 0 0 0 5px rgba(15, 118, 110, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  .tool-shell {
    width: min(100% - 48px, 1140px);
  }

  .tool-header {
    padding: 0 24px;
  }

  .hero-grid,
  .workspace,
  .seo-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .method-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-rail div {
    border-bottom: 0;
    border-right: 1px solid var(--vt-line);
  }

  .method-rail div:last-child {
    border-right: 0;
  }

  .related-links {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .tool-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .tool-nav {
    justify-content: flex-start;
  }

  .tool-nav a {
    display: none;
  }

  .tool-shell {
    width: min(100% - 28px, 1140px);
  }

  .hero-grid {
    padding: 34px 0 26px;
  }

  .valuation-workspace {
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 2.28rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .coverage-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coverage-strip span {
    min-width: 0;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
  }

  .method-rail,
  .metric-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .method-rail div {
    border-right: 0;
    border-bottom: 1px solid var(--vt-line);
  }

  .method-rail div:last-child {
    border-bottom: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-assurance-row {
    grid-template-columns: 1fr;
  }

  .result-empty h2,
  .seo-copy h2,
  .faq-heading h2 {
    font-size: 1.72rem;
  }

  .empty-guide div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-topline,
  .comparable-row {
    display: grid;
  }

  .hero-number strong {
    font-size: 2.05rem;
  }

  .comparable-meta {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .coverage-strip {
    grid-template-columns: 1fr;
  }

  .coverage-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--vt-line);
  }

  .coverage-strip span:last-child {
    border-bottom: 0;
  }
}
