/* The Real Profit Test signup box (src/partials/freebie-box.njk). Brand colors from the Nov 14 refresh. */
.rpt {
  padding: 56px 0;
  background: #FFF7EE;
}

.rpt-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 18px;
  border: 3px solid #F05001;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 194, 77, 0.35) 0%, rgba(240, 80, 1, 0.25) 26%, rgba(240, 80, 1, 0) 55%), linear-gradient(135deg, #0A2463 0%, #1456D6 70%, #3FA3FF 140%);
  box-shadow: 0 26px 50px -24px rgba(10, 36, 99, 0.55);
  color: #FFFFFF;
}

.rpt-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #F05001;
  color: #FFFFFF;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ef-page .rpt .rpt-copy h2,
.rpt .rpt-copy h2 {
  margin: 0 0 14px;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  background: none;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
}

.rpt-lead {
  margin: 0 0 16px;
  color: #EAF2FF;
  font-size: 18px;
  line-height: 1.55;
}

.rpt-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rpt-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 30px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
}

.rpt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFA51F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230A2463' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.rpt-formwrap {
  padding: 28px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #0E1B2E;
  box-shadow: 0 18px 40px -24px rgba(10, 36, 99, 0.6);
}

.rpt-field {
  display: block;
  margin: 0 0 14px;
}

.rpt-field span {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 15px;
  color: #0E1B2E;
}

.rpt-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid #C9D3E6;
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
  color: #0E1B2E;
  background: #FFFFFF;
}

.rpt-field input:focus {
  outline: none;
  border-color: #1456D6;
  box-shadow: 0 0 0 3px rgba(20, 86, 214, 0.2);
}

.rpt-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #D84300 0%, #F05001 50%, #FF7A1A 100%);
  color: #FFFFFF;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(240, 80, 1, 0.8);
}

.rpt-btn:hover { background: linear-gradient(135deg, #C03B00 0%, #DE4A00 50%, #F26A10 100%); }
.rpt-btn:focus-visible { outline: 3px solid #0A2463; outline-offset: 3px; }
.rpt-btn:disabled { opacity: 0.7; cursor: wait; }

.rpt-fine {
  margin: 10px 0 0;
  font-size: 14px;
  color: #5B6475;
  text-align: center;
}

.rpt-msg {
  margin: 8px 0 0;
  min-height: 1em;
  font-weight: 700;
  color: #B42318;
  text-align: center;
}

.rpt-msg:empty { display: none; }

.rpt-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rpt-done { text-align: center; }
.rpt-done__title {
  margin: 0 0 8px;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #0A2463;
}

@media (max-width: 860px) {
  .rpt { padding: 36px 0; }
  .rpt-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .rpt-formwrap { padding: 22px 18px; }
}

/* Nick's photo in the card's top-right corner */
.rpt-photo {
  position: absolute;
  top: -34px;
  right: -26px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 8%;
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 3px #F05001, 0 14px 30px -12px rgba(10, 36, 99, 0.6);
  z-index: 2;
}

@media (max-width: 860px) {
  .rpt-photo { top: -26px; right: -8px; width: 84px; height: 84px; }
  .rpt-copy { padding-right: 64px; }
}

/* ---- The Real Profit Test calculator (src/partials/rpt-calc.njk) ---- */
.rpc { padding: 64px 0 24px; background: #FFF7EE; }
.rpc-head { max-width: 760px; margin: 0 0 28px; }
.ef-page .rpc-head h2 { margin: 0 0 10px; color: #0A2463; font-family: var(--font-display, Montserrat, sans-serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.12; }
.rpc-sub { margin: 0; font-size: 18px; line-height: 1.55; color: #33415C; }
.rpc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.rpc-step { margin: 0 0 20px; padding: 26px; border-radius: 14px; background: #FFFFFF; border: 1px solid #E4E9F2; box-shadow: 0 14px 30px -24px rgba(10, 36, 99, 0.45); }
.ef-page .rpc h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: #0A2463; font-family: var(--font-display, Montserrat, sans-serif); font-size: 20px; font-weight: 800; line-height: 1.25; }
.rpc-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F05001; color: #FFFFFF; font-size: 16px; }
.rpc-field { display: block; margin: 0 0 14px; }
.rpc-field > span:first-child { display: block; margin: 0 0 6px; font-weight: 700; font-size: 15px; color: #0E1B2E; }
.rpc-money, .rpc-pct { position: relative; display: block; }
.rpc-money i, .rpc-pct i { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: #5B6475; pointer-events: none; }
.rpc-money i { left: 12px; }
.rpc-pct i { right: 10px; }
.rpc input { width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid #C9D3E6; border-radius: 8px; font: inherit; font-size: 17px; color: #0E1B2E; background: #FFFFFF; }
.rpc-money input { padding-left: 26px; }
.rpc-pct input { padding-right: 26px; }
.rpc input:focus { outline: none; border-color: #1456D6; box-shadow: 0 0 0 3px rgba(20, 86, 214, 0.2); }
.rpc-help { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: #5B6475; }
.rpc-hats-head, .rpc-hat { display: grid; grid-template-columns: 1.3fr 1.1fr 0.65fr 0.9fr 32px; gap: 8px; align-items: center; }
.rpc-hats-head { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #5B6475; text-transform: uppercase; letter-spacing: 0.03em; }
.rpc-hat { margin: 0 0 8px; }
.rpc-hat__worth { font-weight: 800; color: #0A2463; text-align: right; }
.rpc-hat__del { justify-self: end; width: 32px; min-width: 0; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #EEF2F8; color: #5B6475; font-size: 20px; line-height: 1; cursor: pointer; }
.rpc-hat__del:hover { background: #FDE3D6; color: #B42318; }
.rpc-add { margin: 6px 0 0; padding: 10px 14px; border: 2px dashed #9DB0D3; border-radius: 8px; background: transparent; color: #1456D6; font: inherit; font-weight: 700; cursor: pointer; }
.rpc-add:hover { border-color: #1456D6; background: #F2F6FD; }
.rpc-total { margin: 12px 0 0; font-weight: 700; color: #1F7A4D; }
.rpc-total.is-off { color: #B42318; }
.rpc-out { position: sticky; top: 96px; padding: 28px; border-radius: 18px; border: 3px solid #F05001; background: linear-gradient(135deg, #0A2463 0%, #1456D6 75%, #3FA3FF 140%); color: #FFFFFF; box-shadow: 0 26px 50px -24px rgba(10, 36, 99, 0.55); }
.ef-page .rpc-out h3 { color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; background: none; }
.rpc-lines { margin: 0 0 18px; }
.rpc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-size: 16px; }
.rpc-lines dt { color: #DCE8FF; }
.rpc-lines dd { margin: 0; font-weight: 700; white-space: nowrap; }
.rpc-lines .rpc-e { border-bottom: 0; font-size: 18px; }
.rpc-lines .rpc-e dt { color: #FFFFFF; font-weight: 800; }
.rpc-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.rpc-big > div { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); text-align: center; }
.rpc-big p { margin: 0 0 4px; font-size: 14px; color: #DCE8FF; }
.rpc-big strong { font-family: var(--font-display, Montserrat, sans-serif); font-size: 34px; font-weight: 800; line-height: 1; }
.rpc-big .rpc-big__real { background: #FFFFFF; color: #0A2463; }
.rpc-big .rpc-big__real p { color: #5B6475; }
.rpc-meter { margin: 0 0 14px; }
.rpc-meter__bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.rpc-meter__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFC24D, #F05001); transition: width 0.25s ease; }
.rpc-meter__marks { position: relative; height: 22px; font-size: 12px; color: #DCE8FF; }
.rpc-meter__marks span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.rpc-meter__marks span::before { content: ""; position: absolute; left: 50%; top: -14px; width: 2px; height: 10px; background: #FFFFFF; }
.rpc-verdict { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); font-weight: 600; line-height: 1.45; }
.rpc-verdict.is-good { background: rgba(46, 204, 113, 0.22); }
.rpc-verdict.is-low { background: rgba(240, 80, 1, 0.3); }
.rpc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.rpc-facts p { margin: 0; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.rpc-facts span { display: block; font-size: 14px; color: #DCE8FF; }
.rpc-facts strong { display: block; margin: 2px 0 4px; font-size: 24px; font-weight: 800; }
.rpc-facts small { display: block; font-size: 13px; line-height: 1.4; color: #DCE8FF; }
.rpc-note { margin: 0 0 16px; font-size: 14px; color: #DCE8FF; }
.rpc-cta { display: block; padding: 14px 18px; border-radius: 8px; background: linear-gradient(135deg, #D84300 0%, #F05001 50%, #FF7A1A 100%); color: #FFFFFF; font-family: var(--font-display, Montserrat, sans-serif); font-size: 18px; font-weight: 800; text-align: center; text-decoration: none; }
.rpc-cta:hover { background: linear-gradient(135deg, #C03B00 0%, #DE4A00 50%, #F26A10 100%); color: #FFFFFF; }
.rpc-cta-sub { margin: 8px 0 0; font-size: 14px; text-align: center; color: #DCE8FF; }

@media (max-width: 960px) {
  .rpc-grid { grid-template-columns: 1fr; }
  .rpc-out { position: static; }
}
@media (max-width: 600px) {
  .rpc { padding: 40px 0 16px; }
  .rpc-step { padding: 18px 14px; }
  .rpc-hats-head { display: none; }
  .rpc-hat { grid-template-columns: 1fr 1fr 32px; padding: 10px; border-radius: 10px; background: #F5F8FC; }
  .rpc-hat__name { grid-column: 1 / 3; }
  .rpc-hat__del { grid-column: 3; grid-row: 1; }
  .rpc-hat__worth { grid-column: 1 / 4; text-align: left; font-size: 15px; }
  .rpc-hat__worth::before { content: "Worth: "; font-weight: 600; color: #5B6475; }
  .rpc-big strong { font-size: 28px; }
  .rpc-facts { grid-template-columns: 1fr; }
}

/* ---- The Real Profit Test pop-up and phone bar (src/partials/freebie-popup.njk) ---- */
.rpp-lock { overflow: hidden; }
.rpp {
  width: min(820px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid #F05001;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 194, 77, 0.35) 0%, rgba(240, 80, 1, 0.25) 26%, rgba(240, 80, 1, 0) 55%), linear-gradient(135deg, #0A2463 0%, #1456D6 70%, #3FA3FF 140%);
  color: #FFFFFF;
  box-shadow: 0 30px 70px -20px rgba(10, 36, 99, 0.7);
}
.rpp::backdrop { background: rgba(10, 26, 60, 0.6); }
.rpp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 48px 32px 32px; }
.rpp-photo { display: block; width: 88px; height: 88px; margin: 0 0 16px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #FFFFFF; border: 3px solid #FFFFFF; box-shadow: 0 0 0 3px #F05001; }
.ef-page .rpp h2 { margin: 0 0 12px; color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; background: none; font-family: var(--font-display, Montserrat, sans-serif); font-size: 29px; font-weight: 800; line-height: 1.15; }
.rpp-lead { margin: 0; color: #EAF2FF; font-size: 17px; line-height: 1.5; }
.rpp-formwrap { padding: 22px; border-radius: 14px; background: #FFFFFF; color: #0E1B2E; }
.rpp-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; font-size: 30px; line-height: 1; cursor: pointer; }
.rpp-x:hover { background: rgba(255, 255, 255, 0.18); }
.rpp-x:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -3px; }
.rpp-no { display: block; min-height: 44px; margin: 4px auto 0; padding: 8px 16px; border: 0; background: transparent; color: #33415C; font: inherit; font-size: 16px; text-decoration: underline; cursor: pointer; }

.rpp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; align-items: center; gap: 10px; padding: 10px 6px calc(10px + env(safe-area-inset-bottom)) 16px; border-top: 3px solid #F05001; background: linear-gradient(135deg, #0A2463 0%, #1456D6 100%); color: #FFFFFF; box-shadow: 0 -10px 24px -12px rgba(10, 36, 99, 0.6); }
.rpp-bar[hidden], .rpp-bar.is-away { display: none; }
.rpp-bar p { flex: 1; margin: 0; color: #FFFFFF; font-size: 15px; line-height: 1.3; }
.rpp-bar strong { display: block; }
.rpp-bar__go { flex: none; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; background: #F05001; color: #FFFFFF; font-family: var(--font-display, Montserrat, sans-serif); font-size: 16px; font-weight: 800; cursor: pointer; }
.rpp-bar__x { flex: none; width: 44px; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 700px) {
  .rpp-grid { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px 16px; }
  .rpp-photo { display: none; }
  .ef-page .rpp h2 { font-size: 23px; padding-right: 12px; }
  .rpp-lead { font-size: 16px; }
  .rpp-formwrap { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rpp[open] { animation: rpp-in 0.22s ease-out; }
  @keyframes rpp-in { from { opacity: 0; transform: translateY(14px); } }
}
