/* The poster is drawn at the mockup's own 724px width in px units and scaled
   as a whole by app.js, so proportions match the mockup at any window size. */
:root {
  --navy: #12296b;
  --navy-deep: #0c2457;
  --blue: #1d5bd6;
  --sky: #dcecfa;
  --green: #1d6b3a;
  --green-text: #187a3c;
  --spark: #39d36f;
  --cyan: #45cdf0;
  --font: 'Poppins', 'Arial Black', Arial, sans-serif;
  --num: 'Inter', 'Arial Black', Arial, sans-serif; /* the big figures */
}
* { box-sizing: border-box; }
body { margin: 0; background: #eef2f8; color: var(--navy); font-family: var(--font); }
p, h1, h2 { margin: 0; }

/* ---- sign-in ---- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { background: #fff; padding: 32px; border-radius: 14px; width: min(100%, 360px);
  box-shadow: 0 8px 30px rgba(12, 36, 87, .12); display: grid; gap: 10px; text-align: center; }
.login img { width: 240px; max-width: 100%; height: auto; margin: 0 auto 6px; }
.login h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.login label { text-align: left; font-weight: 700; font-size: 14px; }
.login input, .finder input { font: 600 16px var(--font); padding: 10px 12px; border: 2px solid #b9c8e3; border-radius: 8px; color: var(--navy); }
.login input:focus, .finder input:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.login button { font: 800 16px var(--font); padding: 11px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; }
.login-error { color: #b3261e; font-weight: 700; font-size: 14px; }

/* ---- search bar ---- */
.finder { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #d5deec;
  padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.finder label { font-weight: 800; font-size: 14px; }
.finder input { flex: 1 1 200px; min-width: 0; }
.finder a { color: var(--blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.finder-status { flex-basis: 100%; font-weight: 700; font-size: 14px; color: #8a4b00; }
.finder-status:empty { display: none; }

.stage { padding: 16px 8px 32px; display: flex; justify-content: center; }

/* ---- poster ---- */
/* --w is the layout width app.js scales from: the mockup's 724px, or 404px for the stacked phone layout below. */
.poster { --w: 724; width: calc(var(--w) * 1px); background: #fff; position: relative; overflow: hidden; padding: 0 12px 9px;
  box-shadow: 0 6px 24px rgba(12, 36, 87, .15); }
.poster[hidden] { display: none; }

.hero { position: relative; margin: 0 -12px; padding: 10px 150px 2px; text-align: center;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 214, 150, .55) 0 6%, transparent 7%),
    radial-gradient(circle at 78% 22%, rgba(255, 222, 170, .5) 0 5%, transparent 6%),
    radial-gradient(circle at 30% 72%, rgba(255, 236, 205, .6) 0 4%, transparent 5%),
    radial-gradient(circle at 70% 60%, rgba(255, 228, 190, .45) 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 0%, #fff6ea 0%, #fffaf3 55%, #fff 100%); }
.leaves { position: absolute; top: 0; height: auto; pointer-events: none; }
.leaves.left { left: 0; width: 128px;
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(#000 80%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(#000 80%, transparent); mask-composite: intersect; }
.leaves.right { right: 0; width: 138px;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent), linear-gradient(#000 82%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 55%, transparent), linear-gradient(#000 82%, transparent); mask-composite: intersect; }
.logo { position: relative; width: 218px; height: auto; display: block; margin: 0 auto; }
.partners { position: relative; font-size: 16.3px; font-weight: 800; font-style: italic; color: var(--blue);
  border-top: 2px solid #7d8794; width: 212px; margin: 1px auto 0; padding-top: 3px; }
.hero h1 { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; margin-top: 1px; }
.month { font-size: 57px; font-weight: 900; color: var(--navy-deep); text-transform: uppercase; letter-spacing: -.5px;
  white-space: nowrap; text-shadow: 0 2px 0 #fff, 0 3px 6px rgba(12, 36, 87, .2); }
.incentive { font-size: 41px; font-weight: 800; color: var(--blue); margin-top: -7px; letter-spacing: -.3px; white-space: nowrap; }
.program { font-size: 22.5px; font-weight: 800; color: var(--navy-deep); margin-top: 4px; white-space: nowrap; }
.agency { position: relative; background: var(--sky); border-radius: 10px; margin: 13px 3px 0; padding: 10px 12px 13px; }
.agency-name { font-size: 22px; font-weight: 800; line-height: 1.2; }
.agency-code { font-size: 13px; font-weight: 700; margin-top: 4px; }

.target { display: flex; align-items: center; background: var(--sky); border-radius: 10px; margin-top: 4px;
  height: 61px; padding: 0 22px; }
.target-label { font-size: 24.5px; font-weight: 800; text-transform: uppercase; white-space: nowrap;
  padding-right: 18px; border-right: 2px solid #7f98c4; line-height: 36px; }
.target-value { flex: 1; min-width: 0; text-align: left; padding-left: 20px; font-size: 56px; font-weight: 900; text-transform: uppercase; letter-spacing: -.5px;
  color: var(--navy-deep); white-space: nowrap; }

.target-note { text-align: center; font-size: 14.5px; font-weight: 700; line-height: 1.2; margin-top: 5px; text-wrap: balance; }

.caps { display: flex; align-items: center; background: var(--green); border-radius: 8px; margin-top: 6px; height: 92px;
  padding: 0 18px 0 22px; color: #fff; }
.caps-icon { width: 78px; height: 56px; flex: none; }
.caps-text { border-left: 2px solid rgba(255, 255, 255, .85); margin-left: 22px; padding-left: 24px; min-width: 0; }
.caps-head { font-size: 64.4px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.5px; white-space: nowrap; position: relative; top: 6px; }
.caps-sub { font-size: 17.3px; font-weight: 800; margin-top: 6px; white-space: nowrap; position: relative; top: -2px; }

.columns { display: grid; grid-template-columns: 378px minmax(0, 1fr); gap: 10px; margin-top: 3px; }

.bonus h2 { font-size: 43px; font-weight: 900; text-transform: uppercase; color: var(--navy-deep); letter-spacing: -.3px;
  padding: 4px 0 2px 18px; line-height: 1.05; border-bottom: 5px solid var(--green); margin-right: 12px; }
.bonus h2 span { color: var(--blue); }
.tiers { position: relative; margin-top: 4px; }
.tiers::before { content: ''; position: absolute; left: 40px; top: -6px; bottom: -6px; width: 6px; background: var(--blue); border-radius: 3px; }
.tier { position: relative; padding-left: 63px; }
.tier + .tier { margin-top: 7px; }
.tier + .tier .tier-card { padding-bottom: 2px; }
.dot { position: absolute; z-index: 1; left: 10px; top: 20px; width: 66px; height: 66px; border-radius: 50%; background: var(--navy-deep);
  border: 3px solid #fff; box-shadow: 0 0 0 5px var(--blue); color: #fff; font-size: 32px; font-weight: 900;
  display: grid; place-items: center; }
.tier-card { background: var(--sky); border-radius: 12px; padding: 1px 0 6px 0; }
.tier-head { font-size: 41px; font-weight: 900; line-height: .98; padding-left: 32px; letter-spacing: -.5px; }
.tier-head > span { color: var(--blue); }
.target-value, .dot, .tier-head > span, .rate span, .sum b, .csr-amount, .csr-row b { font-family: var(--num); }
.tier-sub { font-size: 22.5px; font-weight: 700; padding-left: 36px; line-height: 1.1; margin-top: 6px; }
.rate { background: var(--green); color: #fff; border-radius: 6px; margin: 3px 14px 6px 28px; padding: 0 14px; font-size: 22px; font-weight: 800; white-space: nowrap; display: flex; align-items: center; height: 43px; line-height: 1; }
.rate span { font-size: 40px; font-weight: 900; margin-right: 13px; letter-spacing: -.5px; }
.example { background: #fff; border: 2px solid var(--green); border-radius: 8px; margin: 0 9px 0 17px; padding: 4px 8px 4px 12px; }
.example p:first-child { font-size: 18.8px; line-height: 1.15; font-weight: 800; color: #1e4a2c; }
.sum { font-size: 29px; font-weight: 800; white-space: nowrap; line-height: .95; }
.sum b { font-size: 39px; font-weight: 900; color: var(--green-text); letter-spacing: -.5px; }
.tier-note { position: relative; background: #fff; margin-top: 0; line-height: 1.15; padding: 4px 0 0 18px; font-size: 16.7px; font-weight: 600; color: var(--blue); }
.tier-note b { display: block; font-weight: 800; color: #1747b5; }

.csr { background: var(--navy-deep); color: #fff; border-radius: 6px; border-left: 3px solid var(--cyan); padding: 8px 18px 4px 22px; }
.plus { display: block; font-size: 32px; font-weight: 900; color: var(--cyan); text-transform: uppercase; line-height: .93; letter-spacing: -.5px; white-space: nowrap; }
.plus span { color: #fff; }
.csr h2 { font-size: 39px; font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.3px;
  border-bottom: 3px solid var(--spark); padding-bottom: 3px; }
.csr-amount { position: relative; text-align: center; font-size: 80px; font-weight: 900; line-height: .8; margin-top: 15px; letter-spacing: -1px; }
.spark { position: absolute; top: 14px; width: 34px; height: 48px; }
.spark i { position: absolute; right: 0; top: 22px; width: 26px; height: 4px; background: var(--spark); border-radius: 2px; }
.spark.l { left: 14px; } .spark.r { right: 14px; transform: scaleX(-1); }
.spark::before, .spark::after { content: ''; position: absolute; height: 4px; background: var(--spark); border-radius: 2px; right: 0; }
.spark::before { width: 24px; top: 6px; transform: rotate(32deg); }
.spark::after { width: 24px; top: 38px; transform: rotate(-32deg); }
.csr-unit { text-align: center; font-size: 22px; font-weight: 800; line-height: 1.1; margin-top: 6.5px; }
.qualify { background: var(--sky); color: var(--navy); border-radius: 6px; text-align: center; font-size: 14.5px; font-weight: 700;
  margin: 4px -6px 0 -15px; padding: 2px 6px 1px; line-height: 1.2; }
.qualify b { display: block; font-size: 20.6px; font-weight: 900; color: var(--blue); }
.csr-then { font-size: 17px; font-weight: 500; line-height: 1.2; margin-top: 5px; }
.csr-examples { margin: 8px -5px 0 -15px; border: 2px solid var(--green); border-radius: 6px; background: var(--green); overflow: hidden; }
.csr-examples-head { text-align: center; font-size: 18.4px; font-weight: 800; padding: 1px 0 2px; }
.csr-row { display: flex; align-items: center; background: #fff; color: var(--navy); margin: 3px 6px; border-radius: 6px;
  border: 2px solid var(--green); height: 47px; font-size: 22px; font-weight: 800; white-space: nowrap; }
.csr-row:last-child { margin-bottom: 6px; }
.csr-row > span { font-size: 20.2px; padding: 0 10px 0 28px; border-right: 2px solid var(--green); line-height: 36px; }
.csr-row b { flex: 1; text-align: center; font-size: 43.2px; font-weight: 900; color: var(--green-text); letter-spacing: -.5px; padding-left: 10px; }
.comply { border-top: 3px solid var(--spark); margin-top: 14px; padding-top: 6px; font-size: 15.5px; font-weight: 500; line-height: 1.22; }
.comply b { font-weight: 800; }

.poster-foot { text-align: center; margin-top: 5px; }
.fine { font-size: 11.2px; font-weight: 700; line-height: 1.3; border-bottom: 2px solid var(--blue); padding-bottom: 1px; }
.support { font-size: 14.5px; font-weight: 800; margin-top: 2px; }
.contact { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 2px; font-size: 17px; font-weight: 800; }
.contact a { color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.contact svg { width: 26px; height: 26px; }
.contact .sep { color: var(--navy); }
.underwriting { font-size: 12px; font-weight: 700; margin-top: 3px; }
.underwriting a { color: var(--blue); text-decoration: none; }

/* ---- phones: same poster, reflowed into one column at a readable size ---- */
/* An agency's own page (/a/<token>): poster only. */
.public .finder, .public .staff-only, .public-only { display: none; }
/* The email's screenshot of that page: poster only, flush top-left. */
.shot #staff { display: none; }
.shot .stage { padding: 0 8px; }
.public p.public-only { display: block; }
.public span.public-only { display: inline; }
/* Opted-out agencies: stamp across the Producer panel. */
.csr { position: relative; }
.optout-stamp { position: absolute; z-index: 2; left: 50%; top: 210px; transform: translateX(-50%) rotate(-8deg); white-space: nowrap;
  background: #fff; color: #b3261e; border: 5px solid #b3261e; border-radius: 10px; padding: 6px 16px 8px;
  font-size: 38px; font-weight: 900; text-transform: uppercase; line-height: 1; text-align: center; box-shadow: 0 4px 14px rgb(0 0 0 / .35); }
.optout-stamp span { display: block; font-size: 15px; font-weight: 800; text-transform: none; margin-top: 4px; }
.optout-stamp span + span { font-size: 13px; font-weight: 700; margin-top: 2px; }
.optout-stamp[hidden] { display: none; }
.optout hr { width: 100%; border: 0; border-top: 1px solid #d5deec; margin: 2px 0; }
.staff-email { display: grid; gap: 8px; justify-items: start; }
.optout-state.ok { color: var(--green-text); }
.test-mode { background: #b3261e; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 14px !important; font-weight: 800 !important; }
.email-link { font-size: 13px !important; font-weight: 600 !important; word-break: break-all; }
/* Staff action under the poster: record a Producer gift-card opt-out. */
.stage { flex-direction: column; align-items: center; }
.optout { width: min(100%, 724px); margin-top: 16px; padding: 16px; background: #fff; border: 2px solid #b9c8e3; border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1.35; display: grid; gap: 10px; justify-items: start; }
.optout-state { font-weight: 800; }
.optout-state:empty { display: none; }
.optout-state.out { color: #b3261e; }
.optout button { font: 800 15px var(--font); min-height: 44px; padding: 8px 16px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--blue); background: #fff; color: var(--blue); }
.optout button.primary, #optout-btn { background: var(--blue); color: #fff; }
.optout a { color: var(--blue); font-weight: 700; }
.optout dialog { border: 0; border-radius: 12px; padding: 20px; max-width: min(92vw, 420px); color: var(--navy); font-family: var(--font); }
.optout dialog::backdrop { background: rgb(12 36 87 / .45); }
.optout dialog p { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.optout dialog label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.optout textarea { width: 100%; font: 500 15px var(--font); padding: 8px 10px; border: 2px solid #b9c8e3; border-radius: 8px; color: var(--navy); margin-bottom: 14px; resize: vertical; }
.optout textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.optout-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 599px) {
  .finder { padding: 6px 12px; gap: 2px 12px; }
  .finder label { flex-basis: 100%; font-size: 13px; }
  .poster { --w: 404; }
  .hero { padding: 8px 12px 2px; }
  .leaves.left { width: 72px; } .leaves.right { width: 78px; }
  .logo { width: 170px; }
  .partners { font-size: 14px; width: 170px; }
  .month { font-size: 38px; }
  .incentive { font-size: 29px; margin-top: -3px; }
  .program { font-size: 18px; }
  .agency { margin-top: 10px; }
  .agency-name { font-size: 20px; }
  .agency-code { font-size: 15px; }
  .target { flex-direction: column; height: auto; padding: 6px 12px 4px; }
  .target-label { font-size: 20px; padding: 0; border-right: 0; line-height: 1.3; }
  .target-value { text-align: center; padding: 0; font-size: 50px; line-height: 1.1; width: 100%; }
  .caps { height: auto; padding: 10px 12px; }
  .caps-icon { width: 54px; height: 40px; }
  .caps-text { margin-left: 12px; padding-left: 12px; min-width: 0; }
  .caps-head { font-size: 36px; top: 0; }
  .caps-sub { font-size: 15px; white-space: normal; top: 0; line-height: 1.2; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bonus h2 { margin-right: 0; }
  .tier-note { padding-bottom: 4px; }
  .csr { padding: 10px 18px 10px 22px; }
  .comply br { display: none; }
  .fine { font-size: 14px; padding: 6px 0 4px; }
  .support { padding-top: 4px; }
  .contact { flex-wrap: wrap; gap: 0 18px; }
  .contact .sep { display: none; }
  .contact a { min-height: 44px; }
}
