/* Fright Night landing page. Palette and type as on the watch (DESIGN.md):
   black like the AMOLED screen, pumpkin orange, ghost white, blood red,
   muted purple; Creepster for the dripping titles, Roboto Condensed for
   the rest. */

@font-face {
  font-family: "Creepster";
  src: url("/fonts/creepster.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F;
  font-display: swap;
}
/* Creepster has no Cyrillic: these letters come from Rubik Wet Paint,
   loaded only on pages that use them (site/uk/). */
@font-face {
  font-family: "Creepster";
  src: url("/fonts/drip-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-04FF, U+2116;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/roboto-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/roboto-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --orange: #FF7A1A;
  --white: #F2F2F2;
  --red: #D7263D;
  --purple: #7B56AE;
  --grey: #9A9A9A;
  --card: #1C1C1C;
  --line: #333;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: var(--white);
  font: 400 19px/1.4 "Roboto Condensed", "Arial Narrow", sans-serif;
  overflow-x: hidden;
  position: relative;
  /* Nothing on the page selects or drags: it is a poster, not a document. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; -webkit-user-drag: none; }
a { color: inherit; }

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  position: relative;
}

/* Titles */
.drip, .plain {
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 32px;
}
.drip {
  font-family: "Creepster", "Roboto Condensed", sans-serif;
  color: var(--purple);
  font-size: clamp(40px, 4.4vw, 60px);
  letter-spacing: 0.01em;
}
.plain {
  font: 700 clamp(36px, 3.6vw, 50px) "Roboto Condensed", sans-serif;
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #ff8e3d; transform: translateY(-1px); }
.btn-sm { font-size: 18px; padding: 9px 22px; }
.link { font-weight: 700; font-size: 20px; text-underline-offset: 4px; }
.link:hover { color: var(--orange); }

/* Header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 26px;
  text-decoration: none;
}
.brand img { border-radius: 10px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a:not(.btn) { text-decoration: none; font-size: 19px; }
nav a:not(.btn):hover { color: var(--orange); }

/* Round watch frames around the real screen captures */
.watch {
  border-radius: 50%;
  background: #000;
  border: 10px solid #3a3a3a;
  box-shadow: 0 0 0 3px #1a1a1a, 0 0 0 4px #4a4a4a;
  overflow: hidden;
  aspect-ratio: 1;
}
.watch img { width: 100%; height: 100%; }
.watch-xl { width: min(440px, 80vw); border-width: 16px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 20px 0 0;
}
.hero h1 { font-size: clamp(48px, 6.2vw, 92px); margin-bottom: 26px; }
.lead { font-size: clamp(21px, 2vw, 28px); margin: 0 0 34px; max-width: 30em; }
.cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; padding: 40px 0 50px; }

.deco { position: absolute; pointer-events: none; }
.bat { width: 110px; }
.b1 { top: -10px; left: -10px; width: 90px; }
.b2 { top: 0; right: 40px; width: 120px; transform: rotate(-8deg); }
.b3 { top: 80px; right: -20px; width: 140px; transform: rotate(10deg); }
.g1 { bottom: 70px; right: 0; width: 70px; }
.g2 { bottom: 70px; left: 10px; width: 60px; }
.p1 { bottom: 10px; left: 50px; width: 74px; }
.jack { bottom: -10px; right: 30px; width: 110px; }

@media (prefers-reduced-motion: no-preference) {
  .bat { animation: flap 3.2s ease-in-out infinite; }
  .b2 { animation-delay: -1.1s; }
  .b3 { animation-delay: -2s; }
  .ghost { animation: float 4s ease-in-out infinite; }
  @keyframes flap { 50% { translate: 0 -10px; } }
  @keyframes float { 50% { translate: 0 -8px; } }
}

section { margin-bottom: 90px; }

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.steps .watch { width: min(290px, 70vw); margin: 0 auto 28px; }
.steps h3 {
  font-size: 30px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.steps h3 span { color: var(--orange); margin-right: 8px; }
.steps p { margin: 0; color: #ddd; }

/* Ranks */
.ranks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ranks li {
  background: var(--card);
  border-radius: 14px;
  padding: 28px 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ranks img { height: 130px; width: auto; margin-bottom: 18px; object-fit: contain; }
.ranks b {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 10px;
}
.ranks em { font-style: normal; font-weight: 700; font-size: 34px; }
.g3 { right: -90px; bottom: -40px; width: 50px; }

/* Two columns: evidence + made for, plans + FAQ */
.duo {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: start;
}
.evidence { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; }
.evidence .watch { width: 240px; }
.evidence p { margin: 0; font-size: 21px; }
.evidence .drip { margin-bottom: 18px; }

.tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tiles li {
  background: var(--card);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  font-size: 17px;
  line-height: 1.15;
}
.tiles svg { width: 54px; height: 54px; display: block; margin: 0 auto 10px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan {
  background: var(--card);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
}
.plan h3 { font-size: 32px; margin: 0 0 12px; text-transform: uppercase; }
.plan p { margin: 0; color: #ddd; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 21px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}
summary::after { content: "⌄"; margin-left: auto; color: var(--orange); font-size: 24px; line-height: .6; }
details[open] summary::before { content: "−"; }
details[open] summary::after { transform: rotate(180deg); }
details p { margin: 0 0 18px 40px; color: #ccc; }
.p2 { right: -100px; top: -40px; width: 70px; }

/* Footer */
footer { text-align: center; padding: 10px 0 70px; color: var(--grey); font-size: 16px; }
footer p { margin: 6px 0; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; }
.langs a { color: var(--grey); text-decoration: none; }
.langs a:hover, .langs a[aria-current] { color: var(--orange); }
.divider { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 28px; }
.divider img { width: 22px; }
.divider .big { width: 36px; }

/* Corner cobwebs */
.web { position: absolute; width: 200px; pointer-events: none; opacity: .85; }
.web-tl { top: 0; left: 0; }
.web-tr { top: 0; right: 0; transform: scaleX(-1); }
/* The top two stay in the window's corners while the page scrolls, over
   the content (they don't take clicks). */
.web-tl, .web-tr { position: fixed; z-index: 5; }
.web-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.web-br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* Share the night */
.share-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.share-art { position: relative; padding: 0 0 70px; }
.share-art .watch { width: min(300px, 64vw); }
.share-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(123, 86, 174, .45);
  transform: rotate(-3deg);
}
.share-copy p { font-size: 21px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; color: #ddd; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: url("/img/skull.webp") center / contain no-repeat;
}
details p a { color: var(--orange); }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero, .duo, .share-sec { grid-template-columns: 1fr; }
  .share-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero { text-align: center; padding-top: 10px; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .g3, .p2 { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  nav a:not(.btn) { display: none; }
  .brand { font-size: 21px; white-space: nowrap; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .btn-sm { font-size: 15px; padding: 8px 14px; }
  footer { padding-bottom: 110px; }
  .steps { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .evidence { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .share-copy { text-align: center; }
  .ticks { display: inline-block; text-align: left; }
  .web { width: 100px; }
  .bat { width: 80px; }
  .b3 { width: 100px; }
  .jack { width: 84px; }
}
