/* ==========================================================
   Plantr — landing page styles
   ========================================================== */
:root {
  --green-900: #0d241a;
  --green-800: #133326;
  --green-700: #1b4433;
  --green-600: #24563f;
  --gold: #e3a53c;
  --gold-600: #cf8f26;
  --gold-100: #fbf0db;
  --cream: #f8f5ee;
  --cream-2: #f2ede2;
  --ink: #142019;
  --muted: #5b665f;
  --line: #e3ddd0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 36, 26, .10);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 48px); }
.gold { color: var(--gold); }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.mobile-only { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--font);
  border: 0; border-radius: 8px; cursor: pointer;
  padding: .95em 1.5em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-gold { background: var(--gold); color: var(--green-900); box-shadow: 0 6px 18px rgba(227,165,60,.3); }
.btn-gold:hover { background: #ecb352; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }
.btn-sm { font-size: .9rem; padding: .75em 1.1em; }
.btn-lg { font-size: 1.1rem; padding: 1.05em 1.7em; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 22px 0;
}
.site-header.scrolled { background: rgba(13, 36, 26, .94); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.2); padding: 12px 0; }
.nav { display: flex; align-items: center; gap: 40px; color: var(--white); }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: .95rem; }
.nav-links a { opacity: .9; transition: opacity .15s, color .15s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-login { font-weight: 500; font-size: .95rem; }
.nav-login:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  padding: 150px 0 70px;
  background: var(--green-900);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* Drop a real event photo at assets/hero.jpg and it will appear behind the gradients */
  background:
    linear-gradient(90deg, rgba(10,22,16,.96) 0%, rgba(10,22,16,.82) 38%, rgba(10,22,16,.35) 70%, rgba(10,22,16,.55) 100%),
    linear-gradient(0deg, rgba(10,22,16,.9) 0%, rgba(10,22,16,0) 35%),
    url("assets/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 70% 20%, #3a2a12 0%, #17241b 45%, #0b1711 100%);
}
.bokeh { position: absolute; border-radius: 50%; filter: blur(2px); background: radial-gradient(circle, rgba(255,196,110,.9), rgba(255,170,60,0) 70%); animation: twinkle 6s ease-in-out infinite; }
.b1 { width: 120px; height: 120px; left: 58%; top: 8%; }
.b2 { width: 70px; height: 70px; left: 72%; top: 20%; animation-delay: 1s; }
.b3 { width: 160px; height: 160px; left: 84%; top: 4%; opacity: .6; animation-delay: 2s; }
.b4 { width: 50px; height: 50px; left: 64%; top: 32%; animation-delay: 3s; }
.b5 { width: 90px; height: 90px; left: 92%; top: 30%; animation-delay: 1.5s; }
.b6 { width: 60px; height: 60px; left: 50%; top: 2%; animation-delay: 2.5s; opacity: .5; }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(1);} 50% { opacity: .8; transform: scale(1.08);} }
.hero-leaf { position: absolute; color: #2d5a3a; opacity: .7; fill: currentColor; }
.hero-leaf-l { width: 180px; height: 240px; left: -40px; bottom: 30px; transform: rotate(-20deg); }

.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .78rem; font-weight: 600; margin-bottom: 18px; opacity: .9; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .gold { display: block; }
.hero-sub { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 600; margin: 14px 0 18px; }
.hero-lead { max-width: 470px; font-size: 1.05rem; opacity: .88; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 38px; font-size: .9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; opacity: .92; }
.hero-points .ico { width: 20px; height: 20px; }

/* Laptop mockup */
.hero-visual { position: relative; padding: 20px 40px 30px 0; }
.laptop { position: relative; transform: perspective(1600px) rotateY(-9deg) rotateX(2deg); transform-origin: right center; filter: drop-shadow(var(--shadow-lg)); }
.laptop-screen { background: #0c0c0c; border-radius: 14px 14px 4px 4px; padding: 12px; border: 1px solid #333; }
.laptop-base { height: 16px; margin: 0 -6%; background: linear-gradient(#cfd2d4, #8d9195); border-radius: 0 0 14px 14px; position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; background: #a8acaf; border-radius: 0 0 6px 6px; }

.laptop-screen img { width: 100%; height: auto; border-radius: 4px; }
.app-logo { display: flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13px; color: #fff; margin-bottom: 14px; letter-spacing: -.03em; }
.app-logo svg { width: 12px; height: 12px; color: var(--gold); }
.app-logo.dark { color: var(--green-800); }

/* Phone mockup */
.phone {
  position: absolute; right: 0; bottom: 0; width: 30%; min-width: 150px;
  background: #111; border-radius: 26px; padding: 7px; box-shadow: var(--shadow-lg); border: 1px solid #444;
}
.phone-notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 34%; height: 14px; background: #111; border-radius: 10px; z-index: 2; }
.phone-screen { background: #fff; border-radius: 20px; overflow: hidden; padding-top: 26px; }
.phone-screen img { width: 100%; height: auto; }

/* ---------- Problem ---------- */
.problem { position: relative; padding: 70px 0; background: var(--cream); overflow: hidden; }
.problem-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 60px; align-items: center; }
.problem-copy { display: grid; gap: 30px; }
.problem h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; color: var(--green-800); }
.problem h2 .gold { display: block; margin-top: 6px; }
.problem p { font-size: 1.08rem; color: var(--muted); padding-left: 32px; border-left: 2px solid var(--gold); max-width: 440px; }
.problem-leaf { position: absolute; right: -30px; top: -20px; width: 170px; height: 220px; fill: #4f7a4a; color: #4f7a4a; opacity: .55; transform: rotate(35deg); }

/* ---------- Graphics ---------- */
.graphic { margin: 0; }
.graphic img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.graphic-problem { width: 100%; }
.graphic-map { max-width: 600px; margin: 50px auto 0; text-align: center; }
.graphic-map a { display: block; border-radius: 18px; transition: transform .2s ease; }
.graphic-map a:hover { transform: translateY(-3px); }
.graphic figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.tap-hint { display: none; }
@media (hover: none) { .tap-hint { display: inline; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--green-800); }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Carousel ---------- */
.action { padding: 60px 0 50px; background: linear-gradient(var(--white), var(--cream)); }
.carousel { position: relative; display: flex; align-items: center; gap: 14px; }
.car-track {
  flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 14px; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-800); color: #fff; display: grid; place-items: center;
  transition: background .15s, opacity .15s;
}
.car-btn:hover { background: var(--green-600); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn .ico { width: 20px; height: 20px; }
.slide {
  scroll-snap-align: start; position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 300px; padding: 24px 20px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow);
}
.slide h3 { font-size: 1.25rem; font-weight: 700; max-width: 240px; position: relative; z-index: 1; }
.slide-dark { background: radial-gradient(circle at 80% 0%, var(--green-600), var(--green-800) 60%); color: #fff; }
.slide-light { background: linear-gradient(160deg, #fffaf0, #f3ead8); color: var(--green-800); }
.slide-leaf { position: absolute; right: -30px; top: -10px; width: 120px; height: 160px; color: #3f7a4f; fill: #3f7a4f; opacity: .6; transform: rotate(20deg); }
.slide p { font-size: .9rem; opacity: .8; margin-top: -10px; position: relative; z-index: 1; }
.shot {
  margin: auto -20px -24px 0; position: relative; z-index: 1;
  height: 190px; overflow: hidden; border-radius: 10px 0 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18); background: #fff;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.car-dots button { width: 22px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #ddd5c4; cursor: pointer; transition: background .2s, width .2s; }
.car-dots button[aria-selected="true"] { background: var(--gold); width: 30px; }

/* ---------- Features ---------- */
.features { padding: 50px 0 70px; background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 30px 18px 26px; text-align: center;
  box-shadow: 0 4px 14px rgba(13,36,26,.05); border: 1px solid #efe9dc;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-ico { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 18px; }
.feature h3 { font-size: 1rem; font-weight: 700; color: var(--green-800); margin-bottom: 12px; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.feature p { font-size: .85rem; color: var(--muted); }

/* ---------- How it works ---------- */
.how { position: relative; background: var(--green-800); color: #fff; padding: 60px 0 70px; overflow: hidden; }
.how::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 0%, rgba(255,255,255,.06), transparent 50%); pointer-events: none; }
.anchor-offset { position: absolute; top: 0; }
.how h2 { text-align: center; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 44px; }
.how .container { position: relative; }
.steps { display: flex; align-items: flex-start; gap: 18px; max-width: 880px; }
.step { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 14px; align-items: center; }
.step > div { grid-column: 1 / -1; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--green-900); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.step-ico { width: 40px; height: 40px; justify-self: start; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: .9rem; opacity: .8; }
.step-arrow { color: rgba(255,255,255,.6); padding-top: 52px; }
.step-arrow .ico { width: 24px; height: 24px; }
.free-badge { position: absolute; right: 0; top: -36px; width: 220px; height: 120px; color: var(--gold); display: grid; place-items: center; transform: rotate(-10deg); }
.free-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.free-badge span { font-family: var(--script); font-size: 2.2rem; line-height: .95; text-align: center; }

/* ---------- Join ---------- */
.join { position: relative; padding: 80px 0; background: var(--cream); overflow: hidden; }
.join-leaf { position: absolute; left: -70px; top: 140px; width: 170px; height: 230px; color: #4f7a4a; fill: #4f7a4a; opacity: .5; transform: rotate(-25deg); }
.join-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; position: relative; }
.join-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--green-800); margin-bottom: 14px; }
.join-lead { font-size: 1.15rem; color: var(--muted); max-width: 420px; margin-bottom: 28px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-size: 1rem; padding: 7px 0; }
.ticks i { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; }
.ticks i svg { width: 15px; height: 15px; }

.form-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: var(--shadow); border: 1px solid #efe9dc; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.field b { color: #c0392b; font-weight: 600; }
.field-full { grid-column: 1 / -1; }
.field input, .field select {
  font: 500 .95rem var(--font); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; padding: .8em .9em; background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23142019' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right .9em center / 16px no-repeat; padding-right: 2.5em; }
.field select:invalid { color: #9aa29d; }
.field input::placeholder { color: #a7ada9; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,165,60,.18); }
.field .err { display: none; color: #c0392b; font-weight: 500; font-size: .78rem; }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }
.form-error { text-align: center; color: #c0392b; font-size: .88rem; margin-top: 10px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.form-success { text-align: center; padding: 30px 10px; }
.success-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.success-tick svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; color: var(--green-800); margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 380px; margin: 0 auto; }

/* ---------- FAQs ---------- */
.faqs { padding: 70px 0 90px; background: var(--white); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; color: var(--green-800); position: relative; font-size: 1.05rem; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 500; color: var(--gold); transition: transform .2s; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { padding: 0 0 20px; color: var(--muted); }
.faqs details a { color: var(--gold-600); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #dfe8e2; padding: 34px 0; }
.footer-row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; font-size: .9rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.2); }
.footer-mail .ico { color: var(--gold); width: 20px; height: 20px; }
.footer-mail:hover, .footer-right a:hover { color: var(--gold); }
.footer-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.footer-right span { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bokeh { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .car-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .free-badge { position: relative; top: auto; right: auto; margin: 30px auto 0; }
  .steps { margin-inline: auto; }
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: 0 0 auto; top: 0; padding: 90px 24px 30px; flex-direction: column; gap: 6px;
    background: var(--green-900); font-size: 1.15rem; transform: translateY(-100%); transition: transform .3s ease; z-index: -1;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .nav-actions { gap: 14px; }
  .nav-actions > .nav-login { display: none; }
  .mobile-only { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .problem-grid, .join-grid { grid-template-columns: 1fr; gap: 30px; }
  .graphic-problem { max-width: 480px; margin-inline: auto; }
  .problem p { padding-left: 20px; }
  .steps { flex-direction: column; gap: 28px; max-width: 420px; }
  .step-arrow { display: none; }
}

@media (max-width: 640px) {
  .container, .container.narrow { width: calc(100% - 32px); }
  .nav-actions .btn-sm { display: none; }
  .logo img { height: 38px; }
  .hero-visual { padding: 0 20px 20px 0; }
  .laptop { transform: none; }
  .phone { min-width: 0; width: 34%; border-radius: 18px; padding: 5px; }
  .phone-screen { border-radius: 14px; padding-top: 18px; }
  .phone-notch { top: 8px; height: 10px; }
  .problem-leaf { top: -90px; right: -70px; opacity: .3; }
  .car-btn { display: none; }
  .car-track { grid-auto-columns: 82%; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 22px 14px; }
  .form-card { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-mail { padding-left: 0; border: 0; }
  .footer-right { margin-left: 0; }
}
