/* antisoftworks.com: AntiPDF's site, in the look of heimdall3d.com (the
   portfolio): system type, a calm paper palette in light and the night
   palette in dark, figures with a hairline border, sections that set text
   beside a picture and alternate sides.

   Theme: the visitor's system decides (prefers-color-scheme) until the
   header's sun/moon button picks one; theme.js keeps that choice on this
   device (data-theme on <html>). No other script, no third-party files. */

:root {
  --bg: #f4f2ec; --fg: #1d1c1a; --muted: #5c5a55; --line: #d6d2c8;
  --soft: #eae7df; --card: #faf9f5; --bar: #eae7df;
  --accent: #0d6680; --accent-ink: #f4f2ec;
  --pro: #8a5a12;
  --pagew: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171B; --fg: #EAEDF2; --muted: #A3ACB9; --line: #262B33;
    --soft: #1A1E24; --card: #1E232A; --bar: #101215;
    --accent: #47C4B1; --accent-ink: #0B0F12;
    --pro: #E0A24A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171B; --fg: #EAEDF2; --muted: #A3ACB9; --line: #262B33;
  --soft: #1A1E24; --card: #1E232A; --bar: #101215;
  --accent: #47C4B1; --accent-ink: #0B0F12;
  --pro: #E0A24A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); overflow-x: hidden;
  font: 16.5px/1.66 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px;
  background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 3px; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--pagew); margin: 0 auto; padding: 0 28px; }

/* ── Header: the portfolio's bar ─────────────────────────────────────── */
header.site { background: var(--bar); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; max-width: 1360px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600;
  letter-spacing: -.01em; font-size: 17px; text-decoration: none; color: var(--fg); }
.brand img { width: 28px; height: 28px; flex: none; display: block; }
.brand b { color: var(--accent); font-weight: 600; }
.brand .by { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 2px; }
.nav nav { display: flex; align-items: center; margin-left: auto; }
.nav a.lnk { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 14px; }
.nav a.lnk:hover, .nav a.lnk[aria-current="page"] { color: var(--fg); }
.look { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg);
  margin-left: 20px; padding: 0; cursor: pointer; }
.look:hover { border-color: var(--accent); color: var(--accent); }
.look svg { width: 16px; height: 16px; display: block; }
/* The button shows where it goes: the sun in dark, the moon in light. */
.look .to-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .look .to-light { display: block; }
  :root:not([data-theme="light"]) .look .to-dark { display: none; }
}
:root[data-theme="dark"] .look .to-light { display: block; }
:root[data-theme="dark"] .look .to-dark { display: none; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  .nav nav { order: 3; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a.lnk { margin: 0 18px 0 0; }
  .nav .look { margin-left: auto; }
}

/* Pictures that exist in a light and a dark version follow the theme. */
.when-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: block; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
:root[data-theme="dark"] .when-dark { display: block; }
:root[data-theme="dark"] .when-light { display: none; }

/* ── Type ────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(33px, 5.2vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600;
  margin: 56px 0 20px; max-width: 20ch; text-wrap: balance; }
h2 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25; letter-spacing: -.02em; font-weight: 600;
  margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 16px; font-weight: 600; margin: 26px 0 6px; letter-spacing: -.01em; }
p { margin: 0 0 18px; max-width: 70ch; }
.tagline { font-size: clamp(17px, 1.9vw, 20px); font-weight: 600; letter-spacing: 0.005em; margin: 12px 0 18px; max-width: 60ch; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; color: var(--muted); max-width: 58ch;
  letter-spacing: -.011em; }
.kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px; }
ul.ticks { list-style: none; margin: 0 0 18px; padding: 0; }
ul.ticks li { position: relative; padding-left: 17px; margin: 0 0 7px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px;
  background: var(--muted); opacity: .7; }
.pro { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pro); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px 0;
  margin-left: 8px; vertical-align: 3px; line-height: 1.5; }
.fine { color: var(--muted); font-size: 14px; }
/* A button (the invite page's "Open in AntiPDF"): the accent with pearl text. */
.button { display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button.quiet { background: transparent; color: var(--fg); border-color: var(--line); font-weight: 500; }
.button.quiet:hover { border-color: var(--accent); filter: none; }
.button:disabled { opacity: .5; cursor: default; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding-bottom: 8px; }
.hero h1 { margin-top: 64px; }
.status { display: inline-flex; align-items: center; gap: 9px; margin: 8px 0 0; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted);
  background: var(--soft); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.shot { margin: 44px 0 0; }
.shot img, figure img { display: block; width: 100%; height: auto; border-radius: 3px;
  border: 1px solid var(--line); background: var(--soft); }
figcaption { font-size: 13px; line-height: 1.65; color: var(--muted); margin-top: 12px; max-width: 70ch; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 3px; margin: 40px 0 0; overflow: hidden; }
.facts div { background: var(--bg); padding: 16px 18px; font-size: 14.5px; line-height: 1.5; }
.facts b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ── Sections: text beside a picture, sides alternating ─────────────── */
.sec { margin-top: 96px; }
.sec > figure { margin: 30px 0 0; }
@media (min-width: 900px) {
  .sec.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); column-gap: 56px;
    align-items: start; }
  .sec.side > * { grid-column: 1; min-width: 0; }
  .sec.side > figure { grid-column: 2; grid-row: 1 / span 20; margin: 0; }
  .sec.side.flip { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .sec.side.flip > * { grid-column: 2; }
  .sec.side.flip > figure { grid-column: 1; }
  .sec.side > h2 { padding-top: 12px; }
}
.sec.highlight { background: var(--soft); border-left: 3px solid var(--accent); padding: 30px 34px;
  border-radius: 0 10px 10px 0; }
@media (max-width: 720px) { .sec.highlight { padding: 22px 20px; } .sec { margin-top: 72px; } }

.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 40px 32px; margin: 34px 0 0; }
.plates figure { margin: 0; }
.plates h3 { margin-top: 14px; }
.plates p { font-size: 15px; color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; }
.stats div { border-top: 1px solid var(--line); padding-top: 14px; }
.stats b { display: block; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 600; color: var(--fg); }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 14px; } }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; background: var(--card); }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.plan ul.ticks { margin: 0; }
.plan ul.ticks li { font-size: 15px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 28px 0 0; }
.coupon label { font-weight: 600; }
.coupon input { font: inherit; padding: 9px 12px; width: 18ch; max-width: 100%; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--fg); }
.coupon input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
#coupon-bad { margin: 10px 0 0; }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.doc { max-width: 74ch; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); }
.doc h2 { margin-top: 48px; font-size: clamp(19px, 2.1vw, 22px); }
.doc p, .doc li { color: var(--fg); }
.doc address { font-style: normal; line-height: 1.7; margin: 0 0 18px; }
.doc .updated { color: var(--muted); font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); margin-top: 112px; padding: 34px 0 46px;
  color: var(--muted); font-size: 13px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }
.legalnav { display: flex; flex-wrap: wrap; gap: 7px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
footer.site p { margin: 0 0 6px; max-width: none; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Pairs: two columns from tablet width up, so four plates never sit 3 + 1. */
.plates.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .plates.two { grid-template-columns: 1fr; } }
.plates + .fine { margin-top: 30px; }
