/*
 * ImagePolish — landing site stylesheet.
 *
 * One file for three pages: the landing page, the pricing page and the privacy
 * policy. They share a header, a footer and a token set, so splitting them would
 * mean keeping three copies of the same header in step by hand.
 *
 * The palette is the extension's own, not a second one invented for the web. The
 * accent is `--ip-accent` from `src/workspace/workspace.css` (#2563eb); the two
 * blues in every gradient are the product mark's gradient stops from
 * `src/workspace/ui/brand.ts` (#1a3ea8 → #3b82f6); the neutrals, the success green
 * and the amber are the workspace's. The store icon, the app and the site are one
 * palette rather than three, and a change to the app's accent is a change here.
 *
 * Theme: `data-ip-theme` on <body> is the resolved theme ('light' or 'dark').
 * `data-ip-theme-choice` records what the user picked, which may be 'auto'.
 * script.js owns both; nothing here reads prefers-color-scheme directly, so the
 * toggle wins in every direction.
 */

:root {
  --ip-bg: #fbfcfe;
  --ip-surface: #ffffff;
  --ip-text: #27272a;
  --ip-heading: #09090b;
  --ip-muted: #52525b;
  --ip-soft: #f1f5fd;
  --ip-border: rgba(24, 32, 56, 0.12);

  /* The mark's gradient stops, and the workspace's accent between them. */
  --ip-blue-deep: #1a3ea8;
  --ip-blue: #2563eb;
  --ip-sky: #3b82f6;

  --ip-green: #15803d;
  --ip-amber: #b45309;
  --ip-red: #b91c1c;
  --ip-cyan: #0369a1;

  --ip-link: #2563eb;
  --ip-link-hover: #1a3ea8;

  --ip-shadow: 0 24px 70px rgba(15, 27, 58, 0.12);
  --ip-shadow-soft: 0 16px 40px rgba(15, 27, 58, 0.08);

  --ip-radius: 16px;
  --ip-radius-sm: 10px;
  --ip-container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.ip-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 3%, rgba(37, 99, 235, 0.09), transparent 24rem),
    radial-gradient(circle at 80% 6%, rgba(26, 62, 168, 0.07), transparent 24rem),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 34%, #fbfcfe 100%);
  color: var(--ip-text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.ip-page[data-ip-theme='dark'] {
  --ip-bg: #0b0b0d;
  --ip-surface: #141417;
  --ip-text: #e4e4e7;
  --ip-heading: #fafafa;
  --ip-muted: #a1a1aa;
  --ip-soft: #1c1c21;
  --ip-border: rgba(161, 161, 170, 0.2);
  --ip-blue-deep: #93c5fd;
  --ip-blue: #60a5fa;
  --ip-sky: #93c5fd;
  --ip-green: #4ade80;
  --ip-amber: #fbbf24;
  --ip-red: #f87171;
  --ip-cyan: #38bdf8;
  --ip-link: #93c5fd;
  --ip-link-hover: #bfdbfe;
  --ip-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --ip-shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 15% 3%, rgba(59, 130, 246, 0.16), transparent 24rem),
    radial-gradient(circle at 80% 6%, rgba(26, 62, 168, 0.18), transparent 24rem),
    linear-gradient(180deg, #0b0b0d 0%, #101015 42%, #0b0b0d 100%);
}

.ip-page a {
  color: inherit;
  text-decoration: none;
}

.ip-page img,
.ip-page svg {
  display: block;
}

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

.ip-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ip-container {
  width: min(calc(100% - 48px), var(--ip-container));
  margin-inline: auto;
}

/* Reachable by keyboard, invisible until it has focus. */
.ip-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--ip-blue);
  font-weight: 800;
  transition: top 0.2s ease;
}

.ip-skip:focus {
  top: 16px;
}

/* Present to a screen reader, absent from the page. Used for a table caption that
   names the table for assistive tech without repeating the heading above it. */
.ip-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------- header */

.ip-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 78px;
  background: rgba(251, 252, 254, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(24, 32, 56, 0.08);
}

.ip-page[data-ip-theme='dark'] .ip-header {
  background: rgba(11, 11, 13, 0.82);
  box-shadow: 0 1px 0 rgba(161, 161, 170, 0.14);
}

.ip-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 22px;
}

.ip-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.ip-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.ip-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ip-brand-name strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ip-heading);
}

.ip-brand-name small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ip-muted);
}

.ip-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ip-heading);
}

/*
 * Padded to a ~41px touch target rather than left at the 21px the text occupies.
 * The nav survives down to 900px and an iPad Pro in portrait is 1024, so this row
 * is touched about as often as it is clicked. The underline moves with it: at
 * `bottom: 1px` inside the padded box it sits the same 9px under the text that
 * `bottom: -9px` gave when the box was the text.
 */
.ip-nav a {
  position: relative;
  padding: 10px 0;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.ip-nav a:hover,
.ip-nav a.is-active {
  color: var(--ip-blue);
  transform: translateY(-1px);
}

.ip-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: var(--ip-blue);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  content: '';
}

.ip-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.ip-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ip-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--ip-blue);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.ip-icon-button:hover {
  transform: translateY(-1px);
  background: var(--ip-soft);
}

.ip-icon-button svg {
  width: 22px;
  height: 22px;
}

/*
 * The hamburger only exists below the nav's breakpoint. Hiding it with a media
 * query rather than JS means it is never briefly visible on a wide screen.
 */
.ip-menu-toggle {
  display: none;
}

.ip-mobile-nav {
  display: none;
}

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

.ip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.ip-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.ip-page .ip-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ip-blue-deep), var(--ip-sky));
  box-shadow: 0 16px 30px rgba(26, 62, 168, 0.26);
}

.ip-page .ip-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(26, 62, 168, 0.32);
}

.ip-page[data-ip-theme='dark'] .ip-button-primary {
  color: #0b1220;
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.44);
}

.ip-button-secondary,
.ip-button-outline {
  color: var(--ip-blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(37, 99, 235, 0.4);
}

.ip-button-secondary:hover,
.ip-button-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: var(--ip-shadow-soft);
}

.ip-page[data-ip-theme='dark'] .ip-button-secondary,
.ip-page[data-ip-theme='dark'] .ip-button-outline {
  color: #e4e4e7;
  background: rgba(28, 28, 33, 0.82);
  border-color: rgba(96, 165, 250, 0.5);
}

.ip-header-cta {
  min-height: 44px;
  padding-inline: 18px;
}

/* --------------------------------------------------------------------- hero */

.ip-hero {
  position: relative;
  padding: 68px 0 84px;
}

.ip-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 22%, rgba(37, 99, 235, 0.1), transparent 20rem),
    radial-gradient(circle at 82% 18%, rgba(3, 105, 161, 0.06), transparent 18rem);
}

.ip-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

.ip-hero-copy {
  min-width: 0;
}

.ip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--ip-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ip-eyebrow svg {
  width: 15px;
  height: 15px;
}

.ip-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ip-heading);
}

.ip-hero h1 span {
  background: linear-gradient(120deg, var(--ip-blue-deep), var(--ip-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ip-hero-text {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ip-muted);
}

.ip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.ip-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ip-muted);
}

.ip-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ip-trust-list svg {
  width: 18px;
  height: 18px;
  color: var(--ip-green);
}

.ip-shot {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--ip-border);
  border-radius: 20px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow);
  animation: ip-float 9s ease-in-out infinite;
}

.ip-shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ip-shot figcaption {
  padding: 12px 8px 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--ip-muted);
}

@keyframes ip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ------------------------------------------------------------------ sections */

.ip-section {
  padding: 78px 0;
}

.ip-section-tight {
  padding: 58px 0;
}

.ip-section-heading {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.ip-section-heading h1,
.ip-section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ip-heading);
}

.ip-section-heading > p:not(.ip-section-kicker):not(.ip-eyebrow) {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ip-muted);
}

/* The pricing page leads with this block, so its heading is the page h1. */
.ip-heading-display h1,
.ip-heading-display h2 {
  font-size: clamp(34px, 4.6vw, 48px);
}

.ip-section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--ip-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ features */

.ip-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ip-card {
  padding: 26px 24px;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--ip-shadow);
}

.ip-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ip-heading);
}

.ip-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ip-muted);
}

.ip-card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--ip-blue);
}

.ip-card-icon svg {
  width: 24px;
  height: 24px;
}

.ip-icon-green {
  background: rgba(21, 128, 61, 0.12);
  color: var(--ip-green);
}

.ip-icon-amber {
  background: rgba(180, 83, 9, 0.12);
  color: var(--ip-amber);
}

.ip-icon-red {
  background: rgba(185, 28, 28, 0.1);
  color: var(--ip-red);
}

.ip-icon-cyan {
  background: rgba(3, 105, 161, 0.11);
  color: var(--ip-cyan);
}

/* --------------------------------------------------------------- how it works */

.ip-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* The connecting rule sits behind the cards and stops short of both ends. */
.ip-steps::before {
  position: absolute;
  top: 46px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.05),
    rgba(37, 99, 235, 0.32),
    rgba(37, 99, 235, 0.05)
  );
  content: '';
}

.ip-step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  text-align: center;
}

.ip-step-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--ip-blue-deep), var(--ip-sky));
  color: #ffffff;
}

.ip-page[data-ip-theme='dark'] .ip-step-icon {
  color: #0b1220;
}

.ip-step-icon svg {
  width: 26px;
  height: 26px;
}

.ip-step-number {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ip-blue);
}

.ip-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ip-heading);
}

.ip-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ip-muted);
}

/* ----------------------------------------------------------------- gallery */

.ip-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ip-gallery-item {
  margin: 0;
  padding: 10px 10px 0;
  border: 1px solid var(--ip-border);
  border-radius: 18px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ip-gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--ip-shadow);
}

.ip-gallery-item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ip-border);
  border-radius: 11px;
}

.ip-gallery-item figcaption {
  padding: 16px 12px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ip-muted);
}

.ip-gallery-item figcaption strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ip-heading);
}

/* ------------------------------------------------------------------- privacy */

.ip-proof {
  padding: 40px;
  border: 1px solid var(--ip-border);
  border-radius: 22px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
}

.ip-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ip-proof-item {
  padding: 22px;
  border: 1px dashed rgba(37, 99, 235, 0.3);
  border-radius: var(--ip-radius-sm);
  background: rgba(37, 99, 235, 0.045);
}

.ip-page[data-ip-theme='dark'] .ip-proof-item {
  background: rgba(96, 165, 250, 0.07);
}

.ip-proof-item h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ip-heading);
}

.ip-proof-item h3 svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--ip-blue);
}

.ip-proof-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ip-muted);
}

.ip-proof-note {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ip-border);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ip-muted);
}

/* ---------------------------------------------------------------- disclosure */

/*
 * The AI/watermark disclosure (BR-001). It gets a section of its own rather than a
 * footnote, and it is styled as information rather than as an alarm — the same
 * decision `src/workspace/ui/disclosure.ts` makes inside the product, for the same
 * reason: it is the honest limit of what this tool does, not a warning about it.
 */
.ip-note {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 32px 34px;
  border: 1px solid rgba(3, 105, 161, 0.28);
  border-radius: 20px;
  background: rgba(3, 105, 161, 0.05);
}

.ip-page[data-ip-theme='dark'] .ip-note {
  background: rgba(56, 189, 248, 0.07);
  border-color: rgba(56, 189, 248, 0.28);
}

.ip-note-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(3, 105, 161, 0.12);
  color: var(--ip-cyan);
}

.ip-note-icon svg {
  width: 27px;
  height: 27px;
}

.ip-note h2,
.ip-note h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ip-heading);
}

.ip-note p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ip-muted);
}

.ip-note p:last-child {
  margin-bottom: 0;
}

.ip-note a {
  color: var(--ip-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip-note a:hover {
  color: var(--ip-link-hover);
}

/* ----------------------------------------------------------------------- pro */

.ip-pro-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--ip-border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(3, 105, 161, 0.04));
  box-shadow: var(--ip-shadow-soft);
}

.ip-page[data-ip-theme='dark'] .ip-pro-showcase {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(56, 189, 248, 0.05));
}

.ip-pro-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ip-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ip-page[data-ip-theme='dark'] .ip-pro-kicker {
  color: #0b1220;
}

.ip-pro-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ip-heading);
}

.ip-pro-copy > p:not(.ip-pro-kicker) {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ip-muted);
}

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

.ip-pro-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ip-muted);
}

.ip-pro-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--ip-green);
}

.ip-pro-list strong {
  display: block;
  color: var(--ip-heading);
  font-weight: 800;
}

.ip-pro-panel {
  padding: 20px;
  border: 1px solid var(--ip-border);
  border-radius: 18px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow);
}

.ip-pro-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ip-border);
}

.ip-pro-panel-header span {
  font-size: 14px;
  font-weight: 800;
  color: var(--ip-heading);
}

.ip-pro-panel-header strong {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ip-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ip-page[data-ip-theme='dark'] .ip-pro-panel-header strong {
  color: #0b1220;
}

.ip-pro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--ip-border);
}

.ip-pro-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.ip-pro-row strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ip-heading);
}

.ip-pro-row small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ip-muted);
}

/*
 * The Free → Pro pair in the panel's right-hand column. Two values side by side
 * rather than one: the whole of what a licence changes is a number getting bigger,
 * and showing only the new number hides the comparison that is the argument.
 */
.ip-delta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ip-delta s {
  color: var(--ip-muted);
  text-decoration-thickness: 1px;
}

.ip-delta em {
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(21, 128, 61, 0.12);
  color: var(--ip-green);
  font-style: normal;
}

.ip-chip-input {
  padding: 6px 11px;
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  background: var(--ip-soft);
  color: var(--ip-heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
}

/* ------------------------------------------------------------------- pricing */

.ip-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ip-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border: 1px solid var(--ip-border);
  border-radius: 20px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.ip-price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--ip-shadow);
}

.ip-price-free {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 60%), var(--ip-surface);
}

.ip-price-featured {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 26px 60px rgba(26, 62, 168, 0.2);
  transform: translateY(-8px);
}

.ip-price-featured:hover {
  transform: translateY(-12px);
}

.ip-price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ip-blue-deep), var(--ip-sky));
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(26, 62, 168, 0.3);
}

.ip-page[data-ip-theme='dark'] .ip-price-badge {
  color: #0b1220;
}

.ip-plan-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ip-soft);
  color: var(--ip-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ip-price-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ip-heading);
}

.ip-price-card-top p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ip-muted);
  min-height: 44px;
}

.ip-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}

.ip-price strong {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ip-heading);
}

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

/*
 * The undiscounted list price, struck through on its own line above the amount.
 *
 * It is a **claim about what this plan normally costs**, not decoration: it has to
 * be the price actually configured in Freemius and actually charged when the
 * promotion ends. These are `PLAN_OFFERS` in `src/shared/freemius.ts` — the same
 * three pairs the extension's own plan chooser prints — and `check.py` recomputes
 * every badge from them, so a copy edit cannot invent a discount here.
 */
.ip-old-price {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ip-muted);
}

.ip-old-price s {
  text-decoration-thickness: 1px;
}

/*
 * The free card has no list price and no discount, so on its own it sits a line
 * higher at the top and a line shorter at the bottom than the three cards beside
 * it — which pushes its feature list, and only its feature list, up out of line.
 *
 * Offsets rather than two empty elements: filler markup that exists only to push
 * something down is invisible to whoever edits it next, and gets deleted. The two
 * values are the two lines it is standing in for, and the badge's row gap.
 */
.ip-price-free .ip-price {
  margin-top: 21px;
  margin-bottom: 34px;
}

/*
 * A sibling of the price line, not a child of it.
 *
 * Inside `.ip-price` it fitted beside the amount at some card widths and wrapped
 * below it at others, so the feature lists lined up or did not depending on the
 * viewport. Forcing the wrap with `flex-basis: 100%` fixed that and broke something
 * worse: in a row flex container `flex-basis` *is* the main size and beats `width`,
 * so the pill stretched the full width of the card. Out here it is an ordinary
 * block, `width: fit-content` means what it says, and the line is unconditional.
 */
.ip-discount-badge {
  display: block;
  width: fit-content;
  margin: 0 0 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.12);
  color: var(--ip-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ip-page[data-ip-theme='dark'] .ip-discount-badge {
  background: rgba(74, 222, 128, 0.16);
}

.ip-price-sub {
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ip-muted);
  min-height: 19px;
}

.ip-price-card ul {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.ip-price-card li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ip-text);
}

.ip-price-card li svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--ip-green);
}

.ip-price-card .ip-button {
  width: 100%;
}

/*
 * The payment note under the plan cards.
 *
 * It was `justify-content: center` on a flex row of [icon, span], which does not do
 * what it looks like it does: the span is a block that grows to the full 1120px
 * container, so there is no free space left to centre anything with. The icon ended
 * up hard against the left edge of the section with the text centred inside its own
 * full-width span a third of a screen away, and the trailing link wrapped to a line
 * of its own with nothing to sit under.
 *
 * A bounded panel instead. The width is what makes the centring real — the note is
 * narrower than the row of cards above it, so `margin-inline: auto` has something to
 * do — and left-aligned text keeps the icon beside the sentence it belongs to rather
 * than beside a gap.
 */
.ip-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 760px;
  margin: 36px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--ip-border);
  border-radius: 14px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ip-muted);
  text-align: left;
}

.ip-secure-note a {
  color: var(--ip-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip-secure-note a:hover {
  color: var(--ip-link-hover);
}

/*
 * A link that *ends* the note is a next step, not a phrase in the sentence, and it
 * carries an arrow saying so — inline it wrapped across two lines mid-phrase
 * ("…comparison and refund / policy →"). `:last-child` rather than the bare `a` so
 * a link added inside the sentence later still flows with the text.
 */
.ip-secure-note span > a:last-child {
  display: block;
  margin-top: 7px;
}

/* Nudged onto the first line's baseline rather than centred on the whole block,
   which on a three-line note left it floating beside the middle sentence. */
.ip-secure-note svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
  color: var(--ip-green);
}

/* ----------------------------------------------------------- comparison table */

/*
 * A horizontally scrolling table is invisible as an affordance: the right-hand
 * column is simply absent, and nothing on screen says it is reachable. The hint
 * appears only below the width at which the table actually overflows.
 */
.ip-table-hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ip-muted);
}

.ip-table-hint svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ip-blue);
}

.ip-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ip-border);
  border-radius: 18px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
}

.ip-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.ip-table th,
.ip-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ip-border);
  vertical-align: top;
}

.ip-table thead th {
  position: sticky;
  top: 0;
  background: var(--ip-soft);
  color: var(--ip-heading);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ip-table tbody th {
  font-weight: 800;
  color: var(--ip-heading);
  width: 34%;
}

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

.ip-table tbody tr:last-child th,
.ip-table tbody tr:last-child td {
  border-bottom: 0;
}

.ip-table tbody tr:hover th,
.ip-table tbody tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

.ip-page[data-ip-theme='dark'] .ip-table tbody tr:hover th,
.ip-page[data-ip-theme='dark'] .ip-table tbody tr:hover td {
  background: rgba(96, 165, 250, 0.06);
}

.ip-yes,
.ip-no {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.ip-yes {
  color: var(--ip-green);
}

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

.ip-yes svg,
.ip-no svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* -------------------------------------------------------------- callout card */

.ip-callout {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid var(--ip-border);
  border-radius: 20px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
}

/* A callout that follows a grid of cards rather than opening a section. */
.ip-callout-after {
  margin-top: 28px;
}

.ip-callout-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--ip-blue);
}

.ip-callout-icon svg {
  width: 30px;
  height: 30px;
}

.ip-callout h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ip-heading);
}

.ip-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ip-muted);
}

.ip-callout a:not(.ip-button) {
  color: var(--ip-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip-callout a:not(.ip-button):hover {
  color: var(--ip-link-hover);
}

/* --------------------------------------------------------------- limits list */

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

.ip-limits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 19px 22px;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-sm);
  background: var(--ip-surface);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ip-muted);
}

.ip-limits svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--ip-amber);
}

.ip-limits strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ip-heading);
  font-weight: 800;
}

/* ------------------------------------------------------------------------ faq */

.ip-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.ip-faq-item {
  padding: 4px 22px;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
}

.ip-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ip-heading);
  cursor: pointer;
  list-style: none;
}

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

.ip-faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--ip-blue);
  transition: transform 0.25s ease;
}

.ip-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.ip-faq-item p {
  margin: 0 0 19px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ip-muted);
}

.ip-faq-item p a,
.ip-prose a {
  color: var(--ip-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ip-faq-item p a:hover,
.ip-prose a:hover {
  color: var(--ip-link-hover);
}

.ip-faq-item code,
.ip-prose code,
.ip-note code {
  padding: 2px 7px;
  border: 1px solid var(--ip-border);
  border-radius: 6px;
  background: var(--ip-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

/* ---------------------------------------------------------- policy / long-form */

.ip-doc-main {
  padding: 46px 0 78px;
}

.ip-doc-hero {
  position: relative;
  padding: 40px;
  margin-bottom: 34px;
  border: 1px solid var(--ip-border);
  border-radius: 24px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  overflow: hidden;
}

.ip-doc-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.1), transparent 16rem),
    radial-gradient(circle at 6% 88%, rgba(3, 105, 161, 0.07), transparent 14rem);
  pointer-events: none;
  content: '';
}

.ip-doc-hero > * {
  position: relative;
}

.ip-doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.ip-doc-eyebrow img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.ip-doc-eyebrow span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ip-blue);
}

.ip-doc-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ip-heading);
}

.ip-doc-hero > p:not(.ip-doc-eyebrow) {
  max-width: 640px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ip-muted);
}

.ip-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--ip-border);
  border-radius: 999px;
  background: var(--ip-soft);
  color: var(--ip-heading);
  font-size: 12.5px;
  font-weight: 700;
}

.ip-pill svg {
  width: 15px;
  height: 15px;
  color: var(--ip-green);
}

.ip-doc-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ip-doc-aside {
  position: sticky;
  top: 100px;
  padding: 26px 24px;
  border: 1px solid var(--ip-border);
  border-radius: 18px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
}

.ip-doc-aside h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ip-heading);
}

.ip-doc-aside p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ip-muted);
}

.ip-doc-toc {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ip-doc-toc a {
  display: block;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ip-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.ip-doc-toc a:hover,
.ip-doc-toc a.is-active {
  background: rgba(37, 99, 235, 0.09);
  color: var(--ip-blue);
}

.ip-doc-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.ip-prose {
  padding: 30px 32px;
  border: 1px solid var(--ip-border);
  border-radius: 18px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-soft);
  scroll-margin-top: 100px;
}

.ip-prose h2 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ip-heading);
}

.ip-prose h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ip-heading);
}

.ip-prose p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ip-muted);
}

.ip-prose p:last-child,
.ip-prose ul:last-child {
  margin-bottom: 0;
}

.ip-prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.ip-prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ip-muted);
}

.ip-prose strong {
  color: var(--ip-heading);
}

.ip-prose-accent {
  border-left: 4px solid var(--ip-blue);
}

/* -------------------------------------------------------------------- footer */

.ip-footer {
  position: relative;
  margin-top: 40px;
  padding: 56px 0 26px;
  border-top: 1px solid var(--ip-border);
  background: rgba(255, 255, 255, 0.6);
}

.ip-page[data-ip-theme='dark'] .ip-footer {
  background: rgba(17, 17, 20, 0.6);
}

.ip-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.ip-footer-brand p {
  max-width: 300px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ip-muted);
}

.ip-footer h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ip-heading);
}

/*
 * `gap: 0` with padding on the links rather than a gap between them. At 14px a
 * footer link is 21px tall, and a 21px target with a 10px gap is a miss waiting
 * to happen on any touch screen — which above 900px includes every iPad. The
 * padding makes each row ~39px and clickable across its whole width; the
 * on-screen rhythm barely changes.
 */
.ip-footer-links {
  display: grid;
  gap: 0;
  align-content: start;
}

.ip-footer-links a {
  padding: 9px 0;
}

.ip-footer a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ip-muted);
  transition: color 0.2s ease;
}

.ip-footer a:hover {
  color: var(--ip-blue);
}

.ip-footer-install a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  background: var(--ip-surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ip-heading);
}

.ip-footer-install a:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--ip-heading);
}

.ip-footer-install svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

/*
 * The line the product cannot go past, in the footer of every page — the same
 * sentence `src/workspace/workspace.html` carries, for the same reason (BR-001).
 * It is a statement of scope, so it reads as one rather than as small print.
 */
.ip-footer-limit {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ip-border);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ip-muted);
  text-align: center;
}

/*
 * Two flex children rather than one sentence with a `·` in it. Written inline,
 * the separator strands at the end of whichever line the wrap lands on; as a gap
 * it simply becomes a line break when there is no room beside it.
 */
.ip-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  margin: 20px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ip-border);
  font-size: 13px;
  text-align: center;
  color: var(--ip-muted);
}

.ip-copyright a {
  color: var(--ip-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * The contact address is a direct child of the flex row, not a link inside a
 * sentence, so WCAG 2.5.5's inline exception does not cover it and its 21px
 * text height is the whole target. Padded to ~37px.
 */
.ip-copyright > a {
  padding: 8px 0;
}

.ip-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ip-blue-deep), var(--ip-sky));
  box-shadow: 0 14px 30px rgba(26, 62, 168, 0.32);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.ip-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ip-scroll-top svg {
  width: 21px;
  height: 21px;
}

/* --------------------------------------------------------- reveal on scroll */

[data-ip-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-ip-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .ip-nav {
    gap: 22px;
  }

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

  .ip-price-featured,
  .ip-price-featured:hover {
    transform: none;
  }

  .ip-pro-showcase {
    grid-template-columns: 1fr;
  }

  .ip-doc-grid {
    grid-template-columns: 1fr;
  }

  .ip-doc-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .ip-nav {
    display: none;
  }

  .ip-menu-toggle {
    display: inline-grid;
  }

  /*
   * Opened by script.js flipping [hidden]. It is a plain block in the flow under
   * the header rather than an overlay, so the page behind it never has to be
   * scroll-locked and nothing can end up trapped underneath it.
   */
  .ip-mobile-nav {
    display: block;
    border-top: 1px solid var(--ip-border);
    background: var(--ip-surface);
    box-shadow: var(--ip-shadow-soft);
  }

  .ip-mobile-nav[hidden] {
    display: none;
  }

  .ip-mobile-nav ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 14px 0 20px;
    list-style: none;
  }

  .ip-mobile-nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ip-heading);
  }

  .ip-mobile-nav a:hover {
    background: var(--ip-soft);
    color: var(--ip-blue);
  }

  /*
   * `display: flex` is re-stated, not redundant. `.ip-mobile-nav a` above sets
   * `display: block`, and it wins on order — which left the install button's icon
   * stranded at the far left of a full-width row with its label centred away from
   * it. The two rules are both about links in this sheet; this one is about the
   * one link in it that is a button.
   */
  .ip-mobile-nav .ip-button {
    display: flex;
    width: 100%;
    margin-top: 8px;
  }

  .ip-header-cta {
    display: none;
  }

  .ip-hero {
    padding-top: 34px;
  }

  .ip-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .ip-hero-copy {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }

  .ip-hero-text {
    margin-inline: auto;
  }

  .ip-actions,
  .ip-trust-list {
    justify-content: center;
  }

  /*
   * Six cards drop to two columns here. The three-card rows do NOT: two columns
   * of three leaves one card alone in half a row, and spanning it full-width
   * makes the last step look like the important one. They stay three-across
   * until there is genuinely no room, at 720px, and then go straight to one.
   */
  .ip-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ip-callout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ip-callout .ip-button {
    width: 100%;
    max-width: 340px;
  }

  .ip-proof,
  .ip-pro-showcase,
  .ip-doc-hero {
    padding: 28px 24px;
  }

  .ip-note {
    padding: 26px 24px;
  }

  .ip-shot {
    animation: none;
  }
}

/*
 * The point at which three cards across genuinely stop fitting. Everything that
 * was still multi-column above this goes to one, in one place, so the ladder is
 * readable rather than scattered through three blocks.
 */
@media (max-width: 720px) {
  .ip-steps,
  .ip-proof-grid,
  .ip-faq-grid {
    grid-template-columns: 1fr;
  }

  .ip-steps::before {
    display: none;
  }
}

@media (max-width: 620px) {
  /* Uppercase labels at 11px read fine on a monitor and small in the hand. */
  .ip-plan-label,
  .ip-price-badge,
  .ip-discount-badge,
  .ip-pro-kicker,
  .ip-pro-panel-header strong {
    font-size: 12px;
  }

  .ip-eyebrow,
  .ip-section-kicker {
    font-size: 12.5px;
  }

  .ip-table-hint {
    display: flex;
  }

  .ip-container {
    width: min(calc(100% - 32px), var(--ip-container));
  }

  .ip-section {
    padding: 56px 0;
  }

  .ip-brand-name small {
    display: none;
  }

  .ip-feature-grid,
  .ip-price-grid,
  .ip-gallery,
  .ip-limits,
  .ip-footer-grid {
    grid-template-columns: 1fr;
  }

  .ip-price-card-top p {
    min-height: 0;
  }

  .ip-actions .ip-button {
    width: 100%;
  }

  /*
   * The Pro panel's rows are a label and a value side by side. Below this the
   * label wraps to two or three lines and the value is squeezed against it, so
   * the value moves under its own label instead.
   */
  .ip-pro-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ip-note {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ip-secure-note {
    padding: 16px 18px;
  }

  .ip-prose {
    padding: 24px 20px;
  }

  .ip-doc-main {
    padding-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-ip-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .ip-header,
  .ip-footer,
  .ip-scroll-top,
  .ip-doc-aside {
    display: none;
  }

  .ip-doc-grid {
    grid-template-columns: 1fr;
  }

  .ip-prose,
  .ip-doc-hero {
    border: 0;
    box-shadow: none;
    padding-inline: 0;
  }
}
