/* Rocky Cloud Hub calculator and order flow — component-scoped styles. */
.rch-shop-v1 {
  --rch-orange: #F78628;
  --rch-orange-bright: #ff9b4a;
  --rch-bg: #050505;
  --rch-panel: #101010;
  --rch-panel-raised: #171717;
  --rch-line: rgba(255, 255, 255, 0.13);
  --rch-line-strong: rgba(255, 255, 255, 0.25);
  --rch-text: #ffffff;
  --rch-muted: rgba(255, 255, 255, 0.68);
  --rch-success: #67dc9a;
  --rch-danger: #ff8585;
  --rch-radius: 18px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 12% 0%, rgba(247, 134, 40, 0.15), transparent 34rem),
    radial-gradient(circle at 92% 35%, rgba(247, 134, 40, 0.07), transparent 30rem),
    var(--rch-bg);
  color: var(--rch-text);
  padding: clamp(64px, 8vw, 112px) 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

.rch-shop-v1 *,
.rch-shop-v1 *::before,
.rch-shop-v1 *::after { box-sizing: border-box; }

.rch-shop-v1__shell {
  width: min(calc(100% - 32px), 1240px);
  margin-inline: auto;
}

.rch-shop-v1__header {
  max-width: 850px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.rch-shop-v1__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--rch-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rch-shop-v1__header h2 {
  max-width: 820px;
  margin: 0;
  color: var(--rch-text) !important;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.rch-shop-v1__header p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--rch-muted) !important;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.75;
}

.rch-shop-v1__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
  align-items: start;
  gap: clamp(22px, 3vw, 36px);
}

.rch-shop-v1__configuration,
.rch-shop-v1__summary,
.rch-shop-v1__customer {
  border: 1px solid var(--rch-line);
  border-radius: var(--rch-radius);
  background: rgba(16, 16, 16, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.rch-shop-v1__configuration { padding: clamp(22px, 4vw, 40px); }

.rch-shop-v1__fieldset,
.rch-shop-v1__customer {
  min-width: 0;
  margin: 0;
  border: 0;
}

.rch-shop-v1__fieldset {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--rch-line);
  margin-bottom: 32px;
}

.rch-shop-v1__fieldset:last-of-type { margin-bottom: 0; }

.rch-shop-v1__fieldset > legend,
.rch-shop-v1__customer > legend {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: var(--rch-text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 750;
}

.rch-shop-v1__plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rch-shop-v1__plan {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 196px;
}

.rch-shop-v1__plan input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.rch-shop-v1__plan-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--rch-line);
  border-radius: 14px;
  background: #0b0b0b;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.rch-shop-v1__plan-card:hover {
  border-color: rgba(247, 134, 40, 0.65);
  transform: translateY(-2px);
}

.rch-shop-v1__plan input:checked + .rch-shop-v1__plan-card {
  border-color: var(--rch-orange);
  background: linear-gradient(155deg, rgba(247, 134, 40, 0.17), rgba(247, 134, 40, 0.035));
  box-shadow: inset 0 0 0 1px var(--rch-orange), 0 14px 36px rgba(247, 134, 40, 0.08);
}

.rch-shop-v1__plan input:focus-visible + .rch-shop-v1__plan-card,
.rch-shop-v1 input:focus-visible,
.rch-shop-v1 textarea:focus-visible,
.rch-shop-v1 button:focus-visible,
.rch-shop-v1 a:focus-visible {
  outline: 3px solid var(--rch-orange);
  outline-offset: 3px;
}

.rch-shop-v1__plan-name {
  display: block;
  color: var(--rch-text);
  font-size: 1.12rem;
  font-weight: 800;
}

.rch-shop-v1__plan-price {
  display: block;
  margin-top: 17px;
  color: var(--rch-orange);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.rch-shop-v1__plan-period,
.rch-shop-v1__plan-users {
  display: block;
  margin-top: 4px;
  color: var(--rch-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rch-shop-v1__plan-users { margin-top: auto; padding-top: 18px; }

.rch-shop-v1__plan-skeleton {
  min-height: 196px;
  border: 1px solid var(--rch-line);
  border-radius: 14px;
  background: linear-gradient(110deg, #101010 8%, #1b1b1b 18%, #101010 33%);
  background-size: 200% 100%;
  animation: rch-shop-shimmer 1.3s linear infinite;
}

@keyframes rch-shop-shimmer { to { background-position-x: -200%; } }

.rch-shop-v1__retry {
  margin-top: 14px;
  padding: 9px 15px;
  border: 1px solid var(--rch-line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--rch-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.rch-shop-v1__billing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rch-shop-v1__choice {
  position: relative;
  display: flex;
  min-width: 0;
}

.rch-shop-v1__choice input {
  position: absolute;
  top: 20px;
  left: 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rch-orange);
}

.rch-shop-v1__choice > span {
  display: block;
  width: 100%;
  min-height: 92px;
  padding: 16px 16px 16px 50px;
  border: 1px solid var(--rch-line);
  border-radius: 13px;
  background: #0b0b0b;
  cursor: pointer;
}

.rch-shop-v1__choice input:checked + span {
  border-color: var(--rch-orange);
  background: rgba(247, 134, 40, 0.09);
}

.rch-shop-v1__choice strong,
.rch-shop-v1__choice small { display: block; }
.rch-shop-v1__choice strong { color: var(--rch-text); }
.rch-shop-v1__choice small { margin-top: 5px; color: var(--rch-muted); line-height: 1.45; }
.rch-shop-v1__choice--featured::after {
  content: attr(data-saving-badge);
  position: absolute;
  top: -8px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rch-orange);
  color: #000;
  font-size: 0.68rem;
  font-weight: 850;
}

.rch-shop-v1__choice--featured:not([data-saving-badge])::after { display: none; }

.rch-shop-v1__field { display: block; min-width: 0; }
.rch-shop-v1__field > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.86rem;
  font-weight: 650;
}
.rch-shop-v1__field em { color: var(--rch-orange); font-style: normal; }

.rch-shop-v1 input[type='text'],
.rch-shop-v1 input[type='email'],
.rch-shop-v1 input[type='tel'],
.rch-shop-v1 input[type='number'],
.rch-shop-v1 textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--rch-line-strong);
  border-radius: 10px;
  background: #080808;
  color: var(--rch-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rch-shop-v1 input[type='number'] { max-width: 180px; }
.rch-shop-v1 textarea { min-height: 112px; resize: vertical; }
.rch-shop-v1 input::placeholder,
.rch-shop-v1 textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.rch-shop-v1 input:hover,
.rch-shop-v1 textarea:hover { border-color: rgba(255, 255, 255, 0.38); }
.rch-shop-v1 input:invalid:not(:placeholder-shown) { border-color: rgba(255, 133, 133, 0.72); }

.rch-shop-v1__help {
  margin: 10px 0 0;
  color: var(--rch-muted) !important;
  font-size: 0.82rem;
  line-height: 1.65;
}

.rch-shop-v1__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.rch-shop-v1__option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--rch-line);
  border-radius: 11px;
  background: #0b0b0b;
  cursor: pointer;
}
.rch-shop-v1__option:hover { border-color: rgba(247, 134, 40, 0.55); }
.rch-shop-v1__option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rch-orange); }
.rch-shop-v1__option span { color: rgba(255, 255, 255, 0.82); font-size: 0.86rem; line-height: 1.45; }

.rch-shop-v1__included {
  padding: 22px;
  border: 1px solid rgba(103, 220, 154, 0.22);
  border-radius: 14px;
  background: rgba(103, 220, 154, 0.055);
}
.rch-shop-v1__included h3 { margin: 0 0 13px; color: var(--rch-text) !important; font-size: 1rem; }
.rch-shop-v1__included ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.rch-shop-v1__included li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.84rem;
}
.rch-shop-v1__included li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rch-success);
  font-weight: 800;
}
.rch-shop-v1__migration-scope {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(103, 220, 154, 0.18);
  color: var(--rch-muted) !important;
  font-size: 0.76rem;
  line-height: 1.6;
}

.rch-shop-v1__summary {
  position: sticky;
  top: 88px;
  padding: clamp(22px, 3vw, 31px);
  background:
    linear-gradient(160deg, rgba(247, 134, 40, 0.105), transparent 38%),
    rgba(16, 16, 16, 0.96);
}
.rch-shop-v1__logo { display: block; width: min(100%, 260px); height: auto; margin: 0 0 28px; }
.rch-shop-v1__summary h3 { margin: 0 0 20px; color: var(--rch-text) !important; font-size: 1.3rem; }
.rch-shop-v1__summary-list { margin: 0; }
.rch-shop-v1__summary-list > div,
.rch-shop-v1__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rch-line);
}
.rch-shop-v1__summary-list dt,
.rch-shop-v1__totals span { color: var(--rch-muted); font-size: 0.8rem; }
.rch-shop-v1__summary-list dd { margin: 0; color: var(--rch-text); font-size: 0.86rem; font-weight: 700; text-align: right; }

.rch-shop-v1__quote-notice {
  margin: 20px 0 4px;
  padding: 15px;
  border: 1px solid rgba(247, 134, 40, 0.45);
  border-radius: 11px;
  background: rgba(247, 134, 40, 0.09);
}
.rch-shop-v1__quote-notice strong,
.rch-shop-v1__quote-notice span { display: block; }
.rch-shop-v1__quote-notice strong { color: var(--rch-orange); font-size: 0.9rem; }
.rch-shop-v1__quote-notice span { margin-top: 5px; color: var(--rch-muted); font-size: 0.76rem; line-height: 1.55; }

.rch-shop-v1__totals { margin-top: 18px; }
.rch-shop-v1__totals strong { color: var(--rch-text); font-size: 0.9rem; text-align: right; }
.rch-shop-v1__totals .rch-shop-v1__total { align-items: end; padding: 18px 0; border-bottom: 0; }
.rch-shop-v1__totals .rch-shop-v1__total span { color: var(--rch-text); font-weight: 700; }
.rch-shop-v1__totals .rch-shop-v1__total strong { color: var(--rch-orange); font-size: clamp(1.3rem, 3vw, 1.85rem); letter-spacing: -0.035em; }
.rch-shop-v1__totals p { margin: -8px 0 0; color: var(--rch-muted) !important; font-size: 0.76rem; text-align: right; }
.rch-shop-v1__totals .rch-shop-v1__saving { margin-top: 13px; color: var(--rch-success) !important; font-weight: 650; }
.rch-shop-v1__contract { margin: 20px 0 0; color: rgba(255, 255, 255, 0.52) !important; font-size: 0.72rem; line-height: 1.6; }

.rch-shop-v1__customer {
  margin-top: clamp(22px, 3vw, 36px);
  padding: clamp(24px, 4vw, 42px);
}
.rch-shop-v1__customer > legend { float: left; }
.rch-shop-v1__customer > legend + * { clear: both; }
.rch-shop-v1__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.rch-shop-v1__field--wide { grid-column: 1 / -1; }

.rch-shop-v1__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.6;
}
.rch-shop-v1__consent input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--rch-orange); }
.rch-shop-v1__consent a { color: var(--rch-orange) !important; text-decoration: underline; text-underline-offset: 3px; }
.rch-shop-v1__field-error { display: block; margin: 8px 0 0 31px; color: var(--rch-danger); font-size: 0.78rem; }

.rch-shop-v1__purchase-terms {
  margin: 24px 0 -14px;
  padding: 12px 14px;
  border-left: 3px solid var(--rch-orange);
  border-radius: 0 8px 8px 0;
  background: rgba(247, 134, 40, 0.075);
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.6;
}

.rch-shop-v1__b2b {
  margin: 24px 0 0;
  color: var(--rch-muted) !important;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.6;
}

.rch-shop-v1__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.rch-shop-v1__button,
.rch-shop-v1__trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 20px;
  border-radius: 11px;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.rch-shop-v1__button:hover:not(:disabled),
.rch-shop-v1__trial:hover:not(:disabled) { transform: translateY(-1px); }
.rch-shop-v1__button--primary { border: 1px solid var(--rch-orange); background: var(--rch-orange); color: #050505; }
.rch-shop-v1__button--primary:hover:not(:disabled) { background: var(--rch-orange-bright); border-color: var(--rch-orange-bright); }
.rch-shop-v1__button--secondary { border: 1px solid var(--rch-line-strong); background: transparent; color: var(--rch-text); }
.rch-shop-v1__button--secondary:hover:not(:disabled) { border-color: var(--rch-orange); color: var(--rch-orange); }
.rch-shop-v1__button:disabled,
.rch-shop-v1__trial:disabled { cursor: not-allowed; opacity: 0.46; }
.rch-shop-v1__button.is-loading { color: transparent; position: relative; }
.rch-shop-v1__button.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #ffffff;
  animation: rch-shop-spin 700ms linear infinite;
}
.rch-shop-v1__button--primary.is-loading::after { color: #050505; }
@keyframes rch-shop-spin { to { transform: rotate(360deg); } }

.rch-shop-v1__trial {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--rch-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rch-shop-v1__trial-hint,
.rch-shop-v1__security { margin: 9px auto 0; color: var(--rch-muted) !important; font-size: 0.75rem; text-align: center; line-height: 1.6; }
.rch-shop-v1__security { max-width: 700px; margin-top: 13px; }
.rch-shop-v1__checkout-unavailable {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(247, 134, 40, 0.32);
  border-radius: 10px;
  background: rgba(247, 134, 40, 0.075);
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}
.rch-shop-v1__request-unavailable {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 133, 133, 0.34);
  border-radius: 10px;
  background: rgba(255, 133, 133, 0.07);
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}
.rch-shop-v1__request-unavailable a { margin-left: 5px; color: var(--rch-orange) !important; font-weight: 750; }

.rch-shop-v1__global-status,
.rch-shop-v1__form-status {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--rch-line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--rch-text);
  font-size: 0.86rem;
  line-height: 1.55;
}
.rch-shop-v1__global-status.is-error,
.rch-shop-v1__form-status.is-error { border-color: rgba(255, 133, 133, 0.5); background: rgba(255, 133, 133, 0.08); color: #ffd1d1; }
.rch-shop-v1__form-status.is-success { border-color: rgba(103, 220, 154, 0.45); background: rgba(103, 220, 154, 0.08); color: #c9f7dc; }

.rch-shop-v1__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.rch-shop-v1__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rch-shop-v1 [hidden] { display: none !important; }

@media (max-width: 980px) {
  .rch-shop-v1__layout { grid-template-columns: 1fr; }
  .rch-shop-v1__summary { position: static; }
  .rch-shop-v1__plans { grid-template-columns: repeat(3, minmax(190px, 1fr)); overflow-x: auto; padding: 3px 3px 12px; scroll-snap-type: x proximity; }
  .rch-shop-v1__plan { scroll-snap-align: start; }
}

@media (max-width: 680px) {
  .rch-shop-v1 { padding-block: 54px; }
  .rch-shop-v1__shell { width: min(calc(100% - 22px), 1240px); }
  .rch-shop-v1__configuration,
  .rch-shop-v1__summary,
  .rch-shop-v1__customer { border-radius: 14px; }
  .rch-shop-v1__billing,
  .rch-shop-v1__options,
  .rch-shop-v1__fields,
  .rch-shop-v1__actions { grid-template-columns: 1fr; }
  .rch-shop-v1__field--wide,
  .rch-shop-v1__trial { grid-column: auto; }
  .rch-shop-v1__choice > span { min-height: 82px; }
  .rch-shop-v1__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rch-shop-v1 *,
  .rch-shop-v1 *::before,
  .rch-shop-v1 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
