/* Shared public component finish. Content, statuses and interactive states stay intact. */
body:is(.dl-public-restyle, .dl-auth-restyle) {
  --dl-radius: 6px;
  --dl-control-radius: 4px;
  --dl-border: #414853;
  --shadow: none;
  --shadow-soft: none;
}

/* Labels describe the content; they do not sit in decorative coloured bars. */
body:is(.dl-public-restyle, .dl-auth-restyle) :is(
  .eyebrow, .review-personal-label, .review-case-label,
  .service-price, .service-route-label, .service-route-detail-label, .ads-pill,
  .dlhs-eyebrow, .dlhs-plan-kicker, .home-manager-kicker,
  .home-manager-plan-badge, .dlhs-plan-badge
) {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--dl-muted);
  font-size: .8125rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}
body.dl-public-restyle .static-main :is(.service-price, .ads-pill),
body.dl-public-restyle .static-main :is(.pricing-card, .service-card) .service-price {
  background: none;
  color: var(--dl-muted);
  border: 0;
  padding: 0;
}
body.dl-public-restyle .static-main .case-card .review-case-label {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--dl-muted);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}
body.dl-public-restyle .ads-package-card > .service-price {
  margin: 20px 0 0;
  font-size: .9375rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--dl-text);
}
body.dl-public-restyle .ads-package-card > .ads-pill {
  position: static;
  align-self: flex-start;
  margin: 0 0 16px;
  color: var(--dl-text);
}

/* A consistent frame replaces legacy gradients, coloured rails and spotlights. */
body:is(.dl-public-restyle, .dl-auth-restyle) :is(
  .review-personal, .review-work-detail, .website-card, .website-hosting-card,
  .micro-card, .pain-card, .pricing-card, .result-card, .service-card,
  .automation-card, .process-step, .case-card, .split-card,
  .ads-package-card, .ads-soon-card, .ads-setup-card,
  .hero-useful-panel, .dsr-example, .dsr-note, .dsr-agreements,
  .website-price-card, .website-proof-links a, .lead-form
) {
  background: var(--dl-surface) !important;
  background-image: none !important;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  box-shadow: none;
  backdrop-filter: none;
}
body.dl-public-restyle :is(
  .micro-card, .pain-card, .pricing-card, .result-card, .service-card,
  .automation-card, .process-step, .case-card
)::before,
body.dl-public-restyle :is(
  .micro-card, .pain-card, .pricing-card, .result-card, .service-card,
  .automation-card, .process-step, .case-card
)::after {
  display: none;
  content: none;
}
body.dl-public-restyle :is(.section-head, .lead-copy) {
  border-left: 0;
  padding-left: 0;
}
body.dl-public-restyle .section-head::before {
  display: none;
}
body.dl-public-restyle .review-services .review-service-card,
body.dl-public-restyle .review-services .review-service-card:first-child {
  background: var(--dl-surface);
  border-color: var(--dl-border);
  border-radius: var(--dl-radius);
  box-shadow: none;
}
body.dl-public-restyle .review-services .review-service-card:hover {
  border-color: #8b98aa;
  background: var(--dl-surface-raised);
}
body.dl-public-restyle :is(
  .website-browser, .review-work-image, .dl-service-image,
  .case-card-image, .dsr-worklist, .dsr-chat-demo, .dsr-table-scroll,
  .dl-legal-toc, .dl-legal-help, .dl-legal-form, .dl-legal-receipt
) {
  border-radius: var(--dl-radius);
  box-shadow: none;
}
body.dl-public-restyle .review-services .dl-service-image {
  border-radius: 3px;
}
body.dl-public-restyle :is(.pricing-card, .ads-package-card) {
  min-height: 0;
  padding: 30px;
}
body.dl-public-restyle .ads-package-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
body.dl-public-restyle .ads-package-card.is-featured {
  background: var(--dl-surface) !important;
  border-color: #7f8fa5;
}
body.dl-public-restyle .ads-package-card > h3 {
  margin: 0 0 18px;
  color: var(--dl-text);
  font-size: 1.375rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.015em;
}
body.dl-public-restyle :is(.ads-package-card > strong, .ads-setup-price > strong) {
  color: var(--dl-text);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.035em;
}
body.dl-public-restyle .ads-package-card .price-period {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dl-muted);
}
body.dl-public-restyle .ads-package-card > .price-vat-note {
  margin: 8px 0 0;
  font-size: .8125rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--dl-muted);
}
body.dl-public-restyle .ads-package-card > p:not(.service-price) {
  margin: 8px 0 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--dl-muted);
}
body.dl-public-restyle .ads-package-card > .check-list {
  flex: 1;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--dl-border);
  font-size: .9375rem;
  line-height: 1.65;
}
body.dl-public-restyle .ads-package-card > .button {
  margin-top: auto;
}

/* Give the main action its own line before an additional text link. */
body.dl-public-restyle :is(.hero-actions, .review-home-actions):has(> .button):has(> a:not(.button)) {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
body.dl-public-restyle :is(.hero-actions, .review-home-actions):has(> a:not(.button)) > .button {
  width: auto;
  max-width: 100%;
}
body.dl-public-restyle :is(.hero-actions, .review-home-actions):has(> .button) > a:not(.button) {
  max-width: 100%;
  margin: 0;
  padding-block: 4px;
}
body.dl-public-restyle .price-row strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dl-text);
}
body.dl-public-restyle .static-main :is(.process-step, .automation-card) > span {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dl-muted);
  border-radius: 0;
  font-weight: 500;
}

/* Hosting uses the same labels and frames, including its stronger legacy selectors. */
body.dl-public-restyle .review-home-hosting :is(.home-manager-plan, .home-domain-checker, .home-manager-console),
body.dl-public-restyle .dlhs-storefront :is(
  .dlhs-domain-only-intro, .dlhs-domain-search, .dlhs-included-panel,
  .dlhs-checkout-form, .dlhs-cart, .dl-hosting-review
),
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card {
  border-radius: var(--dl-radius);
  border-color: var(--dl-border);
  background: var(--dl-surface);
  box-shadow: none;
}
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card.is-featured,
body.dl-public-restyle .review-home-hosting .home-manager-plan.is-featured {
  background: var(--dl-surface);
  border-color: #7f8fa5;
}
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card.is-selected {
  border-color: var(--dl-focus);
  background: var(--dl-surface-raised);
}
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card.is-disabled::after {
  border: 1px solid var(--dl-border);
  border-radius: 3px;
  background: var(--dl-surface-raised);
  color: var(--dl-muted);
  box-shadow: none;
}
body.dl-public-restyle .dlhs-storefront .dlhs-eyebrow,
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-kicker {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
  background: none;
  color: var(--dl-muted);
}
body.dl-public-restyle .review-home-hosting .home-manager-plan-badge,
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-badge {
  position: static;
  display: block;
  width: auto;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--dl-text);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: none;
}
body.dl-public-restyle .review-home-hosting .home-manager-plan-header {
  display: grid;
  gap: 8px;
}
body.dl-public-restyle .review-home-hosting .home-manager-plan-header .home-manager-plan-badge {
  margin: 0;
}
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card > .dlhs-button,
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card.is-featured > .dlhs-button {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #737f90;
  border-radius: var(--dl-control-radius);
  background: transparent;
  box-shadow: none;
  color: var(--dl-text);
  font-size: .9375rem;
  font-weight: 600;
  transform: none;
}
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card.is-selected > .dlhs-button {
  background: var(--dl-action);
  border-color: var(--dl-action);
  color: #fff;
}
body.dl-public-restyle .dlhs-storefront #hostingpakketten .dlhs-plan-card > .dlhs-button:not(:disabled):not([aria-disabled="true"]):hover {
  border-color: var(--dl-focus);
  background: var(--dl-surface-raised);
  transform: none;
}

/* Forms, navigation and account entry points share modest control corners. */
body:is(.dl-public-restyle, .dl-auth-restyle) :is(
  .button, .header-cta, .sticky-cta, .header-account, .header-menu-toggle,
  .lead-form input:not([type=checkbox]), .lead-form textarea, .lead-form select,
  .dlhs-login-box, .dlhs-login-box input:not([type=checkbox]), .dlhs-login-box button,
  .dl-account-primary, .dl-account-secondary, .dl-account-close,
  .dl-account-drawer input:not([type=checkbox]), .form-notice,
  .dl-legal-form input, .dl-legal-form button
) {
  border-radius: var(--dl-control-radius);
}
body.dl-public-restyle .dlhs-storefront :is(.dlhs-domain-search, .dlhs-checkout-form) :is(input:not([type=checkbox]), select),
body.dl-public-restyle .review-home-hosting .home-domain-fields :is(input, select, button),
body.dl-public-restyle .dlhs-storefront .dlhs-button {
  border-radius: var(--dl-control-radius);
}
body.dl-auth-restyle .dlhs-login-box {
  border-radius: var(--dl-radius);
}
body:is(.dl-public-restyle, .dl-auth-restyle) .site-header .header-account[data-dl-account-open] {
  border-radius: var(--dl-control-radius);
}
body.dl-public-restyle :is(h1, h2) {
  font-weight: 650;
}
body.dl-public-restyle .section-head h2 {
  max-width: 26ch;
}
body:is(.dl-public-restyle, .dl-auth-restyle) .section-shell[id] {
  scroll-margin-top: 92px;
}
@media (max-width: 600px) {
  body.dl-public-restyle :is(.pricing-card, .ads-package-card) {
    padding: 24px;
  }
  body:is(.dl-public-restyle, .dl-auth-restyle) .section-shell[id] {
    scroll-margin-top: 80px;
  }
}

/* Ticket agreement links land below the fixed public header. */
body.dl-public-restyle .dsr-agreements[id] {
  scroll-margin-top: 100px;
}
