/* ==========================================================================
   franchise.html — page-local styles ("The Territory Card")
   Builds only on tokens + components from css/styles.css. Palette: white / black / silver.
   ========================================================================== */

/* ---- Page head: copy + the investment tag ------------------------------- */
.fr-head-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.fr-head h1 { font-size: clamp(2.8rem, 4.6vw, 4.2rem); }
.fr-head .lead { margin-top: 24px; }
.fr-head-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* the tag — a white certificate plate carrying the one number that matters */
.fr-tag {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  padding: 34px 36px 30px;
  background: #FFFFFF;
  border: 1px solid #0A0A0B;
  box-shadow: var(--shadow-2);
  --tx: -4deg; --ty: 4deg; /* pointer tilt range (via .rv.in transform) */
}
.fr-tag::before { content: ''; position: absolute; inset: 7px; border: 1px solid #C9CCD2; pointer-events: none; }
.fr-tag::after { /* chrome eyelet — the tag hangs from something */
  content: ''; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--chrome); background-size: 200% 100%; background-position: calc(var(--light) * 100%) 0;
  box-shadow: inset 0 0 0 5px #FFFFFF, inset 0 0 0 6px #8E9199, 0 1px 2px rgba(10,10,11,.3);
}
.fr-tag > .mono-label { display: block; margin-bottom: 14px; }
.fr-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(3.2rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #0A0A0B;
  font-variant-numeric: tabular-nums;
  margin-bottom: 22px;
}
.fr-terms { border-top: 1px solid #DDDFE3; }
.fr-terms li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid #DDDFE3; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #26272B; }
.fr-terms li b { font-weight: 700; color: #0A0A0B; }

/* ---- The Territory Card (vault) ------------------------------------------ */
.fr-territory { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.fr-territory-copy p { margin-top: 20px; }
.fr-territory-copy .fr-owner-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fr-stage { display: flex; justify-content: center; padding: 24px 0; }
.fr-stage .card-stage { width: clamp(300px, 100%, 500px); }
/* Signature: ONE slow full turn on reveal — flip to the back, hold on the signature panel, come home.
   The keyframe temporarily owns the flip transform; on completion the pointer tilt takes over (backwards fill). */
@keyframes territory {
  0%   { transform: rotateY(0deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  42%  { transform: rotateY(180deg); animation-timing-function: linear; }
  58%  { transform: rotateY(180deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { transform: rotateY(360deg); }
}
.js .fr-stage.in .card-flip { animation: territory 2.4s .35s backwards; }
/* franchise face: label instead of a number; owner line + meta sit on the foil */
.fr-stage .iu-label { top: 40cqw; }
.fr-stage .iu-sign { font-size: 6cqw; }
.fr-stage .iu-back .iu-name { left: 7cqw; bottom: 8cqw; }
.fr-stage .iu-back .iu-meta { left: auto; right: 7cqw; text-align: right; }
.fr-stat { margin-top: clamp(48px, 6vw, 80px); }

/* ---- What you get — Schedule A (mist) ------------------------------------ */
.fr-manifest { background: #FFFFFF; border: 1px solid #DDDFE3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); }
.fr-manifest-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid #DDDFE3; background: #0A0A0B; color: #B9BCC3; }
.fr-manifest-head span:last-child { color: #FFFFFF; }
.fr-manifest-list { display: grid; grid-template-columns: 1fr 1fr; }
.fr-item { position: relative; display: grid; grid-template-columns: 44px 1fr 36px; gap: 18px; align-items: start; padding: 28px 28px 26px; border-bottom: 1px solid #DDDFE3; }
.fr-item:nth-child(odd) { border-right: 1px solid #DDDFE3; }
.fr-item:nth-last-child(-n+2) { border-bottom: 0; }
.fr-item .fr-n { font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; color: #C9CCD2; padding-top: 2px; }
.fr-item h4 { font-size: 1.15rem; margin-bottom: 8px; color: #0A0A0B; }
.fr-item p { font-size: .95rem; line-height: 1.6; }
.fr-check { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #DDDFE3; display: flex; align-items: center; justify-content: center; background: #F4F5F7; }
.fr-check .check { width: 18px; height: 18px; color: #0A0A0B; }
.fr-item.in .fr-n, html:not(.js) .fr-item .fr-n { color: #0A0A0B; transition: color .5s .4s; }

/* ---- Franchise owners winning (white) + the wins ticker ------------------- */
.fr-owners { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1000px; margin: 0 auto; }
.fr-owner { --tx: -5deg; --ty: 5deg; }
.fr-owner .team-stage { height: clamp(300px, 28vw, 400px); }
.fr-owner .team-stage img { max-height: 92%; }
.fr-owner-flag { position: absolute; top: 18px; left: 18px; z-index: 3; }
.fr-owner figcaption { padding: 22px 28px 28px; }
.fr-owner figcaption .mono-label { display: block; margin-bottom: 14px; color: #8E9199; }
.fr-owner figcaption p { color: #C9CCD2; font-size: .95rem; line-height: 1.65; }
.fr-owner figcaption .link { margin-top: 16px; color: #FFFFFF; font-family: var(--font-mono); font-variation-settings: normal; font-weight: 500; font-size: .85rem; }
.fr-owner figcaption .link::after { background: var(--chrome-edge); }
.fr-wins { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.fr-wins-tag {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px 0 var(--gutter);
  background: #0A0A0B;
  color: #FFFFFF;
  font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap;
}
.fr-wins-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; animation: pulse 2s ease-in-out infinite; }
.fr-wins-tag::after { content: ''; position: absolute; right: 0; top: 14px; bottom: 14px; width: 1px; background: var(--chrome-edge); }

/* ---- The Math (mist) ------------------------------------------------------ */
.fr-math-wrap { max-width: 720px; margin: 0 auto; }
.fr-math { background: #FFFFFF; border: 1px solid #DDDFE3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); }
.fr-math-head, .fr-math-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 16px; align-items: center; padding: 14px 28px; border-bottom: 1px solid #DDDFE3; }
.fr-math-head { padding-top: 16px; padding-bottom: 16px; }
.fr-math-head span:last-child, .fr-math-row > :last-child { text-align: right; justify-self: end; }
.fr-math-row > :first-child { font-family: var(--font-display); font-variation-settings: 'wdth' 105, 'wght' 600; color: #0A0A0B; }
.fr-math-row .mono { font-size: .95rem; color: #26272B; }
.fr-math-val { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: #0A0A0B; letter-spacing: -.01em; }
.fr-math-val small { font-size: .72rem; font-weight: 500; letter-spacing: .1em; color: #8E9199; }
.fr-math-row.is-top { background: #0A0A0B; border-bottom: 0; padding-top: 20px; padding-bottom: 20px; }
.fr-math-row.is-top > :first-child { color: #FFFFFF; }
.fr-math-row.is-top .mono { color: #C9CCD2; }
.fr-math-row.is-top .fr-math-val { font-size: 1.7rem; color: #FFFFFF; }
.fr-math-row.is-top .fr-math-val small { color: #B9BCC3; }
.fr-fine { margin-top: 16px; font-size: .8rem; line-height: 1.6; color: #26272B; text-align: center; }
.fr-math-head-sec { margin-top: clamp(72px, 9vw, 120px); }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .fr-head-grid { grid-template-columns: 1fr; gap: 48px; }
  .fr-tag { justify-self: start; }
}
@media (max-width: 900px) {
  .fr-territory { grid-template-columns: 1fr; gap: 40px; }
  .fr-stage { order: -1; }
  .fr-manifest-list { grid-template-columns: 1fr; }
  .fr-item:nth-child(odd) { border-right: 0; }
  .fr-item:nth-last-child(-n+2) { border-bottom: 1px solid #DDDFE3; }
  .fr-item:last-child { border-bottom: 0; }
  .fr-owners { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .fr-tag { width: 100%; padding: 30px 24px 24px; }
  .fr-head-ctas .btn { width: 100%; }
  .fr-stage { padding: 12px 0; }
  .fr-stage .card-stage { width: 100%; }
  .fr-item { grid-template-columns: 34px 1fr 32px; gap: 14px; padding: 22px 20px; }
  .fr-item .fr-n { font-size: 1.25rem; }
  .fr-check { width: 32px; height: 32px; }
  .fr-manifest-head { padding: 14px 20px; flex-direction: column; gap: 4px; }
  .fr-wins-tag { position: static; justify-content: center; padding: 0 0 14px; background: transparent; color: #0A0A0B; }
  .fr-wins-tag::before { background: #0A0A0B; }
  .fr-wins-tag::after { display: none; }
  .fr-math-head, .fr-math-row { grid-template-columns: 1fr 1fr; padding: 12px 18px; }
  .fr-math-head span:nth-child(2), .fr-math-row > :nth-child(2) { display: none; }
  .fr-math-val { font-size: 1.15rem; }
  .fr-math-row.is-top .fr-math-val { font-size: 1.45rem; }
}
