/* On-premise services. Extends home.css tokens, buttons, and footer. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.op-hero {
  padding: 72px 0 80px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(50, 130, 184, 0.28), transparent 55%),
    linear-gradient(165deg, #071e33 0%, #0a334f 48%, #12324d 100%);
}

.op-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 16px;
}

.op-lead {
  max-width: 42em;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.op-included-row {
  margin-bottom: 28px;
}

.op-included {
  background: none;
  border: 0;
  padding: 0;
  color: #f3e6d0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.op-included:hover,
.op-included:focus-visible {
  color: #fff;
}

.op-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.op-switch-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.op-switch-label.is-active {
  color: #fff;
  font-weight: 800;
}

.op-switch-control {
  position: relative;
  width: 52px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #94a3b8;
  cursor: pointer;
}

.op-switch-control[aria-checked="true"] {
  background: #1565c0;
}

.op-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.op-switch-control[aria-checked="true"] .op-switch-thumb {
  transform: translateX(24px);
}

.op-switch-control:focus-visible,
.op-included:focus-visible,
.op-dialog .btn:focus-visible,
.op-faq summary:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.45);
  outline-offset: 3px;
}

.op-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
  text-align: left;
}

.op-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.op-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #eef4fb;
  border-radius: 16px;
}

.op-card h2 {
  font-size: 28px;
  margin-bottom: 2px;
}

.op-plan-kind {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.op-price {
  margin: 4px 0 0;
  color: var(--navy-deep);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.op-badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.op-features-list {
  display: grid;
  gap: 12px;
  margin: 22px 8px 24px;
}

.op-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 700;
}

.op-features-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%231565c0'/%3E%3Cpath d='M6 10.2l2.4 2.4L14 7.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.op-order {
  width: 100%;
  margin-top: auto;
}

.op-compare,
.op-clients {
  padding: 80px 0;
}

.op-faq {
  padding: 72px 0 88px;
  background: var(--soft);
}

.op-section-header {
  max-width: 40em;
  margin: 0 auto 36px;
  text-align: center;
}

.op-section-header h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 10px;
}

.op-section-header p {
  color: var(--muted);
  font-size: 17px;
}

.op-table-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.op-table {
  width: 100%;
  border-collapse: collapse;
}

.op-table th,
.op-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.op-table thead th {
  background: #f8fafc;
  color: var(--navy-deep);
  font-size: 15px;
}

.op-table thead th:first-child,
.op-table tbody th {
  width: 46%;
  text-align: left;
  font-weight: 600;
  color: #334155;
}

.op-table td {
  font-weight: 700;
  color: var(--navy-deep);
}

.op-table .op-group th {
  padding: 12px 20px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
}

.op-table tr:last-child th,
.op-table tr:last-child td {
  border-bottom: 0;
}

.op-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  background: center / contain no-repeat;
}

.op-mark--yes {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%2316a34a'/%3E%3Cpath d='M6 10.2l2.4 2.4L14 7.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.op-mark--no {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23e2e8f0'/%3E%3Cpath d='M6.5 10h7' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.op-client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.op-client {
  padding: 24px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.op-client-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: var(--blue);
  background: var(--cloud-soft);
  border-radius: 50%;
}

.op-client h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.op-client p {
  color: var(--muted);
  font-size: 15px;
}

.op-faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.op-faq details {
  padding: 4px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.op-faq summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.op-faq details p {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

.op-dialog {
  width: min(640px, calc(100% - 32px));
  padding: 28px 28px 24px;
  border: 0;
  border-radius: 16px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.op-dialog::backdrop {
  background: rgba(7, 30, 51, 0.55);
}

.op-dialog h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.op-dialog h3 {
  margin: 16px 0 6px;
  font-size: 16px;
  color: var(--blue);
}

.op-dialog p {
  color: var(--muted);
  font-size: 15px;
}

.op-dialog-note {
  margin: 18px 0 22px;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 800px) {
  .op-plans,
  .op-client-grid {
    grid-template-columns: 1fr;
  }

  .op-hero {
    padding: 48px 0 56px;
  }

  .op-card-head {
    flex-direction: column;
  }

  .op-table-wrap {
    overflow-x: auto;
  }

  .op-table {
    min-width: 520px;
  }
}
