/* The Unsubscribe website, in the game's own colours and display face. Everything is served from here: no fonts,
   scripts or images from other servers (the privacy policy says so). */
@font-face {
  font-family: 'Archivo Black';
  src: url('/fonts/ArchivoBlack-Regular.ttf') format('truetype');
  font-display: swap;
}
:root {
  /* the app's palette (mobile/androidApp Theme.kt, phone.css) */
  --ink: #1d2433;
  --body: #3a4252;
  --muted: #6b7486;
  --line: #e4e8ef;
  --paper: #f3f5f9;
  --surface: #ffffff;
  --link: #2456d6;
  --accent: #ff5a4e;
  --accent-ink: #2a1408;
  --blue: #2f6bff;
  --good: #1fae6b;
  --bad: #e5484d;
  --night: #0d1b3e;
  --gold: #ffcf8f;
  --wall: radial-gradient(circle at 70% 18%, rgba(255, 190, 120, 0.35), rgba(255, 190, 120, 0) 45%),
    linear-gradient(180deg, #3b5ba8 0%, #8c6bb1 52%, #f29e7a 100%);
  --display: 'Archivo Black', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf5;
    --body: #c9d1e0;
    --muted: #9aa3b5;
    --line: #283044;
    --paper: #12161e;
    --surface: #1b2130;
    --link: #8fb0ff;
    --bezel: #2c3446;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the privacy policy, the legal notice, 404 ---------- */
main { max-width: 680px; margin: 0 auto; padding: 48px 16px 64px; }
h1 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.15; margin: 16px 0 8px; }
h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.updated, .muted { color: var(--muted); font-size: 15px; }
.summary { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.summary ul { margin: 0; }
address { font-style: normal; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; font-size: 15px; color: var(--muted); }
footer a { color: inherit; }

/* ---------- the home page ---------- */
.home main { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.home h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 16px; }

/* The lock screen's sunset, as in the app and on the store pages. */
.hero { background: var(--wall); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.lockup { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; }
.lockup img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 30px rgba(30, 20, 60, 0.35); flex: none; }
.lockup h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.01em; margin: 0; text-shadow: 0 4px 18px rgba(30, 20, 60, 0.3); }
.lockup p { font-weight: 800; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; margin: 6px 0 0; }
.ask { font-family: var(--display); font-size: clamp(44px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.015em; margin: 0 0 24px; text-shadow: 0 6px 24px rgba(30, 20, 60, 0.3); }
.lede { font-size: 19px; line-height: 1.5; max-width: 34em; margin: 0 0 20px; text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store { display: block; height: 52px; border-radius: 9px; margin: 0; }
.store img { display: block; width: auto; height: 52px; }
.play-soon { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; padding: 0 18px; background: rgba(13, 27, 62, 0.55); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; font-weight: 800; font-size: 19px; line-height: 1.1; }
.play-soon span { font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }

/* The playable inbox: the game's Mail app, always in its light colours, inside a phone. */
.try { font-weight: 800; margin: 0 0 10px 6px; }
.phone { background: #14161c; padding: 10px; border-radius: 44px; box-shadow: 0 30px 70px rgba(30, 20, 60, 0.5); color: #1d2433; }
.screen { position: relative; border-radius: 34px; overflow: hidden; background: #fff; }
.sb { background: var(--night); color: #fff; padding: 16px 18px 6px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sb .clock { font-family: var(--display); font-size: 20px; min-width: 62px; }
.sb .day { color: var(--gold); }
.sb .pts { margin-left: auto; }
.stress { background: var(--night); color: #fff; padding: 2px 18px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.stress .bar { flex: 1; height: 10px; border-radius: 5px; overflow: hidden; background: linear-gradient(90deg, #4ade80, #facc15, #ef4444); }
.stress .bar i { display: block; height: 100%; margin-left: auto; width: calc(100% - var(--s, 0%)); background: #2b3654; transition: width 0.3s ease-out; }
.stress .pct { min-width: 38px; text-align: right; }
.mhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 8px; border-bottom: 1px solid #e4e8ef; }
.mhead .title { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.mhead small { display: block; font-size: 14px; font-weight: 700; color: #243044; }
.mhead .count { font-weight: 800; font-size: 15px; color: #fff; background: var(--bad); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.band { margin: 0; padding: 8px 16px; background: #e7efff; color: #163a8a; font-size: 14px; font-weight: 700; line-height: 1.35; }
.inbox { position: relative; height: 432px; overflow-y: auto; overscroll-behavior: contain; background: #f3f5f9; }
.inbox ul { list-style: none; margin: 0; padding: 0; }
.inbox li { margin: 0; background: #fff; border-bottom: 1px solid #e4e8ef; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 10px 10px 14px; align-items: center; }
.inbox li.boss, .inbox li.phish { box-shadow: inset 4px 0 0 #e89a50; }
.inbox li.coworker { box-shadow: inset 4px 0 0 #2f6bff; }
.inbox li.spam { box-shadow: inset 4px 0 0 #8b93a3; }
.inbox li.newsletter { box-shadow: inset 4px 0 0 #c5ccd8; }
.av { width: 36px; height: 36px; border-radius: 50%; background: hsl(var(--h, 220) 55% 52%); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.txt { min-width: 0; line-height: 1.25; }
.who { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.chip { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px; font-size: 12px; font-weight: 800; background: #f3f5f9; color: #243044; vertical-align: 1px; }
.boss .chip, .phish .chip { background: #fff1dc; color: #6a3d00; }
.coworker .chip { background: #e7efff; color: #163a8a; }
.spam .chip { background: #eef1f6; }
.subj { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.3; color: #3a4252; margin-top: 1px; }
.acts { display: flex; gap: 4px; }
.acts button { width: 50px; min-height: 52px; border: 0; border-radius: 12px; background: #eef1f6; color: #1d2433; font: 700 11px/1.1 var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 0; }
.acts button i { font-style: normal; font-size: 17px; line-height: 1; }
.acts button:hover { background: #dfe4ed; }
.acts .unsub { background: #fff0ee; color: var(--accent); }
.acts .unsub:hover { background: #ffe0dc; }
.note { margin: 0; min-height: 64px; padding: 12px 16px; background: #12161e; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.35; display: flex; align-items: center; justify-content: center; text-align: center; }
.note.good { background: var(--good); }
.note.bad { background: var(--bad); }
.end { position: absolute; inset: 0; background: #f3f5f9; display: flex; flex-direction: column; justify-content: center; padding: 24px; text-align: center; }
.end[hidden] { display: none; }
.end b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.end.won b { color: var(--good); }
.end.lost b { color: var(--bad); }
.end p { margin: 0 0 18px; color: #3a4252; }
.end button { align-self: center; border: 0; border-radius: 14px; padding: 14px 22px; background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--text); cursor: pointer; box-shadow: 0 3px 0 #b23a31; }
@media (max-width: 379px) {
  .acts button { width: 46px; }
}

/* The week, as the screenshots show it: each one's clock is the time it was taken. */
.week { padding: 88px 0 72px; }
.moments { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.moments li { margin: 0; display: flex; flex-direction: column; }
.moments .when { align-self: flex-start; margin: 0 0 14px; background: var(--night); color: #fff; border-radius: 10px; padding: 4px 10px; font-weight: 700; }
.when b { font-family: var(--display); font-weight: 400; }
.when span { color: var(--gold); margin-left: 6px; }
.moments h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0 0 8px; }
.moments p { color: var(--body); margin: 0 0 24px; }
.shot { display: block; margin-top: auto; width: 100%; max-width: 300px; height: auto; border: 8px solid var(--bezel, #14161c); border-radius: 40px; background: var(--bezel, #14161c); box-shadow: 0 18px 40px rgba(13, 27, 62, 0.22); }

/* The office: the game's people, as rows of the Mail app. */
.office { padding: 0 0 80px; }
.office .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.office p { color: var(--body); max-width: 30em; }
.people { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.people li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people .av { width: 44px; height: 44px; font-size: 15px; }
.people .kevin { background: #719b83; font-size: 22px; }
.people b { display: block; line-height: 1.3; }
.people div span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* How the game is paid for, said plainly. */
.fair { padding: 0 0 88px; }
.fair .wrap > div { max-width: 640px; }
.fair p { color: var(--body); }

.home footer { margin: 0; padding: 32px 0 48px; border-top: 1px solid var(--line); }
.home footer p { margin: 0 0 10px; }
.home footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 10px; }

@media (max-width: 920px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .demo { justify-self: center; width: 100%; max-width: 420px; }
  .moments { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .moments li { align-items: center; text-align: center; }
  .moments .when { align-self: center; }
  .moments p { max-width: 30em; }
  .office .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .lockup { gap: 14px; margin-bottom: 28px; }
  .lockup img { width: 64px; height: 64px; border-radius: 15px; }
  .lede { font-size: 17px; }
  .week { padding-top: 64px; }
  .phone { padding: 8px; border-radius: 40px; }
  .screen { border-radius: 32px; }
}
/* Already on a phone: the inbox drops its bezel and, like the game on small screens, its avatars. */
@media (max-width: 440px) {
  .phone { padding: 0; background: none; border-radius: 28px; box-shadow: 0 20px 50px rgba(30, 20, 60, 0.45); }
  .screen { border-radius: 28px; }
  .inbox li { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; }
  .inbox .av { display: none; }
}
@media (max-width: 400px) {
  .lockup { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lockup h1 { font-size: 11vw; }
  .ask { font-size: 12.5vw; }
}
@media (prefers-reduced-motion: reduce) {
  .stress .bar i { transition: none; }
}
