/* =========================================================================
   Content pages (page-content.php) — shared layout for the marketing content
   pages (How it works, Insurance Agents, FMOs & Master Agents, Partners,
   Compliance & trust, WDG). Layout only; every word is per-page in settings.
   ========================================================================= */

/* The theme's <body> is white by default (the light legal/privacy pages rely on
   it). Content-template pages are fully dark, so give their body a navy base:
   no white can show below the footer or during overscroll. Scoped to this
   template's body class, so other pages keep their white body. */
body.page-template-page-content { background: var(--navy, #0A1533); }

.cp-hero { padding: 72px 0 56px; text-align: center; }
.cp-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 10px auto 0; max-width: 16ch; }
.cp-hero-sub { max-width: 60ch; margin: 18px auto 0; font-size: 18px; line-height: 1.55; color: var(--text2); }
.cp-hero-cta { margin-top: 26px; }

.cp-block { padding: 56px 0; }
/* Section tones are DARK by default (the theme is dark). Tone is set explicitly
   per block in settings, never by position. 'surface' is a lighter dark band
   used only for rhythm; there is no white on these pages. 'light' stays defined
   for opt-in use but is not applied by default. */
.cp-block.sec-surface { background: var(--surface, #101E42); color: var(--text, #F4F7FF); }
.cp-block.sec-light { background: var(--light-surface, #F5F7FA); color: var(--navy, #0A1533); }
.cp-block.sec-light .kicker { color: var(--hover, #14A56A); }
.cp-block h2 { font-size: clamp(24px, 3.5vw, 34px); line-height: 1.15; margin: 8px 0 0; max-width: 22ch; }
.cp-block .kicker { display: block; }
.cp-lead { max-width: 64ch; margin: 16px 0 0; font-size: 17px; line-height: 1.6; }
.cp-block.sec-light .cp-lead { color: #39415c; }

/* Status callout (e.g. "in development") — deliberately prominent, not buried. */
.cp-note {
	max-width: 760px; margin: 0 auto 8px; padding: 18px 22px;
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
	border-left: 4px solid var(--accent); border-radius: 12px;
	background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.cp-note-h { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cp-note p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.cp-block.sec-light .cp-note { background: #eef7f1; }

/* Steps (numbered) */
.cp-steps { list-style: none; counter-reset: step; margin: 28px auto 0; display: grid; gap: 16px; max-width: 760px; }
/* The steps kicker + heading share the box's 760 measure and centre with it, so
   the whole block is one centred readable column (text stays left) rather than the
   box stranding hard-left of its heading. */
.cp-block--steps .kicker,
.cp-block.cp-block--steps h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cp-steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.cp-steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.cp-step-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16.5px; }
.cp-step-ic { display: inline-flex; flex: none; color: var(--accent); }
.cp-step-text { display: block; margin-top: 4px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
.cp-block.sec-light .cp-steps li { background: #fff; }
.cp-block.sec-light .cp-step-text { color: #55607a; }

/* Cards */
.cp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.cp-card { padding: 24px 22px; }
.cp-card-ic { display: inline-flex; color: var(--accent); margin-bottom: 12px; }
.cp-card-title { display: block; font-weight: 700; font-size: 16.5px; color: var(--text); }
.cp-card p { margin-top: 8px; color: var(--text2); font-size: 14.5px; line-height: 1.55; }
/* On a surface band the default card bg (surface) would match the section, so
   cards drop to navy to stay separated. No white involved. */
.cp-block.sec-surface .cp-card { background: var(--navy, #0A1533); }

/* Shared LOB grid (template-parts/lob-grid.php) used by the 'lobs' block. The
   section wrapper + tone come from the block loop; fix only what the band needs:
   .sec-head h2 defaults to navy (for light contexts) and is flipped to white on
   sec-dark but NOT sec-surface, so it would vanish there; and the .vert cards
   (bg: surface) would match a surface band, so they drop to navy like cp-card. */
.cp-block--lobs .sec-head { margin-bottom: 32px; }
/* The lob-grid's `.sec-head center` (centred heading) is kept — on the v2 pages
   that matches the centred-section-heading rule below. */
.cp-block.sec-surface .sec-head h2 { color: #fff; }
.cp-block.sec-surface .vert.card-dark { background: var(--navy, #0A1533); }

/* SMS bubble block — copy on one side, the shared phone mockup on the other.
   The .phone / .pmsg styles live in assets/css/sms-bubble.css (shared with
   home); this only lays the two columns out. */
.cp-bubble { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .cp-bubble { grid-template-columns: 1fr; gap: 32px; } }
.cp-bubble-copy .cp-lead:first-of-type { margin-top: 16px; }
.cp-bubble-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cp-bubble-cap { margin: 0; max-width: 320px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--text2); }
.cp-block.sec-light .cp-bubble-cap { color: #55607a; }

/* Split (copy + points) */
.cp-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .cp-split { grid-template-columns: 1fr; gap: 20px; } }
.cp-points { list-style: none; margin: 6px 0 0; display: grid; gap: 10px; }
.cp-points li { padding-left: 26px; position: relative; font-size: 15.5px; line-height: 1.5; }
.cp-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* CTA (section-level rules target the section modifier, not the bare type) */
.cp-block--cta { text-align: center; }
/* Centre the CTA heading. .cp-cta-h (0,1,0) lost to .cp-block h2 { margin:8px 0 0 }
   (0,1,1), so the heading stranded left of its centred lead/buttons/form. Scoping
   to the band (0,2,0) wins on class count — no !important. */
.cp-block--cta .cp-cta-h { margin-left: auto; margin-right: auto; }
.cp-block--cta .cp-lead { margin-left: auto; margin-right: auto; }
.cp-cta-btns { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Tertiary destination: a plain text link under the two buttons. */
.cp-cta-link { margin: 16px 0 0; }
.cp-cta-link a { color: var(--mint); font-weight: 600; }
.cp-cta-link a:hover { text-decoration: underline; }
.cp-block.sec-light .cp-cta-link a { color: var(--hover, #14A56A); }

/* WDG — heading/text read left like every other band (was text-align:center,
   which made the page open centred then jump left at the next band). The badge
   keeps its own centred flex below. */
.wdg-badge--content { margin-top: 20px; display: flex; justify-content: center; }

/* Related links */
ul.cp-links { list-style: none; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
ul.cp-links li a { color: var(--mint); font-weight: 600; }
.cp-block.sec-light ul.cp-links li a { color: var(--hover, #14A56A); }

/* =========================================================================
   v2 alignment (opt-in via body.cp-align-v2, set per slug in inc/setup.php).
   Centre the kicker + heading of FULL-WIDTH sections (cards, steps, links, wdg,
   prose, lobs). lobs needs listing too: its .sec-head block is centred, but
   .cp-block h2 { max-width:22ch; margin:8px 0 0 } would otherwise leave the h2 a
   left-sitting box inside it. 2-column sections (bubble, split) keep their
   heading in the left column, so they are deliberately not listed. Long prose
   body copy keeps its TEXT left inside a centred column. Applies site-wide to
   every page-content.php page via the body class.
   ========================================================================= */
.cp-align-v2 .cp-block--cards .kicker,
.cp-align-v2 .cp-block--steps .kicker,
.cp-align-v2 .cp-block--links .kicker,
.cp-align-v2 .cp-block--wdg .kicker,
.cp-align-v2 .cp-block--prose .kicker,
.cp-align-v2 .cp-block--lobs .kicker { text-align: center; }

.cp-align-v2 .cp-block--cards h2,
.cp-align-v2 .cp-block--steps h2,
.cp-align-v2 .cp-block--links h2,
.cp-align-v2 .cp-block--wdg h2,
.cp-align-v2 .cp-block--prose h2,
.cp-align-v2 .cp-block--lobs h2 { margin-left: auto; margin-right: auto; text-align: center; }

/* The WDG one-liner lead centres with its heading; the related-links list
   centres under its heading. */
.cp-align-v2 .cp-block--wdg .cp-lead { margin-left: auto; margin-right: auto; text-align: center; }
.cp-align-v2 .cp-block--links ul.cp-links { justify-content: center; }

/* Prose = long body copy: heading centred (above), column centred, paragraph
   TEXT left (50-70 word paragraphs read better left-aligned). */
.cp-align-v2 .cp-block--prose .cp-lead { margin-left: auto; margin-right: auto; text-align: left; }
