/* Ranktiva theme: third part of the site styles (theme 1.0.12). Loaded after site-2.css.
   Stage 3: the three Home changes of 19 Nov, the type scale on Checkout and Thank-you,
   and the Pricing page, version 2. */

/* ---------- Home, first screen: "See what it does" and its small arrow ---------- */
.r4 .rk-down .wp-block-button__link::after{content:"";flex:0 0 18px;width:18px;height:18px;margin-left:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1422' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M6 13l6 6 6-6'/%3E%3C/svg%3E") no-repeat center/contain;animation:rk-bob 1.8s ease-in-out infinite}
@keyframes rk-bob{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){.r4 .rk-down .wp-block-button__link::after{animation:none}}
/* The button's target: the section starts right under the menu bar (desktop) or at the top of the screen (phone).
   The page already keeps 96 px free above any target (ranktiva.css), so that distance is taken back here. */
.r4#what-it-does{scroll-margin-top:-28px}
@media (max-width:781px){.r4#what-it-does{scroll-margin-top:-96px}}

/* ---------- Home: "Works with", a section of its own. Static. Two centred rows of four. ---------- */
.r4.works{padding:60px var(--pad) 64px}
.r4.works .wrap{gap:28px;align-items:center}
.r4.works h2{font-size:var(--lead);line-height:1.3;font-weight:700;text-align:center}
.r4 .logos{display:grid;grid-template-columns:repeat(4,auto);justify-content:center;justify-items:center;align-items:center;gap:28px 64px}
.r4 .logos .lg{gap:12px;min-height:48px;font-size:var(--body);font-weight:700;line-height:1.2}
.r4 .logos img{height:48px;width:auto}
.r4 .logos .wm img{height:22px}
@media (max-width:1100px){
  .r4 .logos{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 12px;align-items:start;width:100%}
  .r4 .logos .lg{flex-direction:column;justify-content:flex-start;gap:8px;text-align:center;white-space:normal}
  .r4 .logos .wm{align-self:center;width:100%;max-width:150px}
  .r4 .logos .wm img{height:auto;width:100%}
}
@media (max-width:781px){
  .r4.works{padding:36px var(--pad) 40px}
  .r4.works .wrap{gap:20px}
  .r4 .logos{gap:22px 6px}
  .r4 .logos img{height:44px}
  .r4 .logos .wm img{height:auto}
}

/* ---------- Home: the text link under the month timeline ---------- */
.r4 .month .tlink{text-align:center;margin-top:10px}
@media (max-width:781px){.r4 .month .tlink{text-align:left;margin-top:6px}}

/* ---------- The "Secure payment by Stripe" line: a small lock in front (shared buy-button pattern and Checkout) ---------- */
.rk-lock::before{content:"";display:inline-block;width:1.15em;height:1.15em;margin-right:.4em;vertical-align:-.2em;background-color:var(--or);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat center/contain;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") no-repeat center/contain}
.r4.orange .rk-lock::before{background-color:currentColor}

/* ---------- Checkout: the site's type scale. The payment frame and its loading dots are not styled here. ---------- */
.rk-chead h1{font-size:var(--h2)!important;line-height:1.1!important}
.rk-chead p{font-size:var(--lead)!important;line-height:1.45!important}
.rk-cko{font-size:var(--body);line-height:1.5}
.rk-cko h2{font-size:var(--lead)!important;line-height:1.25!important}
.rk-cko .has-body-tight-font-size{font-size:var(--body)!important;line-height:1.4}
/* Under the form: the payment line on a row of its own at body size, then Stripe's own badge at its own size (150 x 34, not restyled). */
.rk-cko .rk-fnote{margin-top:20px;padding-top:18px;border-top:1.5px solid var(--rule);font-size:var(--body);line-height:1.4;font-weight:700;text-align:center}
.rk-cko .rk-stripe{margin:16px 0 0;display:flex;justify-content:center}
.rk-cko .rk-stripe img{width:150px;height:34px;max-width:none;display:block}
/* Checkout: the last two blocks sit in a row under both columns, so the right column ends with the form card. */
.rk-cko .rk-co-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 36px;margin-top:26px}
@media (max-width:781px){.rk-cko .rk-co-foot{grid-template-columns:minmax(0,1fr);gap:20px 0}}

/* ---------- Thank-you (rebuilt on the round 4 sections) ---------- */
.r4 .ty{display:flex;flex-direction:column;gap:22px}
.r4 .tys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.r4 .tys>.wp-block-group{background:#fff;border-radius:var(--r);padding:24px 26px 26px;display:flex;flex-direction:column;gap:8px}
.r4 .tys .n{width:40px;height:40px;border-radius:999px;background:var(--or);font-weight:800;font-size:var(--lead);line-height:1;display:flex;align-items:center;justify-content:center}
.r4 .tys h2,.r4 .tys h3{font-size:var(--h3);line-height:1.15}
.r4 .tys .small{margin-top:auto;padding-top:10px;border-top:1.5px solid var(--rule)}
.r4 .tyb{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.r4 .tyb>.wp-block-group{display:flex;flex-direction:column;gap:4px;max-width:40em}
.r4 .fcardq{display:grid;grid-template-columns:120px minmax(0,1fr);gap:28px;align-items:center;max-width:860px}
.r4 .fcardq blockquote{border:0;font-size:var(--h3);font-weight:700;line-height:1.3}
.r4 .fcardq .nm{margin-top:12px;font-weight:800}
@media (max-width:781px){
  .r4 .tys{grid-template-columns:1fr;gap:10px}
  .r4 .tys>.wp-block-group{padding:18px 20px 20px}
  .r4 .tyb{order:-1}
  .r4 .tyb .wp-block-buttons,.r4 .tyb .wp-block-button,.r4 .tyb .wp-block-button__link{width:100%}
  .r4 .fcardq{grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:start}
}

/* ---------- Pricing, version 2 (19 Nov) ---------- */
/* Top: words on the left, the sample report preview on the right */
.r4.phead .wrap{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:28px 56px;align-items:center}
.r4.phead .shot{border-color:var(--rulew)}
/* What your $149 does every month: one card per work step of the month */
.r4 .mcards{margin-top:36px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.r4 .mcards.six{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.r4 .mc{background:var(--pale);border-radius:20px;padding:20px 20px 22px;display:flex;flex-direction:column;gap:8px}
.r4 .mcards.six .mc{padding:24px 26px 26px}
.r4 .mcards.six .mc h3{font-size:var(--h3);line-height:1.15}
.r4 .mc::before{content:"";flex:0 0 30px;width:30px;height:30px;background:no-repeat center/contain}
.r4 .mc h3{font-size:var(--lead);line-height:1.25}
.r4 .mc p{line-height:1.4}
.r4 .plinks{margin-top:22px;display:flex;flex-wrap:wrap;gap:0 28px}
.r4 .mcards+.closing{margin-top:28px}
.r4 .closing+.plinks{margin-top:10px}
.r4 .mc.s1::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E")}
.r4 .mc.s3::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V5'/%3E%3Cpath d='M4 5h11l-2 3.500 2 3.500H4'/%3E%3C/svg%3E")}
.r4 .mc.s5::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M9 3v4'/%3E%3Cpath d='M15 3v4'/%3E%3C/svg%3E")}
.r4 .mc.s6::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 6l4 4'/%3E%3Cpath d='M4 20l1-5L16 4l4 4L9 19z'/%3E%3C/svg%3E")}
.r4 .mc.s8::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E")}
.r4 .mc.s10::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20v-8'/%3E%3Cpath d='M12 20V5'/%3E%3Cpath d='M19 20V9'/%3E%3C/svg%3E")}
/* Compare how you pay: three cards, large type, the Ranktiva card highlighted */
.r4 .cmp{margin-top:36px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.r4 .cmpc{background:#fff;border-radius:var(--r);padding:28px 30px 30px;display:flex;flex-direction:column;gap:6px}
.r4 .cmpc h3{font-size:var(--lead);line-height:1.25;margin-bottom:10px}
.r4 .cmpc p{font-size:36px;line-height:1.1;font-weight:800}
.r4 .cmpc.hi{background:var(--ink);color:#fff}
.r4 .cmpc.hi p{color:var(--or)}
/* Terms: four numbered cards, on a white section */
.r4 .tys.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.r4 .tys.onw>.wp-block-group{background:var(--pale)}
/* Community row on its own, with a small "people" icon in place of a photo */
.r4 .crow.solo{margin-top:0}
.r4 .crow.ic::before{content:"";flex:0 0 44px;width:44px;height:44px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='9' r='3'/%3E%3Ccircle cx='17' cy='10' r='2.4'/%3E%3Cpath d='M2.500 19c.6-3 2.800-4.500 5.500-4.500s4.900 1.500 5.500 4.500'/%3E%3Cpath d='M15.500 14.800c2.500-.3 4.600 1 5.500 3.700'/%3E%3C/svg%3E") no-repeat center/contain}
/* "Is it for you?" on a white section: the plain card turns pale */
.r4 .two.onw .box:not(.ink){background:var(--pale)}
/* Kept for pages that use them: a founder strip standing alone, questions on white */
.r4.founder.solo{padding-top:var(--gap)}
.r4.founder.solo .wrap{border-top:0;padding-top:0}
.r4.qw details{background:var(--pale)}
@media (max-width:1100px){.r4 .mcards{grid-template-columns:repeat(2,minmax(0,1fr))}.r4 .tys.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1000px){.r4 .mcards.six{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.r4 .cmp{grid-template-columns:minmax(0,1fr)}}
@media (max-width:781px){
  .r4.phead .wrap{grid-template-columns:minmax(0,1fr)}
  .r4 .mcards,.r4 .mcards.six{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:20px}
  .r4 .mc,.r4 .mcards.six .mc{display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 14px;padding:14px 16px 16px;align-items:start}
  .r4 .mc::before{grid-row:1/3;margin-top:2px}
  .r4 .mc h3,.r4 .mc p{grid-column:2}
  .r4 .mcards+.closing{margin-top:18px}
  .r4 .cmp{margin-top:20px;gap:10px}
  .r4 .cmpc{padding:20px 22px 22px}
  .r4 .cmpc p{font-size:28px}
  .r4 .tys.four{grid-template-columns:minmax(0,1fr)}
  .r4 .crow.ic::before{flex-basis:36px;width:36px;height:36px}
}
