/* Service pages: hub list, domain search, billing switch, price tier grids. Loaded only on pages that use them. */

/* ---------- Tier grids with 2 or 4 columns (3 is the default .plans layout) ---------- */
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans-1 { grid-template-columns: minmax(0, 1fr); }
/* One plan: price and button on the left, features on the right */
.plans-1 .plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-content: start; }
.plans-1 .plan > * { grid-column: 1; }
.plans-1 .plan > .plan-intro,
.plans-1 .plan > .ticks { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
.plans-1 .plan-btn { margin-bottom: 0; justify-self: start; min-width: 260px; }

/* ---------- Services hub ---------- */
.svc-groups { display: grid; gap: 72px; margin-top: 56px; }
.svc-group { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 40px; }
.svc-group-head { min-width: 0; }
.svc-group-num { display: block; margin-bottom: 14px; color: var(--lime); font-weight: 700; font-variation-settings: "wdth" 125; }
.svc-group-title { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; line-height: 1; }
.svc-group-lead { margin: 14px 0 0; color: #bdbdbd; }

.svc-list { border-top: 1px solid var(--line); min-width: 0; }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 150px;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  color: var(--text);
  text-decoration: none;
}
.svc-item:visited { color: var(--text); }
.svc-name { font-size: 20px; font-weight: 700; font-variation-settings: "wdth" 112; }
.svc-text { color: #bdbdbd; font-size: 15.5px; }
.svc-price { color: var(--lime); font-size: 14px; font-weight: 600; white-space: nowrap; text-align: right; }
.svc-list-related { margin-top: 40px; }
@media (hover: hover) and (pointer: fine) {
  .svc-item:hover .svc-name { color: var(--lime); }
}

/* ---------- Domain search ---------- */
.dsearch { margin-top: 36px; max-width: 760px; }
.dsearch-form { display: flex; border: 1px solid #3a3a3a; background: #121212; }
.dsearch-form:focus-within { border-color: var(--lime); outline: 2px solid var(--lime); }
.dsearch-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dsearch-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 64px;
  padding: 0 20px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
}
.dsearch-form input:focus { outline: none; }
.dsearch-form input::placeholder { color: #7a7a7a; }
.dsearch-form .btn { min-height: 64px; flex: 0 0 auto; }
.dsearch-tlds { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.dsearch-tlds b { color: var(--text); font-weight: 600; }

.dresults { margin-top: 28px; border-top: 1px solid var(--line); }
.dresults:empty { display: none; }
.dresult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dresult-name { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.dresult-status { font-size: 14px; font-weight: 600; white-space: nowrap; }
.dresult.is-available .dresult-status { color: var(--lime); }
.dresult.is-taken .dresult-status,
.dresult.is-unknown .dresult-status { color: var(--muted); }
.dresult.is-taken .dresult-name { color: #8a8a8a; }
.dresult-action { min-width: 150px; text-align: right; }
.dresult-action .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.dresult-action .dresult-price { color: var(--muted); font-size: 14px; }
.dresults-msg { margin: 0; padding: 18px 0; color: #cfcfcf; border-bottom: 1px solid var(--line); }
.dresults-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.dsearch.is-loading .dsearch-form .btn { opacity: .6; pointer-events: none; }

/* Price list (domains) */
.price-list { border-top: 1px solid var(--line); margin-top: 40px; }
.price-list li { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-list .pl-name { font-size: clamp(26px, 3vw, 40px); font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1; }
.price-list .pl-price { align-self: center; font-size: 18px; font-weight: 600; }
.price-list .pl-price span { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ---------- Monthly / yearly switch ---------- */
.billing-switch { display: inline-flex; margin-top: 32px; border: 1px solid #3a3a3a; }
.billing-switch button {
  min-height: 48px;
  padding: 0 22px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.billing-switch button[aria-selected="true"] { background: var(--lime); color: var(--ink); }
.billing-switch .save { margin-left: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.billing-panel[hidden] { display: none; }
.billing-panels { margin-top: 32px; }
/* Business email: price card on the left, what every user gets on the right */
.email-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.email-grid .plans-1 { max-width: none; }
.email-grid .plans-1 .plan { display: block; }
.email-grid .plans-1 .plan-btn { margin-bottom: 28px; min-width: 0; }
.email-grid .plan .ticks { display: none; }
.email-includes { padding-top: 32px; }
.email-includes h3 { margin: 0 0 16px; font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; }
.plan-save { display: inline-block; margin: 10px 0 0; padding: 4px 10px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 700; }

@media (max-width: 1080px) {
  .svc-group { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .plans-2 { grid-template-columns: minmax(0, 1fr); }
  .plans-1 .plan { display: block; }
  .plans-1 .plan-btn { margin-bottom: 28px; }
  .email-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .email-includes { padding-top: 0; }
}
@media (max-width: 640px) {
  .svc-groups { gap: 56px; margin-top: 40px; }
  .svc-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .svc-price { text-align: left; }
  .dsearch-form { flex-direction: column; }
  .dsearch-form input { min-height: 56px; }
  .dsearch-form .btn { min-height: 54px; }
  .dresult { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .dresult-action { grid-column: 1 / -1; text-align: left; }
  .billing-switch { display: flex; }
  .billing-switch button { flex: 1 1 0; padding: 0 12px; }
}

/* Logo page price above the order button */
.logo-price { margin: 32px 0 22px; }
