/* RankedFirst.ai redesign v2 (2026-10-16), from Arthur's Stitch export "rankedfirst hero landing section".
   Loaded LAST on every page when layout.V2 is on, so it overrides blog.css and pages.css.
   Light page, one red accent #D50000, navy #001740, ink band #000E27, Plus Jakarta Sans + Inter.
   Rank scale (map scans): green top 3, yellow-green 4-10, orange 11-20, red not in the top 20. */

:root {
  --red: #D50000; --red-deep: #B80000;
  --navy: #001740; --ink: #000E27; --text: #343B4E; --text-2: #5B6478; --muted: #7D8799;
  --paper: #F5F6FC; --line: #E6E9F2;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  /* v1 used blue as its accent; on v2 pages those slots carry the red, and links go navy. */
  --blue: #D50000; --blue-deep: #B80000; --blue-ink: #001740; --blue-soft: rgba(213, 0, 0, .12);
  --wrap: 1240px; --radius: 16px;
  --g-top: #1E9E4A; --g-mid: #B5D334; --g-low: #F28C28; --g-out: #E5383B;
  --shadow-soft: 0 10px 30px -5px rgba(0, 23, 64, .06), 0 4px 12px -2px rgba(0, 23, 64, .03);
  --shadow-float: 0 20px 40px -8px rgba(0, 23, 64, .10), 0 6px 16px -4px rgba(0, 23, 64, .04);
}
body { color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
a:hover { color: var(--red); }
.wordmark span { color: #056EFD; }                 /* the logo keeps its blue "First" */
.wordmark.on-dark { color: #fff; } .wordmark.on-dark span { color: #6AA8FF; }

/* buttons */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--body); border-radius: 8px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-lg { padding: 16px 24px; }
.btn-white { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.btn-white:hover { background: #F8F9FC; color: var(--navy); }
.btn-light { background: var(--red); color: #fff; }
.btn-light:hover { background: var(--red-deep); color: #fff; }
.i-arrow { width: 16px; height: 16px; flex-shrink: 0; }
.i-play { width: 14px; height: 14px; flex-shrink: 0; }

/* header */
.site-head.v2 { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-head.v2 .head-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 28px; min-height: 80px; padding-top: 0; }
.site-head.v2 .wordmark { font: 800 24px/1 var(--display); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.site-head.v2 .head-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.site-head.v2 .head-nav > a, .nav-more > summary { color: var(--navy); font: 500 15px/1 var(--body); text-decoration: none; white-space: nowrap; padding: 10px 0; cursor: pointer; }
.site-head.v2 .head-nav > a:hover, .nav-more > summary:hover { color: var(--red); }
.site-head.v2 .head-nav a[aria-current="page"], .nav-more.is-current > summary { box-shadow: inset 0 -2px 0 var(--red); }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-drop { position: absolute; top: calc(100% + 12px); left: -14px; min-width: 180px; display: grid; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); }
.nav-drop a { padding: 10px 12px; border-radius: 8px; color: var(--navy); font: 500 15px var(--body); text-decoration: none; }
.nav-drop a:hover { background: var(--paper); color: var(--red); }
.head-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font: 600 15px var(--body); text-decoration: none; white-space: nowrap; }
.i-phone { width: 16px; height: 16px; flex-shrink: 0; }
.site-head.v2 .head-cta { margin: 0; padding: 13px 20px; }
.nav-mobile { display: none; }
@media (max-width: 1260px) {
  .site-head.v2 .head-row { flex-wrap: nowrap; gap: 20px; padding-top: 0; }
  .site-head.v2 .head-nav { order: 0; width: auto; margin: 0 auto; padding: 0; overflow: visible; gap: 22px; }
  .site-head.v2 .head-cta { margin: 0; padding: 13px 18px; font-size: 15px; }
}
@media (max-width: 1100px) {
  .site-head.v2 .head-nav { display: none; }
  .site-head.v2 .head-phone { margin-left: auto; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile > summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav-mobile > summary::-webkit-details-marker { display: none; }
  .nav-mobile > summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); }
  .nav-mobile-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); }
  .nav-mobile-panel a { padding: 11px 12px; border-radius: 8px; color: var(--navy); font: 500 16px var(--body); text-decoration: none; }
  .nav-mobile-panel a:hover { background: var(--paper); }
  .nav-mobile-panel .btn { margin-top: 8px; color: #fff; }
  .nav-mobile-panel .btn:hover { background: var(--red-deep); }
  .nav-mobile-phone { text-align: center; font-weight: 600 !important; }
}
@media (max-width: 600px) {
  .site-head.v2 .head-row { min-height: 66px; gap: 12px; }
  .site-head.v2 .head-cta, .site-head.v2 .head-phone span { display: none; }  /* phones: tap-to-call icon + menu */
  .site-head.v2 .head-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
  .site-head.v2 .wordmark { font-size: 21px; }
}

/* footer */
.site-foot.v2 { background: var(--ink); color: #94A3B8; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-foot.v2 .wordmark { font: 800 24px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.site-foot.v2 .foot-brand p { margin: 14px 0 0; max-width: 32em; font-size: 14.5px; line-height: 1.6; color: #94A3B8; }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col a { color: #CBD5E1; font-size: 14.5px; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.site-foot.v2 .foot-base { margin-top: 0; padding-top: 24px; border-top: 0; font-size: 13px; color: #94A3B8; }
.site-foot.v2 .foot-base a:hover { color: #fff; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .foot-brand { grid-column: 1 / -1; } }

/* call-to-action bands on every other page: a white card with a soft red glow, like the home page */
.cta-band { width: calc(100% - 32px); max-width: 1040px; margin: 72px auto; padding: 52px 40px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -10px rgba(213, 0, 0, .12), 0 0 30px rgba(213, 0, 0, .06); }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--text); }
.cta-band .cta-small { color: #94A3B8; }
.text-link.on-dark { color: var(--navy); }
.text-link.on-dark:hover { color: var(--red); }

/* map-ranking scans (SEO page and others): the same green-to-red scale as the hero picture */
.dot.top { background: var(--g-top); border-color: var(--g-top); color: #fff; }
.dot.mid { background: var(--g-mid); border-color: var(--g-mid); color: #1F2A07; }
.dot.low { background: var(--g-low); border-color: var(--g-low); color: #fff; }
.dot.out { background: var(--g-out); border-color: var(--g-out); color: #fff; }
.legend .k-top { background: var(--g-top); border: 0; } .legend .k-mid { background: var(--g-mid); border: 0; }
.legend .k-low { background: var(--g-low); border: 0; } .legend .k-out { background: var(--g-out); border: 0; }

/* ---------- home page ---------- */
.h2-hero { background: var(--paper); padding: 56px 0 72px; }
.h2-hero-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: center; }
.h2-title { margin: 0 0 26px; font: 800 clamp(44px, 5.2vw, 66px)/1.06 var(--display); letter-spacing: -0.035em; color: var(--navy); }
.h2-title > span { display: block; }
.h2-title .h2-red { position: relative; display: inline-block; color: var(--red); }
.h2-title .stop { margin-left: -0.09em; font-style: normal; }
.h2-swash { position: absolute; left: 2px; bottom: -10px; width: 70%; height: 12px; color: var(--red); }
.h2-lead { max-width: 34em; margin: 0 0 30px; font-size: 17px; line-height: 1.65; color: var(--text); }
.h2-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.h2-firsts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 16px; margin: 0; padding: 0; list-style: none; }
.h2-firsts li { display: flex; align-items: center; gap: 9px; font: 700 13px/1.25 var(--body); color: var(--navy); white-space: nowrap; }
.ic, .ic-lg, .mini { display: grid; place-items: center; flex-shrink: 0; }
.ic { width: 34px; height: 34px; border-radius: 8px; } .ic svg { width: 17px; height: 17px; }
.ic-lg { width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; } .ic-lg svg { width: 24px; height: 24px; }
.ic svg, .ic-lg svg, .step-icon svg, .mini svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-red { background: rgba(213, 0, 0, .09); color: var(--red); }
.t-blue { background: rgba(5, 110, 253, .10); color: #056EFD; }
.t-green { background: rgba(16, 185, 129, .12); color: #0E9F6E; }
.t-purple { background: rgba(139, 92, 246, .12); color: #7C3AED; }

.h2-art { position: relative; padding-right: 150px; }
.h2-scan img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }  /* white image background takes the page colour */
.h2-cards { position: absolute; top: 2%; right: 0; width: 214px; display: grid; gap: 12px; }
.ex-card { position: relative; display: grid; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float); }
.ex-tag { position: absolute; top: 12px; right: 12px; padding: 4px 8px; font: 600 12px/1 var(--body); color: var(--navy); background: #fff; border: 1px solid var(--navy); border-radius: 5px; }  /* readable at a glance: these numbers are examples */
.ex-label { font: 600 13px var(--body); color: var(--navy); }
.ex-num { margin: 4px 0; font: 800 36px/1.05 var(--display); letter-spacing: -0.02em; }
.c-red { color: var(--red); } .c-blue { color: #056EFD; } .c-green { color: #10B981; }
.ex-sub { font-size: 12px; color: var(--muted); } .ex-sub b { font-weight: 600; color: #10B981; }
.ex-note { margin: 0; font-size: 11.5px; text-align: center; color: var(--muted); }
.ex-note a { color: inherit; }
.h2-who { margin: -20px 0 32px; font-size: 14.5px; color: var(--text-2); }
.scan-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.scan-key li { display: flex; align-items: center; gap: 7px; }
.scan-key i { width: 12px; height: 12px; border-radius: 50%; }
.k1 { background: var(--g-top); } .k2 { background: var(--g-mid); } .k3 { background: var(--g-low); } .k4 { background: var(--g-out); }

.h2-sec { padding: 88px 0; }
.h2-white { background: #fff; } .h2-paper { background: var(--paper); } .h2-navy { background: var(--ink); color: #fff; }
.h2-head { max-width: 960px; margin: 0 auto 52px; text-align: center; }
.h2-head h2, .h2-left, .h2-faq h2 { margin: 0 0 10px; font: 800 clamp(28px, 3.2vw, 38px)/1.15 var(--display); letter-spacing: -0.025em; color: var(--navy); }
.h2-head p { margin: 0; font-size: 18px; color: var(--text); }
.h2-head.on-dark h2 { color: #fff; } .h2-head.on-dark p { color: #94A3B8; }

.h2-signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.h2-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.h2-card h3 { margin: 0 0 12px; font: 700 18px/1.35 var(--display); letter-spacing: -0.01em; color: var(--navy); }
.h2-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text); }

.h2-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.h2-steps::before { content: ""; position: absolute; top: 36px; left: 36px; right: 14%; border-top: 2px dotted rgba(255, 255, 255, .2); }
.h2-steps li { position: relative; }
.step-icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.step-icon svg { width: 28px; height: 28px; }
.step-icon b { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; font: 700 12px/24px var(--body); text-align: center; color: #fff; }
.n-red { background: var(--red); } .n-blue { background: #056EFD; } .n-purple { background: #8B5CF6; } .n-green { background: #10B981; }
.h2-steps h3 { margin: 0 0 8px; font: 700 18px/1.3 var(--display); color: #fff; }
.h2-steps p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #94A3B8; }

.h2-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; }
.trio-open { display: flex; flex-direction: column; }
.trio-open h3, .trio-card h3 { margin: 0 0 18px; font: 700 24px/1.25 var(--display); letter-spacing: -0.015em; color: var(--navy); }
.trio-check h3 { font-size: 21px; }
.trio-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.trio-kinds li { display: flex; align-items: center; gap: 10px; font: 500 14px var(--body); color: var(--text); }
.mini { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--navy); }
.mini svg { width: 16px; height: 16px; stroke-width: 1.8; }
.trio-card { display: flex; flex-direction: column; }
.trio-card p { margin-bottom: 22px; }
.trio-open .arrow-link, .trio-card .arrow-link { margin-top: auto; }
.arrow-link { font: 600 14.5px var(--body); color: var(--navy); text-decoration: none; }
.arrow-link:hover { color: var(--red); }
.trio-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }
.mini-phone { display: grid; align-content: start; gap: 6px; flex-shrink: 0; width: 110px; height: 120px; padding: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.mp-map { position: relative; height: 44px; border-radius: 7px; background: linear-gradient(135deg, #ECEFF4, #E2E6EE); }
.mp-map i { position: absolute; width: 9px; height: 9px; border-radius: 50%; }
.mp-map .p1 { left: 22%; top: 40%; } .mp-map .p2 { left: 50%; top: 22%; } .mp-map .p3 { left: 72%; top: 55%; }
.mp-row { display: flex; align-items: center; gap: 6px; }
.mp-row i { width: 7px; height: 7px; border-radius: 50%; }
.mp-row span { flex: 1; height: 6px; border-radius: 6px; background: #CBD5E1; }
.p1 { background: var(--red); } .p2 { background: #056EFD; } .p3 { background: var(--navy); }

.h2-left { margin-bottom: 40px; }
.h2-friday { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.note2 { padding: 32px; }
.note2-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.note2-top p { margin: 0; font-size: 14.5px; }
.note2 .ex-tag { position: static; }
.note2 h3 { margin: 0 0 8px; font: 700 16px var(--body); letter-spacing: 0; color: var(--navy); }
.note2 ul { margin: 0 0 18px; padding-left: 20px; }
.note2 li { margin: 6px 0; font-size: 15px; } .note2 li::marker { color: var(--red); }
.note2 p { margin: 0 0 14px; font-size: 15px; } .note2 p:last-child { margin-bottom: 0; }
.note2 b { color: var(--navy); }
.h2-founder { padding: 32px; background: #F4F6FA; border: 1px solid var(--line); border-radius: 16px; }
.h2-founder img { display: block; width: 96px; height: 96px; margin-bottom: 16px; border-radius: 14px; object-fit: cover; }
.h2-founder h3 { margin: 0; font: 700 19px var(--display); color: var(--navy); }
.f-role { margin: 4px 0 0; font: 500 14px var(--body); }
.f-creds { margin: 4px 0 20px; font: 600 11.5px var(--body); letter-spacing: .08em; color: var(--muted); }
.h2-founder blockquote { margin: 0 0 22px; padding: 2px 0 2px 16px; border-left: 2px solid var(--red); font-size: 14.5px; font-style: italic; color: var(--text); }

.h2-faq { max-width: 760px; }
.h2-faq h2 { margin-bottom: 36px; text-align: center; }
.h2-faq .faq-item { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.h2-faq .faq-item summary { padding: 22px 56px 22px 24px; font: 700 17px var(--display); letter-spacing: -0.01em; color: var(--navy); }
.h2-faq .faq-item summary::after { top: 17px; right: 24px; color: var(--red); font-weight: 400; }
.h2-faq .faq-a { padding: 0 24px 8px; }
.h2-faq .faq-a p { font-size: 15px; }
.h2-faq .quiet { margin-top: 32px; text-align: center; }

.h2-closing { padding: 0 0 88px; background: var(--paper); }
.closing-card { max-width: 1040px; margin: 0 auto; padding: 52px 40px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px -10px rgba(213, 0, 0, .12), 0 0 30px rgba(213, 0, 0, .06); }
.closing-card h2 { margin: 0 0 14px; font: 800 clamp(28px, 3.2vw, 38px)/1.15 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.closing-card p { max-width: 38em; margin: 0 auto 26px; font-size: 18px; }
.closing-card .text-link.on-dark { font-weight: 600; color: var(--text); }
.closing-card .cta-small { margin-top: 16px !important; font-size: 13px; color: #94A3B8; }

/* Hormozi run 2 (2026-10-16): mortgage band, two Friday notes, mortgage chip link, 15-minute agenda */
.mband { max-width: 820px; margin: 0 auto; padding-left: 28px; border-left: 3px solid var(--red); }
.mband h2 { margin: 0 0 16px; font: 800 clamp(28px, 3.2vw, 38px)/1.15 var(--display); letter-spacing: -0.025em; color: var(--navy); text-wrap: balance; }
.mband p { margin: 0 0 26px; font-size: 18px; line-height: 1.65; }
.mband .cta-actions { justify-content: flex-start; margin-bottom: 18px; }
.mband .text-link.on-dark { font-weight: 600; color: var(--text); }
.mband .mband-work { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.mband .mband-work h3 { margin: 0 0 8px; font: 700 16px var(--display); color: var(--navy); }
.mband .mband-work ul { margin: 0; padding-left: 18px; }
.mband .mband-work li { margin: 6px 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.mband .mband-work li::marker { color: var(--red); }
.mband .mband-work a { font-weight: 600; color: var(--navy); }
.h2-notes { display: grid; gap: 24px; }
@media (min-width: 1001px) { .h2-founder { position: sticky; top: 96px; } }  /* two notes on the left; Arthur stays in view */
.trio-kinds a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); text-decoration: none; }
.trio-kinds a:hover { color: var(--red); }
.closing-agenda { max-width: 36em; margin: 0 auto 30px; text-align: left; }
.closing-agenda h3 { margin: 0 0 10px; font: 700 17px var(--display); color: var(--navy); }
.closing-agenda ol { margin: 0; padding-left: 22px; }
.closing-agenda li { margin: 8px 0; font-size: 15.5px; }
.closing-agenda li::marker { font-weight: 700; color: var(--red); }
.closing-agenda b { color: var(--navy); }

@media (max-width: 1100px) {
  .h2-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .h2-art { max-width: 640px; width: 100%; margin: 0 auto; padding-right: 0; }
  .h2-cards { position: static; width: auto; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
  .ex-note { grid-column: 1 / -1; }
  .scan-key { justify-content: center; }
}
@media (max-width: 1000px) {
  .h2-signals, .h2-steps { grid-template-columns: 1fr 1fr; }
  .h2-steps::before { display: none; }
  .h2-trio, .h2-friday { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .h2-hero { padding: 36px 0 52px; }
  .h2-buttons .btn { width: 100%; }
  .h2-firsts { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .h2-firsts li { flex-direction: column; text-align: center; gap: 6px; font-size: 11.5px; white-space: normal; }
  .h2-cards { gap: 8px; }
  .ex-card { padding: 10px; }
  .ex-tag { position: static; justify-self: start; margin-bottom: 4px; }
  .ex-num { font-size: 24px; }
  .ex-sub { font-size: 11px; }
  .h2-signals, .h2-steps { grid-template-columns: 1fr; }
  .h2-sec { padding: 64px 0; }
  .note2, .h2-founder, .h2-card { padding: 22px; }
  .closing-card, .cta-band { padding: 36px 20px; }
  .mband { padding-left: 18px; }
  .mband .btn { width: 100%; }
  .trio-row { flex-wrap: wrap; }
}
