@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/*
  RIFT website. Dark like the app (app/src/main/java/com/rift/app/ui/theme/Theme.kt). Neo-brutal accents are kept for
  the things you act on: buttons, the film and the one call-to-action panel get thick borders and hard shadows.
  Everything else stays flat and quiet.
*/

:root {
  --bg: #121212;
  --surface: #1c1c21;
  --surface-2: #26262d;
  --line: #2f2f37;
  --text: #ffffff;
  --text-2: #b4b7be;
  --text-3: #8a8d96;
  --red: #e53935;
  --sky: #64b5f6;
  --ink: #121212;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-2); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; }
strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--text); color: var(--ink); padding: 8px 14px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- type ---------- */

h1, h2, h3, .h1, .h2, .h3 { color: var(--text); font-family: var(--display); font-weight: 800; text-wrap: balance; }
.h1 { font-size: clamp(54px, 7.4vw, 104px); line-height: 0.92; letter-spacing: -0.01em; }
.h2 { font-size: clamp(40px, 4.6vw, 62px); line-height: 0.95; letter-spacing: -0.005em; }
.h3 { font-size: 27px; line-height: 1.05; font-weight: 700; }
.lead { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; }
.small { font-size: 14px; color: var(--text-3); }

/* ---------- nav ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 800 30px/1 var(--display); letter-spacing: 0.02em; }
.brand svg { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1.5px #3c3c46; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- buttons and form ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 20px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--text); background: var(--red);
  height: 56px; padding: 0 26px;
  border: 2px solid var(--text); border-radius: 6px; box-shadow: 4px 4px 0 var(--text);
  cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--text); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--text); }
.btn.light { background: var(--text); color: var(--ink); box-shadow: 4px 4px 0 var(--red); border-color: var(--text); }
.btn.light:hover { box-shadow: 2px 2px 0 var(--red); }
.btn.sm { height: 42px; padding: 0 16px; font-size: 17px; box-shadow: 3px 3px 0 var(--text); }
.btn.sm:hover { box-shadow: 1px 1px 0 var(--text); transform: translate(2px, 2px); }
.btns { display: flex; flex-wrap: wrap; gap: 18px; }

.signup { display: flex; gap: 14px; width: min(540px, 100%); }
.signup input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  font: 500 18px var(--body); color: var(--text);
  background: var(--surface); border: 2px solid #3c3c46; border-radius: 6px;
}
.signup input::placeholder { color: var(--text-3); }
.signup input:focus { outline: none; border-color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; color: #ff6b64; font-weight: 600; font-size: 15px; }
.form-status:empty { display: none; }
.form-done { display: none; color: var(--text); font-weight: 600; font-size: 18px; }
.sent form, .sent .form-status { display: none; }
.sent .form-done { display: block; }

/* the pilot form, inside the white panel */
.cta.pilot { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px 56px; align-items: start; }
.cta .form-status { color: #c62828; }
.cta .form-done { color: var(--ink); font-size: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); }
.fields em { font-style: normal; font-weight: 400; color: #6b7079; }
.fields input, .fields textarea {
  width: 100%; font: 500 16px/1.4 var(--body); color: var(--ink);
  background: #f1f2f4; border: 2px solid #d3d6dc; border-radius: 6px; padding: 12px 14px;
}
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.fields textarea { resize: vertical; min-height: 96px; }
.fields .full { grid-column: 1 / -1; }
.fields .btn { margin-top: 6px; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 96px) 0; text-align: center; display: grid; justify-items: center; gap: 24px; }
.hero .h1 { max-width: 11em; }
.hero .lead { margin-bottom: 14px; }
.hero .small a { color: var(--text-2); }

/* the film */
.film { position: relative; margin-top: clamp(56px, 7vw, 88px); }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border: 3px solid var(--text); border-radius: 12px; box-shadow: 14px 14px 0 var(--red);
}
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 17px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink); background: var(--text); border: 0; border-radius: 6px; padding: 12px 16px; cursor: pointer;
}
.film-play::before { content: ""; border-left: 12px solid var(--red); border-block: 7px solid transparent; }
.film.playing .film-play { display: none; }

/* ---------- sections ---------- */

.section { padding-block: clamp(96px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 60px); max-width: 720px; }

/* three short points in a row */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); list-style: none; padding: 0; }
.points li { display: grid; gap: 12px; align-content: start; }
.points img { width: 104px; height: 104px; border-radius: 16px; margin-bottom: 10px; }
.points .n { color: var(--red); margin-right: 10px; }

/* game tiles */
.games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.game { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.game img { width: 100%; aspect-ratio: 1; }
.game div { padding: 16px 18px 20px; display: grid; gap: 6px; }
.game .h3 { font-size: 24px; }
.game p { font-size: 16px; line-height: 1.4; }

/* the plan */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.plan .section-head { margin-bottom: 0; }
.steps-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.steps-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.steps-list b { font: 800 26px/1.1 var(--display); color: var(--text); }
.steps-list li:first-child b { color: var(--red); }

/* the one loud panel */
.cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px;
  background: var(--text); color: #474b55; border: 3px solid var(--text); border-radius: 12px; box-shadow: 14px 14px 0 var(--red);
  padding: clamp(32px, 5vw, 56px);
}
.cta > div { display: grid; gap: 12px; max-width: 560px; }
.cta .h2 { color: var(--ink); }
.cta .btn { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.cta .btn:hover { box-shadow: 2px 2px 0 var(--ink); }
.cta .btn.light { background: var(--text); color: var(--ink); }

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

.foot { margin-top: clamp(96px, 11vw, 150px); border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px 48px; }
.wordmark { position: relative; width: fit-content; font: 800 clamp(110px, 15vw, 200px)/1 var(--display); letter-spacing: 0.01em; color: var(--text); user-select: none; }
.wordmark span { display: block; }
.wordmark span:first-child { clip-path: polygon(0 0, 100% 0, 100% 54%, 0 69%); }
.wordmark span:last-child { position: absolute; inset: 0; color: var(--red); clip-path: polygon(0 71.5%, 100% 56.5%, 100% 100%, 0 100%); transform: translateX(0.03em); }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; list-style: none; padding: 0; padding-bottom: 18px; }
.foot-links a { color: var(--text-2); text-decoration: none; font-size: 16px; }
.foot-links a:hover { color: var(--text); }
.foot-legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* ---------- arcades ---------- */

.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.price-card { background: var(--surface); border-radius: var(--r); padding: 28px 26px 30px; display: grid; gap: 12px; align-content: start; }
.price-card.featured { border: 2px solid var(--text); box-shadow: 8px 8px 0 var(--red); }
.price { font: 800 clamp(44px, 4.4vw, 56px)/1 var(--display); color: var(--text); }
.price small { font-size: 0.42em; color: var(--text-3); font-weight: 700; letter-spacing: 0.01em; }
.note { margin-top: 28px; font-size: 16px; }

/* ---------- document pages ---------- */

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; border-bottom: 1px solid var(--line); }
.page-head > div { display: grid; gap: 18px; }
.page-head img { width: clamp(150px, 16vw, 210px); border-radius: 16px; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(48px, 6vw, 72px); }
.toc { position: sticky; top: 28px; display: grid; gap: 2px; list-style: none; padding: 0; font-size: 15px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--text-3); text-decoration: none; }
.toc a:hover { color: var(--text); border-left-color: var(--text); }
.doc-body { display: grid; gap: 20px; max-width: 760px; }

.card { background: var(--surface); border-radius: 14px; padding: clamp(24px, 3vw, 32px); display: grid; gap: 14px; scroll-margin-top: 24px; }
.card-top { display: flex; align-items: center; gap: 14px; }
.num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: var(--red); color: var(--text); font: 800 22px/1 var(--display); }
.card ol, .card ul { padding-left: 1.25em; display: grid; gap: 7px; }

/* an Android dialog, drawn like the one people will see */
.dialog { background: #eef0f2; color: #202124; border-radius: 26px; padding: 22px 24px 16px; max-width: 420px; font-size: 16px; line-height: 1.45; }
.dialog .t { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.dialog .b { color: #4a4f57; }
.dialog .a { display: flex; justify-content: flex-end; gap: 22px; margin-top: 14px; color: #0b57d0; font-weight: 600; font-size: 15px; }

details { background: var(--surface-2); border-radius: 10px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 600; color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 22px/1 var(--body); color: var(--text-3); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 18px 18px; display: grid; gap: 10px; font-size: 17px; }
details + details { margin-top: -6px; }

.req-wrap { overflow-x: auto; }
.req { width: 100%; min-width: 600px; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 16px; }
.req th, .req td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.req thead th { background: var(--surface-2); color: var(--text); font: 700 20px/1 var(--display); }
.req thead th.rec { color: var(--sky); }
.req tbody th { color: var(--text); font-weight: 600; width: 20%; }
.req tr:last-child > * { border-bottom: 0; }

.legal { display: grid; gap: 36px; max-width: 740px; }
.legal section { display: grid; gap: 12px; scroll-margin-top: 24px; }
.legal h2 { font-size: 32px; line-height: 1.05; }
.legal h3 { font: 700 21px/1.2 var(--display); margin-top: 6px; }
.legal ul, .legal ol { padding-left: 1.25em; display: grid; gap: 7px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .points, .prices { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .cta.pilot { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .page-head { grid-template-columns: 1fr; }
  .page-head img { order: -1; width: 120px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  body { font-size: 17px; }
  .nav { height: 72px; }
  .brand { font-size: 26px; }
  .brand svg { width: 34px; height: 34px; }
  .signup { flex-direction: column; }
  .signup input { flex: none; }
  .signup .btn { width: 100%; }
  .fields { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; gap: 12px; }
  .game { flex-direction: row; align-items: center; }
  .game img { width: 96px; flex: none; }
  .game div { padding: 12px 16px; gap: 2px; }
  .game .h3 { font-size: 22px; }
  .game p { font-size: 15px; }
  .points { gap: 22px; }
  .points li:has(img) { grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; }
  .points li:has(img) img { width: 72px; height: 72px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .film-frame { box-shadow: 8px 8px 0 var(--red); }
  .film-play { left: 12px; bottom: 12px; font-size: 15px; padding: 10px 13px; }
  .steps-list li { grid-template-columns: 1fr; gap: 6px; }
  .cta { box-shadow: 8px 8px 0 var(--red); }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
