/*
 * ID Photo JP — the product site of an offline Japanese ID photo (証明写真) app.
 *
 * 0.2 — the page reads as a technical sheet: millimetre rulers along the top and
 * left edge of the hero and page heads, a faint mm grid, dimension lines, and
 * every ID photo drawn to one scale. One accent (the app's blue, or the site's
 * primaryColor setting). A photo is paper: drawn photos and print sheets stay
 * white in dark mode too, because a printed photo does not change with a screen.
 *
 * Inter is self-hosted (assets/fonts) — still no request to anybody else's
 * server. Japanese glyphs fall back to the platform's own Japanese faces.
 */

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

/* -------------------------------------------------------------------------
 * Colour modes — three blocks, and the order is the mechanism.
 *
 *   1. `:root`                      — LIGHT, the base.
 *   2. `prefers-color-scheme: dark` — the OS, 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 {
  --ip-accent: #1e6ff1;
  --ip-on-accent: #ffffff;

  --ip-radius-sm: 10px;
  --ip-radius: 14px;
  --ip-radius-lg: 24px;
  --ip-pill: 999px;

  --ip-header-h: 64px;
  --ip-band: clamp(56px, 7vw, 112px);
  --ip-head-gap: clamp(28px, 3.4vw, 52px);
  --ip-doc-gap: 40px;
  --ip-ru: 26px;
  --ip-mm: 5px;

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

  /* The app's fixed colours. */
  --ip-cam: #0b0f17;
  --ip-wall: #dfe6ef;
  --ip-pass: #22c55e;

  --ip-bg: #ffffff;
  --ip-surface: #ffffff;
  --ip-panel: #ffffff;
  --ip-panel-2: #eef3fa;
  --ip-tint: #f1f5fb;
  --ip-line: #dde4ee;
  --ip-line-strong: #b9c4d4;
  --ip-tick: #8592a8;
  --ip-ink: #0d1424;
  --ip-muted: #536076;
  --ip-accent-text: #1459cc;
  --ip-accent-soft: #e8f0fe;
  --ip-green: #15803d;
  --ip-green-soft: #e3f7ea;
  --ip-amber: #a34a06;
  --ip-amber-soft: #fdf1dc;
  --ip-danger: #c62828;
  --ip-danger-soft: #fdecec;
  --ip-paper: #ffffff;
  --ip-paper-edge: #c9d2df;
  --ip-grid: rgba(30, 111, 241, 0.075);
  --ip-grid-fine: rgba(30, 111, 241, 0.035);
  --ip-night: #0b1220;
  --ip-night-2: #121b2e;
  --ip-store: #0d1424;
  --ip-phone: #111827;
  --ip-shadow: 0 34px 70px -30px rgba(13, 30, 70, 0.4);
  --ip-shadow-sm: 0 10px 26px -14px rgba(13, 30, 70, 0.35);
}

/* ---- DARK, from the OS, while no explicit light choice is in force ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ip-bg: #0a101b;
    --ip-surface: #0d1422;
    --ip-panel: #111a2b;
    --ip-panel-2: #172238;
    --ip-tint: #0f1727;
    --ip-line: #222e45;
    --ip-line-strong: #35435f;
    --ip-tick: #5d6c88;
    --ip-ink: #e8edf6;
    --ip-muted: #9eabc0;
    --ip-accent-text: #8ab6ff;
    --ip-accent-soft: rgba(61, 134, 255, 0.16);
    --ip-green: #4ade80;
    --ip-green-soft: rgba(74, 222, 128, 0.14);
    --ip-amber: #fbbf24;
    --ip-amber-soft: rgba(251, 191, 36, 0.14);
    --ip-danger: #ff8a80;
    --ip-danger-soft: rgba(255, 107, 97, 0.12);
    --ip-paper: #f4f6fa;
    --ip-paper-edge: #3a4868;
    --ip-grid: rgba(120, 170, 255, 0.07);
    --ip-grid-fine: rgba(120, 170, 255, 0.03);
    --ip-night: #05080f;
    --ip-night-2: #0c1322;
    --ip-store: #000000;
    --ip-phone: #030712;
    --ip-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.8);
    --ip-shadow-sm: 0 10px 26px -12px rgba(0, 0, 0, 0.65);
  }
}

/* ---- DARK, chosen by the visitor. Same list as above. ---- */
:root[data-theme="dark"] {
  --ip-bg: #0a101b;
  --ip-surface: #0d1422;
  --ip-panel: #111a2b;
  --ip-panel-2: #172238;
  --ip-tint: #0f1727;
  --ip-line: #222e45;
  --ip-line-strong: #35435f;
  --ip-tick: #5d6c88;
  --ip-ink: #e8edf6;
  --ip-muted: #9eabc0;
  --ip-accent-text: #8ab6ff;
  --ip-accent-soft: rgba(61, 134, 255, 0.16);
  --ip-green: #4ade80;
  --ip-green-soft: rgba(74, 222, 128, 0.14);
  --ip-amber: #fbbf24;
  --ip-amber-soft: rgba(251, 191, 36, 0.14);
  --ip-danger: #ff8a80;
  --ip-danger-soft: rgba(255, 107, 97, 0.12);
  --ip-paper: #f4f6fa;
  --ip-paper-edge: #3a4868;
  --ip-grid: rgba(120, 170, 255, 0.07);
  --ip-grid-fine: rgba(120, 170, 255, 0.03);
  --ip-night: #05080f;
  --ip-night-2: #0c1322;
  --ip-store: #000000;
  --ip-phone: #030712;
  --ip-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.8);
  --ip-shadow-sm: 0 10px 26px -12px rgba(0, 0, 0, 0.65);
}

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

body {
  background: var(--ip-bg);
}

.ip {
  background: var(--ip-bg);
  color: var(--ip-ink);
  font-family: var(--ip-font);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-feature-settings: "cv11", "ss01";
}

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

/* Zero-weight resets, so one-class component rules win. */
:where(.ip) h1,
:where(.ip) h2,
:where(.ip) h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

/* Japanese headings break between phrases, not inside a word (Chrome 119+). */
.ip:lang(ja) h1,
.ip:lang(ja) h2,
.ip:lang(ja) h3,
:lang(ja) .ip h1,
:lang(ja) .ip h2,
:lang(ja) .ip h3,
:lang(ja) .ip__doc-text b {
  word-break: auto-phrase;
}

:where(.ip) p,
:where(.ip) figure {
  margin: 0;
}

.ip h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ip h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.ip h3 {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

:lang(ja) .ip h1,
:lang(ja) .ip h2,
.ip:lang(ja) h1,
.ip:lang(ja) h2 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.ip a {
  color: inherit;
}

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

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

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

.ip__measure {
  max-width: 820px;
}

.ip__section {
  padding-block: var(--ip-band);
}

.ip__section--tint {
  background: var(--ip-tint);
}

/* Two paper bands in a row are told apart by a hairline. */
.ip__section:not(.ip__section--tint, .ip__docs-band--cards, .ip__showcase--flip, .ip__camera-band)
  + .ip__section:not(.ip__section--tint, .ip__docs-band--cards, .ip__showcase--flip, .ip__camera-band) {
  border-top: 1px solid var(--ip-line);
}

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

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

.ip__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.ip__skip:focus {
  left: 0;
}

.ip__nowrap {
  white-space: nowrap;
}

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

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

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

.ip__lead {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--ip-muted);
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.ip__accent {
  color: var(--ip-accent);
}

.ip__section-head {
  max-width: 760px;
  margin-bottom: var(--ip-head-gap);
}

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

.ip__section-head--center .ip__lead {
  margin-inline: auto;
}

.ip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--ip-pill);
  border: 0;
  background: var(--ip-accent);
  color: var(--ip-on-accent);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ip a.ip__button {
  color: var(--ip-on-accent);
}

.ip__button:hover {
  box-shadow: 0 10px 22px -10px var(--ip-accent);
  transform: translateY(-1px);
}

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

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

.ip .ip__button--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--ip-accent);
  color: var(--ip-accent-text);
}

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

.ip .ip__text-link {
  color: var(--ip-accent-text);
}

.ip__text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.ip__actions--center {
  justify-content: center;
}

.ip__more {
  margin-top: 32px;
}

.ip__more--center {
  text-align: center;
}

.ip__note {
  margin-top: 24px;
  max-width: 72ch;
  color: var(--ip-muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.ip__empty {
  color: var(--ip-muted);
}

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

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

.ip__mark .ip__icon {
  width: 21px;
  height: 21px;
}

/* Plan chips — the app's small light-blue "Pro". */
.ip__plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  font-family: var(--ip-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  vertical-align: 2px;
  white-space: nowrap;
}

.ip__plan--pro {
  background: var(--ip-accent-soft);
  color: var(--ip-accent-text);
}

.ip__plan--partial {
  background: var(--ip-amber-soft);
  color: var(--ip-amber);
}

.ip__plan--free {
  background: var(--ip-green-soft);
  color: var(--ip-green);
}

.ip__plan-crown {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

/* -------------------------------------------------------------------------
 * Header
 *
 * No backdrop-filter on mobile: it would make the header the containing block
 * of the fixed drawer, and the menu would open as a sliver.
 * ---------------------------------------------------------------------- */

.ip__header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ip-surface);
  border-bottom: 1px solid var(--ip-line);
}

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

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

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

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

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

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

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

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

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

.ip__menu-button--close {
  display: none;
}

.ip__header-inner:has(#ip-menu:target) .ip__menu-button--open {
  display: none;
}

.ip__header-inner:has(#ip-menu:target) .ip__menu-button--close {
  display: inline-flex;
  border-color: var(--ip-accent);
  background: var(--ip-accent-soft);
  color: var(--ip-accent-text);
}

.ip__header-panel {
  display: none;
  position: fixed;
  top: var(--ip-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px;
  background: var(--ip-surface);
  border-top: 1px solid var(--ip-line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

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

.ip__nav a {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid var(--ip-line);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ip__nav a:hover {
  color: var(--ip-accent-text);
}

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

.ip__brand img,
.ip__brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
}

.ip__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-accent);
  color: #fff;
}

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

.ip__brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip__brand-text small {
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.ip__icon-btn svg {
  width: 18px;
  height: 18px;
}

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

.ip__lang {
  position: relative;
}

.ip__lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--ip-pill);
  border: 1px solid var(--ip-line);
  font-family: var(--ip-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

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

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

.ip__flag {
  width: 20px;
  height: 13px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.45);
}

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

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

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

/* -------------------------------------------------------------------------
 * Store buttons — dark rounded rectangles
 * ---------------------------------------------------------------------- */

.ip__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ip .ip__store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 168px;
  padding: 9px 20px 9px 15px;
  border-radius: 12px;
  background: var(--ip-store);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.ip a.ip__store:hover {
  transform: translateY(-1px);
}

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

.ip__store span {
  text-align: left;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ip__store small {
  font-size: 10.5px;
  opacity: 0.78;
}

.ip__store strong {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

/* -------------------------------------------------------------------------
 * Phones — real screens in a drawn frame
 * ---------------------------------------------------------------------- */

.ip__phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0;
  padding: 8px;
  border-radius: 42px;
  background: var(--ip-phone);
  box-shadow: var(--ip-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}

.ip__phone img {
  display: block;
  width: 100%;
  border-radius: 34px;
  background: #fff;
}

.ip__phone--small {
  max-width: 210px;
  padding: 6px;
  border-radius: 32px;
}

.ip__phone--small img {
  border-radius: 27px;
}

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

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ip__phone .ip__shot--light {
    display: none;
  }

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

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

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

/* -------------------------------------------------------------------------
 * The technical sheet — mm grid, and rulers along the top and left edge
 *
 * One "millimetre" on the page is --ip-mm. The ticks are gradients: a long
 * one every 10, a middle one every 5, a short one every 1. The numbers are
 * spans placed at n × --ip-mm.
 * ---------------------------------------------------------------------- */

.ip__sheet-surface {
  position: relative;
  isolation: isolate;
  padding-top: var(--ip-ru);
  padding-left: var(--ip-ru);
  background-color: var(--ip-tint);
  background-image:
    linear-gradient(var(--ip-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-grid) 1px, transparent 1px),
    linear-gradient(var(--ip-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-grid-fine) 1px, transparent 1px);
  background-size:
    calc(var(--ip-mm) * 10) calc(var(--ip-mm) * 10),
    calc(var(--ip-mm) * 10) calc(var(--ip-mm) * 10),
    var(--ip-mm) var(--ip-mm),
    var(--ip-mm) var(--ip-mm);
  background-position: var(--ip-ru) var(--ip-ru);
  overflow: hidden;
}

.ip__rulers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  color: var(--ip-tick);
}

.ip__ruler {
  position: absolute;
  overflow: hidden;
  background-color: var(--ip-surface);
  background-repeat: repeat-x;
  font-family: var(--ip-mono);
  font-size: 9px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ip__ruler--x {
  top: 0;
  left: var(--ip-ru);
  right: 0;
  height: var(--ip-ru);
  border-bottom: 1px solid var(--ip-line-strong);
  background-image:
    linear-gradient(90deg, var(--ip-tick) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-tick) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-tick) 1px, transparent 1px);
  background-size:
    calc(var(--ip-mm) * 10) 11px,
    calc(var(--ip-mm) * 5) 7px,
    var(--ip-mm) 4px;
  background-position: 0 100%;
}

.ip__ruler--y {
  top: var(--ip-ru);
  left: 0;
  bottom: 0;
  width: var(--ip-ru);
  border-right: 1px solid var(--ip-line-strong);
  background-repeat: repeat-y;
  background-image:
    linear-gradient(var(--ip-tick) 1px, transparent 1px),
    linear-gradient(var(--ip-tick) 1px, transparent 1px),
    linear-gradient(var(--ip-tick) 1px, transparent 1px);
  background-size:
    11px calc(var(--ip-mm) * 10),
    7px calc(var(--ip-mm) * 5),
    4px var(--ip-mm);
  background-position: 100% 0;
}

.ip__ruler span {
  position: absolute;
}

.ip__ruler--x span {
  top: 4px;
  left: calc(var(--n) * var(--ip-mm) + 3px);
}

.ip__ruler--y span {
  left: 3px;
  top: calc(var(--n) * var(--ip-mm) + 3px);
}

.ip__ruler-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--ip-ru);
  height: var(--ip-ru);
  background: var(--ip-surface);
  border-right: 1px solid var(--ip-line-strong);
  border-bottom: 1px solid var(--ip-line-strong);
}

.ip__ruler-corner::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ip-accent);
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

.ip__hero {
  padding-bottom: clamp(56px, 7vw, 104px);
}

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

.ip__display {
  display: flex;
  flex-direction: column;
}

.ip .ip__display {
  font-size: clamp(46px, 6.8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

:lang(ja) .ip .ip__display,
.ip:lang(ja) .ip__display {
  font-size: clamp(42px, 6.2vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.ip__hero .ip__lead {
  margin-top: 26px;
  max-width: 34em;
}

.ip__hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ip__hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 8px;
  border-radius: var(--ip-pill);
  background: var(--ip-surface);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  font-family: var(--ip-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.ip__hero-notes .ip__icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
  color: var(--ip-green);
}

.ip__hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  max-width: 640px;
  width: 100%;
  margin-inline: auto;
}

.ip__drawing {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ip__drawing-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ip__drawing figcaption {
  margin: 4px 0 0 calc(15 / 64 * 100%);
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.ip__drawing-shadow {
  fill: rgba(13, 30, 70, 0.16);
}

.ip__drawing-paper {
  fill: #ffffff;
}

.ip__drawing-edge {
  fill: none;
  stroke: var(--ip-ink);
  stroke-width: 0.35;
}

.ip__drawing-guide {
  fill: none;
  stroke: var(--ip-accent);
  stroke-width: 0.42;
  stroke-dasharray: 1.4 0.9;
  stroke-linecap: round;
}

.ip__drawing-line {
  fill: none;
  stroke: var(--ip-accent);
  stroke-width: 0.22;
  opacity: 0.8;
}

.ip__dim-ext {
  fill: none;
  stroke: var(--ip-tick);
  stroke-width: 0.2;
}

.ip__dim-line {
  fill: none;
  stroke: var(--ip-ink);
  stroke-width: 0.25;
}

.ip__dim-head {
  fill: var(--ip-ink);
}

.ip__dim-bg {
  fill: var(--ip-tint);
}

.ip__dim-text {
  fill: var(--ip-ink);
  font-family: var(--ip-mono);
  font-size: 2.3px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}

.ip__dim--accent .ip__dim-line {
  stroke: var(--ip-accent);
}

.ip__dim--accent .ip__dim-head,
.ip__dim--accent .ip__dim-text {
  fill: var(--ip-accent);
}

.ip__dim-text--small {
  font-size: 1.9px;
}

/* The guides crawl, like a guide on a live camera view. */
.ip__drawing-guide {
  animation: ip-crawl 6s linear infinite;
}

@keyframes ip-crawl {
  to {
    stroke-dashoffset: -23;
  }
}

.ip__hero-phones {
  position: relative;
  z-index: 2;
  width: clamp(150px, 14vw, 196px);
  margin-left: 4px;
  margin-bottom: 34px;
}

.ip__hero-phones .ip__phone {
  max-width: none;
  padding: 6px;
  border-radius: 32px;
}

.ip__hero-phones .ip__phone img {
  border-radius: 27px;
}

.ip__hero-phones .ip__phone--back {
  position: absolute;
  z-index: -1;
  left: 34%;
  top: -18%;
  width: 90%;
  transform: rotate(6deg);
}

/* -------------------------------------------------------------------------
 * Three promises — a spec sheet's numbered clauses
 * ---------------------------------------------------------------------- */

.ip__usps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ip-ink);
}

.ip__usp {
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--ip-line);
}

.ip__usp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.ip__usp-n {
  color: var(--ip-accent-text);
  font-family: var(--ip-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.ip__usp-mark {
  color: var(--ip-ink);
}

.ip__usp-mark .ip__icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.ip__usp h3 {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ip__usp p {
  margin-top: 12px;
  color: var(--ip-muted);
  line-height: 1.65;
}

/* Headings that share their row with a drawing or a phone. */
.ip__camera-copy h2,
.ip__showcase-copy h2,
.ip__sheet-copy h2,
.ip__stores-grid h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}

/* -------------------------------------------------------------------------
 * Steps — the real screens, numbered
 * ---------------------------------------------------------------------- */

.ip__steps {
  display: grid;
  gap: 40px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip__step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ip__step-shot {
  display: flex;
  justify-content: center;
  padding: 26px 18px 0;
  border-radius: var(--ip-radius-lg) var(--ip-radius-lg) 0 0;
  background: var(--ip-surface);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  height: 330px;
  overflow: hidden;
}

.ip__step-shot .ip__phone {
  max-width: 220px;
  box-shadow: var(--ip-shadow-sm);
}

.ip__step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  margin-bottom: 12px;
  padding: 0 8px;
  border-radius: var(--ip-pill);
  background: var(--ip-accent);
  color: var(--ip-on-accent);
  font-family: var(--ip-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.ip__step h3 {
  font-size: 20px;
}

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

/* -------------------------------------------------------------------------
 * Points — the list beside a phone or a drawing
 * ---------------------------------------------------------------------- */

.ip__points {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ip-line);
}

.ip__points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ip-line);
}

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

.ip__points b {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.ip__points b + span {
  color: var(--ip-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * The camera guide band — ink
 * ---------------------------------------------------------------------- */

.ip__camera-band {
  --ip-ink: #e8edf6;
  --ip-muted: #a3b0c6;
  --ip-line: rgba(255, 255, 255, 0.12);
  --ip-panel: rgba(255, 255, 255, 0.05);
  --ip-accent-text: #8ab6ff;
  --ip-accent-soft: rgba(61, 134, 255, 0.2);
  --ip-green: #4ade80;
  --ip-card-shadow: none;
  background-color: var(--ip-night);
  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: 50px 50px;
  color: var(--ip-ink);
}

.ip__camera-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

/* -------------------------------------------------------------------------
 * Showcase — a real screen on a mat, copy beside it
 * ---------------------------------------------------------------------- */

.ip__showcase--flip {
  background: var(--ip-tint);
}

.ip__showcase-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.ip__showcase-phone {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px) 20px;
  border-radius: var(--ip-radius-lg);
  background-color: var(--ip-tint);
  background-image:
    linear-gradient(var(--ip-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-grid) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__showcase--flip .ip__showcase-phone {
  background-color: var(--ip-surface);
}

/* Crop marks at the four corners of the mat. */
.ip__showcase-phone::before,
.ip__showcase-phone::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--ip-accent);
}

.ip__showcase-phone::before {
  top: 14px;
  left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.ip__showcase-phone::after {
  right: 14px;
  bottom: 14px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.ip__showcase-phone .ip__phone {
  width: 260px;
}

/* -------------------------------------------------------------------------
 * Documents — a white sheet with every size drawn to one scale
 * ---------------------------------------------------------------------- */

.ip__docs-band--cards {
  background: var(--ip-tint);
}

.ip__specimen {
  /* The sheet is paper in both modes, so its words are dark in both. */
  --ip-ink: #0d1424;
  --ip-muted: #536076;
  --ip-line: #dde4ee;
  --ip-accent-text: #1459cc;
  --ip-accent-soft: #e8f0fe;
  --ip-amber: #a34a06;
  --ip-amber-soft: #fdf1dc;
  --ip-green: #15803d;
  --ip-green-soft: #e3f7ea;
  --mm: 2.6px;
  position: relative;
  padding: clamp(20px, 3.4vw, 44px);
  border-radius: 6px;
  background: var(--ip-paper);
  color: var(--ip-ink);
  box-shadow: 0 1px 0 rgba(13, 30, 70, 0.05), var(--ip-shadow);
}

.ip__specimen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--ip-line);
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ip__scalebar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ip-accent-text);
}

.ip__scalebar i {
  display: block;
  width: calc(10 * var(--mm));
  height: 7px;
  border: 1.5px solid var(--ip-accent);
  border-top: 0;
}

.ip__docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 30px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip__doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: center;
}

.ip__doc-photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: calc(45 * var(--mm) + 2px);
}

.ip__frame {
  display: block;
  width: calc(var(--w) * var(--mm));
  height: calc(var(--h) * var(--mm));
  box-shadow: 0 0 0 1px rgba(13, 20, 36, 0.32);
}

.ip__frame-bg {
  fill: #ffffff;
}

.ip__frame-guide {
  fill: none;
  stroke: var(--ip-accent);
  stroke-width: 0.35;
  stroke-dasharray: 1.2 0.8;
}

.ip__doc-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.35;
}

.ip__doc-text b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ip__doc-size {
  color: var(--ip-accent-text);
  font-family: var(--ip-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ip__doc-text small {
  color: var(--ip-muted);
  font-size: 12px;
}

.ip__doc-text .ip__plan {
  margin: 4px 0 0;
}

/* ---- The table ---- */

.ip__table-wrap {
  overflow-x: auto;
  border-radius: var(--ip-radius-lg);
  background: var(--ip-panel);
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}

.ip__table th,
.ip__table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ip-line);
  text-align: left;
  vertical-align: top;
}

.ip__table tbody tr:last-child > * {
  border-bottom: 0;
}

.ip__table thead th {
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--ip-panel-2);
}

.ip__table tbody th {
  min-width: 170px;
  font-weight: 400;
}

.ip__table tbody th b {
  display: block;
  font-weight: 700;
}

.ip__table tbody th small {
  display: block;
  color: var(--ip-muted);
  font-size: 13px;
}

.ip__table tbody th .ip__plan {
  margin: 6px 0 0;
}

.ip__table td {
  font-family: var(--ip-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ip__table td b {
  color: var(--ip-accent-text);
  font-weight: 700;
}

.ip__table .ip__table-note {
  min-width: 240px;
  color: var(--ip-muted);
  font-family: var(--ip-font);
  font-size: 13.5px;
}

.ip__table-note em {
  display: block;
  margin-top: 6px;
  color: var(--ip-amber);
  font-style: normal;
  font-weight: 600;
}

/* The sizes page shows the cards right under the table. */
.ip__docs-band--table + .ip__docs-band--cards {
  padding-top: 0;
  background: transparent;
}

/* -------------------------------------------------------------------------
 * Print sheet — L size on a cutting mat, with the 50 mm bar
 * ---------------------------------------------------------------------- */

.ip__sheet-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.ip__sheets {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 52px) clamp(16px, 3vw, 44px);
  border-radius: var(--ip-radius-lg);
  background-color: var(--ip-tint);
  background-image:
    linear-gradient(var(--ip-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-grid) 1px, transparent 1px),
    linear-gradient(var(--ip-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--ip-grid-fine) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__sheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.ip__sheet svg {
  display: block;
  width: calc(var(--sw) * 3.6px);
  max-width: 100%;
  height: auto;
}

.ip__sheet--test {
  width: 150px;
}

.ip__sheet--test svg {
  width: 140px;
}

/* With the test sheet beside it, the L sheet steps down so both fit one row. */
.ip__sheets:has(.ip__sheet--test) {
  gap: 24px;
}

.ip__sheets:has(.ip__sheet--test) .ip__sheet:first-child svg {
  width: calc(var(--sw) * 2.8px);
}

.ip__paper {
  fill: #ffffff;
  stroke: rgba(13, 20, 36, 0.14);
  stroke-width: 0.25;
}

.ip__paper-shadow {
  fill: rgba(13, 30, 70, 0.18);
}

.ip__sheet-edge {
  fill: none;
  stroke: rgba(15, 23, 42, 0.14);
  stroke-width: 0.2;
}

.ip__bar50-fill {
  fill: var(--ip-accent);
}

.ip__bar50-tick {
  fill: none;
  stroke: var(--ip-ink);
  stroke-width: 0.22;
}

.ip__bar50-num {
  fill: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 2.6px;
}

.ip__bar50-label {
  fill: var(--ip-accent-text);
  font-family: var(--ip-mono);
  font-size: 3.4px;
  font-weight: 700;
  dominant-baseline: central;
}

.ip__test-title {
  fill: #0f172a;
  font-size: 5px;
  font-weight: 700;
}

.ip__test-square {
  fill: rgba(30, 111, 241, 0.06);
  stroke: var(--ip-accent);
  stroke-width: 0.5;
}

.ip__test-size {
  fill: var(--ip-accent);
  font-family: var(--ip-mono);
  font-size: 6px;
  font-weight: 700;
}

.ip__test-rule {
  fill: none;
  stroke: #0f172a;
  stroke-width: 0.25;
}

.ip__test-num {
  fill: #334155;
  font-family: var(--ip-mono);
  font-size: 2.8px;
}

.ip__sheet figcaption {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  line-height: 1.45;
}

.ip__sheet figcaption b {
  font-family: var(--ip-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ip__sheet figcaption span {
  color: var(--ip-muted);
}

/* -------------------------------------------------------------------------
 * Convenience-store steps
 * ---------------------------------------------------------------------- */

.ip__stores-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

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

.ip__chains li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border-radius: var(--ip-pill);
  box-shadow: inset 0 0 0 1px var(--ip-line-strong);
  font-weight: 600;
  font-size: 14.5px;
}

.ip__chains .ip__icon {
  width: 18px;
  height: 18px;
  color: var(--ip-accent);
}

.ip__important {
  padding: 20px 22px;
  border-radius: var(--ip-radius);
  background: var(--ip-danger-soft);
  border-left: 3px solid var(--ip-danger);
}

.ip__important b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ip-danger);
  font-weight: 700;
}

.ip__important .ip__icon {
  width: 20px;
  height: 20px;
}

.ip__important ul {
  margin: 10px 0 0;
  padding-left: 22px;
  font-size: 15px;
}

.ip__important li + li {
  margin-top: 4px;
}

.ip__howto {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ip-ink);
}

.ip__howto li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ip-line);
}

.ip__howto .ip__step-n {
  margin: 1px 0 0;
}

.ip__howto b {
  font-size: 17px;
  font-weight: 700;
}

.ip__howto p {
  margin-top: 6px;
  color: var(--ip-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Tips
 * ---------------------------------------------------------------------- */

.ip__tips {
  display: grid;
  gap: 18px;
}

.ip__tip {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
  border-radius: var(--ip-radius-lg);
  background: var(--ip-panel);
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__tip header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ip__tip h3 {
  font-size: 19px;
}

.ip__tip header p {
  margin-top: 6px;
  color: var(--ip-muted);
  font-size: 15px;
}

.ip__tip-list {
  padding-top: 14px;
  border-top: 1px solid var(--ip-line);
}

.ip__tip-list b {
  font-family: var(--ip-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ip__tip-list--do b {
  color: var(--ip-green);
}

.ip__tip-list--avoid b {
  color: var(--ip-danger);
}

.ip__tip-list ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.ip__tip-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}

.ip__tip-list .ip__icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  stroke-width: 2.4;
}

.ip__tip-list--do .ip__icon {
  color: var(--ip-green);
}

.ip__tip-list--avoid .ip__icon {
  color: var(--ip-danger);
}

/* -------------------------------------------------------------------------
 * Features — a datasheet of cells
 * ---------------------------------------------------------------------- */

.ip__features {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--ip-radius-lg);
  background: var(--ip-line);
  box-shadow: 0 0 0 1px var(--ip-line);
}

.ip__feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--ip-bg);
}

.ip__feature h3 {
  margin-top: 8px;
  font-size: 18px;
}

.ip__feature h3 .ip__plan {
  margin-left: 6px;
}

.ip__feature p {
  color: var(--ip-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Privacy — ink
 * ---------------------------------------------------------------------- */

.ip__privacy-band {
  --ip-ink: #e8edf6;
  --ip-muted: #a3b0c6;
  --ip-line: rgba(255, 255, 255, 0.13);
  --ip-accent-text: #8ab6ff;
  --ip-accent-soft: rgba(61, 134, 255, 0.2);
  padding-block: var(--ip-band);
  background: var(--ip-night);
  color: var(--ip-ink);
}

.ip__privacy {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ip-line);
}

.ip__privacy article {
  display: grid;
  align-content: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ip-line);
}

.ip__privacy-mark {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ip-pill);
  box-shadow: inset 0 0 0 1px rgba(138, 182, 255, 0.45);
  color: var(--ip-accent-text);
}

.ip__privacy-mark .ip__icon {
  width: 22px;
  height: 22px;
}

.ip__privacy h3 {
  font-size: 18.5px;
}

.ip__privacy p {
  color: var(--ip-muted);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
 * Plans — Free and Pro, then the table
 * ---------------------------------------------------------------------- */

.ip__plans {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.ip__plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--ip-radius-lg);
  background: var(--ip-panel);
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__plan-card--pro {
  --ip-ink: #f1f5fb;
  --ip-muted: #a9b6cc;
  --ip-line: rgba(255, 255, 255, 0.14);
  background: var(--ip-night);
  color: var(--ip-ink);
  box-shadow: inset 0 0 0 1.5px var(--ip-accent), var(--ip-shadow);
}

.ip__plan-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--ip-pill);
  background: var(--ip-accent);
  color: var(--ip-on-accent);
  font-family: var(--ip-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ip__plan-badge .ip__icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.ip__plan-card h3 {
  font-family: var(--ip-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ip-muted);
}

.ip__plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.ip__plan-price b {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.ip__plan-price span {
  color: var(--ip-muted);
  font-size: 14px;
}

.ip__plan-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ip-line);
  color: var(--ip-muted);
  font-size: 15.5px;
}

.ip__plan-badge--spacer {
  visibility: hidden;
}

.ip__plan-points--free .ip__icon {
  color: var(--ip-accent);
}

.ip__plan-points {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--ip-line);
  font-size: 15px;
}

.ip__plan-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.ip__plan-points .ip__icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke-width: 2.4;
  color: #8ab6ff;
}

.ip__compare-wrap {
  max-width: 900px;
  margin: 40px auto 0;
  overflow-x: auto;
  border-radius: var(--ip-radius-lg);
  background: var(--ip-panel);
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

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

.ip__compare th,
.ip__compare td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ip-line);
  text-align: center;
  vertical-align: middle;
}

.ip__compare tbody tr:last-child > * {
  border-bottom: 0;
}

.ip__compare th[scope="row"] {
  text-align: left;
  font-weight: 500;
}

.ip__compare thead th {
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ip__compare thead th:first-child {
  text-align: left;
}

.ip__compare .ip__compare-pro {
  width: 22%;
  background: var(--ip-accent-soft);
}

.ip__compare thead .ip__compare-pro {
  color: var(--ip-accent-text);
}

.ip__cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ip-accent);
  color: #fff;
}

.ip__cmp-yes .ip__icon {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.ip__cmp-no {
  color: var(--ip-tick);
}

.ip__cmp-text {
  font-family: var(--ip-mono);
  font-size: 13px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Data — where each thing lives, as a ledger
 * ---------------------------------------------------------------------- */

.ip__data {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ip-ink);
}

.ip__data-item {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ip-line);
}

.ip__data-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.ip__data-head h3 {
  margin-right: auto;
  font-size: 17px;
}

.ip__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--ip-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ip__chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ip__chip--stays {
  background: var(--ip-green-soft);
  color: var(--ip-green);
}

.ip__chip--leaves {
  background: var(--ip-amber-soft);
  color: var(--ip-amber);
}

.ip__data-when {
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 12px;
}

.ip__data-where {
  color: var(--ip-muted);
  font-size: 15.5px;
  max-width: 70ch;
}

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

.ip__notice {
  padding-block: clamp(28px, 4vw, 48px);
}

.ip__notice-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--ip-radius-lg);
  background: var(--ip-accent-soft);
  box-shadow: inset 3px 0 0 var(--ip-accent);
}

.ip__notice--warn .ip__notice-inner {
  background: var(--ip-amber-soft);
  box-shadow: inset 3px 0 0 var(--ip-amber);
}

.ip__notice--critical .ip__notice-inner {
  background: var(--ip-danger-soft);
  box-shadow: inset 3px 0 0 var(--ip-danger);
}

.ip__notice-mark {
  color: var(--ip-accent-text);
}

.ip__notice--warn .ip__notice-mark {
  color: var(--ip-amber);
}

.ip__notice--critical .ip__notice-mark {
  color: var(--ip-danger);
}

.ip__notice h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.ip__notice p {
  margin-top: 6px;
  color: var(--ip-muted);
  font-size: 15.5px;
}

.ip__notice-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.ip__notice-list li {
  display: flex;
  flex-direction: column;
}

.ip__notice-list span {
  color: var(--ip-muted);
}

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

.ip__faq {
  border-top: 1px solid var(--ip-ink);
}

.ip__faq-item {
  border-bottom: 1px solid var(--ip-line);
}

.ip__faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

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

.ip__faq-item summary:hover {
  color: var(--ip-accent-text);
}

.ip__faq-item summary i {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ip-line-strong);
}

.ip__faq-item summary i::before,
.ip__faq-item summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.6px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

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

.ip__faq-item[open] summary i {
  background: var(--ip-accent);
  box-shadow: none;
  color: #fff;
}

.ip__faq-item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.ip__faq-item p {
  max-width: 68ch;
  padding: 0 48px 22px 0;
  color: var(--ip-muted);
}

/* -------------------------------------------------------------------------
 * Call to action — the sheet again
 * ---------------------------------------------------------------------- */

.ip__cta {
  padding-bottom: var(--ip-band);
  text-align: center;
}

.ip__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--ip-band);
}

.ip__cta-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 26px;
  border-radius: 20px;
  box-shadow: var(--ip-shadow-sm);
}

.ip__cta h2 {
  max-width: 18ch;
  font-size: clamp(36px, 5.4vw, 72px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.ip__cta .ip__lead {
  margin-inline: auto;
}

.ip__cta .ip__stores {
  justify-content: center;
}
/* -------------------------------------------------------------------------
 * The camera guide — one 10 s clock.
 *
 *   0–20%   "move closer": the sitter drifts in, small and off-centre
 *   10–38%  the eight checks turn green in turn; "face the camera"
 *   38–44%  "hold still", the oval turns green
 *   44–62%  3 · 2 · 1
 *   62–66%  flash
 *   66–95%  the photo, shown to confirm
 *
 * The RESTING state of every element (no animation — reduced motion) is the
 * finished guide: all checks green, "hold still", no overlay.
 * ---------------------------------------------------------------------- */

.ip__cam {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  --T: 10s;
}

.ip__cam-phone {
  width: 250px;
  flex: none;
  padding: 9px;
  border-radius: 42px;
  background: var(--ip-phone);
  box-shadow: var(--ip-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}

.ip__cam-view {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: 33px;
  background: var(--ip-cam);
  color: #fff;
}

.ip__cam-msgs {
  position: relative;
  height: 40px;
  margin: 40px 14px 10px;
}

.ip__cam-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--ip-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
}

.ip__cam-msg--3 {
  opacity: 1;
  background: rgba(34, 197, 94, 0.9);
}

.ip__cam-stage {
  position: relative;
  flex: 1;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #e6ecf3, var(--ip-wall));
}

.ip__cam-sitter,
.ip__cam-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -52%);
}

.ip__cam-sitter {
  transform-origin: 50% 50%;
}

.ip__cam-oval {
  fill: none;
  stroke: var(--ip-pass);
  stroke-width: 4;
  stroke-dasharray: 10 7;
}

.ip__cam-cross {
  fill: none;
  stroke: rgba(15, 23, 42, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.ip__cam-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.ip__cam-count span {
  grid-area: 1 / 1;
  color: #fff;
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
}

.ip__cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.ip__cam-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
}

.ip__cam-auto {
  position: absolute;
  right: 14px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.ip__cam-auto i {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: var(--ip-accent);
}

.ip__cam-auto i::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.ip__cam-shutter {
  width: 58px;
  height: 58px;
  margin-top: 14px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.25);
}

.ip__cam-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 10px;
  background: #f7f9fc;
  color: #0f172a;
  opacity: 0;
}

.ip__cam-result > b {
  font-size: 16px;
}

.ip__cam-shots {
  display: flex;
  gap: 7px;
}

.ip__cam-shot {
  display: block;
  width: 120px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 2.5px #1e6ff1;
}

.ip__cam-shot svg {
  display: block;
  width: 100%;
  border-radius: 7px;
}

.ip__cam-checks {
  display: grid;
  gap: 8px;
  width: 210px;
  margin: 0;
  padding: 16px;
  list-style: none;
  border-radius: var(--ip-radius);
  background: var(--ip-panel);
  border: 1px solid var(--ip-line);
  box-shadow: var(--ip-card-shadow);
  font-size: 14px;
  font-weight: 700;
}

.ip__cam-check {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.ip__cam-check i {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ip-pass);
  color: #fff;
}

.ip__cam-check i svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The clock. Every part starts 40% into the loop, so the first frame anyone
   sees (and every screenshot) is the guide with all eight checks passed. */
.ip__cam * {
  animation-delay: calc(var(--T) * -0.4) !important;
}

.ip__cam-sitter {
  animation: ip-cam-sitter var(--T) ease-in-out infinite;
}

.ip__cam-oval {
  animation: ip-cam-oval var(--T) linear infinite;
}

.ip__cam-msg--1 {
  animation: ip-cam-msg1 var(--T) linear infinite;
}

.ip__cam-msg--2 {
  animation: ip-cam-msg2 var(--T) linear infinite;
}

.ip__cam-msg--3 {
  animation: ip-cam-msg3 var(--T) linear infinite;
}

.ip__cam-count span:nth-child(1) {
  animation: ip-cam-n3 var(--T) ease-out infinite;
}

.ip__cam-count span:nth-child(2) {
  animation: ip-cam-n2 var(--T) ease-out infinite;
}

.ip__cam-count span:nth-child(3) {
  animation: ip-cam-n1 var(--T) ease-out infinite;
}

.ip__cam-flash {
  animation: ip-cam-flash var(--T) linear infinite;
}

.ip__cam-result {
  animation: ip-cam-result var(--T) ease-out infinite;
}

.ip__cam-check--1 { animation: ip-chk-1 var(--T) linear infinite; }
.ip__cam-check--2 { animation: ip-chk-2 var(--T) linear infinite; }
.ip__cam-check--3 { animation: ip-chk-3 var(--T) linear infinite; }
.ip__cam-check--4 { animation: ip-chk-4 var(--T) linear infinite; }
.ip__cam-check--5 { animation: ip-chk-5 var(--T) linear infinite; }
.ip__cam-check--6 { animation: ip-chk-6 var(--T) linear infinite; }
.ip__cam-check--7 { animation: ip-chk-7 var(--T) linear infinite; }
.ip__cam-check--8 { animation: ip-chk-8 var(--T) linear infinite; }

@keyframes ip-cam-sitter {
  0%,
  6% {
    transform: translate(-36%, -44%) scale(0.72);
  }
  24%,
  94% {
    transform: translate(-50%, -52%) scale(1);
  }
  100% {
    transform: translate(-36%, -44%) scale(0.72);
  }
}

@keyframes ip-cam-oval {
  0%,
  37% {
    stroke: #ffffff;
  }
  39%,
  96% {
    stroke: #22c55e;
  }
  100% {
    stroke: #ffffff;
  }
}

@keyframes ip-cam-msg1 {
  0%,
  19% {
    opacity: 1;
  }
  20%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-msg2 {
  0%,
  19% {
    opacity: 0;
  }
  20%,
  37% {
    opacity: 1;
  }
  38%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-msg3 {
  0%,
  37% {
    opacity: 0;
  }
  38%,
  64% {
    opacity: 1;
  }
  65%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-n3 {
  0%,
  44% {
    opacity: 0;
    transform: scale(1.5);
  }
  45% {
    opacity: 1;
    transform: scale(1.2);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  50.5%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-n2 {
  0%,
  50.5% {
    opacity: 0;
    transform: scale(1.5);
  }
  51.5% {
    opacity: 1;
    transform: scale(1.2);
  }
  56% {
    opacity: 1;
    transform: scale(1);
  }
  56.5%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-n1 {
  0%,
  56.5% {
    opacity: 0;
    transform: scale(1.5);
  }
  57.5% {
    opacity: 1;
    transform: scale(1.2);
  }
  62% {
    opacity: 1;
    transform: scale(1);
  }
  62.5%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-flash {
  0%,
  62% {
    opacity: 0;
  }
  63% {
    opacity: 0.95;
  }
  66%,
  100% {
    opacity: 0;
  }
}

@keyframes ip-cam-result {
  0%,
  65% {
    opacity: 0;
    transform: translateY(12px);
  }
  68%,
  95% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
    transform: none;
  }
}

/* One keyframe per check: off (grey, faded) until its moment, then passed. */
@keyframes ip-chk-1 { 0%, 11% { filter: grayscale(1); opacity: 0.45; } 12%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-2 { 0%, 15% { filter: grayscale(1); opacity: 0.45; } 16%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-3 { 0%, 23% { filter: grayscale(1); opacity: 0.45; } 24%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-4 { 0%, 26% { filter: grayscale(1); opacity: 0.45; } 27%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-5 { 0%, 29% { filter: grayscale(1); opacity: 0.45; } 30%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-6 { 0%, 32% { filter: grayscale(1); opacity: 0.45; } 33%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-7 { 0%, 34% { filter: grayscale(1); opacity: 0.45; } 35%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }
@keyframes ip-chk-8 { 0%, 36% { filter: grayscale(1); opacity: 0.45; } 37%, 96% { filter: none; opacity: 1; } 97%, 100% { filter: grayscale(1); opacity: 0.45; } }

@media (max-width: 479px) {
  .ip__cam-phone {
    width: 230px;
  }

  .ip__cam-checks {
    width: 100%;
    max-width: 330px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 12.5px;
  }

  .ip__compare th,
  .ip__compare td {
    padding: 11px 10px;
    font-size: 14px;
  }
}

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

.ip__page-head {
  padding-bottom: clamp(36px, 5vw, 72px);
  border-bottom: 1px solid var(--ip-line);
}

.ip__page-head > .ip__container {
  padding-top: clamp(36px, 5vw, 76px);
}

.ip__page-head h1 {
  max-width: 20ch;
}

.ip__page-head .ip__lead {
  max-width: 720px;
}

/* A normal page's first band sits closer to its title. */
.ip__page:not(.ip__doc) > .ip__page-head + .ip__section {
  padding-top: clamp(40px, 5vw, 72px);
}

.ip__doc-updated {
  margin-top: 16px;
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.ip__doc-lead {
  max-width: 760px;
}

/* A document is ONE column, whatever blocks it holds. */
.ip__doc .ip__container {
  width: min(840px, 100% - 32px);
}

.ip__doc .ip__page-head > .ip__container {
  width: min(840px, 100% - 32px);
}

.ip__doc .ip__measure {
  max-width: none;
}

.ip__doc .ip__section {
  padding-block: 0;
  border-top: 0;
}

.ip__doc .ip__section + .ip__section {
  padding-top: var(--ip-doc-gap);
}

.ip__doc > .ip__page-head + .ip__section,
.ip__doc > .ip__page-head + .ip__notice {
  padding-top: clamp(40px, 5vw, 64px);
}

.ip__doc {
  padding-bottom: var(--ip-band);
}

.ip__doc .ip__section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.025em;
}

.ip__doc .ip__section-head {
  margin-bottom: 18px;
}

.ip__toc {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__toc b {
  display: block;
  margin-bottom: 12px;
  color: var(--ip-accent-text);
  font-family: var(--ip-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ip__toc ul {
  display: grid;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip__toc a {
  color: var(--ip-ink);
  font-size: 15px;
  text-decoration: none;
}

.ip__toc a:hover {
  color: var(--ip-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip__prose {
  font-size: 16.5px;
  line-height: 1.75;
}

.ip__prose h2 {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--ip-line);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ip__prose h3 {
  margin-top: 28px;
}

.ip__prose h2:first-child,
.ip__prose > div > h2:first-child,
.ip__prose h3:first-child {
  margin-top: 0;
}

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

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

.ip__prose ul {
  list-style: disc;
}

.ip__prose ol {
  list-style: decimal;
}

.ip__prose li::marker {
  color: var(--ip-accent);
}

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

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

.ip__prose strong {
  font-weight: 700;
}

.ip__prose table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  font-size: 15px;
  border-top: 1px solid var(--ip-ink);
}

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

.ip__prose th {
  width: 32%;
  font-weight: 700;
}

.ip__figure img {
  border-radius: var(--ip-radius-lg);
}

.ip__figure figcaption {
  margin-top: 10px;
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 12.5px;
}

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

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

.ip__post-grid {
  display: grid;
  gap: 18px;
}

.ip__post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: var(--ip-radius-lg);
  background: var(--ip-panel);
  box-shadow: inset 0 0 0 1px var(--ip-line);
}

.ip__post-card-date {
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 12px;
}

.ip__post-card h3 {
  margin-top: 8px;
  font-size: 20px;
}

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

.ip__post-card h3 a:hover {
  color: var(--ip-accent-text);
}

.ip__post-card p {
  margin-top: 8px;
  color: var(--ip-muted);
  font-size: 15px;
}

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

.ip__pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: var(--ip-pill);
  box-shadow: inset 0 0 0 1px var(--ip-line);
  font-family: var(--ip-mono);
  font-weight: 600;
  text-decoration: none;
}

.ip__pager a[aria-current="page"] {
  background: var(--ip-accent);
  box-shadow: none;
  color: #fff;
}

/* -------------------------------------------------------------------------
 * 404 / 500 — an empty photo frame on the sheet
 * ---------------------------------------------------------------------- */

.ip__state {
  padding-bottom: var(--ip-band);
  text-align: center;
}

.ip__state > .ip__container {
  padding-top: var(--ip-band);
}

.ip__state-frame {
  display: block;
  width: 126px;
  height: 168px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 18px 30px rgba(13, 30, 70, 0.2));
}

.ip__state-paper {
  fill: #ffffff;
  stroke: rgba(13, 20, 36, 0.3);
  stroke-width: 0.3;
}

.ip__state-oval {
  fill: none;
  stroke: var(--ip-accent);
  stroke-width: 0.5;
  stroke-dasharray: 1.4 0.9;
}

.ip__state-code {
  fill: var(--ip-accent);
  font-family: var(--ip-mono);
  font-size: 5.6px;
  font-weight: 700;
}

.ip__state h1 {
  margin-inline: auto;
  max-width: 18ch;
}

.ip__state p {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--ip-muted);
}

/* -------------------------------------------------------------------------
 * Footer — ink
 * ---------------------------------------------------------------------- */

.ip__footer {
  --ip-ink: #e8edf6;
  --ip-muted: #9eabc0;
  --ip-line: rgba(255, 255, 255, 0.12);
  --ip-line-strong: rgba(255, 255, 255, 0.26);
  --ip-accent-text: #8ab6ff;
  --ip-green: #4ade80;
  padding-block: clamp(52px, 6vw, 88px) 28px;
  background: var(--ip-night);
  color: var(--ip-ink);
  font-size: 15px;
}

.ip__footer-grid {
  display: grid;
  gap: 36px;
}

.ip__footer-about p {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--ip-muted);
}

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

.ip__footer-promise li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.ip__footer-promise .ip__icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
  color: var(--ip-green);
}

.ip__footer .ip__footer-build {
  margin-top: 18px;
  font-family: var(--ip-mono);
  font-size: 12px;
}

.ip__footer-col h2 {
  margin-bottom: 14px;
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.ip__footer-col a {
  text-decoration: none;
}

.ip__footer-col a:hover {
  color: var(--ip-accent-text);
}

.ip__footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ip__footer .ip__button--ghost {
  color: var(--ip-ink);
}

.ip__footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--ip-line);
  color: var(--ip-muted);
  font-family: var(--ip-mono);
  font-size: 12px;
}

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

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

.ip__footer-bottom a:hover {
  color: var(--ip-ink);
}

.ip__builtwith {
  margin-left: 12px;
}

/* =========================================================================
 * Responsive
 * ====================================================================== */

@media (max-width: 639px) {
  :root {
    --ip-ru: 18px;
    --ip-mm: 4px;
  }

  .ip__sheet-surface > .ip__container,
  .ip__sheet-surface .ip__container {
    width: min(1180px, 100% - 30px);
    margin-inline: auto 12px;
  }

  .ip__ruler {
    font-size: 7.5px;
  }

  .ip__ruler--y span {
    left: 2px;
  }

  .ip__ruler-corner::after {
    inset: 5px;
  }

  .ip__hero-grid {
    gap: 40px;
  }

  .ip__hero-visual {
    max-width: 360px;
  }

  .ip__hero-visual {
    grid-template-columns: minmax(0, 1fr) 96px;
    column-gap: 4px;
  }

  .ip__hero-phones {
    width: 96px;
    margin-left: 0;
    margin-bottom: 40px;
  }

  .ip__hero-phones .ip__phone {
    padding: 4px;
    border-radius: 20px;
  }

  .ip__hero-phones .ip__phone img {
    border-radius: 17px;
  }

  .ip .ip__store {
    padding-inline: 12px 14px;
  }

  .ip__showcase-phone {
    max-height: 430px;
    overflow: hidden;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .ip__showcase-phone .ip__phone {
    width: 230px;
  }

  .ip__hero-phones .ip__phone--back {
    display: none;
  }

  .ip__drawing figcaption {
    margin-left: 0;
    padding-right: 70px;
    font-size: 10.5px;
  }

  .ip .ip__store {
    flex: 1 1 150px;
    min-width: 0;
    justify-content: center;
  }

  .ip__step-shot {
    height: 300px;
  }

  .ip__faq-item p {
    padding-right: 0;
  }

  .ip__specimen {
    --mm: 2.3px;
  }

  .ip__feature,
  .ip__tip {
    padding: 22px;
  }

  .ip__docs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 8px;
  }

  .ip__doc-text b {
    font-size: 12.5px;
  }

  .ip__doc-text small {
    display: none;
  }

  .ip__specimen-head > span:first-child {
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  .ip__plan-card--pro {
    order: -1;
  }

  .ip__builtwith {
    display: block;
    margin: 6px 0 0;
  }
}

@media (min-width: 640px) {
  .ip__usps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 36px;
  }

  .ip__usp {
    border-bottom: 0;
  }

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

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

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

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

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

  .ip__privacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }

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

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

  .ip__data-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 8px 32px;
  }

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

  .ip__specimen {
    --mm: 2.9px;
  }

  .ip__docs {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

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

  .ip__header {
    background: color-mix(in srgb, var(--ip-surface) 88%, transparent);
    backdrop-filter: blur(14px);
  }

  .ip__menu-button,
  .ip__header-inner:has(#ip-menu:target) .ip__menu-button--close {
    display: none;
  }

  .ip__header-panel,
  .ip__header-panel:target {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border-top: 0;
    overflow: visible;
  }

  .ip__nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px 20px;
  }

  .ip__nav a {
    padding: 8px 0;
    border-bottom: 0;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
  }

  .ip__header-actions {
    margin-top: 0;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .ip__header-actions .ip__button {
    white-space: nowrap;
  }

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

  .ip__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .ip__hero-visual {
    margin-right: 0;
  }

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

  .ip__step-shot {
    height: 300px;
  }

  .ip__camera-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }

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

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

  .ip__sheet-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .ip__stores-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }

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

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

  .ip__privacy:has(> article:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
  }

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

  .ip__footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .ip__specimen {
    --mm: 3.2px;
  }

  .ip__docs {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  }
}

/* The header has six links, a switcher, a toggle and a button; between 960 and
   1120px the tagline yields its room to them. */
@media (min-width: 960px) and (max-width: 1119px) {
  .ip__brand-text small {
    display: none;
  }

  .ip__nav ul {
    gap: 4px 14px;
  }

  .ip__nav a {
    font-size: 13.5px;
  }

  .ip__header-panel {
    gap: 14px;
  }
}

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

  .ip__tip:hover,
  .ip__post-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px var(--ip-line-strong), var(--ip-shadow-sm);
  }
}

/* Reduced motion: every element rests in its finished state. */
@media (prefers-reduced-motion: reduce) {
  .ip * {
    animation: none !important;
    transition: none !important;
  }
}

/* Vietnamese stacks two marks above a letter: the tight display leading needs a little air. */
:lang(vi) .ip h1,
:lang(vi) .ip h2,
.ip:lang(vi) h1,
.ip:lang(vi) h2,
:lang(vi) .ip .ip__display,
.ip:lang(vi) .ip__display {
  line-height: 1.1;
}
