/* FoodCore is a web app and a mobile app. These pieces show both, on the
   homepage, blog index, landing pages, product page and blog posts.
   Loaded after mobile-pricing.css where both are present. */

/* ── Store badges ──────────────────────────────────────────────────────── */
.fc-stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem .75rem; }
.fc-stores a { display: inline-block; line-height: 0; }
.fc-stores img { display: block; height: 44px; width: auto; }
.fc-stores-note { flex-basis: 100%; text-align: center; font-size: .85rem; color: #4B5563; line-height: 1.5; }
/* A phone gets the store it uses (class set on <html> by app-showcase.js). */
html.fc-ios .fc-stores a[data-store="android"],
html.fc-android .fc-stores a[data-store="ios"] { display: none; }
html.fc-ios .fc-stores img, html.fc-android .fc-stores img { height: 52px; }

/* ── Web app and phone, together ───────────────────────────────────────── */
.fc-devices { position: relative; width: 100%; max-width: 36rem; margin: 0 auto; aspect-ratio: 100 / 78; }
.fc-devices .fcd-web { position: absolute; left: 0; top: 4%; width: 88%; height: auto; border-radius: 12px; border: 1px solid #E5E7EB; background: #fff; box-shadow: 0 18px 40px -18px rgba(17,24,39,.35); }
.fc-devices .fcd-phone { position: absolute; right: 1%; top: 14%; width: 30%; height: auto; border-radius: 20px; border: 5px solid #111827; background: #fff; box-shadow: 0 18px 40px -12px rgba(17,24,39,.45); }
.fc-devices-caption { text-align: center; font-size: .85rem; color: #6B7280; margin: .25rem 0 0; }

/* ── "In the FoodCore app" block (blog posts and landing pages) ─────────── */
.fc-seeapp { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr; gap: 1.25rem; align-items: center; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 1rem; padding: 1.25rem; margin: 2.5rem 0; }
.fc-seeapp-shot { width: 100%; height: auto; border-radius: 18px; border: 5px solid #111827; background: #fff; box-shadow: 0 12px 28px -12px rgba(17,24,39,.4); }
.fc-seeapp-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #166534; }
.fc-seeapp-title { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-weight: 800; font-size: 1.1rem; line-height: 1.3; color: #111827; margin: .3rem 0 .35rem; }
.fc-seeapp-text { font-size: .9rem; color: #374151; line-height: 1.55; margin: 0 0 .85rem; }
.fc-seeapp .fc-stores { justify-content: flex-start; }
.fc-seeapp .fc-stores img { height: 40px; }
.fc-seeapp-trial { display: inline-block; margin-top: .7rem; font-size: .88rem; font-weight: 700; color: #1E5C3A; text-decoration: none; }
@media (max-width: 480px) {
  .fc-seeapp { grid-template-columns: minmax(0, 7.5rem) 1fr; gap: .9rem; padding: 1rem; }
  .fc-seeapp-title { font-size: 1rem; }
  .fc-seeapp-text { display: none; }   /* the screenshot says it */
}

/* ── Landing-page hero visual ──────────────────────────────────────────── */
.fc-hero-visual { margin: 2.25rem auto 0; max-width: 40rem; }

/* ── Pinned seasonal strip (Christmas) ─────────────────────────────────── */
.xmas-pin { max-width: 72rem; margin: 0 auto; padding: 2.25rem 1.5rem 1rem; }
.xmas-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.xmas-head h2 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.6rem); color: #111827; margin: 0; letter-spacing: -.01em; }
.xmas-head p { margin: .2rem 0 0; color: #4B5563; font-size: .95rem; }
.xmas-head a { font-weight: 700; font-size: .9rem; color: #1E5C3A; text-decoration: none; white-space: nowrap; }
.xmas-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.xmas-card { display: block; text-decoration: none; background: #fff; border: 1px solid #E5E7EB; border-top: 4px solid #B91C1C; border-radius: 14px; padding: 1rem 1.1rem 1.1rem; transition: transform .2s ease, box-shadow .2s ease; }
.xmas-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(17,24,39,.35); }
.xmas-tag { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #B91C1C; }
.xmas-title { font-weight: 700; color: #111827; line-height: 1.35; margin-top: .3rem; font-size: .98rem; }
@media (max-width: 768px) {
  .xmas-pin { padding: 1.75rem 1rem .5rem; }
  .xmas-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; padding-bottom: .6rem; scrollbar-width: none; }
  .xmas-row::-webkit-scrollbar { display: none; }
  .xmas-card { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ── Homepage on a phone: show the app, say less ───────────────────────── */
.hero-devices-slot { display: none; }
.hero-visual { position: relative; }
.hero-mockup-phone { position: absolute; right: -1.25rem; bottom: -2.25rem; width: min(21%, 220px); height: auto; border-radius: 26px; border: 7px solid #111827; background: #fff; box-shadow: 0 24px 50px -16px rgba(17,24,39,.5); }
.hero-section .fc-stores { margin-top: .9rem; }
@media (max-width: 768px) {
  .hero-section .hero-visual { display: none; }              /* replaced by the slot below */
  .hero-section .hero-devices-slot { display: block; width: 100%; margin: .25rem 0 1.25rem; }
  .hero-section .hero-subnote { display: none; }
  .hero-section .hero-tags {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    gap: .45rem; max-width: none; width: calc(100% + 2.5rem); margin: 0 -1.25rem 1rem; padding: 0 1.25rem .2rem;
    scrollbar-width: none;
  }
  .hero-section .hero-tags::-webkit-scrollbar { display: none; }
  .hero-section .hero-tags a { flex: none; white-space: nowrap; font-size: .8rem; background: #fff; border: 1px solid #E5E7EB; border-radius: 999px; padding: .35rem .75rem; }

  /* The announcement link is hidden on phones to save a line; the whole bar becomes the tap target instead. */
  #announce-bar { position: relative; }
  #announce-bar a { display: block !important; position: absolute; inset: 0; font-size: 0; color: transparent; }

  [data-section="features"] .card-chrome { display: none; }
  [data-section="features"] .card-shot { background: transparent; padding: 1.1rem 0 .25rem; text-align: center; }
  [data-section="features"] .card-shot img { width: auto !important; max-width: 58%; max-height: 430px; margin: 0 auto; border-radius: 24px; border: 6px solid #111827; }
  [data-section="features"] .feature-card-body ul { display: none; }

  [data-section="reviews"] .reviews-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; padding-bottom: .5rem; scrollbar-width: none; }
  [data-section="reviews"] .review-card { flex: 0 0 85%; scroll-snap-align: start; }
  [data-section="about"] .about-copy p:nth-of-type(2) { display: none; }
  [data-section="integrations"] .integration-card p { display: none; }
  .compliance-left > p { display: none; }
}

/* ── Product page: phone screenshots in place of the desktop ones ──────── */
@media (max-width: 768px) {
  .mockup-panel.fc-phone-swap { background: transparent; border: 0; box-shadow: none; text-align: center; padding: .5rem 0; }
  .mockup-panel.fc-phone-swap .mockup-panel-header { display: none; }
  .mockup-panel.fc-phone-swap img { width: auto; max-width: 58%; max-height: 430px; margin: 0 auto; border-radius: 24px; border: 6px solid #111827; background: #fff; }
}
.fc-hero-visual .fc-stores { margin-top: 1.1rem; }
