/* The site's footer, shared by every page: its own band below the last section, the brand and a line on
   the left, three columns of links, and a quiet bottom row. */

.foot { margin-top: 140px; padding: 72px 0 40px; border-top: 1px solid var(--border, #E5DCCB);
  background: linear-gradient(180deg, rgba(251, 249, 244, .7), rgba(251, 249, 244, .35)); color: var(--muted, #6E675A); font-size: 14px; text-align: left; }
.foot .wrap { padding-top: 0; padding-bottom: 0; }
.foot-top { display: grid; grid-template-columns: 1.25fr 2fr; gap: 56px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 320px; }
.foot-brand .brand { margin: 0; }
.foot-brand p { margin: 0; line-height: 1.6; }
.foot-brand .button { margin-top: 4px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h4 { margin: 0 0 16px; font: 600 11.5px/1 Inter, -apple-system, system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ink, #2A2723); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-cols a { position: relative; color: var(--muted, #6E675A); line-height: 1.4; }
.foot-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--accent, #A9692E);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.foot-cols a:hover { color: var(--ink, #2A2723); text-decoration: none; }
.foot-cols a:hover::after { transform: scaleX(1); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border, #E5DCCB); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; }
.foot-bottom span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .seal { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #C73329; color: #fff;
  font: 600 10px/1 "Shippori Mincho", serif; transform: rotate(-6deg); }

@media (max-width: 860px) {
  .foot { margin-top: 100px; padding-top: 56px; }
  .foot-top { grid-template-columns: 1fr; gap: 40px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
/* On a phone the buy bar is fixed along the bottom; leave room so it never covers the last row. */
@media (max-width: 760px) { .foot { padding-bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .foot-cols a::after { transition: none; } }
/* MacPip's badge, on the home page's footer only (footer.py BADGE). */
.foot-badge { display: block; margin-top: 4px; border-radius: 12px; transition: transform .25s ease; }
.foot-badge:hover { transform: translateY(-2px); }
.foot-badge img { display: block; height: 58px; width: auto; }
@media (prefers-reduced-motion: reduce) { .foot-badge { transition: none; } .foot-badge:hover { transform: none; } }
