:root {
  --green:        #1f8a4c;
  --green-dark:   #156437;
  --green-soft:   #e8f4ec;
  --ink:          #16241c;
  --body:         #44514a;
  --line:         #e2e8e4;
  --bg:           #ffffff;
  --bg-alt:       #f5f8f6;
  --radius:       16px;
  --shadow:       0 10px 30px rgba(16, 50, 32, 0.10);
  --max:          1100px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--green-dark); text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ===== Store badge (Google Play "coming soon") ===== */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  padding: 0 18px; height: 56px; border-radius: 12px; text-align: left; text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.store-badge:hover { background: #1a1a1a; transform: translateY(-1px); text-decoration: none; }
.store-badge .sb-icon { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-text small { font-size: .68rem; letter-spacing: .02em; }
.store-badge .sb-text strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }

/* ===== Waitlist modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(12, 24, 16, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 440px;
  background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 28px 26px; text-align: center;
  animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1; color: var(--body); cursor: pointer; padding: 6px;
}
.modal-close:hover { color: var(--ink); }
.modal-icon { font-size: 2.4rem; margin-bottom: 6px; }
.modal h2 { font-size: 1.45rem; margin-bottom: 8px; }
.modal p { color: var(--body); margin: 0 0 18px; }
#wl-form { display: flex; flex-direction: column; gap: 10px; }
#wl-email {
  width: 100%; padding: 13px 15px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; font-family: inherit;
}
#wl-email:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.wl-msg { margin: 14px 0 0; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.wl-msg.ok { color: var(--green-dark); }
.wl-msg.err { color: #c0392b; }
.wl-fine { font-size: .8rem; color: var(--body); margin: 12px 0 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.4rem; }
.brand-name { font-size: 1.05rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--body); font-weight: 500; }
.nav-links a.btn { color: #fff; }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--green-soft), transparent 60%), var(--bg);
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
.lead { font-size: 1.18rem; color: var(--body); }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 18px; }
.cta-note { color: var(--body); font-size: .9rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-badges li { font-size: .95rem; color: var(--green-dark); font-weight: 500; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 260px; aspect-ratio: 9 / 19;
  background: #0e1512; border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow); position: relative;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 30px; overflow: hidden; background: #cfe0d4;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,138,76,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,138,76,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: #d8e8dd;
}
.field-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-overlay polygon { fill: rgba(31,138,76,.28); stroke: var(--green); stroke-width: 3; }
.field-overlay circle { fill: #fff; stroke: var(--green-dark); stroke-width: 3; }
.readout {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,.95); border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); display: flex; flex-direction: column;
}
.readout-value { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.readout-label { font-size: .72rem; color: var(--body); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 44px; letter-spacing: -.01em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ===== Workspaces band ===== */
.workspace-band {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: #eaf5ee;
}
.ws-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ws-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: #bfe6cc; margin-bottom: 12px;
}
.ws-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.ws-copy .lead { color: #dceede; }
.ws-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ws-list li { position: relative; padding-left: 30px; color: #eaf5ee; }
.ws-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.ws-list strong { color: #fff; }
.workspace-band .btn { background: #fff; color: var(--green-dark); }
.workspace-band .btn:hover { background: #eaf5ee; }
.ws-note { margin-top: 14px; font-size: .9rem; color: #bfe6cc; }
@media (max-width: 860px) { .ws-grid { grid-template-columns: 1fr; } .ws-visual { order: -1; } }

/* Workspace member card mock */
.ws-visual { display: flex; justify-content: center; }
.ws-card {
  width: 100%; max-width: 360px; background: var(--bg); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.ws-card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ws-swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--green); }
.ws-card-head strong { font-size: 1.05rem; }
.ws-count { margin-left: auto; font-size: .82rem; color: var(--body); }
.ws-rows { list-style: none; margin: 0; padding: 6px 0; }
.ws-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.ws-rows .who { font-size: .95rem; color: var(--ink); }
.ava {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff;
}
.ava.a { background: #1f8a4c; } .ava.b { background: #2f80ed; }
.ava.c { background: #8e5cd9; } .ava.d { background: #d98b27; }
.role {
  margin-left: auto; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.role.owner  { background: var(--green-soft); color: var(--green-dark); }
.role.editor { background: #e7f0fd; color: #1b62c4; }
.role.viewer { background: #f0f0f3; color: #555; }
.ws-foot {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--body);
}

/* Audience */
.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.audience span {
  background: var(--green-soft); color: var(--green-dark);
  padding: 10px 18px; border-radius: 999px; font-weight: 500;
}

/* FAQ */
details {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 600; color: var(--ink); list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--green); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; }

/* Final CTA */
.cta-final { text-align: center; background: linear-gradient(180deg, var(--green-soft), transparent); }
.cta-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--bg-alt); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--body); }
.muted { color: var(--body); }
.small { font-size: .85rem; }
