/* Shared styles for the redesigned feature pages (hero, showcase frame, sections, feature grid). */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  /* ── Website ordering hero ── */
  .fm-hero, .fm-sec {
    --fm-ink: #0d1b22;
    --fm-ink-soft: #46616c;
    --fm-muted: #6f8692;
    --fm-brand: #1f4b5c;
    --fm-brand-hover: #173b48;
    --fm-line: #e3e9ec;
    --fm-band: #f4f7f8;
  }
  .fm-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: var(--fm-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .fm-hero__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .fm-hero__intro { padding-top: 120px; }
  .fm-hero svg.fm-i, .fm-hero svg.fm-i * { fill: none !important; }

  .fm-eyebrow { font-size: 14px; font-weight: 500; color: var(--fm-brand); letter-spacing: -0.005em; margin-bottom: 20px; }
  .fm-title {
    font-family: var(--heading-font-typeface, 'Inter Tight'), sans-serif; /* theme forces this on headings anyway */
    font-size: clamp(42px, 6.2vw, 78px);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.042em;
    color: var(--fm-ink);
    max-width: 15ch;
  }
  .fm-lede { margin-top: 26px; max-width: 580px; text-wrap: pretty; font-size: 19px; line-height: 1.55; color: var(--fm-ink-soft); letter-spacing: -0.008em; }
  .fm-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
  .fm-btn {
    display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 10px;
    background: var(--fm-brand); color: #ffffff !important; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
    text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(13,27,34,.18);
    transition: background-color .15s ease;
  }
  .fm-btn:hover { background: var(--fm-brand-hover); }
  .fm-link {
    display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 4px;
    color: var(--fm-ink) !important; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  }
  .fm-link svg { transition: transform .15s ease; }
  .fm-link:hover svg { transform: translateX(3px); }
  .fm-btn:focus-visible, .fm-link:focus-visible { outline: 2px solid var(--fm-brand); outline-offset: 3px; }
  .fm-note { margin-top: 14px; font-size: 13.5px; color: var(--fm-muted); }
  .fm-note span + span::before { content: "·"; margin: 0 8px; }

  /* Showcase sits on a soft band so the product shot has a floor */
  .fm-showcase {
    margin-top: 72px;
    background: linear-gradient(180deg, #ffffff 0, #ffffff 46%, var(--fm-line) 46%, var(--fm-line) calc(46% + 1px), var(--fm-band) calc(46% + 1px));
    padding-bottom: 72px;
  }
  .fm-stage { position: relative; }

  .fm-browser {
    background: #ffffff; border: 1px solid var(--fm-line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(13,27,34,.04), 0 12px 24px -12px rgba(13,27,34,.10), 0 40px 80px -32px rgba(13,27,34,.22);
  }
  .fm-browser__bar { display: flex; align-items: center; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--fm-line); background: #fbfcfc; }
  .fm-dots { display: flex; gap: 7px; width: 80px; }
  .fm-dots i { width: 11px; height: 11px; border-radius: 50%; background: #dfe5e8; }
  .fm-url {
    margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border-radius: 8px;
    background: #eef2f4; color: #4d6570; font-size: 12.5px; letter-spacing: -0.005em; min-width: 260px; justify-content: center;
  }
  .fm-browser__bar::after { content: ""; width: 80px; }

  /* Bento cards: headline + copy + a GIF/image/video area */
  .fm-sec--tight { padding-top: 24px; }
  .fm-bento { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fm-bento__card { position: relative; overflow: hidden; border-radius: 28px; padding: 44px; display: flex; flex-direction: column; min-height: 540px; }
  .fm-bento__card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 56px; min-height: 360px; }
  .fm-bento__card--wide .fm-bento__copy { flex: 0 0 36%; }
  .fm-bento__card--wide .fm-bento__media { flex: 1; align-self: stretch; margin-top: 0; min-height: 260px; }
  .fm-bento__card--mint { background: linear-gradient(135deg, #f3faf7 0%, #d9f0e6 100%); }
  .fm-bento__card--stone { background: #f3f0ea; }
  .fm-bento__card--ink { background: #14333f; color: #ffffff; }
  .fm-bento__card--sky { background: linear-gradient(135deg, #f5f9fc 0%, #e0edf4 100%); }
  .fm-bento__card--wide.fm-bento__card--flip { flex-direction: row-reverse; }
  .fm-bento__eyebrow { margin-bottom: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(13,27,34,.5); }
  .fm-bento__card--ink .fm-bento__eyebrow { color: rgba(255,255,255,.55); }
  .fm-bento__title { font-family: var(--heading-font-typeface, 'Inter Tight'), sans-serif; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; color: var(--fm-ink); text-wrap: balance; }
  .fm-bento__card--ink .fm-bento__title { color: #ffffff; }
  .fm-bento__text { margin-top: 16px; max-width: 420px; font-size: 16.5px; line-height: 1.55; color: var(--fm-ink-soft); text-wrap: pretty; }
  .fm-bento__card--ink .fm-bento__text { color: rgba(255,255,255,.68); }
  .fm-bento__media { position: relative; flex: 1; margin-top: 40px; min-height: 260px; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.62); box-shadow: 0 1px 2px rgba(13,27,34,.05), 0 24px 48px -28px rgba(13,27,34,.28); }
  .fm-bento__card--ink .fm-bento__media { background: rgba(255,255,255,.07); box-shadow: none; }
  .fm-bento__media > img, .fm-bento__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .fm-bento__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
  .fm-bento__ph span { width: 56px; height: 56px; border-radius: 50%; background: var(--fm-brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 28px -12px rgba(31,75,92,.55); }
  .fm-bento__card--ink .fm-bento__ph span { background: #3fe0c5; color: #14333f; box-shadow: none; }
  .fm-bento__ph svg { margin-left: 2px; }
  @media (max-width: 900px) {
    .fm-bento { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
    .fm-bento__card, .fm-bento__card--wide { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 28px; border-radius: 24px; }
    .fm-bento__card--wide.fm-bento__card--flip { flex-direction: column; }
    .fm-bento__card--wide .fm-bento__copy { flex: none; }
    .fm-bento__media, .fm-bento__card--wide .fm-bento__media { flex: none; align-self: auto; margin-top: 28px; min-height: 0; aspect-ratio: 4 / 3; }
  }

  /* "New order" notification: the restaurant's side of the same order */
  .fm-toast {
    position: absolute; left: -24px; bottom: -30px; width: 318px;
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
    background: #ffffff; border: 1px solid var(--fm-line);
    box-shadow: 0 2px 4px rgba(13,27,34,.04), 0 20px 40px -12px rgba(13,27,34,.22);
  }
  .fm-toast__icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #e7f8f4; color: var(--fm-brand); display: flex; align-items: center; justify-content: center; }
  .fm-toast__text { min-width: 0; flex: 1; }
  .fm-toast__text b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--fm-ink); }
  .fm-toast__text small { display: block; margin-top: 2px; font-size: 12px; color: var(--fm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fm-toast__fee { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: #1a7a63; background: #e7f8f4; padding: 4px 8px; border-radius: 6px; }

  .fm-pay { margin-top: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
  .fm-pay__label { font-size: 13.5px; color: var(--fm-muted); }
  .fm-pay__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
  .fm-pay__logo { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: #51666f; }
  .fm-pay__logo img { height: 20px; width: auto; display: block; filter: grayscale(1); opacity: .7; }
  .fm-pay__logo img.fm-pay__wordmark { height: 17px; }

  /* Entrance */
  @keyframes fmRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .fm-rise { animation: fmRise .7s cubic-bezier(.2,.7,.2,1) both; }
  .fm-rise--1 { animation-delay: .05s; }
  .fm-rise--2 { animation-delay: .12s; }
  .fm-rise--3 { animation-delay: .2s; }
  .fm-rise--4 { animation-delay: .32s; }
  @media (prefers-reduced-motion: reduce) { .fm-rise { animation: none; } }

  @media (max-width: 1279px) {
    .fm-toast { left: 20px; }
  }
  @media (max-width: 720px) {
    .fm-hero__intro { padding-top: 104px; }
    .fm-lede { font-size: 17px; margin-top: 20px; }
    .fm-actions { margin-top: 28px; }
    .fm-btn { flex: 1 1 100%; justify-content: center; }
    .fm-link { flex: 1 1 100%; justify-content: center; }
    .fm-note { text-align: center; }
    .fm-showcase { margin-top: 48px; padding-bottom: 56px; background: linear-gradient(180deg, #ffffff 0, #ffffff 38%, var(--fm-line) 38%, var(--fm-line) calc(38% + 1px), var(--fm-band) calc(38% + 1px)); }
    .fm-toast { left: 50%; right: auto; bottom: -26px; width: min(318px, calc(100% - 8px)); transform: translateX(-50%); }
    .fm-pay { margin-top: 64px; flex-direction: column; align-items: flex-start; gap: 14px; }
    .fm-pay__logos { gap: 12px 22px; }
  }
  @media (max-width: 480px) {
    /* keeps the headline to two lines on phones */
    .fm-title { font-size: 9.2vw; }
  }

  /* ── Sections below the hero (tokens shared with .fm-hero) ── */
  .fm-sec {
    padding: 120px 0;
    background: #ffffff;
    color: var(--fm-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  .fm-sec--band { background: var(--fm-band); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
  .fm-sec__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .fm-sec__head { max-width: 640px; }
  .fm-h2 {
    font-family: var(--heading-font-typeface, 'Inter Tight'), sans-serif;
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--fm-ink);
    text-wrap: balance;
  }
  .fm-sec__sub { margin-top: 18px; max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--fm-ink-soft); text-wrap: pretty; }
  .fm-sec svg.fm-i, .fm-sec svg.fm-i * { fill: none !important; }

  /* Payout comparison */
  .fm-compare { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .fm-payout { display: flex; flex-direction: column; padding: 28px 28px 12px; border: 1px solid var(--fm-line); border-radius: 16px; background: #ffffff; }
  .fm-payout.is-yours { border-color: var(--fm-brand); box-shadow: 0 0 0 1px var(--fm-brand), 0 28px 56px -32px rgba(13,27,34,.30); }
  .fm-payout__label { font-size: 14px; font-weight: 600; color: var(--fm-muted); }
  .is-yours .fm-payout__label { color: var(--fm-brand); }
  .fm-payout__receive { margin-top: 22px; font-size: 13.5px; color: var(--fm-muted); }
  .fm-payout__amount {
    margin-top: 6px;
    font-family: var(--heading-font-typeface, 'Inter Tight'), sans-serif;
    font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--fm-ink);
  }
  .fm-payout:not(.is-yours) .fm-payout__amount { color: #6a7f88; }
  .fm-bar { margin-top: 22px; height: 8px; display: flex; gap: 3px; }
  .fm-bar i { border-radius: 999px; }
  .fm-bar .is-keep { background: #b9c6cb; }
  .is-yours .fm-bar .is-keep { background: var(--fm-brand); }
  .fm-bar .is-cut { background: #e5484d; }
  .fm-rows { list-style: none; margin: 22px 0 0; padding: 0; }
  .fm-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #edf1f3; font-size: 14.5px; line-height: 1.4; }
  .fm-rows li > span:first-child { color: var(--fm-muted); }
  .fm-rows li > span:last-child { font-weight: 500; text-align: right; color: var(--fm-ink); }
  .fm-rows .is-cut { color: #c4322f !important; }
  .fm-rows .is-good { color: #1a7a63 !important; }
  .fm-compare__foot { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
  .fm-compare__foot p { max-width: 720px; font-size: 13px; line-height: 1.55; color: var(--fm-muted); }
  .fm-compare__foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--fm-ink) !important; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
  .fm-compare__foot a svg { transition: transform .15s ease; }
  .fm-compare__foot a:hover svg { transform: translateX(3px); }

  /* Feature grid */
  .fm-features { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .fm-feature { padding: 28px 0 36px; border-top: 1px solid #dde5e8; }
  .fm-feature svg { display: block; color: var(--fm-brand); }
  .fm-feature__title { margin-top: 18px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--fm-ink); }
  .fm-feature__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--fm-ink-soft); text-wrap: pretty; }

  @media (max-width: 1023px) {
    .fm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
  }
  @media (max-width: 720px) {
    .fm-sec { padding: 80px 0; }
    .fm-sec__sub { font-size: 17px; }
    .fm-compare { margin-top: 40px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .fm-payout { padding: 24px 22px 8px; }
    .fm-payout__amount { font-size: 44px; }
    .fm-rows li { font-size: 14px; }
    .fm-features { margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
    .fm-feature { padding: 24px 0 28px; }
  }
