/* UncleLess marketing site — colors match the app's own AppColors exactly
   (lib/core/theme/theme.dart), so the marketing site and the product never
   feel like two different brands. */

:root {
  --primary: #4A7C59;
  --primary-light: #6B997A;
  --primary-dark: #2E543A;
  --background: #F4F6F5;
  --surface: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #737373;
  --alert-bg: #FFF4EB;
  --alert-icon: #E59866;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text-main);
  line-height: 1.6;
}

a { color: var(--primary-dark); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-main);
  text-decoration: none;
}

.nav-brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-main);
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */

.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy { flex: 1.1; }
.hero-art { flex: 0.9; text-align: center; }
.hero-art img { max-width: 320px; width: 100%; }

.tagline {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 900;
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 16px;
  border: 2px solid var(--primary);
}

@media (max-width: 780px) {
  .hero .container { flex-direction: column-reverse; }
  .hero h1 { font-size: 32px; }
}

/* --- Sections --- */

section { padding: 64px 0; }

.section-alt { background: var(--surface); }

h2.section-title {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 12px;
}

p.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 40px;
  font-size: 17px;
}

.problem-box {
  background: var(--alert-bg);
  border-radius: 20px;
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem-box p {
  font-size: 18px;
  margin: 0;
}

.problem-box strong { color: var(--alert-icon); }

/* --- Steps grid --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.step-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.section-alt .step-card { background: var(--background); box-shadow: none; }

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.screenshot-placeholder {
  margin-top: 16px;
  border-radius: 14px;
  background: var(--background);
  border: 1px dashed #C7CFCA;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.step-screenshot {
  display: block;
  margin: 16px auto 0;
  max-width: 100%;
  max-height: 360px;
  width: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.section-alt .screenshot-placeholder { background: var(--surface); }

/* --- Video --- */

.video-wrap {
  max-width: 780px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* --- Download --- */

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.store-badges {
  display: none; /* shown once real App Store / Play Store URLs exist */
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.store-badges img { height: 48px; }

/* --- Footer --- */

.footer {
  background: var(--primary-dark);
  color: #E8EEE9;
  padding: 40px 0;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer a {
  color: #E8EEE9;
  text-decoration: none;
  font-size: 14px;
}

.footer a:hover { text-decoration: underline; }

.footer-copyright {
  font-size: 13px;
  color: #B9C7BD;
  width: 100%;
  margin-top: 24px;
}

/* --- Simple content pages (legal, contact) --- */

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-content h1 { font-size: 30px; margin-bottom: 24px; }

.legal-body {
  white-space: pre-wrap;
  font-size: 15px;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

/* --- Contact form --- */

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #D9E0DC;
  background: var(--surface);
  font-size: 15px;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Honeypot — visually hidden but still in the tab/DOM flow, so a bot that
   fills every input still trips it; a sighted real visitor never sees it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
}

.form-status.success { color: var(--primary-dark); }
.form-status.error { color: #B3441E; }

button.btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

button.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
