/* Shared subpage theme: the homepage's blue introductions and rounded light panels. */
.ridge-subpage {
  --page-inner-space: 96px;
  background: var(--ridge-canvas);
  color: #102b3e;
}
.ridge-subpage .page-intro,
.ridge-subpage .package-intro-band {
  margin: var(--ridge-frame-gutter);
  border-radius: var(--ridge-frame-radius);
  padding-block: clamp(38px, 5vw, 68px);
  background:
    radial-gradient(ellipse at 95% 0, #116ca955, transparent 58%),
    linear-gradient(125deg, #082b4b, #104780);
  color: #fff;
}
.ridge-subpage .page-intro h1,
.ridge-subpage .package-intro h1 {
  max-width: 940px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.06;
}
.ridge-subpage .page-intro .eyebrow { color: #b4d9ff; }
.ridge-subpage .page-intro .lead,
.ridge-subpage .package-intro p,
.ridge-subpage .page-document__intro > p:not(.eyebrow) { color: #e0ecf8; }
.ridge-subpage .page-intro .breadcrumbs,
.ridge-subpage .page-intro .breadcrumbs a,
.ridge-subpage .page-intro .text-link,
.ridge-subpage .package-intro a { color: #d3e8ff; }
.ridge-subpage .page-intro a:focus-visible,
.ridge-subpage .package-intro a:focus-visible { outline-color: #fff; }
.ridge-subpage .package-intro { padding-block: 0; }
.ridge-subpage .page-document__intro > p { max-width: 760px; }
.ridge-subpage .page-document__intro > p:last-child { margin-bottom: 0; }

.ridge-subpage .content-section.wrap,
.ridge-subpage .package-options.wrap,
.ridge-subpage .page-document__panel {
  width: calc(100% - var(--ridge-frame-gutter) - var(--ridge-frame-gutter));
  max-width: none;
  margin: var(--ridge-frame-gutter);
  padding-block: clamp(32px, 4vw, 56px);
  border-radius: var(--ridge-frame-radius);
  background: #fff;
}
.ridge-subpage .content-grid,
.ridge-subpage .package-grid {
  width: calc(100% - var(--page-inner-space));
  max-width: 1280px;
  margin-inline: auto;
}
.ridge-subpage .content-grid {
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.ridge-subpage .content-grid > * { min-width: 0; }
.ridge-subpage .prose p,
.ridge-subpage .prose li,
.ridge-subpage .document p,
.ridge-subpage .document li { color: #31475c; line-height: 1.7; }
.ridge-subpage main a[href^='mailto:'] { overflow-wrap: anywhere; }
.ridge-subpage main .button { border-radius: 10px; }
.ridge-subpage main [id] { scroll-margin-top: 32px; }
.ridge-subpage .aside-note {
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid #cbddeb;
  border-top: 3px solid #006be5;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6fd, #f8fbfe);
}
.ridge-subpage .aside-note h2 { font-size: clamp(25px, 2.3vw, 30px); }
.ridge-subpage .aside-note > p:last-child { margin-bottom: 0; }
.ridge-subpage .form-panel {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid #254c69;
  border-radius: var(--ridge-frame-radius);
  background: #062338;
  color: #f0f5fa;
}
.ridge-subpage .form-panel h2 { color: #fff; }
.ridge-subpage .form-panel a { color: #b5dfff; }
.ridge-subpage .form-panel .form-notice,
.ridge-subpage .form-panel .field-help,
.ridge-subpage .form-panel .form-privacy,
.ridge-subpage .form-panel .form-sensitive { color: #d6e3ec; }
.ridge-subpage .form-panel :focus-visible { outline-color: #80c9ff; }
.ridge-subpage .form-panel .button:focus-visible { outline-color: #fff; }
.ridge-subpage .form-panel #contact-form input,
.ridge-subpage .form-panel #contact-form select,
.ridge-subpage .form-panel #contact-form textarea { border-radius: 8px; }
.ridge-subpage .form-panel #contact-form .button { margin-top: 18px; }

.ridge-subpage section.section-action,
.ridge-subpage .google-band,
.ridge-subpage .custom-project {
  margin: var(--ridge-frame-gutter);
  border-radius: var(--ridge-frame-radius);
  padding-block: clamp(32px, 4vw, 52px);
  background: #edf4fb;
}
.ridge-subpage .custom-project { display: block; }
.ridge-subpage .page-action-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ridge-subpage .package-options.wrap { background: #edf4fb; }
.ridge-subpage .plan { border-color: #cbddeb; border-radius: 14px; }
.ridge-subpage .plan-managed { background: #e6f1ff; border-top-color: #006be5; }
.ridge-subpage .google-layout,
.ridge-subpage .google-grid { gap: 32px; }
.ridge-subpage .google-layout > * { min-width: 0; }
.ridge-subpage .page-document__panel .document { max-width: 800px; padding-block: 0; }
.ridge-subpage .page-document__panel .document > h2:first-child { margin-top: 0; }
.ridge-subpage .page-document__panel .document > p:last-child { margin-bottom: 0; }

@media (max-width: 1050px) {
  .ridge-subpage { --page-inner-space: 64px; }
}
@media (max-width: 900px) {
  .ridge-subpage .content-grid { grid-template-columns: minmax(0, 1fr); }
  .ridge-subpage .form-panel { width: 100%; max-width: 620px; }
  .ridge-subpage section.section-action > .wrap,
  .ridge-subpage .page-action-inner { flex-direction: column; align-items: start; gap: 24px; }
}
@media (max-width: 760px) {
  .ridge-subpage { --page-inner-space: 40px; }
  .ridge-subpage .page-intro h1,
  .ridge-subpage .package-intro h1 { font-size: clamp(36px, 8vw, 48px); }
  .ridge-subpage .form-panel { max-width: none; }
  .ridge-subpage .plan { padding: 24px 20px; }
}
@media (max-width: 380px) {
  .ridge-subpage { --page-inner-space: 32px; }
  .ridge-subpage .form-panel { padding: 18px 16px; }
}
