/* ==============================================
   ATSY.SE — MVP Landing Page
   Aesthetic: Scandinavian Craft — warm, grounded
   Mobile-first · DM Sans · Cream/Green/Terracotta
   ============================================== */

:root {
  /* Palette */
  --green: #2D6A4F;
  --green-dark: #1B4332;
  --cream: #FAF8F0;
  --terracotta: #C75B39;
  --terracotta-dark: #AE4F30;
  --charcoal: #2C2C2C;
  --muted: #5a5a4e;
  --white: #FFFFFF;
  --border: #e5e1d8;
  --placeholder: #c8c4ba;

  /* Score colors */
  --score-high: #c44030;
  --score-medium: #d68a2e;
  --score-low: #4a8e3e;

  /* Shadows — warm tinted */
  --shadow-sm: 0 1px 3px rgba(44, 38, 28, 0.07);
  --shadow-md: 0 4px 14px rgba(44, 38, 28, 0.09);
  --shadow-lg: 0 8px 30px rgba(44, 38, 28, 0.11);
  --shadow-card: 0 2px 8px rgba(44, 38, 28, 0.06),
                 0 12px 28px rgba(44, 38, 28, 0.09);

  /* Typography */
  --font: 'DM Sans', sans-serif;

  /* Spacing */
  --section-py: 4rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-btn: 8px;

  /* Layout */
  --max-w: 720px;
}

/* === RESET === */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--green-dark); }

/* Focus */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === UTILITIES === */

.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;
}
.sr-only--focusable:focus {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  width: auto; height: auto;
  padding: 0.75rem 1rem;
  margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-btn);
  z-index: 100;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === BUTTONS === */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
  padding: 1rem 2rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(199, 91, 57, 0.25);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(199, 91, 57, 0.3);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(199, 91, 57, 0.2);
}
.btn--full {
  display: block;
  width: 100%;
  text-align: center;
}

/* === SECTION HELPERS === */

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}


/* ==============================
   HEADER
   ============================== */

.site-header {
  padding: 1.25rem 0;
  background: var(--cream);
}

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo__img {
  height: 52px;
  width: auto;
  display: block;
}

.logo__img--small {
  height: 36px;
  margin: 0 auto;
}


/* ==============================
   HERO
   ============================== */

.hero {
  background: var(--cream);
  padding: 2rem 0 3.5rem;
}

.hero__grid {
  display: block;
}

.hero__visual {
  display: none;
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
  max-width: 580px;
  letter-spacing: -0.015em;
}

.hero__subtitle {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.55;
}

.hero .btn {
  margin-top: 2rem;
  font-size: 1.1rem;
  padding: 1.1rem 2.25rem;
}

.hero__preview {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}


/* ==============================
   HOW IT WORKS
   ============================== */

.how-it-works {
  background: var(--white);
  padding: var(--section-py) 0;
}

.how-it-works h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.step {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  border: 1px solid var(--border);
}

.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: var(--radius-md);
  color: var(--green);
  margin-bottom: 0.5rem;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 0.5rem;
}

.step p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}


/* ==============================
   LEAD EXAMPLE
   ============================== */

.lead-example {
  background: var(--cream);
  padding: var(--section-py) 0;
}

.lead-example h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
}

.lead-example .section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.lead-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

/* Green top accent bar */
.lead-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lead-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfdbd1;
}

.lead-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-card__body {
  padding: 1.5rem;
}

.lead-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lead-card__address {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
}

.lead-card__type {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--cream);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lead-card__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.score {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.score__label {
  font-size: 0.85rem;
  color: var(--muted);
}

.score__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  line-height: 1.3;
}

.score__badge--high   { background: var(--score-high); }
.score__badge--medium { background: var(--score-medium); }
.score__badge--low    { background: var(--score-low); }
.score__badge--sold   { background: var(--green); }

.lead-card__assessment {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f5f3ec;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--green);
}

.assessment__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.lead-card__assessment p:last-child {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.lead-card__contact {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f3ec;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--terracotta);
}

.lead-card__owner {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.lead-card__owner-detail {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.lead-example__cta {
  text-align: center;
  margin-top: 2rem;
}


/* ==============================
   SOCIAL PROOF
   ============================== */

.social-proof {
  background: var(--white);
  padding: var(--section-py) 0;
}

.stats {
  display: grid;
  gap: 0.85rem;
}

.stat-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-card__number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}

.stat-card__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-card {
  margin: 2rem auto 0;
  max-width: 560px;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  font-style: normal;
}

.trust-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  text-align: left;
}


/* ==============================
   CONTACT
   ============================== */

.contact {
  background: var(--cream);
  padding: var(--section-py) 0;
}

.contact h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
}

.contact .section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

#contact-form {
  max-width: 420px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--placeholder);
}

.form-group input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

#contact-form .btn {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  padding: 1rem;
  min-height: 52px;
}

.form-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-note a {
  color: var(--green);
  font-weight: 700;
}

/* Form success message */
.form-message {
  text-align: center;
  padding: 2rem 1rem;
}
.form-message p {
  font-size: 1.1rem;
  color: var(--green-dark);
  line-height: 1.5;
}


/* ==============================
   FOOTER
   ============================== */

.site-footer {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 0.4rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.footer__tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }


/* ==============================
   SCROLL ANIMATIONS
   Added via JS for progressive enhancement.
   Without JS all content is visible.
   ============================== */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.2s; }


/* ==============================
   TABLET  (600px+)
   ============================== */

@media (min-width: 600px) {
  .container { padding: 0 2rem; }

  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 2.5rem 0 4rem; }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .step { text-align: center; }
  .step__icon { margin: 0 auto 0.5rem; }
  .step__number {
    position: static;
    margin: 0 auto 0.5rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}


/* ==============================
   DESKTOP  (900px+)
   ============================== */

@media (min-width: 900px) {
  :root {
    --section-py: 5.5rem;
    --max-w: 960px;
  }

  .container { padding: 0 2.5rem; }

  .logo__img { height: 60px; }

  .hero {
    padding: 3.5rem 0 5rem;
  }

  .hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero__visual {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .btn {
    font-size: 1.15rem;
    padding: 1.15rem 2.5rem;
  }

  .how-it-works h2,
  .lead-example h2,
  .contact h2 {
    font-size: 1.75rem;
  }

  .stat-card__number {
    font-size: 2.25rem;
  }
}
