/*
 * PhotoSlim — the product site of an offline photo compressor: pick a size, get
 * a smaller photo, nothing uploaded.
 *
 * The app icon decides this file:
 *
 *   - The accent is the icon's orange, taken down to #CF4A0C so white button
 *     text on it passes 4.5:1. Everything a visitor can press is that orange.
 *   - The brand gradient — amber #FFB547, orange #FF7A1A, vermilion #F2400F — is
 *     the icon's tile. It is kept for the few marks that ARE the brand: the step
 *     numbers, the size tag in the hero, the Pro badge, the hero glow.
 *   - Blue (#2B6CF0) is the app's own UI colour. It appears inside the app
 *     screenshots and on the "free" chip, and nowhere else.
 *   - The page is warm paper: an off-white with a faint peach tint and hairline
 *     rules, so the photos and the orange do the talking.
 *
 * No web font is loaded, on purpose: a site that promises "never uploaded" should
 * not open with a request to a font CDN. The stacks below reach each platform's
 * own Japanese faces (Hiragino, Yu Gothic, Noto Sans JP).
 */

/* -------------------------------------------------------------------------
 * 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-accent-2: #e65a12;
  --ps-on-accent: #ffffff;
  --ps-brand-1: #ffb547;
  --ps-brand-2: #ff7a1a;
  --ps-brand-3: #f2400f;
  --ps-brand: linear-gradient(135deg, var(--ps-brand-1), var(--ps-brand-2) 55%, var(--ps-brand-3));
  --ps-app-blue: #2b6cf0;

  --ps-radius: 16px;
  --ps-radius-sm: 12px;
  --ps-radius-lg: 22px;
  --ps-pill: 999px;

  --ps-header-h: 62px;
  --ps-band: clamp(52px, 5.6vw, 92px);
  --ps-band-sm: clamp(28px, 3vw, 44px);
  --ps-head-gap: clamp(26px, 3vw, 40px);
  --ps-doc-gap: 38px;

  --ps-font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, "Segoe UI", Roboto, sans-serif;

  --ps-bg: #fffaf4;
  --ps-surface: #fffdf9;
  --ps-panel: #ffffff;
  --ps-panel-2: #fbf1e6;
  --ps-tint: #fff3e6;
  --ps-paper: #fffdf8;
  --ps-line: #f0e0cf;
  --ps-ink: #22160f;
  --ps-muted: #6d5a4d;
  --ps-shadow: 0 24px 56px -18px rgba(120, 50, 10, 0.28);
  --ps-shadow-sm: 0 6px 18px -6px rgba(120, 50, 10, 0.2);
  --ps-card-shadow: 0 1px 0 rgba(120, 50, 10, 0.04), 0 10px 26px -18px rgba(120, 50, 10, 0.35);
  --ps-medium: #e8a100;
  --ps-pro: #b43d06;
  --ps-pro-bg: #ffe8d4;
  --ps-free: #1f5fd6;
  --ps-free-bg: #e8f0fe;
  --ps-ok: #1f9d55;
  --ps-danger: #d6336c;
  --ps-accent-text: #b8400a;
  --ps-accent-soft: #ffeadb;
  --ps-grid: rgba(242, 101, 18, 0.06);
  --ps-glow: rgba(255, 138, 42, 0.22);
  --ps-glow-2: rgba(255, 196, 80, 0.2);
  --ps-scene-plate: #fff1e3;
  --ps-scene-paper: #ffffff;
  --ps-scene-edge: #f0dcc8;
  --ps-scene-bar: #efdfcf;
  --ps-scene-bar-strong: #c9b3a0;
  --ps-scene-frame: #ffffff;
  --ps-chip: #f4ece4;
  --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: #16110d;
    --ps-surface: #1b1510;
    --ps-panel: #221a14;
    --ps-panel-2: #2c231b;
    --ps-tint: #1a140f;
    --ps-paper: #2c231b;
    --ps-line: #3a2e24;
    --ps-ink: #f7eee6;
    --ps-muted: #b9a697;
    --ps-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.7);
    --ps-shadow-sm: 0 8px 22px -6px rgba(0, 0, 0, 0.55);
    --ps-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px -18px rgba(0, 0, 0, 0.8);
    --ps-medium: #f5c451;
    --ps-pro: #ffb37a;
    --ps-pro-bg: rgba(255, 138, 42, 0.16);
    --ps-free: #8db4ff;
    --ps-free-bg: rgba(91, 145, 255, 0.16);
    --ps-ok: #3ec97a;
    --ps-danger: #ff7aa2;
    --ps-accent-text: #ffa36b;
    --ps-accent-soft: rgba(255, 128, 60, 0.15);
    --ps-grid: rgba(255, 150, 80, 0.05);
    --ps-glow: rgba(255, 110, 30, 0.2);
    --ps-glow-2: rgba(255, 180, 60, 0.1);
    --ps-scene-plate: #251d16;
    --ps-scene-paper: #33291f;
    --ps-scene-edge: #4a3c30;
    --ps-scene-bar: #4d4035;
    --ps-scene-bar-strong: #7d6c5e;
    --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: #16110d;
  --ps-surface: #1b1510;
  --ps-panel: #221a14;
  --ps-panel-2: #2c231b;
  --ps-tint: #1a140f;
  --ps-paper: #2c231b;
  --ps-line: #3a2e24;
  --ps-ink: #f7eee6;
  --ps-muted: #b9a697;
  --ps-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.7);
  --ps-shadow-sm: 0 8px 22px -6px rgba(0, 0, 0, 0.55);
  --ps-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px -18px rgba(0, 0, 0, 0.8);
  --ps-medium: #f5c451;
  --ps-pro: #ffb37a;
  --ps-pro-bg: rgba(255, 138, 42, 0.16);
  --ps-free: #8db4ff;
  --ps-free-bg: rgba(91, 145, 255, 0.16);
  --ps-ok: #3ec97a;
  --ps-danger: #ff7aa2;
  --ps-accent-text: #ffa36b;
  --ps-accent-soft: rgba(255, 128, 60, 0.15);
  --ps-grid: rgba(255, 150, 80, 0.05);
  --ps-glow: rgba(255, 110, 30, 0.2);
  --ps-glow-2: rgba(255, 180, 60, 0.1);
  --ps-scene-plate: #251d16;
  --ps-scene-paper: #33291f;
  --ps-scene-edge: #4a3c30;
  --ps-scene-bar: #4d4035;
  --ps-scene-bar-strong: #7d6c5e;
  --ps-scene-frame: #3a2f25;
  --ps-chip: #33291f;
  --ps-chip-ink: #f1e4d8;
}


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

.ps {
  background: var(--ps-bg);
  color: var(--ps-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

/*
 * The resets sit under `:where()` so they weigh nothing.
 *
 * Written as `.ps p` they scored (0,1,1) and beat every one-class rule that sets
 * a paragraph's margin — `.ps__lead`, `.ps__note`, `.ps__eyebrow`,
 * `.ps__doc-updated`, `.ps__data-where` — so each of those spacings silently
 * came out as 0 and the lead sat on the headline, the notes on the cards above
 * them and the update date on the page title. Zero-weight resets let the
 * component rules below say what they mean.
 */
:where(.ps) h1,
:where(.ps) h2,
:where(.ps) h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.ps h1 {
  font-size: clamp(32px, 4.4vw, 52px);
}

.ps h2 {
  font-size: clamp(25px, 2.9vw, 36px);
}

.ps h3 {
  font-size: 19px;
  font-weight: 700;
}

:where(.ps) p {
  margin: 0;
}

.ps a {
  color: inherit;
}

.ps img {
  max-width: 100%;
  height: auto;
}

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

.ps__container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.ps__measure {
  max-width: 760px;
}

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

/* The header is sticky, so anything an in-page link scrolls to has to clear it —
   every band with an anchor, every numbered heading on a policy page. */
.ps [id] {
  scroll-margin-top: calc(var(--ps-header-h) + 16px);
}

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

.ps__skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 12px 18px;
  background: var(--ps-accent);
  color: var(--ps-on-accent);
  border-radius: 0 0 var(--ps-radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}

.ps__skip:focus {
  left: 0;
}

/* -------------------------------------------------------------------------
 * Type and controls
 * ---------------------------------------------------------------------- */

.ps__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--ps-pill);
  background: linear-gradient(180deg, var(--ps-accent-2), var(--ps-accent));
  color: var(--ps-on-accent);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  box-shadow: var(--ps-shadow-sm);
}

.ps__button:hover {
  filter: brightness(1.05);
}

.ps__button--ghost {
  background: transparent;
  color: var(--ps-ink);
  border: 1.5px solid var(--ps-line);
  box-shadow: none;
}

.ps__button--small {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 15px;
}

.ps__text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ps-accent-text);
  font-weight: 700;
  text-decoration: none;
}

.ps__text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.ps__eyebrow {
  margin-bottom: 12px;
  color: var(--ps-accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ps__lead {
  margin-top: 16px;
  color: var(--ps-muted);
  font-size: clamp(17px, 1.5vw, 19px);
}

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

.ps__note {
  margin-top: 22px;
  color: var(--ps-muted);
  font-size: 15px;
}

.ps__empty {
  padding: 40px 0;
  color: var(--ps-muted);
  text-align: center;
}

.ps__section-head {
  max-width: 720px;
  margin-bottom: var(--ps-head-gap);
}

.ps__section-head--center {
  margin-inline: auto;
  text-align: center;
}

.ps__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/*
 * No `backdrop-filter` here on mobile, and that is not a style choice.
 *
 * `backdrop-filter` (like `filter` and `transform`) makes an element the
 * containing block for its `position: fixed` descendants. With it on, the
 * drawer's `top: 62px; bottom: 0` resolved against the 62px-tall HEADER rather
 * than the viewport, and the menu opened as a 48px sliver with the close button
 * in it. The blur is restored at ≥900px, where the panel is static and cannot be
 * caught by it.
 */
.ps__header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ps-surface);
  border-bottom: 1px solid var(--ps-line);
}

/*
 * The bar keeps ONE height on mobile, always.
 *
 * It used to be a wrapping flex row with the menu panel as a full-width child,
 * so opening the menu grew the sticky header and shoved the page under it. The
 * panel is now a fixed overlay (below) and the bar never wraps, which is what
 * makes the header a fixed, known quantity — the drawer hangs off it and every
 * in-page anchor offsets by it.
 */
.ps__header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--ps-header-h);
  flex-wrap: nowrap;
}

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

/*
 * Three bars, drawn absolutely so the box stays 2px tall whatever the bars do.
 *
 * The earlier version put the outer two in flow with `position: relative` and
 * `top` nudges, which meant crossing them into an × moved the box as well as the
 * bars. Absolute takes the pseudo-elements out of layout entirely: the × is two
 * rotations and nothing shifts.
 */
.ps__menu-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

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

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

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

/* Open: the middle bar goes, the outer two cross. */
.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 in the markup and there is
 * no previous-sibling combinator. It is not a new floor for this theme — the
 * palette already depends on `color-mix()`, which landed later than `:has()` in
 * every engine. Where `:has()` is missing the opener simply stays put; the menu
 * still opens, and still closes on any menu link or the back button.
 */
.ps__menu-button--close {
  display: none;
}

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

/* Open, and looking it: the button wears the accent while the drawer is down. */
.ps__header-inner:has(#ps-menu:target) .ps__menu-button--close {
  display: inline-flex;
  border-color: var(--ps-accent);
  background: color-mix(in srgb, var(--ps-accent) 12%, transparent);
  color: var(--ps-accent-text);
}

/*
 * The drawer.
 *
 * `position: fixed` under the bar, so opening it changes NOTHING about the
 * header's height or the page's layout — the defect this replaced. It scrolls
 * itself when a long menu meets a short phone, and `overscroll-behavior` keeps
 * that scroll from chaining into the page behind it.
 */
.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: 20px;
  background: var(--ps-surface);
  border-top: 1px solid var(--ps-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ps__header-panel .ps__nav {
  margin-top: 4px;
}

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

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

.ps__nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--ps-line);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

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

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

.ps__brand img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}

.ps__brand-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--ps-accent-2), var(--ps-accent));
  color: var(--ps-on-accent);
}

.ps__brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.ps__brand-text strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps__brand-text small {
  color: var(--ps-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps__brand--compact img,
.ps__brand--compact .ps__brand-mark {
  width: 38px;
  height: 38px;
}

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

.ps__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.ps__icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- Language switcher ---- */

.ps__lang {
  position: relative;
}

.ps__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-line);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

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

/*
 * A flag is a small rectangle of real-world colour, so it needs an edge of its
 * own: the Japanese flag is a white field, and without a rim it reads on a white
 * page as a floating red dot.
 *
 * The rim is an OUTSET ring, not `inset`. An inset box-shadow paints between the
 * element's background and its content, and each of these flags starts with a
 * full-bleed `<rect>` — which covered the ring exactly where it was needed. Grey
 * rather than black so the same value works in both colour modes.
 */
.ps__flag {
  width: 21px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
}

.ps__lang ul {
  position: absolute;
  /* In the drawer the switcher sits at the left edge, so the list opens
     rightwards from it; anchored right it would hang off the screen. */
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: 178px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-sm);
  box-shadow: var(--ps-shadow);
}

.ps__lang a {
  display: flex;
  align-items: center;
  gap: 9px;
  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-panel-2);
}

/* -------------------------------------------------------------------------
 * Store buttons
 * ---------------------------------------------------------------------- */

.ps__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ps .ps__store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px 10px 16px;
  border-radius: var(--ps-radius-sm);
  background: var(--ps-ink);
  color: var(--ps-bg);
  text-decoration: none;
}

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

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

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

.ps__store strong {
  font-size: 17px;
  font-weight: 700;
}

.ps .ps__store--soon {
  background: transparent;
  color: var(--ps-muted);
  border: 1.5px dashed var(--ps-line);
}


/* -------------------------------------------------------------------------
 * The flow
 * ---------------------------------------------------------------------- */

.ps__flow {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ps__flow-step {
  position: relative;
  padding: 18px 20px 24px;
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
}

.ps__flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ps-accent-2), var(--ps-accent));
  color: var(--ps-on-accent);
  font-size: 15px;
  font-weight: 700;
}

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

/* -------------------------------------------------------------------------
 * Features
 * ---------------------------------------------------------------------- */

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

.ps__feature {
  padding: 22px;
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
}

.ps__feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ps-accent) 12%, transparent);
  color: var(--ps-accent-text);
}

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

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

.ps__stats-band {
  padding-block: var(--ps-band);
  background: var(--ps-tint);
}

.ps__stats {
  display: grid;
  gap: 20px;
  margin: 0;
}

.ps__stat {
  padding: 20px;
  border-radius: var(--ps-radius);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
  text-align: center;
}

.ps__stat dt {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ps-accent-text);
  font-variant-numeric: tabular-nums;
}

.ps__stat dd {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 14.5px;
}


/* -------------------------------------------------------------------------
 * The data list
 * ---------------------------------------------------------------------- */

.ps__data {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__data-item {
  padding: 18px 20px;
  border-radius: var(--ps-radius);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
}

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

.ps__data-head h3 {
  font-size: 17px;
}

.ps__chip {
  padding: 4px 12px;
  border-radius: var(--ps-pill);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/*
 * "Stays on your device" is the reassuring answer and wears the accent tint; the
 * one worth reading twice is amber — "only when you share it yourself".
 */
.ps__chip--stays {
  background: color-mix(in srgb, var(--ps-accent) 12%, transparent);
  color: var(--ps-accent-text);
}

.ps__chip--leaves {
  background: color-mix(in srgb, var(--ps-medium) 20%, transparent);
  color: var(--ps-ink);
}

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

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

/* -------------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */

.ps__notice {
  padding-block: var(--ps-band-sm);
}

.ps__notice-inner {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
  border-left: 4px solid var(--ps-muted);
}

.ps__notice--info .ps__notice-inner {
  border-left-color: var(--ps-accent);
}

.ps__notice--warn .ps__notice-inner {
  border-left-color: var(--ps-medium);
}

.ps__notice--critical .ps__notice-inner {
  border-left-color: var(--ps-danger);
}

.ps__notice-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ps-panel-2);
}

.ps__notice-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps__notice h2 {
  font-size: 21px;
}

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

.ps__notice-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ps__notice-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid var(--ps-line);
}

.ps__notice-list b {
  font-size: 15.5px;
}

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

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

.ps__faq {
  display: grid;
  gap: 10px;
}

.ps__faq-item {
  padding: 4px 20px;
  border-radius: var(--ps-radius);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
}

.ps__faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.ps__faq-item summary i {
  flex: none;
  margin-right: 3px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--ps-accent);
  border-bottom: 2.5px solid var(--ps-accent);
  transform: translateY(-3px) rotate(45deg);
}

.ps__faq-item[open] summary i {
  transform: translateY(2px) rotate(-135deg);
}

.ps__faq-item p {
  padding-bottom: 18px;
  color: var(--ps-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Closing band
 * ---------------------------------------------------------------------- */

.ps__cta {
  padding-block: var(--ps-band);
  background: var(--ps-tint);
  background-image:
    linear-gradient(var(--ps-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ps-grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

.ps__cta-inner {
  max-width: 720px;
  text-align: center;
}

.ps__cta-inner .ps__stores,
.ps__cta-inner .ps__actions {
  justify-content: center;
}

/* -------------------------------------------------------------------------
 * Pages, documents and prose
 * ---------------------------------------------------------------------- */

.ps__page-head {
  padding-block: clamp(36px, 4vw, 60px) 0;
}

.ps__page-head h1 {
  max-width: 22ch;
}

.ps__doc-updated {
  margin-top: 14px;
  color: var(--ps-muted);
  font-size: 14px;
}

.ps__doc-lead {
  padding: 18px 20px;
  border-radius: var(--ps-radius);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
  color: var(--ps-ink);
}

/*
 * A page is ONE column, whatever the blocks inside it happen to be.
 *
 * Every block draws its own full-bleed band with a container inside, and those
 * containers disagree on purpose: prose is set to a reading measure (760px)
 * while a data list takes the full 1180px, because on the HOMEPAGE that
 * difference is the layout. On a privacy page it is not a layout — it is text
 * that steps in and out by 200px on each side as the reader scrolls. So this
 * pins every container on such a page to one width, and the reading measure
 * inside it becomes a no-op.
 */
.ps__page--doc .ps__container {
  width: min(880px, 100% - 40px);
}

.ps__page--doc .ps__measure {
  max-width: none;
}

.ps__doc .ps__section {
  padding-block: 0;
}

.ps__doc .ps__section + .ps__section {
  padding-top: var(--ps-doc-gap);
}

/* The page head ends in the contents box and the last section ends in prose;
   neither is a band with its own padding, so the document supplies the gap to
   the first heading and to the footer itself. */
.ps__doc .ps__page-head {
  padding-bottom: var(--ps-doc-gap);
}

.ps__doc {
  padding-bottom: var(--ps-band);
}


/*
 * A block heading inside a document is a section heading like any other.
 *
 * The data list draws its heading through the theme's normal section head, which
 * is sized for a marketing band (up to 36px). On the privacy page that heading is
 * numbered and sits in the contents list beside prose headings set at 26px, so
 * left alone it printed one section of the document a size larger than the rest.
 */
.ps__doc .ps__section-head h2 {
  font-size: clamp(21px, 2.2vw, 26px);
}

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

.ps__toc {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--ps-radius);
  background: var(--ps-panel-2);
}

.ps__toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.ps__toc ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__toc a {
  color: var(--ps-accent-text);
  font-size: 15px;
  text-decoration: none;
}

.ps__toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ps__prose {
  font-size: 17px;
}

.ps__prose h2 {
  margin-top: 38px;
  font-size: clamp(21px, 2.2vw, 26px);
}

.ps__prose h3 {
  margin-top: 26px;
}

.ps__prose h2:first-child,
.ps__prose h3:first-child {
  margin-top: 0;
}

.ps__prose p,
.ps__prose ul,
.ps__prose ol {
  margin-top: 14px;
}

.ps__prose ul,
.ps__prose ol {
  padding-left: 22px;
}

/* The host page's reset strips list markers; prose lists need theirs back, or
   an indented list reads as a stray indented paragraph. */
.ps__prose ul {
  list-style: disc;
}

.ps__prose ol {
  list-style: decimal;
}

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

.ps__prose li {
  margin-top: 7px;
}

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

.ps__prose strong {
  font-weight: 700;
}

.ps__prose table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 15.5px;
}

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

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

.ps__figure {
  margin: 0;
}

.ps__figure img {
  border-radius: var(--ps-radius);
}

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

/* -------------------------------------------------------------------------
 * Posts
 * ---------------------------------------------------------------------- */

.ps__post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--ps-muted);
  font-size: 14px;
}

.ps__post-grid {
  display: grid;
  gap: 16px;
}

.ps__post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  border: 1px solid var(--ps-line);
}

.ps__post-card h3 {
  margin-top: 6px;
}

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

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

.ps__post-card-date {
  color: var(--ps-muted);
  font-size: 13px;
}

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

.ps__pager a {
  min-width: 42px;
  padding: 9px 12px;
  border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-line);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

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

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

.ps__state {
  padding-block: clamp(60px, 9vw, 120px);
  text-align: center;
}

.ps__state .ps__measure {
  margin-inline: auto;
}

.ps__state-mark {
  font-size: clamp(64px, 11vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ps-line);
}

.ps__state h1 {
  margin-top: 12px;
}

.ps__state p {
  margin-top: 14px;
  color: var(--ps-muted);
}

.ps__state .ps__actions {
  justify-content: center;
}

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

.ps__footer {
  padding-block: var(--ps-band) 32px;
  background: var(--ps-surface);
  border-top: 1px solid var(--ps-line);
}

/*
 * Two link columns from the narrowest screen up.
 *
 * "Product" and "More" are four or five one-word links each. Stacked one per
 * row on a phone they turned the footer into a column of ten items a thumb has
 * to scroll past; side by side they read as two short lists and the footer ends
 * a screen earlier. The brand block and Contact keep the full width — a
 * paragraph and an email address do not halve well.
 */
.ps__footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

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

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

.ps__footer-build {
  font-variant-numeric: tabular-nums;
}

.ps__footer-col h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.ps__footer-col ul {
  display: grid;
  gap: 9px;
  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;
}

/*
 * Centred on a phone, split to the two edges on a desktop.
 *
 * `space-between` on a narrow screen does nothing useful: both halves wrap onto
 * their own row and each sits hard against the left margin, which reads as two
 * stray lines rather than as the closing rule of the page.
 */
.ps__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--ps-line);
  color: var(--ps-muted);
  font-size: 13.5px;
  text-align: center;
}

.ps__footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

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

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

.ps__builtwith {
  margin-left: 10px;
}


/* -------------------------------------------------------------------------
 * Widths
 *
 * Mobile first, and the two breakpoints are where the CONTENT needs them, not
 * where a device happens to be: 640px is where two cards fit side by side, and
 * 900px is where the header stops needing a menu button and the hero can put the
 * phone next to the words.
 * ---------------------------------------------------------------------- */

@media (min-width: 640px) {
  .ps__flow,
  .ps__features,
  .ps__stats,
  .ps__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .ps__header {
    background: color-mix(in srgb, var(--ps-surface) 92%, transparent);
    backdrop-filter: blur(12px);
  }

  /* Above this width the menu is not a drawer at all: it is a row in the bar,
     always open, static, with no target to reach and no button to reach it. */
  .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-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border-top: 0;
    overflow: visible;
  }

  .ps__nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 22px;
  }

  .ps__nav a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 600;
  }

  .ps__header-actions {
    margin-top: 0;
  }

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

  .ps__brand img,
  .ps__brand-mark {
    width: 44px;
    height: 44px;
  }

  .ps__brand-text strong {
    font-size: 19px;
  }

  /* The phones get the wider half. Two app screens side by side need more
     room than a headline and three chips, and the headline reads fine at 500px. */
  .ps__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }

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

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

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

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

  .ps__footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

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

  .ps__footer-bottom {
    justify-content: space-between;
    text-align: left;
  }
}

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



/* =========================================================================
 * PhotoSlim
 *
 * Everything below is this theme's own. It sits after the shared furniture so
 * it can restyle it without rewriting its layout.
 * ====================================================================== */

.ps {
  font-family: var(--ps-font);
  font-size: 16.5px;
  line-height: 1.7;
}

/* Japanese sets looser and breaks at phrase boundaries where the engine can:
   a headline broken in the middle of 押印 reads as a typo. */
.ps:lang(ja) {
  letter-spacing: 0.02em;
}

.ps :lang(ja) :is(h1, h2, h3, .ps__lead, .ps__note),
.ps:lang(ja) :is(h1, h2, h3, .ps__lead, .ps__note) {
  word-break: auto-phrase;
  letter-spacing: 0.01em;
}

.ps h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.16;
}

.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__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
}

/* A short orange rule before every eyebrow, in the brand gradient. */
.ps__eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--ps-brand);
}

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

.ps__note--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.ps__section--tint {
  background: var(--ps-tint);
  border-block: 1px solid var(--ps-line);
}

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

.ps__button {
  background: var(--ps-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px -8px color-mix(in srgb, var(--ps-accent) 70%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ps__button:hover {
  filter: none;
  transform: translateY(-1px);
  background: var(--ps-accent-2);
}

.ps__button--ghost {
  background: var(--ps-panel);
  color: var(--ps-ink);
  border: 1px solid var(--ps-line);
  box-shadow: none;
}

.ps__button--ghost:hover {
  background: var(--ps-panel);
  border-color: var(--ps-accent);
  color: var(--ps-accent-text);
}

.ps .ps__store {
  transition: transform 0.15s ease;
}

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

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

.ps__header {
  background: var(--ps-surface);
}

.ps__brand img {
  border-radius: 11px;
  box-shadow: 0 2px 8px -2px rgba(242, 64, 15, 0.45);
}

.ps__brand-mark {
  background: var(--ps-brand);
  border-radius: 11px;
  box-shadow: 0 2px 8px -2px rgba(242, 64, 15, 0.45);
}

.ps__brand-mark svg {
  width: 100%;
  height: 100%;
  stroke: none;
}

/* =========================================================================
 * Hero
 * ====================================================================== */

.ps__hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 80px) var(--ps-band);
  background-color: var(--ps-bg);
  background-image:
    radial-gradient(55% 65% at 80% 35%, var(--ps-glow), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, var(--ps-glow-2), transparent 70%),
    linear-gradient(var(--ps-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ps-grid) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    32px 32px,
    32px 32px;
  border-bottom: 1px solid var(--ps-line);
}

/* The app, introduced by its own icon: the tile a visitor will look for on
   their home screen after installing it. */
.ps__hero-app {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.ps__hero-app img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 15px;
  box-shadow: 0 12px 24px -10px rgba(242, 64, 15, 0.55);
}

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

/* On a phone the header already shows the icon and name a thumb's width above. */
@media (max-width: 619px) {
  .ps__hero-app {
    display: none;
  }
}

.ps__hero-app strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.ps__hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.ps__hero-copy h1 .ps__accent {
  display: block;
  margin-top: 6px;
  color: var(--ps-accent-text);
}

.ps__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ps__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  color: var(--ps-ink);
  font-size: 14.5px;
  font-weight: 600;
}

/* Two columns from tablet width up, so four promises sit 2 × 2 instead of
   three and a stray one. */
@media (min-width: 620px) {
  .ps__hero-notes {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 28px;
  }
}

.ps__hero-notes .ps__icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ps-accent);
  color: #fff;
  stroke-width: 3;
}

/* =========================================================================
 * The phones
 *
 * The whole mockup scales off ONE number: `--pp` is the screen width, read
 * from the phone's own rendered width with `cqw`, and every size inside is a
 * fraction of it. The pair shrinks to a 390px viewport without a single extra
 * media query. The px value is the fallback where container queries are
 * missing — a `--pp` that failed to parse would take every calc() with it.
 *
 * The screens follow the site's colour mode: the app's light screenshots on the
 * light page, its dark ones on the dark page (see .ps__shot below).
 * ====================================================================== */

.ps__phones {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  width: 100%;
}

.ps__phone {
  container-type: inline-size;
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px;
}

@media (max-width: 619px) {
  .ps__phone--second {
    display: none;
  }
}

/* The frame is drawn; the screen inside is the app's real screenshot, in the
   appearance matching the site's mode. `--pp` is the screen width, read with
   `cqw` from the phone's own box, and the bezel and corners are fractions of it. */
.ps__phone-screen {
  --pp: 264px;
  --pp: 100cqw;
  position: relative;
  overflow: hidden;
  aspect-ratio: 600 / 1305;
  border: calc(var(--pp) * 0.03) solid #16161a;
  border-radius: calc(var(--pp) * 0.15);
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    var(--ps-shadow);
}

.ps__phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Light or dark screenshot, by the same three-step mechanism as the colour
   tokens: light by default, dark from the OS unless light was chosen, dark when
   chosen. The hidden one is display:none, so a lazy one is never fetched. */
.ps__phone-screen .ps__shot--dark {
  display: none;
}

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

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

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

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

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

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

/* The dynamic island: a pill of black at the top that makes the frame a phone.
   It sits over the screenshot's own empty status-bar gap. */
.ps__phone-screen::before {
  content: "";
  position: absolute;
  top: calc(var(--pp) * 0.028);
  left: 50%;
  z-index: 3;
  width: 30%;
  height: calc(var(--pp) * 0.078);
  border-radius: 999px;
  background: #0b0b0d;
  transform: translateX(-50%);
}

/* The second phone sits lower, so the pair reads as two moments, not a wall. */
.ps__phones .ps__phone--second {
  margin-top: clamp(28px, 5vw, 64px);
}

/* The size tag: the before crossed out, the after in white on the brand. */
.ps__badge {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--ps-brand);
  color: #ffffff;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 16px 34px -12px rgba(242, 64, 15, 0.65);
  transform: translateX(-50%) rotate(-4deg);
}

.ps__badge s {
  font-weight: 600;
  opacity: 0.85;
  text-decoration-thickness: 2px;
}

.ps__badge-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 619px) {
  .ps__badge {
    left: auto;
    right: 2%;
    bottom: 12%;
    transform: rotate(-4deg);
  }

  .ps__phones .ps__phone {
    max-width: 260px;
  }
}


/* =========================================================================
 * Scenes
 * ====================================================================== */

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

.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-brand-2);
}

.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;
}


/* =========================================================================
 * Cards: flow, features, tools, stats
 * ====================================================================== */

.ps__flow-step,
.ps__feature,
.ps__tool,
.ps__stat,
.ps__data-item,
.ps__faq-item,
.ps__post-card,
.ps__notice-inner {
  background: var(--ps-panel);
  box-shadow: var(--ps-card-shadow);
}

.ps__flow-step {
  padding: 16px 18px 22px;
}

.ps__flow-n {
  background: var(--ps-brand);
}

.ps__feature h3,
.ps__points b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ps__feature-mark {
  background: var(--ps-accent-soft);
  color: var(--ps-accent-text);
}

.ps__stat dt {
  color: var(--ps-accent-text);
  font-weight: 800;
}

.ps__stats-band {
  background: var(--ps-tint);
  border-block: 1px solid var(--ps-line);
}

/* ---- Plan chips: free, free with limits, Pro ---- */

.ps__plan {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--ps-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
}

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

.ps__plan--partial {
  background: var(--ps-panel-2);
  color: var(--ps-muted);
  box-shadow: inset 0 0 0 1px var(--ps-line);
}

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

.ps__plan-crown {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.ps__legend {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 16px 18px;
  border-radius: var(--ps-radius);
  background: var(--ps-tint);
  border: 1px solid var(--ps-line);
  list-style: none;
}

.ps__legend li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ps-muted);
  font-size: 14.5px;
}

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

.ps__tool {
  padding: 22px;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
}

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

.ps__tool-head .ps__feature-mark {
  margin-bottom: 0;
}

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

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

.ps__tool li:first-child {
  border-top: 0;
}

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

.ps__tool-line b {
  font-size: 15.5px;
}

.ps__tool li p {
  margin-top: 4px;
  color: var(--ps-muted);
  font-size: 14.5px;
}

/* =========================================================================
 * Showcase: words beside one phone
 * ====================================================================== */

.ps__showcase-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ps__showcase-phone {
  display: flex;
  justify-content: center;
}

.ps__showcase-phone .ps__phone {
  width: min(300px, 78vw);
  flex: none;
}

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

.ps__points li {
  display: flex;
  gap: 14px;
}

.ps__points .ps__feature-mark {
  flex: none;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 12px;
}

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

.ps__points b {
  font-size: 16.5px;
}

.ps__points span span {
  color: var(--ps-muted);
  font-size: 15px;
}

/* =========================================================================
 * Plans and the comparison
 * ====================================================================== */

.ps__plans {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}

.ps__plan-card {
  position: relative;
  padding: 26px 24px 24px;
  border: 1.5px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  box-shadow: var(--ps-card-shadow);
}

.ps__plan-card--featured {
  border-color: var(--ps-accent);
  background: linear-gradient(180deg, var(--ps-accent-soft), var(--ps-panel) 60%);
}

.ps__plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 3px 12px;
  border-radius: var(--ps-pill);
  background: var(--ps-accent);
  color: var(--ps-on-accent);
  font-size: 12.5px;
  font-weight: 800;
}

.ps__plan-card h3 {
  font-size: 16px;
  color: var(--ps-muted);
}

.ps__plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.ps__plan-price b {
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ps__plan-card--featured .ps__plan-price b {
  color: var(--ps-accent-text);
}

.ps__plan-price span {
  color: var(--ps-muted);
  font-weight: 600;
}

.ps__plan-note {
  margin-top: 6px;
  color: var(--ps-muted);
  font-size: 14.5px;
}

/* The table scrolls sideways inside its own box rather than pushing the page
   wider than the phone reading it. */
.ps__compare-wrap {
  max-width: 980px;
  margin: 32px auto 0;
  overflow-x: auto;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  box-shadow: var(--ps-card-shadow);
}

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

.ps__compare th,
.ps__compare td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ps-line);
  text-align: center;
  vertical-align: middle;
}

.ps__compare tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

.ps__compare thead th {
  color: var(--ps-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ps__compare th[scope="row"],
.ps__compare thead th:first-child {
  font-weight: 600;
  text-align: left;
}

.ps__compare-pro {
  width: 22%;
  background: color-mix(in srgb, var(--ps-pro-bg) 60%, transparent);
}

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

.ps__compare thead .ps__plan-crown {
  display: block;
  margin: 0 auto 4px;
}

.ps__compare td:nth-child(2) {
  width: 22%;
}

.ps__cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ps-ok);
  color: #fff;
}

.ps__cmp-yes .ps__icon {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

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

.ps__cmp-text {
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================================
 * Closing band, footer, 404
 * ====================================================================== */

.ps__cta {
  position: relative;
  overflow: hidden;
  background-color: var(--ps-tint);
  background-image:
    radial-gradient(50% 80% at 50% 0%, var(--ps-glow), transparent 70%),
    linear-gradient(var(--ps-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ps-grid) 1px, transparent 1px);
  background-size:
    100% 100%,
    30px 30px,
    30px 30px;
  border-top: 1px solid var(--ps-line);
}

.ps__cta-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: 0 14px 30px -12px rgba(242, 64, 15, 0.55);
}

.ps__footer {
  background: var(--ps-surface);
}

.ps__footer-promise {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.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: 3;
}

.ps__footer-build {
  font-size: 13.5px !important;
}

.ps__state .ps__state-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  background: var(--ps-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.ps__state-mark small {
  font-size: 0.4em;
  letter-spacing: 0;
}

/* ---- Documents: the legal pages get a paper sheet ---- */

.ps__doc-lead {
  background: var(--ps-panel);
  box-shadow: var(--ps-card-shadow);
}

.ps__toc {
  background: var(--ps-tint);
  border: 1px solid var(--ps-line);
}

.ps__prose table {
  border: 1px solid var(--ps-line);
}

.ps__prose th {
  width: 32%;
  background: var(--ps-tint);
  font-weight: 700;
}

/* =========================================================================
 * Widths — 640px is two cards side by side, 900px the desktop header and the
 * hero's two columns.
 * ====================================================================== */

@media (min-width: 640px) {
  .ps__flow,
  .ps__features,
  .ps__stats,
  .ps__tools,
  .ps__post-grid,
  .ps__purposes {
    grid-template-columns: repeat(2, 1fr);
  }

  .ps__plans--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
  }

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

  .ps__legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 28px;
  }
}

@media (min-width: 900px) {
  .ps__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .ps__showcase-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .ps__showcase--flip .ps__showcase-copy {
    order: 2;
  }

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

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

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

  /* Five sections of different lengths leave a hole in a three-column grid;
     columns pack them the way a printed feature list would. */
  .ps__tools {
    display: block;
    columns: 3;
    column-gap: 16px;
  }

  .ps__tools .ps__tool {
    break-inside: avoid;
    margin-bottom: 16px;
  }

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

@media (hover: hover) {
  .ps__feature,
  .ps__purpose,
  .ps__plan-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .ps__feature:hover,
  .ps__purpose:hover,
  .ps__plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ps-shadow-sm);
  }
}

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


/* Four short figures pair up even on a phone; one per row is a scroll of mostly air. */
.ps__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 900px) {
  .ps__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}


/* =========================================================================
 * Choose by purpose — the app's six coloured tiles
 * ====================================================================== */

.ps__purposes {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps__purpose {
  --tile: #f76707;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  background: var(--ps-panel);
  box-shadow: var(--ps-card-shadow);
}

.ps__purpose--blue { --tile: #2b6cf0; }
.ps__purpose--green { --tile: #1f9d55; }
.ps__purpose--amber { --tile: #f08c00; }
.ps__purpose--pink { --tile: #e64980; }
.ps__purpose--orange { --tile: #f76707; }
.ps__purpose--teal { --tile: #15aabf; }

.ps__purpose-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tile);
  color: #ffffff;
  box-shadow: 0 8px 16px -8px var(--tile);
}

.ps__purpose-mark .ps__icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

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

.ps__purpose-text b {
  font-size: 17px;
}

.ps__purpose-setting {
  align-self: flex-start;
  padding: 1px 10px;
  border-radius: var(--ps-pill);
  background: color-mix(in srgb, var(--tile) 14%, transparent);
  color: var(--ps-ink);
  font-size: 13px;
  font-weight: 700;
}

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

/* =========================================================================
 * Plans: what each card includes, and Pro in the brand
 * ====================================================================== */

.ps__plan-card--featured {
  border-color: var(--ps-brand-2);
  background:
    linear-gradient(180deg, var(--ps-accent-soft), var(--ps-panel) 55%);
}

.ps__plan-badge {
  background: var(--ps-brand);
}

.ps__plan-card--featured .ps__plan-price b {
  background: var(--ps-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ps__plan-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--ps-line);
  list-style: none;
}

.ps__plan-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
}

.ps__plan-points .ps__icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  color: var(--ps-ok);
  stroke-width: 3;
}

.ps__plan-card--featured .ps__plan-points .ps__icon {
  color: var(--ps-accent-text);
}

/* =========================================================================
 * Showcase with two phones
 * ====================================================================== */

.ps__showcase-phone--pair {
  gap: clamp(14px, 2vw, 24px);
}

.ps__showcase-phone--pair .ps__phone {
  width: min(260px, 44%);
  flex: 1 1 0;
}

.ps__showcase-phone--pair .ps__phone--second {
  margin-top: clamp(28px, 4vw, 56px);
}

@media (max-width: 619px) {
  .ps__showcase-phone--pair .ps__phone {
    width: min(280px, 74vw);
    flex: none;
  }
}

@media (min-width: 900px) {
  .ps__showcase-grid:has(.ps__showcase-phone--pair) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Hero notes: the three promises are the product, so they carry the brand. */
.ps__hero-notes .ps__icon {
  background: var(--ps-brand);
}
