/* 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); }

/* Menu items never break onto two lines; tighter between the phone menu
   (below 781px) and full width (2026-10-18). */
.nav-links a { white-space: nowrap; }
@media (min-width: 781px) and (max-width: 1080px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav-cta { padding: 8px 14px; }
  .nav-brand .brand-word { font-size: 18px; }
}
@media (min-width: 781px) and (max-width: 880px) {
  .nav-brand .brand-word { display: none; }  /* logo image only, so the menu fits */
}

.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%; }

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

.hero p.eyebrow {
  display: inline-block;
  background: rgba(74, 124, 89, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 17px;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 0 18px;
}

/* "Less" in the brand green — same as the wordmark and the app (2026-10-06). */
.hero p.eyebrow .less, .brand-less { color: var(--primary); }

/* The wordmark — matches the app exactly (welcome screen + header): all caps,
   extra-bold, slate "UNCLE" + green "LESS". Uppercase via CSS so screen
   readers and search engines still read "UncleLess". See BRAND.md. */
.brand-word {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #3B4453;
}

.hero p.hero-cpa-line {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.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; gap: 16px; }
  .hero h1 { font-size: 32px; }
  /* Keep the headline above the fold on phones (2026-10-06). */
  .hero { padding-top: 32px; }
  .hero-art img { max-width: 140px; }
}

/* --- 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;
}

/* "See how it works, step by step" under each set of steps (2026-10-18) */
.guide-link { text-align: center; margin-top: 28px; font-weight: 700; }
.guide-link a { color: var(--primary); text-decoration: none; }
.guide-link a:hover { text-decoration: underline; }

.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); }

/* --- Pricing --- */

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.billing-toggle-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #C7CFCA;
  border-radius: 26px;
  transition: background 0.2s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary-dark); outline-offset: 2px; }

.pricing-track-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.pricing-track-title-second { margin-top: 64px; }

.pricing-track-note {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 15px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.price-card {
  background: var(--background);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  border: 2px solid transparent;
}

.section-alt .price-card { background: var(--surface); box-shadow: var(--shadow); }

.price-card-featured { border-color: var(--primary); }

.price-card-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.price { margin: 8px 0 24px; }

.price-annual { display: none; }

body.billing-annual .price-monthly { display: none; }
body.billing-annual .price-annual { display: inline; }
/* 2026-10-11: intro price, then the standard price after 12 months. */
.price-then { margin-top: 6px; margin-bottom: 14px; font-size: 0.85rem; color: var(--text-muted, #6b7280); }

.price-amount {
  font-size: 40px;
  font-weight: 900;
  color: var(--text-main);
}

.price-period {
  font-size: 15px;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-main);
}

.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

.price-cta { width: 100%; text-align: center; }

.statement-bundles { text-align: center; margin-top: 8px; }

.statement-bundles h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
}

.bundle-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.bundle-item {
  background: var(--background);
  border-radius: 14px;
  padding: 14px 22px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bundle-item strong { font-size: 20px; color: var(--primary-dark); }
.bundle-item span { font-size: 13px; color: var(--text-muted); font-weight: 700; }

/* --- Compact pricing FAQ --- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--primary);
  font-weight: 800;
}

.faq-item[open] summary::after { content: "\2013"; }

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 780px) {
  .pricing-track-title-second { margin-top: 48px; }
}

/* --- 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;
}

/* --- "Sound familiar?" problem strip (2026-10-06) --- */

section.familiar { padding-top: 16px; }

.problem-strip {
  max-width: 860px;
  margin: 24px auto 0;
  display: grid;
  gap: 14px;
}

.problem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.problem-row p { margin: 0; font-size: 17px; }
.problem-row .problem { font-weight: 800; }
.problem-row .problem, .problem-row .fix { position: relative; padding-left: 26px; }
.problem-row .problem::before { content: "✕"; position: absolute; left: 0; color: var(--alert-icon); }
.problem-row .fix { color: var(--primary-dark); }
.problem-row .fix::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 900; }

/* Callout boxes on section subtitles (2026-10-06): green = good news,
   red = the pain we remove. */
p.section-subtitle.callout {
  display: table;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.callout-green { background: rgba(74, 124, 89, 0.12); color: var(--primary-dark) !important; }
.callout-red { background: #FDECEC; color: #9B2C2C !important; }

/* "And while we're at it…" — the bonus panel, the cherry on top. Light-green
   gradient, same family as the eyebrow pill (2026-10-06). */
.bonus-panel {
  position: relative;
  max-width: 860px;
  margin: 48px auto 0;
  padding: 36px 32px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.20) 0%, rgba(74, 124, 89, 0.07) 100%);
  border: 1px solid rgba(74, 124, 89, 0.18);
  text-align: center;
}
.bonus-pill {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.bonus-pill::before { content: "✦ "; }
.bonus-title { font-size: 24px; font-weight: 900; margin: 12px 0 24px; color: var(--primary-dark); }
.bonus-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.bonus-grid li {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(46, 84, 58, 0.08);
}
.bonus-grid li strong { display: block; color: var(--text-main); }
.bonus-grid li span { color: var(--primary-dark); }

@media (max-width: 780px) {
  .problem-row, .bonus-grid { grid-template-columns: 1fr; }
  .bonus-panel { padding: 28px 18px 20px; }
}

/* CPA "How it works" (2026-10-13): built from the site's existing pieces
   (section title + callout, problem strip, step cards); the two paid
   features use the step-card look so sizes and type match. */
#for-cpas .problem-strip { margin-bottom: 8px; }
p.section-subtitle.cpa-plan-callout { margin-top: 56px; margin-bottom: 24px; }
.cpa-spotlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.spotlight-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.spotlight-card h3 { margin: 14px 0 8px; font-size: 18px; }
.spotlight-card > p { margin: 0 0 12px; color: var(--text-muted); font-size: 15px; }
.spotlight-list { list-style: none; padding: 0; margin: 0; }
.spotlight-list li { position: relative; padding-left: 24px; margin: 10px 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.spotlight-list li strong { color: var(--text-main); }
.spotlight-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 900; }
.cpa-note { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 28px; }
/* The CPA lead sits right under the red tagline: tighter gap, a bit wider. */
#for-cpas p.section-subtitle.callout-red { margin-bottom: 14px; }
p.section-subtitle.cpa-lead { max-width: 68ch; font-weight: 500; }

/* Sales tax line under all prices (2026-10-13) */
.pricing-tax-note {
  margin: 24px auto 0;
}

/* Step-by-step guide (guide.html, 2026-10-18) */
.guide-page { max-width: 1080px; }
.guide-lead { color: var(--text-muted); margin-bottom: 20px; }
.guide-switch { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.guide-switch a { padding: 10px 18px; border: 2px solid var(--primary); border-radius: 999px; color: var(--primary); font-weight: 700; text-decoration: none; }
.guide-switch a:hover { background: var(--primary); color: #fff; }
.guide-track { margin-top: 40px; scroll-margin-top: 90px; }
.guide-intro { color: var(--text-muted); margin-bottom: 8px; }
.guide-step { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.guide-step-text h3 { margin: 10px 0 6px; }
.guide-step-text p { color: var(--text-muted); line-height: 1.6; }
.guide-shot { width: 100%; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.guide-footnote { margin-top: 40px; color: var(--text-muted); font-size: 14px; }
@media (max-width: 760px) { .guide-step { grid-template-columns: 1fr; } }
.guide-shots { display: grid; grid-template-columns: 3fr 1fr; gap: 14px; align-items: center; }
.guide-shot-phone { max-width: 220px; justify-self: center; }
