/* Focus98's site: a 98-style desktop. Windows are grey with raised bevels and a navy title bar; on a wide screen they
   float on the teal desktop and can be dragged; on a phone they stack, one after another, as a page. */
:root {
  --desk: #008080;
  --face: #c0c0c0;
  --light: #ffffff;
  --mid: #dfdfdf;
  --shadow: #808080;
  --dark: #000000;
  --navy: #000080;
  --title2: #1084d0;
  --text: #000000;
  --link: #0000cc;
  --font: "Pixelify Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
/* Behind the phone's own navigation bar: the taskbar's grey, so the two read as one bar. */
html { background: var(--face); }
:root { --safe: env(safe-area-inset-bottom, 0px); }
body { background: var(--desk); color: var(--text); font: 15px/1.5 var(--body); min-height: 100vh; overflow-x: hidden; }
a { color: var(--link); }
img { image-rendering: pixelated; }

.desktop { padding: 16px 16px calc(72px + var(--safe)); }

/* Desktop icons: white labels on the desktop colour, as 98 drew them. */
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 16px; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #fff; text-align: center; padding: 4px; font-size: 13px; }
.icon img { width: 40px; height: 40px; }
.icon span { background: var(--desk); padding: 0 3px; }
.icon:focus span, .icon.on span { background: var(--navy); outline: 1px dotted #fff; }

/* Windows. */
.win {
  background: var(--face); margin: 0 0 16px; padding: 0 0 12px;
  border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light);
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--mid);
}
.win > :not(.titlebar) { margin-left: 14px; margin-right: 14px; }
.titlebar {
  display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 6px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--navy), var(--title2)); color: #fff; font: 700 14px var(--font);
  user-select: none;
}
.win.inactive .titlebar { background: linear-gradient(90deg, #808080, #b5b5b5); color: #d4d0c8; }
.titlebar img { width: 18px; height: 18px; }
.titlebar .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar button {
  width: 22px; height: 20px; padding: 0; font: 700 12px/1 var(--body); background: var(--face); color: #000;
  border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light); cursor: pointer;
}
.titlebar button:active { border-color: var(--dark) var(--light) var(--light) var(--dark); }

h1, h2 { font-family: var(--font); line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: 30px; color: var(--navy); }
h2 { font-size: 21px; }
p { margin: 0 0 10px; }
.lead { font-size: 17px; }
.note { font-size: 13px; color: #303030; }

.hero { display: flex; gap: 18px; align-items: flex-start; }
.badge { width: 120px; height: 120px; flex: none; image-rendering: auto; }
.badge.small { width: 72px; height: 72px; }

.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-block; min-width: 110px; text-align: center; padding: 7px 14px; color: #000; text-decoration: none;
  background: var(--face); border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light);
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--mid); font: 14px var(--body);
}
.btn.default { outline: 1px solid #000; outline-offset: 0; font-weight: 700; }
.btn:active { border-color: var(--dark) var(--light) var(--light) var(--dark); box-shadow: inset 1px 1px var(--shadow); }

/* Screenshots: in a sunken well, as a picture in a dialog. */
.shot, .eras figure { margin: 14px 0 0; }
.shot img, .eras img:not(figcaption img) {
  display: block; width: 100%; max-width: 360px; margin: 0 auto; image-rendering: auto;
  border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); background: #000;
}
.shot img { max-width: 260px; }
.eras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.eras figure { margin: 0; }
.eras figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 14px var(--font); margin-top: 6px; }
.eras figcaption img { width: 22px; height: 22px; image-rendering: auto; }

.steps { padding-left: 22px; margin: 0 0 10px; }
.steps li { margin-bottom: 8px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.plan {
  background: #fff; padding: 12px 14px;
  border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow);
}
.plan.featured { box-shadow: 0 0 0 2px var(--navy); }
.plan ul { padding-left: 18px; margin: 0; }
.plan li { margin-bottom: 4px; }
.price { font: 700 26px var(--font); margin: 0; }
.price small { font-size: 14px; font-weight: 400; }
.alt { font-size: 14px; color: #303030; }

details { background: #fff; border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); padding: 6px 10px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 6px 0 2px; }

.footer { color: #e0f0f0; font-size: 12px; text-align: center; padding: 8px 0 0; }
.footer a { color: #fff; }

/* Marketing pieces: a two-column hero, a fact strip, step cards, feature rows with a phone screenshot. */
h3 { font: 700 18px/1.2 var(--font); margin: 0 0 6px; }
.center { text-align: center; }
h2.center { margin-top: 4px; }
.split { display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: center; }
.phone { margin: 0; justify-self: center; }
.phone img {
  display: block; width: 100%; max-width: 230px; image-rendering: auto; background: #000;
  border: 8px solid #1c1c1c; border-radius: 22px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
}
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  background: #fff; padding: 6px 10px; font-size: 14px;
  border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow);
}
.facts b { font: 700 17px var(--body); color: var(--navy); margin-right: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 22px; }
.card {
  background: #fff; padding: 14px; text-align: center;
  border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow);
}
.card img { width: 48px; height: 48px; }
.card p { margin: 0; font-size: 14px; }
.feature {
  display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; padding: 18px 0;
  border-top: 1px solid var(--shadow);
}
#friends .feature { border: 0; padding-top: 4px; }
.feature.flip { grid-template-columns: 200px 1fr; }
.feature.flip > div { order: 2; }
.feature .phone img { max-width: 200px; }
.eras figure p { font-size: 13px; text-align: center; margin: 4px 0 0; }
.plan h3 { margin-bottom: 2px; }
@media (max-width: 640px) {
  .split, .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip > div { order: 0; }
  .split { text-align: center; }
  .split .buttons, .facts { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
}

/* Taskbar and Start menu. */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(40px + var(--safe)); display: flex; align-items: center; gap: 4px;
  padding: 3px 4px calc(3px + var(--safe));
  background: var(--face); border-top: 2px solid var(--light); box-shadow: 0 -1px var(--mid); z-index: 1000;
}
.start, .task {
  height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--face); color: #000;
  border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light); font: 700 14px var(--body); cursor: pointer;
}
.start img { width: 22px; height: 22px; image-rendering: auto; }
.start[aria-expanded="true"], .task.on { border-color: var(--dark) var(--light) var(--light) var(--dark); background: #d8d8d8; }
.tasks { flex: 1; display: flex; gap: 4px; overflow: hidden; min-width: 0; }
.task { font-weight: 400; min-width: 0; max-width: 170px; flex: 1 1 0; }
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task img { width: 16px; height: 16px; flex: none; }
.tray { height: 32px; display: flex; align-items: center; padding: 0 10px; border: 1px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); font-size: 13px; }
.startmenu {
  position: fixed; left: 4px; bottom: calc(42px + var(--safe)); display: flex; background: var(--face); z-index: 1001; min-width: 230px;
  border: 2px solid; border-color: var(--light) var(--dark) var(--dark) var(--light); box-shadow: inset -1px -1px var(--shadow);
}
.startmenu .banner {
  writing-mode: vertical-rl; transform: rotate(180deg); background: linear-gradient(0deg, var(--navy), var(--title2));
  color: #fff; font: 700 20px var(--font); padding: 8px 4px; letter-spacing: 1px;
}
.startmenu .items { display: flex; flex-direction: column; padding: 2px; flex: 1; }
.startmenu a { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; color: #000; text-decoration: none; font-size: 14px; }
.startmenu a:hover, .startmenu a:focus { background: var(--navy); color: #fff; }
.startmenu img { width: 24px; height: 24px; }
.startmenu hr { border: 0; border-top: 1px solid var(--shadow); border-bottom: 1px solid var(--light); margin: 3px 2px; width: auto; }

/* A wide screen: a real desktop. Icons down the left, windows float where they open and can be dragged. */
@media (min-width: 900px) {
  body.desk { overflow: hidden; height: 100vh; height: 100dvh; }
  body.desk .desktop { position: relative; height: calc(100vh - 40px); height: calc(100dvh - 40px - var(--safe)); padding: 24px 12px 12px; }
  body.desk .icons { display: flex; flex-direction: column; width: 104px; gap: 14px; }
  body.desk .icon { font-size: 14px; }
  body.desk .icon img { width: 52px; height: 52px; }
  body.desk .win { position: absolute; width: min(640px, calc(100vw - 172px)); max-height: calc(100vh - 100px); overflow: auto; margin: 0; }
  body.desk .win.wide { width: min(800px, calc(100vw - 172px)); }
  body.desk .win[hidden] { display: none; }
  body.desk .footer { position: absolute; right: 12px; bottom: 6px; padding: 0; text-align: right; }
  body.desk .titlebar { cursor: move; position: sticky; top: 0; z-index: 1; }
}
@media (max-width: 600px) {
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .hero .buttons { justify-content: center; }
  h1 { font-size: 26px; }
}

/* The plain pages (privacy, delete account): one window, centred. */
.page .win { max-width: 780px; margin: 0 auto 16px; }
.page h2 { font-size: 18px; margin-top: 16px; }
.page ul { padding-left: 20px; }
/* On a phone the windows are the page: nothing to close. */
body:not(.desk) .win .titlebar button { display: none; }

/* The manual: each window holds a page of the Focus98 User's Guide, as the printed Getting Started guides of the
   time looked. Off-white paper, serif text, bold sans headings, numbered chapters with an opener, "To ..."
   procedures with numbered steps, Note and Tip lead-ins, figure captions and a running footer with the page. */
:root {
  --paper: #fbfaf4;
  --ink: #1d1d1d;
  --rule: #1d1d1d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", Arial, Helvetica, sans-serif;
}
.win { padding: 0 0 10px; }
.win > .sheet { margin: 0 10px; }
.sheet {
  background: var(--paper); color: var(--ink); font: 16px/1.6 var(--serif); padding: 30px 36px 18px;
  border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow);
}
.sheet h1, .sheet h2, .sheet h3, .sheet h4 { font-family: var(--sans); color: var(--ink); letter-spacing: -.01em; }
.sheet h1 { font-size: 38px; font-weight: 800; line-height: 1.05; margin: 0 0 14px; color: var(--navy); }
.sheet h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }
.sheet p { margin: 0 0 12px; }
.sheet .lead { font-size: 19px; line-height: 1.5; }
.sheet .note, .sheet .alt { font-family: var(--sans); color: #444; }
.sheet .btn { font-family: var(--sans); }

/* Cover: the guide's title page, with its contents. */
.kicker { font: 600 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #555; margin: 0 0 10px; }
.contents-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin: 30px 0 8px; padding-top: 14px; border-top: 3px solid var(--rule); }
.toc { list-style: none; padding: 0; margin: 0 0 6px; font-family: var(--sans); }
.toc li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--navy); text-decoration: underline; }
.toc a span { display: inline-block; width: 26px; color: var(--navy); font-weight: 800; }
.toc i { flex: 1; border-bottom: 2px dotted #888; transform: translateY(-4px); }
.toc b { font-weight: 600; min-width: 20px; text-align: right; }

/* Chapter opener: a heavy rule, the chapter number, the title. */
.chapter { border-top: 6px solid var(--rule); padding-top: 10px; margin-bottom: 20px; }
.chapter span { font: 700 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.chapter h2 { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 4px 0 0; }

/* A procedure: "To ..." in bold sans, then numbered steps. */
.proc { margin: 18px 0; }
.proc h3, .proc h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.proc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.proc li { counter-increment: step; position: relative; padding-left: 34px; margin-bottom: 6px; }
.proc li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 700 13px/22px var(--sans); text-align: center;
}
.proc b { font-family: var(--sans); font-weight: 700; }

/* Note and Tip: a bold lead-in word, set off by rules, as in the margins of a printed guide. */
.aside { font-size: 15px; border-top: 1px solid #999; border-bottom: 1px solid #999; padding: 8px 0 8px 32px; position: relative; }
.aside::before { content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; background: url(img/c95_status_dialog_information.png) center / contain no-repeat; }
.aside b { font-family: var(--sans); margin-right: 6px; }

/* Cards, features and figures on paper. */
.sheet .card, .sheet .plan, .sheet details, .sheet .facts li { background: #fff; border: 1px solid #b9b6a8; }
.sheet .card { padding: 18px 16px; }
.sheet .cards { gap: 16px; margin: 18px 0 8px; }
.sheet .feature { border-top: 1px solid #c9c5b5; padding: 26px 0; gap: 32px; }
.sheet .feature:first-of-type { margin-top: 10px; }
.phone figcaption, .sheet .eras figure p { font: italic 13px/1.4 var(--serif); color: #444; text-align: center; margin-top: 8px; }
.sheet .eras { gap: 18px; margin-bottom: 18px; }
.sheet .eras figcaption { font-family: var(--sans); }
.sheet .plans { gap: 18px; margin: 10px 0 18px; }
.sheet .plan { padding: 18px 20px; }
.sheet .price { font-family: var(--sans); font-weight: 800; }
.sheet details { padding: 10px 14px; margin-bottom: 10px; }
.sheet summary { font-family: var(--sans); }

/* The running footer: the guide's section on the left, the page number on the right. */
.runfoot { display: flex; justify-content: space-between; font: 12px var(--sans); color: #666; border-top: 1px solid #999; padding-top: 6px; margin: 26px 0 0 !important; }

@media (min-width: 900px) {
  body.desk .win.wide { width: min(860px, calc(100vw - 172px)); }
}
@media (max-width: 640px) {
  .win > .sheet { margin: 0 6px; }
  .sheet { padding: 20px 18px 14px; font-size: 16px; }
  .sheet h1 { font-size: 30px; }
  .chapter h2 { font-size: 27px; }
}

/* Early-access form. */
.signup label { display: block; font: 600 14px var(--sans); margin-bottom: 4px; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field {
  flex: 1; min-width: 200px; font: 16px var(--sans); padding: 6px 8px; background: #fff; color: #000;
  border: 2px solid; border-color: var(--shadow) var(--light) var(--light) var(--shadow); box-shadow: inset 1px 1px var(--dark);
}
.signup .btn { cursor: pointer; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.small { font: 13px/1.5 var(--sans); color: #444; margin: 8px 0 0 !important; }
.msg { font: 600 14px var(--sans); margin: 8px 0 0 !important; min-height: 1em; }
.msg.good { color: #006400; }
.msg.bad { color: #b00000; }

/* The privacy notice: a message box over a dimmed desktop. */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .25); }
.modal[hidden] { display: none; }
.modal .win { position: static !important; width: min(440px, 100%) !important; max-height: none !important; margin: 0; padding-bottom: 12px; }
.dialog-body { display: flex; gap: 14px; align-items: flex-start; padding: 6px 16px 4px; }
.dialog-body img { width: 32px; height: 32px; flex: none; }
.dialog-body p { margin: 0 0 8px; font-size: 15px; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 16px 0; }
.dialog-buttons .btn { min-width: 96px; cursor: pointer; }

/* Guide pages: a wider page with breadcrumbs, an early-access box and links to the other guides. */
.guide .win { max-width: 860px; }
.crumbs { font: 13px var(--sans); color: #555; margin-bottom: 14px; }
.crumbs a { color: #555; }
.guide .chapter h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin: 4px 0 0; color: var(--ink); }
.guide .sheet h3 { margin-top: 22px; }
.guide .sheet ul { padding-left: 22px; }
.guide .sheet li { margin-bottom: 6px; }
.cta { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #b9b6a8; padding: 14px 16px; margin: 24px 0 8px; font-family: var(--sans); }
.cta img { width: 56px; height: 56px; image-rendering: auto; flex: none; }
.cta .btn { margin-left: 8px; }
.more { columns: 2; font-family: var(--sans); }
.guide-list { list-style: none; padding: 0 !important; }
.guide-list li { padding: 12px 0; border-top: 1px solid #c9c5b5; }
.guide-list a { font-family: var(--sans); font-size: 18px; }
.guide-list span { font-size: 15px; color: #444; }
.guide .footer { margin-top: 8px; }
@media (max-width: 640px) {
  .guide .chapter h1 { font-size: 26px; }
  .more { columns: 1; }
  .cta { flex-direction: column; align-items: flex-start; }
}

/* Under the home headline: what Focus98 is, in plain words. */
.h1-sub { display: block; font: 600 18px/1.3 var(--sans); color: #333; letter-spacing: 0; margin-top: 8px; }
.guide-links { font: 14px/1.7 var(--sans); margin: 14px 0 0 !important; }
.guide .sheet h2 { font-size: 22px; font-weight: 700; margin: 26px 0 8px; }
.updated { font: 13px var(--sans); color: #555; margin: -10px 0 14px !important; }

/* A screenshot inside a guide, and the guide's sources. */
.phone.inline { margin: 18px auto; display: block; text-align: center; }
.phone.inline img { max-width: 220px; margin: 0 auto; }
.sources { font: 14px/1.6 var(--sans); }

/* Images carry their size (so the page doesn't jump while they load); the height follows the width as it shrinks. */
img[width][height] { height: auto; }

.more-link { font: 14px var(--sans); }
.dialog-buttons { flex-wrap: wrap; }

/* The cookie choice: a small window docked at the bottom (above the taskbar where there is one). */
.cookiebar {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe)); z-index: 1500; max-width: 720px;
  margin: 0 auto !important; padding: 6px 8px !important; font: 14px/1.4 var(--sans, sans-serif);
}
.cookiebar[hidden] { display: none; }
body:has(.taskbar) .cookiebar { bottom: calc(48px + var(--safe)); }
.cookiebar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 !important; }
.cookiebar-row img { width: 20px; height: 20px; flex: none; }
.cookiebar-row p { margin: 0; flex: 1 1 180px; }
.cookiebar .btn { min-width: 0; padding: 4px 12px; font-size: 14px; cursor: pointer; }
.cookiebar-more { margin: 8px 2px 2px !important; }
.cookiebar-more p { margin: 0; font-size: 13px; }
body.desk .cookiebar { position: fixed; width: auto; max-height: none; overflow: visible; }
