/* ============================================================
   Hoviv marketing site — shared styles
   Tokens mirror the app (tailwind.config.js: primary #213131, secondary #547C7D, body #EDECEC)
   ============================================================ */
@font-face {
  font-family: "montserrat-arm";
  src: url("../assets/fonts/Montserratarm-Regular.woff2") format("woff2"),
       url("../assets/fonts/Montserratarm-Regular.woff") format("woff"),
       url("../assets/fonts/Montserratarm-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #213131;
  --brand: #547C7D;
  --brand-soft: #669394;
  --brand-deep: #3d6162;
  --surface: #EDECEC;
  --card: #fff;
  --sage: #C4D3CC;
  --sage-soft: #E3EAE6;
  --ink-2: #4b5858;      /* secondary text, 7:1 on white */
  --line: rgba(33, 49, 49, .12);
  --warn: #E67E22;
  --danger: #C0544A;

  /* per-product accents (all derived from the brand teal) */
  --farmer: #547C7D;
  --vet: #3f6d8a;
  --partner: #213131;

  --r-card: 24px;
  --r-pill: 999px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 40px -12px rgba(33,49,49,.25);
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", "montserrat-arm", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Armenian", "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--white { background: #fff; }
.section--sage { background: var(--sage-soft); }
.section--dark { background: var(--primary); color: #fff; }
.section--dark .lead, .section--dark .muted { color: rgba(255,255,255,.72); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--sage); }
.h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.15; }
.h2 { font-size: clamp(26px, 3.6vw, 40px); }
.h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .lead, .center.lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 16px; }
.accent { color: var(--brand); }
.section--dark .accent { color: var(--sage); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; background: var(--brand); color: #fff;
  font-size: 16px; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--sage-soft); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--primary); }
.btn--dark { background: var(--primary); }
.btn--dark:hover { background: #000; }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- icons (mask: inherit currentColor) ---------- */
.ico {
  display: inline-block; width: 28px; height: 28px; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.ico--lg { width: 36px; height: 36px; }
.ico--sm { width: 20px; height: 20px; }
.ico-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--brand);
}
.ico-badge .ico { width: 28px; height: 28px; }
.ico-badge--solid { background: var(--brand); color: #fff; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.feature { display: flex; flex-direction: column; gap: 12px; }
.feature p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.feature .h3 { margin-top: 4px; }
.section--dark .feature { background: rgba(255,255,255,.06); box-shadow: none; }
.section--dark .feature p { color: rgba(255,255,255,.72); }
.section--dark .ico-badge { background: rgba(255,255,255,.1); color: var(--sage); }

.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.section--dark .checks li { color: rgba(255,255,255,.82); }
.section--dark .checks li::before { background-color: var(--sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23213131' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--sage-soft); color: var(--primary); font-size: 14px;
}
.chip--brand { background: var(--brand); color: #fff; }
.chip--soon { background: #fff3e6; color: #9a5200; font-size: 12.5px; padding: 3px 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(237,236,236,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(255,255,255,.9); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 14px; max-width: 1440px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav-products { display: flex; align-items: center; gap: 2px; margin: 0 auto; flex-shrink: 1; }
.nav-product {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: var(--r-pill);
  font-size: 14.5px; color: var(--primary); transition: background .15s; white-space: nowrap;
}
.nav-product .ico { width: 20px; height: 20px; color: var(--brand); }
.nav-product:hover { background: rgba(84,124,125,.14); }
.nav-product.is-active { background: var(--primary); color: #fff; }
.nav-product.is-active .ico { color: var(--sage); }
.nav-tip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 250px; padding: 12px 14px; border-radius: 16px; background: var(--primary); color: #fff;
  font-size: 13.5px; line-height: 1.45; white-space: normal; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: var(--shadow-lg);
}
.nav-product:hover .nav-tip, .nav-product:focus-visible .nav-tip { opacity: 1; transform: translateX(-50%); }
.nav-secondary { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 10px; font-size: 14.5px; white-space: nowrap; border-radius: var(--r-pill); color: var(--ink-2); }
.nav-link:hover, .nav-link.is-active { color: var(--primary); background: rgba(84,124,125,.12); }
.header-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.header-cta .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; font-size: 14px;
}
.lang-btn .ico { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-lg); display: none;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu button {
  display: flex; width: 100%; justify-content: space-between; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font-size: 14.5px; text-align: left;
}
.lang-menu button:hover { background: var(--sage-soft); }
.lang-menu button[aria-current="true"] { color: var(--brand); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; position: relative; }
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--primary); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s, opacity .2s;
}
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after { transform: translate(-50%, 5px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 1340px) {
  .nav-secondary { display: none; }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 900px) {
  .nav-products, .header-cta .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .header-cta { margin-left: 0; }
}

/* mobile sheet */
.sheet {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--surface); padding: 20px var(--gutter) 40px;
  overflow-y: auto; display: none; flex-direction: column; gap: 14px;
}
.sheet.is-open { display: flex; }
.sheet-product {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow);
}
.sheet-product strong { font-weight: 400; font-size: 18px; display: block; }
.sheet-product span.d { font-size: 14px; color: var(--ink-2); line-height: 1.4; display: block; margin-top: 2px; }
.sheet-product.is-active { outline: 2px solid var(--brand); }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.sheet-links a { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.7); text-align: center; }
.sheet .btn { width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { margin-top: 20px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art::before {
  content: ""; position: absolute; width: min(100%, 520px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brand-soft), var(--brand) 60%, var(--brand-deep)); opacity: .95;
}
.hero--dark { background: var(--primary); color: #fff; }
.hero--dark .lead { color: rgba(255,255,255,.75); }
.hero--dark .eyebrow { color: var(--sage); }
.hero--dark .hero-note { color: rgba(255,255,255,.65); }
.hero--dark .hero-art::before { background: radial-gradient(circle at 35% 30%, #4d7273, #2f4b4c 65%, #263c3d); }
.hero--vet .hero-art::before { background: radial-gradient(circle at 35% 30%, #6f9cb8, var(--vet) 60%, #2c5670); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; order: 2; }
}

/* floating chips around hero art */
.float-card {
  position: absolute; background: #fff; color: var(--primary); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; z-index: 3;
}
.float-card small { display: block; color: var(--ink-2); font-size: 12px; }
.float-card b { font-weight: 400; font-size: 20px; display: block; line-height: 1.1; }
.float-card .ico-badge { width: 40px; height: 40px; border-radius: 12px; }
.float-card .ico-badge .ico { width: 22px; height: 22px; }
.fc-1 { left: -4%; top: 14%; animation: bob 6s ease-in-out infinite; }
.fc-2 { right: -2%; bottom: 16%; animation: bob 7s ease-in-out infinite .8s; }
.fc-3 { left: 2%; bottom: 6%; animation: bob 8s ease-in-out infinite 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .fc-1 { display: none; } .fc-2 { right: 0; } .fc-3 { display: none; } }

/* ---------- phone mockup (CSS replica of app UI, no real data) ---------- */
.phone {
  position: relative; z-index: 2; width: 292px; border-radius: 42px; padding: 11px; background: #131c1c;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c3b3b;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; border-radius: 12px; background: #131c1c; transform: translateX(-50%); z-index: 4; }
.phone-screen { border-radius: 32px; background: var(--surface); overflow: hidden; min-height: 560px; padding: 48px 14px 18px; color: var(--primary); }
.phone--sm { width: 250px; } .phone--sm .phone-screen { min-height: 470px; padding-top: 44px; }
.ui-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.ui-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ui-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 12px; }
.ui-card--wide { grid-column: 1 / -1; }
.ui-card small { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
.ui-card b { display: block; font-weight: 400; font-size: 23px; margin-top: 4px; line-height: 1.1; }
.ui-card b i { font-style: normal; font-size: 12px; color: var(--ink-2); }
.ui-tile { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 13px; }
.ui-tile .ico { color: var(--brand); width: 26px; height: 26px; }
.ui-bar { height: 8px; border-radius: 8px; background: var(--sage-soft); overflow: hidden; margin-top: 8px; }
.ui-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.ui-spark { display: block; width: 100%; height: 50px; margin-top: 6px; }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; border-top: 1px solid var(--line); }
.ui-row:first-child { border-top: 0; }
.ui-row .grow { flex: 1; line-height: 1.3; }
.ui-row small { font-size: 11px; color: var(--ink-2); display: block; }
.ui-pill { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: var(--sage-soft); color: var(--brand-deep); white-space: nowrap; }
.ui-pill--warn { background: #fdecd9; color: #9a5200; }
.ui-pill--ok { background: #dcf1e3; color: #1d6b3a; }
.ui-chat { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.45; }
.ui-msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; }
.ui-msg--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ui-msg--ai { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.ui-input { margin-top: 10px; background: #fff; border-radius: 99px; padding: 10px 14px; font-size: 12px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.ui-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 14px 2px 8px; }

/* browser frame (partner dashboard) */
.browser { border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; z-index: 2; width: 100%; max-width: 640px; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f4f4f4; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d4; }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-2); background: #fff; border-radius: 99px; padding: 3px 14px; }
.browser-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; background: var(--surface); }
.b-side { background: #fff; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); font-size: 12.5px; }
.b-side div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); }
.b-side div.on { background: var(--sage-soft); color: var(--primary); }
.b-side .ico { width: 16px; height: 16px; color: var(--brand); }
.b-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .browser-body { grid-template-columns: 1fr; } .b-side { display: none; } }

/* ---------- product fork cards ---------- */
.fork { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fork-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; border-radius: 28px; background: #fff;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; overflow: hidden; --a: var(--farmer);
}
.fork-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--a); }
.fork-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fork-card--vet { --a: var(--vet); }
.fork-card--partner { --a: var(--partner); }
.fork-card .ico-badge { background: var(--a); color: #fff; width: 58px; height: 58px; border-radius: 18px; }
.fork-card .for { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.fork-card .more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--a); }
.fork-card .more::after { content: "→"; transition: transform .2s; }
.fork-card:hover .more::after { transform: translateX(5px); }
@media (max-width: 900px) { .fork { grid-template-columns: 1fr; } }

/* ---------- split rows (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split-text { order: 2; }
.split-visual { display: grid; place-items: center; position: relative; }
.split-visual--tint { background: var(--sage-soft); border-radius: 32px; padding: 40px 20px; }
.split-visual--tint.dark { background: rgba(255,255,255,.06); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split-text { order: 0; } }

/* ---------- connected-system diagram ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow-node { background: #fff; border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flow-node p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.flow-arrow { display: grid; place-items: center; color: var(--brand); font-size: 12px; text-align: center; gap: 4px; min-width: 96px; }
.flow-arrow::before { content: "⇄"; font-size: 30px; line-height: 1; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { min-width: 0; padding: 4px 0; }
  .flow-arrow::before { content: "⇅"; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 24px; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 17px; margin-bottom: 14px;
}
.step p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; line-height: 1.6; }
.section--dark .step { background: rgba(255,255,255,.07); box-shadow: none; }
.section--dark .step p { color: rgba(255,255,255,.72); }
.section--dark .step::before { background: var(--sage); color: var(--primary); }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; color: var(--sage); }
.stat span { font-size: 15px; color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- region flags ---------- */
.flags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.flag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border-radius: var(--r-pill); box-shadow: var(--shadow); font-size: 15px; }
.flag span { font-size: 20px; line-height: 1; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 28px 20px 0; position: relative; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow); margin-bottom: 36px; }
.billing-toggle button { border: 0; background: none; padding: 10px 24px; border-radius: var(--r-pill); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.billing-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.save-tag { font-size: 11.5px; background: var(--sage); color: var(--primary); padding: 2px 8px; border-radius: 99px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.is-featured { outline: 3px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -14px; left: 28px; }
.plan .price { font-size: 42px; line-height: 1.1; margin-top: 12px; }
.plan .price small { font-size: 15px; color: var(--ink-2); }
.plan .price-sub { color: var(--ink-2); font-size: 14px; min-height: 22px; }
.plan .checks { margin: 18px 0 24px; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; margin: 0 0 6px 16px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid #c9d3cf; border-radius: 24px; background: #fff; font: inherit; font-size: 16px; color: var(--primary);
}
.field textarea { min-height: 120px; resize: vertical; border-radius: 20px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form-ok { display: none; padding: 16px 20px; border-radius: 16px; background: #dcf1e3; color: #1d6b3a; }
.form.is-sent .form-ok { display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .lead { margin: 16px auto 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { width: 74px; height: auto; filter: brightness(0) invert(1); }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer li { margin: 9px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about { margin: 16px 0; max-width: 34ch; line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.socials .ico { width: 20px; height: 20px; color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none !important; }
  .btn, .fork-card { transition: none; }
}
/* no-JS safety: content still visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- misc helpers ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.stack > * + * { margin-top: 16px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); margin: 10px 0; }
.prose ul { list-style: disc; padding-left: 22px; }
.quote { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote p { font-size: 17px; line-height: 1.6; }
.quote cite { font-style: normal; font-size: 14px; color: var(--ink-2); }
.placeholder-note { border: 2px dashed var(--sage); border-radius: var(--r-card); padding: 20px; color: var(--ink-2); font-size: 14.5px; text-align: center; }

/* ---------- header dropdown menus ---------- */
.nav-menus { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.dd { position: relative; }
.dd-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; background: none; border-radius: var(--r-pill);
  font-size: 15px; color: var(--primary); white-space: nowrap;
}
.dd-btn:hover, .dd.is-open .dd-btn { background: rgba(84,124,125,.14); }
.dd-btn.is-active { background: var(--primary); color: #fff; }
.dd-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.dd.is-open .dd-caret { transform: rotate(225deg) translateY(-2px); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 340px; padding: 10px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge */
.dd.is-open .dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%); }
.dd-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; --a: var(--farmer); }
.dd-item .ico-badge { width: 44px; height: 44px; border-radius: 14px; background: var(--a); }
.dd-item--vet { --a: var(--vet); } .dd-item--partner { --a: var(--partner); }
.dd-item strong { font-weight: 400; display: block; font-size: 15.5px; }
.dd-item .d { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; max-width: 30ch; }
.dd-item:hover, .dd-item:focus-visible { background: var(--sage-soft); }
.dd-item.is-active { background: var(--sage-soft); }
.sheet-title { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 6px 4px 0; }
@media (max-width: 900px) { .nav-menus { display: none; } }
@media (max-width: 1100px) { .nav-menus .nav-link { display: none; } }

.plans--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.plans--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
@media (max-width: 900px) { .plans--2 { grid-template-columns: 1fr; } }
#farmers, #vets { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- faithful app mock-ups: real app markup (Tailwind, see css/app-ui.css) inside a device frame ---------- */
.phone-screen.app-screen { padding: 0; min-height: 0; background: #EDECEC; overflow: hidden; }
.phone-screen.app-screen .app-ui { width: 390px; transform: scale(.69); transform-origin: top left; padding-top: 34px; min-height: 780px; background: #EDECEC; }
.phone--sm .phone-screen.app-screen .app-ui { transform: scale(.59); transform-origin: top left; }
.phone--lg { width: 330px; } .phone--lg .phone-screen.app-screen .app-ui { transform: scale(.79); transform-origin: top left; }
.phone-screen.app-screen { height: 540px; } .phone--sm .phone-screen.app-screen { height: 470px; } .phone--lg .phone-screen.app-screen { height: 600px; }
.browser-body.app-screen { display: block; min-height: 0; height: 380px; overflow: hidden; background: #EDECEC; }
.browser-body.app-screen .app-ui { width: 1180px; transform: scale(.53); transform-origin: top left; background: #EDECEC; min-height: 720px; }
@media (max-width: 560px) { .browser-body.app-screen { height: 280px; } .browser-body.app-screen .app-ui { transform: scale(.3); transform-origin: top left; } }
/* icons that are PNGs wrapped in SVG (bell, bull, calf, goat, heifer, horse, breeding_task, pregnancy_test): show as image, not mask */
.ico--raster { background-color: transparent; -webkit-mask: none; mask: none; background-image: var(--i); background-size: contain; background-repeat: no-repeat; background-position: center; }
.ico-badge--solid .ico--raster, .sheet-product .ico-badge--solid .ico--raster, .dd-item .ico--raster { filter: brightness(0) invert(1); }

/* product logos (PNG) shown as-is inside badges */
.ico-badge--img, .fork-card .ico-badge--img, .dd-item .ico-badge--img { background: none; }
.ico-badge--img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* legal pages (privacy.html, terms.html): Armenian only, plain long-form text */
.legal { max-width: 820px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; }
.legal h3 { font-size: 20px; line-height: 1.3; margin: 32px 0 10px; }
.legal h4 { font-size: 17px; line-height: 1.35; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
/* rounded corners for product logo images */
.ico-badge--img, .fork-card .ico-badge--img, .dd-item .ico-badge--img { border-radius: 22%; overflow: hidden; }
.ico-badge--img img { border-radius: 22%; }
