/* Rapid2Market V2 — brand stylesheet (PUB-01).
   Gradient-tech direction (approved 2026-07-25): real logo + brand purple #6f5ff4,
   light ground, the logo's own cyan→purple→magenta gradient used as the accent
   language. Hand-authored, no build step. Consent-banner + form styles preserved
   from the prior stylesheet. */

:root {
  --r2m-purple: #6f5ff4;
  --r2m-purple-deep: #5847d6;
  --r2m-cyan:   #16c5e0;
  --r2m-magenta:#e05aa6;
  --r2m-dark:   #191b22;
  --r2m-ink-2:  #33363f;
  --r2m-text:   #545663;
  --r2m-faint:  #8a8d99;
  --r2m-bg:     #ffffff;
  --r2m-bg-soft:#f6f7fb;
  --r2m-card:   #ffffff;
  --r2m-border: #e9eaf1;
  --r2m-border-2:#dcdde8;
  --r2m-gradient: linear-gradient(120deg, #16c5e0 0%, #6f5ff4 52%, #e05aa6 100%);
  --r2m-gradient-soft: linear-gradient(120deg, rgba(22,197,224,.12) 0%, rgba(111,95,244,.13) 50%, rgba(224,90,166,.12) 100%);
  --radius: 15px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--r2m-text);
  background: var(--r2m-bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--r2m-dark); line-height: 1.1; margin: 0 0 .5em; font-weight: 750; letter-spacing: -0.021em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
a { color: var(--r2m-purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--r2m-purple); outline-offset: 2px; }
.grad-text { background: var(--r2m-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .02em; font-size: .78rem; font-weight: 600; color: var(--r2m-purple); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 650; font-size: .92rem; border: 1px solid transparent; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease; }
.btn-primary { background: var(--r2m-gradient); color: #fff; box-shadow: 0 6px 18px rgba(111,95,244,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(111,95,244,.38); text-decoration: none; }
.btn-ghost { border-color: var(--r2m-border-2); color: var(--r2m-dark); background: #fff; }
.btn-ghost:hover { border-color: var(--r2m-purple); color: var(--r2m-purple); text-decoration: none; }
.btn-white { background: #fff; color: var(--r2m-purple-deep); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.btn-white:hover { transform: translateY(-1px); text-decoration: none; }

/* Header */
.site-header { background: rgba(255,255,255,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--r2m-border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; display: block; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a.nav-collapsible { color: var(--r2m-ink); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; position: relative; padding: 4px 0; }
.nav a.nav-collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--r2m-gradient); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav a.nav-collapsible:hover { color: var(--r2m-purple); text-decoration: none; }
.nav a.nav-collapsible:hover::after { transform: scaleX(1); }
.nav a.nav-collapsible.is-active { color: var(--r2m-purple); font-weight: 650; }
.nav a.nav-collapsible.is-active::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .nav a.nav-collapsible::after { transition: none; } }
.site-header .btn-primary { padding: 10px 22px; font-size: .95rem; margin-left: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--r2m-bg-soft); border-bottom: 1px solid var(--r2m-border); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--r2m-gradient-soft); pointer-events: none; }
.hero::after { content: ""; position: absolute; top: -30%; right: -12%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(111,95,244,.16), transparent 62%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 62px 26px 66px; }
.hero h1 { color: var(--r2m-dark); }
.hero .lede { font-size: 1.12rem; color: var(--r2m-text); margin: 20px 0 30px; max-width: 45ch; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust .t { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--r2m-faint); font-weight: 550; }
.hero-trust .t b { color: var(--r2m-dark); font-weight: 700; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--r2m-gradient); }

/* Hero console visual */
.console { border-radius: 16px; background: #fff; border: 1px solid var(--r2m-border); box-shadow: 0 24px 60px rgba(25,27,34,.12), 0 4px 12px rgba(25,27,34,.05); overflow: hidden; }
.console .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--r2m-border); }
.console .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--r2m-border-2); display: inline-block; }
.console .bar .lbl { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--r2m-faint); letter-spacing: .04em; }
.console .body { padding: 8px 8px 14px; }
.crow { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 11px; }
.crow + .crow { margin-top: 2px; }
.crow:hover { background: var(--r2m-bg-soft); }
.crow .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; background: var(--r2m-gradient); }
.crow .ci svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.crow .cm { flex: 1; }
.crow .cm .n { font-size: .9rem; font-weight: 650; color: var(--r2m-dark); }
.crow .cm .s { font-size: .75rem; color: var(--r2m-faint); }
.crow .st { font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: #17915f; }
.crow .st .p { width: 7px; height: 7px; border-radius: 50%; background: #2fce8f; box-shadow: 0 0 8px rgba(47,206,143,.7); }

/* Sections */
.section { padding: 82px 0; border-bottom: 1px solid var(--r2m-border); }
.section-alt { background: var(--r2m-bg-soft); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head p { font-size: 1rem; color: var(--r2m-text); margin: 14px 0 0; }

/* Services grid */
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.svc { position: relative; border-radius: var(--radius); padding: 27px; background: #fff; border: 1px solid var(--r2m-border); transition: transform .16s ease, box-shadow .16s ease; overflow: hidden; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--r2m-gradient); opacity: 0; transition: opacity .16s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(25,27,34,.10); border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc .top { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.svc .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--r2m-gradient); flex: 0 0 auto; box-shadow: 0 8px 18px rgba(111,95,244,.22); }
.svc .ico svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc .badge { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--r2m-purple); background: rgba(111,95,244,.10); border-radius: var(--radius-pill); padding: 4px 11px; }
.svc h3 { font-size: 1.18rem; margin: 0; }
.svc ul { list-style: none; margin: 15px 0 0; padding: 15px 0 0; border-top: 1px solid var(--r2m-border); }
.svc li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; color: var(--r2m-ink-2); }
.svc li svg { width: 15px; height: 15px; color: var(--r2m-purple); flex: 0 0 auto; }

/* Partner cluster — size signals importance */
.pgrid { display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr 1fr; }
.pcard { border-radius: var(--radius); padding: 27px; background: #fff; border: 1px solid var(--r2m-border); }
.pcard.lead { position: relative; color: #fff; border: 0; background: linear-gradient(125deg, #4b3fd0 0%, #6f5ff4 45%, #b455c8 100%); box-shadow: 0 18px 40px rgba(111,95,244,.30); }
.pcard.lead h3, .pcard.lead .k { color: #fff; }
.pcard.lead p { color: rgba(255,255,255,.88); }
.pcard .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--r2m-purple); font-weight: 600; }
.pcard h3 { font-size: 1.3rem; margin: 11px 0 8px; }
.pcard p { font-size: .88rem; color: var(--r2m-text); margin: 0 0 15px; }
.pcard .partner-name { font-family: var(--font-mono); font-size: .78rem; color: var(--r2m-faint); }
.pcard.lead .partner-name { color: rgba(255,255,255,.8); }
.pcard a.more { font-size: .82rem; font-weight: 650; color: var(--r2m-purple); }
.pcard.lead a.more { color: #fff; }

/* Why strip */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why .n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.why h4 { font-size: 1.05rem; margin: 12px 0 8px; }
.why p { font-size: .88rem; color: var(--r2m-text); margin: 0; }

/* CTA band */
.cta-band { padding: 82px 0; }
.cta-inner { border-radius: 22px; padding: 56px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(125deg, #2bbcd6 0%, #6f5ff4 50%, #d95fa6 100%); color: #fff; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 1.05rem; margin: 15px auto 28px; max-width: 52ch; }

/* Cards / grid (generic — used on /services, /partners fallbacks) */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--r2m-card); border: 1px solid var(--r2m-border); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(34,34,34,.08); }
.card h3 { margin-bottom: .4em; }

/* Prose (CMS page bodies) */
.prose { background: #fff; padding: 40px; border-radius: var(--radius); border: 1px solid var(--r2m-border); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.7em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; font-size: 1.08rem; }
.prose p, .prose li { color: var(--r2m-text); }
.prose ul, .prose ol { padding-left: 1.25em; margin: .6em 0; }
.prose li { margin: .35em 0; }
.prose a { color: var(--r2m-purple); }
.prose .policy-meta { color: var(--r2m-faint); font-size: .9rem; margin-top: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 10px 13px; border: 1px solid var(--r2m-border); vertical-align: top; }
.prose th { background: var(--r2m-bg-soft); font-weight: 650; color: var(--r2m-dark); white-space: nowrap; }
.prose td:first-child { font-family: var(--font-mono); font-size: .82rem; color: var(--r2m-dark); white-space: nowrap; }

/* Footer — light, matches page */
.site-footer { background: var(--r2m-bg-soft); color: var(--r2m-text); padding: 58px 0 30px; margin-top: 0; border-top: 1px solid var(--r2m-border); }
.site-footer .flogo { height: 44px; width: auto; display: block; }
.site-footer .cols { display: grid; gap: 34px; grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.site-footer strong, .site-footer h5 { color: var(--r2m-dark); font-weight: 650; display: block; margin-bottom: 12px; }
.site-footer a { color: var(--r2m-text); }
.site-footer a:hover { color: var(--r2m-purple); }
.site-footer .desc { font-size: .84rem; color: var(--r2m-text); max-width: 32ch; margin: 16px 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; font-size: .9rem; }
.site-footer .foot-base { border-top: 1px solid var(--r2m-border); margin-top: 42px; padding-top: 22px; font-size: .82rem; color: var(--r2m-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .foot-base a { color: var(--r2m-faint); }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .svc-grid, .pgrid, .why-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .nav .nav-collapsible { display: none; }
  .cta-inner { padding: 40px 26px; }
  .pgrid .pcard.lead { grid-row: auto; }
}

/* Inner-page header (compact branded hero) */
.page-hero { position: relative; overflow: hidden; background: var(--r2m-bg-soft); border-bottom: 1px solid var(--r2m-border); padding: 54px 0 50px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--r2m-gradient-soft); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; top: -40%; right: -10%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(111,95,244,.14), transparent 62%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 46px); margin: 12px 0 0; }
.page-hero h1.page-statement { font-size: clamp(24px, 3vw, 38px); font-weight: 750; line-height: 1.22; letter-spacing: -.02em; max-width: none; text-wrap: normal; margin: 16px 0 0; }
.page-hero .lede { font-size: 1.05rem; color: var(--r2m-text); margin: 16px 0 0; max-width: 62ch; }
.page-hero-center { text-align: center; }
.page-hero-center h1.page-statement { max-width: 46ch; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* Services page — category blocks */
.service-cat { padding: 46px 0; border-bottom: 1px solid var(--r2m-border); }
.service-cat:last-child { border-bottom: 0; }
.service-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.service-cat-head .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--r2m-gradient); flex: 0 0 auto; box-shadow: 0 8px 18px rgba(111,95,244,.22); }
.service-cat-head .ico svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.service-cat-head h2 { font-size: clamp(21px, 2.5vw, 29px); margin: 0; }
.service-cat .cat-summary { color: var(--r2m-text); max-width: none; margin: 4px 0 22px; }

/* general badge/tag */
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--r2m-purple); background: rgba(111,95,244,.10); border-radius: var(--radius-pill); padding: 4px 12px; }
.tag.nethighway { color: #b5730a; background: #fdf3e2; }

/* Partner cards body + link */
.pcard-body { font-size: .9rem; }
.pcard-body p { margin: 0 0 15px; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 34px; align-items: start; }
.contact-aside { background: var(--r2m-bg-soft); border: 1px solid var(--r2m-border); border-radius: var(--radius); padding: 28px; }
.contact-aside h3 { font-size: 1.1rem; margin: 0 0 8px; }
.contact-aside > p { font-size: .9rem; color: var(--r2m-text); margin: 0 0 20px; }
.contact-aside .row { margin-bottom: 16px; }
.contact-aside .row .k { display: block; color: var(--r2m-faint); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.contact-aside .row .v { font-size: .95rem; color: var(--r2m-dark); }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* Cookie-consent banner (CONS-02) */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--r2m-border);
  box-shadow: 0 -8px 30px rgba(34,34,34,.10);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 22px; max-width: var(--maxw); margin: 0 auto;
}
.consent-banner[hidden] { display: none; }
.consent-banner .consent-copy { margin: 0; flex: 1 1 320px; font-size: .92rem; }
.consent-banner .consent-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.consent-banner .btn { padding: 9px 18px; }
@media (max-width: 560px) { .consent-banner .consent-actions { width: 100%; } .consent-banner .consent-actions .btn { flex: 1; } }

/* Forms (contact, etc.) */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-field .req { color: var(--r2m-purple); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--r2m-border);
  border-radius: 10px; font: inherit; background: #fff; color: var(--r2m-dark);
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  border-color: var(--r2m-purple); outline: none;
}
.form-field textarea { resize: vertical; }
.field-error { display: block; color: #a11; font-size: .82rem; margin-top: 5px; }
.form-error { background: #fdecec; color: #a11; border: 1px solid #f4c7c7; padding: 11px 14px; border-radius: 10px; margin: 14px 0; }
