/* 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;
}

/*
 * PDF Hanko — the product site of an offline PDF app: stamp, sign, fill in and
 * scan, all on the phone.
 *
 * The app's own design decides this file:
 *
 *   - The accent is 朱 (#D7261E), the app's default stamp ink. Everything a
 *     visitor can press is that red, and so is every seal drawn on the page.
 *   - The app's home tiles keep their colours inside the drawn phone — blue open,
 *     navy scan, red stamp, purple sign — and are not borrowed outside it.
 *   - Gold is the app's 👑 and marks Pro. Nothing else on the page is gold.
 *   - The page is paper: a warm off-white with hairline rules, so a red seal on
 *     it reads the way one reads on a contract. The hero and the closing band
 *     carry a faint 原稿用紙 grid — manuscript paper — in the seal's red.
 *
 * No web font is loaded, on purpose: a site that promises nothing leaves your
 * phone 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 {
  --ph-accent: #d7261e;
  --ph-accent-2: #e8483e;
  --ph-on-accent: #ffffff;

  --ph-radius: 14px;
  --ph-radius-sm: 10px;
  --ph-radius-lg: 22px;
  --ph-pill: 999px;

  --ph-header-h: 62px;
  --ph-band: clamp(56px, 7vw, 112px);
  --ph-band-sm: clamp(28px, 3vw, 44px);
  --ph-head-gap: clamp(26px, 3vw, 40px);
  --ph-doc-gap: 38px;

  --ph-font: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", sans-serif;
  --ph-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ph-seal-font: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP",
    "MS PMincho", serif;

  /* Colours that do not change with the mode: the app's own. */
  --ph-blue: #1e6ff1;
  --ph-navy: #1f3f99;
  --ph-purple: #7650d8;
  --ph-shu: #d7261e;

  --ph-bg: #fbfbf9;
  --ph-surface: #fbfbf9;
  --ph-panel: #ffffff;
  --ph-panel-2: #f0f0ed;
  --ph-tint: #f3f3f0;
  --ph-paper: #ffffff;
  --ph-line: #e2e1dc;
  --ph-ink: #131313;
  --ph-muted: #5a5955;
  --ph-shadow: 0 24px 56px -18px rgba(60, 36, 20, 0.28);
  --ph-shadow-sm: 0 6px 18px -6px rgba(60, 36, 20, 0.18);
  --ph-card-shadow: 0 1px 0 rgba(60, 36, 20, 0.04), 0 10px 26px -18px rgba(60, 36, 20, 0.35);
  --ph-medium: #c98a06;
  --ph-gold: #a86f00;
  --ph-gold-bg: #fbf0d4;
  --ph-free: #1b5fcf;
  --ph-free-bg: #e7effd;
  --ph-danger: #d7261e;
  --ph-accent-text: #131313;
  --ph-accent-soft: #fbe9e7;
  --ph-grid: rgba(215, 38, 30, 0.07);
  --ph-glow: rgba(215, 38, 30, 0.1);

  /* The drawn app, in the appearance the app itself uses in this mode. */
  --ph-app-bg: #ffffff;
  --ph-app-ink: #111114;
  --ph-app-muted: #8a8a90;
  --ph-app-label: #55555c;
  --ph-app-tool: #3a3a40;
  --ph-app-line: #e6e6ea;
  --ph-app-fill: #f1f1f4;
  --ph-app-card: #ffffff;
  --ph-app-seg-on: #ffffff;
  --ph-app-bar: rgba(255, 255, 255, 0.86);
  --ph-app-canvas: #e9e8ee;
  --ph-app-blue: #1e6ff1;
  --ph-app-blue-soft: #e8f0fe;
  --ph-app-tab-on: rgba(30, 111, 241, 0.1);
  --ph-app-red-soft: #fdeceb;
  --ph-app-found-bg: #fff5e0;
  --ph-app-found-ink: #7a5200;
  --ph-app-sig: #1b2a6b;

  /* The small flow pictures. */
  --ph-scene-plate: #f2f2ef;
  --ph-scene-paper: #ffffff;
  --ph-scene-edge: #e2e1dc;
  --ph-scene-bar: #e3e3df;
  --ph-scene-bar-strong: #b3b2ad;
  --ph-scene-field: #f4f4f1;
  --ph-scene-ink: #1b2a6b;
  /* The office scene. The sheet stays paper-white in both modes: paper is paper. */
  --ph-o-wall: #efe6d8;
  --ph-o-wall-2: #e7dccb;
  --ph-o-rail: #d9cab3;
  --ph-o-floor: #d6c2a2;
  --ph-o-plank: rgba(120, 86, 50, 0.16);
  --ph-o-sky-1: #a9d2f0;
  --ph-o-sky-2: #eaf5fb;
  --ph-o-sun: #ffd271;
  --ph-o-stars: 0;
  --ph-o-cloud: #ffffff;
  --ph-o-fuji: #7f93bd;
  --ph-o-snow: #ffffff;
  --ph-o-city: #9fb0c9;
  --ph-o-city-far: #b8c5d8;
  --ph-o-lit: #c9d4e3;
  --ph-o-frame: #cbbba3;
  --ph-o-shelf: #b88c60;
  --ph-o-shelf-in: #8f6844;
  --ph-o-desk: #a4744a;
  --ph-o-desk-top: #c08e5f;
  --ph-o-chair: #4b4f5b;
  --ph-o-shadow: rgba(60, 36, 20, 0.2);
  --ph-wave: #efe3d6;
  --ph-band-bg: #111111;
  --ph-strong: #131313;
  --ph-on-strong: #ffffff;
  --ph-sheet: #ffffff;
}

/* ---- DARK, from the OS, while no explicit light choice is in force ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ph-bg: #121212;
    --ph-surface: #121212;
    --ph-panel: #1a1a1a;
    --ph-panel-2: #242424;
    --ph-tint: #171717;
    --ph-paper: #202020;
    --ph-line: #2d2d2c;
    --ph-ink: #f1f0ec;
    --ph-muted: #a5a49e;
    --ph-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.7);
    --ph-shadow-sm: 0 8px 22px -6px rgba(0, 0, 0, 0.55);
    --ph-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px -18px rgba(0, 0, 0, 0.8);
    --ph-medium: #f0bd4a;
    --ph-gold: #f2c55c;
    --ph-gold-bg: rgba(242, 197, 92, 0.14);
    --ph-free: #8db4ff;
    --ph-free-bg: rgba(91, 145, 255, 0.16);
    --ph-danger: #ff6b61;
    --ph-accent: #dc3128;
    --ph-accent-2: #ec5047;
    --ph-accent-text: #f1f0ec;
    --ph-accent-soft: rgba(255, 106, 96, 0.14);
    --ph-grid: rgba(255, 120, 100, 0.06);
    --ph-glow: rgba(220, 49, 40, 0.16);
    --ph-app-bg: #111114;
    --ph-app-ink: #f2f2f5;
    --ph-app-muted: #8e8e96;
    --ph-app-label: #a4a4ac;
    --ph-app-tool: #d0d0d6;
    --ph-app-line: #2c2c31;
    --ph-app-fill: #1f1f24;
    --ph-app-card: #1c1c20;
    --ph-app-seg-on: #3a3a41;
    --ph-app-bar: rgba(44, 44, 50, 0.88);
    --ph-app-canvas: #050506;
    --ph-app-blue: #3d86ff;
    --ph-app-blue-soft: rgba(61, 134, 255, 0.2);
    --ph-app-tab-on: rgba(61, 134, 255, 0.2);
    --ph-app-red-soft: rgba(231, 60, 50, 0.24);
    --ph-app-found-bg: rgba(245, 180, 0, 0.14);
    --ph-app-found-ink: #f5c451;
    --ph-app-sig: #a9bcff;
    --ph-scene-plate: #202020;
    --ph-scene-paper: #2b2b2b;
    --ph-scene-edge: #3a3a3a;
    --ph-scene-bar: #454545;
    --ph-scene-bar-strong: #787878;
    --ph-scene-field: #262626;
    --ph-scene-ink: #a9bcff;
    --ph-o-wall: #29231d;
    --ph-o-wall-2: #221d18;
    --ph-o-rail: #3a3128;
    --ph-o-floor: #1c1713;
    --ph-o-plank: rgba(0, 0, 0, 0.35);
    --ph-o-sky-1: #0a1330;
    --ph-o-sky-2: #22325c;
    --ph-o-sun: #f4efd6;
    --ph-o-stars: 1;
    --ph-o-cloud: #3b4870;
    --ph-o-fuji: #2c3a60;
    --ph-o-snow: #c9d3e8;
    --ph-o-city: #141b33;
    --ph-o-city-far: #1c2644;
    --ph-o-lit: #ffcf6e;
    --ph-o-frame: #4a3e33;
    --ph-o-shelf: #5a432f;
    --ph-o-shelf-in: #3b2b1e;
    --ph-o-desk: #4d3826;
    --ph-o-desk-top: #694c33;
    --ph-o-chair: #2b2d34;
    --ph-o-shadow: rgba(0, 0, 0, 0.55);
    --ph-wave: #221c17;
    --ph-band-bg: #0a0a0a;
    --ph-strong: #f1f0ec;
    --ph-on-strong: #121212;
    --ph-sheet: #f1efe9;
  }
}

/* ---- DARK, chosen by the visitor. Same list as above. ---- */
:root[data-theme="dark"] {
  --ph-bg: #121212;
  --ph-surface: #121212;
  --ph-panel: #1a1a1a;
  --ph-panel-2: #242424;
  --ph-tint: #171717;
  --ph-paper: #202020;
  --ph-line: #2d2d2c;
  --ph-ink: #f1f0ec;
  --ph-muted: #a5a49e;
  --ph-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.7);
  --ph-shadow-sm: 0 8px 22px -6px rgba(0, 0, 0, 0.55);
  --ph-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px -18px rgba(0, 0, 0, 0.8);
  --ph-medium: #f0bd4a;
  --ph-gold: #f2c55c;
  --ph-gold-bg: rgba(242, 197, 92, 0.14);
  --ph-free: #8db4ff;
  --ph-free-bg: rgba(91, 145, 255, 0.16);
  --ph-danger: #ff6b61;
  --ph-accent: #dc3128;
  --ph-accent-2: #ec5047;
  --ph-accent-text: #f1f0ec;
  --ph-accent-soft: rgba(255, 106, 96, 0.14);
  --ph-grid: rgba(255, 120, 100, 0.06);
  --ph-glow: rgba(220, 49, 40, 0.16);
  --ph-app-bg: #111114;
  --ph-app-ink: #f2f2f5;
  --ph-app-muted: #8e8e96;
  --ph-app-label: #a4a4ac;
  --ph-app-tool: #d0d0d6;
  --ph-app-line: #2c2c31;
  --ph-app-fill: #1f1f24;
  --ph-app-card: #1c1c20;
  --ph-app-seg-on: #3a3a41;
  --ph-app-bar: rgba(44, 44, 50, 0.88);
  --ph-app-canvas: #050506;
  --ph-app-blue: #3d86ff;
  --ph-app-blue-soft: rgba(61, 134, 255, 0.2);
  --ph-app-tab-on: rgba(61, 134, 255, 0.2);
  --ph-app-red-soft: rgba(231, 60, 50, 0.24);
  --ph-app-found-bg: rgba(245, 180, 0, 0.14);
  --ph-app-found-ink: #f5c451;
  --ph-app-sig: #a9bcff;
  --ph-scene-plate: #202020;
  --ph-scene-paper: #2b2b2b;
  --ph-scene-edge: #3a3a3a;
  --ph-scene-bar: #454545;
  --ph-scene-bar-strong: #787878;
  --ph-scene-field: #262626;
  --ph-scene-ink: #a9bcff;
  --ph-o-wall: #29231d;
  --ph-o-wall-2: #221d18;
  --ph-o-rail: #3a3128;
  --ph-o-floor: #1c1713;
  --ph-o-plank: rgba(0, 0, 0, 0.35);
  --ph-o-sky-1: #0a1330;
  --ph-o-sky-2: #22325c;
  --ph-o-sun: #f4efd6;
  --ph-o-stars: 1;
  --ph-o-cloud: #3b4870;
  --ph-o-fuji: #2c3a60;
  --ph-o-snow: #c9d3e8;
  --ph-o-city: #141b33;
  --ph-o-city-far: #1c2644;
  --ph-o-lit: #ffcf6e;
  --ph-o-frame: #4a3e33;
  --ph-o-shelf: #5a432f;
  --ph-o-shelf-in: #3b2b1e;
  --ph-o-desk: #4d3826;
  --ph-o-desk-top: #694c33;
  --ph-o-chair: #2b2d34;
  --ph-o-shadow: rgba(0, 0, 0, 0.55);
  --ph-wave: #221c17;
  --ph-band-bg: #0a0a0a;
  --ph-strong: #f1f0ec;
  --ph-on-strong: #121212;
  --ph-sheet: #f1efe9;
}


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

.ph {
  background: var(--ph-bg);
  color: var(--ph-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;
}

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

/*
 * The resets sit under `:where()` so they weigh nothing.
 *
 * Written as `.ph p` they scored (0,1,1) and beat every one-class rule that sets
 * a paragraph's margin — `.ph__lead`, `.ph__note`, `.ph__eyebrow`,
 * `.ph__doc-updated`, `.ph__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(.ph) h1,
:where(.ph) h2,
:where(.ph) h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

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

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

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

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

.ph a {
  color: inherit;
}

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

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

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

.ph__measure {
  max-width: 760px;
}

.ph__section {
  padding-block: var(--ph-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. */
.ph [id] {
  scroll-margin-top: calc(var(--ph-header-h) + 16px);
}

.ph__section--tint {
  background: var(--ph-tint);
}

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

.ph__skip:focus {
  left: 0;
}

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

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

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

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

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

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

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

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

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

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

.ph__accent {
  color: var(--ph-accent-text);
}

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

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

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

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

.ph__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.
 */
.ph__header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ph-surface);
  border-bottom: 1px solid var(--ph-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.
 */
.ph__header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--ph-header-h);
  flex-wrap: nowrap;
}

.ph__menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--ph-radius-sm);
  border: 1px solid var(--ph-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.
 */
.ph__menu-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

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

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

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

/* Open: the middle bar goes, the outer two cross. */
.ph__menu-bars--x {
  background: transparent;
}

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

.ph__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.
 */
.ph__menu-button--close {
  display: none;
}

.ph__header-inner:has(#ph-menu:target) .ph__menu-button--open {
  display: none;
}

/* Open, and looking it: the button wears the accent while the drawer is down. */
.ph__header-inner:has(#ph-menu:target) .ph__menu-button--close {
  display: inline-flex;
  border-color: var(--ph-accent);
  background: color-mix(in srgb, var(--ph-accent) 12%, transparent);
  color: var(--ph-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.
 */
.ph__header-panel {
  display: none;
  position: fixed;
  top: var(--ph-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--ph-surface);
  border-top: 1px solid var(--ph-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ph__header-panel .ph__nav {
  margin-top: 4px;
}

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

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

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

.ph__nav a:hover {
  color: var(--ph-accent-text);
}

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

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

.ph__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(--ph-accent-2), var(--ph-accent));
  color: var(--ph-on-accent);
}

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

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

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

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

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

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

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

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

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

.ph__lang {
  position: relative;
}

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

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

.ph__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.
 */
.ph__flag {
  width: 21px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
}

.ph__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(--ph-panel);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-sm);
  box-shadow: var(--ph-shadow);
}

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

.ph__lang a:hover,
.ph__lang a[aria-current="page"] {
  background: var(--ph-panel-2);
}

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

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

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

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

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

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

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

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


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

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

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

.ph__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(--ph-accent-2), var(--ph-accent));
  color: var(--ph-on-accent);
  font-size: 15px;
  font-weight: 700;
}

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

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

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

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

.ph__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(--ph-accent) 12%, transparent);
  color: var(--ph-accent-text);
}

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

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

.ph__stats-band {
  padding-block: var(--ph-band);
  background: var(--ph-tint);
}

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

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

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

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


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

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

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

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

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

.ph__chip {
  padding: 4px 12px;
  border-radius: var(--ph-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".
 */
.ph__chip--stays {
  background: color-mix(in srgb, var(--ph-accent) 12%, transparent);
  color: var(--ph-accent-text);
}

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

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

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

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

.ph__notice {
  padding-block: var(--ph-band-sm);
}

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

.ph__notice--info .ph__notice-inner {
  border-left-color: var(--ph-accent);
}

.ph__notice--warn .ph__notice-inner {
  border-left-color: var(--ph-medium);
}

.ph__notice--critical .ph__notice-inner {
  border-left-color: var(--ph-danger);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ph__cta-inner .ph__stores,
.ph__cta-inner .ph__actions {
  justify-content: center;
}

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

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

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

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

.ph__doc-lead {
  padding: 18px 20px;
  border-radius: var(--ph-radius);
  background: var(--ph-panel);
  border: 1px solid var(--ph-line);
  color: var(--ph-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.
 */
.ph__page--doc .ph__container {
  width: min(880px, 100% - 40px);
}

.ph__page--doc .ph__measure {
  max-width: none;
}

.ph__doc .ph__section {
  padding-block: 0;
}

.ph__doc .ph__section + .ph__section {
  padding-top: var(--ph-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. */
.ph__doc .ph__page-head {
  padding-bottom: var(--ph-doc-gap);
}

.ph__doc {
  padding-bottom: var(--ph-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.
 */
.ph__doc .ph__section-head h2 {
  font-size: clamp(21px, 2.2vw, 26px);
}

.ph__doc .ph__section-head {
  margin-bottom: 18px;
}

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

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

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

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

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

.ph__prose {
  font-size: 17px;
}

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

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

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

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

.ph__prose ul,
.ph__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. */
.ph__prose ul {
  list-style: disc;
}

.ph__prose ol {
  list-style: decimal;
}

.ph__prose li::marker {
  color: var(--ph-muted);
}

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

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

.ph__prose strong {
  font-weight: 700;
}

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

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

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

.ph__figure {
  margin: 0;
}

.ph__figure img {
  border-radius: var(--ph-radius);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ph__state .ph__measure {
  margin-inline: auto;
}

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

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

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

.ph__state .ph__actions {
  justify-content: center;
}

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

.ph__footer {
  padding-block: var(--ph-band) 32px;
  background: var(--ph-surface);
  border-top: 1px solid var(--ph-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.
 */
.ph__footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

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

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

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

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

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

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

.ph__footer-col a:hover {
  color: var(--ph-accent-text);
}

.ph__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.
 */
.ph__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(--ph-line);
  color: var(--ph-muted);
  font-size: 13.5px;
  text-align: center;
}

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

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

.ph__footer-bottom a:hover {
  color: var(--ph-accent-text);
}

.ph__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) {
  .ph__flow,
  .ph__features,
  .ph__stats,
  .ph__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .ph__header {
    background: color-mix(in srgb, var(--ph-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. */
  .ph__menu-button,
  .ph__header-inner:has(#ph-menu:target) .ph__menu-button--close {
    display: none;
  }

  .ph__header-panel,
  .ph__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;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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



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

.ph {
  font-family: var(--ph-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. */
.ph:lang(ja) {
  letter-spacing: 0.02em;
}

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

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

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

.ph__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
}

/* A short red rule before every eyebrow: the stroke a brush leaves before the
   first character. */
.ph__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ph-accent);
}

.ph__section-head--center .ph__eyebrow {
  justify-content: center;
}

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

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

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

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

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

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

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

.ph .ph__store {
  transition: transform 0.15s ease;
}

.ph .ph__store:hover {
  transform: translateY(-1px);
}

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

.ph__header {
  background: var(--ph-surface);
}

.ph__brand img {
  border-radius: 11px;
  box-shadow: 0 2px 6px -2px rgba(215, 38, 30, 0.45);
}

.ph__brand-mark {
  background: linear-gradient(160deg, #f0524a, #d7261e);
  color: var(--ph-shu);
  border-radius: 11px;
  box-shadow: 0 2px 6px -2px rgba(215, 38, 30, 0.45);
}

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

/* =========================================================================
 * The seal
 * ====================================================================== */

.ph__hanko {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/*
 * The lettering is stroked as well as filled. Mincho's horizontals are hairlines,
 * and a hairline at 30px — or under the worn-ink noise, which eats anything that
 * thin — disappears and leaves 山田 as three vertical bars. Real seal lettering is
 * heavy anyway; the stroke gives it that weight in whichever Mincho arrives.
 * (CSS beats the `stroke="none"` presentation attribute on the group, on purpose.)
 */
.ph__hanko text {
  font-family: var(--ph-seal-font);
  font-weight: 700;
  letter-spacing: 0;
  stroke: currentColor;
  stroke-width: 1.1px;
  stroke-linejoin: round;
  paint-order: stroke;
}

.ph__hanko--worn text {
  stroke-width: 2px;
}

/* =========================================================================
 * 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 are the app in its light appearance in both of the site's modes:
 * a phone held up in a dark room still shows the app it is running.
 * ====================================================================== */

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

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

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

.ph__phone-screen {
  --pp: 264px;
  --pp: 100cqw;
  --app-ink: var(--ph-app-ink);
  --app-muted: var(--ph-app-muted);
  --app-line: var(--ph-app-line);
  --app-fill: var(--ph-app-fill);
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: calc(var(--pp) * 0.028) solid #16161a;
  border-radius: calc(var(--pp) * 0.14);
  background: var(--ph-app-bg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    var(--ph-shadow);
  color: var(--app-ink);
  font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: calc(var(--pp) * 0.042);
  letter-spacing: 0;
  line-height: 1.3;
}

/* The dynamic island: a pill of black at the top that makes the frame a phone. */
.ph__phone-screen::before {
  content: "";
  position: absolute;
  top: calc(var(--pp) * 0.025);
  left: 50%;
  z-index: 3;
  width: 30%;
  height: calc(var(--pp) * 0.075);
  border-radius: 999px;
  background: #0b0b0d;
  transform: translateX(-50%);
}

.ph__app {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(var(--pp) * 0.035);
  min-height: 0;
  padding: 0 calc(var(--pp) * 0.055) calc(var(--pp) * 0.24);
}

.ph__app b,
.ph__app small {
  display: block;
}

.ph__app small {
  color: var(--app-muted);
  font-size: calc(var(--pp) * 0.034);
}

.ph__app em,
.ph__app i {
  font-style: normal;
}

.ph__app svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph__app .ph__hanko,
.ph__app .ph__hanko * {
  stroke-linecap: butt;
}

/* ---- Status bar ---- */

.ph__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--pp) * 0.125);
  padding: 0 calc(var(--pp) * 0.03);
  font-size: calc(var(--pp) * 0.042);
  font-weight: 700;
}

.ph__status-icons {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--pp) * 0.016);
}

.ph__app .ph__status-icons svg {
  width: auto;
  height: calc(var(--pp) * 0.036);
  fill: currentColor;
  stroke: none;
}

/* ---- Tab bar, as the app draws it (RootView MainTabBar, MainScaffold) ----
   Five items on a flat bar with a hairline on top: ホーム / PDF / スキャン / 印鑑 /
   設定. スキャン is the raised round button, its top half above the bar, blue
   shading to #1747A6 inside a ring the colour of the screen. */

.ph__app-tabs {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: calc(var(--pp) * 0.018) calc(var(--pp) * 0.01) calc(var(--pp) * 0.06);
  border-top: 1px solid var(--ph-app-line);
  background: var(--ph-app-bar);
}

.ph__app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pp) * 0.008);
  color: var(--ph-app-muted);
  font-size: calc(var(--pp) * 0.026);
  font-weight: 500;
  white-space: nowrap;
}

.ph__app-tab svg {
  width: calc(var(--pp) * 0.062);
  height: calc(var(--pp) * 0.062);
}

.ph__app-tab--on {
  color: var(--ph-app-blue);
}

.ph__app-tab--scan {
  font-weight: 600;
}

.ph__app-scanbtn {
  display: grid;
  place-items: center;
  width: calc(var(--pp) * 0.15);
  height: calc(var(--pp) * 0.15);
  margin-top: calc(var(--pp) * -0.075);
  border: calc(var(--pp) * 0.011) solid var(--ph-app-bg);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ph-app-blue), #1747a6);
  box-shadow: 0 calc(var(--pp) * 0.012) calc(var(--pp) * 0.03) rgba(30, 111, 241, 0.35);
  color: #fff;
}

.ph__app .ph__app-scanbtn svg {
  width: calc(var(--pp) * 0.065);
  height: calc(var(--pp) * 0.065);
  stroke-width: 2.3;
}

/* ---- 01 Home ---- */

.ph__app-topbtns {
  display: flex;
  gap: calc(var(--pp) * 0.055);
  align-self: flex-end;
  padding: calc(var(--pp) * 0.025) calc(var(--pp) * 0.045);
  border-radius: 999px;
  background: var(--ph-app-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  color: var(--ph-app-blue);
}

.ph__app-topbtns svg {
  width: calc(var(--pp) * 0.065);
  height: calc(var(--pp) * 0.065);
}

.ph__app-hello {
  display: flex;
  align-items: center;
  gap: calc(var(--pp) * 0.035);
}

.ph__app-hello .ph__brand-mark {
  width: calc(var(--pp) * 0.16);
  height: calc(var(--pp) * 0.16);
  flex: none;
  border-radius: calc(var(--pp) * 0.04);
}

.ph__app-hello b {
  font-size: calc(var(--pp) * 0.088);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.ph__app-hello small {
  font-size: calc(var(--pp) * 0.029);
}

.ph__app-search {
  display: flex;
  align-items: center;
  gap: calc(var(--pp) * 0.025);
  padding: calc(var(--pp) * 0.028) calc(var(--pp) * 0.04);
  border-radius: calc(var(--pp) * 0.035);
  background: var(--app-fill);
  color: var(--app-muted);
}

.ph__app-search svg {
  width: calc(var(--pp) * 0.05);
  height: calc(var(--pp) * 0.05);
}

.ph__app-search small {
  flex: 1;
  font-size: calc(var(--pp) * 0.038);
}

.ph__app-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pp) * 0.03);
}

.ph__app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--pp) * 0.015);
  height: calc(var(--pp) * 0.21);
  border-radius: calc(var(--pp) * 0.045);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ph__app-tile svg {
  width: calc(var(--pp) * 0.085);
  height: calc(var(--pp) * 0.085);
}

.ph__app-tile b {
  font-size: calc(var(--pp) * 0.04);
  font-weight: 700;
}

.ph__app-tile--blue {
  background: linear-gradient(180deg, #3f8cff, #1e6ff1);
}

.ph__app-tile--navy {
  background: linear-gradient(180deg, #4166c2, #1e3f94);
}

.ph__app-tile--red {
  background: linear-gradient(180deg, #f2554c, #d7261e);
}

.ph__app-tile--red svg {
  fill: #fff;
}

.ph__app-tile--purple {
  background: linear-gradient(180deg, #a07cf2, #7650d8);
}

.ph__app-tile--blue svg {
  fill: #fff;
}

.ph__app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(var(--pp) * 0.01);
}

.ph__app-head b {
  font-size: calc(var(--pp) * 0.05);
  font-weight: 800;
}

.ph__app-head svg,
.ph__app-more {
  width: calc(var(--pp) * 0.07);
  height: calc(var(--pp) * 0.07);
  color: var(--ph-app-blue);
  stroke-width: 3;
}

.ph__app-files {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph__app-files li {
  display: flex;
  align-items: center;
  gap: calc(var(--pp) * 0.035);
  padding: calc(var(--pp) * 0.022) 0;
  border-bottom: 1px solid var(--app-line);
}

.ph__app-files li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.ph__app-files b {
  overflow: hidden;
  font-size: calc(var(--pp) * 0.04);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph__app-files small {
  font-size: calc(var(--pp) * 0.03);
}

/* The PDF file icon: a red page with its corner folded and "PDF" on it. */
.ph__app-pdf {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: center;
  width: calc(var(--pp) * 0.085);
  height: calc(var(--pp) * 0.105);
  padding-bottom: calc(var(--pp) * 0.012);
  border-radius: calc(var(--pp) * 0.012);
  background: linear-gradient(225deg, var(--ph-app-bg) 0 18%, #e5383b 18%);
  color: #fff;
  font-size: calc(var(--pp) * 0.022);
  font-weight: 800;
}

/* ---- 05 Editor ---- */

.ph__app--editor {
  padding-bottom: 0;
}

.ph__app-nav {
  display: grid;
  grid-template-columns: calc(var(--pp) * 0.16) 1fr calc(var(--pp) * 0.16);
  align-items: center;
}

.ph__app-nav b {
  overflow: hidden;
  font-size: calc(var(--pp) * 0.042);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph__app-back {
  width: calc(var(--pp) * 0.07);
  height: calc(var(--pp) * 0.07);
  color: var(--ph-app-blue);
  stroke-width: 2.4;
}

.ph__app-done {
  justify-self: end;
  padding: calc(var(--pp) * 0.012) calc(var(--pp) * 0.03);
  border-radius: 999px;
  background: var(--ph-blue);
  color: #fff;
  font-size: calc(var(--pp) * 0.034);
  font-weight: 700;
  white-space: nowrap;
}

.ph__app-canvas {
  position: relative;
  flex: 1;
  margin: 0 calc(var(--pp) * -0.055);
  padding: calc(var(--pp) * 0.06) calc(var(--pp) * 0.07);
  background: var(--ph-app-canvas);
}

.ph__app-page-n {
  position: absolute;
  top: calc(var(--pp) * 0.02);
  right: calc(var(--pp) * 0.04);
  z-index: 1;
  padding: calc(var(--pp) * 0.006) calc(var(--pp) * 0.022);
  border-radius: 999px;
  background: rgba(40, 40, 46, 0.72);
  color: #fff;
  font-size: calc(var(--pp) * 0.028);
  font-weight: 600;
}

.ph__app-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--pp) * 0.028);
  aspect-ratio: 1 / 1.3;
  padding: calc(var(--pp) * 0.07) calc(var(--pp) * 0.065);
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  /* A PDF page is white in both modes, as the app draws it (SPEC §1): the ink on
     it is the document's, not the interface's. */
  color: #111114;
}

.ph__app-paper-title {
  margin-bottom: calc(var(--pp) * 0.01);
  font-family: var(--ph-seal-font);
  font-size: calc(var(--pp) * 0.06);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}

.ph__app-rule {
  display: block;
  height: calc(var(--pp) * 0.012);
  border-radius: 99px;
  background: #e4e4ea;
}

.ph__app-rule--short {
  width: 62%;
}

.ph__app-field {
  display: flex;
  align-items: baseline;
  gap: calc(var(--pp) * 0.03);
  padding-bottom: calc(var(--pp) * 0.012);
  border-bottom: 1px solid #cfcfd6;
}

.ph__app-field small {
  flex: none;
  min-width: calc(var(--pp) * 0.14);
  white-space: nowrap;
  color: #55555c;
  font-size: calc(var(--pp) * 0.03);
}

.ph__app-field em {
  overflow: hidden;
  font-size: calc(var(--pp) * 0.036);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph__app-field--sign {
  margin-top: calc(var(--pp) * 0.02);
  margin-right: calc(var(--pp) * 0.2);
}

/* A handwritten name: whatever script face the visitor has, slanted, in ink. */
.ph__sig {
  display: inline-block;
  overflow: hidden;
  color: var(--ph-app-sig);
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", "Klee", "Hiragino Mincho ProN", "Yu Mincho", cursive;
  font-size: calc(var(--pp) * 0.055);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-4deg);
}

/* On the page the signature is the document's ink, navy in both modes; elsewhere
   in the app it follows the interface (see --ph-app-sig). */
.ph__app-paper .ph__sig {
  color: #1b2a6b;
}

/* The seal just placed, still selected: dashed frame, four handles. */
.ph__app-placed {
  position: absolute;
  right: calc(var(--pp) * 0.05);
  bottom: calc(var(--pp) * 0.06);
  width: calc(var(--pp) * 0.19);
  padding: calc(var(--pp) * 0.012);
  border: 1.5px dashed var(--ph-blue);
}

.ph__app-handle {
  position: absolute;
  width: calc(var(--pp) * 0.024);
  height: calc(var(--pp) * 0.024);
  border: 1.5px solid var(--ph-blue);
  border-radius: 50%;
  background: #fff;
}

.ph__app-handle--a { top: -5px; left: -5px; }
.ph__app-handle--b { top: -5px; right: -5px; }
.ph__app-handle--c { bottom: -5px; left: -5px; }
.ph__app-handle--d { right: -5px; bottom: -5px; }

.ph__app-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 calc(var(--pp) * -0.055);
  padding: calc(var(--pp) * 0.03) calc(var(--pp) * 0.03) calc(var(--pp) * 0.07);
  border-top: 1px solid var(--app-line);
  background: var(--ph-app-card);
}

.ph__app-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pp) * 0.008);
  color: var(--ph-app-tool);
  font-size: calc(var(--pp) * 0.028);
  white-space: nowrap;
}

.ph__app-tool svg {
  width: calc(var(--pp) * 0.068);
  height: calc(var(--pp) * 0.068);
}

.ph__app-tool--on {
  color: var(--ph-shu);
  font-weight: 700;
}

.ph__app-tool--on svg {
  fill: currentColor;
}

/* ---- 11 Stamp studio ---- */

.ph__app-large {
  margin-top: calc(var(--pp) * 0.02);
  font-size: calc(var(--pp) * 0.078);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ph__app-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: calc(var(--pp) * 0.01);
  border-radius: 999px;
  background: var(--app-fill);
  font-size: calc(var(--pp) * 0.036);
  font-weight: 600;
  text-align: center;
}

.ph__app-seg i {
  padding: calc(var(--pp) * 0.014) 0;
  border-radius: 999px;
  color: var(--ph-app-label);
}

.ph__app-seg .ph__app-seg-on {
  background: var(--ph-app-seg-on);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: var(--ph-shu);
}

.ph__app-chips {
  display: flex;
  gap: calc(var(--pp) * 0.018);
  overflow: hidden;
}

.ph__app-chip {
  padding: calc(var(--pp) * 0.01) calc(var(--pp) * 0.03);
  border-radius: 999px;
  background: var(--app-fill);
  color: var(--ph-app-label);
  font-size: calc(var(--pp) * 0.03);
  white-space: nowrap;
}

.ph__app-chip--on {
  background: var(--ph-app-red-soft);
  color: var(--ph-shu);
  font-weight: 700;
}

.ph__app-seals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pp) * 0.03);
}

.ph__app-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pp) * 0.015);
  padding: calc(var(--pp) * 0.04) calc(var(--pp) * 0.03) calc(var(--pp) * 0.025);
  border: 1px solid var(--app-line);
  border-radius: calc(var(--pp) * 0.04);
  background: var(--ph-app-card);
}

.ph__app-seal .ph__hanko {
  width: calc(var(--pp) * 0.25);
}

.ph__app-seal small {
  color: var(--ph-app-tool);
  font-size: calc(var(--pp) * 0.03);
}

.ph__app-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--pp) * 0.015);
  padding: calc(var(--pp) * 0.025);
  border: 1.5px solid var(--ph-app-blue);
  border-radius: calc(var(--pp) * 0.035);
  color: var(--ph-app-blue);
  font-size: calc(var(--pp) * 0.036);
  font-weight: 700;
}

.ph__app-add svg {
  width: calc(var(--pp) * 0.05);
  height: calc(var(--pp) * 0.05);
  stroke-width: 2.6;
}

/* ---- 09 Smart form ---- */

.ph__app-found {
  display: flex;
  align-items: center;
  gap: calc(var(--pp) * 0.018);
  padding: calc(var(--pp) * 0.025) calc(var(--pp) * 0.035);
  border-radius: calc(var(--pp) * 0.03);
  background: var(--ph-app-found-bg);
  color: var(--ph-app-found-ink);
  font-size: calc(var(--pp) * 0.034);
  font-weight: 700;
}

.ph__app-found svg {
  flex: none;
  width: calc(var(--pp) * 0.05);
  height: calc(var(--pp) * 0.05);
  fill: #f5b400;
  stroke: #f5b400;
}

.ph__app-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph__app-rows li {
  display: grid;
  grid-template-columns: calc(var(--pp) * 0.17) 1fr auto;
  align-items: center;
  gap: calc(var(--pp) * 0.025);
  min-height: calc(var(--pp) * 0.115);
  border-bottom: 1px solid var(--app-line);
}

.ph__app-rows small {
  color: var(--ph-app-label);
}

.ph__app-rows b {
  overflow: hidden;
  font-size: calc(var(--pp) * 0.037);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph__app-rows i {
  padding: calc(var(--pp) * 0.006) calc(var(--pp) * 0.02);
  border-radius: calc(var(--pp) * 0.015);
  background: var(--ph-app-blue-soft);
  color: var(--ph-app-blue);
  font-size: calc(var(--pp) * 0.028);
  font-weight: 700;
}

.ph__app-rows .ph__sig {
  font-size: calc(var(--pp) * 0.05);
}

.ph__app-row-seal {
  width: calc(var(--pp) * 0.1);
}

.ph__app-cta {
  padding: calc(var(--pp) * 0.03);
  border-radius: calc(var(--pp) * 0.035);
  background: var(--ph-blue);
  color: #fff;
  font-size: calc(var(--pp) * 0.038);
  font-weight: 700;
  text-align: center;
}

.ph__app-cta--soft {
  margin-top: calc(var(--pp) * -0.015);
  background: var(--ph-app-blue-soft);
  color: var(--ph-app-blue);
}

/* ---- 08 Encrypt PDF (AES-256) ---- */

.ph__app-nav--sheet {
  grid-template-columns: calc(var(--pp) * 0.2) 1fr calc(var(--pp) * 0.2);
}

.ph__app-nav--sheet small {
  overflow: hidden;
  font-size: calc(var(--pp) * 0.032);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ph__app-rows-owner {
  grid-template-columns: auto 1fr !important;
}

.ph__app-rows-owner .ph__app-mask {
  text-align: right;
}

.ph__app-cta--end {
  margin-top: auto;
}

.ph__app-navgo {
  justify-self: end;
  color: var(--ph-app-blue) !important;
  font-weight: 700;
}

.ph__app-found--secure {
  background: var(--ph-app-blue-soft);
  color: var(--ph-app-blue);
}

.ph__app-found--secure svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ph__app-caption {
  margin-bottom: calc(var(--pp) * -0.02);
  color: var(--ph-app-label) !important;
  font-size: calc(var(--pp) * 0.03) !important;
  font-weight: 700;
}

.ph__app-rows--fields li {
  grid-template-columns: calc(var(--pp) * 0.2) 1fr;
  min-height: calc(var(--pp) * 0.1);
}

.ph__app-mask {
  letter-spacing: 0.08em;
}

.ph__app-strength {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  align-items: center;
  gap: calc(var(--pp) * 0.015);
}

.ph__app-strength small {
  font-size: calc(var(--pp) * 0.03);
}

.ph__app-strength i {
  height: calc(var(--pp) * 0.014);
  border-radius: 999px;
  background: #2e9e5b;
}

.ph__app-strength b {
  color: #2e9e5b;
  font-size: calc(var(--pp) * 0.03);
}

.ph__app-rows--toggles li {
  grid-template-columns: 1fr auto;
  min-height: calc(var(--pp) * 0.1);
}

.ph__app-switch {
  position: relative;
  width: calc(var(--pp) * 0.1);
  height: calc(var(--pp) * 0.06);
  border-radius: 999px;
  background: var(--app-line);
}

.ph__app-switch::after {
  content: "";
  position: absolute;
  top: calc(var(--pp) * 0.006);
  left: calc(var(--pp) * 0.006);
  width: calc(var(--pp) * 0.048);
  height: calc(var(--pp) * 0.048);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ph__app-switch--on {
  background: #2e9e5b;
}

.ph__app-switch--on::after {
  left: auto;
  right: calc(var(--pp) * 0.006);
}

/* ---- 18 Scan: a camera, dark in both modes ---- */

.ph__app--camera {
  padding-bottom: calc(var(--pp) * 0.06);
  background: #0c0c0e;
  color: #fff;
}

.ph__app--camera small {
  color: #fff;
}

.ph__app-cambar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph__app-cambar svg {
  width: calc(var(--pp) * 0.06);
  height: calc(var(--pp) * 0.06);
  color: #ffd60a;
  fill: #ffd60a;
}

.ph__app-viewfinder {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 0 calc(var(--pp) * -0.055);
  background: radial-gradient(circle at 50% 40%, #6d5b4b, #2b241e 75%);
}

.ph__app-sheet {
  display: flex;
  flex-direction: column;
  gap: calc(var(--pp) * 0.03);
  width: 64%;
  aspect-ratio: 1 / 1.35;
  padding: calc(var(--pp) * 0.07) calc(var(--pp) * 0.06);
  background: #fbfaf7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}

/* The edges the scanner found: a translucent blue quad with corner brackets. */
.ph__app-corners {
  position: absolute;
  inset: 17% 15% 20%;
  border: 2px solid rgba(64, 140, 255, 0.95);
  background: rgba(64, 140, 255, 0.14);
  transform: rotate(-3deg);
}

.ph__app-hint {
  position: absolute;
  bottom: calc(var(--pp) * 0.04);
  left: 50%;
  padding: calc(var(--pp) * 0.012) calc(var(--pp) * 0.03);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: calc(var(--pp) * 0.028) !important;
  white-space: nowrap;
  transform: translateX(-50%);
}

.ph__app-filters {
  display: flex;
  justify-content: center;
  gap: calc(var(--pp) * 0.02);
  font-size: calc(var(--pp) * 0.03);
}

.ph__app-filters i {
  padding: calc(var(--pp) * 0.008) calc(var(--pp) * 0.022);
  border-radius: 999px;
  color: #d9d9de;
}

.ph__app-filters .ph__app-filter--on {
  background: rgba(255, 214, 10, 0.18);
  color: #ffd60a;
  font-weight: 700;
}

.ph__app-shutter {
  align-self: center;
  width: calc(var(--pp) * 0.18);
  height: calc(var(--pp) * 0.18);
  border: calc(var(--pp) * 0.012) solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 calc(var(--pp) * 0.01) #0c0c0e;
}

/* The seal stamped across the gap between the two phones, as if pressed on
   the page they sit on. `multiply` lets the white screens under it show the
   ink the way paper would. */
.ph__phones-seal {
  position: absolute;
  top: 62%;
  left: 50%;
  z-index: 2;
  width: clamp(76px, 9vw, 116px) !important;
  opacity: 0.94;
  transform: translate(-50%, -50%) rotate(-14deg);
  color: var(--ph-shu) !important;
  pointer-events: none;
}

@media (max-width: 619px) {
  .ph__phones-seal {
    top: auto;
    bottom: 6%;
    left: auto;
    right: 4%;
    transform: rotate(-14deg);
  }
}

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

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

.ph__scene-plate {
  fill: var(--ph-scene-plate);
}

.ph__scene-paper,
.ph__scene-card {
  fill: var(--ph-scene-paper);
  stroke: var(--ph-scene-edge);
  stroke-width: 1.5;
}

.ph__scene-bar {
  fill: var(--ph-scene-bar);
}

.ph__scene-bar--strong {
  fill: var(--ph-scene-bar-strong);
}

.ph__scene-seal circle {
  fill: none;
  stroke: var(--ph-shu);
  stroke-width: 3;
}

.ph__scene-seal path {
  fill: none;
  stroke: var(--ph-shu);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.ph__scene-ink {
  fill: none;
  stroke: var(--ph-scene-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph__scene-line {
  fill: none;
  stroke: var(--ph-scene-bar-strong);
  stroke-width: 1.5;
}

.ph__scene-arrow,
.ph__scene-corner {
  fill: none;
  stroke: var(--ph-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph__scene-corner {
  stroke: var(--ph-blue);
}

.ph__scene-folder {
  fill: color-mix(in srgb, var(--ph-blue) 22%, var(--ph-scene-paper));
  stroke: var(--ph-blue);
  stroke-width: 2;
  stroke-linejoin: round;
}

.ph__scene-camera {
  fill: #2b241e;
}

.ph__scene-select {
  fill: color-mix(in srgb, var(--ph-blue) 30%, transparent);
}

.ph__scene-field {
  fill: var(--ph-scene-field);
  stroke: var(--ph-scene-bar);
}

.ph__scene-fill {
  fill: var(--ph-blue);
  opacity: 0.75;
}

.ph__scene-lifted {
  stroke: var(--ph-accent);
  stroke-width: 2;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.18));
}

.ph__scene-slot {
  fill: none;
  stroke: var(--ph-accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.ph__scene-wave,
.ph__scene-shackle {
  fill: none;
  stroke: var(--ph-muted);
  stroke-width: 5;
  stroke-linecap: round;
}

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

.ph__scene-lock {
  fill: var(--ph-accent);
}


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

.ph__flow-step,
.ph__feature,
.ph__tool,
.ph__stat,
.ph__data-item,
.ph__faq-item,
.ph__post-card,
.ph__notice-inner {
  background: var(--ph-panel);
  box-shadow: var(--ph-card-shadow);
}

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

.ph__flow-n {
  background: var(--ph-accent);
}

.ph__feature h3,
.ph__points b,
.ph__methods b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ph__feature-mark {
  background: var(--ph-accent-soft);
  color: var(--ph-accent-text);
}

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

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

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

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

.ph__plan--free {
  background: var(--ph-free-bg);
  color: var(--ph-free);
}

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

.ph__plan--pro {
  background: var(--ph-gold-bg);
  color: var(--ph-gold);
}

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

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

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

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

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

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

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

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

.ph__points li,
.ph__methods li {
  display: flex;
  gap: 14px;
}

.ph__points .ph__feature-mark,
.ph__methods .ph__feature-mark {
  flex: none;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 12px;
}

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

.ph__points b,
.ph__methods b {
  font-size: 16.5px;
}

.ph__points span span,
.ph__methods span span {
  color: var(--ph-muted);
  font-size: 15px;
}

/* =========================================================================
 * Stamps: the seals the app makes, on paper
 * ====================================================================== */

.ph__stamps-band {
  background-color: var(--ph-bg);
  background-image:
    linear-gradient(var(--ph-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-grid) 1px, transparent 1px);
  background-size: 30px 30px;
  border-block: 1px solid var(--ph-line);
}

.ph__stamps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph__stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px 20px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-lg);
  background: var(--ph-panel);
  box-shadow: var(--ph-card-shadow);
  text-align: center;
}

/* The seal sits on a square of paper, light in both modes — ink is only red
   on white. */
.ph__stamp-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(150px, 100%);
  aspect-ratio: 1;
  margin-bottom: 10px;
  padding: 18px;
  border-radius: 14px;
  background: var(--ph-paper);
  box-shadow: inset 0 0 0 1px rgba(60, 36, 20, 0.08);
}

.ph__stamp b {
  font-size: 16px;
}

.ph__stamp small {
  color: var(--ph-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ph__methods {
  margin-top: 32px;
}

.ph__methods li {
  padding: 20px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  background: var(--ph-panel);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ph__compare thead .ph__compare-pro {
  color: var(--ph-gold);
}

.ph__compare thead .ph__plan-crown {
  display: block;
  margin: 0 auto 4px;
}

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

.ph__cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2e9e5b;
  color: #fff;
}

.ph__cmp-yes .ph__icon {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.ph__cmp-no {
  color: var(--ph-muted);
}

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

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

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

.ph__cta-seal {
  width: 76px !important;
  margin: 0 auto 18px;
  transform: rotate(-10deg);
}

.ph__footer {
  background: var(--ph-surface);
}

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

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

.ph__footer-promise .ph__icon {
  width: 16px;
  height: 16px;
  color: var(--ph-accent-text);
  stroke-width: 3;
}

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

.ph__state-seal {
  width: clamp(120px, 18vw, 170px) !important;
  margin: 0 auto 26px;
  transform: rotate(-8deg);
}

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

.ph__doc-lead {
  background: var(--ph-panel);
  box-shadow: var(--ph-card-shadow);
}

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

.ph__prose table {
  border: 1px solid var(--ph-line);
}

.ph__prose th {
  width: 32%;
  background: var(--ph-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) {
  .ph__flow,
  .ph__features,
  .ph__stats,
  .ph__post-grid,
  .ph__methods {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (min-width: 900px) {
  .ph__showcase-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

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

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

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

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

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

@media (hover: hover) {
  .ph__feature,
  .ph__stamp,
  .ph__plan-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .ph__feature:hover,
  .ph__stamp:hover,
  .ph__plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ph-shadow-sm);
  }
}

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


/* The shared filter definitions: out of layout, but not display:none — a filter
   inside a display:none subtree is not applied by every engine. */
.ph__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

/* =========================================================================
 * The office — 稟議、スマホで回す
 *
 * One 12s timeline. Every animation below that tells the story runs for
 * exactly --ph-o-loop with no delay, so they stay in step; its keyframes say
 * WHEN (in %) and nothing else does. Times, as a reading aid:
 *
 *    8–17%   部長 taps her phone        → the seal lands in 部長's box (18–22%)
 *   24–42%   the PDF flies to 社長's phone, the notification drops (42–54%)
 *   48–57%   社長 taps                   → the seal lands in 社長's box (58–62%)
 *   66–71%   承認 comes down, petals, both nod, the daruma gets its second eye
 *   92–100%  everything that arrived fades, and the loop starts over
 *
 * The un-animated state of each element is the end of the story, so with
 * animation off (prefers-reduced-motion) the scene is complete, not empty.
 * The ambient loops (petals, clouds, steam, blinking) keep their own clocks.
 * ====================================================================== */

.ph__office {
  --ph-o-loop: 12s;
  overflow: hidden;
}

.ph__office-stage {
  margin: 0 auto;
  max-width: 1080px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  background: var(--ph-o-wall);
  box-shadow: var(--ph-shadow);
}

.ph__office-scene {
  display: block;
  width: 100%;
  height: auto;
}

/* On a phone, trim the room's edges (shelf, scroll) so the two bosses and the
   sheet get the width: x 150–1050 of the 1200 drawn. */
@media (max-width: 619px) {
  .ph__office-scene {
    width: 133.4%;
    margin-left: -16.7%;
  }
}

/* Only what moves measures its transform from its own box. */
.ph__office-scene :is(.ph__o-thumb, .ph__o-appdot-anim, .ph__o-seal, .ph__o-ripple, .ph__o-approve,
  .ph__o-sheet-wrap, .ph__o-fly, .ph__o-notif, .ph__o-head, .ph__o-daruma-wish, .ph__o-confetti,
  .ph__o-clock-h, .ph__o-clock-m, .ph__o-petal, .ph__o-clouds, .ph__o-steam, .ph__o-eyes, .ph__o-breathe) {
  transform-box: fill-box;
}

/* Room and window */
.ph__o-wall { fill: var(--ph-o-wall); }
.ph__o-wall-2 { fill: var(--ph-o-wall-2); }
.ph__o-rail { fill: var(--ph-o-rail); }
.ph__o-floor { fill: var(--ph-o-floor); }
.ph__o-plank { fill: none; stroke: var(--ph-o-plank); stroke-width: 2; }
.ph__o-frame { fill: var(--ph-o-frame); }
.ph__o-sill { fill: var(--ph-o-frame); }
.ph__o-mullion { fill: none; stroke: var(--ph-o-frame); stroke-width: 8; }
.ph__o-sky-1 { stop-color: var(--ph-o-sky-1); }
.ph__o-sky-2 { stop-color: var(--ph-o-sky-2); }
.ph__o-sun { fill: var(--ph-o-sun); }
.ph__o-star { fill: #fff; opacity: var(--ph-o-stars); }
.ph__o-cloud { fill: var(--ph-o-cloud); opacity: 0.9; }
.ph__o-fuji { fill: var(--ph-o-fuji); }
.ph__o-snow { fill: var(--ph-o-snow); }
.ph__o-city { fill: var(--ph-o-city); }
.ph__o-city--far { fill: var(--ph-o-city-far); }
.ph__o-lit { fill: var(--ph-o-lit); }
.ph__o-tower { fill: #e4572e; }
.ph__o-tower-band { fill: none; stroke: #fff; stroke-width: 3; opacity: 0.85; }
.ph__o-tower-mast { fill: none; stroke: #e4572e; stroke-width: 2; }
.ph__o-branch { fill: none; stroke: #6d4b3a; stroke-width: 4; stroke-linecap: round; }
.ph__o-bloom circle { fill: #f7c6d3; }
.ph__o-bloom .ph__o-bloom-heart { fill: #e3809b; }
.ph__o-petal,
.ph__o-confetti { fill: #f5b8c8; }

/* Left wall */
.ph__o-calendar rect { fill: #fffdf8; }
.ph__o-calendar .ph__o-calendar-head { fill: var(--ph-shu); }
.ph__o-calendar text { text-anchor: middle; font-family: var(--ph-seal-font); }
.ph__o-calendar-month { fill: #fff; font-size: 10px; }
.ph__o-calendar-day { fill: #2b2520; font-size: 30px; font-family: var(--ph-font) !important; font-weight: 700; }
.ph__o-calendar-tag { fill: var(--ph-shu); font-size: 11px; }
.ph__o-shelf { fill: var(--ph-o-shelf); }
.ph__o-shelf-in { fill: var(--ph-o-shelf-in); }
.ph__o-binder--a { fill: #2f4a8a; }
.ph__o-binder--b { fill: #8c96a6; }
.ph__o-binder--c { fill: #c2463c; }
.ph__o-binder--d { fill: #d9c9a3; }
.ph__o-binder-label { fill: #fffdf8; opacity: 0.9; }
.ph__o-daruma ellipse:first-child { fill: #d7261e; }
.ph__o-daruma-face { fill: #fbeede; }
.ph__o-daruma-eye { fill: #1d1a17; }
.ph__o-daruma-rim { fill: none; stroke: #1d1a17; stroke-width: 1.2; }
.ph__o-leaf { fill: #5e8f55; }
.ph__o-pot { fill: #b9a58c; }

/* Right wall */
.ph__o-clock-rim { fill: #3b3530; }
.ph__o-clock-face { fill: #fffdf8; }
.ph__o-clock-ticks,
.ph__o-clock-h path,
.ph__o-clock-m path { fill: none; stroke: #2b2520; stroke-linecap: round; }
.ph__o-clock-ticks { stroke-width: 2; }
.ph__o-clock-h path { stroke-width: 3.2; }
.ph__o-clock-m path { stroke-width: 2; }
.ph__o-clock-h,
.ph__o-clock-m { transform-origin: 50% 100%; }
.ph__o-clock-pin { fill: var(--ph-shu); }
.ph__o-scroll-string { fill: none; stroke: #6d5b4a; stroke-width: 1.5; }
.ph__o-scroll-cloth { fill: #5b6e5a; }
.ph__o-scroll-paper { fill: #f6efe2; }
.ph__o-scroll-char { fill: #1d1a17; font-family: var(--ph-seal-font); font-size: 60px; text-anchor: middle; }
.ph__o-scroll-seal { fill: var(--ph-shu); }
.ph__o-scroll-rod { fill: #3b2a1e; }

/* People */
.ph__o-skin { fill: #f2c7a2; }
.ph__o-chair { fill: var(--ph-o-chair); }
.ph__o-chair--boss { fill: #6a3f2b; }
.ph__o-chair-tuft { fill: none; stroke: rgba(0, 0, 0, 0.18); stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; }
.ph__o-suit-a { fill: #27407a; }
.ph__o-suit-b { fill: #34363d; }
.ph__o-shirt { fill: #fdfbf7; }
.ph__o-tie { fill: var(--ph-shu); }
.ph__o-hair-a { fill: #2a211c; }
.ph__o-hair-b { fill: #b9b6b1; }
.ph__o-brow { fill: none; stroke: #8f8b85; stroke-width: 2.6; stroke-linecap: round; }
.ph__o-eye { fill: #2a211c; }
.ph__o-blush { fill: #ef8f86; opacity: 0.35; }
.ph__o-mouth { fill: none; stroke: #8a4a3a; stroke-width: 1.8; stroke-linecap: round; }
.ph__o-pearl { fill: #fffdf8; }
.ph__o-glass { fill: rgba(200, 225, 255, 0.18); stroke: #3a3430; stroke-width: 1.8; }
.ph__o-glass-bridge { fill: none; stroke: #3a3430; stroke-width: 1.8; }
.ph__o-sleeve { fill: none; stroke-width: 20; stroke-linecap: round; }
.ph__o-sleeve--a { stroke: #27407a; }
.ph__o-sleeve--b { stroke: #34363d; }

/* Desks */
.ph__o-desk-top { fill: var(--ph-o-desk-top); }
.ph__o-desk { fill: var(--ph-o-desk); }
.ph__o-desk-line { fill: none; stroke: rgba(0, 0, 0, 0.14); stroke-width: 2; }
.ph__o-papers rect { fill: #fffdf8; stroke: #d8cfc1; stroke-width: 1; }
.ph__o-cup { fill: #7e9a64; }
.ph__o-cup-band { fill: #5b7646; }
.ph__o-steam { fill: none; stroke: var(--ph-muted); stroke-width: 2; stroke-linecap: round; opacity: 0.45; }
.ph__o-plate { fill: #2b2520; }
.ph__o-plate-text { fill: #f4e7c8; font-family: var(--ph-seal-font); font-size: 11px; text-anchor: middle; letter-spacing: 0.08em; }
.ph__o-trunk { fill: none; stroke: #5d4332; stroke-width: 4; stroke-linecap: round; }
.ph__o-bonsai-pot { fill: #2f4a8a; }

/* The drawn phones */
.ph__o-phone { fill: #1b1b1f; }
.ph__o-screen { fill: #ffffff; }
.ph__o-appbar { fill: var(--ph-shu); }
.ph__o-apppage { fill: #f4f4f7; stroke: #e2e2e8; stroke-width: 1; }
.ph__o-appbar-line { fill: #9c9ca4; }
.ph__o-appbar-line--soft { fill: #d4d4da; }
.ph__o-appbox { fill: #fff; stroke: #c9c9d0; stroke-width: 0.8; }
.ph__o-appdot { fill: var(--ph-shu); }
.ph__o-apptool { fill: #b8b8c0; }
.ph__o-apptool--on { fill: var(--ph-shu); }
.ph__o-notif { opacity: 0; }
.ph__o-notif rect:first-child { fill: #2b2b31; }
.ph__o-notif circle { fill: var(--ph-shu); }
.ph__o-notif rect + circle + rect { fill: #d8d8de; }

/* The flying PDF */
.ph__o-trail { fill: none; stroke: var(--ph-shu); stroke-width: 2.2; stroke-dasharray: 3 9; stroke-linecap: round; opacity: 0; }
.ph__o-fly { opacity: 0; }
.ph__o-fly-page { fill: #fff; stroke: #d6d0c6; stroke-width: 1.2; }
.ph__o-fly-line { fill: #b9b0a4; }
.ph__o-fly-seal { fill: var(--ph-shu); }

/* 稟議書 — paper-white in both modes; its ink is fixed too. */
.ph__o-sheet-shadow { fill: var(--ph-o-shadow); }
.ph__o-sheet { fill: #fffdf8; stroke: #e2d8c8; stroke-width: 1; }
.ph__o-sheet-title { fill: #2b2520; font-family: var(--ph-seal-font); font-size: 21px; text-anchor: middle; }
.ph__o-sheet-rule { fill: none; stroke: #2b2520; stroke-width: 1; }
.ph__o-sheet-label { fill: #6b6259; font-family: var(--ph-seal-font); font-size: 10.5px; }
.ph__o-sheet-bar { fill: #cfc5b6; }
.ph__o-sheet-bar--soft { fill: #e6dfd3; }
.ph__o-sheet-grid { fill: none; stroke: #cdbfae; stroke-width: 1; }
.ph__o-sheet-box { fill: none; stroke: #9d8f7e; stroke-width: 1.2; }
.ph__o-sheet-role { fill: #4b433b; font-family: var(--ph-seal-font); font-size: 9.5px; text-anchor: middle; }
.ph__o-ripple { fill: none; stroke: var(--ph-shu); stroke-width: 2; opacity: 0; transform-origin: center; }
.ph__o-seal,
.ph__o-approve,
.ph__o-appdot-anim,
.ph__o-sheet-wrap { transform-origin: center; }
.ph__o-approve { transform: rotate(-12deg); }
.ph__o-confetti { opacity: 0; transform-origin: center; }

/* ---- The timeline ---- */
.ph__o-thumb--a { animation: ph-o-thumb-a var(--ph-o-loop) ease-in-out infinite; }
.ph__o-thumb--b { animation: ph-o-thumb-b var(--ph-o-loop) ease-in-out infinite; }
.ph__o-pop-a { animation: ph-o-pop-a var(--ph-o-loop) ease-out infinite; }
.ph__o-pop-a2 { animation: ph-o-pop-a2 var(--ph-o-loop) ease-out infinite; }
.ph__o-pop-b { animation: ph-o-pop-b var(--ph-o-loop) ease-out infinite; }
.ph__o-seal--a { animation: ph-o-seal-a var(--ph-o-loop) cubic-bezier(0.3, 0.7, 0.3, 1) infinite; }
.ph__o-seal--b { animation: ph-o-seal-b var(--ph-o-loop) cubic-bezier(0.3, 0.7, 0.3, 1) infinite; }
.ph__o-ripple--a { animation: ph-o-ripple-a var(--ph-o-loop) ease-out infinite; }
.ph__o-ripple--b { animation: ph-o-ripple-b var(--ph-o-loop) ease-out infinite; }
.ph__o-ripple--c { animation: ph-o-ripple-c var(--ph-o-loop) ease-out infinite; }
.ph__o-approve { animation: ph-o-approve var(--ph-o-loop) cubic-bezier(0.3, 0.7, 0.3, 1) infinite; }
.ph__o-sheet-wrap { animation: ph-o-thud var(--ph-o-loop) ease-out infinite; }
.ph__o-trail { animation: ph-o-trail var(--ph-o-loop) linear infinite; }
.ph__o-fly { animation: ph-o-fly var(--ph-o-loop) linear infinite; }
.ph__o-notif { animation: ph-o-notif var(--ph-o-loop) ease-out infinite; }
.ph__o-head { transform-origin: 50% 100%; animation: ph-o-nod var(--ph-o-loop) ease-in-out infinite; }
.ph__o-daruma-wish { transform-origin: center; animation: ph-o-wish var(--ph-o-loop) ease-out infinite; }
.ph__o-confetti { animation: ph-o-confetti var(--ph-o-loop) ease-in infinite; }
.ph__o-clock-m { animation: ph-o-spin var(--ph-o-loop) linear infinite; }
.ph__o-clock-h { animation: ph-o-spin calc(var(--ph-o-loop) * 12) linear infinite; }

/* ---- Ambient, on their own clocks ---- */
.ph__o-petal { transform-origin: center; animation: ph-o-fall var(--t, 10s) linear var(--d, 0s) infinite; }
.ph__o-clouds { animation: ph-o-drift 40s ease-in-out infinite alternate; }
.ph__o-steam { animation: ph-o-steam 3.2s ease-in-out infinite; }
.ph__o-eyes { transform-origin: center; animation: ph-o-blink 5.2s linear infinite; }
.ph__o-eyes--b { animation-duration: 6.6s; }
.ph__o-breathe { animation: ph-o-breathe 4.4s ease-in-out infinite; }
.ph__o-breathe--b { animation-duration: 5.1s; }
.ph__o-star { animation: ph-o-twinkle 3s ease-in-out infinite; }

@keyframes ph-o-thumb-a {
  0%, 8% { transform: translate(0, 0); }
  14% { transform: translate(-16px, -37px); }
  15.5% { transform: translate(-16px, -34px); }
  17% { transform: translate(-16px, -37px); }
  23%, 100% { transform: translate(0, 0); }
}
@keyframes ph-o-thumb-b {
  0%, 48% { transform: translate(0, 0); }
  54% { transform: translate(-7px, -37px); }
  55.5% { transform: translate(-7px, -34px); }
  57% { transform: translate(-7px, -37px); }
  63%, 100% { transform: translate(0, 0); }
}
@keyframes ph-o-pop-a {
  0%, 15.5% { opacity: 0; transform: scale(2.4); }
  17% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ph-o-pop-a2 {
  0%, 43% { opacity: 0; transform: scale(1.6); }
  45% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ph-o-pop-b {
  0%, 55.5% { opacity: 0; transform: scale(2.4); }
  57% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ph-o-seal-a {
  0%, 18% { opacity: 0; transform: scale(2); }
  20.5% { opacity: 1; transform: scale(0.9); }
  22% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ph-o-seal-b {
  0%, 58% { opacity: 0; transform: scale(2); }
  60.5% { opacity: 1; transform: scale(0.9); }
  62% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ph-o-ripple-a {
  0%, 20.3% { opacity: 0; transform: scale(0.5); }
  20.6% { opacity: 0.75; transform: scale(0.6); }
  26%, 100% { opacity: 0; transform: scale(1.9); }
}
@keyframes ph-o-ripple-b {
  0%, 60.3% { opacity: 0; transform: scale(0.5); }
  60.6% { opacity: 0.75; transform: scale(0.6); }
  66%, 100% { opacity: 0; transform: scale(1.9); }
}
@keyframes ph-o-ripple-c {
  0%, 68.8% { opacity: 0; transform: scale(0.5); }
  69.1% { opacity: 0.7; transform: scale(0.6); }
  76%, 100% { opacity: 0; transform: scale(2); }
}
@keyframes ph-o-approve {
  0%, 66% { opacity: 0; transform: rotate(-12deg) scale(2.6); }
  69% { opacity: 0.95; transform: rotate(-12deg) scale(0.92); }
  71% { opacity: 0.95; transform: rotate(-12deg) scale(1); }
  92% { opacity: 0.95; transform: rotate(-12deg) scale(1); }
  97%, 100% { opacity: 0; transform: rotate(-12deg) scale(1); }
}
@keyframes ph-o-thud {
  0%, 20.4% { transform: none; }
  21% { transform: translateY(2px); }
  22.5%, 60.4% { transform: none; }
  61% { transform: translateY(2px); }
  62.5%, 68.9% { transform: none; }
  69.6% { transform: translateY(4px) scale(0.992); }
  72%, 100% { transform: none; }
}
@keyframes ph-o-trail {
  0%, 24% { opacity: 0; }
  28%, 40% { opacity: 0.7; }
  46%, 100% { opacity: 0; }
}
/* Along the trail, a quadratic from (264,338) over (600,160) to (936,338). */
@keyframes ph-o-fly {
  0%, 24% { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0); }
  25.5% { opacity: 1; transform: translate(34px, -17px) scale(1) rotate(-8deg); }
  28.4% { transform: translate(135px, -58px) scale(1.15) rotate(-6deg); }
  31.8% { transform: translate(270px, -86px) scale(1.25) rotate(-2deg); }
  33.5% { transform: translate(338px, -90px) scale(1.3) rotate(0); }
  35.2% { transform: translate(406px, -86px) scale(1.25) rotate(3deg); }
  38.6% { opacity: 1; transform: translate(541px, -58px) scale(1.15) rotate(7deg); }
  42% { opacity: 0; transform: translate(676px, 0) scale(0.5) rotate(10deg); }
  100% { opacity: 0; transform: translate(676px, 0) scale(0.5) rotate(10deg); }
}
@keyframes ph-o-notif {
  0%, 41.5% { opacity: 0; transform: translateY(-8px); }
  43.5% { opacity: 1; transform: translateY(0); }
  52% { opacity: 1; transform: translateY(0); }
  55%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes ph-o-nod {
  0%, 22% { transform: rotate(0); }
  24% { transform: rotate(3deg); }
  26%, 70% { transform: rotate(0); }
  72.5% { transform: rotate(4deg); }
  75% { transform: rotate(0); }
  77.5% { transform: rotate(3deg); }
  80%, 100% { transform: rotate(0); }
}
@keyframes ph-o-wish {
  0%, 71% { opacity: 0; transform: scale(0.2); }
  74% { opacity: 1; transform: scale(1.2); }
  76% { opacity: 1; transform: scale(1); }
  92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes ph-o-confetti {
  0%, 69% { opacity: 0; transform: translate(0, 0) rotate(0); }
  71% { opacity: 1; transform: translate(0, 0) rotate(0); }
  88% { opacity: 1; }
  95%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
}
@keyframes ph-o-spin {
  to { transform: rotate(360deg); }
}
@keyframes ph-o-fall {
  0% { opacity: 0; transform: translate(0, -10px) rotate(0); }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 60px), 240px) rotate(320deg); }
}
@keyframes ph-o-drift {
  from { transform: translateX(-40px); }
  to { transform: translateX(60px); }
}
@keyframes ph-o-steam {
  0% { opacity: 0; transform: translateY(6px); }
  40% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes ph-o-blink {
  0%, 95% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
  99%, 100% { transform: scaleY(1); }
}
@keyframes ph-o-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@keyframes ph-o-twinkle {
  0%, 100% { opacity: var(--ph-o-stars); }
  50% { opacity: calc(var(--ph-o-stars) * 0.35); }
}

/* ---- The steps under the picture, lit in turn ---- */
.ph__office-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1080px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .ph__office-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .ph__office-steps { grid-template-columns: repeat(4, 1fr); }
}

.ph__office-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  background: var(--ph-panel);
  box-shadow: var(--ph-card-shadow);
}

.ph__office-step h3 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.ph__office-step p {
  margin: 0;
  color: var(--ph-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ph__office-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ph-accent);
  border-radius: 50%;
  color: var(--ph-accent-text);
  font-family: var(--ph-seal-font);
  font-weight: 700;
}

.ph__office-step--1 { animation: ph-o-step-1 var(--ph-o-loop) ease infinite; }
.ph__office-step--2 { animation: ph-o-step-2 var(--ph-o-loop) ease infinite; }
.ph__office-step--3 { animation: ph-o-step-3 var(--ph-o-loop) ease infinite; }
.ph__office-step--4 { animation: ph-o-step-4 var(--ph-o-loop) ease infinite; }

@keyframes ph-o-step-1 {
  0%, 6% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
  9%, 23% { opacity: 1; border-color: var(--ph-accent); transform: translateY(-3px); }
  26%, 100% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
}
@keyframes ph-o-step-2 {
  0%, 23% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
  26%, 43% { opacity: 1; border-color: var(--ph-accent); transform: translateY(-3px); }
  46%, 100% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
}
@keyframes ph-o-step-3 {
  0%, 43% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
  46%, 63% { opacity: 1; border-color: var(--ph-accent); transform: translateY(-3px); }
  66%, 100% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
}
@keyframes ph-o-step-4 {
  0%, 63% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
  66%, 94% { opacity: 1; border-color: var(--ph-accent); transform: translateY(-3px); }
  97%, 100% { opacity: 0.55; border-color: var(--ph-line); transform: none; }
}

/* =========================================================================
 * Stamps that come down — the hero's seal on load; the closing band's seal
 * and the seals in the small flow pictures as they scroll into view, where
 * the browser supports scroll-driven animation (elsewhere they simply sit).
 * `scale` composes with each seal's own `transform`, so their tilt is kept.
 * ====================================================================== */

@keyframes ph-stamp-in {
  0% { opacity: 0; scale: 2.2; }
  60% { opacity: 1; scale: 0.92; }
  100% { opacity: 1; scale: 1; }
}

.ph__phones-seal {
  animation: ph-stamp-in 0.7s cubic-bezier(0.3, 0.7, 0.3, 1) 0.5s both;
}

@supports (animation-timeline: view()) {
  .ph__cta-seal,
  .ph__scene-seal {
    transform-box: fill-box;
    transform-origin: center;
    animation: ph-stamp-in linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 40%;
  }
}

/* =========================================================================
 * 青海波 — the wave pattern, under the closing band, fading upward.
 * ====================================================================== */

.ph__cta {
  --ph-wave-bg: var(--ph-tint);
  --ph-wave-line: var(--ph-wave);
  position: relative;
  isolation: isolate;
}

.ph__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--ph-wave-bg);
  background-image:
    radial-gradient(circle at 100% 150%, var(--ph-wave-bg) 24%, var(--ph-wave-line) 24%, var(--ph-wave-line) 28%, var(--ph-wave-bg) 28%, var(--ph-wave-bg) 36%, var(--ph-wave-line) 36%, var(--ph-wave-line) 40%, transparent 40%, transparent),
    radial-gradient(circle at 0 150%, var(--ph-wave-bg) 24%, var(--ph-wave-line) 24%, var(--ph-wave-line) 28%, var(--ph-wave-bg) 28%, var(--ph-wave-bg) 36%, var(--ph-wave-line) 36%, var(--ph-wave-line) 40%, transparent 40%, transparent),
    radial-gradient(circle at 50% 100%, var(--ph-wave-line) 10%, var(--ph-wave-bg) 10%, var(--ph-wave-bg) 23%, var(--ph-wave-line) 23%, var(--ph-wave-line) 30%, var(--ph-wave-bg) 30%, var(--ph-wave-bg) 43%, var(--ph-wave-line) 43%, var(--ph-wave-line) 50%, var(--ph-wave-bg) 50%, var(--ph-wave-bg) 63%, var(--ph-wave-line) 63%, var(--ph-wave-line) 71%, transparent 71%, transparent),
    radial-gradient(circle at 100% 50%, var(--ph-wave-line) 5%, var(--ph-wave-bg) 5%, var(--ph-wave-bg) 15%, var(--ph-wave-line) 15%, var(--ph-wave-line) 20%, var(--ph-wave-bg) 20%, var(--ph-wave-bg) 29%, var(--ph-wave-line) 29%, var(--ph-wave-line) 34%, var(--ph-wave-bg) 34%, var(--ph-wave-bg) 44%, var(--ph-wave-line) 44%, var(--ph-wave-line) 49%, transparent 49%, transparent),
    radial-gradient(circle at 0 50%, var(--ph-wave-line) 5%, var(--ph-wave-bg) 5%, var(--ph-wave-bg) 15%, var(--ph-wave-line) 15%, var(--ph-wave-line) 20%, var(--ph-wave-bg) 20%, var(--ph-wave-bg) 29%, var(--ph-wave-line) 29%, var(--ph-wave-line) 34%, var(--ph-wave-bg) 34%, var(--ph-wave-bg) 44%, var(--ph-wave-line) 44%, var(--ph-wave-line) 49%, transparent 49%, transparent);
  background-size: 64px 32px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
}

/* =========================================================================
 * Nearby — 近くの端末に送る
 *
 * Two phones on one Wi-Fi and the PDF crossing the gap. One 7s timeline,
 * every story animation on --ph-n-loop with no delay:
 *
 *    4–10%   送信 pressed on the sender
 *   14–20%   受信 pressed on the receiver → the dialog clears (22–26%)
 *   26–70%   the PDF flies along the Wi-Fi arc; the sender's bar fills
 *   72–92%   受信しました on the receiver, then the loop resets
 *
 * The un-animated state is the PDF in mid-air with both codes showing, so with
 * reduced motion (the `.ph *` rule above) the picture still tells the story.
 * ====================================================================== */

.ph__nearby {
  --ph-n-loop: 7s;
  overflow: hidden;
}

.ph__nearby-stage {
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(18px, 3.4vw, 40px) clamp(10px, 2.4vw, 32px);
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-lg);
  background-color: var(--ph-tint);
  background-image:
    linear-gradient(var(--ph-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ph-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ph__nearby-phones {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph__nearby-phone {
  flex: 0 1 250px;
  max-width: 250px;
}

.ph__nearby-air {
  display: flex;
  flex: 0 1 220px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  color: var(--ph-muted);
  text-align: center;
}

.ph__nearby-air small {
  display: block;
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 700;
  line-height: 1.25;
}

.ph__nearby-cloud svg,
.ph__nearby-wifi svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph__nearby-cloud svg {
  width: clamp(30px, 5vw, 48px);
  height: auto;
  stroke-width: 2;
  opacity: 0.75;
}

.ph__nearby-cloud-x {
  stroke: var(--ph-accent);
  stroke-width: 3;
}

.ph__nearby-wifi {
  color: var(--ph-app-blue);
}

.ph__nearby-wifi svg {
  width: clamp(20px, 3.4vw, 30px);
  height: clamp(20px, 3.4vw, 30px);
  stroke-width: 2;
}

.ph__nearby-path {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  container-type: inline-size;
}

.ph__nearby-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ph__nearby-arc path {
  fill: none;
  stroke: var(--ph-app-blue);
  stroke-width: 2.5;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: ph-n-dash 1.2s linear infinite;
}

/* The document: centred on the arc's apex, which is where it rests unanimated. */
.ph__nearby-fly {
  position: absolute;
  top: 32%;
  left: 50%;
  width: 26%;
  aspect-ratio: 3 / 4;
  margin-left: -13%;
  transform: translateY(-50%);
}

.ph__nearby-doc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--ph-line);
  border-radius: 12%;
  background: #ffffff;
  box-shadow: var(--ph-shadow-sm);
  color: var(--ph-accent);
}

.ph__nearby-doc > svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph__nearby-doc i {
  position: absolute;
  right: -22%;
  bottom: -14%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58%;
  aspect-ratio: 1;
  border: 2px solid var(--ph-tint);
  border-radius: 50%;
  background: #2e9e5b;
  color: #ffffff;
}

.ph__nearby-doc i svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@supports (width: 1cqw) {
  .ph__nearby-fly {
    animation: ph-n-fly-x var(--ph-n-loop) linear infinite;
  }

  .ph__nearby-doc {
    animation: ph-n-fly-y var(--ph-n-loop) infinite;
  }
}

/* ---- The two screens ---- */

.ph__app--sheet {
  padding-bottom: calc(var(--pp) * 0.07);
}

.ph__app-nav--nb {
  grid-template-columns: calc(var(--pp) * 0.15) 1fr calc(var(--pp) * 0.15);
}

.ph__app-nav--nb b {
  font-size: calc(var(--pp) * 0.036);
}

.ph__app-nbfile {
  display: flex;
  align-items: center;
  gap: calc(var(--pp) * 0.03);
  padding: calc(var(--pp) * 0.03);
  border-radius: calc(var(--pp) * 0.035);
  background: var(--app-fill);
}

.ph__app-nbfile--flat {
  padding: calc(var(--pp) * 0.02) calc(var(--pp) * 0.025);
  text-align: left;
}

.ph__app-nbfile > svg {
  flex: none;
  width: calc(var(--pp) * 0.09);
  height: calc(var(--pp) * 0.09);
  color: var(--ph-shu);
}

.ph__app-nbfile > span {
  min-width: 0;
}

.ph__app-nbfile b {
  overflow: hidden;
  font-size: calc(var(--pp) * 0.036);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph__app-nbfile small {
  font-size: calc(var(--pp) * 0.03) !important;
}

.ph__app-nbdevice {
  display: flex;
  align-items: center;
  gap: calc(var(--pp) * 0.025);
  padding: calc(var(--pp) * 0.028) calc(var(--pp) * 0.03);
  border: 1.5px solid var(--ph-app-blue);
  border-radius: calc(var(--pp) * 0.035);
  background: var(--ph-app-blue-soft);
  color: var(--ph-app-blue);
}

.ph__app-nbdevice svg {
  flex: none;
  width: calc(var(--pp) * 0.065);
  height: calc(var(--pp) * 0.065);
}

.ph__app-nbdevice b {
  flex: 1;
  overflow: hidden;
  color: var(--app-ink);
  font-size: calc(var(--pp) * 0.036);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph__app-nbdevice--off {
  margin-top: calc(var(--pp) * -0.015);
  border-color: var(--app-line);
  background: transparent;
  color: var(--app-muted);
}

.ph__app-nbcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--pp) * 0.012);
  text-align: center;
}

.ph__app-nbcode small {
  font-size: calc(var(--pp) * 0.03) !important;
  line-height: 1.35;
}

.ph__app-nbcode b {
  color: var(--app-ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: calc(var(--pp) * 0.105);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.ph__app-nbprogress {
  display: grid;
  gap: calc(var(--pp) * 0.012);
  margin-top: auto;
}

.ph__app-nbprogress small {
  font-size: calc(var(--pp) * 0.03) !important;
}

.ph__app-nbprogress > i {
  display: block;
  height: calc(var(--pp) * 0.018);
  overflow: hidden;
  border-radius: 999px;
  background: var(--app-line);
}

.ph__app-nbprogress > i > i {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--ph-app-blue);
  animation: ph-n-bar var(--ph-n-loop) linear infinite;
}

.ph__app-nbbuttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--pp) * 0.025);
}

.ph__app-nbbuttons i {
  padding: calc(var(--pp) * 0.026) 0;
  border-radius: calc(var(--pp) * 0.03);
  background: var(--app-fill);
  color: var(--ph-app-blue);
  font-size: calc(var(--pp) * 0.036);
  font-weight: 700;
  text-align: center;
}

.ph__app-nbbuttons .ph__app-nbgo {
  background: var(--ph-blue);
  color: #ffffff;
}

.ph__app-nbgo--send {
  animation: ph-n-press-send var(--ph-n-loop) infinite;
}

.ph__app-nbgo--receive {
  animation: ph-n-press-receive var(--ph-n-loop) infinite;
}

.ph__app-radar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--pp) * 0.5);
  aspect-ratio: 1;
  margin: calc(var(--pp) * 0.04) auto 0;
  color: var(--ph-app-blue);
}

.ph__app-radar i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ph-app-blue);
  border-radius: 50%;
  opacity: 0.25;
  animation: ph-n-radar 2.4s ease-out infinite;
}

.ph__app-radar i:nth-child(1) {
  inset: 34%;
  opacity: 0.6;
}

.ph__app-radar i:nth-child(2) {
  inset: 17%;
  opacity: 0.4;
  animation-delay: 0.8s;
}

.ph__app-radar i:nth-child(3) {
  animation-delay: 1.6s;
}

.ph__app-radar svg {
  position: relative;
  width: 24%;
  height: 24%;
}

.ph__app-nbcenter {
  font-size: calc(var(--pp) * 0.03) !important;
  line-height: 1.4;
  text-align: center;
}

.ph__app-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  animation: ph-n-dialog var(--ph-n-loop) infinite;
}

.ph__app-alert {
  position: absolute;
  top: 26%;
  right: 6%;
  left: 6%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: calc(var(--pp) * 0.03);
  padding: calc(var(--pp) * 0.045) calc(var(--pp) * 0.04);
  border-radius: calc(var(--pp) * 0.05);
  background: var(--ph-app-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: ph-n-dialog var(--ph-n-loop) infinite;
}

.ph__app-alert-title {
  font-size: calc(var(--pp) * 0.04);
  line-height: 1.35;
  white-space: pre-line;
}

.ph__app-alert .ph__app-nbcode b {
  font-size: calc(var(--pp) * 0.09);
}

.ph__app-nbdone {
  position: absolute;
  bottom: 12%;
  left: 50%;
  z-index: 3;
  display: flex !important;
  align-items: center;
  gap: calc(var(--pp) * 0.02);
  padding: calc(var(--pp) * 0.03) calc(var(--pp) * 0.05);
  border-radius: 999px;
  background: #2e9e5b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
  font-size: calc(var(--pp) * 0.038);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  animation: ph-n-done var(--ph-n-loop) infinite;
}

.ph__app-nbdone svg {
  width: calc(var(--pp) * 0.05);
  height: calc(var(--pp) * 0.05);
  stroke-width: 3;
}

/* ---- Under the picture ---- */

.ph__nearby-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--ph-line);
  border-left: 4px solid var(--ph-accent);
  border-radius: var(--ph-radius-sm);
  background: var(--ph-panel);
  box-shadow: var(--ph-card-shadow);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
}

.ph__nearby-callout .ph__icon {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--ph-accent-text);
}

.ph__nearby-points {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .ph__nearby-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .ph__nearby-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- The timeline ---- */

@keyframes ph-n-dash {
  to { stroke-dashoffset: -11; }
}

@keyframes ph-n-fly-x {
  0%, 26% { opacity: 0; translate: -48cqw 0; }
  30% { opacity: 1; }
  66% { opacity: 1; }
  70%, 100% { opacity: 0; translate: 48cqw 0; }
}

@keyframes ph-n-fly-y {
  0%, 26% { transform: translateY(30cqw) scale(0.7); animation-timing-function: ease-out; }
  48% { transform: translateY(0) scale(1); animation-timing-function: ease-in; }
  70%, 100% { transform: translateY(30cqw) scale(0.7); }
}

@keyframes ph-n-bar {
  0%, 26% { width: 0; }
  70%, 92% { width: 100%; }
  96%, 100% { width: 0; }
}

@keyframes ph-n-press-send {
  0%, 4% { transform: none; filter: none; }
  7% { transform: scale(0.92); filter: brightness(0.85); }
  10%, 100% { transform: none; filter: none; }
}

@keyframes ph-n-press-receive {
  0%, 14% { transform: none; filter: none; }
  17% { transform: scale(0.92); filter: brightness(0.85); }
  20%, 100% { transform: none; filter: none; }
}

@keyframes ph-n-dialog {
  0%, 22% { opacity: 1; }
  26%, 94% { opacity: 0; }
  98%, 100% { opacity: 1; }
}

@keyframes ph-n-done {
  0%, 70% { opacity: 0; transform: translateX(-50%) translateY(20%) scale(0.9); }
  74%, 90% { opacity: 1; transform: translateX(-50%); }
  94%, 100% { opacity: 0; transform: translateX(-50%); }
}

@keyframes ph-n-radar {
  from { transform: scale(0.6); opacity: 0.55; }
  to { transform: scale(1.15); opacity: 0; }
}

/* =========================================================================
 * 2026-10 redesign — office paper
 *
 * Black and white like a sheet from the copier; red only where a seal is
 * pressed and on the one button that matters. Everything below restyles the
 * furniture above; the drawn phones, the scenes, the office and the nearby
 * animation keep their own rules untouched.
 * ====================================================================== */

.ph {
  font-family: var(--ph-font);
  font-size: 16.5px;
  line-height: 1.65;
  background: var(--ph-bg);
  font-feature-settings: "cv11", "ss01";
}

.ph:lang(ja) {
  letter-spacing: 0.01em;
}

:where(.ph) h1,
:where(.ph) h2 {
  font-weight: 800;
  text-wrap: balance;
}

.ph h1 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ph h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.042em;
}

.ph h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

/* Negative tracking is for Latin display type; kana and kanji set solid. */
.ph:lang(ja) :is(h1, h2, h3),
.ph :lang(ja) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.22;
}

.ph :focus-visible {
  outline: 2px solid var(--ph-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.ph__section {
  padding-block: var(--ph-band);
}

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

/* ---- Eyebrow, lead, notes ---- */

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

.ph__eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
}

.ph__lead {
  margin-top: 18px;
  color: var(--ph-muted);
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  line-height: 1.6;
}

.ph__accent {
  color: var(--ph-muted);
}

.ph__note {
  margin-top: 24px;
  color: var(--ph-muted);
  font-size: 14.5px;
}

.ph__note--center {
  max-width: 820px;
}

.ph__text-link {
  color: var(--ph-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---- Section heads: title left, intro right ---- */

.ph__section-head {
  display: grid;
  gap: 0;
  max-width: none;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.ph__section-head h2 {
  max-width: 18ch;
}

.ph:lang(ja) .ph__section-head h2 {
  max-width: 24ch;
}

.ph__section-head--stacked {
  max-width: 680px;
}

.ph__section-head--center {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.ph__section-head--center h2 {
  max-width: none;
}

@media (min-width: 900px) {
  .ph__section-head:not(.ph__section-head--stacked, .ph__section-head--center) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(32px, 5vw, 80px);
  }

  .ph__section-head:not(.ph__section-head--stacked, .ph__section-head--center) .ph__lead {
    margin-top: 0;
    padding-bottom: 6px;
  }
}

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

.ph__actions {
  gap: 12px;
  margin-top: 30px;
}

.ph__button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ph-accent);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ph__button:hover {
  transform: none;
  background: color-mix(in srgb, var(--ph-accent) 86%, #000000);
}

.ph__button--ghost,
.ph__button--ghost:hover {
  background: transparent;
  color: var(--ph-ink);
  border: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph-ink) 28%, transparent);
}

.ph__button--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--ph-ink);
}

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

/* Store badges: dark rounded rectangles, on paper and on the ink band alike. */
.ph__stores {
  gap: 10px;
  margin-top: 26px;
}

.ph .ph__store {
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: #0d0d0d;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ph__store svg {
  width: 24px;
  height: 24px;
}

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

.ph .ph__store--soon {
  background: transparent;
  color: var(--ph-muted);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--ph-line);
  border-style: none;
  background-image: none;
}

.ph .ph__store--soon:hover {
  transform: none;
}

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

.ph__header {
  background: var(--ph-bg);
  border-bottom: 1px solid var(--ph-line);
}

.ph__brand img,
.ph__brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: none;
}

.ph__brand-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ph__brand-text small {
  font-size: 12px;
}

.ph__menu-button,
.ph__icon-btn,
.ph__lang summary {
  border-radius: 999px;
  border-color: var(--ph-line);
}

.ph__header-inner:has(#ph-menu:target) .ph__menu-button--close {
  border-color: var(--ph-ink);
  background: transparent;
  color: var(--ph-ink);
}

.ph__nav a {
  font-weight: 600;
}

.ph__nav a:hover,
.ph__footer-col a:hover,
.ph__footer-bottom a:hover {
  color: var(--ph-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .ph__header {
    background: color-mix(in srgb, var(--ph-bg) 90%, transparent);
  }

  .ph__nav ul {
    gap: 6px 24px;
  }

  .ph__nav a {
    color: var(--ph-muted);
    font-size: 14.5px;
    font-weight: 500;
  }

  .ph__nav a:hover {
    color: var(--ph-ink);
  }

  .ph__header-panel,
  .ph__header-panel:target {
    gap: 24px;
  }

  .ph__brand img,
  .ph__brand-mark {
    width: 36px;
    height: 36px;
  }

  .ph__brand-text strong {
    font-size: 17px;
  }
}

/* Between tablet and a wide desktop the tagline is what makes the bar wrap. */
@media (max-width: 1199px) {
  .ph__header .ph__brand-text small {
    display: none;
  }
}

/* =========================================================================
 * Hero — 縦書き / words / 稟議書
 * ====================================================================== */

.ph__hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 96px) var(--ph-band);
  background: var(--ph-bg);
  border-bottom: 1px solid var(--ph-line);
}

.ph__hero-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

/* On a phone the vertical title lies down and becomes the first line. */
.ph__hero-vertical {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35em;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ph-line);
  color: var(--ph-ink);
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.ph__hero-vertical span:last-child:not(:first-child) {
  color: var(--ph-muted);
}

.ph__hero-copy h1 .ph__accent {
  display: block;
  margin-top: 0.08em;
  color: var(--ph-muted);
}

.ph__hero-copy .ph__lead {
  max-width: 34em;
  margin-top: 22px;
}

.ph__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ph-line);
  list-style: none;
}

.ph__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ph__hero-notes .ph__icon {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--ph-ink);
  stroke-width: 2.6;
}

.ph__hero-visual {
  min-width: 0;
}

.ph__hero--phones .ph__hero-visual {
  padding-top: 8px;
}

@media (min-width: 760px) {
  .ph__hero-grid {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: clamp(40px, 6vw, 64px);
  }

  .ph__hero-vertical {
    display: block;
    align-self: stretch;
    padding: 0 clamp(18px, 2vw, 28px) 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--ph-line);
    font-size: clamp(34px, 3.3vw, 50px);
    letter-spacing: 0.12em;
    line-height: 1.25;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

  .ph__hero-vertical span {
    display: block;
  }

  .ph__hero-vertical span + span {
    margin-top: 1.4em;
  }

  .ph__hero-copy {
    align-self: center;
  }

  .ph__hero-visual {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(520px, 100%);
  }

  .ph__hero--phones .ph__hero-visual {
    width: min(640px, 100%);
  }
}

@media (min-width: 1100px) {
  .ph__hero-grid {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.82fr);
    align-items: center;
  }

  .ph__hero-visual {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .ph__hero--phones .ph__hero-grid {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .ph__hero--phones .ph__hero-visual {
    width: auto;
  }
}

/* ---- The sheet ---- */

.ph__sheet {
  position: relative;
  margin: 0;
  padding: 0 16px 16px 0;
}

/* The sheet under it, a little askew: a stack, not a single page. */
.ph__sheet::before {
  content: "";
  position: absolute;
  inset: 16px 0 0 16px;
  border-radius: 6px;
  background: var(--ph-panel-2);
  box-shadow: inset 0 0 0 1px var(--ph-line);
}

.ph__sheet-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  aspect-ratio: 1 / 1.24;
  padding: clamp(20px, 2.6vw, 34px);
  border-radius: 6px;
  background: var(--ph-sheet);
  color: #1a1a1a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 34px 64px -34px rgba(0, 0, 0, 0.38);
  font-family: var(--ph-seal-font);
  overflow: hidden;
}

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

.ph__sheet-no {
  color: #6d6d6d;
  font-family: var(--ph-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.ph__sheet-approve {
  flex: none;
  border-collapse: collapse;
  table-layout: fixed;
}

.ph__sheet-approve th,
.ph__sheet-approve td {
  width: clamp(48px, 4.6vw, 64px);
  border: 1.5px solid #1a1a1a;
  text-align: center;
}

.ph__sheet-approve th {
  padding: 3px 0;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ph__sheet-approve td {
  height: clamp(48px, 4.6vw, 64px);
  padding: 5px;
}

.ph__sheet-seal {
  width: 100%;
}

.ph__sheet-seal--1 {
  rotate: -9deg;
  animation: ph-stamp-in 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s both;
}

.ph__sheet-seal--2 {
  rotate: 7deg;
  animation: ph-stamp-in 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) 0.95s both;
}

/* 部長 has not stamped yet: the place where the seal will go. */
.ph__sheet-empty {
  display: block;
  width: 78%;
  aspect-ratio: 1;
  margin: auto;
  border: 1.5px dashed #a8a8a8;
  border-radius: 50%;
  animation: ph-sheet-wait 2.4s ease-in-out 1.6s infinite;
}

@keyframes ph-sheet-wait {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ph__sheet-title {
  margin: 4px 0 2px;
  padding-left: 0.6em;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.6em;
  text-align: center;
}

.ph__sheet-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ph__sheet-fields div {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ph__sheet-fields dt {
  color: #4a4a4a;
  font-size: 11.5px;
  letter-spacing: 0.2em;
}

.ph__sheet-fields dd {
  display: flex;
  align-items: center;
  height: 22px;
  margin: 0;
  border-bottom: 1px solid #d6d6d6;
}

.ph__sheet-fields i,
.ph__sheet-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #cfcfcf;
}

.ph__sheet-bars {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.ph__sheet-bars i {
  background: #e3e3e3;
}

.ph__sheet-bars b {
  height: 4px;
}

.ph__sheet-end {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-align: right;
}

/* =========================================================================
 * The toolbar — six cells
 * ====================================================================== */

.ph__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: -12px 0 28px;
  padding: 0;
  border: 0;
  background: none;
}

.ph__legend li {
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.ph__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ph__tool {
  padding: clamp(22px, 2.4vw, 30px);
}

.ph__tool-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 12px;
  margin: 0;
}

.ph__tool-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1.5px var(--ph-ink);
  color: var(--ph-ink);
}

.ph__tool-mark .ph__icon {
  width: 21px;
  height: 21px;
}

.ph__tool-n {
  justify-self: end;
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.ph__tool-head h3 {
  grid-column: 1 / -1;
  margin-top: 20px;
  font-size: clamp(19px, 1.6vw, 22px);
  letter-spacing: -0.025em;
}

.ph__tool-sum {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 11.5px;
}

.ph__tool-sum > span:first-child {
  margin-right: 4px;
}

.ph__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph-ink) 40%, transparent);
  color: var(--ph-ink);
  font-family: var(--ph-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.ph__tag--solid {
  background: var(--ph-strong);
  box-shadow: none;
  color: var(--ph-on-strong);
}

.ph__tool ul {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ph__tool li {
  padding: 12px 0;
  border-top: 1px dashed var(--ph-line);
}

.ph__tool li:first-child {
  border-top: 1px solid var(--ph-line);
}

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

.ph__tool-line b {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.ph__tool li p {
  margin-top: 3px;
  color: var(--ph-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .ph__tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ph__tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* ---- Plan chips: Free outlined, limited dashed, Pro solid ---- */

.ph__plan {
  gap: 4px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ph__plan--free {
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph-ink) 30%, transparent);
  color: var(--ph-ink);
}

.ph__plan--partial {
  background: transparent;
  box-shadow: none;
  outline: 1px dashed color-mix(in srgb, var(--ph-ink) 45%, transparent);
  outline-offset: -1px;
  color: var(--ph-ink);
}

.ph__plan--pro {
  background: var(--ph-strong);
  color: var(--ph-on-strong);
}

.ph__plan-crown {
  width: 12px;
  height: 12px;
}

/* =========================================================================
 * Cards, made quieter: a hairline, no shadow
 * ====================================================================== */

.ph__flow-step,
.ph__feature,
.ph__stat,
.ph__data-item,
.ph__faq-item,
.ph__post-card,
.ph__notice-inner,
.ph__stamp,
.ph__methods li,
.ph__plan-card,
.ph__office-step {
  box-shadow: none;
}

.ph__feature-mark,
.ph__notice-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ph-ink);
  color: var(--ph-ink);
}

.ph__feature-mark .ph__icon,
.ph__notice-mark svg {
  width: 21px;
  height: 21px;
}

/*
 * A run of cells drawn as one ruled box, as a form would rule them. Each cell
 * draws its left and top rule as an inset shadow and is pulled 1px up and left,
 * so the box's own border clips the rules that would double it. An odd cell
 * out leaves white paper, not a grey hole.
 */
.ph__flow,
.ph__features,
.ph__stats,
.ph__stamps,
.ph__methods,
.ph__plans,
.ph__post-grid,
.ph__tools,
.ph__nearby-points {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  background: var(--ph-panel);
}

.ph__flow-step,
.ph__feature,
.ph__stat,
.ph__stamp,
.ph__methods li,
.ph__plan-card,
.ph__post-card,
.ph__tool,
.ph__nearby-points .ph__feature {
  margin: -1px 0 0 -1px;
  border: 0;
  border-radius: 0;
  background: var(--ph-panel);
  box-shadow: inset 1px 0 0 var(--ph-line), inset 0 1px 0 var(--ph-line);
}

.ph__nearby-points .ph__feature {
  background: var(--ph-bg);
}

.ph__points .ph__plan,
.ph__methods .ph__plan {
  color: var(--ph-ink);
}

.ph__points .ph__plan--pro,
.ph__methods .ph__plan--pro {
  color: var(--ph-on-strong);
}

@media (hover: hover) {
  .ph__feature:hover,
  .ph__stamp:hover,
  .ph__plan-card:hover {
    transform: none;
    box-shadow: none;
  }
}

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

.ph__flow-step {
  padding: clamp(18px, 2vw, 26px);
}

.ph__flow-step .ph__scene {
  margin-bottom: 18px;
}

.ph__flow-n {
  width: auto;
  height: auto;
  margin-bottom: 8px;
  border-radius: 0;
  background: none;
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.ph__flow-n::before {
  content: "0";
}

.ph__flow-step h3 {
  font-size: 19px;
}

.ph__flow-step p {
  font-size: 15px;
}

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

.ph__feature {
  padding: clamp(22px, 2.4vw, 30px);
}

.ph__feature-mark {
  margin-bottom: 22px;
}

.ph__feature p {
  font-size: 15px;
}

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

.ph__stats-band {
  padding-block: var(--ph-band);
  background: var(--ph-bg);
  border-block: 1px solid var(--ph-line);
}

.ph__stat {
  padding: clamp(22px, 2.4vw, 32px);
  text-align: left;
}

.ph__stat dt {
  color: var(--ph-ink);
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.ph__stat dd {
  margin-top: 14px;
  font-size: 14.5px;
}

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

.ph__showcase + .ph__showcase {
  border-top: 1px solid var(--ph-line);
}

.ph__points {
  gap: 0;
  border-top: 1px solid var(--ph-line);
}

.ph__points li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ph-line);
}

.ph__points .ph__feature-mark,
.ph__methods .ph__feature-mark {
  width: 38px;
  height: 38px;
}

.ph__points b,
.ph__methods b {
  font-size: 16px;
  font-weight: 650;
}

/* ---- Stamps ---- */

.ph__stamps-band {
  background: var(--ph-bg);
  background-image: none;
  border-block: 1px solid var(--ph-line);
}

.ph__stamp {
  padding: clamp(22px, 2.4vw, 32px) 18px;
}

.ph__stamp-seal {
  border-radius: 6px;
  background: var(--ph-sheet);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 16px 30px -22px rgba(0, 0, 0, 0.4);
}

.ph__methods {
  margin-top: 16px;
}

.ph__methods li {
  padding: 22px;
}

/* ---- Plans ---- */

.ph__plans {
  max-width: none;
}

.ph__plan-card {
  padding: clamp(24px, 2.6vw, 34px);
}

.ph__plan-card h3 {
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ph__plan-price {
  margin-top: 18px;
}

.ph__plan-price b {
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.ph__plan-card--featured {
  --ph-ink: #f3f2ee;
  --ph-muted: #a9a8a2;
  border: 0;
  background: var(--ph-band-bg);
  color: var(--ph-ink);
}

.ph__plan-card--featured .ph__plan-price b {
  color: var(--ph-ink);
}

.ph__plan-badge {
  position: static;
  display: inline-flex;
  float: right;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3f2ee;
  color: #111111;
  font-family: var(--ph-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ph__compare-wrap {
  max-width: none;
  margin-top: 16px;
  border-radius: 22px;
  box-shadow: none;
}

.ph__compare thead th {
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ph__compare th,
.ph__compare td {
  padding: 13px 20px;
}

.ph__compare-pro {
  background: color-mix(in srgb, var(--ph-ink) 4%, transparent);
}

.ph__compare thead .ph__compare-pro {
  color: var(--ph-ink);
}

.ph__cmp-yes {
  width: 22px;
  height: 22px;
  background: var(--ph-strong);
  color: var(--ph-on-strong);
}

.ph__cmp-yes .ph__icon {
  width: 13px;
  height: 13px;
}

.ph__cmp-text {
  font-size: 13.5px;
  font-weight: 500;
}

/* ---- The data list: one ruled table of rows ---- */

.ph__data {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  background: var(--ph-panel);
}

.ph__data-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border: 0;
  border-top: 1px solid var(--ph-line);
  border-radius: 0;
  background: none;
}

.ph__data-item:first-child {
  border-top: 0;
}

.ph__data-n {
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 11.5px;
  line-height: 1.9;
  font-variant-numeric: tabular-nums;
}

.ph__data-item h3 {
  font-size: 16px;
}

.ph__data-where,
.ph__data-verdict {
  grid-column: 2;
}

.ph__data-where {
  margin-top: 0;
  font-size: 15px;
}

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

.ph__chip {
  padding: 2px 10px;
  font-family: var(--ph-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ph__chip--stays {
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph-ink) 35%, transparent);
  color: var(--ph-ink);
}

.ph__chip--leaves {
  background: var(--ph-strong);
  color: var(--ph-on-strong);
}

.ph__data-when {
  font-size: 13px;
}

@media (min-width: 900px) {
  .ph__data-item {
    grid-template-columns: 34px minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(150px, 0.6fr);
    gap: 20px;
    align-items: baseline;
  }

  .ph__data-where {
    grid-column: 3;
  }

  .ph__data-verdict {
    grid-column: 4;
    flex-direction: column;
    align-items: flex-start;
  }
}

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

.ph__notice-inner {
  gap: 20px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  background: var(--ph-panel);
}

.ph__notice--warn .ph__notice-inner,
.ph__notice--critical .ph__notice-inner {
  border-left: 1px solid var(--ph-line);
}

.ph__notice--critical .ph__notice-inner {
  border-color: var(--ph-ink);
}

.ph__notice--info .ph__notice-inner {
  border-left-color: var(--ph-line);
}

.ph__notice h2 {
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.025em;
}

.ph__notice-list li {
  padding: 14px 0 0;
  border-left: 0;
  border-top: 1px dashed var(--ph-line);
}

@media (min-width: 900px) {
  .ph__notice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 40px;
  }
}

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

.ph__faq {
  gap: 0;
  border-top: 1px solid var(--ph-line);
}

.ph__faq-item {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ph-line);
  border-radius: 0;
  background: none;
}

.ph__faq-item summary {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ph__faq-item summary i {
  border-color: var(--ph-ink);
  border-width: 0 1.5px 1.5px 0;
}

.ph__faq-item p {
  max-width: 64ch;
  padding-bottom: 22px;
}

/* =========================================================================
 * The ink band — the dark third of the page's rhythm
 *
 * It re-declares the page tokens rather than recolouring each child, so a
 * section head, a callout or a feature cell drops into it unchanged.
 * ====================================================================== */

.ph__band-ink {
  --ph-bg: var(--ph-band-bg);
  --ph-surface: var(--ph-band-bg);
  --ph-panel: #191919;
  --ph-panel-2: #232323;
  --ph-tint: #151515;
  --ph-line: #2d2d2c;
  --ph-ink: #f3f2ee;
  --ph-muted: #a9a8a2;
  --ph-strong: #f3f2ee;
  --ph-on-strong: #111111;
  background: var(--ph-band-bg);
  color: var(--ph-ink);
  border-block: 1px solid #222221;
}

/* ---- Nearby, in the ink band ---- */

.ph__nearby-grid {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
}

.ph__nearby-copy .ph__section-head {
  margin-bottom: 0;
}

.ph__nearby-stage {
  max-width: none;
  margin: 0;
  border: 1px solid var(--ph-line);
  border-radius: 22px;
  background-color: #151515;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ph__nearby-callout {
  max-width: none;
  margin: 28px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--ph-line);
  border-left: 1px solid var(--ph-line);
  border-radius: 14px;
  background: var(--ph-panel);
  box-shadow: none;
  font-size: 15.5px;
  font-weight: 600;
}

.ph__nearby-callout .ph__icon {
  color: var(--ph-ink);
}

.ph__nearby-points {
  margin-top: clamp(36px, 4vw, 56px);
  background: var(--ph-bg);
}

@media (min-width: 1000px) {
  .ph__nearby-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* ---- Office ---- */

.ph__office-stage {
  max-width: none;
  border-radius: 22px;
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.45);
}

.ph__office-steps {
  max-width: none;
  margin-top: 16px;
}

.ph__office-step {
  padding: 18px;
  border-radius: 14px;
  background: var(--ph-panel);
}

.ph__office-n {
  border: 1.5px solid var(--ph-ink);
  color: var(--ph-ink);
  font-family: var(--ph-mono);
  font-size: 12px;
}

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

.ph__cta {
  padding-block: var(--ph-band);
  background: var(--ph-band-bg);
  background-image: none;
  border-top: 1px solid #222221;
}

.ph__cta::before {
  display: none;
}

.ph__cta-inner {
  max-width: 820px;
}

.ph__cta h2 {
  font-size: clamp(34px, 4.6vw, 64px);
}

.ph__cta-inner .ph__eyebrow {
  justify-content: center;
}

.ph__cta-inner .ph__lead {
  margin-inline: auto;
  max-width: 36em;
}

.ph__cta-seal {
  width: 84px !important;
}

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

.ph__footer {
  padding-block: clamp(48px, 6vw, 88px) 28px;
  background: var(--ph-bg);
  border-top: 0;
}

.ph__footer-col h2 {
  font-family: var(--ph-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ph-muted);
}

.ph__footer-col a,
.ph__footer-contact a:not(.ph__button) {
  color: var(--ph-ink);
  font-size: 14.5px;
}

.ph__footer-promise .ph__icon {
  color: var(--ph-ink);
  stroke-width: 2.6;
}

.ph__footer-promise {
  font-weight: 500;
  font-size: 13.5px;
}

.ph__footer-build {
  font-family: var(--ph-mono);
  font-size: 12px !important;
}

.ph__footer-bottom {
  font-size: 13px;
}

/* =========================================================================
 * Pages: a document on the desk
 * ====================================================================== */

.ph__page-head {
  padding-block: clamp(44px, 6vw, 96px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--ph-line);
}

.ph__page-head h1 {
  max-width: 20ch;
  font-size: clamp(36px, 5vw, 68px);
}

.ph__doc-updated {
  margin-top: 18px;
  font-family: var(--ph-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ph__doc-lead {
  max-width: 46em;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 2px solid var(--ph-ink);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.ph__doc .ph__page-head {
  padding-bottom: clamp(32px, 4vw, 56px);
}

.ph__page--doc .ph__container.ph__doc-body,
.ph__doc .ph__page-head .ph__container {
  width: min(1180px, 100% - 32px);
}

.ph__doc-body {
  display: grid;
  gap: 28px;
  padding-top: clamp(28px, 4vw, 56px);
}

.ph__doc-main {
  min-width: 0;
}

.ph__doc-main .ph__container {
  width: 100%;
  max-width: 820px;
  margin-inline: 0;
}

.ph__doc-main .ph__container:has(.ph__data) {
  max-width: none;
}

.ph__toc {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--ph-line);
  border-radius: 14px;
  background: var(--ph-panel);
}

.ph__toc b {
  font-family: var(--ph-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.ph__toc a {
  color: var(--ph-muted);
  font-size: 14px;
}

.ph__toc a:hover {
  color: var(--ph-ink);
}

@media (min-width: 1000px) {
  .ph__doc-body {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }

  .ph__doc-aside {
    position: sticky;
    top: calc(var(--ph-header-h) + 24px);
  }

  .ph__toc {
    padding: 0;
    border: 0;
    background: none;
  }
}

.ph__prose a {
  color: var(--ph-ink);
  text-decoration-thickness: 1px;
}

.ph__prose h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.025em;
}

.ph__prose blockquote {
  border-left-color: var(--ph-ink);
}

.ph__prose th {
  background: var(--ph-tint);
}

.ph__pager a[aria-current="page"] {
  background: var(--ph-strong);
  border-color: var(--ph-strong);
  color: var(--ph-on-strong);
}

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

.ph__post-card {
  padding: clamp(22px, 2.4vw, 30px);
}

.ph__post-card-date {
  font-family: var(--ph-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.ph__post-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

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