/*
  Oklart Guard's pages on oklart.com, and the page for addresses that lead nowhere. The same black, white
  and grey as the front page and Oklart Mail's page (/mail/mail.css), and as the apps, in the same typeface.

  The page is a grey desk. What lies on it as a white sheet is something real: the app's own window, what the
  app says about each kind of junk, the two subscriptions. What we at Oklart never see stands in grey, as the
  o in the logo does.

  The switch between light and dark is a checkbox, so it works without script. /assets/mode.js only remembers
  the choice from one page to the next.
*/

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; 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: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-ext-standard-normal.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --desk: #efefec;
  --paper: #ffffff;
  --ink: #000000;
  --read: #595959;
  --faint: #696969;
  --ghost: #bdbdba;
  --line: #e2e2df;
  --inv: #000000;
  --on-inv: #ffffff;
  --logo-o: #b4b4b0;
  --shade: 14px 26px 50px -22px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Dark, while the switch is on. */
:root:has(#mode:checked) {
  --desk: #0b0b0b;
  --paper: #1b1b1b;
  --ink: #ffffff;
  --read: #b0b0b0;
  --faint: #8c8c8c;
  --ghost: #4c4c4c;
  --line: #303030;
  --inv: #ffffff;
  --on-inv: #000000;
  --logo-o: #666666;
  --shade: 14px 26px 50px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}
@media (prefers-contrast: more) {
  :root { --read: #333333; --faint: #4a4a4a; --ghost: #7a7a7a; --logo-o: #7a7a7a; }
  :root:has(#mode:checked) { --read: #dddddd; --faint: #c2c2c2; --ghost: #9a9a9a; --logo-o: #9a9a9a; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--desk); }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 18px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2 { font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
h3 { font-weight: 700; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.86em; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--inv); color: var(--on-inv); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: 60px; }
.ghost { color: var(--ghost); }
.skip { position: absolute; z-index: 10; top: -80px; left: 16px; padding: 12px 20px; border-radius: 22px; background: var(--inv); color: var(--on-inv); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---- the top row ---------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: baseline; font-size: 26px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; text-decoration: none; }
.logo-o { color: var(--logo-o); }
.logo-product { margin-left: 0.3em; font-weight: 400; letter-spacing: -0.03em; }
/* On a program's pages the logo is two links: oklart leads to the front page, the program's name to its own first page. */
.logo a { color: inherit; text-decoration: none; }
.logo a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em; }
.top-right { display: flex; align-items: center; gap: 30px; font-size: 16px; color: var(--read); white-space: nowrap; }
.top-link, .mode { text-decoration: none; cursor: pointer; }
.top-link:hover, .mode:hover, .top-link[aria-current="page"] { color: var(--ink); }
.mode-input { position: absolute; opacity: 0; pointer-events: none; }
.mode-input:focus-visible + .mode { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.to-light, :root:has(#mode:checked) .to-dark { display: none; }
:root:has(#mode:checked) .to-light { display: inline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: 22px; background: var(--inv); color: var(--on-inv); font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { opacity: 0.86; }
.btn-big { min-height: 54px; padding: 0 32px; border-radius: 27px; font-size: 18px; }
/* the second of two choices: the same pill, drawn as an outline */
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* nothing to fetch yet: the pill is there, but says so and does nothing */
.btn[aria-disabled="true"] { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1.5px var(--ghost); cursor: default; }
.btn[aria-disabled="true"]:hover, .btn:disabled:hover { opacity: 1; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* ---- the first screen ------------------------------------------------------------------------------- */
.hero { padding-top: 34px; padding-bottom: 40px; }
.hero h1 { display: grid; font-size: clamp(46px, 8.6vw, 132px); line-height: 0.96; letter-spacing: -0.058em; margin-left: -0.04em; }
/* Guard's two sentences are longer than Mail's, so they stand a little smaller to keep one line each. */
.hero-guard h1 { font-size: clamp(42px, 7.1vw, 106px); }
.hero-guard:lang(en) h1 { font-size: clamp(38px, 6.1vw, 86px); }
.hero-cols { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 60px 80px; align-items: start; margin-top: 64px; }
.lead { max-width: 480px; font-size: 24px; line-height: 1.34; letter-spacing: -0.015em; color: var(--read); }
.ways { display: grid; grid-template-columns: repeat(2, max-content); gap: 30px 34px; margin-top: 42px; }
.ways p { max-width: 232px; margin: 12px 4px 0; font-size: 15.5px; line-height: 1.4; color: var(--faint); }

/* The app's own window, light or dark with the page. */
.shot-frame img { width: 100%; border-radius: 1.15% / 1.77%; box-shadow: var(--shade); }
.shot-dark, :root:has(#mode:checked) .shot-light { display: none; }
:root:has(#mode:checked) .shot-dark { display: block; }
.shot figcaption, .kinds figcaption { margin: 16px 2px 0; font-size: 15.5px; color: var(--faint); }

/* ---- the sections ----------------------------------------------------------------------------------- */
.block { padding-top: 130px; }
.block h2, .closing h2 { font-size: clamp(36px, 4.6vw, 66px); max-width: 16ch; }
.block-lead { max-width: 560px; margin-top: 18px; font-size: 22px; line-height: 1.36; letter-spacing: -0.01em; color: var(--read); }
.block-note, .ledger-note { max-width: 760px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--read); }

/* What the app says under each kind of junk. One kind at a time, chosen like the letter on Mail's page. */
.kinds { max-width: 900px; margin-top: 50px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 14px 2px; font-size: 17px; color: var(--faint); }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label { cursor: pointer; }
.tabs label:hover { color: var(--ink); }
.tabs input:checked + label { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
.tabs input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sheet { padding: 46px 52px; border-radius: 5px; background: var(--paper); box-shadow: var(--shade); }
.kinds .sheet { min-height: 370px; }
.kind { display: none; }
.kinds:has(#k-appcache:checked) [data-kind="appcache"],
.kinds:has(#k-browsers:checked) [data-kind="browsers"],
.kinds:has(#k-xcode:checked) [data-kind="xcode"],
.kinds:has(#k-tools:checked) [data-kind="tools"] { display: block; }
/* A browser that cannot choose shows all four, one after the other. */
@supports not selector(:has(*)) {
  .kinds .tabs { display: none; }
  .kind { display: block; }
  .kind + .kind { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
}

.facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 28px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { padding-top: 0; border-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { padding-top: 3px; font-size: 16px; color: var(--faint); }
.facts dd { font-size: 20px; line-height: 1.45; }
/* the same three facts for uninstalling, side by side on the desk */
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 60px; margin-top: 50px; }
.facts-row > div { display: block; padding: 0; border-top: 0; }
.facts-row dt { padding: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.facts-row dd { max-width: 400px; margin-top: 6px; font-size: inherit; line-height: inherit; color: var(--read); }

/* The six passes are a real order: the scan runs them one after the other. */
.rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 60px; margin-top: 56px; counter-reset: round; }
.rounds li { counter-increment: round; }
.rounds li::before { content: counter(round); display: block; margin-bottom: 16px; font-size: 64px; font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; color: var(--ghost); }
.rounds h3 { font-size: 21px; letter-spacing: -0.02em; }
.rounds p { max-width: 420px; margin-top: 6px; color: var(--read); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 80px; margin-top: 80px; }
.pair h3 { max-width: 14ch; font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; }
.pair p { max-width: 520px; margin-top: 14px; color: var(--read); }

.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 80px; margin-top: 50px; }
.gets dt { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.gets dd { max-width: 520px; margin-top: 4px; color: var(--read); }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 80px; margin-top: 50px; }
.ledger h3 { margin-bottom: 14px; font-size: 21px; letter-spacing: -0.02em; }
.ledger ul { display: grid; gap: 10px; max-width: 520px; }
/* What stays on the Mac is never seen by us, so it stands in grey, as on Mail's page. What leaves stands in black. */
.ledger-stays li { color: var(--faint); }

.closing { padding-top: 150px; padding-bottom: 20px; }
.closing p { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 34px; }

.foot { display: grid; gap: 10px; margin-top: 110px; padding-top: 26px; padding-bottom: 50px; font-size: 15px; color: var(--faint); }
.foot::before { content: ""; display: block; height: 1px; margin-bottom: 12px; background: var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ---- the pages behind the first one: download, pricing, buying, the terms ---------------------------- */
.page { padding-top: 34px; }
.page h1 { max-width: 15ch; font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.055em; margin-left: -0.03em; }
.page h2 { max-width: 26ch; margin-top: 76px; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -0.04em; }
.page .gets { margin-top: 34px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.small { max-width: 640px; margin-top: 16px; font-size: 15.5px; line-height: 1.45; color: var(--faint); }
.message { max-width: 640px; margin-top: 34px; padding: 20px 24px; border-radius: 5px; background: var(--paper); box-shadow: var(--shade); }
.message.good { font-weight: 600; }
.message a { white-space: nowrap; }
/* A page that is not ready to be published says so in black, where it cannot be missed. */
.page .warn { max-width: 760px; margin-top: 34px; padding: 18px 22px; border-radius: 5px; background: var(--inv); color: var(--on-inv); font-weight: 600; }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; max-width: 760px; margin-top: 30px; }
.details dt { color: var(--faint); }
.details dd { overflow-wrap: anywhere; }

.steps { display: grid; gap: 16px; max-width: 680px; margin-top: 30px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); counter-increment: step; color: var(--read); }
.steps li::before { content: counter(step); font-weight: 700; color: var(--ink); }

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; max-width: 900px; margin-top: 46px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 34px 36px 32px; border: 0; border-radius: 5px; background: var(--paper); box-shadow: var(--shade); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.offer:hover { box-shadow: inset 0 0 0 1.5px var(--ghost), var(--shade); }
.offer.chosen, .offer[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink), var(--shade); }
.offer-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.offer-note { color: var(--read); font-size: 16.5px; }
.offer-price { margin-top: 28px; font-size: 16px; color: var(--faint); }
.offer-price b { display: block; margin-bottom: 4px; font-size: clamp(44px, 4.6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 13px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 80px; max-width: 900px; margin-top: 76px; }
.compare h3 { margin-bottom: 14px; font-size: 21px; letter-spacing: -0.02em; }
.compare ul { display: grid; gap: 10px; }
.compare li { color: var(--read); }

.buy h2 { margin-top: 60px; }
.buy .offers { margin-top: 26px; }
.switch { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 17px; }
.switch button { padding: 0; border: 0; background: none; color: var(--faint); font: inherit; cursor: pointer; }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
.field { display: grid; gap: 8px; max-width: 440px; margin-top: 24px; }
.field label { font-size: 16px; color: var(--read); }
.field input { min-height: 52px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 400 18px/1.2 var(--text); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 10px; }

.prose h2 { margin-top: 60px; }
.prose p, .prose ul { max-width: 680px; margin-top: 14px; color: var(--read); }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose .details { margin-top: 18px; }
.prose .details dd { color: var(--ink); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 80px; }
.two h1 { font-size: clamp(40px, 5vw, 72px); }

/* ---- narrow screens ----------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .wrap { padding-inline: 32px; }
  .hero-cols { grid-template-columns: minmax(0, 1fr); gap: 50px; margin-top: 44px; }
  .gets, .ledger, .pair, .compare { gap: 30px 44px; }
  .rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
  .facts-row { gap: 30px 36px; }
  .block { padding-top: 100px; }
}
@media (max-width: 760px) {
  .facts-row, .offers, .two { grid-template-columns: minmax(0, 1fr); }
  .offers { max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 20px; }
  .top { height: 62px; }
  .logo { font-size: 23px; }
  .top-right { gap: 18px; font-size: 15.5px; }
  .top .btn { display: none; }
  .mode-more { display: none; }
  .hero { padding-top: 18px; }
  .hero-cols { margin-top: 30px; gap: 44px; }
  .lead { font-size: 20px; }
    .ways { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 30px; }
  .ways .btn { width: 100%; }
  .ways p { max-width: none; }
  .closing .btn { width: 100%; }
  .sheet, .kinds .sheet { min-height: 0; padding: 28px 24px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .facts dd { font-size: 18px; }
  .gets, .ledger, .pair, .rounds, .compare { grid-template-columns: minmax(0, 1fr); }
  .gets { gap: 26px; margin-top: 34px; }
  .rounds { gap: 34px; margin-top: 40px; }
  .rounds li::before { font-size: 52px; margin-bottom: 10px; }
  .ledger, .pair { margin-top: 34px; }
  .block { padding-top: 80px; }
  .block-lead { font-size: 19px; }
  .closing { padding-top: 90px; }
  .foot { margin-top: 70px; }
  .page h2 { margin-top: 56px; }
  .offer { padding: 28px 26px 26px; }
  .actions .btn { width: 100%; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details dd { margin-bottom: 12px; }
}
@media (max-width: 380px) {
  .logo { font-size: 21px; }
  .top-right { gap: 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
