/* foodtech.guru accounts (2026-11-21): header Demo / Log in, the sign-in popup, plan buttons and the Web App button.
   Loaded on every page together with ftg-account.js. Header rules need !important to beat seo-page-layout.css. */
:root { --ftga-navy: #01034f; --ftga-orange: #ff643a; --ftga-purple: #c86cf0; --ftga-yellow: #f5f255; --ftga-green: #00d865; }

/* Header: Demo Dashboard + Log in, after the yellow store pill. */
.ftg-site-header .ftg-header-account { display: flex !important; align-items: center; gap: 10px; flex-shrink: 0; }
.ftg-site-header .ftg-header-account a,
.ftg-site-header .ftg-header-account button {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px !important;
  border-radius: 12px !important; font: 600 15px/1 Montserrat, system-ui, sans-serif !important; white-space: nowrap;
  text-decoration: none !important; cursor: pointer; box-sizing: border-box;
}
.ftg-site-header .ftg-header-account .ftga-demo { border: 2px solid #ffffffaa !important; color: #fff !important; background: transparent !important; }
.ftg-site-header .ftg-header-account .ftga-demo:hover { border-color: #fff !important; text-decoration: none !important; }
.ftg-site-header .ftg-header-account .ftga-login { border: 2px solid #fff !important; background: #fff !important; color: var(--ftga-navy) !important; }
.ftg-site-header .ftg-header-account .ftga-login:hover { background: var(--ftga-yellow) !important; border-color: var(--ftga-yellow) !important; }
.ftg-site-header .ftg-header-mobile .ftga-mobile-account { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.ftg-site-header .ftg-header-mobile .ftga-mobile-account a,
.ftg-site-header .ftg-header-mobile .ftga-mobile-account button { flex: 1 1 140px; }
@media (min-width: 761px) { .ftg-site-header .ftg-header-mobile .ftga-mobile-account { display: none !important; } }
@media (max-width: 760px) { .ftg-site-header .ftg-header-account { display: none !important; } }

/* Web App button: the third button next to the store buttons (hero, final CTA, footer). */
a.ftg-webapp {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: var(--ftga-purple) !important; color: #000 !important; border: 2.5px solid #000 !important;
  text-decoration: none !important; margin: 0 !important; cursor: pointer;
}
a.ftg-webapp svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
a.btn.ftg-webapp { box-shadow: var(--sh, 6px) var(--sh, 6px) 0 #000; }
a.ftg-webapp.ftga-pill { border-radius: 999px !important; font: 600 15px/1 Montserrat, system-ui, sans-serif !important; padding: 11px 18px !important; }
.ftg-site-footer a.ftg-footer-button.ftg-webapp { display: inline-flex !important; padding: 8px 14px !important; font-size: 16px !important; background: var(--ftga-purple) !important; color: #000 !important; border: 0 !important; }
.hero-ctas a.ftg-webapp, .ftg-badges a.ftg-webapp { padding: 15px 26px; border-radius: 16px; font: 600 19px/1 Oswald, "Arial Narrow", sans-serif; }
.ftg-badges a.ftg-webapp { line-height: 1 !important; height: 54px; box-sizing: border-box; padding: 0 22px; border-radius: 10px; }
.ftg-badges-lg a.ftg-webapp { height: 60px; }

/* Plan buttons (<button>) look like the old plan links. */
button.plan-btn { display: block; width: 100%; border: 0; font: 600 16px/1.2 Montserrat, system-ui, sans-serif; cursor: pointer; margin-top: auto; }
button.plan-btn[disabled] { opacity: .6; cursor: progress; }
.plan .ftga-trial-note { margin: 8px 0 0; font-size: 13px; text-align: center; opacity: .8; }

/* Popup */
.ftga-overlay { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; background: rgba(1, 3, 79, .55); }
.ftga-overlay[hidden] { display: none; }
.ftga-dialog {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box;
  background: #fff; color: #0b0b12; border: 2.5px solid #000; border-radius: 24px; box-shadow: 8px 8px 0 #000;
  padding: 28px 24px 24px; font: 500 15px/1.5 Montserrat, system-ui, sans-serif; text-align: left;
}
.ftga-dialog h2 { margin: 0 0 6px; font: 700 28px/1.1 Oswald, "Arial Narrow", sans-serif; text-transform: uppercase; color: var(--ftga-navy); }
.ftga-dialog p { margin: 0 0 14px; color: #4a4a58; }
.ftga-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #000; }
.ftga-providers { display: grid; gap: 10px; margin: 16px 0; }
.ftga-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; box-sizing: border-box;
  border: 2px solid #000; border-radius: 999px; background: #fff; color: #000; font: 700 15px/1 Montserrat, system-ui, sans-serif;
  cursor: pointer; text-decoration: none;
}
.ftga-btn:hover { background: var(--ftga-yellow); }
.ftga-btn svg { width: 20px; height: 20px; flex: none; }
.ftga-btn.ftga-primary { background: var(--ftga-orange); border-color: var(--ftga-orange); color: #fff; }
.ftga-btn.ftga-primary:hover { background: #e9542c; }
.ftga-btn[disabled] { opacity: .6; cursor: progress; }
.ftga-or { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; color: #4a4a58; font-size: 13px; }
.ftga-or::before, .ftga-or::after { content: ""; flex: 1; height: 1px; background: #e6dcd5; }
.ftga-form { display: grid; gap: 8px; }
.ftga-form label { font-size: 13px; font-weight: 700; }
.ftga-form input { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 14px; border: 1.5px solid #bdb3ac; border-radius: 12px; font: inherit; background: #fff; color: #000; }
.ftga-form input:focus { outline: 3px solid #ffc845; outline-offset: 1px; }
.ftga-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; }
.ftga-link { border: 0; background: none; padding: 0; color: var(--ftga-navy); text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; }
.ftga-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; }
.ftga-msg.ftga-error { color: #b3261e; }
.ftga-msg.ftga-ok { color: #0a7a3c; }
.ftga-fine { margin-top: 14px !important; font-size: 12px; color: #4a4a58; }
.ftga-menu { position: absolute; z-index: 2147482000; min-width: 240px; background: #fff; color: #000; border: 2px solid #000; border-radius: 16px; box-shadow: 5px 5px 0 #000; padding: 12px; font: 500 14px/1.4 Montserrat, system-ui, sans-serif; }
.ftga-menu[hidden] { display: none; }
.ftga-menu .ftga-who { margin: 0 0 4px; font-weight: 700; word-break: break-all; }
.ftga-menu .ftga-plan { margin: 0 0 10px; color: #4a4a58; }
.ftga-menu a, .ftga-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: #000 !important; font: 600 14px/1.2 Montserrat, system-ui, sans-serif !important; text-decoration: none !important; cursor: pointer; }
.ftga-menu a:hover, .ftga-menu button:hover { background: #fff5f0; }
@media (prefers-reduced-motion: no-preference) { .ftga-dialog { animation: ftga-in .18s ease-out; } }
@keyframes ftga-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Homepage: the navy Web App band (after the business-plan block). */
.band-navy { background: var(--ftga-navy); }
.band-navy .h-mega, .band-navy .band-lede { color: #fff; }
.band-navy .text-link { color: #fff; }
.band-navy .bp-facts li { background: #fff; }
.band-stack { padding-top: 80px !important; }
.webapp-art { position: relative; }
.webapp-frame { margin: 0; background: #fff; border: 3px solid #000; border-radius: 14px; box-shadow: 14px 14px 0 var(--ftga-purple); overflow: hidden; transform: rotate(-1.5deg); }
.webapp-frame img { display: block; width: 100%; height: auto; }
.webapp-dots { display: flex; gap: 6px; padding: 10px 12px; background: #f1ece7; border-bottom: 2px solid #000; }
.webapp-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; border: 1px solid #0003; }
.webapp-dots i:nth-child(2) { background: #febc2e; } .webapp-dots i:nth-child(3) { background: #28c840; }
@media (min-width: 1000px) { .webapp { grid-template-columns: 5fr 6fr !important; } }
