/* =========================================================
   Jammitt LLC — site styles
   Mobile-first, modern, fast.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --green-900: #122a10;
  --green-800: #1f3d1d;
  --green-700: #2d5a2d;
  --green-600: #3d7a3a;
  --green-100: #e9f0e7;
  --green-50:  #f3f7f1;

  --amber-500: #f5b800;
  --amber-600: #e0a000;

  /* Neutral */
  --ink-900: #0e1410;
  --ink-700: #2c3530;
  --ink-500: #5b675f;
  --ink-300: #aab3ac;
  --paper:   #ffffff;
  --paper-2: #f7f8f6;
  --line:    #e6e8e3;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset-ish ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
p  { margin: 0 0 1em; }
em { font-style: italic; color: var(--green-700); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green-800);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(31,61,29,.18); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--green-800); --fg: #fff; }
.btn-primary:hover { --bg: var(--green-700); }
.btn-ghost {
  --bg: transparent;
  --fg: var(--green-800);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--green-50); }
.btn-sm  { padding: .55em 1.05em; font-size: .9rem; }
.btn-lg  { padding: 1em 1.7em; font-size: 1.05rem; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: .35em .75em;
  border-radius: 999px;
  margin-bottom: 1em;
}
.eyebrow-light {
  color: var(--amber-500);
  background: rgba(245,184,0,.12);
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-sub  { color: var(--ink-500); font-size: 1.1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 800; letter-spacing: -.01em; font-size: 1.15rem;
}
.brand-mark { display: inline-flex; }
.primary-nav {
  display: flex; align-items: center; gap: 1.6rem;
}
.primary-nav a {
  font-weight: 500; color: var(--ink-700); font-size: .98rem;
  position: relative; padding: .25em 0;
}
.primary-nav a:not(.btn):hover { color: var(--green-800); }
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--green-800); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:not(.btn):hover::after { transform: scaleX(1); }
.primary-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  width: 40px; height: 40px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink-900); margin: 4px auto;
  transition: transform .25s var(--ease), opacity .2s;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav a {
    padding: 14px var(--gutter); border-top: 1px solid var(--line);
  }
  .primary-nav a:first-child { border-top: 0; }
  .primary-nav .btn {
    margin: 12px var(--gutter); border-radius: 999px;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245,184,0,.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 40%, rgba(31,61,29,.08), transparent 60%),
    var(--paper);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lead {
  font-size: 1.18rem; color: var(--ink-700); max-width: 56ch;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6rem 0 2rem;
}
.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.05rem; color: var(--green-800); font-weight: 700;
  letter-spacing: -.01em;
}
.hero-stats span { color: var(--ink-500); font-size: .92rem; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-glow {
  position: absolute; inset: -10% -10% -20% -10%;
  background: radial-gradient(closest-side, rgba(61,122,58,.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-12px) scale(1.04); }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 270px;
  aspect-ratio: 9 / 19.5;
  background: #0e1410;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(20, 30, 22, .35),
    0 8px 22px -10px rgba(20, 30, 22, .25),
    inset 0 0 0 2px #1c211d;
  z-index: 1;
  transition: transform .5s var(--ease);
}
.phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 28px;
  background: #f4f6f1;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; background: #0e1410; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-hero {
  width: 290px;
  transform: rotate(-2deg);
}
.phone-hero:hover { transform: rotate(-1deg) translateY(-4px); }

/* ---------- Strip ---------- */
.strip {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) 0;
}
.strip-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(3, 1fr); } }
.strip-item h3 { margin-bottom: .25em; }
.strip-item p  { color: var(--ink-500); margin: 0; }
.strip-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-100);
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ---------- Grove ---------- */
.grove {
  background: linear-gradient(180deg, var(--green-900) 0%, var(--green-800) 100%);
  color: #e8efe6;
  padding: clamp(64px, 9vw, 110px) 0;
}
.grove h2, .grove .section-sub { color: #fff; }
.grove .section-sub { color: rgba(255,255,255,.78); }

.ps-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 32px);
  margin: 0 auto 4rem;
  max-width: 920px;
}
@media (min-width: 820px) {
  .ps-grid { grid-template-columns: 1fr 40px 1fr; align-items: center; }
}
.ps-col h4 { color: var(--amber-500); margin-bottom: .6em; }
.ps-col p  { color: rgba(255,255,255,.85); margin: 0; }
.ps-arrow  { text-align: center; color: var(--amber-500); font-size: 1.6rem; }

.features {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px);
  margin-bottom: 4rem;
}
@media (min-width: 820px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform .4s var(--ease), background .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); border-color: rgba(245,184,0,.3); }
.feature .phone {
  width: 220px;
  margin: 0 auto 24px;
}
.feature h3 { color: #fff; display: flex; align-items: center; justify-content: center; gap: .55em; }
.feature p  { color: rgba(255,255,255,.78); margin: 0; }
.feature .step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--amber-500); color: var(--green-900);
  border-radius: 999px; font-weight: 800; font-size: .85rem;
}

/* How it works flow */
.howflow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 14px 16px;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.howflow-step {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.92);
  font-size: .92rem; font-weight: 600;
  padding: 6px 10px;
}
.howflow-icon {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(245,184,0,.14); color: var(--amber-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.howflow-arrow {
  width: 28px; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px;
  position: relative;
}
.howflow-arrow::after {
  content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-top: 2px solid rgba(255,255,255,.25); border-right: 2px solid rgba(255,255,255,.25);
  transform: translateY(-50%) rotate(45deg);
}
.howflow-done .howflow-icon { background: rgba(61,122,58,.35); color: #b9e1b3; }

@media (max-width: 600px) {
  .howflow { border-radius: 22px; padding: 14px; }
  .howflow-arrow { display: none; }
  .howflow-step { width: 100%; justify-content: center; }
}

/* ---------- Spotlight (bulk scan) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 36px);
  margin: 0 auto 3rem;
  max-width: 1000px;
}
@media (min-width: 820px) {
  .spotlight { grid-template-columns: 1fr 1.2fr; }
}
.spotlight-copy h3 {
  color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 .5em;
}
.spotlight-copy p { color: rgba(255,255,255,.85); margin: 0; }
.spotlight-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
}
.spotlight-visual img {
  width: 100%; height: auto; display: block;
}

/* ---------- Mini features (voice notes + caught up) ---------- */
.mini-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 36px);
  margin: 0 auto 3.5rem;
  max-width: 1000px;
}
@media (min-width: 760px) {
  .mini-features { grid-template-columns: 1fr 1fr; }
}
.mini-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform .35s var(--ease), border-color .2s, background .2s;
}
.mini-feature:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.05);
  border-color: rgba(245,184,0,.25);
}
.mini-feature h4 {
  color: var(--amber-500);
  font-size: 1rem;
  margin: 0 0 .35em;
  text-transform: none;
  letter-spacing: -.005em;
}
.mini-feature p {
  color: rgba(255,255,255,.78);
  font-size: .94rem;
  margin: 0;
}
.phone-mini {
  width: 110px;
  border-radius: 22px;
  padding: 6px;
}
.phone-mini .phone-notch {
  width: 50px; height: 12px; top: 8px; border-radius: 0 0 8px 8px;
}
.phone-mini img { border-radius: 16px; }

/* Hero lead inline link */
.lead-link {
  color: var(--green-700);
  font-weight: 600;
  border-bottom: 2px solid rgba(45,90,45,.25);
  transition: border-color .2s, color .2s;
}
.lead-link:hover { color: var(--green-800); border-color: var(--green-800); }

.usecase {
  max-width: 760px; margin: 0 auto 3rem;
  text-align: center;
}
.usecase blockquote {
  margin: 0; padding: 28px 24px;
  background: rgba(245,184,0,.08);
  border-left: 3px solid var(--amber-500);
  border-radius: 14px;
  color: #fff;
  font-size: 1.15rem;
  font-style: italic;
}
.usecase footer { margin-top: 12px; color: var(--amber-500); font-size: .9rem; font-style: normal; letter-spacing: .04em; }

.grove-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.grove .btn-primary { --bg: var(--amber-500); --fg: var(--green-900); }
.grove .btn-primary:hover { --bg: var(--amber-600); }
.grove .btn-ghost { --fg: #fff; border-color: rgba(255,255,255,.25); }
.grove .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- About ---------- */
.about {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--paper);
}
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.about p { color: var(--ink-700); font-size: 1.05rem; }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.principles li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-700);
  padding: 14px 18px;
  border-radius: 10px;
  transition: transform .25s var(--ease), border-color .2s;
}
.principles li:hover { transform: translateX(4px); border-left-color: var(--amber-500); }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--green-50);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-direct a { color: var(--green-800); font-weight: 600; border-bottom: 2px solid rgba(31,61,29,.2); }
.contact-direct a:hover { border-color: var(--green-800); }

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(20,30,22,.18);
  display: grid; gap: 14px;
}
.contact-form label, #demo-form label {
  display: grid; gap: 6px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-700);
}
.contact-form input, .contact-form select, .contact-form textarea,
#demo-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
#demo-form input:focus {
  outline: 0;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(45,90,45,.12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { margin: 0; font-size: .9rem; color: var(--green-700); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.78);
  padding: 40px 0 28px;
  font-size: .94rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: center;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.brand-light { color: #fff; }
.footer-tag { color: rgba(255,255,255,.55); margin: .35em 0 0; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,.78); }
.footer-nav a:hover { color: var(--amber-500); }
.footer-meta p { margin: 0; color: rgba(255,255,255,.55); }
.footer-meta a { color: rgba(255,255,255,.78); border-bottom: 1px dashed rgba(255,255,255,.25); }
.footer-meta a:hover { color: var(--amber-500); }
@media (min-width: 760px) { .footer-meta { text-align: right; } }

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s var(--ease);
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(14,20,16,.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  max-width: 460px; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(20,30,22,.35);
  animation: pop .3s var(--ease);
  display: grid; gap: 14px;
}
.modal-card h3 { margin: 0; }
.modal-card p { margin: 0; color: var(--ink-500); font-size: .98rem; }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1; color: var(--ink-500);
  border-radius: 8px;
}
.modal-close:hover { background: var(--paper-2); color: var(--ink-900); }
#demo-form { display: grid; gap: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
::selection { background: var(--amber-500); color: var(--green-900); }
