/* Stitch-inspired design | plain CSS, no dependencies */

:root {
  --surface: #f7f9fb;
  --surface-bright: #ffffff;
  --surface-muted: #f8fafc;
  --surface-panel: #f1f5f9;
  --on-surface: #191c1e;
  --on-surface-variant: #45464d;
  --secondary: #515f74;
  --slate-900: #0f172a;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --tertiary-fixed-dim: #89ceff;
  --warning-amber: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.2);
  --on-primary: #ffffff;
  --outline-variant: #c6c6cd;
  --surface-container-low: #f2f4f6;
  --max-width: 1200px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --section-gap: 80px;
  --stack-lg: 32px;
  --stack-md: 16px;
  --stack-sm: 8px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px var(--stack-lg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-dark {
  background: var(--slate-900);
  color: var(--on-primary);
}

.btn-dark:hover:not(:disabled) {
  background: #1e293b;
}

.btn-dark:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: var(--surface-bright);
  color: var(--slate-900);
  border-color: var(--slate-200);
}

.btn-outline:hover {
  background: var(--surface-muted);
}

.btn-sm {
  padding: 8px var(--stack-md);
}

.btn-block {
  width: 100%;
  margin-top: var(--stack-md);
}

/* Top bar */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-bright);
  border-bottom: 1px solid var(--slate-200);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 80px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--stack-sm);
  text-decoration: none;
  color: var(--slate-900);
}

.brand .icon {
  flex-shrink: 0;
  color: var(--slate-900);
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.02em;
}

/* Main layout */

.main {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .main {
    padding-inline: var(--gutter);
  }
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  max-width: 800px;
  margin-inline: auto;
  padding-block: var(--section-gap);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.hero-lead {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--on-surface-variant);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  justify-content: center;
  margin-top: var(--stack-md);
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Tags */

.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  background: var(--slate-200);
  border-radius: var(--radius);
}

.tag-sm {
  padding: 2px 8px;
  font-weight: 700;
  background: #f1f5f9;
}

/* Spotlight */

.spotlight {
  margin-bottom: var(--section-gap);
}

.spotlight-card {
  overflow: hidden;
  background: var(--surface-bright);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.spotlight-header {
  padding: var(--stack-lg);
  background: var(--surface-muted);
  border-bottom: 1px solid #f1f5f9;
}

.spotlight-header h2 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}

.spotlight-header p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.spotlight-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .spotlight-body {
    grid-template-columns: 1fr 1fr;
  }
}

.estimator-form {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
  padding: var(--stack-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.01em;
  color: var(--slate-900);
}

.field-hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

.input-dollar {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: var(--slate-400);
  pointer-events: none;
}

.input-dollar input {
  width: 100%;
  padding: 12px 16px 12px 28px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  background: rgba(241, 245, 249, 0.5);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-dollar input:focus {
  outline: none;
  border-color: #008cc7;
  box-shadow: 0 0 0 1px #008cc7;
  background: var(--surface-bright);
}

/* Output panel */

.output-panel {
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
  padding: var(--stack-lg);
  background: var(--surface-panel);
  border-top: 1px solid var(--slate-200);
}

@media (min-width: 768px) {
  .output-panel {
    border-top: none;
    border-left: 1px solid var(--slate-200);
  }
}

.output-label {
  margin: 0 0 var(--stack-md);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.output-copy {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.output-copy.is-active {
  color: var(--on-surface);
}

.output-stats {
  margin: 0;
}

.output-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--stack-sm);
  margin-bottom: var(--stack-md);
  border-bottom: 1px solid var(--slate-200);
}

.output-stat:last-child {
  margin-bottom: 0;
}

.output-stat dt {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: var(--on-surface-variant);
}

.output-stat dd {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--slate-900);
}

.notice {
  display: flex;
  gap: var(--stack-sm);
  padding: var(--stack-md);
  border-radius: var(--radius);
}

.notice-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.notice-warning p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--slate-900);
}

.icon-warning {
  flex-shrink: 0;
  color: var(--warning-amber);
}

/* Why */

.why {
  padding-block: var(--section-gap);
}

.why-header {
  max-width: 600px;
  margin: 0 auto var(--stack-lg);
  text-align: center;
}

.why-header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}

.why-header p {
  margin: var(--stack-sm) 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  padding: var(--stack-md);
  background: var(--surface-bright);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}

.icon-accent {
  color: var(--tertiary-fixed-dim);
}

.benefit-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: var(--slate-900);
}

.benefit-card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
}

/* Upcoming */

.upcoming {
  padding-block: var(--section-gap);
}

.upcoming-header {
  max-width: 500px;
  margin-bottom: var(--stack-lg);
}

.upcoming-header h2 {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}

.upcoming-header p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.tool-card {
  padding: var(--stack-lg);
  background: var(--surface-bright);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease;
}

.tool-card:hover {
  border-color: var(--slate-400);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--stack-md);
}

.tool-card .icon {
  color: var(--slate-900);
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--slate-900);
}

.tool-card p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface-variant);
}

/* Disclaimer */

.disclaimer {
  padding-block: var(--stack-lg);
  margin-top: var(--section-gap);
  border-top: 1px solid var(--slate-200);
}

.disclaimer h4 {
  margin: 0 0 var(--stack-sm);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.disclaimer p {
  max-width: 800px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* Footer */

.site-footer {
  margin-top: var(--section-gap);
  padding-block: var(--section-gap);
  padding-inline: var(--gutter);
  background: var(--surface-container-low);
  border-top: 1px solid var(--slate-200);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-lg);
  max-width: var(--max-width);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.footer-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-900);
}

.footer-desc {
  margin: var(--stack-sm) 0 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    justify-content: flex-end;
    gap: var(--stack-lg);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-900);
}

.footer-col a {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--slate-900);
}

.footer-copy {
  max-width: var(--max-width);
  margin: var(--stack-lg) auto 0;
  padding-top: var(--stack-lg);
  border-top: 1px solid var(--slate-200);
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .footer-copy {
    grid-column: 1 / -1;
  }
}
