/* Inter variable 400–800 (SIL OFL 1.1), self-hosted from assets/fonts.
   Same subsets and unicode ranges Google Fonts serves, so a page only
   downloads what its text needs. Paths are relative to dist/theme.css. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-var-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;
}

/*
 * PhotoSlim — the product site of an offline photo compressor: pick a size, get
 * a smaller photo, nothing uploaded.
 *
 * The page is built round two numbers. The hero strikes through the size a
 * photo was and sets the size it became twice as big, in the accent; the rest
 * of the page is quiet paper, a warm tint and two dark bands, so the numbers and
 * the app's own screens do the talking.
 *
 *   - The accent is the app icon's orange, #CF4A0C, dark enough for white text
 *     at 4.5:1. It comes from the `primaryColor` setting, so every accent tint
 *     below is a color-mix() of it rather than a second hard-coded orange.
 *   - Blue (#2B6CF0) is the app's own UI colour. It appears inside the app
 *     screenshots and on the "free" chip, and nowhere else.
 *   - Type is Inter, self-hosted (assets/fonts): a site that promises "never
 *     uploaded" should not open with a request to a font CDN. Japanese falls
 *     back to the system's own Japanese face.
 */

/* -------------------------------------------------------------------------
 * Colour modes — three blocks, and the order is the mechanism.
 *
 *   1. `:root`                      — LIGHT, the base.
 *   2. `prefers-color-scheme: dark` — the OS, honoured while the visitor has
 *                                     not explicitly chosen light.
 *   3. `[data-theme="dark"]`        — an explicit choice, which beats the OS.
 *
 * The dark tokens are written twice, in 2 and 3. Keep the two lists identical —
 * build.mjs refuses to build when they drift.
 * ---------------------------------------------------------------------- */

:root {
  --ps-accent: #cf4a0c;
  --ps-on-accent: #ffffff;
  --ps-app-blue: #2b6cf0;

  --ps-font: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", sans-serif;
  --ps-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ps-r-sm: 10px;
  --ps-r: 14px;
  --ps-r-lg: 24px;
  --ps-header-h: 64px;
  --ps-band: clamp(56px, 7vw, 112px);
  --ps-gutter: clamp(16px, 3.4vw, 32px);

  --ps-bg: #fbf8f4;
  --ps-tint: #f3ece3;
  --ps-panel: #ffffff;
  --ps-line: #e7ddd1;
  --ps-line-strong: #d2c3b2;
  --ps-ink: #1b130d;
  --ps-muted: #65564a;
  --ps-accent-text: color-mix(in srgb, var(--ps-accent) 86%, #000000);
  --ps-accent-soft: color-mix(in srgb, var(--ps-accent) 10%, transparent);
  --ps-band-ink: #18110c;
  --ps-band-edge: transparent;
  --ps-on-ink: #f8f0e8;
  --ps-on-ink-muted: #c0b0a2;
  --ps-on-ink-line: rgba(255, 255, 255, 0.14);
  --ps-on-ink-accent: color-mix(in srgb, var(--ps-accent) 55%, #ffffff);
  --ps-shadow: 0 34px 70px -30px rgba(70, 30, 6, 0.42), 0 10px 22px -12px rgba(70, 30, 6, 0.16);
  --ps-shadow-sm: 0 14px 30px -16px rgba(70, 30, 6, 0.32);
  --ps-header-bg: rgba(251, 248, 244, 0.86);
  --ps-store: #111111;
  --ps-store-edge: transparent;
  --ps-free: #1f5fd6;
  --ps-free-bg: #e7effe;
  --ps-partial: #7a5200;
  --ps-partial-bg: #fbefcf;
  --ps-pro: #a63905;
  --ps-pro-bg: #ffe6d1;
  --ps-ok: #157a43;
  --ps-ok-bg: #e0f3e7;
  --ps-danger: #c2255c;
  --ps-scene-plate: #f6eee5;
  --ps-scene-paper: #ffffff;
  --ps-scene-edge: #e6d6c5;
  --ps-scene-bar: #e9dccd;
  --ps-scene-frame: #ffffff;
  --ps-chip: #efe6dc;
  --ps-chip-ink: #3a2a20;
}

/* ---- DARK, from the OS, while no explicit light choice is in force ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ps-bg: #120e0b;
    --ps-tint: #1a1511;
    --ps-panel: #211a15;
    --ps-line: #342a22;
    --ps-line-strong: #4b3d31;
    --ps-ink: #f6eee6;
    --ps-muted: #b6a597;
    --ps-accent-text: color-mix(in srgb, var(--ps-accent) 70%, #ffffff);
    --ps-accent-soft: color-mix(in srgb, var(--ps-accent) 18%, transparent);
    --ps-band-ink: #0a0705;
    --ps-band-edge: #2a221b;
    --ps-on-ink: #f8f0e8;
    --ps-on-ink-muted: #b9a99b;
    --ps-on-ink-line: rgba(255, 255, 255, 0.12);
    --ps-on-ink-accent: color-mix(in srgb, var(--ps-accent) 55%, #ffffff);
    --ps-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.8), 0 10px 22px -12px rgba(0, 0, 0, 0.5);
    --ps-shadow-sm: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
    --ps-header-bg: rgba(18, 14, 11, 0.84);
    --ps-store: #000000;
    --ps-store-edge: rgba(255, 255, 255, 0.22);
    --ps-free: #8db4ff;
    --ps-free-bg: rgba(91, 145, 255, 0.16);
    --ps-partial: #f2c760;
    --ps-partial-bg: rgba(242, 199, 96, 0.14);
    --ps-pro: #ffb37a;
    --ps-pro-bg: rgba(255, 138, 42, 0.16);
    --ps-ok: #4fd08a;
    --ps-ok-bg: rgba(79, 208, 138, 0.14);
    --ps-danger: #ff7aa2;
    --ps-scene-plate: #261e18;
    --ps-scene-paper: #33291f;
    --ps-scene-edge: #4a3c30;
    --ps-scene-bar: #4d4035;
    --ps-scene-frame: #3a2f25;
    --ps-chip: #33291f;
    --ps-chip-ink: #f1e4d8;
  }
}

/* ---- DARK, chosen by the visitor. Same list as above. ---- */
:root[data-theme="dark"] {
  --ps-bg: #120e0b;
  --ps-tint: #1a1511;
  --ps-panel: #211a15;
  --ps-line: #342a22;
  --ps-line-strong: #4b3d31;
  --ps-ink: #f6eee6;
  --ps-muted: #b6a597;
  --ps-accent-text: color-mix(in srgb, var(--ps-accent) 70%, #ffffff);
  --ps-accent-soft: color-mix(in srgb, var(--ps-accent) 18%, transparent);
  --ps-band-ink: #0a0705;
  --ps-band-edge: #2a221b;
  --ps-on-ink: #f8f0e8;
  --ps-on-ink-muted: #b9a99b;
  --ps-on-ink-line: rgba(255, 255, 255, 0.12);
  --ps-on-ink-accent: color-mix(in srgb, var(--ps-accent) 55%, #ffffff);
  --ps-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.8), 0 10px 22px -12px rgba(0, 0, 0, 0.5);
  --ps-shadow-sm: 0 14px 30px -16px rgba(0, 0, 0, 0.7);
  --ps-header-bg: rgba(18, 14, 11, 0.84);
  --ps-store: #000000;
  --ps-store-edge: rgba(255, 255, 255, 0.22);
  --ps-free: #8db4ff;
  --ps-free-bg: rgba(91, 145, 255, 0.16);
  --ps-partial: #f2c760;
  --ps-partial-bg: rgba(242, 199, 96, 0.14);
  --ps-pro: #ffb37a;
  --ps-pro-bg: rgba(255, 138, 42, 0.16);
  --ps-ok: #4fd08a;
  --ps-ok-bg: rgba(79, 208, 138, 0.14);
  --ps-danger: #ff7aa2;
  --ps-scene-plate: #261e18;
  --ps-scene-paper: #33291f;
  --ps-scene-edge: #4a3c30;
  --ps-scene-bar: #4d4035;
  --ps-scene-frame: #3a2f25;
  --ps-chip: #33291f;
  --ps-chip-ink: #f1e4d8;
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

html {
  background: var(--ps-bg);
}

.ps {
  min-height: 100vh;
  background: var(--ps-bg);
  color: var(--ps-ink);
  font-family: var(--ps-font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ps *,
.ps *::before,
.ps *::after {
  box-sizing: border-box;
}

/*
 * The resets sit under `:where()` so they weigh nothing, and every component
 * rule below — one class — can set its own margins without fighting them.
 */
:where(.ps) h1,
:where(.ps) h2,
:where(.ps) h3,
:where(.ps) p,
:where(.ps) figure,
:where(.ps) dl,
:where(.ps) dd,
:where(.ps) ol,
:where(.ps) ul {
  margin: 0;
}

:where(.ps) h1,
:where(.ps) h2,
:where(.ps) h3 {
  color: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

:where(.ps) a {
  color: inherit;
}

:where(.ps) img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ps :focus-visible {
  outline: 3px solid var(--ps-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.ps__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ps__skip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ps-ink);
  color: var(--ps-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.ps__skip:focus {
  transform: none;
}

.ps__container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--ps-gutter));
  margin: 0 auto;
  padding: 0 var(--ps-gutter);
}

.ps__measure {
  max-width: calc(760px + 2 * var(--ps-gutter));
}

.ps [id] {
  scroll-margin-top: calc(var(--ps-header-h) + 16px);
}

.ps__icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Bands: paper, tint, ink ---- */

.ps__section {
  padding: var(--ps-band) 0;
}

.ps__section--tint {
  background: var(--ps-tint);
}

/* Two paper bands in a row share their padding instead of doubling it. */
.ps__section:where(:not(.ps__section--tint, .ps__section--ink)) + .ps__section:where(:not(.ps__section--tint, .ps__section--ink)) {
  padding-top: 0;
}

.ps__section--ink {
  background: var(--ps-band-ink);
  color: var(--ps-on-ink);
  border-block: 1px solid var(--ps-band-edge);
}

.ps__section--ink .ps__eyebrow {
  color: var(--ps-on-ink-accent);
}

.ps__section--ink .ps__eyebrow::before {
  background: var(--ps-on-ink-accent);
}

.ps__section--ink .ps__lead,
.ps__section--ink .ps__note {
  color: var(--ps-on-ink-muted);
}

.ps__section--ink .ps__text-link {
  color: var(--ps-on-ink);
}

/* ---- Type furniture ---- */

.ps__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ps-accent-text);
  font-family: var(--ps-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ps__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: var(--ps-accent);
}

.ps__lead {
  color: var(--ps-muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
  max-width: 58ch;
}

.ps__accent {
  color: var(--ps-accent-text);
}

.ps__note {
  margin-top: 28px;
  color: var(--ps-muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 78ch;
}

.ps__empty {
  color: var(--ps-muted);
}

.ps__section-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.ps__section-head h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 20ch;
}

.ps__section-head .ps__lead {
  margin-top: 18px;
}

.ps__section-head--center {
  text-align: center;
}

.ps__section-head--center .ps__eyebrow {
  justify-content: center;
}

.ps__section-head--center h2,
.ps__section-head--center .ps__lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */

.ps__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ps-accent);
  color: var(--ps-on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ps__button:hover {
  background: color-mix(in srgb, var(--ps-accent) 86%, #000000);
}

.ps__button--ghost {
  background: transparent;
  color: var(--ps-ink);
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
}

.ps__button--ghost:hover {
  background: var(--ps-accent-soft);
  box-shadow: inset 0 0 0 1px var(--ps-accent);
}

.ps__button--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

.ps__text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ps-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ps-line-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.ps__text-link:hover {
  text-decoration-color: var(--ps-accent);
}

.ps__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 22px;
}

/* ---- Store badges: dark rounded rectangles in both modes ---- */

.ps__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ps .ps__store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 12px;
  background: var(--ps-store);
  box-shadow: inset 0 0 0 1px var(--ps-store-edge);
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.ps a.ps__store:hover {
  transform: translateY(-1px);
}

.ps__store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ps__store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ps__store small {
  font-size: 11px;
  opacity: 0.8;
}

.ps__store strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ps .ps__store--soon {
  background: transparent;
  color: var(--ps-muted);
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
}

.ps__section--ink .ps__store--soon {
  color: var(--ps-on-ink-muted);
  box-shadow: inset 0 0 0 1px var(--ps-on-ink-line);
}

.ps__section--ink .ps__store {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.ps__header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ps-header-bg);
  border-bottom: 1px solid var(--ps-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.ps__header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--ps-header-h);
  flex-wrap: nowrap;
}

.ps__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.ps__brand img,
.ps__brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
}

.ps__brand-mark {
  display: inline-block;
  background: linear-gradient(135deg, #ffb547, #ff7a1a 55%, #f2400f);
}

.ps__brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ps__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.ps__brand-text strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.ps__brand-text small {
  display: none;
  color: var(--ps-muted);
  font-size: 12px;
}

.ps__menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
  color: inherit;
  text-decoration: none;
}

.ps__menu-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ps__menu-bars::before,
.ps__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ps__menu-bars::before {
  top: -6px;
}

.ps__menu-bars::after {
  top: 6px;
}

.ps__menu-bars--x {
  background: transparent;
}

.ps__menu-bars--x::before {
  top: 0;
  transform: rotate(45deg);
}

.ps__menu-bars--x::after {
  top: 0;
  transform: rotate(-45deg);
}

/*
 * Which of the two links is showing. `:has()` because the buttons come BEFORE
 * the drawer and there is no previous-sibling combinator; where it is missing
 * the opener simply stays put and the menu still opens and closes.
 */
.ps__menu-button--close {
  display: none;
}

.ps__header-inner:has(#ps-menu:target) .ps__menu-button--open {
  display: none;
}

.ps__header-inner:has(#ps-menu:target) .ps__menu-button--close {
  display: inline-flex;
  background: var(--ps-accent);
  box-shadow: none;
  color: var(--ps-on-accent);
}

/* The drawer: fixed under the bar, so opening it moves nothing on the page. */
.ps__header-panel {
  display: none;
  position: fixed;
  top: var(--ps-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 12px var(--ps-gutter) 28px;
  background: var(--ps-bg);
  border-top: 1px solid var(--ps-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ps__header-panel:target {
  display: flex;
}

.ps__nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ps-line);
  color: var(--ps-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ps__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.ps__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
  color: inherit;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.ps__icon-btn:hover,
.ps__lang summary:hover {
  background: var(--ps-accent-soft);
}

.ps__lang {
  position: relative;
}

.ps__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
  font-family: var(--ps-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}

.ps__lang summary::-webkit-details-marker {
  display: none;
}

.ps__lang summary i {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* A flag needs an edge of its own: the Japanese one is a white field. */
.ps__flag {
  width: 20px;
  height: 13px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
}

.ps__lang ul {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-r);
  box-shadow: var(--ps-shadow);
}

.ps__lang a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
}

.ps__lang a:hover,
.ps__lang a[aria-current="page"] {
  background: var(--ps-tint);
}

/* -------------------------------------------------------------------------
 * Hero — the transformation
 * ---------------------------------------------------------------------- */

.ps__hero {
  padding: clamp(36px, 5.5vw, 88px) 0 var(--ps-band);
  overflow: hidden;
}

.ps__hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.ps__hero-copy {
  min-width: 0;
}

.ps__hero-app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.ps__hero-app img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.ps__hero-app span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ps__hero-app strong {
  font-size: 15px;
  font-weight: 700;
}

.ps__hero-app small {
  color: var(--ps-muted);
  font-size: 13px;
}

.ps__shrink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-variant-numeric: tabular-nums;
}

.ps__shrink-was {
  color: var(--ps-muted);
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-color: var(--ps-accent);
  text-decoration-thickness: 0.07em;
  white-space: nowrap;
}

.ps__shrink-arrow {
  display: block;
  width: clamp(30px, 3.4vw, 46px);
  height: clamp(30px, 3.4vw, 46px);
  margin: clamp(6px, 1vw, 12px) 0 clamp(2px, 0.6vw, 8px) clamp(4px, 0.8vw, 12px);
}

.ps__shrink-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ps-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps__shrink-now {
  color: var(--ps-accent-text);
  font-size: clamp(76px, 10.6vw, 156px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
  white-space: nowrap;
}

.ps__hero h1 {
  margin-top: clamp(22px, 2.6vw, 34px);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 22ch;
}

.ps__hero--plain h1 {
  margin-top: 0;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 16ch;
}

.ps__hero .ps__lead {
  margin-top: 16px;
  max-width: 52ch;
}

.ps__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.ps__size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
  color: var(--ps-ink);
  font-family: var(--ps-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ps__size--on {
  background: var(--ps-accent);
  box-shadow: none;
  color: var(--ps-on-accent);
}

.ps__size .ps__icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.ps__hero .ps__stores {
  margin-top: 30px;
}

.ps__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--ps-muted);
  font-size: 14px;
  line-height: 1.4;
}

.ps__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ps__hero-notes .ps__icon {
  width: 16px;
  height: 16px;
  color: var(--ps-accent-text);
  stroke-width: 2.4;
}

/* ---- The proof: a screen with crop marks and a size tag ---- */

.ps__screen {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--ps-line);
}

.ps__screen img {
  width: 100%;
  height: auto;
}

/* Light or dark screenshot, by the same three-step mechanism as the colour
   tokens. The hidden one is display:none, so a lazy one is never fetched. */
.ps__screen .ps__shot--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ps__screen {
    background: #000000;
  }

  :root:not([data-theme="light"]) .ps__screen .ps__shot--light {
    display: none;
  }

  :root:not([data-theme="light"]) .ps__screen .ps__shot--dark {
    display: block;
  }
}

:root[data-theme="dark"] .ps__screen {
  background: #000000;
}

:root[data-theme="dark"] .ps__screen .ps__shot--light {
  display: none;
}

:root[data-theme="dark"] .ps__screen .ps__shot--dark {
  display: block;
}

.ps__proof {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 30px 40px;
}

.ps__proof-mat {
  position: relative;
  width: min(100%, 250px);
}

.ps__proof-shot {
  box-shadow: 0 0 0 1px var(--ps-line), var(--ps-shadow);
}

/*
 * Printer's crop marks: each corner is a zero-size point at the screen's corner
 * with two short hairlines pointing away from it, a gap short of the edge. One
 * corner is drawn; the other three are the same marks rotated round the point.
 */
.ps__crop {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  color: var(--ps-muted);
}

.ps__crop::before,
.ps__crop::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.ps__crop::before {
  top: -0.5px;
  right: 10px;
  width: 22px;
  height: 1px;
}

.ps__crop::after {
  left: -0.5px;
  bottom: 10px;
  width: 1px;
  height: 22px;
}

.ps__crop--tl {
  top: 0;
  left: 0;
}

.ps__crop--tr {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.ps__crop--br {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.ps__crop--bl {
  bottom: 0;
  left: 0;
  transform: rotate(270deg);
}

.ps__proof-tag {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: var(--ps-accent);
  color: var(--ps-on-accent);
  font-family: var(--ps-mono);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: var(--ps-shadow-sm);
}

.ps__proof-tag .ps__icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.ps__proof-second {
  display: none;
}

/* ---- A feature's screens ---- */

.ps__pair {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

.ps__pair-main {
  width: min(100%, 250px);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--ps-line), var(--ps-shadow);
}

.ps__pair-second {
  display: none;
}

/* -------------------------------------------------------------------------
 * Flow
 * ---------------------------------------------------------------------- */

.ps__flow {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.ps__flow-step {
  position: relative;
  padding: 16px 16px 24px;
  border-radius: var(--ps-r-lg);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__flow-n {
  display: block;
  margin: 4px 6px 8px;
  color: var(--ps-accent-text);
  font-family: var(--ps-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ps__flow-step h3 {
  margin: 0 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ps__flow-step p {
  margin: 8px 6px 0;
  color: var(--ps-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Scenes (the small drawings on the flow cards)
 * ---------------------------------------------------------------------- */

.ps__scene {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.ps__scene-plate {
  fill: var(--ps-scene-plate);
}

.ps__scene-card,
.ps__scene-tile {
  fill: var(--ps-scene-paper);
  stroke: var(--ps-scene-edge);
  stroke-width: 1.5;
}

.ps__scene-frame {
  fill: var(--ps-scene-frame);
  stroke: var(--ps-scene-edge);
  stroke-width: 1.2;
}

/* The photo in a scene is always a daytime photo, whatever the page's mode. */
.ps__scene-sky {
  fill: #4d8ff0;
}

.ps__scene-sun {
  fill: #fff4cf;
}

.ps__scene-fuji {
  fill: #2f5fb8;
}

.ps__scene-snow {
  fill: #ffffff;
}

.ps__scene-check circle {
  fill: var(--ps-app-blue);
  stroke: var(--ps-scene-plate);
  stroke-width: 2;
}

.ps__scene-check path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps__scene-bar {
  fill: var(--ps-scene-bar);
}

.ps__scene-button {
  fill: var(--ps-accent);
}

.ps__scene-chip rect {
  fill: var(--ps-chip);
}

.ps__scene-chip text {
  fill: var(--ps-chip-ink);
  font-family: var(--ps-font);
  font-size: 10.5px;
  font-weight: 700;
}

.ps__scene-chip--on rect {
  fill: var(--ps-accent-soft);
  stroke: var(--ps-accent);
  stroke-width: 1.8;
}

.ps__scene-chip--on text {
  fill: var(--ps-accent-text);
}

.ps__scene-size {
  fill: var(--ps-accent-text);
  font-family: var(--ps-font);
  font-size: 12px;
  font-weight: 800;
}

.ps__scene-size--old {
  fill: var(--ps-muted);
  font-weight: 600;
  text-decoration: line-through;
}

.ps__scene-arrow {
  fill: none;
  stroke: var(--ps-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps__scene-dot {
  fill: var(--ps-accent);
}

.ps__scene-pin path {
  fill: color-mix(in srgb, var(--ps-danger) 22%, var(--ps-scene-paper));
  stroke: var(--ps-danger);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.ps__scene-pin circle {
  fill: var(--ps-danger);
}

.ps__scene-wave {
  fill: none;
  stroke: var(--ps-muted);
  stroke-width: 5;
  stroke-linecap: round;
}

.ps__scene-slash {
  fill: none;
  stroke: var(--ps-accent);
  stroke-width: 5;
  stroke-linecap: round;
}

/* -------------------------------------------------------------------------
 * Showcase
 * ---------------------------------------------------------------------- */

.ps__showcase-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.ps__showcase-copy {
  min-width: 0;
}

.ps__showcase .ps__section-head {
  margin-bottom: 0;
}

.ps__showcase-copy > .ps__lead {
  margin-top: 18px;
}

.ps__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--ps-accent-soft);
  color: var(--ps-accent-text);
}

.ps__points {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.ps__points li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ps__points li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 1px;
}

.ps__points b {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.ps__points li > span:last-child > span {
  color: var(--ps-muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.ps__points .ps__plan,
.ps__feature h3 .ps__plan {
  margin-left: 8px;
  vertical-align: 2px;
}

/* -------------------------------------------------------------------------
 * Purposes — large full-width rows
 * ---------------------------------------------------------------------- */

.ps__purposes {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ps-line-strong);
}

.ps__purpose {
  border-bottom: 1px solid var(--ps-line-strong);
}

.ps__purpose-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "mark text arrow"
    ". tag tag";
  gap: 6px 16px;
  align-items: center;
  padding: 20px 4px;
  color: inherit;
  text-decoration: none;
}

a.ps__purpose-row {
  transition: background-color 0.15s ease;
}

a.ps__purpose-row:hover {
  background: color-mix(in srgb, var(--ps-panel) 70%, transparent);
}

a.ps__purpose-row:hover .ps__row-arrow {
  color: var(--ps-accent-text);
  transform: translateX(4px);
}

.ps__purpose-mark {
  grid-area: mark;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--tile, #f76707);
  color: #ffffff;
}

.ps__purpose-mark .ps__icon {
  width: 22px;
  height: 22px;
}

.ps__purpose-mark--blue { --tile: #2b6cf0; }
.ps__purpose-mark--green { --tile: #1f9d55; }
.ps__purpose-mark--amber { --tile: #e08e00; }
.ps__purpose-mark--pink { --tile: #e64980; }
.ps__purpose-mark--orange { --tile: #f76707; }
.ps__purpose-mark--teal { --tile: #1597ad; }

.ps__purpose-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ps__purpose-text b {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.ps__purpose-text small {
  color: var(--ps-muted);
  font-size: 15px;
  line-height: 1.5;
}

.ps__purpose-tag {
  grid-area: tag;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ps-accent) 45%, transparent);
  color: var(--ps-accent-text);
  font-family: var(--ps-mono);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.ps__row-arrow {
  grid-area: arrow;
  color: var(--ps-muted);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* -------------------------------------------------------------------------
 * 0 bytes — the privacy band
 * ---------------------------------------------------------------------- */

.ps__zero-grid {
  display: grid;
  gap: 36px;
  align-items: end;
}

.ps__zero-figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps__zero-figure b {
  color: var(--ps-on-ink);
  font-size: clamp(84px, 13vw, 196px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.84;
  padding-bottom: 0.16em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ps__zero-figure span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ps-on-ink-muted);
  font-family: var(--ps-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps__zero-figure span::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ps-on-ink-accent);
}

.ps__zero-copy h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.06;
  max-width: 18ch;
}

.ps__zero-copy .ps__lead {
  margin-top: 18px;
}

.ps__zero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.ps__zero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ps-on-ink-line);
  font-size: 14px;
}

.ps__zero-points .ps__icon {
  width: 16px;
  height: 16px;
  color: var(--ps-on-ink-accent);
  stroke-width: 2.4;
}

/* -------------------------------------------------------------------------
 * Features, tools, plan chips
 * ---------------------------------------------------------------------- */

.ps__features {
  display: grid;
  gap: 16px;
}

.ps__feature {
  padding: 26px;
  border-radius: var(--ps-r-lg);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__feature h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ps__feature p {
  margin-top: 8px;
  color: var(--ps-muted);
  font-size: 15.5px;
}

.ps__plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--ps-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.ps__plan--free {
  background: var(--ps-free-bg);
  color: var(--ps-free);
}

.ps__plan--partial {
  background: var(--ps-partial-bg);
  color: var(--ps-partial);
}

.ps__plan--pro {
  background: var(--ps-pro-bg);
  color: var(--ps-pro);
}

.ps__plan-crown {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.ps__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ps__legend li {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ps-muted);
  font-size: 14px;
  max-width: 44ch;
}

.ps__tools {
  display: grid;
  gap: 16px;
}

.ps__tool {
  padding: 22px 22px 10px;
  border-radius: var(--ps-r-lg);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ps__tool-head h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ps__tool ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__tool li {
  padding: 13px 0;
  border-top: 1px solid var(--ps-line);
}

.ps__tool-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ps__tool-line b {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}

.ps__tool li p {
  margin-top: 3px;
  color: var(--ps-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * Numbers band
 * ---------------------------------------------------------------------- */

.ps__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ps-on-ink-line);
}

.ps__stat {
  padding: 26px 20px 8px 0;
}

.ps__stat dt {
  color: var(--ps-on-ink);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ps__stat dd {
  margin-top: 12px;
  color: var(--ps-on-ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
 * Plans — Pro as one line, then the table
 * ---------------------------------------------------------------------- */

.ps__plans {
  display: grid;
  gap: 14px;
}

.ps__plan-line {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: var(--ps-r-lg);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__plan-line--featured {
  box-shadow: inset 0 0 0 2px var(--ps-accent), var(--ps-shadow-sm);
}

.ps__plan-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps__plan-line--featured .ps__plan-kicker {
  color: var(--ps-accent-text);
}

.ps__plan-main h3 {
  margin-top: 12px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 24ch;
}

.ps__plan-line:not(.ps__plan-line--featured) .ps__plan-main h3 {
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ps__plan-points {
  display: grid;
  gap: 8px 28px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.ps__plan-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ps-muted);
  font-size: 15px;
  line-height: 1.45;
}

.ps__plan-points .ps__icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--ps-accent-text);
  stroke-width: 2.4;
}

.ps__plan-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.ps__plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.ps__plan-price b {
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.ps__plan-line:not(.ps__plan-line--featured) .ps__plan-price b {
  font-size: clamp(30px, 3vw, 40px);
}

.ps__plan-price span {
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ps__compare-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: var(--ps-r-lg);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ps__compare caption {
  padding: 20px 20px 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}

.ps__compare th,
.ps__compare td {
  padding: 12px 20px;
  border-top: 1px solid var(--ps-line);
  text-align: left;
  vertical-align: middle;
}

.ps__compare tbody th {
  font-weight: 500;
}

.ps__compare thead th {
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ps__compare td,
.ps__compare thead th:not(:first-child) {
  width: 22%;
  text-align: center;
}

.ps__compare-pro {
  background: var(--ps-accent-soft);
}

.ps__compare thead .ps__compare-pro {
  color: var(--ps-accent-text);
}

.ps__compare thead .ps__plan-crown {
  margin-right: 5px;
  vertical-align: -1px;
}

.ps__cmp-yes {
  display: inline-flex;
  color: var(--ps-ok);
}

.ps__cmp-yes .ps__icon {
  stroke-width: 2.6;
}

.ps__cmp-no {
  color: var(--ps-muted);
}

.ps__cmp-text {
  font-size: 14px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Data list (privacy page)
 * ---------------------------------------------------------------------- */

.ps__data {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ps-line-strong);
}

.ps__data-item {
  display: grid;
  gap: 6px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ps-line);
}

.ps__data-item h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ps__data-where {
  color: var(--ps-muted);
  font-size: 15.5px;
}

.ps__data-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ps__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--ps-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ps__chip--stays {
  background: var(--ps-ok-bg);
  color: var(--ps-ok);
}

.ps__chip--leaves {
  background: var(--ps-pro-bg);
  color: var(--ps-pro);
}

.ps__data-when {
  color: var(--ps-muted);
  font-size: 13.5px;
}

/* -------------------------------------------------------------------------
 * Notice
 * ---------------------------------------------------------------------- */

.ps__notice {
  --tone: var(--ps-free);
  --tone-bg: var(--ps-free-bg);
}

.ps__notice--warn {
  --tone: var(--ps-accent-text);
  --tone-bg: var(--ps-accent-soft);
}

.ps__notice--critical {
  --tone: var(--ps-danger);
  --tone-bg: color-mix(in srgb, var(--ps-danger) 14%, transparent);
}

.ps__notice-inner {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--ps-r-lg);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__notice-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tone-bg);
  color: var(--tone);
}

.ps__notice-head h2 {
  margin-top: 16px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ps__notice-head p {
  margin-top: 10px;
  color: var(--ps-muted);
}

.ps__notice-list {
  display: grid;
  gap: 22px 32px;
  padding: 0;
  list-style: none;
}

.ps__notice-list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 14px;
  border-top: 2px solid var(--tone);
}

.ps__notice-list b {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.ps__notice-list span {
  color: var(--ps-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
 * FAQ
 * ---------------------------------------------------------------------- */

.ps__faq-grid {
  display: grid;
  gap: 8px;
}

.ps__faq {
  border-top: 1px solid var(--ps-line-strong);
}

.ps__faq-item {
  border-bottom: 1px solid var(--ps-line-strong);
}

.ps__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.ps__faq-item summary::-webkit-details-marker {
  display: none;
}

.ps__faq-item summary i {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ps__faq-item summary i::before,
.ps__faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.ps__faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ps__faq-item summary:hover i {
  background: var(--ps-accent-soft);
}

.ps__faq-item[open] summary i {
  background: var(--ps-accent);
  box-shadow: none;
  color: var(--ps-on-accent);
  transform: rotate(45deg);
}

.ps__faq-item p {
  padding: 0 52px 24px 0;
  color: var(--ps-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 68ch;
}

/* -------------------------------------------------------------------------
 * CTA
 * ---------------------------------------------------------------------- */

.ps__cta-inner {
  display: grid;
  gap: 36px;
  align-items: end;
}

.ps__cta h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 16ch;
}

.ps__cta .ps__lead {
  margin-top: 20px;
}

.ps__cta-act {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ps__cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--ps-on-ink-line);
}

.ps__cta-act .ps__stores {
  margin-top: 22px;
}

/* -------------------------------------------------------------------------
 * Prose, figure
 * ---------------------------------------------------------------------- */

.ps__prose {
  font-size: 17px;
  line-height: 1.75;
}

.ps__prose > div > * + * {
  margin-top: 1em;
}

.ps__prose h2 {
  margin-top: 2.2em;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ps__prose h3 {
  margin-top: 1.8em;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ps__prose > div > :first-child {
  margin-top: 0;
}

.ps__prose ul,
.ps__prose ol {
  padding-left: 1.3em;
}

.ps__prose li + li {
  margin-top: 0.4em;
}

.ps__prose li::marker {
  color: var(--ps-accent-text);
}

.ps__prose a {
  color: var(--ps-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ps__prose strong {
  font-weight: 650;
}

.ps__prose table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ps-line-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.ps__prose th,
.ps__prose td {
  padding: 14px 0;
  border-bottom: 1px solid var(--ps-line);
  text-align: left;
  vertical-align: top;
}

.ps__prose th {
  width: 34%;
  padding-right: 20px;
  color: var(--ps-muted);
  font-weight: 600;
}

.ps__prose blockquote {
  margin: 1.4em 0;
  padding-left: 18px;
  border-left: 3px solid var(--ps-accent);
  color: var(--ps-muted);
}

.ps__figure img {
  width: 100%;
  border-radius: var(--ps-r-lg);
}

.ps__figure figcaption {
  margin-top: 12px;
  color: var(--ps-muted);
  font-size: 14px;
}

/* -------------------------------------------------------------------------
 * Pages, documents, posts
 * ---------------------------------------------------------------------- */

.ps__page-head {
  padding: clamp(48px, 7vw, 112px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--ps-line);
}

.ps__page-head h1 {
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  max-width: 18ch;
}

.ps__page-head .ps__lead {
  margin-top: 22px;
  max-width: 62ch;
}

.ps__doc-updated {
  margin-top: 22px;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* Plain pages and posts read from the container's left edge, under the title,
   instead of a centred column that the left-aligned title does not line up with. */
.ps__page .ps__section--text > .ps__measure,
.ps__page .ps__page-head > .ps__measure {
  margin-left: max(0px, calc((100% - 1200px - 2 * var(--ps-gutter)) / 2));
}

.ps__doc-layout {
  display: grid;
  gap: 0;
}

.ps__doc-aside {
  padding-top: 32px;
}

.ps__doc-main {
  min-width: 0;
  padding-bottom: var(--ps-band);
}

.ps__doc-main .ps__container {
  max-width: none;
  padding: 0;
}

.ps__doc-main .ps__measure {
  max-width: 760px;
  margin-left: 0;
}

.ps__doc-main .ps__section {
  padding: 40px 0 0;
  background: transparent;
}

.ps__doc-main .ps__section-head {
  margin-bottom: 24px;
}

.ps__doc-main .ps__section-head h2 {
  font-size: clamp(22px, 2.3vw, 28px);
  letter-spacing: -0.035em;
  max-width: none;
}

.ps__doc-main .ps__section-head--split {
  display: block;
}

.ps__doc-main .ps__section-head--split .ps__lead {
  margin-top: 12px;
  font-size: 16px;
}

.ps__toc {
  padding: 18px 20px;
  border-radius: var(--ps-r);
  background: var(--ps-panel);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

.ps__toc b {
  display: block;
  margin-bottom: 8px;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps__toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__toc a {
  display: block;
  padding: 6px 0;
  color: var(--ps-muted);
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
}

.ps__toc a:hover {
  color: var(--ps-accent-text);
}

.ps__post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 12.5px;
}

.ps__section--flush {
  padding-top: 0;
}

.ps__post-list {
  padding: 0;
  list-style: none;
}

.ps__post-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ps-line);
}

.ps__post-row-date {
  grid-column: 1 / -1;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 12.5px;
}

.ps__post-row h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ps__post-row h3 a {
  text-decoration: none;
}

.ps__post-row h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ps__post-row:hover h3 a {
  color: var(--ps-accent-text);
}

.ps__post-row p {
  margin-top: 6px;
  color: var(--ps-muted);
  font-size: 15.5px;
}

.ps__post-row .ps__row-arrow {
  align-self: center;
}

.ps__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.ps__pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ps-line-strong);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.ps__pager a[aria-current="page"] {
  background: var(--ps-accent);
  box-shadow: none;
  color: var(--ps-on-accent);
}

/* ---- 404 / 500 ---- */

.ps__state {
  padding: clamp(72px, 10vw, 160px) 0;
}

.ps__state-mark {
  color: var(--ps-accent-text);
  font-size: clamp(104px, 17vw, 232px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.ps__state-mark small {
  margin-left: 0.08em;
  color: var(--ps-muted);
  font-size: 0.3em;
  letter-spacing: -0.03em;
}

.ps__state h1 {
  margin-top: 28px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.ps__state .ps__lead {
  margin-top: 14px;
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.ps__footer {
  padding: clamp(56px, 6vw, 88px) 0 28px;
  background: var(--ps-tint);
  border-top: 1px solid var(--ps-line);
}

.ps__footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}

.ps__footer-about {
  grid-column: 1 / -1;
}

.ps__footer-about p {
  margin-top: 16px;
  color: var(--ps-muted);
  font-size: 15px;
  max-width: 44ch;
}

.ps__footer-promise {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ps__footer-promise li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps__footer-promise .ps__icon {
  width: 16px;
  height: 16px;
  color: var(--ps-accent-text);
  stroke-width: 2.4;
}

.ps__footer-col h2 {
  margin-bottom: 14px;
  color: var(--ps-muted);
  font-family: var(--ps-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ps__footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__footer-col a {
  font-size: 15px;
  text-decoration: none;
}

.ps__footer-col a:hover {
  color: var(--ps-accent-text);
}

.ps__footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  grid-column: 1 / -1;
}

.ps__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--ps-line);
  color: var(--ps-muted);
  font-size: 13.5px;
}

.ps__footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.ps__footer-bottom a {
  text-decoration: none;
}

.ps__footer-bottom a:hover {
  color: var(--ps-ink);
}

.ps__footer-build {
  font-family: var(--ps-mono);
  font-size: 12px;
}

.ps__builtwith {
  margin-left: 10px;
}

/* -------------------------------------------------------------------------
 * Phones: a step is a row (picture left, words right), the table tightens
 * ---------------------------------------------------------------------- */

@media (max-width: 619px) {
  .ps__flow-step {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 14px;
    padding: 12px 14px 16px 12px;
  }

  .ps__flow-step .ps__scene {
    grid-row: 1 / 4;
    margin: 0;
    align-self: start;
  }

  .ps__flow-n {
    margin: 2px 0 4px;
  }

  .ps__flow-step h3 {
    margin: 0;
    font-size: 18px;
  }

  .ps__flow-step p {
    margin: 6px 0 0;
    font-size: 14.5px;
  }

  .ps__compare th,
  .ps__compare td {
    padding: 11px 12px;
  }

  .ps__compare tbody th {
    padding-left: 16px;
    font-size: 14.5px;
  }

  .ps__compare td,
  .ps__compare thead th:not(:first-child) {
    width: 76px;
  }
}

/* -------------------------------------------------------------------------
 * Wider screens
 * ---------------------------------------------------------------------- */

@media (min-width: 620px) {
  .ps__proof--pair {
    justify-content: flex-end;
    padding-left: 0;
  }

  .ps__proof--pair .ps__proof-mat {
    margin-right: 8%;
  }

  .ps__proof-second,
  .ps__pair-second {
    display: block;
    position: absolute;
    z-index: 2;
    border-radius: 18px;
    box-shadow: 0 0 0 5px var(--ps-bg), var(--ps-shadow);
    transform: rotate(-4deg);
  }

  .ps__proof-second {
    left: 0;
    bottom: 96px;
    width: min(40%, 184px);
  }

  .ps__pair--two .ps__pair-main {
    margin-left: auto;
    margin-right: 6%;
  }

  .ps__pair-second {
    left: 2%;
    bottom: 40px;
    width: min(44%, 190px);
  }

  .ps__section--tint .ps__pair-second {
    box-shadow: 0 0 0 5px var(--ps-tint), var(--ps-shadow);
  }

  .ps__proof-mat {
    width: min(100%, 290px);
  }

  .ps__pair-main {
    width: min(64%, 290px);
  }

  .ps__flow,
  .ps__features,
  .ps__tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps__plan-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps__notice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps__footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps__footer-contact {
    grid-column: auto;
  }

  .ps__post-row {
    grid-template-columns: 150px minmax(0, 1fr) auto;
  }

  .ps__post-row-date {
    grid-column: auto;
    padding-top: 6px;
  }
}

@media (min-width: 760px) {
  .ps__purpose-row {
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    grid-template-areas: "mark text tag arrow";
    gap: 24px;
    padding: 26px 8px;
  }

  .ps__purpose-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .ps__purpose-mark .ps__icon {
    width: 25px;
    height: 25px;
  }

  .ps__purpose-tag {
    justify-self: end;
    font-size: 13px;
    padding: 7px 14px;
    white-space: nowrap;
  }

  .ps__data-item {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(170px, 0.6fr);
    align-items: start;
  }

  .ps__data-verdict {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 960px) {
  :root {
    --ps-header-h: 72px;
  }

  .ps__section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: end;
  }

  .ps__section-head--split .ps__lead {
    margin-top: 0;
    padding-bottom: 6px;
  }

  .ps__hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .ps__proof {
    padding: 36px 34px 44px 0;
  }

  .ps__proof-mat {
    width: min(100%, 300px);
  }

  .ps__showcase-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 104px);
  }

  .ps__showcase--flip .ps__pair {
    order: -1;
  }

  .ps__pair-main {
    width: min(62%, 300px);
  }

  .ps__flow--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps__flow--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ps__features,
  .ps__tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ps__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ps__zero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
  }

  .ps__plan-line {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }

  .ps__plan-buy {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
  }

  .ps__plan-price {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .ps__notice-inner {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    gap: 56px;
  }

  .ps__faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
    gap: 64px;
    align-items: start;
  }

  .ps__faq-grid .ps__section-head {
    position: sticky;
    top: calc(var(--ps-header-h) + 32px);
    display: block;
  }

  .ps__faq-grid .ps__section-head .ps__lead {
    margin-top: 18px;
  }

  .ps__cta-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 64px;
  }

  .ps__cta-act {
    align-items: flex-end;
  }

  .ps__cta-act .ps__stores {
    justify-content: flex-end;
  }

  .ps__doc-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 72px;
  }

  .ps__doc-aside {
    padding-top: 48px;
  }

  .ps__doc-aside .ps__toc {
    position: sticky;
    top: calc(var(--ps-header-h) + 28px);
    padding: 0 0 0 16px;
    border-radius: 0;
    background: transparent;
    box-shadow: inset 1px 0 0 var(--ps-line);
  }

  .ps__doc-main .ps__section {
    padding-top: 48px;
  }

  .ps__footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }

  .ps__footer-about {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .ps__header-inner {
    gap: 24px;
  }

  .ps__menu-button,
  .ps__header-inner:has(#ps-menu:target) .ps__menu-button--close {
    display: none;
  }

  .ps__header-panel,
  .ps__header-panel:target {
    display: flex;
    position: static;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    background: transparent;
    border-top: 0;
    overflow: visible;
  }

  .ps__header-panel .ps__nav {
    margin: 0 auto;
  }

  .ps__nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .ps__nav a {
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--ps-muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .ps__nav a:hover {
    background: var(--ps-accent-soft);
    color: var(--ps-ink);
  }

  .ps__header-actions {
    margin-top: 0;
    flex-wrap: nowrap;
  }

  .ps__lang ul {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
  }
}

@media (min-width: 1280px) {
  .ps__brand-text small {
    display: block;
  }
}

/* -------------------------------------------------------------------------
 * Motion
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ps *,
  .ps *::before,
  .ps *::after {
    transition: none !important;
    animation: none !important;
  }

  .ps a.ps__store:hover {
    transform: none;
  }
}
