/* Hosting page + homepage hosting block. Uses the site tokens from app.css
   (teal --primary / --brand-deep, --bg-elev, --border, --radius-*), so light
   and dark themes follow automatically. */

.hosting-hero{ padding:160px 0 60px; border-bottom:1px solid var(--border); }
.hosting-hero .eyebrow{ margin-bottom:14px; }
.hosting-hero h1{ font-size:clamp(32px,4.6vw,52px); line-height:1.08; font-weight:650; letter-spacing:-.02em; max-width:760px; }
.hosting-hero .lead{ margin-top:16px; font-size:17px; line-height:1.65; color:var(--text-muted); max-width:640px; }
.hosting-points{ display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:24px; padding:0; list-style:none; }
.hosting-points li{ display:inline-flex; align-items:center; gap:8px; font-size:14.5px; font-weight:600; color:var(--text); }
.hosting-points svg{ width:16px; height:16px; color:var(--primary); flex:none; }
.hosting-domain-chip{
  display:inline-flex; align-items:center; gap:8px; margin-top:22px; padding:8px 14px;
  border:1px solid color-mix(in srgb, var(--primary) 40%, transparent); background:var(--primary-soft);
  color:var(--text); border-radius:var(--radius-sm); font-size:14px; font-weight:600;
}

.hosting-plans-section{ padding:56px 0 24px; scroll-margin-top:90px; }

/* billing period switch */
.hosting-cycle-switch{
  display:inline-flex; gap:4px; padding:4px; border:1px solid var(--border); border-radius:var(--radius-sm);
  background:var(--bg-elev-2); margin-bottom:28px;
}
.hosting-cycle-switch button{
  border:0; background:transparent; color:var(--text-muted); font:inherit; font-size:14px; font-weight:600;
  padding:9px 18px; border-radius:var(--radius-sm); cursor:pointer; display:inline-flex; align-items:center; gap:8px;
}
.hosting-cycle-switch button[aria-pressed="true"]{ background:var(--brand-deep); color:#fff; }
.hosting-cycle-switch .save-tag{
  font-size:11.5px; font-weight:700; padding:2px 7px; border-radius:var(--radius-sm);
  background:var(--primary-soft); color:var(--primary);
}
.hosting-cycle-switch button[aria-pressed="true"] .save-tag{ background:rgba(255,255,255,.18); color:#fff; }

.hosting-plan-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; align-items:stretch; }
.hosting-plan-card{
  position:relative; display:flex; flex-direction:column; padding:28px 26px 24px;
  background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius-lg);
}
.hosting-plan-card.is-featured{ border-color:var(--primary); box-shadow:0 0 0 1px var(--primary) inset; }
.hosting-plan-badge{
  position:absolute; top:-12px; left:24px; padding:4px 10px; border-radius:var(--radius-sm);
  background:var(--brand-deep); color:#fff; font-size:12px; font-weight:700; letter-spacing:.01em;
}
.hosting-plan-name{ font-size:20px; font-weight:650; letter-spacing:-.01em; }
.hosting-plan-price{ display:flex; align-items:baseline; gap:6px; margin-top:16px; }
.hosting-plan-price .amount{ font-size:38px; font-weight:700; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.hosting-plan-price .per{ color:var(--text-muted); font-size:14.5px; }
.hosting-plan-billed{ margin-top:8px; min-height:22px; font-size:13.5px; color:var(--text-muted); display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.hosting-plan-billed .save{ font-weight:700; color:var(--primary); }
.hosting-plan-features{ list-style:none; padding:0; margin:22px 0 24px; display:grid; gap:11px; flex:1; }
.hosting-plan-features li{ display:flex; gap:10px; font-size:14.5px; line-height:1.45; }
.hosting-plan-features svg{ width:17px; height:17px; flex:none; margin-top:1px; color:var(--primary); }
.hosting-plan-card .btn{ justify-content:center; width:100%; }
.hosting-legal-note{ margin-top:18px; font-size:13px; color:var(--text-faint); }
.hosting-legal-note a{ color:var(--text-muted); text-decoration:underline; text-underline-offset:2px; }
.hosting-domain-note{ margin-top:6px; font-size:13px; color:var(--text-faint); }

/* comparison table */
.hosting-compare{ padding:56px 0 24px; }
.hosting-compare h2, .hosting-faq h2{ font-size:clamp(24px,3vw,34px); font-weight:650; letter-spacing:-.01em; margin-bottom:22px; }
.hosting-compare-scroll{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--bg-elev); }
.hosting-compare table{ width:100%; border-collapse:collapse; min-width:620px; }
.hosting-compare th, .hosting-compare td{ padding:14px 18px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; font-size:14.5px; }
.hosting-compare tr:last-child td{ border-bottom:0; }
.hosting-compare thead th{ font-size:15px; font-weight:650; background:var(--bg-elev-2); }
.hosting-compare tbody th{ color:var(--text-muted); font-weight:600; width:24%; }
.hosting-compare .num{ font-variant-numeric:tabular-nums; font-weight:600; }
.hosting-compare ul{ margin:0; padding-left:18px; display:grid; gap:6px; }

/* free hosting banner */
.hosting-free-banner{
  margin:56px 0 0; padding:28px 30px; border-radius:var(--radius-lg);
  border:1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); background:var(--primary-soft);
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.hosting-free-banner h3{ font-size:20px; font-weight:650; letter-spacing:-.01em; }
.hosting-free-banner p{ margin-top:6px; color:var(--text-muted); font-size:15px; max-width:620px; }

.hosting-faq{ padding:64px 0 24px; }

/* homepage block */
.home-hosting{ padding:80px 0; border-top:1px solid var(--border); }
.home-hosting-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; margin-top:8px; }
.home-hosting-card{
  display:flex; flex-direction:column; gap:6px; padding:20px 22px; background:var(--bg-elev);
  border:1px solid var(--border); border-radius:var(--radius-lg); color:inherit; text-decoration:none;
  transition:border-color .15s ease;
}
.home-hosting-card:hover{ border-color:var(--primary); }
.home-hosting-card.is-featured{ border-color:var(--primary); }
.home-hosting-card .name{ font-weight:650; font-size:17px; display:flex; align-items:center; gap:8px; }
.home-hosting-card .tag{ font-size:11.5px; font-weight:700; padding:2px 8px; border-radius:var(--radius-sm); background:var(--primary-soft); color:var(--primary); }
.home-hosting-card .from{ font-size:15px; color:var(--text-muted); }
.home-hosting-card .from strong{ color:var(--text); font-size:20px; font-variant-numeric:tabular-nums; }
.home-hosting-card .feat{ font-size:13.5px; color:var(--text-faint); }
.home-hosting-free{ margin-top:22px; display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--text-muted); }
.home-hosting-free svg{ width:18px; height:18px; color:var(--primary); flex:none; }

@media (max-width:640px){
  .hosting-hero{ padding:120px 0 36px; }
  .hosting-cycle-switch{ display:flex; width:100%; }
  .hosting-cycle-switch button{ flex:1; justify-content:center; padding:9px 8px; }
  .hosting-free-banner{ padding:22px; }
  .hosting-order{ padding:120px 0 50px; }
  .hosting-fake{ margin:120px auto 40px; padding:20px; }
}

/* order form / payment result */
.hosting-order{ padding:150px 0 80px; }
.hosting-order h1{ font-size:clamp(26px,3.4vw,38px); font-weight:650; letter-spacing:-.01em; }
.hosting-order .sub{ margin-top:8px; color:var(--text-muted); }
.hosting-order-grid{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:24px; margin-top:28px; align-items:start; }
@media (max-width:900px){ .hosting-order-grid{ grid-template-columns:1fr; } }
.hosting-box{ background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; }
.hosting-box h2{ font-size:16px; font-weight:650; margin-bottom:14px; }
.hosting-cycle-options{ display:grid; gap:10px; }
.hosting-cycle-option{
  display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--border);
  border-radius:var(--radius-md); cursor:pointer; background:var(--bg);
}
.hosting-cycle-option:has(input:checked){ border-color:var(--primary); box-shadow:0 0 0 1px var(--primary) inset; }
.hosting-cycle-option input{ accent-color:var(--brand-deep); width:17px; height:17px; }
.hosting-cycle-option .label{ font-weight:650; flex:1; }
.hosting-cycle-option .price{ font-variant-numeric:tabular-nums; font-weight:650; text-align:right; }
.hosting-cycle-option .price small{ display:block; font-weight:500; color:var(--text-muted); font-size:12.5px; }
.hosting-field{ margin-top:22px; }
.hosting-field label{ display:block; font-weight:600; font-size:14px; margin-bottom:8px; }
.hosting-field input[type=text]{
  width:100%; padding:12px 14px; border:1px solid var(--border-strong); border-radius:var(--radius-md);
  background:var(--bg); color:var(--text); font:inherit; font-size:15px;
}
.hosting-field input[type=text]:focus{ outline:none; border-color:var(--primary); }
.hosting-field .hint{ margin-top:6px; font-size:13px; color:var(--text-faint); }
.hosting-field .error, .hosting-error{ margin-top:8px; font-size:13.5px; color:#dc2626; }
.hosting-check{ display:flex; gap:10px; align-items:flex-start; margin-top:14px; font-size:14px; line-height:1.5; }
.hosting-check input{ margin-top:3px; accent-color:var(--brand-deep); width:16px; height:16px; flex:none; }
.hosting-check a{ color:var(--primary); text-decoration:underline; text-underline-offset:2px; }
.hosting-summary dl{ display:grid; grid-template-columns:1fr auto; gap:10px 12px; font-size:14.5px; }
.hosting-summary dt{ color:var(--text-muted); }
.hosting-summary dd{ margin:0; text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
.hosting-summary .total{ margin-top:16px; padding-top:16px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:baseline; }
.hosting-summary .total strong{ font-size:26px; font-variant-numeric:tabular-nums; }
.hosting-summary .btn{ width:100%; justify-content:center; margin-top:18px; }
.hosting-result{ max-width:640px; margin:0 auto; text-align:center; padding:160px 0 80px; }
.hosting-result .icon{ width:64px; height:64px; border-radius:999px; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; }
.hosting-result .icon svg{ width:30px; height:30px; }
.hosting-result .icon.ok{ background:var(--primary-soft); color:var(--primary); }
.hosting-result .icon.wait{ background:var(--bg-elev-2); color:var(--text-muted); }
.hosting-result .icon.bad{ background:rgba(220,38,38,.1); color:#dc2626; }
.hosting-result h1{ font-size:clamp(24px,3vw,32px); font-weight:650; }
.hosting-result p{ margin-top:10px; color:var(--text-muted); line-height:1.6; }
.hosting-result .actions{ margin-top:26px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.hosting-result .meta{ margin-top:22px; font-size:13px; color:var(--text-faint); }
.hosting-fake{ max-width:520px; margin:160px auto 80px; padding:28px; border:2px dashed #d97706; border-radius:var(--radius-lg); background:var(--bg-elev); }
.hosting-fake h1{ font-size:20px; font-weight:650; }
.hosting-fake .actions{ display:grid; gap:10px; margin-top:20px; }
.hosting-fake button{ width:100%; justify-content:center; }

/* Domain Search Bar in Hosting page */
.hosting-domain-bar-section {
  padding: 0 0 40px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.hosting-domain-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}
.hosting-domain-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hosting-domain-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hosting-domain-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hosting-domain-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.hosting-domain-form {
  margin-bottom: 14px;
}
.hosting-domain-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-elev-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 16px;
  gap: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.hosting-domain-input-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.hosting-search-ico {
  color: var(--text-muted);
  flex-shrink: 0;
}
.hosting-domain-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  outline: none;
  min-width: 140px;
}
.hosting-domain-input::placeholder {
  color: var(--text-muted);
  opacity: .7;
}
.hosting-tld-select-wrap {
  position: relative;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: border-color .18s ease;
}
.hosting-tld-select-wrap:hover {
  border-color: var(--primary);
}
.hosting-tld-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  height: 100%;
  padding: 0 28px 0 14px;
  margin: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 40px;
  box-sizing: border-box;
}
.hosting-tld-select option {
  background: var(--bg-elev);
  color: var(--text);
}
.hosting-tld-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.hosting-domain-submit-btn {
  height: 42px;
  padding: 0 22px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hosting-domain-tlds {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.hosting-tlds-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}
.tld-tag {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.tld-tag:hover, .tld-tag.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.hosting-domain-result {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  animation: fadeInDomain .2s ease-out;
}
@keyframes fadeInDomain { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.hosting-domain-result.available {
  background: color-mix(in srgb, #10B981 10%, var(--bg-elev));
  border-color: color-mix(in srgb, #10B981 40%, transparent);
}
.hosting-domain-result.taken {
  background: color-mix(in srgb, #EF4444 8%, var(--bg-elev));
  border-color: color-mix(in srgb, #EF4444 30%, transparent);
}
.hosting-domain-result.info {
  background: color-mix(in srgb, #3B82F6 10%, var(--bg-elev));
  border-color: color-mix(in srgb, #3B82F6 40%, transparent);
}
.hdr-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hdr-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.hdr-icon-avail { color: #10B981; }
.hdr-icon-taken { color: #EF4444; }
.hdr-domain-name { font-weight: 700; color: var(--text); }
.hdr-alternatives {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.hdr-alts-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hdr-alts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hdr-alt-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.hdr-alt-item .btn-alt-pick {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
.hdr-alt-item .btn-alt-pick:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hosting-domain-input-box { flex-wrap: wrap; }
  .hosting-domain-submit-btn { width: 100%; justify-content: center; }
  .hosting-domain-card { padding: 22px 18px; }
  .hdr-flex { flex-direction: column; align-items: flex-start; }
  .hdr-flex .btn { width: 100%; justify-content: center; }
}
