/* ============================================================
   FLORY landing page. Tokens mirror the app's design system
   (app/flory/src/styles.scss).
   ============================================================ */

:root {
  --flory-green: #508050;
  --flory-green-dark: #3d6135;
  --flory-green-deep: #2a4a26;

  --leaf-light: #b6d68e;
  --leaf: #70a040;

  --terracotta: #d08050;

  --cream: #faf7f0;
  --cream-2: #f2ecdd;
  --paper: #ffffff;
  --line: #e8e3d6;
  --line-strong: #d6cfb9;

  --ink-1: #1f2a1a;
  --ink-2: #4a5a45;
  --ink-3: #7a8775;

  --bg-brand-soft: #e6efd9;

  --status-water: #4a90c2;
  --status-water-bg: #e3eff7;
  --status-sun-bg: #fbeed4;
  --status-pest-bg: #f7dfd6;
  --status-repot-bg: #faead9;

  --font-script: 'Pacifico', 'Brush Script MT', cursive;
  --font-sans: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-card: 0 2px 10px rgba(31, 42, 26, 0.07);
  --shadow-pop: 0 14px 40px rgba(31, 42, 26, 0.16);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--cream);
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--flory-green-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--flory-green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--flory-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(80, 128, 80, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-disabled { cursor: default; opacity: 0.7; }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 15px 34px; font-size: 19px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-mark { width: 30px; height: auto; }
.brand-name {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--flory-green-dark);
}
.header-nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.header-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 15px;
}
.header-nav a:hover { color: var(--flory-green-dark); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--paper);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-3);
  padding: 6px 12px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--flory-green);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 .script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--flory-green);
  font-size: 1.08em;
}
.hero-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-cta-note { color: var(--ink-3); font-size: 14px; }

/* Hero collage — loose app components, no phone frame */
.hero-collage {
  position: relative;
  height: 440px;
}
.collage-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
}
.collage-plant {
  top: 2%;
  left: 6%;
  width: 200px;
  transform: rotate(-3deg);
  overflow: hidden;
}
.collage-plant img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--bg-brand-soft);
}
.collage-plant-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.collage-plant-body strong { font-size: 17px; }
.collage-latin {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-3);
}
.collage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.collage-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-water { background: var(--status-water-bg); color: var(--status-water); }
.badge-sun { background: var(--status-sun-bg); color: #a97514; }
.collage-task {
  top: 10%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  transform: rotate(2deg);
  animation: collage-float 7s ease-in-out infinite;
}
.collage-task img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: var(--bg-brand-soft);
  border-radius: var(--r-sm);
}
.collage-streak {
  top: 42%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--flory-green-deep);
  color: #fff;
  border: 0;
  transform: rotate(-2deg);
  animation: collage-float 8s ease-in-out 1.2s infinite;
}
.collage-streak-flame { font-size: 22px; }
.collage-stat {
  bottom: 6%;
  right: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 18px;
  transform: rotate(2.5deg);
}
.collage-stat-icon { font-size: 18px; }
.collage-stat-value { font-weight: 800; font-size: 16px; }
.collage-stat-label { font-size: 11px; color: var(--ink-3); }
.collage-pest {
  bottom: 12%;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  transform: rotate(-1.5deg);
  animation: collage-float 9s ease-in-out 0.6s infinite;
}
.collage-pest-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--status-pest-bg);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.collage-pest-sub { font-size: 12px; color: var(--terracotta); font-weight: 700; }
@keyframes collage-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .collage-card { animation: none; }
}

/* Phone mockup */
.phone {
  width: min(320px, 86vw);
  margin: 0 auto;
  background: var(--flory-green-deep);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-pop);
}
.phone-screen {
  background: var(--cream);
  border-radius: 32px;
  padding: 20px 16px;
}
.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.phone-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flory-green);
}
.phone-title { font-weight: 800; font-size: 22px; }
.phone-bell { font-size: 16px; opacity: 0.7; }
.mock-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--flory-green-deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.mock-streak-badge {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.mock-streak-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.mock-streak-text strong { font-size: 15px; }
.mock-streak-text span { opacity: 0.82; font-size: 11.5px; line-height: 1.3; }
.mock-task {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 10px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.mock-task img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  background: var(--bg-brand-soft);
  border-radius: var(--r-sm);
}
.mock-task-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 2px;
}
.due { font-size: 12px; color: var(--ink-3); }
.due-water { color: var(--status-water); }
.due-fert { color: var(--flory-green-dark); }
.mock-allset { font-size: 12px; font-weight: 700; color: var(--flory-green); }
.mock-task-calm { box-shadow: none; }
.mock-check {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-brand-soft);
  color: var(--flory-green-dark);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.mock-section {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 12px 2px 8px;
}

/* ---------- App tour ---------- */
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
}
.tour-row:first-of-type { margin-top: 48px; }
.tour-row-flip .tour-copy { order: 2; }
.tour-row-flip .tour-visual { order: 1; }
.tour-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flory-green);
  margin-bottom: 10px;
}
.tour-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
}
.tour-copy p {
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0;
}
.tour-visual .phone { width: min(300px, 82vw); }

/* Tour mocks: plant detail */
.mock-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.mock-hero img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--bg-brand-soft);
}
.mock-detail-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 12px;
}
.mock-detail-name strong { font-size: 20px; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 4px;
}
.mock-stat span { font-size: 15px; }
.mock-stat b { font-size: 13px; }
.mock-stat i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
}
.mock-history-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--status-water-bg);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.mock-task-calm .mock-history-icon + .mock-task-text strong { font-size: 14px; }

/* Tour mocks: identify */
.mock-viewfinder {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 4px;
}
.mock-viewfinder img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--bg-brand-soft);
}
.vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  opacity: 0.9;
}
.vf-tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.vf-tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.vf-bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.vf-br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.mock-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 4px;
}
.mock-match .mock-task-text strong { font-size: 14px; font-style: italic; }
.mock-match-pct {
  font-weight: 800;
  color: var(--flory-green-dark);
}
.mock-match-alt { opacity: 0.55; }
.mock-match-alt .mock-match-pct { color: var(--ink-3); }
.mock-match-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-brand-soft);
  overflow: hidden;
}
.mock-match-bar i {
  display: block;
  height: 100%;
  background: var(--flory-green);
  border-radius: var(--r-pill);
}
.mock-cta {
  margin-top: 14px;
  text-align: center;
  background: var(--flory-green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r-pill);
  padding: 10px;
}

/* Tour mocks: pest check */
.mock-diagnosis {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--status-pest-bg);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.mock-diagnosis-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
}
.mock-diagnosis .mock-task-text strong { font-size: 15px; }
.mock-treat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 2px;
}
.mock-treat span {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-brand-soft);
  color: var(--flory-green-dark);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.mock-treat p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}
.section-alt {
  max-width: none;
  background: var(--cream-2);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 auto 12px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.feature-card h3 { font-size: 19px; margin: 14px 0 8px; }
.feature-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  font-size: 22px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.step img {
  height: 110px;
  object-fit: contain;
  margin: 6px auto 14px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }
.step-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--flory-green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.price-card-premium {
  border: 2px solid var(--flory-green);
  background: linear-gradient(180deg, var(--bg-brand-soft), var(--paper) 45%);
}
.price-card h3 { font-size: 22px; }
.price-tag { color: var(--ink-2); font-weight: 700; min-height: 2.4em; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.price-card li {
  padding: 7px 0 7px 28px;
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--leaf);
  font-weight: 800;
}
.price-card .btn { text-align: center; }
.soon-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

/* FAQ */
.faq-list { max-width: 720px; }
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 20px;
  margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--flory-green);
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* CTA band */
.cta-band {
  text-align: center;
  padding-top: 40px;
}
.cta-band h2 {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--flory-green-dark);
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-2);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  max-width: none;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--flory-green-dark);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  margin: 0 0 0 auto;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-page h1 { font-size: 34px; }
.legal-page h2 { font-size: 20px; margin-top: 1.6em; }
.legal-todo {
  background: var(--status-sun-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-collage {
    margin-top: 32px;
    height: 380px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .tour-row,
  .tour-row-flip {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .tour-row-flip .tour-copy { order: 1; }
  .tour-row-flip .tour-visual { order: 2; }
  .tour-copy p { margin-inline: auto; }
  .header-nav { display: none; }
}
@media (max-width: 560px) {
  /* Collage becomes a static mosaic — absolute positions collide on
     narrow screens. */
  .hero-collage {
    height: auto;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: start;
    gap: 14px;
  }
  .collage-card {
    position: static;
    animation: none;
  }
  .collage-plant { grid-row: span 3; width: 180px; }
  .collage-plant img { height: 110px; }
  .collage-streak strong { white-space: nowrap; }
}
@media (max-width: 480px) {
  .footer-copy { margin-left: 0; }
  .site-header { gap: 12px; padding-inline: 14px; }
  .header-actions { gap: 8px; }
  .btn-sm { padding: 8px 12px; font-size: 14px; }
}
