/* Recypt marketing site — shared styles.
   Brand palette mirrors recypt_app/lib/theme.dart and the former
   lib/pages/landing_page.dart Flutter widget tree; keep the two in sync if
   either changes. */

:root {
  --bg: #f5f7fa;
  --coral: #f45d48;
  --coral-dark: #d9432f;
  --teal: #32d8c5;
  --navy: #1a1f36;
  --brand-navy: #1d3557;
  --gray: #4a5568;
  --border: #e7eaf2;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ---------------------------------------------------------------------
   Nav
   --------------------------------------------------------------------- */

.nav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav .wrap {
  height: 76px;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: var(--gray);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-link:hover {
  background: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
}

.btn-sm {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid #cbd2e0;
}

.btn-outline:hover {
  background: #fff;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 720px) {
  .nav-links .nav-link {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta {
    margin-left: 8px;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 24px 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 12px 0;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  background: linear-gradient(to bottom, #fdf1ef, var(--bg));
}

.hero .wrap {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 6;
}

.hero-visual {
  flex: 5;
  display: flex;
  justify-content: center;
}

@media (max-width: 720px) {
  .hero .wrap {
    flex-direction: column;
    padding-top: 48px;
    padding-bottom: 48px;
    text-align: center;
  }
}

.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 34px;
  }
}

.hero p.lede {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 28px;
}

@media (max-width: 720px) {
  .hero p.lede {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .hero-ctas {
    justify-content: center;
  }
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 20px;
}

@media (max-width: 720px) {
  .trust-points {
    justify-content: center;
  }
}

.trust-point {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
}

.trust-point svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Hero illustration — mirrors the widget-built "shoebox → organized" visual
   from the old Flutter landing page so no extra image asset is needed. */

.hero-illustration {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.mini-card {
  width: 160px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.mini-card.muted {
  transform: rotate(-3.5deg);
  color: #9aa0ab;
}

.mini-card.ready {
  transform: rotate(2deg);
}

.mini-card svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
}

.mini-card.muted svg {
  color: #9aa0ab;
}

.mini-card.ready svg {
  color: var(--coral-dark);
}

.mini-card .label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mini-card.ready .label {
  color: var(--navy);
}

.mini-card .bar {
  height: 5px;
  border-radius: 3px;
  margin: 6px 0;
  background: #e5e7eb;
}

.mini-card.ready .bar {
  background: rgba(50, 216, 197, 0.35);
}

.hero-arrow {
  color: var(--coral);
  flex-shrink: 0;
}

.hero-arrow svg {
  width: 28px;
  height: 28px;
}

/* ---------------------------------------------------------------------
   Trust bar
   --------------------------------------------------------------------- */

.trust-bar {
  background: #fff;
}

.trust-bar .wrap {
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.trust-bar-item svg {
  width: 18px;
  height: 18px;
  color: var(--coral);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */

section {
  padding: 80px 0;
}

@media (max-width: 720px) {
  section {
    padding: 56px 0;
  }
}

section.bg-white {
  background: #fff;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}

.section-heading p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
}

/* How it works */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 720px) {
  .steps {
    flex-direction: column;
    gap: 28px;
  }
}

.step {
  flex: 1;
  padding: 0 12px;
}

@media (max-width: 720px) {
  .step {
    display: flex;
    gap: 16px;
    padding: 0;
  }
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  line-height: 1.5;
}

.step-arrow {
  color: #d1d5db;
  align-self: center;
  padding-top: 20px;
  flex-shrink: 0;
}

.step-arrow svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 720px) {
  .step-arrow {
    display: none;
  }
}

/* Plans */

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  border: 1px solid #cbd2e0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
}

.chip.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.backlog-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  min-height: 20px;
}

.backlog-row.included {
  color: var(--gray);
}

.backlog-row svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

.backlog-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--gray);
}

.plans {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

@media (max-width: 940px) {
  .plans {
    flex-direction: column;
  }
}

.plan-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.plan-badge.base {
  background: rgba(50, 216, 197, 0.14);
  color: var(--teal);
}

.plan-badge.premium {
  background: rgba(244, 93, 72, 0.14);
  color: var(--coral);
}

.plan-badge.custom {
  background: rgba(29, 53, 87, 0.14);
  color: var(--brand-navy);
}

.plan-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.plan-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.plan-price-subtitle {
  font-size: 13px;
  margin: 0 0 8px;
}

.plan-card > p.plan-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 18px;
}

.plan-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}

.plan-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 14px;
}

.plan-bullets svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cta {
  width: 100%;
  padding: 14px;
}

/* Why Recypt */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  display: flex;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(50, 216, 197, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--coral-dark);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.feature-card p {
  margin: 0;
  line-height: 1.5;
}

/* Founder */

.founder-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.founder-photo {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.founder-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}

.founder-card p {
  line-height: 1.6;
  font-size: 16px;
  margin: 0 0 12px;
}

.founder-card .signoff {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* FAQ */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--coral);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Final CTA */

.final-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}

@media (max-width: 720px) {
  .final-cta h2 {
    font-size: 24px;
  }
}

.final-cta p {
  max-width: 480px;
  margin: 0 auto 28px;
  color: #c9cedb;
  line-height: 1.5;
}

/* Footer */

footer {
  padding: 32px 0;
  text-align: center;
}

footer img {
  height: 24px;
  margin: 0 auto 16px;
}

footer .copyright {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
  margin: 0 0 8px;
}

footer .footer-links a {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.54);
  text-decoration: underline;
  margin: 0 6px;
}

/* ---------------------------------------------------------------------
   Legal pages (privacy / terms)
   --------------------------------------------------------------------- */

.legal-page .wrap {
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
}

.legal-page .effective-date {
  font-size: 13px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.54);
  margin: 0 0 24px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 8px;
}

.legal-page p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.87);
  margin: 0 0 10px;
}

.legal-page ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-page li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.87);
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------- */

.contact-page .wrap {
  max-width: 560px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.contact-page h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.contact-page .intro {
  margin: 0 0 24px;
  line-height: 1.5;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbd2e0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.field .error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
}

.form-error {
  color: #d32f2f;
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-success {
  text-align: center;
  padding: 24px 0;
}

.contact-success svg {
  width: 56px;
  height: 56px;
  color: var(--teal);
  margin: 0 auto 16px;
}

.contact-success h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
