/* ==========================================================================
   hosting.gratis landing page  (loaded only on the WHMCS homepage)
   Uses the design tokens defined in lagom.css
   ========================================================================== */
html { scroll-behavior: smooth; }
body.lg-theme section#main-body.lg-home { padding: 0; min-height: 0; background: transparent; }
body.lg-theme .lg-home-content { margin: 0; padding: 0; min-height: 0; }
.hg-section, .hg-hero { scroll-margin-top: 76px; }

/* ---------- buttons ---------- */
.hg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px;
  border: 1.5px solid transparent; border-radius: 10px; font-size: 15.5px; font-weight: 650; line-height: 1; text-align: center; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
body.lg-theme .hg-btn:hover, body.lg-theme .hg-btn:focus { transform: translateY(-1px); text-decoration: none; }
body.lg-theme .hg-btn-light { background: #fff; color: #14224a; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
body.lg-theme .hg-btn-light:hover, body.lg-theme .hg-btn-light:focus { color: #0c1736; background: #f2f5ff; }
body.lg-theme .hg-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
body.lg-theme .hg-btn-ghost:hover, body.lg-theme .hg-btn-ghost:focus { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
body.lg-theme .hg-btn-primary { background: var(--lg-primary); color: #fff; box-shadow: 0 8px 22px rgba(62, 99, 245, .35); }
body.lg-theme .hg-btn-primary:hover, body.lg-theme .hg-btn-primary:focus { background: var(--lg-primary-dark); color: #fff; }
body.lg-theme .hg-btn-outline { background: #fff; color: var(--lg-text); border-color: #cfd8e8; }
body.lg-theme .hg-btn-outline:hover, body.lg-theme .hg-btn-outline:focus { border-color: var(--lg-primary); color: var(--lg-primary); }
.hg-btn-block { display: flex; width: 100%; }
.hg-btn-lg { min-height: 56px; padding: 0 36px; font-size: 16.5px; }

/* ---------- hero ---------- */
.hg-hero {
  position: relative; overflow: hidden; color: #fff; padding: 88px 0 104px;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(122, 99, 246, .55), transparent 62%),
    radial-gradient(700px 420px at -6% 105%, rgba(46, 168, 239, .32), transparent 60%),
    linear-gradient(160deg, #0c1736 0%, #14265c 60%, #1b2f78 100%);
}
.hg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hg-pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: #dfe6ff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); }
.hg-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee0a4; box-shadow: 0 0 0 4px rgba(62, 224, 164, .22); }
body.lg-theme .hg-hero h1 { margin: 0 0 20px; color: #fff; font-size: clamp(36px, 5.4vw, 60px); font-weight: 750; line-height: 1.04; letter-spacing: -.035em; }
.hg-lead { margin: 0 0 32px; max-width: 540px; font-size: 18px; line-height: 1.6; color: #c9d3f2; }
.hg-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hg-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: #c9d3f2; font-size: 14.5px; }
.hg-checks i { margin-right: 7px; color: #3ee0a4; }

/* hero visual: browser mock-up (pure HTML/CSS) */
.hg-hero-visual { position: relative; }
.hg-hero-visual:before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 28px; background: rgba(255, 255, 255, .07); transform: rotate(3deg); }
.hg-browser { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(3, 9, 30, .55); color: var(--lg-text); }
.hg-browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #eef2f9; border-bottom: 1px solid var(--lg-border); }
.hg-dot { width: 11px; height: 11px; border-radius: 50%; background: #ccd5e6; }
.hg-dot:nth-child(1) { background: #ff6b6b; } .hg-dot:nth-child(2) { background: #ffc24b; } .hg-dot:nth-child(3) { background: #3ed598; }
.hg-url { margin-left: 12px; flex: 1; min-width: 0; padding: 6px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--lg-border); color: var(--lg-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-url i { color: var(--lg-success); margin-right: 6px; font-size: 11px; }
.hg-browser-body { padding: 22px; }
.hg-status { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; border-radius: 12px; background: var(--lg-primary-soft); }
.hg-status-icon { flex: 0 0 auto; width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 12px; background: var(--lg-primary); color: #fff; font-size: 19px; }
.hg-status > div:nth-child(2) { flex: 1; min-width: 0; }
.hg-status strong { display: block; font-size: 15px; }
.hg-status span:not(.hg-badge) { color: var(--lg-muted); font-size: 13px; }
.hg-rows { margin: 0; padding: 0; list-style: none; }
.hg-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--lg-border); font-size: 14px; font-weight: 550; }
.hg-rows li:last-child { border-bottom: 0; }
.hg-rows li span i { width: 22px; color: var(--lg-muted); }
.hg-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; font-style: normal; white-space: nowrap; }
.hg-badge-ok { background: #def7ee; color: #0f8c61; }
.hg-badge-muted { background: #eef1f6; color: var(--lg-muted); }

/* ---------- generic sections ---------- */
.hg-section { padding: 92px 0; }
.hg-section-tint { background: #fff; border-top: 1px solid var(--lg-border); border-bottom: 1px solid var(--lg-border); }
.hg-narrow { max-width: 860px; }
.hg-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
body.lg-theme .hg-head h2 { margin: 0 0 12px; font-size: clamp(27px, 3.6vw, 40px); font-weight: 720; line-height: 1.15; letter-spacing: -.025em; }
.hg-head p { margin: 0; font-size: 17px; color: var(--lg-muted); }

.hg-grid { display: grid; gap: 22px; }
.hg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hg-card { padding: 30px; background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: 14px; box-shadow: var(--lg-shadow); }
.hg-icon { width: 52px; height: 52px; line-height: 52px; margin-bottom: 18px; text-align: center; border-radius: 14px; background: var(--lg-primary-soft); color: var(--lg-primary); font-size: 21px; }
body.lg-theme .hg-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 680; }
.hg-card p { margin: 0; color: var(--lg-muted); line-height: 1.65; }
.hg-news h3 a { color: var(--lg-text); }
.hg-news .hg-badge { margin-bottom: 12px; }
.hg-more { display: inline-block; margin-top: 14px; font-weight: 650; }

/* ---------- steps ---------- */
.hg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hg-steps li { padding: 30px; border: 1px solid var(--lg-border); border-radius: 14px; background: #f8fafd; }
.hg-step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--lg-primary); color: #fff; font-weight: 700; }
body.lg-theme .hg-steps h3 { margin: 0 0 8px; font-size: 18px; font-weight: 680; }
.hg-steps p { margin: 0; color: var(--lg-muted); }

/* ---------- plans ---------- */
.hg-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.hg-plan { position: relative; display: flex; flex-direction: column; padding: 36px; background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: 18px; box-shadow: var(--lg-shadow); }
.hg-plan-featured { border: 2px solid var(--lg-primary); box-shadow: 0 18px 50px rgba(62, 99, 245, .16); }
.hg-plan-tag { align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--lg-primary-soft); color: var(--lg-primary); font-size: 12.5px; font-weight: 700; }
.hg-plan-tag-muted { background: #eef1f6; color: var(--lg-muted); }
body.lg-theme .hg-plan h3 { margin: 0 0 6px; font-size: 24px; font-weight: 720; }
.hg-price { margin: 0 0 22px; color: var(--lg-muted); }
.hg-price strong { font-size: 40px; font-weight: 760; letter-spacing: -.03em; color: var(--lg-text); }
.hg-price span { margin-left: 4px; font-size: 14px; }
.hg-plan ul { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.hg-plan li { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; }
.hg-plan li i { margin-top: 5px; color: var(--lg-success); font-size: 13px; }

/* ---------- domain search ---------- */
.hg-domain { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
body.lg-theme .hg-domain h2 { margin: 0 0 10px; font-size: clamp(25px, 3.2vw, 34px); font-weight: 720; letter-spacing: -.02em; }
.hg-domain p { margin: 0; color: var(--lg-muted); font-size: 16.5px; }
.hg-domain-form .input-group { width: 100%; box-shadow: var(--lg-shadow); border-radius: 12px; }
.hg-domain-form .form-control { height: 56px; padding: 0 20px; font-size: 16px; border-radius: 12px 0 0 12px; }
.hg-domain-form .input-group-btn .btn { height: 56px; padding: 0 24px; border: 0; font-weight: 650; }
.hg-domain-form .btn.search { background: var(--lg-primary); color: #fff; }
.hg-domain-form .btn.search:last-child { border-radius: 0 12px 12px 0; }
.hg-domain-form .btn.transfer { background: #1b2b55; color: #fff; border-radius: 0 12px 12px 0; }

/* ---------- FAQ ---------- */
.hg-faq details { margin-bottom: 12px; background: var(--lg-surface); border: 1px solid var(--lg-border); border-radius: 12px; box-shadow: var(--lg-shadow); }
.hg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 650; font-size: 16px; cursor: pointer; list-style: none; }
.hg-faq summary::-webkit-details-marker { display: none; }
.hg-faq summary:after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--lg-primary-soft); color: var(--lg-primary); font-size: 20px; font-weight: 500; transition: transform .2s ease; }
.hg-faq details[open] summary:after { transform: rotate(45deg); }
.hg-faq details p { margin: 0; padding: 0 22px 20px; color: var(--lg-muted); line-height: 1.7; }

/* ---------- final call to action ---------- */
.hg-final { padding: 84px 0; text-align: center; color: #fff; background: radial-gradient(700px 320px at 50% 0%, rgba(122, 99, 246, .5), transparent 65%), linear-gradient(160deg, #0c1736, #1b2f78); }
body.lg-theme .hg-final h2 { margin: 0 0 10px; color: #fff; font-size: clamp(27px, 3.8vw, 42px); font-weight: 740; letter-spacing: -.025em; }
.hg-final p { margin: 0 0 28px; font-size: 17.5px; color: #c9d3f2; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .hg-hero { padding: 56px 0 64px; }
  .hg-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hg-hero-visual { max-width: 520px; }
  .hg-section { padding: 68px 0; }
  .hg-grid-3, .hg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hg-domain { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .hg-lead { font-size: 16.5px; }
  .hg-cta .hg-btn { flex: 1 1 100%; }
  .hg-hero-visual:before { display: none; }
  .hg-browser-body { padding: 16px; }
  .hg-head { margin-bottom: 34px; }
  .hg-grid-3, .hg-steps, .hg-plans { grid-template-columns: 1fr; }
  .hg-card, .hg-steps li { padding: 24px; }
  .hg-plan { padding: 28px 24px; }
  .hg-final { padding: 64px 0; }
  .hg-final .hg-btn { width: 100%; }
}
@media (max-width: 575px) {
  .hg-domain-form .input-group { display: block; box-shadow: none; }
  .hg-domain-form .input-group > * { display: block; width: 100%; }
  .hg-domain-form .form-control { border-radius: 12px; margin-bottom: 10px; box-shadow: var(--lg-shadow); }
  .hg-domain-form .input-group-btn { display: flex; gap: 10px; }
  .hg-domain-form .input-group-btn .btn { flex: 1; border-radius: 12px !important; }
  .hg-faq summary { padding: 16px 16px; font-size: 15.5px; }
  .hg-faq details p { padding: 0 16px 18px; }
}
