/* eimg.app — design system
   Warm cream canvas, deep plum ink, one rose accent, pastel tints and pill
   shapes. Soft, friendly, and deliberately light: the tool is the hero, so the
   chrome gets out of its way. 8 px rhythm, 44 px touch targets. */

@font-face {
  font-family: "Figtree var";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/_a/figtree-var.4ba7d3d096.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kept as the fallback face: if Figtree ever fails to load the page still gets
   a self-hosted humanist sans instead of Times. */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/_a/inter-var.3100e775e8.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Mono var";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/_a/mono-var.83c005d49d.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colour ------------------------------------------------------------- */
  --brand: #e13a68;
  --brand-strong: #c82650;
  --brand-deep: #8d1236;
  --brand-tint: #fdeef3;
  --brand-tint-2: #f9d6e2;
  --brand-glow: rgba(225, 58, 104, 0.28);

  /* Pastel tints used for badges, callouts and the closing banner. */
  --mint: #e0f5ec;
  --mint-ink: #10805c;
  --butter: #fdefcd;
  --butter-ink: #9a6a10;
  --peach: #ffe6da;
  --lilac: #ece6ff;

  --ink: #2a1f2e;
  --ink-2: #4b4052;
  --muted: #6f6675;
  --muted-2: #9b93a0;

  --paper: #fbf7f3;
  --surface: #ffffff;
  --surface-2: #f8f2ed;
  --surface-3: #f1e8e2;

  --line: #f0e6e0;
  --line-strong: #e2d4cc;

  --ok: #10805c;
  --ok-tint: #eefaf4;
  --warn: #9a6a10;
  --warn-tint: #fdf4df;
  --danger: #b32541;
  --danger-tint: #fdeef1;

  /* shape -------------------------------------------------------------- */
  --radius-1: 12px;
  --radius-2: 18px;
  --radius-3: 26px;
  --radius-pill: 999px;

  --ring: 0 0 0 4px rgba(225, 58, 104, 0.16);
  --shadow-1: 0 1px 2px rgba(42, 31, 46, 0.05);
  --shadow-2:
    0 1px 2px rgba(42, 31, 46, 0.04), 0 14px 30px -18px rgba(96, 52, 74, 0.28);
  --shadow-3:
    0 2px 4px rgba(42, 31, 46, 0.03), 0 26px 60px -34px rgba(96, 52, 74, 0.36);

  /* type --------------------------------------------------------------- */
  --font-sans: "Figtree var", "Inter var", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: "Mono var", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;

  --container: 1080px;
  --tap: 44px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  font-feature-settings: "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Full-bleed wash: a rose glow top-left, a mint glow top-right, warm light in
   the middle. Fixed so it never scrolls away from the tool card. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(44rem 26rem at 6% -8%, rgba(240, 122, 158, 0.26), transparent 64%),
    radial-gradient(38rem 22rem at 96% -6%, rgba(120, 214, 178, 0.24), transparent 62%),
    radial-gradient(52rem 30rem at 50% 0%, rgba(255, 246, 232, 0.85), transparent 72%);
}

/* Dot texture on the top of the page only — the canvas the drop card sits on.
   Absolute (not fixed) so it scrolls away with the hero instead of tiling the
   whole document. */
body::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 940px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(178, 132, 154, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0, #000 520px, transparent 920px);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 520px, transparent 920px);
}

::selection {
  background: var(--brand-tint-2);
  color: var(--brand-deep);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
}

h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  margin-top: 2.4rem;
  letter-spacing: -0.032em;
}

h3 {
  font-size: 1.06rem;
  font-weight: 750;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-strong);
  text-decoration-color: color-mix(in srgb, var(--brand) 32%, transparent);
  text-underline-offset: 2px;
  transition: color 0.14s ease;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 28px;
  }
}

.main {
  padding: 14px 0 0;
}

.stack > * + * {
  margin-top: 1rem;
}

.narrow {
  max-width: 740px;
}

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

/* A floating pill rather than a full-width bar: it frames the tool instead of
   cutting the page in two. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0 12px;
  /* Mostly opaque so scrolled content never peeks around the pill, with a
     short fade at the bottom edge so the bar does not look cut off. */
  background: linear-gradient(
    180deg,
    rgba(251, 247, 243, 1) 0%,
    rgba(251, 247, 243, 1) 74%,
    rgba(251, 247, 243, 0) 100%
  );
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(240, 230, 224, 0.9);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow:
    0 1px 2px rgba(42, 31, 46, 0.04),
    0 18px 34px -26px rgba(96, 52, 74, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  min-height: var(--tap);
  padding-right: 4px;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(160deg, #f2658c 0%, var(--brand) 55%, #c82650 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 1px 1px rgba(141, 18, 54, 0.24),
    0 8px 16px -8px rgba(225, 58, 104, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__tld {
  color: var(--muted-2);
  font-weight: 600;
}

/* Promo pill next to the wordmark, the way pimg labels the current job. */
.brand__promo {
  display: none;
  margin-left: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (min-width: 980px) {
  .brand__promo {
    display: inline-flex;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px;
}

/* Only fade when the row genuinely overflows — otherwise the mask would eat
   the last item on desktop. */
@media (max-width: 900px) {
  .nav {
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 78%, transparent 100%);
  }
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-tint);
}

@media (max-width: 719px) {
  .nav a {
    min-height: var(--tap);
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 20px 0 14px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
    font-size: 0.66rem;
  }

  .lede {
    font-size: 0.98rem;
  }

  .spec {
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .site-header__inner {
    width: auto;
    margin-inline: 12px;
    padding: 4px 8px 4px 10px;
  }

  .brand {
    font-size: 1rem;
    gap: 7px;
  }

  .brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }
}

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

.hero {
  position: relative;
  padding: 34px 0 18px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero h1 + .lede {
  margin-top: 16px;
}

.lede {
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto;
  text-wrap: pretty;
}

.spec {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.spec li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  white-space: nowrap;
}

.spec strong {
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* The qualifier is separated by a middot rather than by a second word, so a
   chip stays one readable phrase: "A4 · Letter · fit-to-photo". */
.spec li span {
  color: var(--muted);
  font-weight: 600;
}

.spec li span::before {
  content: '· ';
  color: var(--muted-2);
}

/* Pastel rotation, the way the reference site tints its value chips: mint,
   butter, rose — then repeat. */
.spec li:nth-child(3n + 1) {
  background: var(--mint);
  border-color: #d2edde;
}

.spec li:nth-child(3n + 2) {
  background: var(--butter);
  border-color: #f2e2b8;
}

.spec li:nth-child(3n + 3) {
  background: var(--brand-tint);
  border-color: var(--brand-tint-2);
}

/* Three chips do not fit a 390 px phone in one row. Rather than let one chip
   sit alone above a pair — which reads as an accident — keep the two that
   describe the input and the output, and drop their muted qualifiers. The
   hidden specs (DPI, file cap) are stated again in the dropzone and the copy. */
@media (max-width: 480px) {
  .spec {
    font-size: 0.78rem;
  }

  .spec li {
    padding: 5px 11px;
  }

  .spec li:nth-child(n + 3) {
    display: none;
  }

  .spec li span {
    display: none;
  }
}

/* ---------------------------------------------------------------- tool card */

.tool {
  position: relative;
  margin: 10px 0 10px;
  /* #converter is linked from the closing CTA; without this the floating
     header covers the top of the card after the jump. */
  scroll-margin-top: 84px;
  border: 1px solid rgba(240, 230, 224, 1);
  border-radius: var(--radius-3);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.tool__body {
  padding: 14px;
}

@media (min-width: 720px) {
  .tool__body {
    padding: 22px;
  }
}

/* Past ~1100 px the container gets wide enough that a full-bleed dropzone
   turns into a thin banner with a small island of content in the middle.
   Capping the card keeps it reading as a card — and the empty state is the
   only thing on this page that benefits from being *narrow*. */
@media (min-width: 1024px) {
  .tool {
    max-width: 900px;
    margin-inline: auto;
  }
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 316px;
  padding: 32px 22px 28px;
  border: 2px dashed #f2c3d3;
  border-radius: 22px;
  background:
    radial-gradient(30rem 14rem at 50% -10%, rgba(225, 58, 104, 0.055), transparent 70%),
    #fffdfc;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.dropzone:hover {
  border-color: var(--brand);
  background: #fff8fa;
  box-shadow: inset 0 0 0 3px rgba(225, 58, 104, 0.05);
}

.dropzone.is-over {
  border-color: var(--brand);
  border-style: solid;
  background: var(--brand-tint);
  box-shadow: var(--ring);
  transform: scale(1.004);
}

/* Hand-drawn photo frame: the mascot that makes the empty state feel warm
   instead of like a form field. */
.dropzone__art {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.dropzone__art svg {
  width: 112px;
  height: 112px;
}

.dropzone--compact {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 0;
  padding: 11px 13px;
  border-width: 1.5px;
  border-radius: 18px;
  background: #fffdfc;
  text-align: left;
}

.dropzone--compact:hover {
  background: #fff8fa;
}

.dropzone__plus {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.dropzone__compact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropzone__compact-title {
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.dropzone__compact-sub {
  font-size: 0.78rem;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone__compact-cta {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(42, 31, 46, 0.04);
}

@media (max-width: 520px) {
  .dropzone__compact-sub {
    display: none;
  }
  .dropzone__compact-cta {
    display: none;
  }
}

.dropzone__title {
  font-weight: 800;
  font-size: clamp(1.15rem, 2.6vw, 1.42rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dropzone__sub {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 34ch;
}

.dropzone__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ec4b78 0%, var(--brand) 45%, #cf2455 100%);
  color: #fff;
  font-weight: 750;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 2px rgba(141, 18, 54, 0.28),
    0 10px 22px -12px rgba(225, 58, 104, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.dropzone:hover .dropzone__cta {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(141, 18, 54, 0.24),
    0 16px 28px -14px rgba(225, 58, 104, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dropzone__cta svg {
  width: 17px;
  height: 17px;
}

.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.dropzone[aria-disabled='true'] {
  opacity: 0.65;
  cursor: not-allowed;
}

.tool__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
  text-wrap: pretty;
}

.tool__note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--mint-ink);
}

/* ---------------------------------------------------------------- files */

.files {
  margin-top: 20px;
}

.files__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.files__count {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-2);
}

.files__count span {
  color: var(--muted-2);
  font-weight: 500;
}

.files__list {
  list-style: none;
  margin: 0;
  padding: 2px;
  display: grid;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.file-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: var(--surface);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.file-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}

.file-row.is-dragging {
  opacity: 0.45;
}

.file-row.is-target {
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.file-row__thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(42, 31, 46, 0.06);
}

.file-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-row__badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.file-row__meta {
  min-width: 0;
}

.file-row__name {
  font-size: 0.87rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-row__sub {
  font-size: 0.74rem;
  color: var(--muted-2);
  display: flex;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}

.file-row__sub > * {
  white-space: nowrap;
}

.file-row__error {
  color: var(--danger);
}

.file-row__actions {
  display: flex;
  gap: 2px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #6a5f70;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

@media (max-width: 719px) {
  .icon-btn {
    width: 40px;
    height: 40px;
  }
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn--danger:hover:not(:disabled) {
  background: var(--danger-tint);
  border-color: transparent;
  color: var(--danger);
}

/* ---------------------------------------------------------------- options */

/* Flex rather than grid: the panel has 4–6 fields depending on the page, and a
   fixed column count left the last one stranded on a row of its own. */
.options {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fdf9f6;
}

.field {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 560px) {
  .field {
    flex: 1 1 44%;
  }
}

@media (min-width: 900px) {
  .field {
    /* 164px basis keeps all six fields on one row down to a 900px window. */
    flex: 1 1 164px;
  }
}

.field__label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.select {
  width: 100%;
  min-height: var(--tap);
  padding: 0 34px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-1);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b93a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-overflow: ellipsis;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(42, 31, 46, 0.03);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.select:hover {
  border-color: #d8c4bb;
}

.select:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--ring);
  outline: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.012em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #ec4b78 0%, var(--brand) 45%, #cf2455 100%);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(141, 18, 54, 0.28),
    0 10px 22px -12px rgba(225, 58, 104, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #f05a84 0%, #e33f6c 45%, #c42755 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(141, 18, 54, 0.26),
    0 16px 30px -14px rgba(225, 58, 104, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  background: var(--surface-3);
  box-shadow: none;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(42, 31, 46, 0.04);
}

.btn--ghost:hover {
  border-color: #d8c4bb;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px -6px rgba(96, 52, 74, 0.3);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* ---------------------------------------------------------------- actions */

.actionbar {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 560px) {
  .actionbar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .actionbar .btn--primary {
    min-width: 240px;
  }
}

.actionbar__hint {
  font-size: 0.8rem;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
}

/* ---------------------------------------------------------------- progress */

.progress {
  margin-top: 16px;
}

.progress__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.79rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin-bottom: 7px;
}

.progress__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(42, 31, 46, 0.06);
}

.progress__bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand) 0%, #f0698d 60%, #f79ab2 100%);
  box-shadow: 0 0 12px rgba(225, 58, 104, 0.4);
  transition: width 0.2s ease;
}

/* ---------------------------------------------------------------- result */

.result {
  position: relative;
  margin-top: 22px;
  border: 1px solid #cdeee0;
  border-radius: var(--radius-3);
  background: linear-gradient(180deg, var(--ok-tint) 0%, #fff 58%);
  padding: 18px;
  box-shadow: var(--shadow-2);
}

.result__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.result__title {
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.result__meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.result__previews {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-bottom: 14px;
}

.result__page {
  flex: 0 0 auto;
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(42, 31, 46, 0.06),
    0 10px 18px -12px rgba(96, 52, 74, 0.32);
}

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

.result__page figcaption {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  padding: 4px 0 5px;
  border-top: 1px solid var(--line);
}

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

/* The file only exists in the tab, and a download is the only copy. Said once,
   quietly, right under the download button. */
.result__note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* A skipped file gets two lines: what happened, then what to do about it. */
.result__hint {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- alerts */

.alert {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-2);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.87rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}

.alert__title {
  font-weight: 750;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert__hint {
  color: var(--muted);
  margin-top: 3px;
}

.alert--error {
  border-color: #f6c9d3;
  background: var(--danger-tint);
}

.alert--error .alert__title {
  color: var(--danger);
}

.alert--warn {
  border-color: #f2ddb2;
  background: var(--warn-tint);
}

.alert--warn .alert__title {
  color: var(--warn);
}

.alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.alert li {
  margin-bottom: 2px;
}

/* ---------------------------------------------------------------- upsell */

.upsell {
  margin-top: 16px;
  border: 1px solid var(--brand-tint-2);
  border-radius: var(--radius-2);
  background: var(--brand-tint);
  padding: 14px 16px;
  font-size: 0.87rem;
  color: var(--ink-2);
}

.upsell strong {
  color: var(--brand-deep);
}

/* ---------------------------------------------------------------- ad slots */

.ad-slot {
  margin: 30px auto;
  width: 100%;
  max-width: 970px;
  display: block;
  /* Reserve height so ads never cause layout shift (CLS). */
}

/* Height is intentionally 0 until AdSense is switched on: an empty 250 px block
   reads as a bug. When you paste the ad unit in, set the height here to the
   unit's size (250/280 for a rectangle, 90 for a leaderboard) so nothing shifts. */
.ad-slot[data-ad-slot="result"],
.ad-slot[data-ad-slot="faq"] {
  min-height: 0;
}

/* ---------------------------------------------------------------- content */

.section {
  margin-top: 56px;
}

.section__title {
  font-size: clamp(1.32rem, 2.8vw, 1.7rem);
  letter-spacing: -0.034em;
  margin-bottom: 4px;
}

.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  box-shadow: var(--shadow-2);
}

.step__num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Pastel rotation on the step numbers: three tints, cycling. */
.step:nth-child(2) .step__num {
  background: var(--mint);
  color: #0d7452;
}

.step:nth-child(3) .step__num {
  background: var(--butter);
  color: #8b5c0c;
}

.step:nth-child(4) .step__num {
  background: var(--peach);
  color: #a8502a;
}

.step__text {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-2);
}

.prose {
  max-width: 62ch;
}

.prose p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.74;
  text-wrap: pretty;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  color: var(--ink-2);
  padding-left: 20px;
  margin: 0 0 1rem;
}

/* Rose bullets instead of the browser's dark dots. */
.prose ul {
  list-style: none;
  padding-left: 22px;
}

.prose ul li {
  position: relative;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--ink);
  font-weight: 750;
}

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

.faq {
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  padding: 0 18px 0 20px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq__item:hover {
  border-color: var(--brand-tint-2);
  box-shadow: var(--shadow-2);
}

.faq__item[open] {
  border-color: var(--brand-tint-2);
  box-shadow: var(--shadow-2);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--tap);
  padding: 16px 0;
  font-weight: 750;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

/* Round pastel toggle: + rotates into × when the answer opens. */
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.faq__item summary:hover::after {
  background: var(--brand-tint-2);
}

.faq__item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  background: var(--brand-strong);
  color: #fff;
}

.faq__answer {
  padding: 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 72ch;
}

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

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

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

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

.card {
  position: relative;
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-2);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.card:hover {
  border-color: var(--brand-tint-2);
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
  color: inherit;
}

.card__badge {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 9px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card:nth-child(3n + 2) .card__badge {
  background: var(--mint);
  color: #0d7452;
}

.card:nth-child(3n + 3) .card__badge {
  background: var(--butter);
  color: #8b5c0c;
}

.card__title {
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.022em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card__title svg {
  color: var(--brand);
  transition: transform 0.16s ease;
}

.card:hover .card__title svg {
  transform: translateX(3px);
}

.card__text {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.card__meta {
  margin-top: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- breadcrumb */

.crumbs {
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-bottom: 4px;
  padding-top: 6px;
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.crumbs li[aria-current] {
  color: var(--ink-2);
  font-weight: 600;
}

.crumbs__sep {
  color: var(--line-strong);
}

/* ---------------------------------------------------------------- cta band */

/* Closing banner: the pastel wash runs rose → butter → mint, so the last thing
   on the page is colour rather than a wall of text. */
.cta {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding: 44px 28px;
  border-radius: var(--radius-3);
  border: 1px solid #f4e3e0;
  background:
    radial-gradient(28rem 16rem at 6% 50%, rgba(241, 122, 156, 0.34), transparent 70%),
    radial-gradient(26rem 15rem at 94% 50%, rgba(122, 214, 180, 0.34), transparent 70%),
    linear-gradient(180deg, #fff6f2 0%, #fdf4e6 100%);
  text-align: center;
}

.cta h2 {
  margin: 0 auto 8px;
  max-width: 40ch;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.032em;
}

.cta p {
  margin: 0 auto 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta .btn {
  position: relative;
}

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

.site-footer {
  margin-top: 72px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 46px 0 34px;
  font-size: 0.86rem;
}

.site-footer__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr;
  }

  /* The link columns hold little text; pinning the last one to the right edge
     stops the footer from looking like it ran out of content. */
  .site-footer nav:last-of-type {
    justify-self: end;
  }
}

.site-footer h2 {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
  display: inline-block;
  padding: 5px 0;
  font-weight: 600;
  transition: color 0.14s ease;
}

.site-footer a:hover {
  color: var(--brand-strong);
  text-decoration: none;
}

.site-footer__note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* The footer's brand lockup: same mark as the header. */
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.site-footer__brand .brand__tld {
  color: var(--muted-2);
}

.site-footer__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  padding: 6px 13px 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid #d4ecdf;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  color: #2c6b53;
}

.site-footer__pill svg {
  width: 13px;
  height: 13px;
  color: var(--mint-ink);
}

/* ---------------------------------------------------------------- misc */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 60;
}

.skip-link:focus {
  left: 0;
}

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

.legal-page {
  /* Legal copy was running the full container width — about 95 characters a
     line, which is hard to track. */
  max-width: 66ch;
}

.legal-page h2 {
  margin-top: 2.2rem;
  font-size: 1.22rem;
  letter-spacing: -0.028em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-2);
}

.legal-page .updated {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.8rem;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.brand__mark .gf-site-icon { width: 100%; height: 100%; border-radius: inherit; }
