/* ============================================================
   HostDeck Store — Product Detail + Inner Pages
   ============================================================ */

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 400px at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 400px at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 640px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--text-faint); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); transition: color .18s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); opacity: .6; }
.breadcrumb .current { color: var(--text-2); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.pd-main h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 10px; }
.pd-cat { font-size: 14px; color: var(--text-faint); font-weight: 600; margin-bottom: 16px; }
.pd-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.pd-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 28px;
}
.pd-spec { display: flex; flex-direction: column; gap: 4px; }
.pd-spec svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 4px; }
.pd-spec .pd-spec-val { font-size: 16px; font-weight: 700; color: var(--text); }
.pd-spec .pd-spec-lbl { font-size: 12px; color: var(--text-faint); }
.pd-section { margin-bottom: 32px; }
.pd-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.pd-section p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.pd-spec-table { width: 100%; border-collapse: collapse; }
.pd-spec-table th, .pd-spec-table td {
  padding: 13px 16px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.pd-spec-table th { color: var(--text-muted); font-weight: 600; width: 40%; }
.pd-spec-table td { color: var(--text); font-weight: 500; }
.pd-spec-table tr:last-child th, .pd-spec-table tr:last-child td { border-bottom: none; }

/* price box (sticky) */
.pd-price-box {
  position: sticky; top: 90px;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.pd-price-box .pd-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--glow-soft); border: 1px solid var(--border); color: var(--accent); margin-bottom: 16px;
}
.pd-price-box .pd-price-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.pd-price-box .pd-now { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pd-price-box .pd-now .cur { font-size: 24px; vertical-align: top; color: var(--text-2); }
.pd-price-box .pd-was { font-size: 16px; color: var(--text-faint); text-decoration: line-through; }
.pd-price-box .pd-billing { font-size: 13.5px; color: var(--text-faint); margin-bottom: 22px; }
.pd-price-box .btn { margin-bottom: 10px; }
.pd-price-box .pd-includes { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.pd-price-box .pd-includes li {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2);
  padding: 7px 0;
}
.pd-price-box .pd-includes li svg { width: 17px; height: 17px; color: var(--highlight); flex-shrink: 0; }
.pd-price-box .pd-support { margin-top: 16px; font-size: 13px; color: var(--text-faint); display: flex; gap: 8px; align-items: flex-start; }
.pd-price-box .pd-support svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-price-box { position: static; order: -1; }
  .pd-specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .pd-specs { grid-template-columns: 1fr; } }

/* ---------- Guide / article ---------- */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.guide-toc {
  position: sticky; top: 90px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.guide-toc h4 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.guide-toc ul { display: flex; flex-direction: column; gap: 4px; }
.guide-toc a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.guide-toc a:hover { color: var(--text); background: var(--glow-soft); }
.guide-toc a.active { color: var(--accent); border-left-color: var(--accent); background: var(--glow-soft); }
.guide-content { max-width: 760px; }
.guide-content h2 {
  font-size: 24px; font-weight: 700; margin: 40px 0 14px;
  padding-top: 20px; scroll-margin-top: 90px;
}
.guide-content h2:first-child { margin-top: 0; padding-top: 0; }
.guide-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.guide-content p { font-size: 15.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.guide-content ul, .guide-content ol { margin: 0 0 18px 20px; }
.guide-content ul { list-style: disc; }
.guide-content ol { list-style: decimal; }
.guide-content li { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.guide-content code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-inset); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; color: var(--accent);
}
.guide-content pre {
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto;
  margin: 0 0 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--text-2);
}
.guide-content pre code { background: none; border: none; padding: 0; color: inherit; }
.guide-content .callout {
  background: var(--glow-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 18px;
  font-size: 14.5px; color: var(--text-2);
}
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .guide-toc { position: static; }
}

/* ---------- Policy pages ---------- */
.policy-content { max-width: 820px; }
.policy-content h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.policy-content p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.policy-content ul { margin: 0 0 16px 20px; list-style: disc; }
.policy-content li { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 7px; }
.policy-content .updated { font-size: 13px; color: var(--text-faint); margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14.5px; color: var(--text);
  transition: border-color .18s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }
.form-success {
  display: none; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--highlight) 12%, transparent);
  border: 1px solid var(--highlight); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; color: var(--text); margin-bottom: 18px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--highlight); flex-shrink: 0; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.contact-card .icon-chip { margin-bottom: 14px; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.contact-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--bg-card)), var(--bg-card));
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.contact-cta h3 { font-size: 18px; margin-bottom: 10px; }
.contact-cta p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-visual {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-inset); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.about-visual svg { width: 70%; height: auto; }
.about-copy h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 16px; }
.about-copy p { font-size: 15.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.about-value {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.about-value .icon-chip { margin-bottom: 14px; }
.about-value h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-value p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .about-values { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .nf-code {
  font-size: 120px; font-weight: 800; font-family: var(--mono); line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.notfound h1 { font-size: 28px; margin: 16px 0 12px; }
.notfound p { color: var(--text-muted); margin-bottom: 28px; }
