/* recipePro shared brand — extracted from /pricing + /migration
 * Single source of truth for tokens, typography, and shared components.
 * Loaded with ?v=<%= locals.v %> for cache-busting.
 * Page-specific hero accents stay inline (teal vs orange radial).
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --rm-bg-slate: #0b1730;
  --rm-bg-page: #f5f7fa;
  --rm-white: #ffffff;
  --rm-slate-900: #0f1d3b;
  --rm-slate-800: #142c52;
  --rm-slate-600: #2e4468;
  --rm-gray-900: #1a2433;
  --rm-gray-700: #38445a;
  --rm-gray-600: #4f5b73;
  --rm-gray-500: #6b7689;
  --rm-gray-200: #d5dce6;
  --rm-gray-100: #ecf1f7;
  --rm-accent-cyan: #1fb6ff;
  --rm-accent-teal: #01c6ad;
  --rm-accent-orange: #ff7d4d;
  --rm-accent-blue: #2a9dff;
  --rm-radius-lg: 20px;
  --rm-radius-md: 14px;
  --rm-radius-sm: 10px;
  --rm-shadow-lg: 0 24px 60px rgba(10,23,48,.12);
  --rm-shadow-md: 0 18px 40px rgba(20,44,82,.10);
  --rm-shadow-sm: 0 8px 24px rgba(20,44,82,.08);
}

/* base — recipePro pages set .page-holder/.pricing-page/.migration-page */
.page-holder,
.pricing-page,
.migration-page {
  background: var(--rm-bg-page);
  color: var(--rm-gray-900);
  font-family: 'Inter','Helvetica Neue',Arial,sans-serif;
  line-height: 1.6;
}

.page-holder h1, .page-holder h2, .page-holder h3,
.pricing-page h1, .pricing-page h2, .pricing-page h3,
.migration-page h1, .migration-page h2, .migration-page h3 {
  margin: 0;
  color: var(--rm-slate-900);
  text-transform: none;
  font-family: inherit;
}
.page-holder h1, .pricing-page h1, .migration-page h1 {
  font-size: clamp(2.5rem,4.5vw,3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}
.page-holder h2, .pricing-page h2, .migration-page h2 {
  font-size: clamp(2rem,3vw,2.6rem);
  letter-spacing: -.01em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.page-holder h3, .pricing-page h3, .migration-page h3 { font-size: clamp(1.4rem,2.4vw,1.8rem); }
.page-holder p, .pricing-page p, .migration-page p { color: var(--rm-gray-700); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--rm-accent-teal);
  margin-bottom: 1.25rem;
  display: block;
}
.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-header p { color: var(--rm-gray-600); font-size: 1.05rem; margin: 1rem 0 0; }

/* shared CTA — pill */
.cta-group { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.8rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-width: 200px;
}
.cta:focus { outline: 3px solid var(--rm-accent-cyan); outline-offset: 3px; }
.cta.primary { background: linear-gradient(135deg,var(--rm-accent-cyan),var(--rm-accent-teal)); color: var(--rm-white) !important; box-shadow: var(--rm-shadow-md); border: none; }
.cta.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(31,182,255,.30); color: var(--rm-white) !important; }
.cta.secondary { background: var(--rm-white); color: var(--rm-slate-900) !important; border: 1px solid rgba(15,29,59,.10); }
.cta.secondary:hover { border-color: var(--rm-accent-teal); box-shadow: 0 8px 24px rgba(31,182,255,.15); }
.cta.outline-light { background: transparent; color: var(--rm-white) !important; border: 1px solid rgba(255,255,255,.40); }
.cta.outline-light:hover { border-color: var(--rm-white); background: rgba(255,255,255,.06); }

/* shared hero shell — teal (pricing/home) vs orange (migration) accents stay page-specific via radial */
.rm-hero, .pricing-hero, .migration-hero, .page-hero {
  position: relative; overflow: hidden;
  padding: 140px 0 120px;
  color: var(--rm-white);
  background: linear-gradient(145deg,var(--rm-bg-slate),var(--rm-slate-800));
}
.rm-hero::before, .pricing-hero::before, .migration-hero::before, .page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><defs><pattern id="rm-grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M40 0H0V40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="240" height="240" fill="url(%23rm-grid)"/></svg>');
  opacity: .5; mix-blend-mode: screen; pointer-events: none;
}
.pricing-hero, .page-hero { background: radial-gradient(circle at top right, rgba(31,182,255,.10), transparent 55%), linear-gradient(145deg,var(--rm-bg-slate),var(--rm-slate-800)) !important; }
.migration-hero { background: radial-gradient(circle at top right, rgba(255,125,77,.10), transparent 55%), linear-gradient(145deg,var(--rm-bg-slate),var(--rm-slate-800)) !important; }
.migration-hero .eyebrow { color: var(--rm-accent-orange) !important; }
.rm-hero .container, .pricing-hero .container, .migration-hero .container, .page-hero .container { position: relative; z-index: 2; }
.rm-hero h1, .pricing-hero h1, .migration-hero h1, .page-hero h1,
.rm-hero .hero-sub, .pricing-hero .hero-sub, .migration-hero .hero-sub, .page-hero p { color: var(--rm-white) !important; }
.rm-hero .hero-sub, .pricing-hero .hero-sub, .migration-hero .hero-sub { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.78) !important; }

/* shared cards — pricing/migration offer + home service-box */
.included-grid, .offer-grid, .tier-grid {
  display: grid; gap: 1.5rem;
}
.included-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.offer-grid, .tier-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.75rem; align-items: stretch; }
.included-card, .service-box, .offer-card, .tier-card {
  background: var(--rm-white) !important;
  border: 1px solid rgba(15,29,59,.08) !important;
  border-radius: var(--rm-radius-md) !important;
  box-shadow: var(--rm-shadow-sm) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.included-card, .service-box { padding: 2rem !important; display: flex; flex-direction: column; gap: .85rem; text-align: left !important; width: 100% !important; margin-left: 0 !important; min-height: auto !important; float: none !important; }
.offer-card, .tier-card { padding: 2.5rem !important; border-radius: var(--rm-radius-lg) !important; gap: 1.5rem; position: relative; }
.included-card:hover, .service-box:hover, .offer-card:hover, .tier-card:hover { transform: translateY(-3px) !important; box-shadow: var(--rm-shadow-md) !important; }
.service-box:hover { background: var(--rm-white) !important; color: inherit !important; }
.included-card h3, .service-box h3, .service-box h4 { color: var(--rm-slate-900) !important; font-size: 1.1rem !important; font-weight: 700 !important; margin: 0 !important; }
.included-card p, .service-box p { color: var(--rm-gray-600) !important; font-size: .95rem !important; opacity: 1 !important; }
.included-card .icon, .service-box .service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(31,182,255,.10) !important;
  color: var(--rm-accent-teal) !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: .5rem;
}
.service-box .service-icon:after { display: none !important; }
.service-box .service-icon img { filter: none !important; }

/* shared guarantee / crosslink */
.guarantee-section {
  background: radial-gradient(circle at top right, rgba(31,182,255,.10), transparent 55%), linear-gradient(145deg,var(--rm-bg-slate),var(--rm-slate-800));
  color: var(--rm-white); padding: 96px 0;
}
.guarantee-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--rm-radius-lg); padding: 3rem; max-width: 880px; margin: 0 auto; backdrop-filter: blur(8px);
}

/* home-specific overrides that were inline — now centralized */
.page-holder .bg-grey, .page-holder section.bg-grey { background: var(--rm-bg-page) !important; }
.page-holder section { padding: 96px 0 !important; }
.page-holder .row.justify-content-between { gap: 2.5rem; }
.page-holder .col-md-5 .cta-group { flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 2rem !important; width: 100%; }
.page-holder .col-md-5 .cta-group .cta { max-width: 100%; }
.page-holder .col-md-5 .cta { min-width: 200px; padding: .85rem 1.4rem; font-size: .95rem; white-space: nowrap; flex: 0 0 auto; width: auto; }
.page-holder .row > .cta-group { display: flex; flex-wrap: wrap; gap: .85rem; width: 100%; margin-top: .5rem; }
.page-holder .row > .cta-group .cta { min-width: 200px; }
.page-holder [class*="decoration"]::before, .page-holder [class*="decoration"]::after,
.page-holder .section-shape, .page-holder .section-shape::before, .page-holder .section-shape::after { display: none !important; }
.page-holder .bg-grey::before, .page-holder .bg-grey::after,
.page-holder section::before, .page-holder section::after { background: none !important; }
.page-holder .subtitle { color: var(--rm-slate-900) !important; font-weight: 700 !important; font-size: 1.05rem !important; margin-top: 1.25rem !important; }
.page-holder .subtitle.shape-left { padding-left: 0 !important; }
.page-holder .subtitle.shape-left::before { display: none !important; }
.page-holder .diamond-bullet li { color: var(--rm-gray-700) !important; font-size: .95rem !important; padding-left: 1.5rem !important; }
.page-holder .diamond-bullet li:before { background: var(--rm-accent-teal) !important; width: 8px !important; height: 8px !important; top: .6rem !important; border-radius: 2px; }
.page-holder .weknow-list li { color: var(--rm-gray-700) !important; }
.page-holder .weknow-list li strong { color: var(--rm-slate-900) !important; }
.page-holder .weknow-list li::before { color: var(--rm-accent-teal) !important; }
.page-holder .chalenges-list li { color: var(--rm-gray-700) !important; }
.page-holder .chalenges-list li:before { border-left-color: var(--rm-accent-teal) !important; }
.page-holder .section-chalenges .title-shape, .page-holder .h-40 { color: var(--rm-slate-900) !important; font-weight: 700 !important; }
.page-holder .service-box.big-box { padding: 2.25rem !important; }
.page-holder .service-box.big-box p { line-height: 1.7 !important; }
.page-holder .service-box.big-box ol { margin-top: .75rem !important; padding-left: 1.25rem !important; }
.page-holder .service-box.big-box ol li { margin-bottom: .5rem !important; line-height: 1.6 !important; }

/* header/footer align to new slate */
.header-area .serv-hdbg, .header-area .serv-hdbg2 { background: var(--rm-bg-slate) !important; }
.footer-area { background: var(--rm-bg-slate) !important; }

@media (max-width: 1024px) {
  .included-grid, .offer-grid, .tier-grid { grid-template-columns: 1fr; }
  section, .page-holder section { padding: 80px 0 !important; }
}
@media (max-width: 767px) {
  .rm-hero, .page-hero { padding: 110px 0 90px !important; }
  .rm-hero .row, .page-hero .row { display: flex; flex-direction: column; }
  .rm-hero .hero-content, .page-hero .hero-content { order: 1; }
  .rm-hero .hero-image, .page-hero .hero-image { order: 2; margin-top: 2rem; }
  .included-card, .service-box, .offer-card, .tier-card { padding: 1.5rem !important; }
}
@media (max-width: 640px) {
  .guarantee-card { padding: 2rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .included-card, .service-box, .offer-card, .tier-card, .cta, .page-hero .cta { transition: none !important; }
  .cta.primary:hover, .included-card:hover, .service-box:hover { transform: none !important; }
}
