﻿/* ==========================================================================
   Andafar - Landing Page Styles
   ========================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- DESIGN TOKENS ---------- */
:root {
  --white:   #FAFAF7;
  --paper:   #F2F0EB;
  --border:  #E0DDD6;
  --border2: #C8C4BB;
  --ink:     #0F1A0C;
  --ink2:    #2A3527;
  --muted:   #6B7468;
  --green:   #1B6B30;
  --green2:  #2A8A42;
  --lime:    #4CAF68;
  --gold:    #9A6E28;
  --gold-lt: #C8A45A;
  --mono:    'Space Mono', monospace;
  --radius:  12px;
  --nav-h:   64px;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* ---------- SKIP LINK (A11Y) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--green);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- FOCUS STYLES ---------- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(27, 107, 48, 0.15);
  color: var(--ink);
}


/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 60px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 1px 12px rgba(15, 26, 12, 0.06);
}

.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 20px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-tag {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px;
}
.nav-cta {
  background: var(--ink); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  padding: 9px 20px; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--green); transform: translateY(-1px); }

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-toggle:hover {
  background: var(--lime);
  color: #fff;
  border-color: var(--lime);
}

/* ---------- SECTION LABEL ---------- */
.section-label {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--green); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 14px; display: block;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- HERO ---------- */
#hero {
  padding: 140px 60px 100px;
  position: relative; overflow: hidden;
  background: var(--white);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center;
}
.hero-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  opacity: 0; animation: fade-up 0.7s ease forwards 0.3s;
}
.hero-label-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero-label-txt {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0; letter-spacing: -2px;
  margin-bottom: 28px;
  opacity: 0; animation: fade-up 0.8s ease forwards 0.5s;
}
.hero-title .line-accent { color: var(--green); font-style: italic; font-weight: 300; }
.hero-sub {
  font-size: 16px; font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 440px;
  margin-bottom: 44px;
  opacity: 0; animation: fade-up 0.8s ease forwards 0.7s;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fade-up 0.8s ease forwards 0.9s;
}
.btn-primary {
  background: var(--ink); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: 9px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  background: var(--green); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 107, 48, 0.25);
}
.btn-ghost {
  font-size: 14px; font-weight: 400; color: var(--muted);
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink2); }

.hero-mobile-preview {
  position: absolute;
  bottom: -16px; right: -20px;
  max-width: 150px; border-radius: 20px;
  border: 2px solid var(--border);
  box-shadow: 0 16px 40px rgba(15,26,12,0.22), 0 4px 12px rgba(15,26,12,0.10);
  z-index: 2;
  opacity: 0; animation: fade-up 0.8s ease forwards 1.1s;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
  opacity: 0; animation: fade-up 0.9s ease forwards 0.6s;
}
.hero-img-main {
  width: 100%; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 26, 12, 0.12), 0 4px 12px rgba(15, 26, 12, 0.06);
  display: block;
}
.hero-img-float {
  position: absolute;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 26, 12, 0.14);
  background: var(--white);
  overflow: hidden;
}
.hero-img-float.top-left {
  width: 42%; top: -28px; left: -32px;
  animation: float-a 5s ease-in-out infinite;
}
.hero-img-float.bot-right {
  width: 38%; bottom: -24px; right: -24px;
  animation: float-b 6s ease-in-out infinite;
}
.hero-img-float img { width: 100%; display: block; }

/* ---------- KEYFRAMES ---------- */
@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- LOGOS BAND ---------- */
#band {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: center; gap: 60px;
  flex-wrap: wrap;
}
.band-item {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.band-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green2); }

/* ---------- PROBLEM ---------- */
#problem {
  padding: 120px 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.problem-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 48px;
}
.problem-header { order: 1; }
.problem-screens { order: 2; }
.problem-compare { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.problem-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 20px;
}
.problem-text p { font-size: 15px; color: var(--muted); line-height: 1.8; font-weight: 300; }
.compare-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 2px solid var(--border); margin-bottom: 4px; }
.cons-heading { color: #DC2626; border-color: #FCA5A5; }
.pros-heading { color: var(--green); border-color: #86EFAC; }
.pain-list { list-style: none; margin-top: 0; display: flex; flex-direction: column; gap: 0; }
.pain-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.pain-item:first-child { border-top: 1px solid var(--border); }
.pain-marker {
  width: 24px; height: 24px; border-radius: 50%;
  background: #FEE2E2; border: 1px solid #FCA5A5;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.pain-marker svg { width: 12px; height: 12px; }
.pain-text { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.6; }

.pro-list { list-style: none; margin-top: 0; display: flex; flex-direction: column; gap: 0; }
.pro-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.pro-item:first-child { border-top: 1px solid var(--border); }
.pro-marker {
  width: 24px; height: 24px; border-radius: 50%;
  background: #DCFCE7; border: 1px solid #86EFAC;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.pro-marker svg { width: 12px; height: 12px; }
.pro-text { font-size: 14px; color: var(--ink); font-weight: 400; line-height: 1.6; }

.problem-screens {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%;
}
.prob-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 26, 12, 0.07);
}
.prob-img img { width: 100%; display: block; }
.prob-img.span2 { grid-column: span 2; }
.prob-img-label {
  background: var(--paper); padding: 8px 12px;
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
  border-top: 1px solid var(--border);
}

/* ---------- FEATURES ---------- */
#features {
  padding: 80px 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  margin-bottom: 40px;
}
.features-top h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3vw, 40px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1;
}
.features-top p { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 300; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.feat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow 0.3s, border-color 0.3s;
}
.feat-card.in-view { opacity: 1; transform: translateY(0); }
.feat-card:hover {
  box-shadow: 0 8px 32px rgba(15, 26, 12, 0.09);
  border-color: var(--border2);
  transform: translateY(-2px);
}
.feat-card.wide { grid-column: span 2; }
.feat-card.dark {
  background: var(--ink); color: var(--white);
  border-color: var(--ink2);
}
.feat-card.dark .feat-body { color: rgba(255, 255, 255, 0.5); }
.feat-card.dark .feat-num { color: rgba(255, 255, 255, 0.15); }
.feat-num {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px; color: var(--border2);
  letter-spacing: 1px;
}
.feat-icon-wrap {
  width: 34px; height: 34px; border-radius: 8px;
  background: #EAF4EC; border: 1px solid #C5E0CB;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feat-card.dark .feat-icon-wrap {
  background: rgba(76, 175, 104, 0.15);
  border-color: rgba(76, 175, 104, 0.25);
}
.feat-icon-wrap svg { width: 16px; height: 16px; }
.feat-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.3px; margin-bottom: 6px;
}
.feat-body { font-size: 12.5px; color: var(--muted); line-height: 1.65; font-weight: 300; }

.feat-screen {
  margin-top: 16px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.feat-screen img {
  width: min(100%, 420px);
  margin: 0 auto;
  display: block;
}
.feat-card.dark .feat-screen { border-color: rgba(255, 255, 255, 0.1); }

.feat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.feat-pill {
  padding: 4px 10px; border-radius: 20px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.5px;
  border: 1px solid var(--border); color: var(--muted);
  background: var(--paper);
}
.feat-card.dark .feat-pill {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- WORKFLOW ---------- */
#workflow {
  padding: 120px 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.workflow-inner { max-width: 1200px; margin: 0 auto; }
.workflow-head { max-width: 560px; margin-bottom: 80px; }
.workflow-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px;
}
.workflow-head p { font-size: 15px; color: var(--muted); line-height: 1.8; font-weight: 300; }

.workflow-grid {
  display: flex;
  flex-direction: column;
}

/* Each step: alternating left/right layout */
.wf-step {
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.wf-step:last-child { border-bottom: 1px solid var(--border); }
.wf-step.in-view { opacity: 1; transform: translateX(0); }

/* Even steps flip - image on left, text on right — slide from right */
.wf-step:nth-child(even) {
  flex-direction: row-reverse;
  transform: translateX(80px);
}
.wf-step:nth-child(even).in-view { transform: translateX(0); }

.wf-step-text {
  flex: 0 0 300px;
}

.wf-step > .wf-step-img,
.wf-step > .wf-step-images {
  flex: 1;
  min-width: 0;
}

.wf-step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -4px;
  margin-bottom: 20px;
  color: var(--lime);
  display: block;
}
.wf-step h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.wf-step p { font-size: 14px; color: var(--muted); line-height: 1.75; font-weight: 300; }

.wf-step-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(15,26,12,0.07);
}
.wf-step-img img { width: 100%; display: block; }

/* Dual-image side-by-side layout (steps 02 & 06) */
.wf-step-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.wf-step-images .wf-step-img { box-shadow: none; }

/* Portrait/mobile screenshot (step 04) - centered in its flex slot */
.wf-step > .wf-step-img--portrait {
  flex: 0 0 auto;
  width: 260px;
  margin: auto;
}

/* ---------- MOBILE ---------- */
#mobile {
  padding: 120px 60px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#mobile .section-label { color: var(--lime); }
.mobile-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
}
.mobile-text { color: var(--white); }
.mobile-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 20px;
}
.mobile-text p {
  font-size: 15px; color: rgba(255, 255, 255, 0.5); line-height: 1.8;
  font-weight: 300; margin-bottom: 32px;
}
.mobile-feature-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-feat-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65); font-size: 14px; font-weight: 300;
}
.mobile-feat-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.mobile-feat-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(76, 175, 104, 0.2); border: 1px solid rgba(76, 175, 104, 0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.mobile-feat-check svg { width: 10px; height: 10px; }

/* Phone row */
.phones-row {
  display: flex; gap: 16px; align-items: flex-start;
  justify-content: center;
}
.phone-frame {
  flex-shrink: 0;
  background: #111;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px; padding: 12px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}
.phone-frame.main { width: 180px; }
.phone-frame.side { width: 155px; margin-top: 40px; opacity: 0.8; }
.phone-notch {
  width: 56px; height: 5px; background: rgba(255, 255, 255, 0.1);
  border-radius: 3px; margin: 0 auto 10px;
}
.phone-screen { border-radius: 22px; overflow: hidden; position: relative; }
.phone-screen img { width: 100%; display: block; }

/* Privacy mask: hide email text on the first side phone screenshot */
.phones-row .phone-frame.side:first-child .phone-screen::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 34%;
  height: 10%;
  border-radius: 10px;
  background: rgba(7, 20, 14, 0.84);
  backdrop-filter: blur(6px);
}

/* ---------- INTEGRATIONS ---------- */
#integrations {
  padding: 100px 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.integ-inner { max-width: 1200px; margin: 0 auto; }
.integ-head { max-width: 560px; margin-bottom: 56px; }
.integ-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3vw, 40px); font-weight: 700;
  letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 12px;
}
.integ-head p { font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.7; }
.integ-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
}
.integ-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 28px 20px; text-align: center;
  opacity: 0; transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s, border-color 0.2s;
}
.integ-card.in-view { opacity: 1; transform: scale(1); }
.integ-card:hover { background: var(--paper); border-color: var(--border2); transform: translateY(-3px); }
.integ-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.integ-card:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.integ-abbr {
  font-family: var(--mono); font-size: 14px; font-weight: 400;
  color: var(--green); margin-bottom: 8px;
}
.integ-name { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.integ-sub  { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.5px; }

/* ---------- PRICING ---------- */
#pricing {
  padding: 120px 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.pricing-inner { max-width: 1200px; margin: 0 auto; }
.pricing-head { margin-bottom: 56px; }
.pricing-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px;
}
.pricing-head p { font-size: 15px; color: var(--muted); font-weight: 300; max-width: 480px; }

.billing-row {
  display: flex; align-items: center; gap: 12px; margin-top: 24px;
}
.bill-label {
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 1px;
}
.bill-label.on { color: var(--green); }
.bill-track {
  width: 44px; height: 24px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 12px;
  position: relative; cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.bill-track.active { background: #EAF4EC; border-color: #C5E0CB; }
.bill-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); position: absolute; top: 2px; left: 2px;
  transition: transform 0.3s, background 0.3s;
}
.bill-track.active .bill-thumb { transform: translateX(20px); background: var(--green); }
.badge-save {
  font-family: var(--mono); font-size: 9px; padding: 3px 10px;
  border-radius: 20px; background: #FEF3C7; color: #92400E;
  border: 1px solid #FDE68A; letter-spacing: 0.5px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.plan-card {
  background: var(--paper); border: 1px solid var(--border); padding: 32px 24px;
  position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.plan-card.in-view { opacity: 1; transform: translateY(0); }
.plan-card:hover { background: var(--white); border-color: var(--border2); }
.plan-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.plan-card.featured {
  background: var(--ink); color: var(--white);
  border-color: var(--ink); z-index: 1;
  box-shadow: -8px 0 32px rgba(15, 26, 12, 0.12), 8px 0 32px rgba(15, 26, 12, 0.12);
  transform: translateY(-8px);
}
.plan-card.featured.in-view { transform: translateY(-8px); }
.plan-card.featured:hover { background: var(--ink2); transform: translateY(-10px); }
.plan-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.plan-badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
  margin-bottom: 20px;
}
.plan-badge.popular { background: #EAF4EC; color: var(--green); border: 1px solid #C5E0CB; }
.plan-badge.featured-b { background: rgba(76, 175, 104, 0.2); color: var(--lime); border: 1px solid rgba(76, 175, 104, 0.3); }
.plan-badge.enterprise-b { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.plan-badge.free-b { height: 28px; visibility: hidden; }

.plan-name {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.plan-card.featured .plan-name { color: rgba(255, 255, 255, 0.5); }

.plan-price-wrap { margin-bottom: 6px; display: flex; align-items: baseline; gap: 4px; }
.plan-amount {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 38px;
  letter-spacing: -1.5px; line-height: 1; color: var(--ink);
}
.plan-card.featured .plan-amount { color: var(--white); }
.plan-amount.free { color: var(--green); }
.plan-amount.ent  { font-size: 24px; line-height: 1.2; }
.plan-currency, .plan-period {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.plan-card.featured .plan-currency,
.plan-card.featured .plan-period { color: rgba(255, 255, 255, 0.4); }

.plan-annual-note {
  font-family: var(--mono); font-size: 10px; color: var(--gold);
  min-height: 16px; margin-top: 4px; margin-bottom: 24px;
}
.plan-card.featured .plan-annual-note { color: var(--lime); }

.plan-divider { height: 1px; background: var(--border); margin: 0 0 20px; }
.plan-card.featured .plan-divider { background: rgba(255, 255, 255, 0.1); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.5;
}
.plan-card.featured .plan-features li { color: rgba(255, 255, 255, 0.6); }
.pf-check { color: var(--green); font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.pf-cross { color: var(--border2); font-size: 12px; flex-shrink: 0; }
.plan-card.featured .pf-check { color: var(--lime); }

.plan-cta {
  display: block; width: 100%; text-align: center;
  padding: 13px 20px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s;
}
.plan-cta.ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.plan-cta.ghost:hover { border-color: var(--green); color: var(--green); background: #EAF4EC; }
.plan-cta.solid {
  background: var(--white); color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.plan-cta.solid:hover { background: var(--lime); color: var(--white); box-shadow: 0 4px 16px rgba(76, 175, 104, 0.4); }
.plan-cta.subtle {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.6);
}
.plan-cta.subtle:hover { border-color: var(--gold-lt); color: var(--gold-lt); }

.pricing-note {
  margin-top: 12px; padding: 18px 24px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink);
  line-height: 1.75; opacity: 0.75;
}
.pricing-note b { color: var(--green); font-weight: 600; }

/* ---------- EARLY ACCESS BANNER ---------- */
.early-access-banner {
  display: flex; align-items: center; gap: 18px;
  margin-top: 36px; margin-bottom: 12px;
  padding: 18px 24px;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--lime);
  animation: ea-pulse-border 2s ease-in-out infinite;
}
.ea-badge {
  flex-shrink: 0;
  background: var(--lime); color: var(--ink);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
  animation: ea-blink 1.4s step-start infinite;
}
.ea-text {
  font-size: 14px; font-weight: 400; line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin: 0;
}
.ea-text strong { color: var(--lime); font-weight: 700; }
@keyframes ea-pulse-border {
  0%, 100% { border-color: var(--lime); box-shadow: 0 0 0 0 rgba(76,175,104,0); }
  50% { border-color: #6ee08a; box-shadow: 0 0 0 5px rgba(76,175,104,0.15); }
}
@keyframes ea-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- PROMO RIBBON ---------- */
.promo-ribbon {
  background: linear-gradient(135deg, var(--gold) 0%, #C8922D 100%);
  color: #fff; font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.5px; text-align: center;
  padding: 8px 16px; border-radius: 8px; margin: -8px 0 12px;
  animation: pulse-promo 2s ease-in-out infinite;
}
@keyframes pulse-promo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ---------- SCREENSHOTS / LIVE PREVIEW ---------- */
#live-preview {
  padding: 100px 60px;
  background: var(--ink);
  overflow: hidden;
}
.preview-inner {
  max-width: 1200px; margin: 0 auto; text-align: center;
}
.preview-inner .section-label { color: var(--lime); }
.preview-inner h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  color: var(--white); letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px;
}
.preview-inner p {
  font-size: 15px; color: #8A917F; line-height: 1.8; font-weight: 300;
  max-width: 560px; margin: 0 auto 56px;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.screenshot-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-out-expo);
}
.screenshot-card:nth-child(1) { transform: rotate(-2deg) translateY(20px); }
.screenshot-card:nth-child(2) { transform: rotate(1deg) translateY(-10px); }
.screenshot-card:nth-child(3) { transform: rotate(-1.5deg) translateY(30px); }
.screenshot-card:hover { transform: rotate(0) translateY(0) scale(1.03); z-index: 2; }
.screenshot-card img { width: 100%; display: block; }

/* ---------- CONTACT ---------- */
#contact {
  padding: 120px 60px;
  background: var(--white);
}
.contact-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
}
.contact-left h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px;
}
.contact-left p { font-size: 15px; color: var(--muted); line-height: 1.8; font-weight: 300; }

.author-card {
  padding: 32px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px;
}
.author-initials {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.author-name {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: -0.3px; margin-bottom: 4px;
}
.author-role {
  font-family: var(--mono); font-size: 10px; color: var(--green);
  letter-spacing: 1px; margin-bottom: 16px;
}
.author-bio { font-size: 13px; color: var(--muted); line-height: 1.75; font-weight: 300; }

.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--ink);
  font-size: 13px; transition: all 0.22s; cursor: pointer;
}
.contact-link:hover { border-color: var(--green); background: #EAF4EC; transform: translateX(4px); }
.contact-link-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-link-icon svg { width: 15px; height: 15px; }
.contact-link-meta .lbl {
  font-family: var(--mono); font-size: 9px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px;
}
.contact-link-meta .val { font-weight: 500; font-size: 13px; color: var(--ink); }
.contact-link-arrow { margin-left: auto; color: var(--muted); font-size: 16px; }

/* ---------- FOOTER ---------- */
footer {
  padding: 32px 60px;
  background: var(--paper);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; color: var(--ink);
}
.footer-meta {
  font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.5px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  #hero, #problem, #features, #workflow, #mobile, #integrations, #pricing, #contact {
    padding: 80px 24px;
  }
  .hero-inner, .problem-inner, .mobile-inner, .contact-inner {
    grid-template-columns: 1fr; gap: 48px;
  }
  .hero-image-wrap { order: -1; }
  .hero-img-float { display: none; }
  .features-top { grid-template-columns: 1fr; gap: 24px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat-card.wide { grid-column: span 1; }
}

/* ===================== Floating Contact Button ===================== */
.fab-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0 20px 0 16px;
  height: 52px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(76,175,104,0.45);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.fab-btn:hover { background: var(--green); box-shadow: 0 6px 28px rgba(27,107,48,0.45); transform: translateY(-2px); }
.fab-btn:active { transform: translateY(0); }

.fab-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.fab-icon-close { display: none; }
.fab-contact.open .fab-icon-msg  { display: none; }
.fab-contact.open .fab-icon-close { display: block; }

/* panel */
.fab-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(15,26,12,0.14);
  padding: 14px 10px 10px;
  width: 290px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  order: -1;
}
.fab-contact.open .fab-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-panel-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.fab-item:hover { background: var(--paper); }

.fab-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fab-item-icon svg { width: 18px; height: 18px; }
.fab-email  { background: #EEF2FF; color: #4F46E5; }
.fab-wa     { background: #DCFCE7; color: #16A34A; }
.fab-phone  { background: #FEF3C7; color: #D97706; }
.fab-li     { background: #DBEAFE; color: #1D4ED8; }

.fab-item-text { display: flex; flex-direction: column; }
.fab-item-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.fab-item-val   { font-size: 13px; font-weight: 500; color: var(--ink); }
  .wf-step { flex-direction: column !important; gap: 40px; padding: 56px 0; }
  .wf-step-text { flex: 0 0 auto; width: 100%; }
  .wf-step > .wf-step-img--portrait { margin: 0; width: 220px; }
  .integ-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .plan-card.featured { transform: translateY(0); }
  .plan-card.featured.in-view { transform: translateY(0); }
  footer { flex-direction: column; gap: 16px; }
  #live-preview { padding: 80px 24px; }
  .screenshots-grid {
    grid-template-columns: 1fr; gap: 32px; max-width: 600px; margin: 0 auto;
  }
  .screenshot-card:nth-child(1),
  .screenshot-card:nth-child(2),
  .screenshot-card:nth-child(3) { transform: rotate(0) translateY(0); }
}

@media (max-width: 640px) {
  .hero-mobile-preview { max-width: 110px; bottom: -10px; right: -12px; }
  .feat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .wf-step-num { font-size: 60px; }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .phones-row .phone-frame.side { display: none; }
  #band { gap: 28px; }
  .nav-tag { display: none; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .feat-card { opacity: 1; transform: none; }
  .wf-step { opacity: 1; transform: none; }
  .integ-card { opacity: 1; transform: none; }
  .plan-card { opacity: 1; transform: none; }
  .screenshot-card { transform: none; }
}

/* ---------- GIS CANVAS ---------- */
#gis-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}
nav { position: relative; z-index: 100; }

/* ---------- PRINT ---------- */
@media print {
  nav, .skip-link { display: none; }
  body { cursor: auto; background: #fff; color: #000; }
  * { box-shadow: none !important; }
  #hero { padding-top: 40px; }
}
