/* SEOport editorial layer: loaded last on every public page so the older R2 templates (services, packages, knowledge base, sectors,
   regions, about, process, FAQ, legal) speak the same language as the home page, quote wizard, sign-in and contact screens:
   square corners, hairlines instead of shadows, heavy Satoshi headings, one page-head style, no beige bands. Presentation only. */

/* ---------- page heads ---------- */
.pg-hero, .cat-hero, .page-head, .landing-hero { background: var(--surface) !important; border-bottom: 1px solid var(--line-strong); }
.pg-hero h1, .cat-hero h1, .page-head h1, .landing-hero h1, .pk-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.03; color: var(--ink-hero);
}
.pg-hero .lead, .cat-hero .lead, .page-head .lead, .landing-hero .lead { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.pg-hero .eyebrow, .cat-hero .eyebrow, .page-head .eyebrow { margin-bottom: var(--s-4); }

/* ---------- section rhythm: hairlines instead of beige bands ---------- */
main .section-alt { background: var(--surface); }
main .section-alt > .container { background: linear-gradient(var(--line-strong), var(--line-strong)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
main .section-paper { background: var(--surface); border-block: 0; }
main .section-paper > .container { background: linear-gradient(var(--line-strong), var(--line-strong)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }

/* ---------- headings inside pages ---------- */
main section > .container > h2, main .section h2:not(.h3):not(.h4):not(.visually-hidden), main .pg-intro h2, main .cat-intro h2 {
  font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; color: var(--ink-hero);
}
main .card h3, main [class*="-card"] h3, main .goal-link strong, main .fam h3, main .pkg h3 { font-weight: 800; letter-spacing: -0.025em; }

/* ---------- surfaces: square, hairline, no shadow ---------- */
main :where(.card, [class*="-card"], [class*="callout"], [class*="-panel"], .goal-link, .fam, .pkg, .topic, .pg-route, .pk-block, .svc-block, .pg-aside .card, .mock, .faq details, .chips a, .pill, .badge) {
  border-radius: 0 !important; box-shadow: none !important;
}
main :where(.card, [class*="-card"], .goal-link, .fam, .pkg, .topic, .pg-route) { border-color: var(--line-strong); transition: border-color .15s, background-color .15s; }
main :where(.goal-link, .fam, .pg-route, a.card, a[class*="-card"]):hover { border-color: var(--accent) !important; box-shadow: none !important; transform: none !important; }
main .ico-box { border-radius: 0 !important; background: var(--surface) !important; color: var(--accent-strong) !important; }
main :where(.card, [class*="-card"], .goal-link, .fam, .pkg, .topic, .pg-route):hover .ico-box { background: var(--accent) !important; color: #fff !important; }
main [class*="callout"] { border-left-width: 3px; background: var(--paper); }

/* everything inside the page content is square; only the deliberately round markers (step numbers, avatars, choice marks) keep their shape */
main *:not(.qw-step-n):not(.qw-opt-mark):not(.pg-track b):not(.d-avatar):not(input[type="radio"]):not(input[type="checkbox"]) { border-radius: 0 !important; }
/* lime belongs on dark surfaces only: the custom-offer box on the light packages page uses the teal accent */
main .custom-offer { border-left-color: var(--accent) !important; }

/* ---------- controls ---------- */
main .btn { border-radius: var(--r-btn); }
main .input, main .select, main .textarea { border-radius: var(--r-btn); border-color: var(--line-strong); }
main .input:focus, main .select:focus, main .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(8 127 120 / .16); outline: none; }
main .chips a { background: transparent; }

/* ---------- prose (legal pages, articles) ---------- */
main .prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; margin-top: var(--s-7); }
main .prose h3 { font-weight: 800; letter-spacing: -0.02em; }
main .prose table { border-collapse: collapse; }
main .prose th, main .prose td { border-bottom: 1px solid var(--line); }

/* ---------- compact spacing: minimal hero and block padding site-wide (tokens --hero-y / --section-y) ---------- */
.page-head, .pg-hero, .cat-hero, .ct-hero, .landing-hero, .pg-error, .d-finder { padding-block: var(--hero-y); }
.hero { padding-bottom: var(--hero-y); }
.opener-copy { padding-block: var(--hero-y); }
.section-tight, .cta-band, .fl-section { padding-block: var(--section-y); }
.section-head { margin-bottom: var(--section-y); }
.qw, .qd, .ct-body { padding-block: var(--hero-y) var(--section-y); }
.pg-hero .eyebrow, .cat-hero .eyebrow, .page-head .eyebrow { margin-bottom: var(--s-2); }
.d-after { margin-top: var(--section-y); padding-top: var(--section-y); }
.d-block-sec + .d-block-sec, .d-blocks, .d-main > .prose, .d-pager { margin-top: 0; margin-bottom: 0; }
.d-block-sec + .d-block-sec, .d-pager { margin-top: var(--section-y); }
.d-blocks, .d-main > .prose { margin-bottom: var(--section-y); }
.d-feature { margin-bottom: var(--section-y); }

