/* Mayfair Tax Services — the offer box at the bottom of every page (injected by functions/_middleware.js).
   Brand trade dress only: navy, marigold and cream, Libre Caslon headings, Source Serif body, Source Sans UI.
   The box is plain and still, with no shadow, so the message reads cleanly. The one movement is a light
   that travels around the rim of the main button; it stops for visitors who ask for reduced motion.
   Self-contained so it works on the main site pages and on /lien/. */
.go {
  --go-navy: #16243b; --go-cream: #f6f1e7;
  --go-gold: #f2b632; --go-gold-soft: #fdf0cf; --go-gold-press: #d99a17;
  --go-head: "Libre Caslon Text", Georgia, serif; --go-body: "Source Serif 4", Georgia, serif; --go-ui: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* Main site: the section is a cream stage; its container is the box. On /lien/ the closing card is the box. */
.site-section.go { background: var(--go-cream); padding: 56px 0 72px; color: var(--go-navy); }
.site-section.go > .container,
#start.go {
  max-width: 1040px; margin: 0 auto; padding: 56px 24px 48px; border-radius: 20px; text-align: center;
  background: var(--go-navy); color: var(--go-cream); border: 3px solid var(--go-gold); box-shadow: none;
}

.go-ribbon {
  display: inline-block; margin: 0 0 16px; padding: 7px 18px; border-radius: 999px;
  background: var(--go-gold); color: var(--go-navy);
  font-family: var(--go-ui); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.site-section.go .mf-sh { max-width: 760px; margin: 0 auto; text-align: center; }
.site-section.go .mf-eyebrow, #start.go .eyebrow { color: var(--go-gold); }
.site-section.go .mf-sh-no { display: none; }
.site-section.go .mf-sh-title, #start.go h2 {
  font-family: var(--go-head); font-weight: 400; color: #fff; font-size: 34px; line-height: 1.15; margin: 6px 0 14px;
}
.site-section.go .mf-sh-lede, #start.go > p:not(.eyebrow):not(.small):not(.go-ribbon):not(.go-call) {
  color: var(--go-cream); font-family: var(--go-body); font-size: 19px; line-height: 1.55; max-width: 640px; margin: 0 auto 8px;
}

/* Three highlight tiles */
.go-perks { list-style: none; margin: 26px auto 30px; padding: 0; max-width: 900px; display: grid; gap: 12px; grid-template-columns: 1fr; text-align: left; }
.go-perks li {
  background: rgba(246, 241, 231, .06); border: 1px solid rgba(242, 182, 50, .4); border-radius: 12px; padding: 14px 16px 14px 52px; position: relative;
  font-family: var(--go-ui); font-size: 16px; line-height: 1.4; color: var(--go-cream);
}
.go-perks li::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--go-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2316243b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.go-perks b { display: block; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 2px; }

/* Buttons */
.site-section.go .cta-row { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: center; align-items: center; margin-top: 0; }
.site-section.go .cta-row .mf-btn--primary, #start.go a.cta-pay {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 14px 34px; border-radius: 999px; border: 0;
  color: var(--go-navy); font-family: var(--go-ui); font-size: 18.5px; font-weight: 600; letter-spacing: .015em; text-decoration: none;
  background: linear-gradient(180deg, #f7cb63 0%, var(--go-gold) 52%, #e6a723 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(122, 90, 34, .35), 0 10px 24px -14px rgba(0, 0, 0, .6);
  transition: transform .18s ease, filter .18s ease;
}
.site-section.go .cta-row .mf-btn--primary:hover, #start.go a.cta-pay:hover { transform: translateY(-1px); filter: saturate(1.05) brightness(1.03); }

/* The moving rim: a bright light that travels around the button's edge. */
@property --go-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* ::before is the still, faint gold ring; ::after is the light. Every 3 seconds the light makes one
   quick lap (about 0.8 s), fades out, and the button rests until the next lap. */
.site-section.go .cta-row .mf-btn--primary::before, #start.go a.cta-pay::before,
.site-section.go .cta-row .mf-btn--primary::after, #start.go a.cta-pay::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.site-section.go .cta-row .mf-btn--primary::before, #start.go a.cta-pay::before { background: rgba(253, 240, 207, .22); }
.site-section.go .cta-row .mf-btn--primary::after, #start.go a.cta-pay::after {
  background: conic-gradient(from var(--go-angle), transparent 0deg, transparent 270deg, rgba(253, 240, 207, .55) 320deg, rgba(255, 255, 255, .85) 345deg, transparent 360deg);
  opacity: 0; animation: go-rim 3s ease-in-out infinite;
}
@keyframes go-rim {
  0% { --go-angle: 0deg; opacity: 0; }
  4% { opacity: 1; }
  22% { opacity: 1; }
  28% { --go-angle: 360deg; opacity: 0; }
  100% { --go-angle: 360deg; opacity: 0; }
}

.site-section.go .cta-row .mf-btn--link, .go-call a {
  color: #fff; font-family: var(--go-ui); font-size: 18px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--go-gold); text-underline-offset: 5px;
}
.go-call { margin: 18px 0 0; }
.site-section.go a:focus-visible, #start.go a:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
#start.go .small a { color: #fff; font: inherit; text-decoration: underline; text-decoration-color: var(--go-gold); text-underline-offset: 3px; }
#start.go .small { color: var(--go-cream); font-family: var(--go-ui); font-size: 14px; margin: 18px auto 0; max-width: 560px; }

@media (min-width: 760px) {
  .site-section.go > .container, #start.go { padding: 64px 72px 56px; }
  .site-section.go .mf-sh-title, #start.go h2 { font-size: 44px; }
  .go-perks { grid-template-columns: repeat(3, 1fr); }
}

/* /lien/ pages are narrower: keep the tiles stacked. */
#start.go { margin: 28px 0 18px; padding-left: 20px; padding-right: 20px; }
@media (min-width: 760px) { #start.go { padding-left: 36px; padding-right: 36px; } #start.go .go-perks { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .site-section.go .cta-row .mf-btn--primary::after, #start.go a.cta-pay::after { animation: none; }
}
