/* Paper Types gallery — modern, cute, navigable (55printing #558BCA) */
:root {
  --ff-pg-blue: #558BCA;
  --ff-pg-blue-deep: #3d6fa8;
  --ff-pg-ink: #1f2a37;
  --ff-pg-muted: #5b6b7c;
  --ff-pg-line: #e4eaf1;
  --ff-pg-soft: #f4f8fc;
  --ff-pg-card: #ffffff;
  --ff-pg-radius: 18px;
  --ff-pg-shadow: 0 10px 28px rgba(31, 42, 55, 0.08);
}

.ff-pg {
  color: var(--ff-pg-ink);
  max-width: 100%;
}

.ff-pg-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ff-pg-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ff-pg-blue);
}

.ff-pg-lead {
  margin: 0.5rem 0 0;
  color: var(--ff-pg-muted);
  line-height: 1.55;
  max-width: 48rem;
}

.ff-pg-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ff-pg-muted);
}

.ff-pg-crumb a {
  color: var(--ff-pg-blue-deep);
  text-decoration: none;
}

.ff-pg-crumb a:hover {
  text-decoration: underline;
}

.ff-pg-crumb__sep {
  opacity: 0.5;
}

.ff-pg-hero {
  position: relative;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: calc(var(--ff-pg-radius) + 4px);
  background:
    radial-gradient(1200px 280px at 10% -20%, rgba(85, 139, 202, 0.18), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, var(--ff-pg-soft) 100%);
  border: 1px solid var(--ff-pg-line);
  box-shadow: var(--ff-pg-shadow);
  overflow: hidden;
  animation: ff-pg-fade-up 0.55s ease both;
}

.ff-pg-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ff-pg-hero__row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
}

.ff-pg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.ff-pg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(85, 139, 202, 0.1);
  color: var(--ff-pg-blue-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.ff-pg-pill a {
  color: inherit;
  text-decoration: none;
}

.ff-pg-pill a:hover {
  text-decoration: underline;
}

.ff-pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.ff-pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ff-pg-btn:hover {
  transform: translateY(-1px);
}

.ff-pg-btn--primary {
  background: var(--ff-pg-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(85, 139, 202, 0.28);
}

.ff-pg-btn--primary:hover {
  background: var(--ff-pg-blue-deep);
  color: #fff;
}

.ff-pg-btn--ghost {
  background: #fff;
  color: var(--ff-pg-blue-deep);
  border-color: #c9d8ea;
}

.ff-pg-btn--ghost:hover {
  background: var(--ff-pg-soft);
  color: var(--ff-pg-blue-deep);
}

.ff-pg-hero__visual {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.ff-pg-hero__stack {
  position: relative;
  width: 220px;
  height: 160px;
}

.ff-pg-hero__swatch {
  position: absolute;
  width: 118px;
  height: 78px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 24px rgba(31, 42, 55, 0.16);
  animation: ff-pg-float 4.5s ease-in-out infinite;
}

.ff-pg-hero__swatch--linen {
  left: 18px;
  top: 18px;
  background: repeating-linear-gradient(135deg, #f7f1e8, #f7f1e8 4px, #efe6d8 4px, #efe6d8 8px);
  animation-delay: 0s;
}

.ff-pg-hero__swatch--gloss {
  left: 70px;
  top: 8px;
  background: linear-gradient(135deg, #dce9f8, #9dbfe5 45%, #558BCA);
  animation-delay: 0.4s;
}

.ff-pg-hero__swatch--kraft {
  left: 36px;
  top: 62px;
  background: linear-gradient(145deg, #c4a574, #8d6b3f);
  animation-delay: 0.8s;
}

.ff-pg-hero__swatch--pearl {
  left: 96px;
  top: 70px;
  background: linear-gradient(135deg, #f8f4ef, #e8d9c8 50%, #f3ebe2);
  animation-delay: 1.2s;
}

.ff-pg-hero__media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--ff-pg-line);
  box-shadow: var(--ff-pg-shadow);
  background: #fff;
  display: block;
  margin-left: auto;
}

.ff-pg-intro,
.ff-pg-copy,
.ff-pg-help {
  margin-top: 1.35rem;
  line-height: 1.6;
  color: var(--ff-pg-muted);
}

.ff-pg-intro p,
.ff-pg-copy p,
.ff-pg-help p {
  margin: 0.4rem 0 0;
}

.ff-pg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.65rem;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.55rem 0;
  background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
}

.ff-pg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ff-pg-tab {
  border: 1px solid var(--ff-pg-line);
  background: #fff;
  color: var(--ff-pg-muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ff-pg-tab:hover {
  border-color: #b7cce4;
  color: var(--ff-pg-blue-deep);
}

.ff-pg-tab.is-active {
  background: var(--ff-pg-blue);
  border-color: var(--ff-pg-blue);
  color: #fff;
}

.ff-pg-search {
  position: relative;
  min-width: min(100%, 260px);
  flex: 1 1 220px;
  max-width: 320px;
}

.ff-pg-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa0b5;
}

.ff-pg-search input {
  width: 100%;
  border: 1px solid var(--ff-pg-line);
  border-radius: 999px;
  padding: 0.65rem 0.9rem 0.65rem 2.2rem;
  font: inherit;
  background: #fff;
}

.ff-pg-search input:focus {
  outline: 2px solid rgba(85, 139, 202, 0.35);
  border-color: var(--ff-pg-blue);
}

.ff-pg-tab-intro {
  margin: 0 0 1rem;
  color: var(--ff-pg-muted);
  font-size: 0.95rem;
}

.ff-pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ff-pg-card {
  display: flex;
  flex-direction: column;
  background: var(--ff-pg-card);
  border: 1px solid var(--ff-pg-line);
  border-radius: var(--ff-pg-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(31, 42, 55, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: ff-pg-fade-up 0.5s ease both;
}

.ff-pg-card:nth-child(2) { animation-delay: 0.04s; }
.ff-pg-card:nth-child(3) { animation-delay: 0.08s; }
.ff-pg-card:nth-child(4) { animation-delay: 0.12s; }
.ff-pg-card:nth-child(5) { animation-delay: 0.16s; }

.ff-pg-card:hover {
  transform: translateY(-4px);
  border-color: #b7cce4;
  box-shadow: 0 14px 30px rgba(61, 111, 168, 0.14);
}

.ff-pg-card.is-hidden {
  display: none;
}

.ff-pg-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ff-pg-soft);
  overflow: hidden;
}

.ff-pg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ff-pg-card:hover .ff-pg-card__media img {
  transform: scale(1.04);
}

.ff-pg-card__badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(31, 42, 55, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.ff-pg-card__loupe {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ff-pg-blue-deep);
  box-shadow: 0 4px 12px rgba(31, 42, 55, 0.12);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ff-pg-card:hover .ff-pg-card__loupe {
  opacity: 1;
  transform: scale(1);
}

.ff-pg-card__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ff-pg-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.ff-pg-card__blurb {
  margin: 0;
  color: var(--ff-pg-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
}

.ff-pg-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  color: var(--ff-pg-muted);
}

.ff-pg-card__cta {
  color: var(--ff-pg-blue);
  font-weight: 700;
}

.ff-pg-count {
  margin: 0.85rem 0 0;
  color: var(--ff-pg-muted);
  font-size: 0.9rem;
}

.ff-pg-help__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.ff-pg-help__grid article {
  background: var(--ff-pg-soft);
  border: 1px solid var(--ff-pg-line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.ff-pg-help__grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ff-pg-ink);
}

.ff-pg-tip {
  margin-top: 1rem !important;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--ff-pg-blue);
  background: #fff;
  border-radius: 0 12px 12px 0;
  border-top: 1px solid var(--ff-pg-line);
  border-right: 1px solid var(--ff-pg-line);
  border-bottom: 1px solid var(--ff-pg-line);
}

.ff-pg-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ff-pg-facts > div {
  background: #fff;
  border: 1px solid var(--ff-pg-line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.ff-pg-facts h2 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--ff-pg-blue-deep);
}

.ff-pg-facts p {
  margin: 0;
  color: var(--ff-pg-muted);
  line-height: 1.5;
}

.ff-pg-section-head {
  margin: 1.6rem 0 0.9rem;
}

.ff-pg-section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.ff-pg-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.ff-pg-product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ff-pg-line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ff-pg-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--ff-pg-shadow);
}

.ff-pg-product__media {
  aspect-ratio: 4 / 3;
  background: var(--ff-pg-soft);
}

.ff-pg-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ff-pg-product__body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.ff-pg-product__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.3;
}

.ff-pg-product__cta {
  color: var(--ff-pg-blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.ff-pg-empty {
  padding: 1rem;
  background: var(--ff-pg-soft);
  border-radius: 12px;
  color: var(--ff-pg-muted);
}

.ff-pg-web {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(85, 139, 202, 0.12), transparent 55%),
    linear-gradient(180deg, #fff, var(--ff-pg-soft));
  border: 1px solid var(--ff-pg-line);
}

.ff-pg-web__orbit {
  position: relative;
  margin-top: 1rem;
  padding: 1rem 0 0.25rem;
}

.ff-pg-web__center {
  width: min(100%, 220px);
  margin: 0 auto 1rem;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--ff-pg-blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(85, 139, 202, 0.28);
}

.ff-pg-web__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.ff-pg-web__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px dashed #c5d5e7;
  border-radius: 16px;
  padding: 0.75rem 0.6rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ff-pg-web__node::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: linear-gradient(#558BCA, transparent);
  opacity: 0.45;
}

.ff-pg-web__node:hover {
  transform: translateY(-3px) scale(1.02);
  border-style: solid;
  border-color: var(--ff-pg-blue);
  box-shadow: var(--ff-pg-shadow);
}

.ff-pg-web__node img {
  width: 100%;
  max-width: 120px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--ff-pg-line);
}

.ff-pg-web__node-label {
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.ff-pg-web__node-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ff-pg-blue-deep);
  background: rgba(85, 139, 202, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.ff-pg-faq {
  margin-top: 1.75rem;
}

.ff-pg-faq h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.ff-pg-faq__item {
  border: 1px solid var(--ff-pg-line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.55rem;
}

.ff-pg-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ff-pg-ink);
}

.ff-pg-faq__a {
  margin-top: 0.55rem;
  color: var(--ff-pg-muted);
  line-height: 1.55;
}

.ff-pg-back {
  margin: 1.5rem 0 0.5rem;
}

@keyframes ff-pg-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ff-pg-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@media (max-width: 900px) {
  .ff-pg-hero__row {
    grid-template-columns: 1fr;
  }
  .ff-pg-hero__media img {
    margin: 0 auto;
  }
  .ff-pg-help__grid,
  .ff-pg-facts {
    grid-template-columns: 1fr;
  }
  .ff-pg-toolbar {
    position: static;
  }
}
