:root {
  --accent: #2E7D32;
  --accent-2: #7CB342;
  --deep: #12351a;
  --grad: linear-gradient(135deg, #7CB342 0%, #2E7D32 55%, #12351a 100%);
  --bg: #f6f8f7;
  --card: #ffffff;
  --line: #e6ebe7;
  --ink: #152018;
  --muted: #6b7a70;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 54, 26, 0.08);
}
* { box-sizing: border-box; }
html.auth-gate body { visibility: hidden; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35); display: block; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); }
.nav-spacer { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform .1s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(46, 125, 50, 0.32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(46, 125, 50, 0.42); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { background: #E8F5E9; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--grad); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 20px 20px; }
.hero-inner { position: relative; padding: 84px 20px 76px; text-align: center; }
.hero h1 { margin: 0 auto 16px; max-width: 900px; font-size: clamp(28px, 5vw, 50px); line-height: 1.1; letter-spacing: -1px; }
.hero p { margin: 0 auto; max-width: 680px; font-size: clamp(15px, 2.2vw, 19px); opacity: .92; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
h2.title { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.6px; margin: 10px 0 10px; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 720px; }
.grid { display: grid; gap: 18px; margin-top: 28px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(20,54,26,.03); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #d5e6d9; }
.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.3px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ic { width: 44px; height: 44px; border-radius: 13px; background: #E8F5E9; display: grid; place-items: center; color: var(--accent); }
.ic svg { width: 22px; height: 22px; }

/* App card */
.app-card { display: flex; flex-direction: column; align-items: flex-start; }
.app-icon { width: 68px; height: 68px; border-radius: 18px; box-shadow: 0 10px 24px rgba(20,54,26,.18); }
.app-card .btn { margin-top: 18px; }
.badge-soon { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 10px; }

/* Covert agents */
.covert { background: #0f2b16; color: #eaf7ec; border-radius: 26px; padding: 44px; position: relative; overflow: hidden; }
.covert::after { content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(124,179,66,.5) 1px, transparent 1px); background-size: 22px 22px; }
.covert h2 { position: relative; margin: 6px 0 12px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.5px; }
.covert p { position: relative; color: #b9d8bf; max-width: 720px; }
.covert .eyebrow { color: #9ccc65; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; position: relative; }
.chip { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: #d7ecd9; }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 26px; }
.shots img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.step .n { counter-increment: s; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.step .n::before { content: counter(s); }
.step b { display: block; }
.step span { color: var(--muted); font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .links { margin-left: auto; display: flex; gap: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* Calendar page specifics */
.cal-hero { text-align: center; padding: 70px 20px 40px; }
.cal-hero .app-icon { width: 108px; height: 108px; border-radius: 26px; }
.cal-hero h1 { font-size: clamp(30px, 5vw, 46px); margin: 20px 0 12px; letter-spacing: -1px; }
.cal-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: clamp(15px, 2.2vw, 19px); }
.cal-hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 900px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .covert { padding: 30px 24px; border-radius: 22px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hero-inner { padding: 56px 18px 52px; }
  .cta .btn { width: 100%; }
}

/* Legal docs */
.doc { max-width: 860px; margin: 0 auto; padding: 48px 0 24px; }
.doc .doc-head { margin-bottom: 22px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.8px; margin: 8px 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .card { padding: 30px 34px; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -0.3px; }
.doc h2:first-child { margin-top: 0; }
.doc p { color: #33443a; font-size: 15px; margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { color: #33443a; font-size: 15px; margin-bottom: 6px; }
.doc a { color: var(--accent); text-decoration: underline; }
.doc .legal[hidden] { display: none; }
@media (max-width: 640px) { .doc .card { padding: 22px 20px; } }

/* Account menu (header) */
.nav-account { position: relative; display: inline-flex; }
.account-btn { gap: 8px; background: #fff; }
.account-btn .acc-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D32; }
.acc-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 6px; min-width: 220px; display: none; z-index: 60;
}
.account-menu.open { display: block; }
.account-item {
  display: flex; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; font-family: inherit;
}
.account-item:hover { background: var(--bg); }
.account-logout { color: #c62828; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }
@media (max-width: 520px) { .acc-email { max-width: 110px; } }

/* Language switcher */
.lang-switch { position: relative; display: inline-block; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 8px 11px; cursor: pointer;
  font-family: inherit;
}
.lang-btn:hover { background: #E8F5E9; }
.lang-btn .flag { font-size: 20px; line-height: 1; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 6px; min-width: 200px; display: none; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit;
}
.lang-item:hover { background: var(--bg); }
.lang-item.active { background: #E8F5E9; color: var(--accent); }
.lang-item .flag { font-size: 18px; }
.footer-lang .lang-menu { top: auto; bottom: calc(100% + 8px); }

