/**
 * Selling landing /zhurnal-skotovoda/ — self-contained stylesheet.
 *
 * Loaded ONLY on the page carrying [calf_journal_about] (see
 * Enqueue::maybe_enqueue), which is why page-scoped overrides of the theme
 * (breadcrumbs, section paddings) are safe here. app.css does NOT load on
 * this page any more — every rule the landing needs lives in this file.
 *
 * Design language mirrors the app (frontend/src/styles.css): the earth
 * palette (pasture green / hay / terracotta / barn), Manrope-first stack,
 * and the hard "no pills" rule — buttons 10px, badges 6-8px, cards 12-16px,
 * NOTHING at 999px+.
 *
 * The page renders inside the theme container (.l-section-h), so the root
 * breaks out to full viewport width via margin-inline: calc(50% - 50vw);
 * section bands then paint edge to edge while .cja-wrap recenters content
 * at 1140px.
 */

/* ── Page-scoped theme neutralization ─────────────────────────────────── */

/* Impreza breadcrumbs (skt_inner_crumb) duplicate the hero — the
   BreadcrumbList JSON-LD stays, only the visual row is hidden. */
.skt-v4.skt-crumb {
  display: none;
}

/* The landing owns its vertical rhythm; the theme section adds none.
   .l-section-h carries its own responsive padding (80px on mobile) —
   both the wrapper and the inner block must be zeroed. */
#page-content .l-section:first-child,
#page-content .l-section:has(.cja),
#page-content .l-section:first-child > .l-section-h,
#page-content .l-section:has(.cja) > .l-section-h {
  padding-top: 0;
  padding-bottom: 0;
}
#page-content .l-section,
#page-content .l-section-h {
  overflow: visible;
}

/* 100vw includes the scrollbar — clip the sliver instead of scrolling it. */
body {
  overflow-x: clip;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */

.cja {
  --cja-bg: #faf6ee;
  --cja-elev: #ffffff;
  --cja-paper: #f3ede0;
  --cja-ink: #1f1a14;
  --cja-ink-2: #4a4034;
  --cja-muted: #6b5f4c;
  --cja-hair: #e6dfd0;
  --cja-hair-strong: #d6cdb8;

  --cja-forest: #4a6b3a;
  --cja-forest-deep: #39552c;
  --cja-forest-soft: #e8efd9;
  --cja-hay: #d9a441;
  --cja-hay-soft: #fbecc4;
  --cja-terracotta: #c5683f;
  --cja-terracotta-soft: #f5d8c8;
  --cja-barn: #8a3a2a;

  --cja-r-btn: 10px;
  --cja-r-badge: 7px;
  --cja-r-card: 16px;

  --cja-shadow-1: 0 1px 2px rgba(54, 40, 20, .06), 0 4px 14px rgba(54, 40, 20, .06);
  --cja-shadow-2: 0 4px 10px rgba(54, 40, 20, .08), 0 18px 40px rgba(54, 40, 20, .12);

  /* Full-bleed root: the theme container centers us, we take the viewport. */
  margin-inline: calc(50% - 50vw);
  background: var(--cja-bg);
  color: var(--cja-ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.cja *,
.cja *::before,
.cja *::after {
  box-sizing: border-box;
}

.cja h1,
.cja h2,
.cja h3,
.cja p,
.cja ul,
.cja ol,
.cja figure,
.cja blockquote {
  margin: 0;
  padding: 0;
}

.cja img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cja-wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* ── Shared atoms ─────────────────────────────────────────────────────── */

.cja-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cja-forest);
  margin-bottom: 12px;
}

.cja-h2 {
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--cja-ink);
  max-width: 21em;
}

.cja-section {
  padding-block: clamp(56px, 8vw, 104px);
}

.cja-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--cja-r-btn);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cja a.cja-btn,
.cja a.cja-btn:hover,
.cja a.cja-btn:focus {
  text-decoration: none;
}

.cja-btn--primary {
  background: var(--cja-forest);
  color: #fff;
}
.cja-btn--primary:hover {
  background: var(--cja-forest-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--cja-shadow-1);
}

.cja-btn--outline {
  background: transparent;
  color: var(--cja-forest);
  border-color: var(--cja-forest);
}
.cja-btn--outline:hover {
  background: var(--cja-forest-soft);
  color: var(--cja-forest-deep);
}

/* On the dark hero / final bands the main action inverts: white plate,
   forest text — green stays the "act" color either as fill or as ink. */
.cja-btn--hero {
  background: #fff;
  color: var(--cja-forest-deep);
  box-shadow: 0 10px 26px rgba(20, 30, 12, .3);
}
.cja-btn--hero:hover {
  background: var(--cja-hay-soft);
  color: var(--cja-forest-deep);
  transform: translateY(-1px);
}

.cja-btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.cja-btn--ghost:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.cja-btn:focus-visible {
  outline: 3px solid var(--cja-hay);
  outline-offset: 2px;
}

.cja-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--cja-r-badge);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
}

/* Decorative cattle silhouettes (includes/cattle-silhouettes.php). */
.cja-sil {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* ── 1. Hero ──────────────────────────────────────────────────────────── */

.cja-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(217, 164, 65, .18) 0%, rgba(217, 164, 65, 0) 46%),
    linear-gradient(155deg, var(--cja-forest-deep) 0%, var(--cja-forest) 62%, #55793f 100%);
  color: #fff;
}

.cja-hero .cja-sil--bull {
  color: #fff;
  opacity: .07;
  width: min(760px, 78vw);
  right: -8%;
  bottom: -14%;
}

.cja-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}

.cja-hero__title {
  font-size: clamp(30px, 5.4vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 15em;
}

.cja-hero .cja-eyebrow {
  color: var(--cja-hay);
}

.cja-hero__lead {
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  max-width: 34em;
}

.cja-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cja-hero__trust {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.cja-hero__visual {
  display: flex;
  justify-content: center;
}

/* CSS phone frame around the real screenshot. A device bezel, not a control
   — radius stays far below the pill threshold. */
.cja-phone {
  position: relative;
  width: min(300px, 76vw);
  padding: 10px;
  border-radius: 34px;
  background: #241d15;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    0 30px 70px rgba(15, 22, 9, .45),
    0 6px 18px rgba(15, 22, 9, .3);
}

.cja-phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .55);
  z-index: 1;
}

.cja-phone img {
  border-radius: 24px;
}

/* ── 2. Numbers band ──────────────────────────────────────────────────── */

.cja-stats {
  background: var(--cja-elev);
  border-block: 1px solid var(--cja-hair);
}

.cja-stats__grid {
  display: grid;
  gap: 20px;
  padding-block: clamp(30px, 4vw, 48px);
  text-align: center;
}

.cja-stat b {
  display: block;
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--cja-forest);
}

.cja-stat span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cja-muted);
}

/* ── 3. Pains → solutions ─────────────────────────────────────────────── */

.cja-pains__grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}

.cja-pain {
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair);
  border-radius: var(--cja-r-card);
  padding: 26px 24px;
  box-shadow: var(--cja-shadow-1);
}

.cja-pain__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cja-terracotta-soft);
  color: var(--cja-barn);
}

.cja-pain__icon svg {
  width: 26px;
  height: 26px;
}

.cja-pain h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cja-ink);
}

.cja-pain__problem {
  margin-top: 8px;
  font-size: 15px;
  color: var(--cja-muted);
}

.cja-pain__solution {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--cja-hair-strong);
  font-size: 15px;
  font-weight: 600;
  color: var(--cja-ink-2);
}

.cja-pain__solution .cja-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--cja-forest);
}

/* ── 4. Features ──────────────────────────────────────────────────────── */

.cja-features {
  background: var(--cja-paper);
}

.cja-features__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}

.cja-feature {
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cja-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--cja-shadow-1);
}

.cja-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--cja-forest-soft);
  color: var(--cja-forest);
}

.cja-feature__icon svg {
  width: 24px;
  height: 24px;
}

.cja-feature h3 {
  margin-top: 14px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--cja-ink);
}

.cja-feature p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--cja-muted);
}

/* ── 5. Steps ─────────────────────────────────────────────────────────── */

.cja-steps__list {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
  list-style: none;
  counter-reset: none;
}

.cja-step {
  position: relative;
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair);
  border-radius: var(--cja-r-card);
  padding: 26px 24px;
  box-shadow: var(--cja-shadow-1);
}

.cja-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cja-forest);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.cja-step h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--cja-ink);
}

.cja-step p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--cja-muted);
}

/* ── 6. Live demo ─────────────────────────────────────────────────────── */

.cja-demo {
  background: var(--cja-forest-soft);
}

.cja-demo__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cja-demo__text {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--cja-ink-2);
  max-width: 32em;
}

.cja-demo__cta {
  margin-top: 24px;
}

.cja-demo__shots {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 18px;
  align-items: start;
}

.cja-shot {
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair-strong);
  border-radius: var(--cja-r-card);
  overflow: hidden;
  box-shadow: var(--cja-shadow-2);
}

.cja-shot--animal {
  margin-top: 44px;
}

.cja-shot figcaption {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cja-muted);
  border-top: 1px solid var(--cja-hair);
  background: var(--cja-elev);
}

/* ── 7. Case ──────────────────────────────────────────────────────────── */

.cja-case {
  position: relative;
  overflow: hidden;
}

.cja-case .cja-sil--cow {
  color: var(--cja-ink);
  opacity: .05;
  width: min(560px, 62vw);
  right: -6%;
  bottom: -18%;
}

.cja-case__quote {
  position: relative;
  max-width: 800px;
  border-left: 4px solid var(--cja-terracotta);
  padding-left: clamp(20px, 3vw, 32px);
}

.cja-case__quote p {
  font-size: clamp(21px, 3.2vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--cja-ink);
}

.cja-case__quote footer {
  margin-top: 14px;
  font-size: 15.5px;
  color: var(--cja-muted);
}

/* ── 8. Pricing ───────────────────────────────────────────────────────── */

.cja-pricing {
  background: var(--cja-paper);
}

.cja-pricing__trial {
  display: block;
  width: fit-content;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cja-hay-soft);
  border: 1px solid rgba(217, 164, 65, .5);
  color: #6d4f12;
  font-size: 14.5px;
  font-weight: 700;
}

/* Month ↔ year: two visually-hidden radios drive prices AND the switch
   state — pure CSS, no JS. Radios stay focusable for keyboard users. */
.cja-period-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cja-period-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair-strong);
  border-radius: var(--cja-r-btn);
}

.cja-period-switch label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cja-ink-2);
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease;
}

#cja-period-month:checked ~ .cja-period-switch label[for="cja-period-month"],
#cja-period-year:checked ~ .cja-period-switch label[for="cja-period-year"] {
  background: var(--cja-forest);
  color: #fff;
}

#cja-period-month:focus-visible ~ .cja-period-switch label[for="cja-period-month"],
#cja-period-year:focus-visible ~ .cja-period-switch label[for="cja-period-year"] {
  outline: 3px solid var(--cja-hay);
  outline-offset: 2px;
}

.cja-badge--gift {
  background: var(--cja-hay-soft);
  color: #6d4f12;
}

#cja-period-year:checked ~ .cja-period-switch .cja-badge--gift {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.cja-plans {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  align-items: stretch;
}

.cja-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair-strong);
  border-radius: var(--cja-r-card);
  padding: 26px 22px;
}

.cja-plan--featured {
  border: 2px solid var(--cja-forest);
  box-shadow: var(--cja-shadow-2);
}

.cja-badge--popular {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--cja-forest);
  color: #fff;
}

.cja-plan__name {
  font-size: 17px;
  font-weight: 800;
  color: var(--cja-ink);
}

.cja-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.cja-price b {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--cja-ink);
}

.cja-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--cja-muted);
}

/* Year prices hidden until the year radio is on. */
.cja-price--year {
  display: none;
}

#cja-period-year:checked ~ .cja-plans .cja-price--year {
  display: flex;
}

#cja-period-year:checked ~ .cja-plans .cja-price--month {
  display: none;
}

.cja-plan__limit {
  margin-top: 10px;
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--cja-r-badge);
  background: var(--cja-forest-soft);
  color: #33501f;
  font-size: 13.5px;
  font-weight: 700;
}

.cja-plan__list {
  list-style: none;
  margin-top: 16px;
  margin-bottom: 22px;
  display: grid;
  gap: 8px;
  flex-grow: 1;
}

.cja-plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--cja-ink-2);
}

.cja-plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--cja-forest-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6b3a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.4l4 4 8-8.6'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.cja-plan .cja-btn {
  width: 100%;
}

.cja-pricing__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--cja-muted);
}

/* ── 9. FAQ ───────────────────────────────────────────────────────────── */

.cja-faq__list {
  margin-top: clamp(24px, 4vw, 40px);
  background: var(--cja-elev);
  border: 1px solid var(--cja-hair);
  border-radius: var(--cja-r-card);
  overflow: hidden;
}

.cja-faq__item {
  border-bottom: 1px solid var(--cja-hair);
}

.cja-faq__item:last-child {
  border-bottom: 0;
}

.cja-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cja-ink);
  cursor: pointer;
  list-style: none;
}

.cja-faq__item summary::-webkit-details-marker {
  display: none;
}

.cja-faq__item summary svg {
  flex: 0 0 auto;
  color: var(--cja-forest);
  transition: transform .2s ease;
}

.cja-faq__item[open] summary svg {
  transform: rotate(180deg);
}

.cja-faq__item summary:hover {
  background: var(--cja-bg);
}

.cja-faq__item > p {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cja-ink-2);
  max-width: 46em;
}

/* ── 10. Final CTA ────────────────────────────────────────────────────── */

.cja-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cja-forest-deep) 0%, var(--cja-forest) 70%, #55793f 100%);
  color: #fff;
  text-align: center;
}

.cja-final .cja-sil--calf {
  color: #fff;
  opacity: .07;
  width: min(420px, 60vw);
  left: -6%;
  bottom: -16%;
}

.cja-final__inner {
  position: relative;
  padding-block: clamp(60px, 8vw, 110px);
}

.cja-final .cja-h2 {
  color: #fff;
  margin-inline: auto;
}

.cja-final__lead {
  margin-top: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, .9);
}

.cja-final__cta {
  margin-top: 28px;
}

.cja-final__trust {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

/* ── ?pwa=1 (in-app info screen inside the app shell) ─────────────────── */

/* The shell chrome (cj-topbar / cj-drawer) is styled by app.css, which the
   enqueue keeps for this mode. Here: tighten the hero (the shell topbar
   already brands the page) and keep the demo link tap-friendly. */
body.cj-app-shell .cja-hero__grid {
  padding-block: 40px 56px;
}

body.cj-app-shell .cja {
  margin-inline: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (min-width: 560px) {
  .cja-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cja-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cja-pains__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cja-steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
  .cja-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cja-hero__grid {
    grid-template-columns: 1.05fr .95fr;
  }
  .cja-hero__visual {
    justify-content: flex-end;
  }
  .cja-phone {
    width: 320px;
  }
  .cja-features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cja-demo__grid {
    grid-template-columns: .9fr 1.1fr;
  }
  .cja-plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 559px) {
  .cja-period-switch {
    width: 100%;
    justify-content: stretch;
  }
  .cja-period-switch label {
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .cja-demo__shots {
    grid-template-columns: 1fr;
  }
  .cja-shot--animal {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cja *,
  .cja *::before,
  .cja *::after {
    transition: none !important;
  }
}
