/*
 * hndhosting.com holding page. The portal's brand tokens (resources/css/hnd-tokens.css and
 * hnd-tokens-light.css), dark by default and light when the device asks for it. No fonts,
 * scripts or third-party requests.
 */
:root {
  color-scheme: dark light;
  --ink: #000000;
  --panel: #080808;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.24);
  --fg: #ffffff;
  --muted: #a3a3a3;
  --brand: #dd1e4b;
  --brand-press: #c41a43;
  --brand-text: #ff214f;
  --focus: #ffffff;
  --glow: rgb(221 30 75 / 0.16);
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #f5f5f5;
    --panel: #ffffff;
    --line: rgb(0 0 0 / 0.10);
    --line-strong: rgb(0 0 0 / 0.45);
    --fg: #171717;
    --muted: #5e5e5e;
    --brand-text: #c41a43;
    --focus: #171717;
    --glow: rgb(221 30 75 / 0.10);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  background-image: radial-gradient(48rem 32rem at 50% -12rem, var(--glow), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand svg { width: 36px; height: 36px; flex: none; color: var(--fg); }

.brand-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }

.brand-by { display: block; font-size: 0.75rem; line-height: 1rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--brand); color: #ffffff; }
.btn-primary:hover { background: var(--brand-press); }

.btn-secondary { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-secondary:hover { border-color: var(--fg); }

/* Main */
main { padding-top: 12vh; padding-bottom: 64px; }

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
}

h1 {
  margin: 12px 0 0;
  max-width: 32rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  margin: 16px 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }

.card p { margin: 8px 0 0; color: var(--muted); }

.card .btn { margin-top: auto; }

.card p:last-of-type { margin-bottom: 24px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

/* Footer */
footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--muted);
}

footer p { margin: 0 0 8px; }

footer a { text-underline-offset: 2px; }

@media (max-width: 420px) {
  .top .btn { padding: 10px 14px; }
  .brand-by { display: none; }
}

/* Text pages (privacy/) */
.doc { max-width: 44rem; padding-top: 6vh; }
.doc h2 { margin: 40px 0 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.doc p, .doc li { line-height: 1.65; }
.doc p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 1.25rem; }
.doc li + li { margin-top: 8px; }
