@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Fraunces-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
}

:root {
  --text: #0F172A;
  --bg: #FAFAF9;
  --muted: #6B7280;
  --border: #E5E7EB;
  --under-offer: #B45309;
  --error: #B91C1C;
  /* --accent, --accent-hover, --accent-soft are injected per request. */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Layout */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.hero__badges {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  min-height: 26px;
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge--under-offer {
  background: var(--under-offer);
  color: #fff;
  font-weight: 600;
}

.badge--price {
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge--sold {
  gap: 8px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge--sold::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  display: inline-block;
  margin-right: 8px;
}

.hero__title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  animation-delay: 0.05s;
}

.hero__tagline {
  margin: 24px 0 40px;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  animation-delay: 0.1s;
}

.hero__tagline--tight {
  margin: 28px 0 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background 150ms ease;
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  animation-delay: 0.15s;
}
.hero__cta:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.hero__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Sections */
.section {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.section__title {
  margin: 0 0 20px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section--use-cases .section__title {
  margin-bottom: 24px;
}

.section p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

/* Use case cards */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.use-case {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.use-case__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  margin-bottom: 14px;
}

.use-case__icon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  display: block;
}

.use-case p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* Form */
.form-heading {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.form-trust {
  margin: 0 0 28px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  text-wrap: pretty;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

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

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

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

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: #fff;
  transition: border-color 150ms ease;
}

.field textarea {
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.field .counter {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Honeypot: hidden from humans, visible to naive bots. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.altcha-slot {
  min-height: 65px;
}

.btn-submit {
  align-self: flex-start;
  padding: 13px 28px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}
.btn-submit:hover {
  background: var(--accent-hover);
}
.btn-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-consent {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Simple page (thanks, privacy, invalid host) */
.simple {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) 24px 96px;
}
.simple h1 {
  margin: 0 0 20px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.simple p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}
.simple .muted { color: var(--muted); }

/* Responsive */
@media (max-width: 560px) {
  .use-cases {
    grid-template-columns: 1fr;
  }
  .form {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero,
  .hero__badges,
  .hero__title,
  .hero__tagline,
  .hero__cta {
    animation: none;
  }
}
