/* ==================================================================
   FlyTag — production styles
   Tokens below are lifted from the client's Canva/Design mockup
   (mockups/FlyTag Landing-updated.html). Change a colour here, not
   in the markup.
   ================================================================== */

:root {
  --yellow:      #FDB913;
  --yellow-deep: #E5A100;
  --gold-dark:   #B07C00;
  --black:       #000000;
  --ink:         #111111;
  --ink-soft:    #1a1a1a;
  --white:       #ffffff;
  --sand:        #e9e6df;
  --grey-text:   #f2f2f2;   /* body copy on black */
  --line:        #d8d8d8;
  --danger:      #C62828;
  --ok:          #0a7c3f;

  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-display: Montserrat, 'Source Sans 3', sans-serif;

  --wrap: 1120px;
  --pad: 18px;
  --bar-h: 84px;
  --r: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.4;
}

.page { padding-bottom: var(--bar-h); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 22%, 260px), 1fr)); gap: 26px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 30%, 320px), 1fr)); gap: 28px 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 40%, 460px), 1fr)); gap: 24px; align-items: start; }

/* ---------- masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 46%, 640px), 1fr));
  align-items: stretch;
  background: var(--white);
}
.masthead-logo { display: flex; align-items: center; justify-content: center; padding: 28px 22px 22px; }
.masthead-logo img { width: 100%; max-width: 420px; height: auto; }
.masthead-hero { position: relative; min-height: 240px; background: var(--sand); overflow: hidden; }

/* On a wide screen the two masthead panels sit side by side and the
   product photo's own aspect ratio was driving the row past 1000px tall,
   pushing the headline and the Order button below the fold. Cap it so
   the hero copy is always visible on first paint. Mobile stacks these,
   so the cap only applies once they are side by side. */
@media (min-width: 700px) {
  .masthead { max-height: 60vh; }
  .masthead-logo img { max-width: min(420px, 44vh); }
  .hero-img { max-height: 60vh; }
}
.hero-img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; object-position: 50% 50%; }

.weight-badge {
  position: absolute;
  top: clamp(12px, 3vw, 22px); right: clamp(12px, 3vw, 22px);
  width: clamp(84px, 21vw, 116px); aspect-ratio: 1;
  border-radius: 999px;
  background: var(--black); border: 2px solid var(--yellow-deep);
  color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1; text-align: center;
}
.weight-badge span { font-size: clamp(10px, 2.4vw, 13px); letter-spacing: .06em; text-transform: uppercase; }
.weight-badge strong { color: var(--yellow); font-weight: 700; font-size: clamp(18px, 4.6vw, 26px); }

/* ---------- hero copy ---------- */
.hero-copy { background: var(--white); padding: 22px var(--pad) 26px; text-align: center; }
.hero-copy h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(24px, 6.4vw, 44px); line-height: 1.05;
  max-width: 16ch; margin: 0 auto .5rem;
}
.hero-copy p { font-size: clamp(14px, 3.8vw, 18px); max-width: 46ch; margin: 0 auto 1.1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; cursor: pointer;
  letter-spacing: .02em;
}
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { background: var(--ink-soft); color: var(--white); }
.btn-block { width: 100%; font-size: clamp(15px, 4.2vw, 18px); }

/* ---------- features ---------- */
.features { background: var(--yellow); padding: 26px var(--pad) 30px; }
.feature { text-align: center; }
.feature img { width: 64px; height: auto; margin: 0 auto 8px; }
.feature h3 { font-weight: 700; font-size: clamp(14px, 3.6vw, 17px); line-height: 1.2; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .01em; }
.feature p { font-size: clamp(13px, 3.4vw, 15px); line-height: 1.35; }

/* ---------- uses ---------- */
.uses-title { background: var(--white); padding: 16px var(--pad); text-align: center; }
.uses-title h2 { font-weight: 700; font-size: clamp(16px, 4.6vw, 24px); letter-spacing: .01em; text-transform: uppercase; }
.uses-title span { color: var(--yellow-deep); }
.uses { background: var(--black); color: var(--white); padding: 26px var(--pad) 32px; }
.use img { width: 100%; height: auto; aspect-ratio: 345 / 240; object-fit: cover; border-radius: 14px; }
.use h3 { margin: 12px 0 4px; font-weight: 700; font-size: clamp(14px, 3.6vw, 18px); text-transform: uppercase; letter-spacing: .02em; }
.use p { font-size: clamp(13px, 3.4vw, 16px); line-height: 1.35; color: var(--grey-text); }
.use { text-align: center; }

/* ---------- pricing ---------- */
.pricing-head { background: var(--white); padding: 22px var(--pad) 8px; }
.grid-price-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 30%, 340px), 1fr)); gap: 14px; align-items: center; }
.pricing-badge { background: var(--yellow); border-radius: 10px; padding: 10px 18px; text-align: center; }
.pricing-badge h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(26px, 7vw, 40px); letter-spacing: .01em; }
.pricing-headline { text-align: center; }
.ph-label { font-weight: 700; font-size: clamp(15px, 4.2vw, 21px); text-transform: uppercase; letter-spacing: .01em; }
.ph-price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(32px, 9vw, 48px); line-height: 1; margin-top: 2px; }
.pricing-save { background: var(--black); border-radius: 10px; padding: 12px 16px; text-align: center; color: var(--white); }
.ps-title { color: var(--yellow); font-weight: 700; font-size: clamp(14px, 3.8vw, 17px); text-transform: uppercase; margin-bottom: 2px; }
.pricing-save p { font-size: clamp(13px, 3.5vw, 16px); line-height: 1.35; }

.tiers { background: var(--white); padding: 14px var(--pad) 22px; }
.tiers .grid-4 { gap: 14px; }
.tier {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 10px; text-align: center; background: var(--white);
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.tier:hover { border-color: var(--black); transform: translateY(-2px); }
.tier:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }
.tier-qty { font-weight: 700; font-size: clamp(14px, 3.8vw, 19px); text-transform: uppercase; margin-bottom: 6px; }
.tier img { width: 100%; height: auto; aspect-ratio: 310 / 170; object-fit: contain; }
.tier-price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(22px, 6vw, 32px); margin-top: 6px; }
.tier-cta { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-dark); }

/* ---------- order form ---------- */
.order { background: var(--sand); padding: 32px var(--pad) 36px; }
.order-wrap { max-width: 640px; }
.order h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(26px, 7vw, 40px); }
.order-lede { margin: .4rem 0 1.5rem; font-size: clamp(14px, 3.8vw, 17px); }

.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: clamp(14px, 3.6vw, 16px); }
.opt { font-weight: 400; color: #6b6b6b; }
input, textarea {
  width: 100%; padding: .85rem; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
input.invalid, textarea.invalid { border-color: var(--danger); }
.err { color: var(--danger); font-size: .85rem; margin-top: .35rem; min-height: 1em; font-weight: 600; }

/* off-screen rather than display:none — some bots skip hidden inputs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.stepper { display: flex; gap: .5rem; max-width: 220px; }
.stepper button {
  width: 56px; min-height: 52px; font-size: 1.5rem; font-weight: 700; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
.stepper button:hover { border-color: var(--black); }
.stepper input { text-align: center; font-weight: 700; }

.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; margin: 1.5rem 0; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
/* an author `display` rule beats the UA stylesheet's [hidden]{display:none},
   so el.hidden = true would otherwise do nothing here. */
[hidden] { display: none !important; }
.summary .discount { color: var(--ok); font-weight: 600; }
.summary .total {
  border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.35rem;
}
.consent { font-size: .82rem; color: #4a4a47; margin-bottom: 1rem; }
.fine { font-size: .8rem; color: #5a5854; margin-top: .6rem; }

.confirm { background: var(--white); border: 2px solid var(--yellow); border-radius: var(--r); padding: 1.5rem; text-align: center; }
.confirm h3 { font-weight: 700; font-size: clamp(18px, 5vw, 24px); text-transform: uppercase; margin-bottom: .5rem; }
.confirm p { margin-bottom: 1rem; }

/* ---------- contact ---------- */
.contact { background: var(--white); padding: 26px var(--pad); }
.eyebrow { font-weight: 700; font-size: clamp(13px, 3.5vw, 16px); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.eyebrow-gold { color: var(--yellow-deep); }
.eyebrow-red { color: var(--danger); }
.contact h3 { font-weight: 700; font-size: clamp(20px, 5.6vw, 28px); text-transform: uppercase; margin-bottom: 10px; }
.phone { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: clamp(16px, 4.4vw, 20px); }
.phone span:first-child { display: inline-flex; width: 22px; justify-content: center; }
.phone:hover { color: var(--gold-dark); }
.addr { display: flex; gap: 10px; font-size: clamp(14px, 3.8vw, 17px); line-height: 1.35; margin-top: 4px; }
.addr span:first-child { display: inline-flex; width: 22px; justify-content: center; }
.stockist { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.stockist img { width: clamp(76px, 20vw, 120px); height: auto; }

/* ---------- trust + footer ---------- */
.trust { background: var(--black); color: var(--white); padding: 22px var(--pad) 26px; }
.t-title { color: var(--yellow); font-weight: 700; font-size: clamp(14px, 3.8vw, 17px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
.trust p { font-size: clamp(13px, 3.6vw, 16px); line-height: 1.4; }

footer { background: var(--ink-soft); color: #9a9a9a; padding: 26px var(--pad) 32px; text-align: center; }
.footer-brand { color: var(--white); font-weight: 700; letter-spacing: .06em; font-size: clamp(14px, 4vw, 18px); }
.footer-url { color: var(--yellow); font-weight: 700; margin: .4rem 0 1rem; }
footer .fine { color: #7d7d7d; max-width: 640px; margin: 0 auto; }

/* ---------- sticky action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--yellow); border-top: 2px solid var(--black);
  padding: 10px 14px; display: flex; gap: 10px;
  align-items: center; justify-content: center;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.bar-btn {
  min-height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: clamp(15px, 4.2vw, 18px); letter-spacing: .02em;
}
.bar-primary { flex: 1; max-width: 420px; background: var(--black); color: var(--yellow); }
.bar-primary:hover { background: var(--ink-soft); color: var(--white); }
.bar-secondary { padding: 0 1.1rem; background: var(--white); color: var(--ink); border: 2px solid var(--black); }
.bar-secondary:hover { background: var(--ink); color: var(--white); }

@media (max-width: 380px) { .bar-call-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.cf-turnstile { margin: 0 0 1rem; }
.cf-turnstile:empty { display: none; }
