/* The tagline is the page's <h1> (what search engines read as the topic);
   "Sign in" is an <h2> styled exactly as the old <h1> was. */
h1.auth-headline { margin: 0; }
.auth-main .auth-title {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em;
  color: #0E131A; margin: 0 0 5px;
}
@media (max-width: 520px) { .auth-main .auth-title { font-size: 1.35rem; } }

/* =====================================================================
   PRODUCT OVERVIEW under the sign-in sheet (login.php / home page)
   ---------------------------------------------------------------------
   Same light sheets as the sign-in card, floating on the fixed harvest
   footage. The palette is re-declared locally for the same reason the
   sign-in sheet does it: the page sits on a bright field in either theme.
   ===================================================================== */

.auth-more-link {
  margin-left: auto; font-weight: 600; font-size: .78rem; white-space: nowrap;
  color: #0A2A20; text-decoration: underline; text-underline-offset: 2px;
}
.auth-more-link:hover { color: #047857; }

.landing {
  position: relative; z-index: 1;
  width: min(1080px, 100%); margin: 0 auto; padding: 8px 20px 56px;
  display: flex; flex-direction: column; gap: 18px;
}

.landing-sheet,
.landing-foot {
  --surface: #FFFFFF;
  --surface-2: #F5F8F6;
  --line: #E3E9E5;
  --text: #131720;
  --muted: #4B5563;
  --accent: #047857;
  --accent-dim: #059669;
  --accent-glow: rgba(4, 120, 87, .10);
  --on-accent: #FFFFFF;
  color-scheme: light;
  color: var(--text);
}

.landing-sheet {
  background: rgba(255, 255, 255, .96);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(4, 16, 11, .45);
  padding: 40px 38px;
}

.landing-eyebrow {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.landing h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2; font-weight: 650;
  letter-spacing: -.02em; color: var(--text); margin: 0 0 12px; max-width: 30ch;
}
.landing-intro { color: var(--muted); font-size: .95rem; line-height: 1.65; max-width: 68ch; margin: 0 0 26px; }

.landing-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.landing-grid li {
  background: linear-gradient(165deg, var(--accent-glow), transparent 60%), var(--surface-2);
  border: 1px solid var(--line); border-radius: 13px; padding: 18px;
}
.landing-grid .ico { color: var(--accent); }
.landing-grid h3 { font-size: .95rem; font-weight: 650; margin: 10px 0 5px; color: var(--text); }
.landing-grid p { font-size: .84rem; line-height: 1.55; color: var(--muted); margin: 0; }

.landing-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.landing-split .landing-intro { margin-bottom: 0; }
.landing-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.landing-ticks li { display: flex; gap: 11px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.landing-ticks .ico { color: var(--accent); margin-top: 4px; }
.landing-ticks strong { color: var(--text); font-weight: 650; }

.landing-faq details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.landing-faq details:first-of-type { border-top: 1px solid var(--line); }
.landing-faq summary {
  cursor: pointer; list-style: none; font-weight: 650; font-size: .98rem; color: var(--text);
  display: flex; justify-content: space-between; gap: 14px;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; font-weight: 400; }
.landing-faq details[open] summary::after { content: "\2212"; }
.landing-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.landing-faq details p { margin: 9px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; max-width: 72ch; }

.landing-cta { text-align: center; }
.landing-cta h2, .landing-cta .landing-intro { margin-left: auto; margin-right: auto; }
.landing-cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.landing-cta .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-size: .92rem; text-decoration: none; }
:root .landing .btn:hover { background: var(--accent-dim); color: var(--on-accent); }
.landing .btn-ghost-light { background: transparent; color: var(--text); border-color: #9AA5A0; }
:root .landing .btn-ghost-light:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }

.landing-foot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 6px 0; font-size: .82rem; color: rgba(255, 255, 255, .86);
}
.landing-foot a { color: #FFFFFF; text-decoration: none; }
.landing-foot a:hover { text-decoration: underline; }
.landing-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .landing { width: min(500px, 100%); }
  .landing-grid { grid-template-columns: 1fr 1fr; }
  .landing-split { grid-template-columns: 1fr; gap: 22px; }
  .landing-sheet { padding: 28px 24px; }
  .auth-more-link { margin-left: 0; }
  .auth-region { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .landing { padding: 4px 20px 40px; }
  .landing-grid { grid-template-columns: 1fr; }
  .landing-sheet { padding: 24px 20px; border-radius: 16px; }
}

/* =====================================================================
   PAGE FLIP: sign-in screen → product pages (ported from School ERP)
   ---------------------------------------------------------------------
   With JavaScript on, the sign-in screen is a page of its own. The
   "Explore" button flips it up like a calendar page and the product
   sheets rise underneath as a separate vertical scroll, over the same
   harvest footage. Without JavaScript the page scrolls as before.
   The gradient is the farm's greens; swap these four for the Luzor
   blue→violet→magenta (#29b6f6, #7e6cf0, #c94bd8) to match School ERP.
   ===================================================================== */
.home-flip {
  --fx-1: #a3e635;
  --fx-2: #10b981;
  --fx-3: #047857;
  --fx-glow: 16, 185, 129;        /* rgb of --fx-2, for the glows */
}

/* The footage now lives outside the sign-in wrapper, so the wrapper
   must not paint its own dark backdrop over it. */
.home-flip .auth-wrap.has-video { background: transparent; overflow: visible; }

.flip-ready, .flip-ready body.home-flip { height: 100%; overflow: hidden; }
.flip-ready .flip-front,
.flip-ready .flip-back {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.flip-ready .flip-front {
  z-index: 3;
  display: flex; flex-direction: column;
  transform-origin: 50% 0%;
  transform: perspective(2400px) rotateX(0deg);
  transition: transform 1s cubic-bezier(.62,.04,.28,1), opacity .6s ease .35s, visibility 0s linear 0s;
  will-change: transform;
}
.flip-ready .flip-front .auth-wrap { min-height: 0; flex: 1 0 auto; padding-bottom: 8px; }
.flip-ready .flip-front::after {           /* page shading while it turns */
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,16,11,0) 0%, rgba(4,16,11,.55) 100%);
  opacity: 0; transition: opacity .9s ease;
}
body.is-flipped .flip-front {
  transform: perspective(2400px) rotateX(88deg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 1s cubic-bezier(.62,.04,.28,1), opacity .45s ease .5s, visibility 0s linear 1s;
}
body.is-flipped .flip-front::after { opacity: 1; }

.flip-ready .flip-back {
  z-index: 2;
  background: linear-gradient(180deg, rgba(4,16,11,.22), rgba(4,16,11,.10) 40%, rgba(4,16,11,.30));
  transform-origin: 50% 100%;
  transform: perspective(2400px) translateY(60px) scale(.93);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .5s ease, visibility 0s linear .9s;
}
body.is-flipped .flip-back {
  transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform 1.05s cubic-bezier(.16,1,.3,1) .28s, opacity .6s ease .28s, visibility 0s linear 0s;
}
.flip-ready.flip-instant .flip-front, .flip-ready.flip-instant .flip-back,
.flip-ready.flip-instant .flip-front::after { transition: none !important; }

.flip-ready .flip-back .landing { padding-top: 22px; }
/* the browser's own jump to #features / #faq clears the sticky bar too */
.flip-ready .flip-back .landing-sheet { scroll-margin-top: 76px; }

/* ---------- the Explore arrow under the sign-in sheet ---------- */
.explore-dock { display: none; }
.flip-ready .explore-dock {
  display: flex; justify-content: center;
  position: relative; z-index: 4;
  padding: 6px 16px 26px;
}
.explore-btn {
  --ring: conic-gradient(from var(--spin, 0deg), var(--fx-1), var(--fx-2), var(--fx-3), var(--fx-1));
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 'Inter', 'Segoe UI', sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #131720;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(4, 16, 11, .40), inset 0 0 0 1px rgba(255, 255, 255, .6);
  animation: explore-pop .9s cubic-bezier(.34,1.56,.64,1) 1.1s backwards;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s cubic-bezier(.16,1,.3,1);
}
.explore-btn::before {                     /* animated gradient rim */
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px;
  background: var(--ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9; animation: explore-spin 6s linear infinite;
}
.explore-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(4, 16, 11, .50), inset 0 0 0 1px #fff; }
.explore-btn:active { transform: translateY(0) scale(.98); }
.explore-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.explore-label { white-space: nowrap; text-align: left; }
.explore-label small { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
                       text-transform: none; color: #4B5563; }
.explore-orb {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--fx-2), #059669 55%, var(--fx-3));
  box-shadow: 0 6px 18px rgba(var(--fx-glow), .45);
  overflow: visible;
}
.explore-orb::after {                      /* soft sonar pulse */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--fx-glow), .55);
  animation: explore-pulse 2.4s ease-out 2s infinite;
}
.explore-orb svg { width: 20px; height: 20px; color: #fff; overflow: visible; }
.explore-orb .c1 { animation: chev 1.6s cubic-bezier(.45,0,.55,1) infinite; }
.explore-orb .c2 { animation: chev 1.6s cubic-bezier(.45,0,.55,1) .18s infinite; }
.explore-btn:hover .explore-orb .c1, .explore-btn:hover .explore-orb .c2 { animation-duration: 1s; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes explore-spin { to { --spin: 360deg; } }
@keyframes explore-pop {
  0%   { opacity: 0; transform: translateY(-18px) scale(.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes explore-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--fx-glow), .5); }
  80%, 100% { box-shadow: 0 0 0 16px rgba(var(--fx-glow), 0); }
}
@keyframes chev {
  0%   { transform: translateY(-5px); opacity: 0; }
  35%  { opacity: 1; }
  70%  { transform: translateY(4px); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---------- top bar on the product pages ---------- */
.back-bar { display: none; }
.flip-ready .back-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 5;
  height: 60px; padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(4, 16, 11, .10);
  box-shadow: 0 8px 30px rgba(4, 16, 11, .18);
}
.back-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: #131720; text-decoration: none;
}
.back-brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #047857; background: rgba(4, 120, 87, .10); border: 1px solid #047857;
}
.back-brand .sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #047857;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 'Inter', 'Segoe UI', sans-serif; color: #fff;
  background: linear-gradient(135deg, var(--fx-2), #059669 55%, var(--fx-3)); border: 0;
  box-shadow: 0 6px 18px rgba(var(--fx-glow), .35);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(var(--fx-glow), .45); }
.back-btn:focus-visible { outline: 2px solid #047857; outline-offset: 3px; }
.back-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
                 transform-origin: 0 50%; transform: scaleX(0);
                 background: linear-gradient(90deg, var(--fx-1), var(--fx-2), var(--fx-3)); }

/* product sheets rise in as they scroll into view */
.flip-ready .flip-back .landing-sheet { opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.flip-ready .flip-back .landing-sheet.in { opacity: 1; transform: none; }

/* ---------- the badge on the sign-in panel ---------- */
.auth-aside .pill.comply {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; margin: -6px 0 -8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: #131720;
  border-radius: 999px;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(90deg, var(--fx-1), var(--fx-2), var(--fx-3)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(var(--fx-glow), .22);
}
.pill.comply svg { width: 15px; height: 15px; flex: none; }
.pill.comply .sep { width: 1px; height: 12px; background: #CBD5D0; }
.pill.comply .std { background: linear-gradient(90deg, #0d9488, #15803d); -webkit-background-clip: text;
                    background-clip: text; color: transparent; font-weight: 700; }

@media (max-width: 560px) {
  .flip-ready .back-bar { padding: 0 14px; }
  .back-brand .sub { display: none; }
  .explore-btn { padding-left: 18px; gap: 12px; }
  .auth-aside .pill.comply { font-size: 11.5px; gap: 6px; padding: 5px 11px 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-ready .flip-back .landing-sheet { opacity: 1; transform: none; }
}

/* ---------- eye button on the password field ---------- */
.pw-field { position: relative; }
.auth-main .pw-field input { padding-right: 46px; }
/* Edge's built-in reveal button would make a second eye */
.pw-field input::-ms-reveal, .pw-field input::-ms-clear { display: none; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 8px; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: #4B5563;
  transition: color .2s ease, background-color .2s ease;
}
.pw-toggle:hover { color: #047857; background: rgba(4, 120, 87, .08); }
.pw-toggle:focus-visible { outline: 2px solid #047857; outline-offset: 1px; }
.pw-toggle svg { width: 19px; height: 19px; }
.pw-toggle .eye-shut { display: none; }
.pw-toggle[aria-pressed="true"] .eye-open { display: none; }
.pw-toggle[aria-pressed="true"] .eye-shut { display: block; }

/* ---------- "Luzor AI" in the headline: glowing farm greens ----------
   Same motion as School ERP (a slow colour sweep, a 2.4s pulse and a
   halo that breathes with it), in the farm's own greens. The headline is
   its own stacking layer so the halo sits above the panel, behind the words. */
h1.auth-headline { position: relative; z-index: 0; }
.auth-headline .ai-glow {
  position: relative; display: inline-block; white-space: nowrap;
  padding: 0 .04em;
  background: linear-gradient(90deg, #047857, #10b981, #65a30d, #10b981, #047857);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 700;
  animation: ai-sweep 6s linear infinite, ai-glow 2.4s ease-out 2s infinite;
}
.auth-headline .ai-glow::after {            /* soft halo behind the words */
  content: ""; position: absolute; inset: 8% -10% 0; z-index: -1; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(16,185,129,.42), rgba(163,230,53,.16) 62%, transparent);
  filter: blur(12px); opacity: .35;
  animation: ai-halo 2.4s ease-out 2s infinite;
  pointer-events: none;
}
@keyframes ai-sweep { to { background-position: -200% 0; } }
@keyframes ai-glow {
  0%   { filter: drop-shadow(0 0 0 rgba(16,185,129,0)); }
  25%  { filter: drop-shadow(0 0 8px rgba(16,185,129,.65)) drop-shadow(0 0 20px rgba(101,163,13,.35)); }
  80%, 100% { filter: drop-shadow(0 0 0 rgba(16,185,129,0)); }
}
@keyframes ai-halo {
  0%   { opacity: .35; transform: scale(.9); }
  25%  { opacity: 1; transform: scale(1.02); }
  80%, 100% { opacity: .35; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-headline .ai-glow { background-position: 0 0; filter: none; }
}

/* =====================================================================
   LANGUAGES, DEMO FARMS AND THE USER GUIDE (added 2026-11-20)
   ===================================================================== */

/* The fixed language button belongs to the sign-in page; the product pages
   carry their own in the top bar. */
body.is-flipped .public-topbar { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.public-topbar { transition: opacity .3s .5s; }
.back-tools { display: flex; align-items: center; gap: 10px; }
.back-tools .lang-pick-public .lang-btn {
  height: 36px; color: #131720; background: rgba(255, 255, 255, .9); border-color: #cfd8d3;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.back-tools .lang-pick-public .lang-btn:hover,
.back-tools .lang-pick-public .lang-btn[aria-expanded="true"] { color: #047857; background: #fff; border-color: #047857; }
@media (max-width: 560px) {
  .back-tools .lang-cur { display: none; }
  .back-tools .lang-btn { padding: 0 9px; }
  .back-btn { padding: 9px 13px 9px 10px; }
}

/* ---------- guide link under the pitch ---------- */
.auth-guide-link {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 0;
  font-size: .78rem; font-weight: 600; color: var(--muted);
}
.auth-guide-link .ico { color: #047857; flex-shrink: 0; }
.auth-guide-link a { color: #0A2A20; text-decoration: underline; text-underline-offset: 2px; }
.auth-guide-link a:hover { color: #047857; }

/* ---------- demo farms: quick buttons under the sign-in form ---------- */
.demo-quick { margin-top: 18px; }
.demo-quick-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4B5563;
}
.demo-quick-h::before, .demo-quick-h::after { content: ""; flex: 1; height: 1px; background: rgba(4, 16, 11, .14); }
.demo-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-quick-row form { margin: 0; }
.demo-quick-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: start;
  padding: 9px 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(4, 120, 87, .35); color: #131720;
  font: inherit; transition: border-color .2s, background .2s, transform .2s;
}
.demo-quick-btn:hover { border-color: #047857; background: #fff; transform: translateY(-1px); }
.demo-quick-btn:focus-visible { outline: 2px solid #047857; outline-offset: 2px; }
.demo-quick-cur {
  flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font: 700 .82rem/1 'JetBrains Mono', ui-monospace, monospace; color: #fff;
  background: linear-gradient(135deg, #10b981, #047857);
}
.demo-quick-txt { min-width: 0; line-height: 1.25; }
.demo-quick-txt b { display: block; font-size: .8rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-quick-txt small { display: block; font-size: .7rem; color: #4B5563; }
.demo-quick-more { display: inline-block; margin-top: 8px; font-size: .74rem; font-weight: 600; color: #0A2A20;
  text-decoration: underline; text-underline-offset: 2px; }
.demo-quick-more:hover { color: #047857; }
@media (max-width: 380px) { .demo-quick-row { grid-template-columns: 1fr; } }

/* ---------- demo farms: cards on the product pages ---------- */
.demo-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--accent-glow), transparent 55%), var(--surface-2);
}
.demo-card-top { display: flex; gap: 14px; align-items: center; }
.demo-card-cur {
  flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font: 700 1rem/1 'JetBrains Mono', ui-monospace, monospace; color: #fff;
  background: linear-gradient(135deg, #a3e635, #10b981 55%, #047857); box-shadow: 0 8px 20px rgba(4, 120, 87, .25);
}
.demo-card h3 { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--text); }
.demo-card-who { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.demo-card-what { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.demo-card-band { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .82rem; font-weight: 600; color: var(--text); }
.demo-card-band .ico { color: var(--accent); flex-shrink: 0; }
.demo-card-login {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0;
  padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed #c6d3cc;
}
.demo-card-login dt { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.demo-card-login dd { margin: 3px 0 0; min-width: 0; }
.demo-card-login code { font: 600 .8rem/1.3 'JetBrains Mono', ui-monospace, monospace; color: #0A2A20; word-break: break-all; user-select: all; }
.demo-card form { margin: auto 0 0; }
.demo-card .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: .9rem; }
.demo-note { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .demo-cards { grid-template-columns: 1fr; } }

/* ---------- user guide ---------- */
.landing-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.landing-guide .landing-intro { margin-bottom: 20px; }
.guide-actions { justify-content: flex-start; }
.guide-actions .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: .9rem; text-decoration: none; }
.btn-meta { font-weight: 500; opacity: .8; font-size: .8em; }
.guide-lang-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.guide-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.guide-toc li { border-top: 1px solid var(--line); }
.guide-toc li:last-child { border-bottom: 1px solid var(--line); }
.guide-toc a {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 2px;
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 550;
}
.guide-toc a:hover { color: var(--accent); }
.guide-toc .n { font: 700 .75rem/1 'JetBrains Mono', ui-monospace, monospace; color: var(--accent); min-width: 22px; }
@media (max-width: 860px) { .landing-guide { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Register your farm: the page's main call to action ---------- */
.register-cta {
  position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #0A2A20;
  background: linear-gradient(120deg, #FDE68A 0%, #FCD34D 45%, #A3E635 100%);
  border: 1px solid rgba(146, 64, 14, .25);
  box-shadow: 0 10px 28px rgba(202, 138, 4, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .2s, box-shadow .2s;
}
.register-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(202, 138, 4, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.register-cta:focus-visible { outline: 3px solid #047857; outline-offset: 3px; }
.register-cta-ico {
  flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #047857; color: #fff; box-shadow: 0 4px 12px rgba(4, 120, 87, .35);
}
.register-cta-txt { flex: 1; min-width: 0; line-height: 1.25; }
.register-cta-txt small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #78350F; }
.register-cta-txt b { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; color: #052e22; }
.register-cta-txt em { display: block; margin-top: 2px; font-style: normal; font-size: .76rem; color: #3f3a1a; }
.register-cta-arrow { font-size: 1.4rem; font-weight: 700; color: #052e22; transition: transform .2s; }
.register-cta:hover .register-cta-arrow { transform: translateX(4px); }
/* A slow glow so the eye finds it; still for anyone who asked for less motion. */
.register-cta::after {
  content: ""; position: absolute; inset: -3px; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, .55); animation: registerGlow 2.8s ease-out infinite;
}
@keyframes registerGlow { 0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(250, 204, 21, 0); } }
@media (prefers-reduced-motion: reduce) { .register-cta::after { animation: none; } .register-cta, .register-cta-arrow { transition: none; } }

/* Top bar (front) and the features page bar: always one tap away. */
.topbar-register {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: .84rem; font-weight: 750; white-space: nowrap; text-decoration: none; color: #052e22;
  background: linear-gradient(120deg, #FCD34D, #A3E635); border: 1px solid rgba(146, 64, 14, .25);
  box-shadow: 0 6px 18px rgba(202, 138, 4, .35);
  transition: transform .2s, box-shadow .2s;
}
.topbar-register .ico, .topbar-register svg { color: #047857; }
.topbar-register:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(202, 138, 4, .45); }
.topbar-register:focus-visible { outline: 3px solid #047857; outline-offset: 2px; }
@media (max-width: 560px) {
  .topbar-register { height: 34px; padding: 0 12px; font-size: .78rem; }
  .register-cta-txt b { font-size: 1.02rem; }
}
/* Phones: the features bar keeps "Register your farm" in words; the brand
   name and "Back to sign in" shrink to their icons instead. */
@media (max-width: 440px) {
  .flip-ready .back-brand { font-size: 0; gap: 0; }
  .flip-ready .back-brand .sub { display: none; }
  .back-tools #backBtn { font-size: 0; gap: 0; padding-inline: 10px; }
  .back-tools { gap: 6px; }
}

/* The sign-in card underlines its links; the call to action is a button, not a link in text. */
.auth-sheet a.register-cta, .auth-sheet a.register-cta:hover, .auth-card a.register-cta { text-decoration: none; }

/* =====================================================================
   PHONES (2026-12-01). Most farmers open the system on a phone, often with
   the text size turned up. On a phone the sign-in screen is one column:
   a solid top bar (register + language) that never covers the text, the
   sign-in form first on a plain white panel, then what the system does.
   Every column is minmax(0, 1fr) and long words may break, so large text
   can no longer push the card past the edge of the screen (the front page
   is a fixed panel that clips, it does not scroll sideways).
   ===================================================================== */
@media (max-width: 600px) {
  html body .public-topbar {
    top: 0; left: 0; right: 0; inset-inline-end: 0;
    justify-content: space-between; gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
    background: rgba(6, 18, 13, .9);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  }
  html body .public-topbar .topbar-register { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
  .flip-front .auth-wrap.has-video, .auth-wrap.has-video {
    min-height: 0; align-items: flex-start;
    padding: calc(62px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 14px max(10px, env(safe-area-inset-left, 0px));
  }
  .auth-sheet.auth-split { display: flex; flex-direction: column; width: 100%; max-width: 100%; border-radius: 16px; }
  .auth-sheet.auth-split > * { min-width: 0; max-width: 100%; }
  .auth-sheet, .auth-sheet * { overflow-wrap: anywhere; }
  .auth-sheet .ui, .auth-sheet b { overflow-wrap: normal; }

  /* The way in comes first, on solid white: no frosted glass behind the fields. */
  .auth-main {
    order: -1; padding: 22px 18px 20px; border: 0;
    background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none;
    --muted: #4B5563; --field-border: #868F87;
  }
  .auth-main .auth-title, .auth-main h1 { font-size: 1.4rem; }
  .auth-main .lead { margin-bottom: 16px; }
  .auth-main .form-group { margin-bottom: 14px; }
  .auth-main .form-group label { font-size: .78rem; }
  .auth-main .form-group input { font-size: 16px; min-height: 50px; padding: 12px 14px; background: #FFFFFF; } /* 16px: no zoom-in on iPhone */
  .auth-main .pw-field input { padding-right: 52px; }
  .auth-forgot { margin: 0 0 14px; }
  .auth-forgot a { display: inline-block; padding: 6px 0; }
  .auth-main .btn.btn-block { min-height: 52px; font-size: 1rem; border-radius: 12px; }
  .demo-quick-row { grid-template-columns: minmax(0, 1fr); }
  .demo-quick-btn { min-height: 56px; }

  .auth-aside { padding: 22px 18px; gap: 18px; border: 0; border-top: 1px solid var(--line); }
  .auth-aside .pill.comply { flex-wrap: wrap; max-width: 100%; row-gap: 2px; }
  .auth-headline { font-size: 1.2rem; }
  .auth-region, .auth-guide-link { flex-wrap: wrap; }

  .flip-ready .explore-dock { padding: 4px 10px 22px; }
  .explore-btn { max-width: 100%; }
  .explore-label { white-space: normal; min-width: 0; }
  .back-tools { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
  .register-cta { gap: 12px; padding: 14px; }
}
