/* Refined direction — preview only, 26 October 2026. Loaded after styles.css; delete this file to return to the current look.
   Reference: the Customer.io style on styles.refero.design ("dark spruce forest meeting cream paper"), mapped onto Reform's own
   teal and cream rather than copied. What it takes from that system:
   - calm weights: headings at 600, interface text at 500, no 800 outside the logo lockup;
   - small radii: 4–6px everywhere, pill shapes kept for buttons only;
   - hairline borders instead of drop shadows, and no lift on hover;
   - flat dark sections, with aqua as the single glow colour for the main action on dark grounds. */

:root {
  --font: "Cairo", "Cairo Fallback", "Segoe UI", Tahoma, sans-serif;
  --line: #e3e9e8;
  --surface: #f7f7f3;
  --cream: #faf7f0;
  --cream-line: #ebe4d6;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: none;
  --shadow-sm: none;
  --ring: 0 0 0 4px rgba(98, 205, 200, .38);
  --w-head: 600;
  --w-ui: 500;
}
body { font-family: var(--font); line-height: 1.8; }
h1, h2, h3, h4 { font-weight: var(--w-head); line-height: 1.38; }
h3 { font-weight: var(--w-head); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* ---------- weights ---------- */
.nav a, .nav button, .drawer li a, .hr-bar ul a, .chips li, .chip-link, .pill, .tag, .filters button, .tool-tabs button, .seg label,
.field label, .form legend, .link-arrow, .lang-link, .lang-mini, .pillar-tag, .layer-arm, .work-tile span, .node, .proto-bar, .eyebrow,
.story .result span, .post .meta, .stat p, .proof-card .b, .result-card .b, .timeline .when, .status, .sev, .soon, .calc-sub, .bc-head,
.market .flag, .country-card .flag, .float-card span, .radio-row label, .check, .logo-sub, .quote-card, .proof p, .stat-inline p { font-weight: var(--w-ui); }
.mega strong, .checks strong, .arms strong, .channel strong, .faq summary, .proof-card p, .result-card p, .hero-ask, .core-label strong,
.node.market, .prose .summary-title, .site-footer .f-title, .founder h2 small { font-weight: var(--w-head); }
.hero-points, .stage-card li, .card li, .drawer .sub a { font-weight: 400; }
/* Figures read as quiet, large numerals rather than heavy blocks. */
.stat .num, .proof-card .v, .result-card .v, .stat-inline .num, .proof .num, .float-card .num, .work-no, .calc-result .total,
.story .result b { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stage-no, .pillar-no, .layer-no { font-weight: 300; }

/* ---------- buttons ---------- */
.btn { font-weight: var(--w-ui); font-size: 15.5px; padding: 13px 24px; border-width: 1px; box-shadow: none; }
.btn:hover { transform: none; }
.btn:focus-visible { box-shadow: var(--ring); }
.btn-primary { background: var(--brand-800); box-shadow: none; }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { border-color: var(--brand-800); color: var(--brand-800); }
.btn-outline:hover { background: var(--brand-800); color: #fff; }
.btn-light { color: var(--brand-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .32); }
/* On dark grounds the main action is the aqua glow: the one bright fill on the page. */
.hero .btn-primary, .page-hero .btn-primary, .section-dark .btn-primary, .cta-band .btn-primary, .card-cta .btn-primary,
.drawer .btn-primary, .calc-result .btn-primary { background: var(--aqua); color: var(--brand-900); }
.hero .btn-primary:hover, .page-hero .btn-primary:hover, .section-dark .btn-primary:hover, .cta-band .btn-primary:hover,
.card-cta .btn-primary:hover, .drawer .btn-primary:hover, .calc-result .btn-primary:hover { background: #7fd9d5; color: var(--brand-900); box-shadow: var(--ring); }
.header-cta .btn { padding: 10px 20px; font-size: 15px; }

/* ---------- header ---------- */
.site-header { border-bottom-color: var(--line); }
.site-header.scrolled { box-shadow: none; }
.site-header .container { min-height: 72px; }
.nav a, .nav button { border-radius: 4px; }
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { background: transparent; color: var(--brand-ink); }
.mega { border-radius: var(--radius); box-shadow: 0 18px 40px -30px rgba(6, 28, 29, .45); }
.mega a, .mega .ico { border-radius: 4px; }
.menu-toggle, .lang-mini, .drawer-close { border-radius: 4px; }
.hr-bar ul a { border-radius: 4px; }

/* ---------- section labels ---------- */
.eyebrow { background: none; padding: 0; border-radius: 0; font-size: 14px; color: var(--brand-ink); letter-spacing: .01em; }
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { background: none; color: var(--aqua); }
.section-head { margin-bottom: 48px; }

/* ---------- heroes: flat spruce with one soft light, no dot pattern ---------- */
.hero { background: radial-gradient(760px 520px at 24% 46%, rgba(31, 136, 141, .2), transparent 68%), var(--brand-900); }
.page-hero { background: radial-gradient(700px 380px at 88% -10%, rgba(31, 136, 141, .2), transparent 62%), var(--brand-900); }
.hero::before, .page-hero::before { display: none; }
.hero-ask .ask::after { height: 2px; width: 40px; border-radius: 0; }
.node { border-radius: 4px; background: rgba(6, 28, 29, .92); border-color: rgba(98, 205, 200, .32); box-shadow: none; }
.system .core { filter: drop-shadow(0 0 18px rgba(98, 205, 200, .35)); }
.frame, .frame img, .page-hero-media img, .media-frame img, .mosaic img, .article-cover, .reel video { border-radius: var(--radius); box-shadow: none; }
.frame::before, .page-hero-media::before { display: none; }
.float-card { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--line); }

/* ---------- cards and surfaces: hairlines, small radii, no lift ---------- */
.card, .post, .story, .panel, .step, .stage-card, .proof-card, .result-card, .faq details, .form, .channel, .arms a, .tool-promo, .proof,
.calc-result, .bc-result, .toc-box, .author-box, .table-wrap, .quote-card, .layer, .prose .summary, .prose .faq-item, .stats { border-radius: var(--radius); box-shadow: none; }
.card:hover, .post:hover { transform: none; box-shadow: none; border-color: var(--brand); }
.section-dark .card:hover { border-color: rgba(98, 205, 200, .45); }
.trust .stats, .section-alt .panel, .faq details[open], .bc-result, .form { box-shadow: none; }
.card .ico, .stage-card .ico, .channel .ico, .arms .ico, .country-card .flag, .market .flag, .tool-promo .ico {
  border-radius: 4px; background: transparent; border: 1px solid var(--line); color: var(--brand-ink); }
.section-dark .card .ico, .layer .ico, .card-cta .ico { border-radius: 4px; background: transparent; border: 1px solid rgba(98, 205, 200, .3); color: var(--aqua); }
.stage-card { padding: 32px 28px 30px; }
.stage-card::before { display: none; }
.stage-no { color: var(--brand-100); }
/* The track number sat on top of the icon; it moves to the opposite corner. */
.pillar-no { inset-inline-start: auto; inset-inline-end: 24px; top: 22px; font-size: 30px; }
html[dir="rtl"] .pillar-no { left: 24px; right: auto; }
html[dir="ltr"] .pillar-no { right: 24px; left: auto; }
.hero-group h1 em { text-wrap: balance; }
.proof-card, .solution { background: #fff; }
.proof-card .b, .tag, .chips li, .chip-link, .pill, .status, .sev, .soon, .filters button, .tool-tabs button, .layer-arm { border-radius: 4px; }
.card-cta { background: var(--brand-800); }
.layer-arm { background: transparent; border: 1px solid rgba(98, 205, 200, .3); }
.layer-arm:hover { background: rgba(98, 205, 200, .1); }
.layer-result { background: rgba(98, 205, 200, .08); border-color: rgba(98, 205, 200, .35); }
.step .n { border-radius: 4px; background: transparent; color: var(--brand-ink); border: 1px solid currentColor; font-weight: 500; }
.section-dark .step .n { color: var(--aqua); }
.work-tile { border-radius: var(--radius); box-shadow: none; }
.work-tile:hover { transform: none; box-shadow: none; }
.cta-band { border-radius: var(--radius); background: var(--brand-800); }
.cta-band::after { opacity: .06; }
.faq summary { font-size: 16px; }
.socials a { border-radius: 4px; }

/* ---------- methodology: editorial steps beside nested frames, built from the inside out ---------- */
.m-grid { display: grid; gap: 40px; }
.m-steps { list-style: none; margin: 0; padding: 0; }
.m-step { display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .09); transition: opacity .5s var(--ease-out, ease); }
.m-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.m-no { font-size: 34px; font-weight: 300; line-height: 1; color: var(--aqua); direction: ltr; font-variant-numeric: tabular-nums; padding-top: 4px; }
.m-body h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 21px; color: #fff; }
.m-ico { display: inline-grid; color: var(--aqua); }
.m-ico .icon { width: 19px; height: 19px; }
.m-body p { margin: 0 0 14px; color: #a9c3c3; font-size: 16px; }
.m-arm { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: var(--w-ui); color: var(--aqua); padding-bottom: 2px; border-bottom: 1px solid rgba(98, 205, 200, .35); }
.m-arm:hover { color: #fff; border-color: #fff; }
.m-arm .icon { width: 16px; height: 16px; transition: transform .15s; }
.m-arm:hover .icon { transform: translateX(-3px); }
html[dir="ltr"] .m-arm:hover .icon { transform: translateX(3px); }

/* Five frames around the company core, 7.6% apart; each carries its layer's name on its top edge. */
.m-viz { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; order: -1; }
.m-ring { position: absolute; inset: calc((5 - var(--k)) * 7.6%); border: 1px solid rgba(98, 205, 200, .5); border-radius: 6px; background: rgba(98, 205, 200, .025);
  transition: border-color .6s, background .6s, box-shadow .6s; }
.m-tag { position: absolute; top: 0; inset-inline-start: 14px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 0 8px;
  background: var(--brand-900); border-radius: 3px; font-size: 12px; font-weight: var(--w-ui); line-height: 1.7; color: #cfe0e0; white-space: nowrap; transition: color .6s, background .6s; }
.m-tag b { font-weight: var(--w-ui); color: var(--aqua); direction: ltr; transition: color .6s; }
.m-core { position: absolute; inset: 38%; display: grid; place-content: center; text-align: center; gap: 2px; border-radius: 6px; border: 1px solid var(--aqua);
  background: rgba(98, 205, 200, .14); color: #fff; line-height: 1.3; transition: background .6s, color .6s, box-shadow .6s; }
.m-core strong { font-size: 15px; font-weight: var(--w-head); }
.m-core span { font-size: 11px; color: #bfe6e4; transition: color .6s; }
/* Scroll states (motion.js): unread layers dim, the layer being read glows, and the core fills once the result is reached. */
.m-viz.is-live .m-ring:not(.is-lit) { border-color: rgba(255, 255, 255, .1); background: transparent; }
.m-viz.is-live .m-ring:not(.is-lit) .m-tag, .m-viz.is-live .m-ring:not(.is-lit) .m-tag b { color: rgba(255, 255, 255, .32); }
.m-ring.is-current { border-color: var(--aqua); box-shadow: 0 0 0 1px rgba(98, 205, 200, .3), 0 0 46px -8px rgba(98, 205, 200, .45); }
.m-ring.is-current .m-tag { background: var(--aqua); color: var(--brand-900); }
.m-ring.is-current .m-tag b { color: var(--brand-900); }
.m-core.is-full { background: var(--aqua); color: var(--brand-900); box-shadow: 0 0 60px -6px rgba(98, 205, 200, .6); }
.m-core.is-full span { color: var(--brand-800); }
.m-grid.is-live .m-step:not(.is-current) { opacity: .38; }

.m-col { min-width: 0; }
.m-result { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: start; margin-top: 40px; padding: 30px 26px; border: 1px solid rgba(98, 205, 200, .35);
  border-radius: var(--radius); background: rgba(98, 205, 200, .06); }
.m-result-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; border: 1px solid rgba(98, 205, 200, .4); color: var(--aqua); }
.m-result-ico .icon { width: 24px; height: 24px; }
.m-result-tag { display: block; font-size: 14px; font-weight: var(--w-ui); color: var(--aqua); margin-bottom: 4px; }
.m-result h3 { margin: 0 0 8px; color: #fff; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.45; }
.m-result p { margin: 0; color: #a9c3c3; }
@media (min-width: 980px) {
  .m-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: start; }
  .m-viz { order: 0; max-width: 460px; position: sticky; top: calc(50vh - 200px); }
  .m-step { grid-template-columns: 72px 1fr; padding: 38px 0; }
  .m-no { font-size: 44px; }
  .m-tag { font-size: 12.5px; inset-inline-start: 18px; }
  .m-core strong { font-size: 17px; }
  .m-result { grid-template-columns: 56px 1fr; padding: 36px 36px; margin-top: 48px; }
  .m-result-ico { width: 56px; height: 56px; }
}

/* ---------- inner pages: the same editorial spirit as the methodology section ---------- */
/* Page heads: a larger, calmer title with more air around it. */
.page-hero .container { padding-top: 40px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.3; }
.page-hero .lead { max-width: 640px; }
@media (min-width: 1080px) { .page-hero .container { padding-top: 56px; padding-bottom: 96px; } }

/* Card grids become open columns under a hairline; a brand line draws across the top on hover.
   Cards that need their box keep it: country calculators, laws, the home tracks and call-to-action cards. */
.grid:has(> li > .card:not(.country-card, .pillar-card, .law, .card-cta)) { gap: 44px 40px; }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta) { position: relative; background: transparent; border: 0;
  border-top: 1px solid rgba(6, 28, 29, .14); border-radius: 0; padding: 26px 0 4px; }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta):hover { border-color: rgba(6, 28, 29, .14); }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta)::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
html[dir="ltr"] .grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta)::before { transform-origin: 0 50%; }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta):hover::before { transform: scaleX(1); }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta) .ico { width: auto; height: auto; border: 0; background: none; place-items: start; margin-bottom: 16px; color: var(--brand-ink); }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta) .ico .icon { width: 26px; height: 26px; }
.grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta) h3 { font-size: 20px; }
.section-dark .grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta) { background: transparent; border-top-color: rgba(255, 255, 255, .15); }
.section-dark .grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta)::before { background: var(--aqua); }
.section-dark .grid > li > .card:not(.country-card, .pillar-card, .law, .card-cta) .ico { color: var(--aqua); border: 0; background: none; }

/* Process steps: a timeline. Numbers set large and light, a dot on the line for each step (motion.css fills the line). */
.steps { column-gap: 0; row-gap: 44px; }
.step, .section-dark .step { position: relative; background: transparent; border: 0; border-top: 1px solid rgba(6, 28, 29, .16); border-radius: 0; padding: 30px 0 0; padding-inline-end: 28px; }
.section-dark .step { border-top-color: rgba(255, 255, 255, .16); }
.step::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.section-dark .step::before { background: var(--aqua); }
.step .n, .section-dark .step .n { display: inline-block; width: auto; height: auto; margin: 0 0 14px; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--brand-ink); font-size: 40px; font-weight: 300; line-height: 1; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.step .n::before { content: "0"; }
.section-dark .step .n { color: var(--aqua); }
.step h3 { font-size: 19px; }
/* One column (phones, and lists marked "stack"): the line runs down the start side instead. */
@media (max-width: 899px) {
  .steps { row-gap: 0; }
  html .step, html .section-dark .step { border-top: 0; border-inline-start: 1px solid rgba(6, 28, 29, .16); padding: 0 0 34px; padding-inline-start: 26px; }
  .section-dark .step { border-inline-start-color: rgba(255, 255, 255, .16); }
  .step::before { top: 8px; inset-inline-start: -5px; }
}
html .steps.stack { row-gap: 0; }
html .steps.stack .step { border-top: 0; border-inline-start: 1px solid rgba(6, 28, 29, .16); padding: 0 0 30px; padding-inline-start: 26px; }
.section-dark .steps.stack .step { border-inline-start-color: rgba(255, 255, 255, .16); }
.steps.stack .step::before { top: 8px; inset-inline-start: -5px; }

/* Questions: rows between hairlines instead of separate boxes. */
.faq { gap: 0; }
.faq details { background: transparent; border: 0; border-bottom: 1px solid rgba(6, 28, 29, .14); border-radius: 0; padding: 0; }
.faq details:first-child { border-top: 1px solid rgba(6, 28, 29, .14); }
.faq details[open] { border-color: rgba(6, 28, 29, .14); }
.faq summary { padding: 22px 0; font-size: 17px; transition: color .15s; }
.faq summary:hover { color: var(--brand-ink); }
.faq details p { padding-bottom: 24px; max-width: 760px; }
.prose .faq { gap: 0; }
.prose .faq-item { border: 0; border-top: 1px solid rgba(6, 28, 29, .14); border-radius: 0; padding: 20px 0; }

/* Benefit lists and proof figures: plain marks and a rule instead of tinted shapes. */
.checks .tick { width: 22px; height: 22px; background: none; color: var(--brand); }
.checks .tick .icon { width: 18px; height: 18px; }
.proof { background: transparent; border: 0; border-inline-start: 2px solid var(--brand); border-radius: 0; padding: 6px 22px; }
.proof .num { font-weight: 300; }

/* ---------- question rows: the answers index, related questions, and the bands on service pages ---------- */
.ans-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(6, 28, 29, .14); }
.ans-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(6, 28, 29, .14); color: var(--ink); }
.ans-list strong { font-size: 18px; font-weight: var(--w-head); line-height: 1.6; transition: color .15s; }
.ans-list span { grid-column: 1; font-size: 15px; color: var(--muted); line-height: 1.75; }
.ans-list .icon { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--brand); transition: transform .2s; }
.ans-list a:hover strong { color: var(--brand-ink); }
.ans-list a:hover .icon { transform: translateX(-4px); }
.ans-all { margin: 26px 0 0; }
.ans-home-link { margin-inline-start: 28px; }
/* Country codes: the box grows for a pair such as "SA · BH" instead of wrapping it. */
.market .flag { width: auto; min-width: 46px; padding: 0 8px; white-space: nowrap; direction: ltr; }
/* Gulf hub: the calculator links under each market. */
.gulf-calcs { margin: -4px 0 12px; font-size: 14.5px; color: var(--muted); }
.gulf-calcs a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- free templates: cards, the download form, and the box inside answers ---------- */
.tpl-format { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 14px; padding: 3px 10px; border-radius: 4px;
  font-size: 13px; font-weight: var(--w-ui); direction: ltr; border: 1px solid var(--line); color: var(--brand-ink); }
.tpl-format .icon { width: 16px; height: 16px; }
.tpl-format.tpl-word { color: #2b5797; }
.tpl-inside { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 8px; }
.tpl-inside li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--body); line-height: 1.7; }
.tpl-inside .icon { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 6px; }
.tpl-card .tpl-get { align-self: flex-start; margin: auto 0 14px; }
.tpl-card .link-arrow { font-size: 14.5px; }
.tpl-dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); }
.tpl-dialog::backdrop { background: rgba(6, 28, 29, .62); }
.tpl-dialog .form { position: relative; border: 0; padding: 30px 28px 26px; }
.tpl-dialog h2 { font-size: 21px; margin: 0 0 6px; margin-inline-end: 44px; line-height: 1.5; }
.tpl-close { position: absolute; top: 18px; inset-inline-end: 18px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.tpl-close .icon { width: 18px; height: 18px; }
.tpl-note { color: var(--muted); margin-bottom: 18px; }
.tpl-dialog .field { margin-bottom: 14px; }
.tpl-consent { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 6px 0 0; }
.tpl-consent a, .form-msg a { text-decoration: underline; text-underline-offset: 3px; }
.ans-tpl { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--brand); border-radius: var(--radius); }
.ans-tpl h3 { margin: 0 0 6px; font-size: 19px; }
.ans-tpl p { margin: 0 0 16px; color: var(--body); }

/* ---------- forms ---------- */
.field input, .field select, .field textarea, .radio-row label, .seg, .seg label, .form-msg, .notice, .bc-preview { border-radius: 4px; }
.field input, .field select, .field textarea { border-width: 1px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: var(--ring); }
.seg label:has(input:checked) { box-shadow: inset 0 0 0 1px var(--line); }
.prose blockquote { border-radius: 0; border-inline-start-width: 2px; }
