body.folio-page { padding-bottom: 0; }

.folio-hero {
  padding: 2.6rem 0 1.5rem;
  background:
    radial-gradient(820px 380px at 100% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 80%);
}

.folio-hero h1 {
  font-size: clamp(2.05rem, 6vw, 3.35rem);
  max-width: 18ch;
  margin-bottom: 0.85rem;
}

.folio-hero .hero-lead { margin-bottom: 0.7rem; }

.folio-kinds {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.folio-kinds button {
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.folio-kinds button[aria-selected="true"],
.folio-kinds button:hover { border-color: #c9d8fb; }

.folio-kinds strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.folio-kinds span { color: var(--muted); font-size: 0.9rem; }

.folio-tools { margin-bottom: 1.15rem; }

.folio-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.folio-filters::-webkit-scrollbar { display: none; }

.folio-filters button {
  flex: none;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.folio-filters button[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.folio-grid { display: grid; gap: 1rem; }

.folio-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.folio-card[hidden] { display: none !important; }

.folio-card:hover { border-color: #c9d8fb; box-shadow: 0 22px 40px -28px rgba(29, 78, 216, 0.55); }

.folio-visual {
  background: #eef3f8;
  padding: 0.9rem 0.9rem 0.8rem;
  min-width: 0;
}

.mock-lift { transition: transform 0.22s ease; }

.folio-card:hover .mock-lift { transform: translateY(-4px); }

.mock-browser, .mock-phone {
  max-width: 100%;
  box-shadow: 0 14px 28px -20px rgba(7, 17, 31, 0.7);
}

.mock-browser {
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  background: #f3f6fa;
  border-bottom: 1px solid var(--line);
}

.mock-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5deea;
  flex: none;
}

.mock-chrome span {
  margin-left: 0.3rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: white;
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.mock-view { overflow: hidden; height: 148px; }

.mock-scale {
  height: 148px;
  transform-origin: center top;
  transition: transform 0.25s ease;
}

.folio-card:hover .mock-scale { transform: scale(1.045); }

.mock-site { height: 148px; padding: 0.55rem 0.65rem 0.7rem; overflow: hidden; }
.mock-top, .mock-row, .mock-pills { display: flex; align-items: center; }
.mock-top { justify-content: space-between; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; }
.mock-top em, .mock-chip {
  font-style: normal;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
}
.mock-hero { margin-top: 0.45rem; border-radius: 8px; padding: 0.55rem 0.6rem; }
.mock-hero small { display: block; font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.mock-hero strong { display: block; margin-top: 0.12rem; font-size: 0.92rem; letter-spacing: -0.02em; }
.mock-pills { gap: 0.3rem; margin-top: 0.45rem; flex-wrap: wrap; }
.mock-pills span, .mock-tile {
  border-radius: 8px;
  padding: 0.28rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
}
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; margin-top: 0.45rem; }

.mock-restaurant { background: #f6efe6; color: #2c241c; }
.mock-restaurant .mock-top em { background: #2c241c; color: #fff8ef; }
.mock-restaurant .mock-hero { background: #2c241c; color: #fff8ef; }
.mock-restaurant .mock-tile { background: white; }

.mock-estate { background: #f3f1ec; color: #1d2420; }
.mock-estate .mock-hero { background: #24312b; color: #f6f1e6; }
.mock-estate .mock-tile { background: white; }
.mock-estate .mock-top em { background: #8d6a3b; color: white; }

.mock-clinic { background: #f3faf8; color: #14332f; }
.mock-clinic .mock-hero { background: white; border: 1px solid #d5ebe6; }
.mock-clinic .mock-hero strong { color: #0f766e; }
.mock-clinic .mock-tile { background: white; border: 1px solid #d5ebe6; }
.mock-clinic .mock-top em { background: #0f766e; color: white; }

.mock-gym { background: #17191d; color: #f4efe8; }
.mock-gym .mock-hero { background: linear-gradient(135deg, #2a211c, #c2410c); }
.mock-gym .mock-tile { background: #24282f; }
.mock-gym .mock-top em { background: #ea580c; color: white; }

.mock-coaching { background: #f4f6fb; color: #1c2456; }
.mock-coaching .mock-hero { background: #1e2a78; color: white; }
.mock-coaching .mock-tile { background: white; border-top: 3px solid #e2b15a; }
.mock-coaching .mock-top em { background: #1e2a78; color: white; }

.mock-salon { background: #f8f1ee; color: #4a2c3a; }
.mock-salon .mock-hero { background: #4a2c3a; color: #fff7f4; }
.mock-salon .mock-tile { background: white; }
.mock-salon .mock-top em { background: #9a5b6b; color: white; }

.mock-shop { background: #f7f7f7; color: #161616; }
.mock-shop .mock-hero { background: white; border: 1px solid #ececec; }
.mock-shop .sw { height: 28px; border-radius: 6px; margin-bottom: 0.2rem; }
.mock-shop .sw.a { background: #d9c7b8; }
.mock-shop .sw.b { background: #8d9aa8; }
.mock-shop .sw.c { background: #111; }
.mock-shop .mock-tile { background: white; border: 1px solid #ececec; }
.mock-shop .mock-top em { background: #111; color: white; }

.mock-saas { background: #eef3fb; color: #10203a; }
.mock-saas .mock-hero { background: #0d1b33; color: white; }
.mock-saas .mock-bars { display: flex; gap: 0.35rem; margin-top: 0.55rem; }
.mock-saas .mock-bars i { display: block; height: 8px; border-radius: 99px; background: #d7e2f5; flex: 1; }
.mock-saas .mock-bars i.on { background: #2563eb; flex: none; width: 42%; }

.mock-phone {
  width: 148px;
  margin: 0 auto;
  background: #07111f;
  border-radius: 26px;
  padding: 8px;
}

.mock-phone .mock-view { height: 176px; border-radius: 18px; }
.mock-phone .mock-scale, .mock-phone .mock-app { height: 176px; }

.mock-app {
  background: #101b2e;
  color: white;
  padding: 0.7rem 0.65rem 0.75rem;
  border-radius: 18px;
}

.mock-app small { color: #93a0b5; font-size: 0.68rem; }
.mock-app strong { display: block; margin: 0.15rem 0 0.55rem; font-size: 0.95rem; }
.mock-app .mock-row {
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
}
.mock-app .mock-go {
  margin-top: 0.35rem;
  background: #2563eb;
  text-align: center;
  border-radius: 8px;
  padding: 0.38rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.mock-dash { display: grid; grid-template-columns: 72px 1fr; height: 148px; background: #f8fafc; color: #122033; }
.mock-side { background: #07111f; color: #d5deea; padding: 0.45rem; font-size: 0.62rem; font-weight: 700; }
.mock-side span { display: block; padding: 0.28rem 0.2rem; border-radius: 6px; }
.mock-side span.on { background: rgba(255, 255, 255, 0.08); color: white; }
.mock-main { padding: 0.45rem; min-width: 0; }
.mock-kpis, .mock-markets { display: grid; gap: 0.28rem; }
.mock-kpis { grid-template-columns: repeat(3, 1fr); }
.mock-kpis b, .mock-markets b {
  display: block;
  background: white;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  padding: 0.28rem 0.3rem;
  font-size: 0.62rem;
}
.mock-kpis b em, .mock-markets b em { font-style: normal; color: #8b9bb3; font-weight: 700; }
.mock-markets { grid-template-columns: repeat(3, 1fr); margin-top: 0.35rem; }
.mock-line { height: 6px; border-radius: 99px; background: #d7e2f5; margin-top: 0.45rem; }
.mock-line.on { width: 62%; background: #2563eb; }

.folio-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.05rem 1.1rem; flex: 1; }
.folio-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.folio-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  background: var(--navy);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.folio-cat { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.folio-body h3 { font-size: 1.2rem; }
.folio-body p { color: var(--muted); }
.folio-cta { margin-top: auto; align-self: flex-start; }
.folio-card:hover .folio-cta { box-shadow: 0 10px 20px -14px rgba(29, 78, 216, 0.95); }

.folio-close { padding-top: 0; }
.folio-close .cta-inner { text-align: left; }

@media (min-width: 768px) {
  .folio-hero { padding: 4rem 0 2rem; }
  .folio-kinds, .folio-grid { grid-template-columns: 1fr 1fr; }
}

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

@media (prefers-reduced-motion: reduce) {
  .mock-lift, .mock-scale, .folio-card { transition: none; }
  .folio-card:hover .mock-lift, .folio-card:hover .mock-scale { transform: none; }
}
