/* HopFox VPN · site. Colors from palette.json, type Inter (OFL). No framework. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --orange: #FF7547;
  --orange-hover: #FF916D;
  --deep: #B8401B;
  --night: #191323;
  --night-2: #1F1829;
  --ink: #251C37;
  --cream: #FFF6EE;
  --tail: #FFB176;
  --muted: #9B90A8;
  --dim: #6E6380;
  --line: rgba(255, 246, 238, 0.10);
  --card: rgba(255, 246, 238, 0.05);
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--night);
  color: var(--cream);
  font: 400 16px/1.55 Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--orange); color: var(--ink); }

/* ---------- header ---------- */

.top {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img { width: 28px; height: 28px; }

.brand small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-left: 2px;
  position: relative;
  top: -6px;
}

.top nav { display: flex; gap: 28px; }

.top nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.top nav a:hover, .top nav a[aria-current="page"] { color: var(--cream); }

/* ---------- home ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 24px 40px;
}

.fox {
  margin: 0;
  width: min(320px, 72vw);
}

.fox img { width: 100%; height: auto; }

h1 {
  font-size: clamp(56px, 9.5vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 8px 0 22px;
}

h1 em { font-style: normal; color: var(--orange); }

.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  margin: 0 0 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 19px 36px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.button:hover { background: var(--orange-hover); }
.button:active { transform: scale(0.98); }
.button.small { font-size: 15px; padding: 13px 22px; }
.button.ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}
.button.ghost:hover { box-shadow: inset 0 0 0 1px var(--orange); color: var(--orange); }

.cta { margin: 0; }

.also {
  color: var(--muted);
  font-size: 14px;
  margin: 20px 0 0;
}

.also a {
  color: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}

.also a:hover { color: var(--orange); border-color: var(--orange); }
.also a[hidden] { display: none; }

/* ---------- flags strip ---------- */

.strip {
  text-align: center;
  padding: 0 24px 60px;
}

.flags {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
}

.flags img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 246, 238, 0.14);
  transition: transform 0.15s;
}

.flags a:hover img { transform: translateY(-4px); }

.muted { color: var(--muted); font-size: 14px; margin: 0; }
.muted a { color: var(--cream); border-bottom: 1px solid var(--line); }
.muted a:hover { color: var(--orange); border-color: var(--orange); }
.dim { color: var(--dim); }

.fox-small { width: 128px; margin-bottom: 8px; }
.h1-small { font-size: clamp(36px, 6vw, 56px); }

/* ---------- about + faq (home, below the fold) ---------- */

.about {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 32px 72px;
  border-top: 1px solid var(--line);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 40px;
  padding-top: 40px;
}

.cols h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.cols p { margin: 0; color: var(--muted); font-size: 15px; }

.faq-title {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 56px 0 8px;
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--orange);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; max-width: 62ch; }

@media (max-width: 640px) {
  .about { padding: 16px 20px 56px; }
}

/* ---------- inner pages ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 32px 72px;
}

.page h1 {
  font-size: clamp(40px, 6vw, 60px);
  margin: 12px 0 14px;
}

.page h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
}

.page p { max-width: 62ch; }
.page .lede { margin-bottom: 40px; }

.platforms {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.platforms li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.platforms li.current { position: relative; }

.platforms li.current::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--orange);
}

.platforms h2 { margin: 0 0 4px; font-size: 20px; }
.platforms p { margin: 0; color: var(--muted); font-size: 14px; }
.platforms .button { white-space: nowrap; }

.shot {
  margin: 56px 0 8px;
  text-align: center;
}

.shot img {
  width: min(400px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--line);
}

.shot figcaption { color: var(--dim); font-size: 13px; margin-top: 14px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}

.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 22px;
  background: var(--card);
}

.plan.featured { border-color: rgba(255, 117, 71, 0.5); background: rgba(255, 117, 71, 0.08); }
.plan h2 { margin: 0 0 8px; font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.plan .price span { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.plan .note { margin: 6px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; color: var(--cream); font-size: 15px; }
.plan li { padding: 6px 0; border-top: 1px solid var(--line); }

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--orange);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
}

.locations {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.locations li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.locations img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.locations .city { font-weight: 600; }
.locations .country { color: var(--muted); font-size: 14px; }
.locations .tag {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.legal p { color: var(--muted); }
.legal h2 { font-size: 18px; }

/* ---------- download: steps and checksum ---------- */

.steps { padding-left: 22px; margin: 0; color: var(--muted); max-width: 62ch; }
.steps li { margin: 8px 0; }
.steps strong { color: var(--cream); font-weight: 600; }
.sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---------- support: form, tickets, thread ---------- */

.form { display: grid; gap: 14px; max-width: 600px; margin: 8px 0 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--night-2);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  width: 100%;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { min-height: 140px; resize: vertical; }
.field .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }
.form .hint { color: var(--dim); font-size: 13px; margin: 0; }
.form .error { color: #F26D5B; font-size: 14px; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--cream); border-bottom: 1px solid var(--line); cursor: pointer; }
.linkbtn:hover { color: var(--orange); border-color: var(--orange); }

.ticketbox {
  border: 1px solid rgba(255, 117, 71, 0.5);
  background: rgba(255, 117, 71, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  max-width: 600px;
  margin-top: 8px;
}
.ticketbox h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.ticketbox p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.ticketbox .link { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--cream); word-break: break-all; margin: 8px 0 16px; }
.ticketbox .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.pill.open { background: rgba(255, 117, 71, 0.15); color: var(--orange); }
.pill.answered { background: rgba(108, 203, 143, 0.15); color: #6CCB8F; }
.pill.closed { background: rgba(155, 144, 168, 0.15); color: var(--muted); }

.tickets { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); max-width: 600px; }
.tickets li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tickets .num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); font-size: 13px; }
.tickets a { flex: 1; font-weight: 600; }
.tickets a:hover { color: var(--orange); }

.thread-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.thread-head .num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.thread { display: grid; gap: 12px; max-width: 680px; margin: 28px 0 36px; }
.msg { border-radius: 18px; padding: 14px 18px; max-width: 88%; }
.msg.user { background: var(--card); border: 1px solid var(--line); justify-self: end; border-bottom-right-radius: 6px; }
.msg.support { background: rgba(255, 117, 71, 0.10); border: 1px solid rgba(255, 117, 71, 0.35); justify-self: start; border-bottom-left-radius: 6px; }
.msg p { margin: 0; white-space: pre-wrap; font-size: 15px; max-width: none; }
.msg .who { font-size: 12px; color: var(--dim); margin: 0 0 6px; white-space: normal; }

@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
}

/* ---------- footer ---------- */

footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  font-size: 13px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { color: var(--muted); transition: color 0.15s; }
footer nav a:hover { color: var(--cream); }

@media (max-width: 640px) {
  .top { padding: 18px 20px; }
  .top nav { gap: 18px; }
  .page { padding: 16px 20px 56px; }
  .platforms li { flex-direction: column; align-items: flex-start; gap: 14px; }
  .platforms li.current::before { left: -12px; }
  footer { padding: 20px; }
}
