/* HzShift website. Plain CSS, no external files: light and dark follow the system setting. */

:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --link: #4f46e5;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --pill: #eef0fe;
  --pill-text: #4338ca;
  --glow: rgba(99, 102, 241, 0.16);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --surface: #141824;
    --text: #e7eaf3;
    --muted: #9ba4b8;
    --line: #262d3e;
    --link: #a5b4fc;
    --pill: #1c2140;
    --pill-text: #c7d2fe;
    --glow: rgba(124, 108, 246, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-head nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); }

/* Landing */
.hero {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 40px;
  background: radial-gradient(60% 70% at 50% 0%, var(--glow), transparent 70%);
}
.hero .logo { width: 88px; height: 88px; display: block; margin: 0 auto 22px; filter: drop-shadow(0 10px 24px rgba(99, 102, 241, 0.3)); }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin: 18px auto 0; max-width: 34em; font-size: clamp(18px, 2.6vw, 21px); color: var(--text); }
.lead + p { margin: 12px auto 0; max-width: 36em; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 28px 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-text);
  font-weight: 600;
  font-size: 15px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(120deg, var(--blue), var(--violet)); }

.rates {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.rates li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.rates .when { color: var(--muted); font-size: 14px; font-weight: 600; }
.rates .hz { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rates .hot .hz { background: linear-gradient(120deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rates .hot { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--blue), var(--violet)) border-box; }
.rates .note { color: var(--muted); font-size: 14px; }
.after-rates { text-align: center; color: var(--muted); font-size: 15px; margin: 16px 0 0; }

.private {
  margin-top: 48px; margin-bottom: 64px;
  text-align: center;
}
.private h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.private p { margin: 0 auto; max-width: 34em; color: var(--muted); }

/* Policy */
.doc { padding-top: 44px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(32px, 6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.doc .date { color: var(--muted); margin: 8px 0 24px; font-size: 15px; }
.doc h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 36px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--violet); }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: 14px;
  padding: 16px 20px 6px;
  box-shadow: var(--shadow);
  margin: 0 0 8px;
}
.summary h2 { margin-top: 0; font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.back { margin-top: 40px; font-size: 15px; }

/* 404 */
.missing { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.missing h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.02em; }
.missing p { color: var(--muted); margin: 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding-top: 22px; padding-bottom: 26px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 48px; padding-bottom: 32px; }
  .hero .logo { width: 72px; height: 72px; }
  .rates { grid-template-columns: 1fr; gap: 10px; }
  .rates li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 14px 16px; }
  .rates .when { flex: 1 1 100%; }
  .rates .hz { font-size: 28px; }
  .doc { padding-top: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s ease; }
}
