/* ============================================================
   Verdaic — public site styles
   Premium sustainability SaaS. Nature-led hero, spacious layout.
   ============================================================ */

:root {
  /* Brand palette */
  --navy:       #0f2437;
  --green:      #16883a;
  --green-dark: #006b2c;
  --green-soft: #eaf7ed;
  --text-muted: #52616f;
  --border:     #dfe8e2;
  --background:  #ffffff;

  /* Legacy aliases (kept so command.css keeps working) */
  --green-900: #072513;
  --green-800: #0b3a1e;
  --green-700: var(--green-dark);
  --green-600: var(--green);
  --green-500: #23a24c;
  --green-400: #5fc07f;
  --green-100: var(--green-soft);
  --green-050: #f3faf5;
  --ink:      var(--navy);
  --ink-2:    #2b3f50;
  --muted:    var(--text-muted);
  --line:     var(--border);
  --bg:       #ffffff;
  --bg-tint:  #f5faf6;
  --white:    #ffffff;

  /* Site imagery (local only — no external requests) */
  --hero-photo: url('../img/hero-image.png');
  --cta-photo:  url('../img/leaf-footer.png');

  --radius:    22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(15,36,55,.05), 0 3px 10px rgba(15,36,55,.05);
  --shadow-md: 0 12px 34px rgba(15,36,55,.10);
  --shadow-lg: 0 24px 60px rgba(15,36,55,.16);
  --shadow-xl: 0 34px 80px rgba(15,36,55,.22);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--background);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: clip; /* guard against any accidental horizontal scroll */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.022em; margin: 0; color: var(--navy); }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 17px 28px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(22,136,58,.45); outline-offset: 2px; }
a:focus-visible { outline: 2px solid rgba(22,136,58,.55); outline-offset: 3px; border-radius: 4px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(22,136,58,.30);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(22,136,58,.40); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green-400); }
.btn-ghost .play, .btn-light .play {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft);
  display: inline-flex; align-items: center; justify-content: center; color: var(--green);
}
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.30); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.20); }
.btn-light .play { background: rgba(255,255,255,.22); color: #fff; }
.btn-arrow svg { transition: transform .16s ease; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ---------- Top nav (sits over the hero) ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 116px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand .mark { width: 58px; height: 58px; flex: none; display: block; }
.brand .word { display: flex; flex-direction: column; }
.brand .word b {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800; font-size: 32px; letter-spacing: 0.08em;
  color: #071f38; text-transform: uppercase;
}
.brand .word small {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600; font-size: 11px; letter-spacing: 0.14em;
  color: #071f38; text-transform: uppercase; margin-top: 4px;
}
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 600; color: var(--navy);
  background: #fff; padding: 14px 24px; border-radius: 999px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,136,58,.18); }
.nav-links { display: none; } /* removed per design */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 828px; display: flex; align-items: center; padding: 182px 0 120px; isolation: isolate; }
.hero > .container { width: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(93deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 24%, rgba(255,255,255,.58) 46%, rgba(255,255,255,.18) 72%, rgba(255,255,255,0) 100%),
    var(--hero-photo);
  background-size: cover; background-position: center 22%;
  background-color: var(--green-soft);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--background));
}
.hero-grid { display: grid; grid-template-columns: 1.16fr 1.3fr; gap: 44px; align-items: center; }
.hero-copy { max-width: 660px; }
.hero h1 { font-size: clamp(47px, 4.5vw, 63px); font-weight: 800; margin: 24px 0 0; letter-spacing: -0.038em; line-height: 1.02; }
.hero h1 .accent { color: var(--green); }
.hero-sub { font-size: 20px; color: var(--text-muted); margin-top: 28px; max-width: 30em; line-height: 1.72; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 50px; }
.hero-cta .btn { padding: 19px 34px; font-size: 16.5px; }
.social-proof { display: flex; align-items: center; gap: 16px; margin-top: 46px; }
.avatars { display: flex; }
.avatars img {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; object-fit: cover;
  margin-left: -14px; box-shadow: var(--shadow-sm);
}
.avatars img:first-child { margin-left: 0; }
.social-proof p { font-size: 15.5px; color: var(--text-muted); }
.social-proof b { color: var(--navy); font-weight: 700; }

/* ---------- Dashboard preview ---------- */
.preview {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 34px 90px rgba(15,36,55,.20); overflow: hidden; width: 100%;
}
@media (min-width: 1100px) {
  /* larger + nudged toward the text + lower; sized to stay visible at ~1440 */
  .preview { width: 118%; margin-left: -7%; margin-top: 30px; }
}
@media (min-width: 1560px) {
  .preview { width: 134%; } /* dominate the right half on wide screens */
}
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.preview-head .p-title { display: flex; align-items: center; gap: 9px; font-family: "Montserrat", Arial, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .08em; color: #071f38; }
.preview-head .p-title .mark { width: 22px; height: 22px; }
.preview-head .p-tools { display: flex; gap: 9px; align-items: center; }
.preview-head .p-pill { font-size: 11.5px; color: var(--muted); border: 1px solid var(--border); padding: 6px 11px; border-radius: 9px; }
.preview-head .p-export { font-size: 11.5px; color: #fff; background: linear-gradient(135deg,var(--green),var(--green-dark)); padding: 6px 12px; border-radius: 9px; font-weight: 600; }
.preview-body { display: grid; grid-template-columns: 190px 1fr; }
.p-side { border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; background: #fcfefc; }
.p-side a { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--muted); padding: 11px 13px; border-radius: 9px; }
.p-side a.active { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.p-side a .ic { width: 15px; height: 15px; opacity: .75; }
.p-main { padding: 27px; }
.p-main h4 { font-size: 18px; margin-bottom: 3px; }
.p-main .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.p-stat { border: 1px solid var(--border); border-radius: 12px; padding: 15px; }
.p-stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.p-stat .val { font-size: 22px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.p-stat .chg { font-size: 10px; color: var(--green); margin-top: 4px; font-weight: 600; }
.p-stat.ring { display: flex; align-items: center; justify-content: space-between; }
.p-charts { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 11px; margin-top: 12px; }
.p-card { border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.p-card .c-lbl { font-size: 10.5px; color: var(--muted); margin-bottom: 9px; font-weight: 500; display: flex; justify-content: space-between; }
.p-bars { display: flex; align-items: flex-end; gap: 4px; height: 104px; }
.p-bars span { flex: 1; background: linear-gradient(180deg, var(--green-400), var(--green)); border-radius: 3px 3px 0 0; opacity: .92; }
.p-donut { display: flex; align-items: center; justify-content: center; height: 104px; }
.p-impact { display: flex; flex-direction: column; gap: 9px; }
.p-impact .row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.p-impact .row .k { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.p-impact .row .k svg { width: 13px; height: 13px; color: var(--green); }
.p-impact .row .v { font-weight: 700; color: var(--navy); }

.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Section shell ---------- */
.section { padding: 120px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-top: 16px; letter-spacing: -.025em; }
.section-head p { color: var(--text-muted); margin-top: 20px; font-size: 18px; line-height: 1.7; }

/* ---------- Journey ---------- */
.journey { position: relative; }
.section.journey { padding: 74px 0 100px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; max-width: 1330px; margin: 0 auto; }
.step { text-align: center; position: relative; }
.step .icon {
  width: 106px; height: 106px; margin: 0 auto 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.step .icon img { width: 100%; height: 100%; display: block; }
.step .n { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .05em; text-transform: uppercase; }
.step h3 { font-size: 22px; margin: 9px 0 13px; }
.step p { font-size: 15.5px; color: var(--text-muted); line-height: 1.66; }
.steps .connector { position: absolute; top: 53px; left: 60%; width: 80%; height: 0; border-top: 2px dashed #8fcaa4; z-index: 0; }
.step:last-child .connector { display: none; }

/* ---------- Waitlist band (horizontal) ---------- */
.waitlist-band {
  background: linear-gradient(135deg, #ffffff 0%, var(--green-soft) 100%);
  border-radius: 26px; border: 1.5px solid #cfe0d5; padding: 62px 64px;
  box-shadow: var(--shadow-md);
}
.waitlist-grid { display: grid; grid-template-columns: .82fr 1.55fr; gap: 52px; align-items: center; }
.waitlist-copy .w-ic { width: 96px; height: 96px; margin-bottom: 22px; display: block; }
.waitlist-copy h2 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.waitlist-copy p { color: var(--text-muted); margin-top: 15px; font-size: 16.5px; line-height: 1.65; }
.wl-form .row { display: grid; gap: 13px; align-items: stretch; }
.wl-form .row-names { grid-template-columns: 1fr 1fr; margin-bottom: 13px; }
.wl-form .row-email { grid-template-columns: 1fr auto; }
.wl-form .row .btn { height: 100%; min-width: 200px; }
.wl-form input[type=text], .wl-form input[type=email] {
  width: 100%; height: 55px; padding: 0 18px; border: 1px solid var(--border); border-radius: 13px;
  font: inherit; font-size: 15.5px; background: #fff; color: var(--navy);
}
.wl-form input::placeholder { color: #9aa8a0; }
.wl-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(22,136,58,.14); }
.wl-checks { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; }
.wl-check { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.wl-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.wl-check .box {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #c7d3cb; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all .15s ease; background: #fff;
}
.wl-check input:checked + .box { background: var(--green); border-color: var(--green); }
.wl-check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(22,136,58,.2); }
.wl-check .box svg { opacity: 0; transform: scale(.6); transition: all .15s ease; }
.wl-check input:checked + .box svg { opacity: 1; transform: scale(1); }
.wl-note { font-size: 13px; color: #46555d; margin-top: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 17px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; display: none; }
.form-alert.ok  { display: block; background: var(--green-soft); color: var(--green-dark); }
.form-alert.err { display: block; background: #fdecec; color: #a12626; }

/* ---------- Value blocks (3 across, dividers) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value { padding: 0 44px; position: relative; }
.value:not(:last-child)::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: #c5d6cb; }
.value:first-child { padding-left: 0; }
.value:last-child { padding-right: 0; }
.value .v-ic { width: 80px; height: 80px; margin-bottom: 26px; }
.value .v-ic img { width: 100%; height: 100%; display: block; }
.value h3 { font-size: 21px; margin-bottom: 13px; }
.value p { font-size: 15.5px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Final CTA (image banner) ---------- */
.final-cta { position: relative; overflow: hidden; border-radius: 26px; color: #fff; padding: 56px 76px; box-shadow: var(--shadow-md); background-color: #0b3a1e; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-color: #0b3a1e;
  background-image:
    linear-gradient(100deg, rgba(7,37,19,.32) 0%, rgba(9,46,24,.58) 48%, rgba(7,37,19,.84) 100%),
    var(--cta-photo);
  background-size: cover; background-position: center;
}
.final-cta .inner { position: relative; z-index: 1; max-width: 620px; margin-left: auto; margin-right: 130px; text-align: right; }
.final-cta h2 { font-size: clamp(34px, 4.2vw, 48px); font-weight: 800; color: #fff; letter-spacing: -.025em; }
.final-cta p { color: rgba(255,255,255,.88); margin-top: 18px; font-size: 18px; line-height: 1.62; }
.final-cta .cta-row { display: flex; gap: 16px; justify-content: flex-end; margin-top: 32px; flex-wrap: wrap; }
.final-cta .cta-row .btn { padding: 18px 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 58px 0 34px; position: relative; overflow: hidden; }
.footer .globe { position: absolute; right: -50px; top: auto; bottom: -60px; width: 330px; opacity: .5; pointer-events: none; z-index: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 56px; position: relative; z-index: 1; }
.footer .f-brand .brand .mark { width: 54px; height: 54px; }
.footer .f-brand .brand .word b { font-size: 30px; }
.footer .f-brand p { color: var(--text-muted); font-size: 15.5px; margin-top: 22px; max-width: 25em; line-height: 1.68; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin-bottom: 20px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer ul a { font-size: 15.5px; color: var(--text-muted); }
.footer ul a:hover { color: var(--green); }
.footer .contact li { display: flex; align-items: center; gap: 11px; font-size: 15.5px; color: var(--text-muted); margin-bottom: 13px; }
.footer .contact li svg { width: 17px; height: 17px; color: var(--green); flex: none; }
.socials { display: flex; gap: 11px; margin-top: 26px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); background: #fff; }
.socials a:hover { color: var(--green); border-color: var(--green-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 14px; color: #46555d; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--green); }
.footer-bottom .legal { display: flex; gap: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .hero { padding: 130px 0 90px; min-height: 0; display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(44px, 6.4vw, 58px); }
  .preview { max-width: 720px; margin: 0 auto; }
  .waitlist-grid { grid-template-columns: 1fr; gap: 32px; }
  .wl-form .row-email { grid-template-columns: 1fr; }
  .wl-form .row-email .btn { height: 55px; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .steps .connector { display: none; }
  /* Value cards become compact icon-left rows */
  .values { grid-template-columns: 1fr; gap: 28px; }
  .value {
    display: grid; grid-template-columns: 64px 1fr; gap: 6px 20px; align-items: start;
    padding: 0 0 28px; border-bottom: 1px solid var(--border);
  }
  .value::after { display: none; }
  .value:last-child { padding-bottom: 0; border-bottom: none; }
  .value .v-ic { width: 64px; height: 64px; margin-bottom: 0; grid-row: 1 / 3; }
  .value h3 { margin: 4px 0 0; font-size: 19px; }
  .value p { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer .f-brand { grid-column: 1 / -1; }
  .footer .globe { display: none; }
  .final-cta .inner { text-align: left; margin-left: 0; margin-right: 0; }
  .final-cta .cta-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  /* Nav: compact lockup, pill never wraps, tagline hidden */
  .nav-inner { height: 78px; }
  .brand { gap: 12px; }
  .brand .mark { width: 44px; height: 44px; }
  .brand .word b { font-size: 21px; }
  .brand .word small { display: none; }
  .badge { padding: 10px 16px; font-size: 13px; white-space: nowrap; gap: 8px; }

  .hero { padding: 112px 0 64px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17.5px; }
  .hero-cta { margin-top: 36px; }
  .hero-cta .btn, .final-cta .cta-row .btn { flex: 1 1 auto; }

  /* Dashboard mockup: drop the sidebar, let the content breathe */
  .preview-body { grid-template-columns: 1fr; }
  .p-side { display: none; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .p-charts { grid-template-columns: 1fr; }

  /* Journey: single centred column reads better on phones */
  .steps { grid-template-columns: 1fr; gap: 42px; }
  .step { max-width: 360px; margin: 0 auto; }
  .step .icon { width: 92px; height: 92px; margin-bottom: 20px; }

  /* Waitlist */
  .waitlist-band { padding: 30px 22px; }
  .waitlist-copy .w-ic { width: 72px; height: 72px; }
  .waitlist-copy h2 { font-size: 28px; }
  .wl-form .row { grid-template-columns: 1fr; }
  .wl-checks { gap: 12px; }

  .final-cta { padding: 54px 26px; }

  /* Footer: paired link columns, contact full-width, stacked bottom bar */
  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .footer .f-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 36px; }
  .footer-bottom .legal { gap: 20px; flex-wrap: wrap; }
}
