/* =========================================================================
   GreenLineOS Landing — Stylesheet
   Palette derived from logo: deep forest green + bright leaf green.
   ========================================================================= */

:root {
  /* Brand */
  --brand-deep:   #1F5E2C;   /* logo "G" — deep forest */
  --brand-deep-2: #174722;
  --brand-leaf:   #3FBD2B;   /* logo leaf — bright accent */
  --brand-leaf-2: #34A024;
  --brand-mist:   #E8F2E4;   /* tinted background */

  /* Light surfaces */
  --bg:        #FBF9F4;      /* warm cream */
  --surface:   #FFFFFF;
  --surface-2: #F4F1EA;
  --border:    #E2DCCD;
  --border-strong: #C9C0AC;

  /* Text */
  --text:      #1B1F1A;
  --text-muted:#5A6157;
  --text-faint:#8C9388;

  /* Functional */
  --ring:      rgba(63, 189, 43, 0.35);
  --shadow-sm: 0 1px 2px rgba(20,28,18,0.06), 0 1px 3px rgba(20,28,18,0.04);
  --shadow-md: 0 4px 12px rgba(20,28,18,0.06), 0 10px 30px rgba(20,28,18,0.06);
  --shadow-lg: 0 20px 50px rgba(20,28,18,0.10);

  /* Type scale */
  --text-xs:   0.8125rem;     /* 13 */
  --text-sm:   0.9375rem;     /* 15 */
  --text-base: 1.0625rem;     /* 17 */
  --text-md:   1.1875rem;     /* 19 */
  --text-lg:   1.5rem;        /* 24 */
  --text-xl:   2rem;          /* 32 */
  --text-2xl:  2.75rem;       /* 44 */
  --text-3xl:  3.75rem;       /* 60 */

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --maxw: 1200px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:        #10130F;
  --surface:   #181C16;
  --surface-2: #1E231C;
  --border:    #2A3127;
  --border-strong: #3A4336;

  --text:      #E7EBE3;
  --text-muted:#A6AEA0;
  --text-faint:#6E7669;

  --brand-deep:   #2E8540;
  --brand-deep-2: #246833;
  --brand-leaf:   #62D34B;
  --brand-leaf-2: #4FBA38;
  --brand-mist:   #1A2618;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45), 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.55);
}

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand-leaf-2); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Type ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, var(--text-3xl)); }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--text-2xl)); letter-spacing: -0.018em; }
h3 { font-size: var(--text-lg); letter-spacing: -0.01em; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text); }
.lead { font-size: var(--text-md); color: var(--text-muted); line-height: 1.55; max-width: 56ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
[data-theme="dark"] .eyebrow { color: var(--brand-leaf); }
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .2s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-deep-2); color: #fff; }
[data-theme="dark"] .btn--primary { background: var(--brand-leaf); color: #0B1409; }
[data-theme="dark"] .btn--primary:hover { background: var(--brand-leaf-2); color: #0B1409; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }

.btn--lg { padding: 1.05rem 1.6rem; font-size: var(--text-base); }

.btn .arrow {
  width: 1em; height: 1em; transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand .brand__name { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.015em;}
.brand .brand__tag {
  font-size: var(--text-xs); color: var(--text-muted); font-weight: 500;
  border-left: 1px solid var(--border-strong); padding-left: 0.65rem; margin-left: 0.1rem;
}

.nav__links {
  display: flex; gap: 1.5rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .brand .brand__tag { display: none; }
}
@media (max-width: 520px) {
  .nav { height: 64px; }
  .nav__actions .btn { padding: 0.7rem 1rem; font-size: 0.85rem; }
  .brand .brand__name { font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .nav__actions .btn--primary span,
  .nav__actions .btn--primary { /* shrink fallback */ }
  .nav__actions .btn--primary { padding: 0.65rem 0.85rem; }
  .brand .brand__name { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: -20% -10% auto auto;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(63,189,43,0.18), transparent 70%);
  pointer-events: none; z-index: 0;
  filter: blur(10px);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(closest-side, rgba(98,211,75,0.16), transparent 70%);
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy h1 .accent {
  background: linear-gradient(95deg, var(--brand-deep) 30%, var(--brand-leaf) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero__meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem;
  color: var(--text-muted); font-size: var(--text-xs);
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--brand-leaf);
}

.hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(63,189,43,0.14), transparent 60%),
    linear-gradient(160deg, var(--brand-mist) 0%, var(--surface) 70%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 56px);
}
[data-theme="dark"] .hero__visual {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(98,211,75,0.10), transparent 60%),
    linear-gradient(160deg, #18221A 0%, var(--surface) 80%);
}
.hero__visual img {
  width: 88%; max-width: 520px;
  filter: drop-shadow(0 12px 30px rgba(20,40,18,0.18));
}

/* subtle blade pattern behind logo */
.hero__visual::after {
  content: '';
  position: absolute; inset: auto -10% -15% -10%; height: 50%;
  background:
    radial-gradient(60% 100% at 20% 100%, rgba(31,94,44,0.10), transparent 60%),
    radial-gradient(60% 100% at 80% 100%, rgba(63,189,43,0.10), transparent 60%);
  pointer-events: none;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ---- Section heading block ---- */
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--text-muted); font-size: var(--text-md); margin: 0.25rem 0 0; max-width: 60ch; }

/* ---- Benefits (asymmetric, not 3-card grid) ---- */
.benefits {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefits__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.benefits__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.benefit {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.benefit__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-deep);
  font-feature-settings: "tnum";
  padding-top: 2px;
}
[data-theme="dark"] .benefit__num { color: var(--brand-leaf); }
.benefit h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.benefit p  { margin: 0; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.55; }

@media (max-width: 820px) {
  .benefits__grid { grid-template-columns: 1fr; }
}

/* ---- Feature sections (alternating split) ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: 0; }
.feature--reverse .feature__visual { order: -1; }
.feature__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.7rem;
}
.feature__copy p { color: var(--text-muted); font-size: var(--text-base); margin: 0 0 1rem; max-width: 52ch; }
.feature__bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.feature__bullets li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: var(--text-sm); color: var(--text);
}
.feature__bullets svg {
  flex: 0 0 auto; width: 18px; height: 18px;
  color: var(--brand-leaf); margin-top: 2px;
}

.feature__visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  overflow: hidden;
  min-height: 320px;
}
.feature__visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 70% at 0% 0%, rgba(63,189,43,0.10), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(31,94,44,0.08), transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .feature__visual::before {
  background:
    radial-gradient(70% 70% at 0% 0%, rgba(98,211,75,0.10), transparent 60%),
    radial-gradient(70% 70% at 100% 100%, rgba(31,94,44,0.12), transparent 60%);
}

@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__visual { order: 0; }
}

/* ---- UI mock cards (lightweight, inline) ---- */
.mock {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mock__bar .dot:nth-child(1) { background: #E07A5F; opacity: .6; }
.mock__bar .dot:nth-child(2) { background: #E6B450; opacity: .6; }
.mock__bar .dot:nth-child(3) { background: var(--brand-leaf); opacity: .8; }
.mock__bar .title { margin-left: 0.65rem; font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }
.mock__body { padding: 1rem 1rem 1.1rem; }

/* Route map mock */
.map-card {
  position: relative;
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.85rem;
  background:
    linear-gradient(90deg, transparent 0 23%, color-mix(in oklab, var(--border) 45%, transparent) 23% 24%, transparent 24% 49%, color-mix(in oklab, var(--border) 45%, transparent) 49% 50%, transparent 50% 74%, color-mix(in oklab, var(--border) 45%, transparent) 74% 75%, transparent 75%),
    linear-gradient(0deg, transparent 0 22%, color-mix(in oklab, var(--border) 45%, transparent) 22% 23%, transparent 23% 48%, color-mix(in oklab, var(--border) 45%, transparent) 48% 49%, transparent 49% 73%, color-mix(in oklab, var(--border) 45%, transparent) 73% 74%, transparent 74%),
    radial-gradient(circle at 18% 20%, rgba(63,189,43,0.20), transparent 18%),
    radial-gradient(circle at 82% 70%, rgba(31,94,44,0.16), transparent 20%),
    var(--surface-2);
}
.route-line {
  position: absolute;
  left: 18%;
  top: 28%;
  width: 64%;
  height: 44%;
  border: 3px solid color-mix(in oklab, var(--brand-deep) 68%, transparent);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 40px 0 0;
  transform: rotate(8deg);
}
[data-theme="dark"] .route-line { border-color: color-mix(in oklab, var(--brand-leaf) 70%, transparent); }
.pin {
  position: absolute;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(-45deg);
  background: var(--brand-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(20,28,18,0.18);
}
.pin::before {
  content: attr(class);
  display: none;
}
.pin { color: transparent; }
.pin::after {
  content: attr(data-label);
}
.pin--one::after { content: "1"; }
.pin--two::after { content: "2"; }
.pin--three::after { content: "3"; }
.pin--four::after { content: "4"; }
.pin::after {
  color: #fff;
  transform: rotate(45deg);
}
.pin--one { left: 16%; top: 22%; }
.pin--two { left: 42%; top: 34%; background: var(--brand-leaf-2); }
.pin--three { left: 63%; top: 50%; }
.pin--four { left: 78%; top: 66%; background: #8A5A12; }

/* Schedule mock */
.cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal__day {
  aspect-ratio: 1; border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-muted);
  position: relative;
}
.cal__day.has-job { background: color-mix(in oklab, var(--brand-leaf) 18%, var(--surface)); color: var(--brand-deep); font-weight: 600; border-color: color-mix(in oklab, var(--brand-leaf) 45%, var(--border));}
.cal__day.today  { outline: 2px solid var(--brand-deep); outline-offset: -2px; }
[data-theme="dark"] .cal__day.has-job { color: var(--brand-leaf); background: color-mix(in oklab, var(--brand-leaf) 20%, var(--surface-2)); }
[data-theme="dark"] .cal__day.today { outline-color: var(--brand-leaf); }
.cal__head { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 6px; }
.cal__head span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); text-align:center; }

.next-up {
  margin-top: 0.85rem; padding: 0.7rem 0.85rem;
  background: color-mix(in oklab, var(--brand-leaf) 10%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--brand-leaf) 30%, var(--border));
  border-radius: 10px;
  display: flex; align-items: center; gap: 0.7rem;
}
.next-up .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-leaf); box-shadow: 0 0 0 0 rgba(63,189,43,0.55); animation: pulse 2s infinite; }
.next-up .label { font-size: var(--text-xs); color: var(--text-muted); }
.next-up .when  { font-size: var(--text-sm); color: var(--text); font-weight: 600; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,189,43,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(63,189,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,189,43,0); }
}

/* Estimates mock */
.row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--border);
  font-size: var(--text-sm);
}
.row:last-child { border-bottom: 0; }
.row .name { color: var(--text); font-weight: 500; }
.row .meta { color: var(--text-faint); font-size: var(--text-xs); }
.badge {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border); font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--green { background: color-mix(in oklab, var(--brand-leaf) 18%, var(--surface)); color: var(--brand-deep); border-color: color-mix(in oklab, var(--brand-leaf) 35%, var(--border)); }
.badge--amber { background: #FEF3D6; color: #8A5A12; border-color: #F4DDA0; }
.badge--blue  { background: #E2EEF7; color: #1F4E73; border-color: #C7DCEC; }
[data-theme="dark"] .badge--green { color: var(--brand-leaf); background: color-mix(in oklab, var(--brand-leaf) 18%, var(--surface-2)); }
[data-theme="dark"] .badge--amber { background: #3A2B14; color: #F4C77A; border-color: #4A3B22; }
[data-theme="dark"] .badge--blue  { background: #163049; color: #9CC6E8; border-color: #244C70; }

/* Invoice mock */
.invoice__total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 0.65rem; margin-top: 0.4rem;
  border-top: 1px solid var(--border);
}
.invoice__total .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--text); }
.invoice__pay { width: 100%; margin-top: 0.85rem; }

/* Property notes mock */
.notes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.note {
  padding: 0.6rem 0.7rem; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--text-muted);
  line-height: 1.4;
}
.note strong { color: var(--text); font-weight: 600; display:block; margin-bottom: 2px; font-size: var(--text-sm); }
.photo-thumb {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border);
  background:
    linear-gradient(135deg, #5BAE3A 0%, #2E7A26 60%, #1F5E2C 100%);
  position: relative; overflow: hidden;
}
.photo-thumb::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 6px, transparent 6px 14px);
}

/* Messaging mock */
.msg {
  display: flex; gap: 0.6rem; margin-bottom: 0.55rem;
  font-size: var(--text-sm);
}
.msg__bubble {
  padding: 0.55rem 0.8rem; border-radius: 14px;
  max-width: 80%; line-height: 1.4;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.msg--out { justify-content: flex-end; }
.msg--out .msg__bubble {
  background: var(--brand-deep); color: #fff; border-color: var(--brand-deep-2);
  border-bottom-right-radius: 4px;
}
.msg--in .msg__bubble { border-bottom-left-radius: 4px; }
[data-theme="dark"] .msg--out .msg__bubble { background: var(--brand-leaf); color: #0B1409; border-color: var(--brand-leaf-2); }
.msg__time { display:block; font-size: 10px; color: var(--text-faint); margin-top: 3px; }

/* History timeline mock */
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content:''; position:absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline__item { position: relative; padding: 0.55rem 0; }
.timeline__item::before {
  content:''; position:absolute; left:-18px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-leaf);
  box-shadow: 0 0 0 3px var(--surface);
}
.timeline__item .date { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.timeline__item .title { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.timeline__item .meta  { font-size: var(--text-xs); color: var(--text-muted); }

/* ---- Login card ---- */
.login {
  background: linear-gradient(140deg, var(--brand-deep) 0%, #14471F 60%, #0E3415 100%);
  color: #EAF3E5;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.login::before {
  content:''; position:absolute; inset:auto -10% -40% auto;
  width: 60%; height: 100%;
  background: radial-gradient(closest-side, rgba(63,189,43,0.35), transparent 70%);
  pointer-events:none;
}
.login h2 { color: #fff; }
.login p  { color: rgba(234,243,229,0.85); max-width: 48ch; }
.login__features {
  list-style:none; padding:0; margin: 1rem 0 0;
  display:grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem;
}
.login__features li {
  font-size: var(--text-sm); color: rgba(234,243,229,0.85);
  display:flex; gap: 0.5rem; align-items:center;
}
.login__features svg { width: 14px; height: 14px; color: var(--brand-leaf); flex:0 0 auto; }

.login__card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  backdrop-filter: blur(12px);
}
.login__card h3 { color: #fff; margin: 0 0 0.5rem; }
.login__card p  { color: rgba(234,243,229,0.78); font-size: var(--text-sm); margin: 0 0 1.2rem; }
.login__card .btn--primary {
  width: 100%; background: var(--brand-leaf); color: #0B1409;
  font-size: var(--text-base); padding: 1.05rem 1.4rem;
}
.login__card .btn--primary:hover { background: #54CC3E; color: #0B1409; }
.login__card .btn--ghost {
  width: 100%; margin-top: 0.6rem;
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.25);
}
.login__card .btn--ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.login__card .small { font-size: var(--text-xs); color: rgba(234,243,229,0.6); margin-top: 1rem; line-height:1.5; }
.login__card .small a { color: var(--brand-leaf); }

@media (max-width: 880px) {
  .login { grid-template-columns: 1fr; }
  .login__features { grid-template-columns: 1fr; }
}

/* ---- Trust / business section ---- */
.trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.trust__stats {
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 1.25rem;
}
.stat {
  padding: 1.1rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stat .num {
  font-family: var(--font-display); font-size: 1.85rem;
  letter-spacing: -0.02em; color: var(--brand-deep); line-height: 1;
}
[data-theme="dark"] .stat .num { color: var(--brand-leaf); }
.stat .lbl { font-size: var(--text-xs); color: var(--text-muted); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; }

.area__list {
  list-style:none; padding:0; margin: 1rem 0 0;
  display:flex; flex-wrap:wrap; gap: 0.5rem;
}
.area__list li {
  font-size: var(--text-xs); padding: 0.4rem 0.8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text);
}

@media (max-width: 820px) {
  .trust { grid-template-columns: 1fr; }
  .trust__stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---- FAQ ---- */
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--text); letter-spacing: -0.01em;
}
.faq__q::after {
  content: '+';
  font-family: var(--font-body); font-weight: 500;
  font-size: 1.5rem; color: var(--brand-deep);
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items:center; justify-content:center;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, background .2s ease;
  flex: 0 0 auto;
}
[data-theme="dark"] .faq__q::after { color: var(--brand-leaf); }
.faq__item[open] .faq__q::after { content: '−'; transform: rotate(180deg); }
.faq__a {
  color: var(--text-muted); font-size: var(--text-base);
  padding: 0.4rem 2rem 0.8rem 0; max-width: 70ch;
  line-height: 1.6;
}
.faq__item summary { list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }

/* ---- Final CTA ---- */
.cta-final {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 84px) clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content:''; position:absolute; inset: -50% -20% auto -20%; height: 80%;
  background: radial-gradient(closest-side, rgba(63,189,43,0.18), transparent 70%);
  pointer-events:none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { max-width: 22ch; margin-left:auto; margin-right:auto; }
.cta-final p { color: var(--text-muted); max-width: 56ch; margin: 0.5rem auto 1.5rem; }
.cta-final .actions { display:inline-flex; gap: 0.75rem; flex-wrap:wrap; justify-content:center; }

/* ---- Footer ---- */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer ul a { color: var(--text-muted); }
.footer ul a:hover { color: var(--text); }
.footer__brand p { color: var(--text-muted); margin-top: 0.6rem; max-width: 38ch; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-xs);
  flex-wrap: wrap; gap: 0.5rem;
}
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .next-up .pulse { animation: none; }
}
