/* ==========================================================
   Insumia Agrotech — styles
   Palette taken from the logo: navy ink, logo blue, leaf greens.
   ========================================================== */
:root {
  --ink: #12304e;          /* logo navy — headings, text */
  --ink-2: #3d5468;        /* secondary text (≥ 7:1 on bg) */
  --blue: #1b5389;         /* logo blue — primary actions */
  --blue-press: #143f69;
  --leaf: #13632f;         /* logo deep green */
  --lime: #8cc63f;         /* logo lime — accents only, never small text on light */
  --lime-soft: #e6f2d6;
  --bg: #f3f6f4;           /* cool sage-white page */
  --surface: #ffffff;
  --line: #d9e2dd;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.85);
  --shadow-1: 0 1px 2px rgba(18, 48, 78, .06), 0 8px 24px rgba(18, 48, 78, .08);
  --shadow-2: 0 2px 6px rgba(18, 48, 78, .08), 0 24px 56px rgba(18, 48, 78, .16);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Icons ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .18s var(--ease-out), color .18s, border-color .18s, transform .12s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(18,48,78,.28); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #9fd352; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 246, 244, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.nav a:hover { color: var(--ink); background: rgba(18,48,78,.06); }
.nav a.is-active { color: var(--ink); background: var(--lime-soft); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: rgba(18,48,78,.06); border-radius: 999px; padding: 3px; }
.lang button {
  min-width: 40px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  font: 600 .8125rem/1 var(--font-body); color: var(--ink-2); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(18,48,78,.15); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { padding: 12px var(--gutter) 0; }
.hero-frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  min-height: min(760px, calc(100dvh - 96px));
  display: flex; align-items: center;
  max-width: 1440px; margin: 0 auto;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(243,246,244,.96) 0%, rgba(243,246,244,.9) 34%, rgba(243,246,244,.35) 62%, rgba(243,246,244,.05) 100%),
    linear-gradient(0deg, rgba(243,246,244,.55), rgba(243,246,244,0) 30%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--leaf);
  margin-bottom: 20px;
}
.hero-kicker .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--lime); box-shadow: -14px 6px 0 -1px var(--blue); margin-left: 14px; }
.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.06; font-weight: 700; letter-spacing: -0.035em;
  max-width: 13ch; text-wrap: balance;
}
.lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-weight: 500; color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ic { color: var(--leaf); width: 18px; height: 18px; stroke-width: 2.4; }
.disclaimer { margin-top: 10px; font-size: .8125rem; color: var(--ink-2); text-align: right; }

/* Hero composition */
.hero-visual { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 206px; grid-template-rows: auto auto; gap: 16px; align-items: stretch; }
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: var(--ink);
}
.glass small { color: var(--ink-2); font-size: .75rem; }
.panel-crm { grid-column: 1 / 3; grid-row: 1; padding: 16px 14px 8px; }
.pnl-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pnl-head strong { display: block; font: 600 .9375rem/1.3 var(--font-head); }
.pnl-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.pnl-ic .ic { width: 18px; height: 18px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.mini-table th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: .6875rem; padding: 6px 6px; border-bottom: 1px solid rgba(18,48,78,.12); }
.mini-table td { padding: 8px 5px; border-bottom: 1px solid rgba(18,48,78,.07); white-space: nowrap; }
.mini-table tr:last-child td { border-bottom: 0; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .6875rem; font-weight: 600; }
.chip-ok { background: #d8efc0; color: #1d4d12; }
.chip-mid { background: #dce8f5; color: #163f66; }
.chip-new { background: #eef0f2; color: #3d5468; }

.panel-gauge { grid-column: 1; grid-row: 2; padding: 14px 14px 14px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.gauge { width: 100%; height: auto; margin-top: 6px; }
.g-track, .g-val { fill: none; stroke-width: 11; stroke-linecap: round; }
.g-track { stroke: rgba(18,48,78,.1); }
.g-val { stroke: var(--leaf); }
.g-num { display: block; font: 700 1.75rem/1 var(--font-head); margin-top: -26px; font-variant-numeric: tabular-nums; }
.g-sub { display: block; margin-top: 6px; }

.panel-bars { grid-column: 2; grid-row: 2; padding: 14px 16px 12px; display: flex; flex-direction: column; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 92px; margin-top: auto; padding-top: 10px; box-sizing: content-box; }
.bars span { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--lime), var(--leaf)); }
.bars span:nth-child(n+2) { background: linear-gradient(180deg, #4f86bd, var(--blue)); }
.bars i { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .625rem; color: var(--ink-2); }
.panel-bars { padding-bottom: 26px; }

.phone {
  position: relative; grid-column: 3; grid-row: 1 / 3; min-height: 400px;
  border-radius: 34px; padding: 8px; background: #0f2236;
  box-shadow: var(--shadow-2), inset 0 0 0 2px #2a425a;
}
.phone-screen {
  height: 100%; border-radius: 27px; overflow: hidden; padding: 10px 12px;
  background: linear-gradient(180deg, #f7faf6, #eaf1ea);
  display: flex; flex-direction: column; gap: 8px; font-size: .75rem;
}
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: .625rem; font-weight: 600; color: var(--ink); padding: 0 4px; }
.ph-notch { width: 58px; height: 16px; background: #0f2236; border-radius: 999px; }
.ph-title { font: 600 .9375rem/1.2 var(--font-head); margin: 6px 2px 2px; }
.ph-card { background: #fff; border-radius: 12px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(18,48,78,.08); display: flex; flex-direction: column; gap: 4px; }
.ph-card small { color: var(--ink-2); font-size: .625rem; }
.ph-alert { flex-direction: row; align-items: center; gap: 8px; background: var(--lime-soft); }
.ph-alert .ic { color: var(--leaf); width: 18px; height: 18px; }
.ph-alert b { display: block; font-size: .6875rem; }
.ph-row { display: flex; justify-content: space-between; gap: 8px; font-size: .6875rem; }
.ph-row span { color: var(--ink-2); }
.ph-prog { height: 6px; border-radius: 99px; background: #e3e9e4; overflow: hidden; margin-top: 4px; }
.ph-prog i { display: block; height: 100%; background: var(--lime); border-radius: inherit; }
.ph-btn { margin-top: auto; background: var(--blue); color: #fff; text-align: center; font-weight: 600; border-radius: 999px; padding: 9px; font-size: .75rem; }
.ph-sync { flex-direction: row; align-items: center; gap: 6px; }
.ph-sync .ic { width: 14px; height: 14px; color: var(--leaf); }

/* One orchestrated load sequence for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual > * { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease-out) forwards; }
  .hero-visual .panel-crm { animation-delay: .15s; }
  .hero-visual .panel-gauge { animation-delay: .35s; }
  .hero-visual .phone { animation-delay: .5s; }
  .hero-visual .panel-bars { animation-delay: .65s; }
  .g-val { stroke-dashoffset: 68; animation: fill 1.1s .6s var(--ease-out) forwards; }
  .hero-visual .bars span { transform-origin: bottom; transform: scaleY(0); animation: grow .7s var(--ease-out) forwards; }
  .hero-visual .bars span:nth-child(1) { animation-delay: .85s; }
  .hero-visual .bars span:nth-child(2) { animation-delay: .92s; }
  .hero-visual .bars span:nth-child(3) { animation-delay: .99s; }
  .hero-visual .bars span:nth-child(4) { animation-delay: 1.06s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fill { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scaleY(1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.h-section { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); line-height: 1.12; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.sec-lead { color: var(--ink-2); font-size: 1.0625rem; max-width: 60ch; }

/* Audience */
.audience { padding-top: clamp(56px, 7vw, 88px); }
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 2px solid var(--ink); }
.aud-item { padding: 28px 28px 8px 0; }
.aud-item + .aud-item { padding-left: 28px; border-left: 1px solid var(--line); }
.aud-item .ic { color: var(--leaf); }
.aud-item h3 { font-size: 1.25rem; margin: 0 0 8px; }
.aud-item p { color: var(--ink-2); max-width: 40ch; }

/* Services */
.services { background: var(--surface); }
.srv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.srv {
  padding: 32px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line);
}
.srv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.srv-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.srv-ic .ic { width: 24px; height: 24px; }
.srv h3 { font-size: 1.375rem; }
.srv > p { color: var(--ink-2); max-width: 56ch; }
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313632f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.process { margin-top: 72px; }
.process-title { font-size: 1.375rem; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 56px 24px 0 0; display: grid; gap: 6px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem/1 var(--font-head); background: var(--blue); color: #fff; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { font-family: var(--font-head); font-size: 1.0625rem; }
.steps span { color: var(--ink-2); }

/* Gallery */
.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gal-item { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gal-wide { grid-column: span 2; }
.gal-item figcaption { display: grid; gap: 2px; }
.gal-item figcaption b { font-family: var(--font-head); font-weight: 600; }
.gal-item figcaption span { color: var(--ink-2); font-size: .9375rem; }
.mock { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; flex: 1; min-height: 300px; }

.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2ef; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8d2; }
.browser-bar span { margin-left: 12px; font-size: .75rem; color: var(--ink-2); background: #fff; border-radius: 999px; padding: 3px 12px; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; background: #f6f8f7; font-size: .8125rem; height: calc(100% - 41px); }
.col { display: flex; flex-direction: column; gap: 8px; }
.col > p { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); padding: 2px 2px 4px; }
.col > p em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 2px; }
.kcard small { color: var(--ink-2); font-size: .75rem; }
.kval { font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; margin-top: 4px; }
.kcard-hot { border-left: 3px solid var(--blue); }
.kcard-ok { border-left: 3px solid var(--leaf); }
.kcard-ok .kval { color: var(--leaf); }

.dash { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-kpis div { display: grid; gap: 2px; }
.dash-kpis small { color: var(--ink-2); font-size: .6875rem; }
.dash-kpis b { font: 700 1rem/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.dash-kpis em { font-style: normal; font-size: .6875rem; font-weight: 600; }
.up { color: var(--leaf); }
.down { color: var(--leaf); }
.dash-chart { width: 100%; height: auto; flex: 1; }
.dash-chart .grid path { stroke: #e7ece9; stroke-width: 1; }
.dash-chart .area { fill: rgba(140, 198, 63, .22); }
.dash-chart .line { fill: none; stroke: var(--leaf); stroke-width: 2.5; stroke-linejoin: round; }
.dash-chart .line-b { stroke: var(--blue); stroke-dasharray: 5 5; stroke-width: 2; }
.dash-legend { display: flex; gap: 16px; font-size: .75rem; color: var(--ink-2); }
.dash-legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg-a::before { background: var(--leaf); }
.lg-b::before { background: var(--blue); }

.photo-stage { position: relative; flex: 1; min-height: 440px; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; padding: 28px 0; }
.photo-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-stage .phone-gal { width: 190px; aspect-ratio: 9 / 18.5; min-height: 0; z-index: 1; }

.site-mock { position: relative; height: calc(100% - 41px); min-height: 260px; }
.site-mock > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-mock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,22,.72), rgba(10,30,22,.15) 70%); }
.site-mock-copy { position: relative; z-index: 1; padding: 22px 26px; color: #fff; max-width: 60%; display: grid; gap: 14px; }
.sm-logo { font: 500 .9375rem/1 var(--font-head); }
.sm-logo b { color: var(--lime); }
.sm-h { font: 700 clamp(1.1rem, .8rem + 1vw, 1.6rem)/1.15 var(--font-head); }
.sm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-btns span { font-size: .75rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.sm-btns span + span { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.sm-quotes { position: absolute; z-index: 1; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.sm-quotes div { background: rgba(255,255,255,.9); border-radius: 10px; padding: 8px 12px; display: grid; }
.sm-quotes small { font-size: .625rem; color: var(--ink-2); }
.sm-quotes b { font-size: .8125rem; font-variant-numeric: tabular-nums; }

/* Free trial */
.trial { background: var(--ink); color: #fff; }
.trial h2 { color: #fff; font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); line-height: 1.12; max-width: 18ch; }
.trial-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.trial-copy > p { color: #c9d6e2; font-size: 1.0625rem; margin-top: 18px; max-width: 54ch; }
.trial-opts { display: grid; gap: 4px; margin: 32px 0 36px; }
.trial-opts li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.trial-opts li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.trial-opts .ic { color: var(--lime); width: 24px; height: 24px; margin-top: 2px; }
.trial-opts b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; }
.trial-opts span { color: #c9d6e2; }
.trial-photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1.5px dashed #b9c7bf; border-radius: var(--r-md);
  padding: 32px; display: flex; flex-direction: column;
}
.plan h3 { font-size: 1.375rem; }
.plan-for { color: var(--ink-2); margin-top: 6px; }
.price { margin: 24px 0 4px; font: 700 1.5rem/1.2 var(--font-head); color: var(--ink-2); }
.plan .ticks { margin-bottom: 28px; color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid var(--blue); box-shadow: var(--shadow-1); }

/* Contact */
.contact { background: var(--surface); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact .sec-lead { margin-top: 18px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-list li:nth-child(-n+2) { grid-column: 1 / -1; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 20px; min-height: 84px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
a.contact-card:hover { border-color: var(--ink); background: #fff; }
.contact-card .ic { color: var(--blue); }
.contact-card span { display: grid; min-width: 0; }
.contact-card small { color: var(--ink-2); font-size: .8125rem; }
.contact-card b { font-weight: 600; overflow-wrap: anywhere; }
.contact-wa { background: var(--lime-soft); border-color: #c9e3a6; }
.contact-wa .ic { color: var(--leaf); }
.is-soon { border-style: dashed; }
.is-soon b { color: var(--ink-2); font-weight: 500; }

/* Footer */
.footer { background: #0d2438; color: #b9c8d6; padding: 56px 0 40px; }
.footer-in { display: grid; gap: 18px; justify-items: start; }
.footer-logo { height: 40px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: #e3ebf2; text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; }
.copy { font-size: .875rem; color: #8fa5b8; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); width: 100%; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 8px 24px rgba(13, 60, 33, .35);
  transition: transform .15s var(--ease-out), background-color .15s;
}
.wa-float:hover { background: #18864a; transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 10px 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .hero-veil { background: linear-gradient(180deg, rgba(243,246,244,.95) 0%, rgba(243,246,244,.86) 45%, rgba(243,246,244,.3) 100%); }
  .hero h1 { max-width: 16ch; }
  .sec-head { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-wide { grid-column: span 2; }
  .gal-photo { grid-column: span 2; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(18,48,78,.12);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 10px; font-size: 1.0625rem; }
  .topbar-actions { margin-left: auto; }
  .srv-list, .plan-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: 1fr; }
  .aud-item, .aud-item + .aud-item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(2)::after { display: none; }
  .trial-in, .contact-in { grid-template-columns: 1fr; }
  .trial-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .brand img { height: 28px; }
  .topbar-in { gap: 12px; height: 64px; }
  .nav { top: 64px; }
  .hero { padding: 8px 8px 0; }
  .hero-frame { border-radius: 20px; }
  .hero-grid { padding-top: 36px; padding-bottom: 28px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-visual { grid-template-columns: 1fr 1fr; gap: 12px; }
  .panel-crm { grid-column: 1 / -1; }
  .mini-table th:nth-child(3), .mini-table td:nth-child(3) { display: none; }
  .panel-bars .bars { height: 84px; }
  .hero-visual .phone { display: none; }
  .disclaimer { text-align: left; }
  .gal-grid { grid-template-columns: minmax(0, 1fr); }
  .gal-wide, .gal-photo { grid-column: auto; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban .col:nth-child(n+3) { display: none; }
  .site-mock-copy { max-width: 100%; padding: 18px; }
  .sm-quotes { left: 16px; right: 16px; }
  .sm-quotes div { flex: 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 56px; min-height: 40px; }
  .steps li::after { left: 19px; top: 40px; bottom: -32px; right: auto; width: 2px; height: auto; }
  .steps li:nth-child(2)::after { display: block; }
  .steps li:last-child::after { display: none; }
  .contact-list { grid-template-columns: 1fr; }
  .srv, .plan { padding: 24px; }
  .lang button { min-width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Gallery: app cards */
.app-card { padding: 18px; display: flex; flex-direction: column; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.app-card > div { display: flex; flex-direction: column; flex: 1; }
.ac-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-2); font-size: .75rem; margin-bottom: 12px; }
.ac-title { font: 700 1.0625rem/1.25 var(--font-head); }
.ac-sub { color: var(--ink-2); margin-top: 2px; }
.ac-stats, .ac-specs, .calc-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ac-specs, .calc-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-stats > div, .ac-specs > div, .calc-inputs > div { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; }
.app-card small { color: var(--ink-2); font-size: .6875rem; }
.ac-section { font-weight: 600; margin: 16px 0 6px; color: var(--ink); }
.ac-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ac-list li > span { display: grid; gap: 1px; min-width: 0; }
.ac-num { text-align: right; flex: none; }
.ac-compact li { padding: 6px 0; }
.app-card .pos { color: #9a3412; }
.app-card .neg { color: var(--leaf); }

.goal-main { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px; }
.goal-main > div { display: grid; gap: 2px; }
.goal-main b { font: 700 1.125rem/1.2 var(--font-head); }
.goal-main b span { font: 500 .75rem var(--font-body); color: var(--ink-2); }
.goal-main em { font-style: normal; font-size: .75rem; color: var(--leaf); font-weight: 600; }
.ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring-t { stroke: #e2e9e4; }
.ring-v { stroke: var(--leaf); }
.goal-list { display: grid; gap: 10px; }
.goal-list li > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.goal-list li > div span { color: var(--ink-2); }
.goal-list i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--leaf), var(--lime)) 0 0 / var(--p) 100% no-repeat, #e6ece8; }
.goal-list i.low { background: linear-gradient(90deg, #b45309, #f59e0b) 0 0 / var(--p) 100% no-repeat, #e6ece8; }

.zarc-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.zarc { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .75rem; min-width: 560px; }
.zarc th { font-weight: 500; color: var(--ink-2); font-size: .6875rem; padding: 2px; }
.zarc thead tr:first-child th:not(:first-child) { border-bottom: 1px solid var(--line); }
.zarc td { height: 30px; border-radius: 6px; background: #eef1ef; text-align: center; font-weight: 600; font-size: .6875rem; }
.zarc td:first-child { background: none; text-align: left; font-weight: 600; font-size: .75rem; white-space: nowrap; padding-right: 8px; }
.zarc td:first-child small { display: block; font-weight: 400; }
.zarc td.r20 { background: #2f7d32; color: #fff; }
.zarc td.r30 { background: #8cc63f; color: #12304e; }
.zarc td.r40 { background: #f2d16b; color: #12304e; }
.zarc-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 12px; font-size: .75rem; color: var(--ink-2); }
.zarc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zarc-legend span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; }
.zarc-legend .r20::before { background: #2f7d32; }
.zarc-legend .r30::before { background: #8cc63f; }
.zarc-legend .r40::before { background: #f2d16b; }
.zarc-legend .rno::before { background: #eef1ef; border: 1px solid var(--line); }

.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.calc-out > div { background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 10px; display: grid; }
.app-card .calc-out small, .calc-out em { color: #b9cbe0; font-style: normal; font-size: .6875rem; }
.calc-out b { font: 700 1.125rem/1.2 var(--font-head); }

/* Dashboards section */
.dashboards { background: var(--surface); }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dash-tabs button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
  font: 600 .9375rem/1 var(--font-body); color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.dash-tabs button:hover { border-color: var(--ink-2); color: var(--ink); }
.dash-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dash-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); font-variant-numeric: tabular-nums; }
.dash-panel[hidden] { display: none; }
.dp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dp-kpis > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 2px; }
.dp-kpis small { color: var(--ink-2); font-size: .8125rem; }
.dp-kpis b { font: 700 1.375rem/1.2 var(--font-head); }
.dp-kpis em { font-style: normal; font-size: .8125rem; color: var(--ink-2); }
.dp-kpis em.up { color: var(--leaf); font-weight: 600; }
.dp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; min-width: 0; }
.dp-span { grid-column: 1 / -1; }
.dp-card-t { font-weight: 600; margin-bottom: 14px; }
.hbars { display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: .875rem; }
.hbars span { color: var(--ink-2); }
.hbars i { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #4f86bd) 0 0 / var(--w) 100% no-repeat, #eaf0ec; }
.hbars i.warn { background: linear-gradient(90deg, #b45309, #f59e0b) 0 0 / var(--w) 100% no-repeat, #eaf0ec; }
.hbars b { min-width: 72px; text-align: right; }
.dp-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.dp-table th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: .8125rem; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dp-table td { padding: 10px; border-bottom: 1px solid #eef2ef; white-space: nowrap; }
.dp-table tr:last-child td { border-bottom: 0; }
.dp-table td:first-child { font-weight: 600; }
.dp-table-num th:not(:first-child), .dp-table-num td:not(:first-child) { text-align: right; }
.dp-table td small { color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.dp-table .pos { color: var(--leaf); font-weight: 700; }
.dp-table .warn { color: #9a3412; font-weight: 700; }
.dp-scroll { overflow-x: auto; }
.stack-legend { display: grid; gap: 8px; margin-bottom: 16px; font-size: .875rem; }
.stack-legend li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.stack-legend li b { margin-left: auto; color: var(--ink); }
.stack-legend i { width: 12px; height: 12px; border-radius: 3px; }
.stackbar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 2px; }
.stackbar i { width: var(--w); }
.c1 { background: var(--ink); } .c2 { background: var(--blue); } .c3 { background: var(--leaf); } .c4 { background: var(--lime); }
.vbars { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 22px; margin-bottom: 24px; box-sizing: content-box; }
.vbars span { position: relative; flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #4f86bd, var(--blue)); }
.vbars span:nth-child(4) { background: linear-gradient(180deg, var(--lime), var(--leaf)); }
.vbars b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .75rem; }
.vbars i { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .75rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .dp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hbars li { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; font-size: .8125rem; }
  .hbars b { min-width: 0; }
  .dash-tabs button { flex: 1 1 100%; }
  .dp-kpis b { font-size: 1.125rem; }
}

.zarc-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.zarc-tips > div { background: var(--lime-soft); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
@media (max-width: 640px) { .zarc-tips { grid-template-columns: 1fr; } }
.dp-table td:first-child { white-space: normal; }
@media (max-width: 640px) { .dp-table th, .dp-table td { padding: 8px 6px; } .dp-card { padding: 14px; } }

/* ==========================================================
   Scroll animations — only when JS adds .anim to <html>
   (skipped entirely for prefers-reduced-motion users)
   ========================================================== */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 100ms); }
.anim .reveal.in-view { opacity: 1; transform: none; }

/* staggered items inside a revealed block */
.anim .reveal :is(.kcard, .ac-list li, .goal-list li, .dp-table tbody tr, .dp-kpis > div, .dash-kpis > div, .calc-out > div, .zarc-tips > div, .stack-legend li) {
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc((.25s + var(--i, 0) * 70ms) * var(--anim-k, 1));
}
.anim .reveal.in-view :is(.kcard, .ac-list li, .goal-list li, .dp-table tbody tr, .dp-kpis > div, .dash-kpis > div, .calc-out > div, .zarc-tips > div, .stack-legend li) { opacity: 1; transform: none; }

/* horizontal bars fill */
.anim .reveal .hbars i { background-size: 0 100%, auto; transition: background-size 1s var(--ease-out); transition-delay: calc((.35s + var(--i, 0) * 90ms) * var(--anim-k, 1)); }
.anim .reveal.in-view .hbars i { background-size: var(--w) 100%, auto; }
.anim .reveal .goal-list i { background-size: 0 100%, auto; transition: background-size 1.1s var(--ease-out); transition-delay: calc((.45s + var(--i, 0) * 90ms) * var(--anim-k, 1)); }
.anim .reveal.in-view .goal-list i { background-size: var(--p) 100%, auto; }

/* vertical bars grow */
.anim .reveal .vbars span { transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease-out); transition-delay: calc((.3s + var(--i, 0) * 80ms) * var(--anim-k, 1)); }
.anim .reveal.in-view .vbars span { transform: scaleY(1); }
.anim .reveal .vbars b { opacity: 0; transition: opacity .4s; transition-delay: calc((.9s + var(--i, 0) * 80ms) * var(--anim-k, 1)); }
.anim .reveal.in-view .vbars b { opacity: 1; }

/* stacked cost bar */
.anim .reveal .stackbar i { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); transition-delay: calc((.4s + var(--i, 0) * 150ms) * var(--anim-k, 1)); }
.anim .reveal.in-view .stackbar i { transform: scaleX(1); }

/* line chart draws left to right */
.anim .reveal .dash-chart { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease-out) .3s; }
.anim .reveal.in-view .dash-chart { clip-path: inset(0 0 0 0); }

/* goal ring fills */
.anim .reveal .ring-v { stroke-dashoffset: 73; transition: stroke-dashoffset 1.3s var(--ease-out) .35s; }
.anim .reveal.in-view .ring-v { stroke-dashoffset: 0; }

/* ZARC cells sweep across the planting calendar */
.anim .reveal .zarc td:not(:first-child) { opacity: 0; transform: scale(.6); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); transition-delay: calc((.3s + var(--i, 0) * 45ms) * var(--anim-k, 1)); }
.anim .reveal.in-view .zarc td:not(:first-child) { opacity: 1; transform: none; }

/* dashboard tab switch: quick crossfade of the panel */
.anim .dash-panel.reveal { transition-duration: .45s; }

/* ---------- Portfolio ---------- */
.pf-group { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin: 0 0 20px; }
.pf-group-head { display: grid; gap: 8px; margin: clamp(56px, 7vw, 88px) 0 24px; }
.pf-group-head .pf-group { margin: 0; }
.gal-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 12px; }
@supports not (grid-template-rows: subgrid) {
  .gal-item { display: flex; flex-direction: column; gap: 12px; }
}
.gal-item figcaption { display: grid; gap: 4px; align-content: start; }
.gal-item figcaption h4 { margin: 0; font: 600 1.125rem/1.3 var(--font-head); color: var(--ink); letter-spacing: -0.01em; }
.gal-item figcaption span { color: var(--ink-2); font-size: .9375rem; max-width: 62ch; }
.gal-full { grid-column: 1 / -1; }
.gal-grid-dash { row-gap: 40px; }

/* Mobile: faster, shorter-distance animations that fire as soon as a block enters the screen */
@media (max-width: 640px) {
  .anim { --anim-k: .55; }
  .anim .reveal { transform: translateY(14px); transition-duration: .5s; transition-delay: 0s; }
  .anim .reveal .dash-chart { transition-duration: 1.1s; }
  .anim .reveal .ring-v { transition-duration: .9s; }
  .anim .reveal .hbars i, .anim .reveal .goal-list i { transition-duration: .8s; }
  .anim .reveal .vbars span { transition-duration: .6s; }
  .gal-item figcaption h4 { font-size: 1.0625rem; }
  .gal-grid-dash { row-gap: 32px; }
}
